summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21045
1 files changed, 21045 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..330fb9b1d
--- /dev/null
+++ b/configure
@@ -0,0 +1,21045 @@
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
627DEPEND
628UNSUPPORTED_ALGORITHMS
629TEST_MALLOC_OPTIONS
630TEST_SSH_UTF8
631TEST_SSH_IPV6
632piddir
633user_path
634mansubdir
635MANTYPE
636XAUTH_PATH
637STRIP_OPT
638xauth_path
639PRIVSEP_PATH
640K5LIBS
641GSSLIBS
642KRB5CONF
643SSHDLIBS
644SSHLIBS
645SSH_PRIVSEP_USER
646COMMENT_OUT_ECC
647TEST_SSH_ECC
648LIBEDIT
649PKGCONFIG
650LDNSCONFIG
651LIBOBJS
652LD
653PATH_PASSWD_PROG
654STARTUP_SCRIPT_SHELL
655MAKE_PACKAGE_SUPPORTED
656PATH_USERADD_PROG
657PATH_GROUPADD_PROG
658MANFMT
659TEST_SHELL
660MANDOC
661NROFF
662GROFF
663SH
664TEST_MINUS_S_SH
665ENT
666SED
667KILL
668CAT
669ac_ct_AR
670AR
671MKDIR_P
672INSTALL_DATA
673INSTALL_SCRIPT
674INSTALL_PROGRAM
675RANLIB
676AWK
677EGREP
678GREP
679CPP
680host_os
681host_vendor
682host_cpu
683host
684build_os
685build_vendor
686build_cpu
687build
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files=''
734ac_user_opts='
735enable_option_checking
736enable_largefile
737with_openssl
738with_stackprotect
739with_hardening
740with_rpath
741with_cflags
742with_cflags_after
743with_cppflags
744with_ldflags
745with_ldflags_after
746with_libs
747with_Werror
748with_solaris_contracts
749with_solaris_projects
750with_solaris_privs
751with_osfsia
752with_zlib
753with_zlib_version_check
754with_ldns
755with_libedit
756with_audit
757with_pie
758enable_pkcs11
759with_ssl_dir
760with_openssl_header_check
761with_ssl_engine
762with_prngd_port
763with_prngd_socket
764with_pam
765with_pam_service
766with_privsep_user
767with_sandbox
768with_selinux
769with_kerberos5
770with_privsep_path
771with_xauth
772enable_strip
773with_maildir
774with_mantype
775with_md5_passwords
776with_shadow
777with_ipaddr_display
778enable_etc_default_login
779with_default_path
780with_superuser_path
781with_4in6
782with_bsd_auth
783with_pid_dir
784enable_lastlog
785enable_utmp
786enable_utmpx
787enable_wtmp
788enable_wtmpx
789enable_libutil
790enable_pututline
791enable_pututxline
792with_lastlog
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308else
1309 ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396_ACEOF
1397
1398 cat <<\_ACEOF
1399
1400System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --disable-largefile omit support for large files
1417 --disable-pkcs11 disable PKCS#11 support code [no]
1418 --disable-strip Disable calling strip(1) on install
1419 --disable-etc-default-login Disable using PATH from /etc/default/login no
1420 --disable-lastlog disable use of lastlog even if detected no
1421 --disable-utmp disable use of utmp even if detected no
1422 --disable-utmpx disable use of utmpx even if detected no
1423 --disable-wtmp disable use of wtmp even if detected no
1424 --disable-wtmpx disable use of wtmpx even if detected no
1425 --disable-libutil disable use of libutil (login() etc.) no
1426 --disable-pututline disable use of pututline() etc. (uwtmp) no
1427 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1433 --without-stackprotect Don't use compiler's stack protection
1434 --without-hardening Don't use toolchain hardening flags
1435 --without-rpath Disable auto-added -R linker paths
1436 --with-cflags Specify additional flags to pass to compiler
1437 --with-cflags-after Specify additional flags to pass to compiler after configure
1438 --with-cppflags Specify additional flags to pass to preprocessor
1439 --with-ldflags Specify additional flags to pass to linker
1440 --with-ldflags-after Specify additional flags to pass to linker after configure
1441 --with-libs Specify additional libraries to link with
1442 --with-Werror Build main code with -Werror
1443 --with-solaris-contracts Enable Solaris process contracts (experimental)
1444 --with-solaris-projects Enable Solaris projects (experimental)
1445 --with-solaris-privs Enable Solaris/Illumos privileges (experimental)
1446 --with-osfsia Enable Digital Unix SIA
1447 --with-zlib=PATH Use zlib in PATH
1448 --without-zlib-version-check Disable zlib version check
1449 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1450 --with-libedit[=PATH] Enable libedit support for sftp
1451 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1452 --with-pie Build Position Independent Executables if possible
1453 --with-ssl-dir=PATH Specify path to OpenSSL installation
1454 --without-openssl-header-check Disable OpenSSL version consistency check
1455 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1456 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1457 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1458 --with-pam Enable PAM support
1459 --with-pam-service=name Specify PAM service name
1460 --with-privsep-user=user Specify non-privileged user for privilege separation
1461 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1462 --with-selinux Enable SELinux support
1463 --with-kerberos5=PATH Enable Kerberos 5 support
1464 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1465 --with-xauth=PATH Specify path to xauth program
1466 --with-maildir=/path/to/mail Specify your system mail directory
1467 --with-mantype=man|cat|doc Set man page type
1468 --with-md5-passwords Enable use of MD5 passwords
1469 --without-shadow Disable shadow password support
1470 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1471 --with-default-path= Specify default $PATH environment for server
1472 --with-superuser-path= Specify different path for super-user
1473 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1474 --with-bsd-auth Enable BSD auth support
1475 --with-pid-dir=PATH Specify location of sshd.pid file
1476 --with-lastlog=FILE|DIR specify lastlog location common locations
1477
1478Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 LIBS libraries to pass to the linker, e.g. -l<library>
1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CPP C preprocessor
1487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <openssh-unix-dev@mindrot.org>.
1492_ACEOF
1493ac_status=$?
1494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
1519
1520case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533esac
1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549fi
1550
1551test -n "$ac_init_help" && exit $ac_status
1552if $ac_init_version; then
1553 cat <<\_ACEOF
1554OpenSSH configure Portable
1555generated by GNU Autoconf 2.69
1556
1557Copyright (C) 2012 Free Software Foundation, Inc.
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
1561 exit
1562fi
1563
1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_compile
1605
1606# ac_fn_c_try_run LINENO
1607# ----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609# that executables *can* be run.
1610ac_fn_c_try_run ()
1611{
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1621 ac_status=$?
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1634 ac_retval=0
1635else
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=$ac_status
1641fi
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_run
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686# -------------------------------------------------------
1687# Tests whether HEADER exists and can be compiled using the include files in
1688# INCLUDES, setting the cache variable VAR accordingly.
1689ac_fn_c_check_header_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696else
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h. */
1699$4
1700#include <$2>
1701_ACEOF
1702if ac_fn_c_try_compile "$LINENO"; then :
1703 eval "$3=yes"
1704else
1705 eval "$3=no"
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714} # ac_fn_c_check_header_compile
1715
1716# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1717# ---------------------------------------------
1718# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1719# accordingly.
1720ac_fn_c_check_decl ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 as_decl_name=`echo $2|sed 's/ *(.*//'`
1724 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1726$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1727if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h. */
1732$4
1733int
1734main ()
1735{
1736#ifndef $as_decl_name
1737#ifdef __cplusplus
1738 (void) $as_decl_use;
1739#else
1740 (void) $as_decl_name;
1741#endif
1742#endif
1743
1744 ;
1745 return 0;
1746}
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750else
1751 eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_decl
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_link
1807
1808# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811# the include files in INCLUDES and setting the cache variable VAR
1812# accordingly.
1813ac_fn_c_check_header_mongrel ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if eval \${$3+:} false; then :
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825else
1826 # Is the header compilable?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828$as_echo_n "checking $2 usability... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_header_compiler=yes
1836else
1837 ac_header_compiler=no
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841$as_echo "$ac_header_compiler" >&6; }
1842
1843# Is the header present?
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845$as_echo_n "checking $2 presence... " >&6; }
1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_cpp "$LINENO"; then :
1851 ac_header_preproc=yes
1852else
1853 ac_header_preproc=no
1854fi
1855rm -f conftest.err conftest.i conftest.$ac_ext
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857$as_echo "$ac_header_preproc" >&6; }
1858
1859# So? What about this header?
1860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861 yes:no: )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 ;;
1867 no:yes:* )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1871$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1875$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878( $as_echo "## ------------------------------------------- ##
1879## Report this to openssh-unix-dev@mindrot.org ##
1880## ------------------------------------------- ##"
1881 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 ;;
1883esac
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888else
1889 eval "$3=\$ac_header_compiler"
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894fi
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_mongrel
1898
1899# ac_fn_c_check_func LINENO FUNC VAR
1900# ----------------------------------
1901# Tests whether FUNC exists, setting the cache variable VAR accordingly
1902ac_fn_c_check_func ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1914#define $2 innocuous_$2
1915
1916/* System header to define __stub macros and hopefully few prototypes,
1917 which can conflict with char $2 (); below.
1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919 <limits.h> exists even on freestanding compilers. */
1920
1921#ifdef __STDC__
1922# include <limits.h>
1923#else
1924# include <assert.h>
1925#endif
1926
1927#undef $2
1928
1929/* Override any GCC internal prototype to avoid an error.
1930 Use char because int might match the return type of a GCC
1931 builtin and then its argument prototype would still apply. */
1932#ifdef __cplusplus
1933extern "C"
1934#endif
1935char $2 ();
1936/* The GNU C library defines this for functions which it implements
1937 to always fail with ENOSYS. Some functions are actually named
1938 something starting with __ and the normal name is an alias. */
1939#if defined __stub_$2 || defined __stub___$2
1940choke me
1941#endif
1942
1943int
1944main ()
1945{
1946return $2 ();
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_link "$LINENO"; then :
1952 eval "$3=yes"
1953else
1954 eval "$3=no"
1955fi
1956rm -f core conftest.err conftest.$ac_objext \
1957 conftest$ac_exeext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_func
1965
1966# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1967# -------------------------------------------
1968# Tests whether TYPE exists after having included INCLUDES, setting cache
1969# variable VAR accordingly.
1970ac_fn_c_check_type ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977else
1978 eval "$3=no"
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$4
1982int
1983main ()
1984{
1985if (sizeof ($2))
1986 return 0;
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995int
1996main ()
1997{
1998if (sizeof (($2)))
1999 return 0;
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005
2006else
2007 eval "$3=yes"
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012fi
2013eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} # ac_fn_c_check_type
2019
2020# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2021# --------------------------------------------
2022# Tries to find the compile-time value of EXPR in a program that includes
2023# INCLUDES, setting VAR accordingly. Returns whether the value could be
2024# computed
2025ac_fn_c_compute_int ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if test "$cross_compiling" = yes; then
2029 # Depending upon the size, compute the lo and hi bounds.
2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033int
2034main ()
2035{
2036static int test_array [1 - 2 * !(($2) >= 0)];
2037test_array [0] = 0;
2038return test_array [0];
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050int
2051main ()
2052{
2053static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054test_array [0] = 0;
2055return test_array [0];
2056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=$ac_mid; break
2063else
2064 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2065 if test $ac_lo -le $ac_mid; then
2066 ac_lo= ac_hi=
2067 break
2068 fi
2069 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077int
2078main ()
2079{
2080static int test_array [1 - 2 * !(($2) < 0)];
2081test_array [0] = 0;
2082return test_array [0];
2083
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=-1 ac_mid=-1
2090 while :; do
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2098test_array [0] = 0;
2099return test_array [0];
2100
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_lo=$ac_mid; break
2107else
2108 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2109 if test $ac_mid -le $ac_hi; then
2110 ac_lo= ac_hi=
2111 break
2112 fi
2113 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117else
2118 ac_lo= ac_hi=
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123# Binary search between lo and hi bounds.
2124while test "x$ac_lo" != "x$ac_hi"; do
2125 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129int
2130main ()
2131{
2132static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2133test_array [0] = 0;
2134return test_array [0];
2135
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=$ac_mid
2142else
2143 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146done
2147case $ac_lo in #((
2148?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2149'') ac_retval=1 ;;
2150esac
2151 else
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155static long int longval () { return $2; }
2156static unsigned long int ulongval () { return $2; }
2157#include <stdio.h>
2158#include <stdlib.h>
2159int
2160main ()
2161{
2162
2163 FILE *f = fopen ("conftest.val", "w");
2164 if (! f)
2165 return 1;
2166 if (($2) < 0)
2167 {
2168 long int i = longval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%ld", i);
2172 }
2173 else
2174 {
2175 unsigned long int i = ulongval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%lu", i);
2179 }
2180 /* Do not output a trailing newline, as this causes \r\n confusion
2181 on some platforms. */
2182 return ferror (f) || fclose (f) != 0;
2183
2184 ;
2185 return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_run "$LINENO"; then :
2189 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2190else
2191 ac_retval=1
2192fi
2193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2194 conftest.$ac_objext conftest.beam conftest.$ac_ext
2195rm -f conftest.val
2196
2197 fi
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 as_fn_set_status $ac_retval
2200
2201} # ac_fn_c_compute_int
2202
2203# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2204# ----------------------------------------------------
2205# Tries to find if the field MEMBER exists in type AGGR, after including
2206# INCLUDES, setting cache variable VAR accordingly.
2207ac_fn_c_check_member ()
2208{
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2211$as_echo_n "checking for $2.$3... " >&6; }
2212if eval \${$4+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$5
2218int
2219main ()
2220{
2221static $2 ac_aggr;
2222if (ac_aggr.$3)
2223return 0;
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 eval "$4=yes"
2230else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232/* end confdefs.h. */
2233$5
2234int
2235main ()
2236{
2237static $2 ac_aggr;
2238if (sizeof ac_aggr.$3)
2239return 0;
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$4=yes"
2246else
2247 eval "$4=no"
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252fi
2253eval ac_res=\$$4
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257
2258} # ac_fn_c_check_member
2259cat >config.log <<_ACEOF
2260This file contains any messages produced by compilers while
2261running configure, to aid debugging if configure makes a mistake.
2262
2263It was created by OpenSSH $as_me Portable, which was
2264generated by GNU Autoconf 2.69. Invocation command line was
2265
2266 $ $0 $@
2267
2268_ACEOF
2269exec 5>>config.log
2270{
2271cat <<_ASUNAME
2272## --------- ##
2273## Platform. ##
2274## --------- ##
2275
2276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2277uname -m = `(uname -m) 2>/dev/null || echo unknown`
2278uname -r = `(uname -r) 2>/dev/null || echo unknown`
2279uname -s = `(uname -s) 2>/dev/null || echo unknown`
2280uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281
2282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2283/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284
2285/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2286/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2288/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2289/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2290/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2291/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292
2293_ASUNAME
2294
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 $as_echo "PATH: $as_dir"
2301 done
2302IFS=$as_save_IFS
2303
2304} >&5
2305
2306cat >&5 <<_ACEOF
2307
2308
2309## ----------- ##
2310## Core tests. ##
2311## ----------- ##
2312
2313_ACEOF
2314
2315
2316# Keep a trace of the command line.
2317# Strip out --no-create and --no-recursion so they do not pile up.
2318# Strip out --silent because we don't want to record it for future runs.
2319# Also quote any args containing shell meta-characters.
2320# Make two passes to allow for proper duplicate-argument suppression.
2321ac_configure_args=
2322ac_configure_args0=
2323ac_configure_args1=
2324ac_must_keep_next=false
2325for ac_pass in 1 2
2326do
2327 for ac_arg
2328 do
2329 case $ac_arg in
2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332 | -silent | --silent | --silen | --sile | --sil)
2333 continue ;;
2334 *\'*)
2335 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 esac
2337 case $ac_pass in
2338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 2)
2340 as_fn_append ac_configure_args1 " '$ac_arg'"
2341 if test $ac_must_keep_next = true; then
2342 ac_must_keep_next=false # Got value, back to normal.
2343 else
2344 case $ac_arg in
2345 *=* | --config-cache | -C | -disable-* | --disable-* \
2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348 | -with-* | --with-* | -without-* | --without-* | --x)
2349 case "$ac_configure_args0 " in
2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 esac
2352 ;;
2353 -* ) ac_must_keep_next=true ;;
2354 esac
2355 fi
2356 as_fn_append ac_configure_args " '$ac_arg'"
2357 ;;
2358 esac
2359 done
2360done
2361{ ac_configure_args0=; unset ac_configure_args0;}
2362{ ac_configure_args1=; unset ac_configure_args1;}
2363
2364# When interrupted or exit'd, cleanup temporary files, and complete
2365# config.log. We remove comments because anyway the quotes in there
2366# would cause problems or look ugly.
2367# WARNING: Use '\'' to represent an apostrophe within the trap.
2368# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369trap 'exit_status=$?
2370 # Save into config.log some information that might help in debugging.
2371 {
2372 echo
2373
2374 $as_echo "## ---------------- ##
2375## Cache variables. ##
2376## ---------------- ##"
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
2379(
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
2395 (set) 2>&1 |
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2398 sed -n \
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
2402 *)
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 ;;
2405 esac |
2406 sort
2407)
2408 echo
2409
2410 $as_echo "## ----------------- ##
2411## Output variables. ##
2412## ----------------- ##"
2413 echo
2414 for ac_var in $ac_subst_vars
2415 do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2423
2424 if test -n "$ac_subst_files"; then
2425 $as_echo "## ------------------- ##
2426## File substitutions. ##
2427## ------------------- ##"
2428 echo
2429 for ac_var in $ac_subst_files
2430 do
2431 eval ac_val=\$$ac_var
2432 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac
2435 $as_echo "$ac_var='\''$ac_val'\''"
2436 done | sort
2437 echo
2438 fi
2439
2440 if test -s confdefs.h; then
2441 $as_echo "## ----------- ##
2442## confdefs.h. ##
2443## ----------- ##"
2444 echo
2445 cat confdefs.h
2446 echo
2447 fi
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2455' 0
2456for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458done
2459ac_signal=0
2460
2461# confdefs.h avoids OS command line length limits that DEFS can exceed.
2462rm -f -r conftest* confdefs.h
2463
2464$as_echo "/* confdefs.h */" > confdefs.h
2465
2466# Predefined preprocessor variables.
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_NAME "$PACKAGE_NAME"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_VERSION "$PACKAGE_VERSION"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_STRING "$PACKAGE_STRING"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_URL "$PACKAGE_URL"
2490_ACEOF
2491
2492
2493# Let the site file select an alternate cache file if it wants to.
2494# Prefer an explicitly selected file to automatically selected ones.
2495ac_site_file1=NONE
2496ac_site_file2=NONE
2497if test -n "$CONFIG_SITE"; then
2498 # We do not want a PATH search for config.site.
2499 case $CONFIG_SITE in #((
2500 -*) ac_site_file1=./$CONFIG_SITE;;
2501 */*) ac_site_file1=$CONFIG_SITE;;
2502 *) ac_site_file1=./$CONFIG_SITE;;
2503 esac
2504elif test "x$prefix" != xNONE; then
2505 ac_site_file1=$prefix/share/config.site
2506 ac_site_file2=$prefix/etc/config.site
2507else
2508 ac_site_file1=$ac_default_prefix/share/config.site
2509 ac_site_file2=$ac_default_prefix/etc/config.site
2510fi
2511for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512do
2513 test "x$ac_site_file" = xNONE && continue
2514 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2516$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2517 sed 's/^/| /' "$ac_site_file" >&5
2518 . "$ac_site_file" \
2519 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521as_fn_error $? "failed to load site script $ac_site_file
2522See \`config.log' for more details" "$LINENO" 5; }
2523 fi
2524done
2525
2526if test -r "$cache_file"; then
2527 # Some versions of bash will fail to source /dev/null (special files
2528 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2529 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2531$as_echo "$as_me: loading cache $cache_file" >&6;}
2532 case $cache_file in
2533 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2534 *) . "./$cache_file";;
2535 esac
2536 fi
2537else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2539$as_echo "$as_me: creating cache $cache_file" >&6;}
2540 >$cache_file
2541fi
2542
2543# Check that the precious variables saved in the cache have kept the same
2544# value.
2545ac_cache_corrupted=false
2546for ac_var in $ac_precious_vars; do
2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548 eval ac_new_set=\$ac_env_${ac_var}_set
2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550 eval ac_new_val=\$ac_env_${ac_var}_value
2551 case $ac_old_set,$ac_new_set in
2552 set,)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2554$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,set)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2558$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559 ac_cache_corrupted=: ;;
2560 ,);;
2561 *)
2562 if test "x$ac_old_val" != "x$ac_new_val"; then
2563 # differences in whitespace do not lead to failure.
2564 ac_old_val_w=`echo x $ac_old_val`
2565 ac_new_val_w=`echo x $ac_new_val`
2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2568$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 ac_cache_corrupted=:
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2572$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 eval $ac_var=\$ac_old_val
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2576$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2578$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2579 fi;;
2580 esac
2581 # Pass precious variables to config.status.
2582 if test "$ac_new_set" = set; then
2583 case $ac_new_val in
2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2585 *) ac_arg=$ac_var=$ac_new_val ;;
2586 esac
2587 case " $ac_configure_args " in
2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 esac
2591 fi
2592done
2593if $ac_cache_corrupted; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2597$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2598 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2599fi
2600## -------------------- ##
2601## Main body of script. ##
2602## -------------------- ##
2603
2604ac_ext=c
2605ac_cpp='$CPP $CPPFLAGS'
2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610
2611
2612
2613ac_ext=c
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619
2620ac_config_headers="$ac_config_headers config.h"
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2629set dummy ${ac_tool_prefix}gcc; ac_word=$2
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if ${ac_cv_prog_CC+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649done
2650 done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658$as_echo "$CC" >&6; }
2659else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662fi
2663
2664
2665fi
2666if test -z "$ac_cv_prog_CC"; then
2667 ac_ct_CC=$CC
2668 # Extract the first word of "gcc", so it can be a program name with args.
2669set dummy gcc; ac_word=$2
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671$as_echo_n "checking for $ac_word... " >&6; }
2672if ${ac_cv_prog_ac_ct_CC+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_ac_ct_CC="gcc"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690 done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696if test -n "$ac_ct_CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2698$as_echo "$ac_ct_CC" >&6; }
2699else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
2702fi
2703
2704 if test "x$ac_ct_CC" = x; then
2705 CC=""
2706 else
2707 case $cross_compiling:$ac_tool_warned in
2708yes:)
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711ac_tool_warned=yes ;;
2712esac
2713 CC=$ac_ct_CC
2714 fi
2715else
2716 CC="$ac_cv_prog_CC"
2717fi
2718
2719if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2722set dummy ${ac_tool_prefix}cc; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_CC="${ac_tool_prefix}cc"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742done
2743 done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751$as_echo "$CC" >&6; }
2752else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758 fi
2759fi
2760if test -z "$CC"; then
2761 # Extract the first word of "cc", so it can be a program name with args.
2762set dummy cc; ac_word=$2
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764$as_echo_n "checking for $ac_word... " >&6; }
2765if ${ac_cv_prog_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
2771 ac_prog_rejected=no
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2780 ac_prog_rejected=yes
2781 continue
2782 fi
2783 ac_cv_prog_CC="cc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788 done
2789IFS=$as_save_IFS
2790
2791if test $ac_prog_rejected = yes; then
2792 # We found a bogon in the path, so make sure we never use it.
2793 set dummy $ac_cv_prog_CC
2794 shift
2795 if test $# != 0; then
2796 # We chose a different compiler from the bogus one.
2797 # However, it has the same basename, so the bogon will be chosen
2798 # first if we set CC to just the basename; use the full file name.
2799 shift
2800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2801 fi
2802fi
2803fi
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808$as_echo "$CC" >&6; }
2809else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815fi
2816if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 for ac_prog in cl.exe
2819 do
2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_CC+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842 done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CC=$ac_cv_prog_CC
2848if test -n "$CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850$as_echo "$CC" >&6; }
2851else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857 test -n "$CC" && break
2858 done
2859fi
2860if test -z "$CC"; then
2861 ac_ct_CC=$CC
2862 for ac_prog in cl.exe
2863do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865set dummy $ac_prog; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_ac_ct_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 if test -n "$ac_ct_CC"; then
2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_CC="$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885done
2886 done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892if test -n "$ac_ct_CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2894$as_echo "$ac_ct_CC" >&6; }
2895else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
2898fi
2899
2900
2901 test -n "$ac_ct_CC" && break
2902done
2903
2904 if test "x$ac_ct_CC" = x; then
2905 CC=""
2906 else
2907 case $cross_compiling:$ac_tool_warned in
2908yes:)
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911ac_tool_warned=yes ;;
2912esac
2913 CC=$ac_ct_CC
2914 fi
2915fi
2916
2917fi
2918
2919
2920test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922as_fn_error $? "no acceptable C compiler found in \$PATH
2923See \`config.log' for more details" "$LINENO" 5; }
2924
2925# Provide some information about the compiler.
2926$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2927set X $ac_compile
2928ac_compiler=$2
2929for ac_option in --version -v -V -qversion; do
2930 { { ac_try="$ac_compiler $ac_option >&5"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936$as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2938 ac_status=$?
2939 if test -s conftest.err; then
2940 sed '10a\
2941... rest of stderr output deleted ...
2942 10q' conftest.err >conftest.er1
2943 cat conftest.er1 >&5
2944 fi
2945 rm -f conftest.er1 conftest.err
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }
2948done
2949
2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h. */
2952
2953int
2954main ()
2955{
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961ac_clean_files_save=$ac_clean_files
2962ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2963# Try to create an executable without -o first, disregard a.out.
2964# It will help us diagnose broken compilers, and finding out an intuition
2965# of exeext.
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2967$as_echo_n "checking whether the C compiler works... " >&6; }
2968ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2969
2970# The possible output files:
2971ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2972
2973ac_rmfiles=
2974for ac_file in $ac_files
2975do
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 esac
2980done
2981rm -f $ac_rmfiles
2982
2983if { { ac_try="$ac_link_default"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2989$as_echo "$ac_try_echo"; } >&5
2990 (eval "$ac_link_default") 2>&5
2991 ac_status=$?
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }; then :
2994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2995# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2996# in a Makefile. We should not override ac_cv_exeext if it was cached,
2997# so that the user can short-circuit this test for compilers unknown to
2998# Autoconf.
2999for ac_file in $ac_files ''
3000do
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3004 ;;
3005 [ab].out )
3006 # We found the default executable, but exeext='' is most
3007 # certainly right.
3008 break;;
3009 *.* )
3010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3011 then :; else
3012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 fi
3014 # We set ac_cv_exeext here because the later test for it is not
3015 # safe: cross compilers may not add the suffix if given an `-o'
3016 # argument, so we may need to know it at that point already.
3017 # Even if this section looks crufty: it has the advantage of
3018 # actually working.
3019 break;;
3020 * )
3021 break;;
3022 esac
3023done
3024test "$ac_cv_exeext" = no && ac_cv_exeext=
3025
3026else
3027 ac_file=''
3028fi
3029if test -z "$ac_file"; then :
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032$as_echo "$as_me: failed program was:" >&5
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037as_fn_error 77 "C compiler cannot create executables
3038See \`config.log' for more details" "$LINENO" 5; }
3039else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041$as_echo "yes" >&6; }
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3044$as_echo_n "checking for C compiler default output file name... " >&6; }
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3046$as_echo "$ac_file" >&6; }
3047ac_exeext=$ac_cv_exeext
3048
3049rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3050ac_clean_files=$ac_clean_files_save
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3052$as_echo_n "checking for suffix of executables... " >&6; }
3053if { { ac_try="$ac_link"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; then :
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066# work properly (i.e., refer to `conftest.exe'), while it won't with
3067# `rm'.
3068for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 break;;
3074 * ) break;;
3075 esac
3076done
3077else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3081See \`config.log' for more details" "$LINENO" 5; }
3082fi
3083rm -f conftest conftest$ac_cv_exeext
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3085$as_echo "$ac_cv_exeext" >&6; }
3086
3087rm -f conftest.$ac_ext
3088EXEEXT=$ac_cv_exeext
3089ac_exeext=$EXEEXT
3090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h. */
3092#include <stdio.h>
3093int
3094main ()
3095{
3096FILE *f = fopen ("conftest.out", "w");
3097 return ferror (f) || fclose (f) != 0;
3098
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103ac_clean_files="$ac_clean_files conftest.out"
3104# Check that the compiler produces executables we can run. If not, either
3105# the compiler is broken, or we cross compile.
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3107$as_echo_n "checking whether we are cross compiling... " >&6; }
3108if test "$cross_compiling" != yes; then
3109 { { ac_try="$ac_link"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }
3120 if { ac_try='./conftest$ac_cv_exeext'
3121 { { case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; }; then
3131 cross_compiling=no
3132 else
3133 if test "$cross_compiling" = maybe; then
3134 cross_compiling=yes
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138as_fn_error $? "cannot run C compiled programs.
3139If you meant to cross compile, use \`--host'.
3140See \`config.log' for more details" "$LINENO" 5; }
3141 fi
3142 fi
3143fi
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3145$as_echo "$cross_compiling" >&6; }
3146
3147rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3148ac_clean_files=$ac_clean_files_save
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3150$as_echo_n "checking for suffix of object files... " >&6; }
3151if ${ac_cv_objext+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153else
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.o conftest.obj
3166if { { ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172$as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184done
3185else
3186 $as_echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error $? "cannot compute suffix of object files: cannot compile
3192See \`config.log' for more details" "$LINENO" 5; }
3193fi
3194rm -f conftest.$ac_cv_objext conftest.$ac_ext
3195fi
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3197$as_echo "$ac_cv_objext" >&6; }
3198OBJEXT=$ac_cv_objext
3199ac_objext=$OBJEXT
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3202if ${ac_cv_c_compiler_gnu+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211#ifndef __GNUC__
3212 choke me
3213#endif
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
3219if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_compiler_gnu=yes
3221else
3222 ac_compiler_gnu=no
3223fi
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226
3227fi
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3229$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3230if test $ac_compiler_gnu = yes; then
3231 GCC=yes
3232else
3233 GCC=
3234fi
3235ac_test_CFLAGS=${CFLAGS+set}
3236ac_save_CFLAGS=$CFLAGS
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3238$as_echo_n "checking whether $CC accepts -g... " >&6; }
3239if ${ac_cv_prog_cc_g+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247/* end confdefs.h. */
3248
3249int
3250main ()
3251{
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257if ac_fn_c_try_compile "$LINENO"; then :
3258 ac_cv_prog_cc_g=yes
3259else
3260 CFLAGS=""
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h. */
3263
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272if ac_fn_c_try_compile "$LINENO"; then :
3273
3274else
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_g=yes
3290fi
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294fi
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_c_werror_flag=$ac_save_c_werror_flag
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3299$as_echo "$ac_cv_prog_cc_g" >&6; }
3300if test "$ac_test_CFLAGS" = set; then
3301 CFLAGS=$ac_save_CFLAGS
3302elif test $ac_cv_prog_cc_g = yes; then
3303 if test "$GCC" = yes; then
3304 CFLAGS="-g -O2"
3305 else
3306 CFLAGS="-g"
3307 fi
3308else
3309 if test "$GCC" = yes; then
3310 CFLAGS="-O2"
3311 else
3312 CFLAGS=
3313 fi
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3317if ${ac_cv_prog_cc_c89+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319else
3320 ac_cv_prog_cc_c89=no
3321ac_save_CC=$CC
3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h. */
3324#include <stdarg.h>
3325#include <stdio.h>
3326struct stat;
3327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3328struct buf { int x; };
3329FILE * (*rcsopen) (struct buf *, struct stat *, int);
3330static char *e (p, i)
3331 char **p;
3332 int i;
3333{
3334 return p[i];
3335}
3336static char *f (char * (*g) (char **, int), char **p, ...)
3337{
3338 char *s;
3339 va_list v;
3340 va_start (v,p);
3341 s = g (p, va_arg (v,int));
3342 va_end (v);
3343 return s;
3344}
3345
3346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3347 function prototypes and stuff, but not '\xHH' hex character constants.
3348 These don't provoke an error unfortunately, instead are silently treated
3349 as 'x'. The following induces an error, until -std is added to get
3350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3351 array size at least. It's necessary to write '\x00'==0 to get something
3352 that's true only with -std. */
3353int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3354
3355/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3356 inside strings and character constants. */
3357#define FOO(x) 'x'
3358int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3359
3360int test (int i, double x);
3361struct s1 {int (*f) (int a);};
3362struct s2 {int (*f) (double a);};
3363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3364int argc;
3365char **argv;
3366int
3367main ()
3368{
3369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3376do
3377 CC="$ac_save_CC $ac_arg"
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_cv_prog_cc_c89=$ac_arg
3380fi
3381rm -f core conftest.err conftest.$ac_objext
3382 test "x$ac_cv_prog_cc_c89" != "xno" && break
3383done
3384rm -f conftest.$ac_ext
3385CC=$ac_save_CC
3386
3387fi
3388# AC_CACHE_VAL
3389case "x$ac_cv_prog_cc_c89" in
3390 x)
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3392$as_echo "none needed" >&6; } ;;
3393 xno)
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3395$as_echo "unsupported" >&6; } ;;
3396 *)
3397 CC="$CC $ac_cv_prog_cc_c89"
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3399$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3400esac
3401if test "x$ac_cv_prog_cc_c89" != xno; then :
3402
3403fi
3404
3405ac_ext=c
3406ac_cpp='$CPP $CPPFLAGS'
3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411ac_aux_dir=
3412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3413 if test -f "$ac_dir/install-sh"; then
3414 ac_aux_dir=$ac_dir
3415 ac_install_sh="$ac_aux_dir/install-sh -c"
3416 break
3417 elif test -f "$ac_dir/install.sh"; then
3418 ac_aux_dir=$ac_dir
3419 ac_install_sh="$ac_aux_dir/install.sh -c"
3420 break
3421 elif test -f "$ac_dir/shtool"; then
3422 ac_aux_dir=$ac_dir
3423 ac_install_sh="$ac_aux_dir/shtool install -c"
3424 break
3425 fi
3426done
3427if test -z "$ac_aux_dir"; then
3428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3429fi
3430
3431# These three variables are undocumented and unsupported,
3432# and are intended to be withdrawn in a future Autoconf release.
3433# They can cause serious problems if a builder's source tree is in a directory
3434# whose full name contains unusual characters.
3435ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3436ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3437ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3438
3439
3440# Make sure we can run config.sub.
3441$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3443
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3445$as_echo_n "checking build system type... " >&6; }
3446if ${ac_cv_build+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448else
3449 ac_build_alias=$build_alias
3450test "x$ac_build_alias" = x &&
3451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3452test "x$ac_build_alias" = x &&
3453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3454ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3456
3457fi
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3459$as_echo "$ac_cv_build" >&6; }
3460case $ac_cv_build in
3461*-*-*) ;;
3462*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3463esac
3464build=$ac_cv_build
3465ac_save_IFS=$IFS; IFS='-'
3466set x $ac_cv_build
3467shift
3468build_cpu=$1
3469build_vendor=$2
3470shift; shift
3471# Remember, the first character of IFS is used to create $*,
3472# except with old shells:
3473build_os=$*
3474IFS=$ac_save_IFS
3475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3476
3477
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3479$as_echo_n "checking host system type... " >&6; }
3480if ${ac_cv_host+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482else
3483 if test "x$host_alias" = x; then
3484 ac_cv_host=$ac_cv_build
3485else
3486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3488fi
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3492$as_echo "$ac_cv_host" >&6; }
3493case $ac_cv_host in
3494*-*-*) ;;
3495*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3496esac
3497host=$ac_cv_host
3498ac_save_IFS=$IFS; IFS='-'
3499set x $ac_cv_host
3500shift
3501host_cpu=$1
3502host_vendor=$2
3503shift; shift
3504# Remember, the first character of IFS is used to create $*,
3505# except with old shells:
3506host_os=$*
3507IFS=$ac_save_IFS
3508case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3518$as_echo_n "checking how to run the C preprocessor... " >&6; }
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521 CPP=
3522fi
3523if test -z "$CPP"; then
3524 if ${ac_cv_prog_CPP+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526else
3527 # Double quotes because CPP needs to be expanded
3528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529 do
3530 ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h. */
3541#ifdef __STDC__
3542# include <limits.h>
3543#else
3544# include <assert.h>
3545#endif
3546 Syntax error
3547_ACEOF
3548if ac_fn_c_try_cpp "$LINENO"; then :
3549
3550else
3551 # Broken: fails on valid input.
3552continue
3553fi
3554rm -f conftest.err conftest.i conftest.$ac_ext
3555
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h. */
3560#include <ac_nonexistent.h>
3561_ACEOF
3562if ac_fn_c_try_cpp "$LINENO"; then :
3563 # Broken: success on invalid input.
3564continue
3565else
3566 # Passes both tests.
3567ac_preproc_ok=:
3568break
3569fi
3570rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572done
3573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574rm -f conftest.i conftest.err conftest.$ac_ext
3575if $ac_preproc_ok; then :
3576 break
3577fi
3578
3579 done
3580 ac_cv_prog_CPP=$CPP
3581
3582fi
3583 CPP=$ac_cv_prog_CPP
3584else
3585 ac_cv_prog_CPP=$CPP
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3588$as_echo "$CPP" >&6; }
3589ac_preproc_ok=false
3590for ac_c_preproc_warn_flag in '' yes
3591do
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
3600#ifdef __STDC__
3601# include <limits.h>
3602#else
3603# include <assert.h>
3604#endif
3605 Syntax error
3606_ACEOF
3607if ac_fn_c_try_cpp "$LINENO"; then :
3608
3609else
3610 # Broken: fails on valid input.
3611continue
3612fi
3613rm -f conftest.err conftest.i conftest.$ac_ext
3614
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h. */
3619#include <ac_nonexistent.h>
3620_ACEOF
3621if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3623continue
3624else
3625 # Passes both tests.
3626ac_preproc_ok=:
3627break
3628fi
3629rm -f conftest.err conftest.i conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.i conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then :
3635
3636else
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details" "$LINENO" 5; }
3641fi
3642
3643ac_ext=c
3644ac_cpp='$CPP $CPPFLAGS'
3645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3651$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3652if ${ac_cv_path_GREP+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654else
3655 if test -z "$GREP"; then
3656 ac_path_GREP_found=false
3657 # Loop through the user's path and test for each of PROGNAME-LIST
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 as_fn_executable_p "$ac_path_GREP" || continue
3667# Check for GNU ac_path_GREP and select it if it is found.
3668 # Check for GNU $ac_path_GREP
3669case `"$ac_path_GREP" --version 2>&1` in
3670*GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672*)
3673 ac_count=0
3674 $as_echo_n 0123456789 >"conftest.in"
3675 while :
3676 do
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
3680 $as_echo 'GREP' >> "conftest.nl"
3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3683 as_fn_arith $ac_count + 1 && ac_count=$as_val
3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
3688 fi
3689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693esac
3694
3695 $ac_path_GREP_found && break 3
3696 done
3697 done
3698 done
3699IFS=$as_save_IFS
3700 if test -z "$ac_cv_path_GREP"; then
3701 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3702 fi
3703else
3704 ac_cv_path_GREP=$GREP
3705fi
3706
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3709$as_echo "$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3711
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3714$as_echo_n "checking for egrep... " >&6; }
3715if ${ac_cv_path_EGREP+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717else
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3720 else
3721 if test -z "$EGREP"; then
3722 ac_path_EGREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in egrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3732 as_fn_executable_p "$ac_path_EGREP" || continue
3733# Check for GNU ac_path_EGREP and select it if it is found.
3734 # Check for GNU $ac_path_EGREP
3735case `"$ac_path_EGREP" --version 2>&1` in
3736*GNU*)
3737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3738*)
3739 ac_count=0
3740 $as_echo_n 0123456789 >"conftest.in"
3741 while :
3742 do
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 $as_echo 'EGREP' >> "conftest.nl"
3747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 as_fn_arith $ac_count + 1 && ac_count=$as_val
3750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_EGREP="$ac_path_EGREP"
3753 ac_path_EGREP_max=$ac_count
3754 fi
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3757 done
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759esac
3760
3761 $ac_path_EGREP_found && break 3
3762 done
3763 done
3764 done
3765IFS=$as_save_IFS
3766 if test -z "$ac_cv_path_EGREP"; then
3767 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3768 fi
3769else
3770 ac_cv_path_EGREP=$EGREP
3771fi
3772
3773 fi
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3776$as_echo "$ac_cv_path_EGREP" >&6; }
3777 EGREP="$ac_cv_path_EGREP"
3778
3779
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3781$as_echo_n "checking for ANSI C header files... " >&6; }
3782if ${ac_cv_header_stdc+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787#include <stdlib.h>
3788#include <stdarg.h>
3789#include <string.h>
3790#include <float.h>
3791
3792int
3793main ()
3794{
3795
3796 ;
3797 return 0;
3798}
3799_ACEOF
3800if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_header_stdc=yes
3802else
3803 ac_cv_header_stdc=no
3804fi
3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806
3807if test $ac_cv_header_stdc = yes; then
3808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h. */
3811#include <string.h>
3812
3813_ACEOF
3814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815 $EGREP "memchr" >/dev/null 2>&1; then :
3816
3817else
3818 ac_cv_header_stdc=no
3819fi
3820rm -f conftest*
3821
3822fi
3823
3824if test $ac_cv_header_stdc = yes; then
3825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h. */
3828#include <stdlib.h>
3829
3830_ACEOF
3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "free" >/dev/null 2>&1; then :
3833
3834else
3835 ac_cv_header_stdc=no
3836fi
3837rm -f conftest*
3838
3839fi
3840
3841if test $ac_cv_header_stdc = yes; then
3842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3843 if test "$cross_compiling" = yes; then :
3844 :
3845else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h. */
3848#include <ctype.h>
3849#include <stdlib.h>
3850#if ((' ' & 0x0FF) == 0x020)
3851# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3853#else
3854# define ISLOWER(c) \
3855 (('a' <= (c) && (c) <= 'i') \
3856 || ('j' <= (c) && (c) <= 'r') \
3857 || ('s' <= (c) && (c) <= 'z'))
3858# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3859#endif
3860
3861#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3862int
3863main ()
3864{
3865 int i;
3866 for (i = 0; i < 256; i++)
3867 if (XOR (islower (i), ISLOWER (i))
3868 || toupper (i) != TOUPPER (i))
3869 return 2;
3870 return 0;
3871}
3872_ACEOF
3873if ac_fn_c_try_run "$LINENO"; then :
3874
3875else
3876 ac_cv_header_stdc=no
3877fi
3878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3879 conftest.$ac_objext conftest.beam conftest.$ac_ext
3880fi
3881
3882fi
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3885$as_echo "$ac_cv_header_stdc" >&6; }
3886if test $ac_cv_header_stdc = yes; then
3887
3888$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3889
3890fi
3891
3892# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3894 inttypes.h stdint.h unistd.h
3895do :
3896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3898"
3899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3900 cat >>confdefs.h <<_ACEOF
3901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902_ACEOF
3903
3904fi
3905
3906done
3907
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3910$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3911if ${ac_cv_c_bigendian+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913else
3914 ac_cv_c_bigendian=unknown
3915 # See if we're dealing with a universal compiler.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918#ifndef __APPLE_CC__
3919 not a universal capable compiler
3920 #endif
3921 typedef int dummy;
3922
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"; then :
3925
3926 # Check for potential -arch flags. It is not universal unless
3927 # there are at least two -arch flags with different values.
3928 ac_arch=
3929 ac_prev=
3930 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3931 if test -n "$ac_prev"; then
3932 case $ac_word in
3933 i?86 | x86_64 | ppc | ppc64)
3934 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3935 ac_arch=$ac_word
3936 else
3937 ac_cv_c_bigendian=universal
3938 break
3939 fi
3940 ;;
3941 esac
3942 ac_prev=
3943 elif test "x$ac_word" = "x-arch"; then
3944 ac_prev=arch
3945 fi
3946 done
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 if test $ac_cv_c_bigendian = unknown; then
3950 # See if sys/param.h defines the BYTE_ORDER macro.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953#include <sys/types.h>
3954 #include <sys/param.h>
3955
3956int
3957main ()
3958{
3959#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3960 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3961 && LITTLE_ENDIAN)
3962 bogus endian macros
3963 #endif
3964
3965 ;
3966 return 0;
3967}
3968_ACEOF
3969if ac_fn_c_try_compile "$LINENO"; then :
3970 # It does; now see whether it defined to BIG_ENDIAN or not.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h. */
3973#include <sys/types.h>
3974 #include <sys/param.h>
3975
3976int
3977main ()
3978{
3979#if BYTE_ORDER != BIG_ENDIAN
3980 not big endian
3981 #endif
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_c_bigendian=yes
3989else
3990 ac_cv_c_bigendian=no
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 if test $ac_cv_c_bigendian = unknown; then
3997 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h. */
4000#include <limits.h>
4001
4002int
4003main ()
4004{
4005#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4006 bogus endian macros
4007 #endif
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013if ac_fn_c_try_compile "$LINENO"; then :
4014 # It does; now see whether it defined to _BIG_ENDIAN or not.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h. */
4017#include <limits.h>
4018
4019int
4020main ()
4021{
4022#ifndef _BIG_ENDIAN
4023 not big endian
4024 #endif
4025
4026 ;
4027 return 0;
4028}
4029_ACEOF
4030if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_c_bigendian=yes
4032else
4033 ac_cv_c_bigendian=no
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039 if test $ac_cv_c_bigendian = unknown; then
4040 # Compile a test program.
4041 if test "$cross_compiling" = yes; then :
4042 # Try to guess by grepping values from an object file.
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
4045short int ascii_mm[] =
4046 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4047 short int ascii_ii[] =
4048 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4049 int use_ascii (int i) {
4050 return ascii_mm[i] + ascii_ii[i];
4051 }
4052 short int ebcdic_ii[] =
4053 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4054 short int ebcdic_mm[] =
4055 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4056 int use_ebcdic (int i) {
4057 return ebcdic_mm[i] + ebcdic_ii[i];
4058 }
4059 extern int foo;
4060
4061int
4062main ()
4063{
4064return use_ascii (foo) == use_ebcdic (foo);
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_compile "$LINENO"; then :
4070 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4071 ac_cv_c_bigendian=yes
4072 fi
4073 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4074 if test "$ac_cv_c_bigendian" = unknown; then
4075 ac_cv_c_bigendian=no
4076 else
4077 # finding both strings is unlikely to happen, but who knows?
4078 ac_cv_c_bigendian=unknown
4079 fi
4080 fi
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086$ac_includes_default
4087int
4088main ()
4089{
4090
4091 /* Are we little or big endian? From Harbison&Steele. */
4092 union
4093 {
4094 long int l;
4095 char c[sizeof (long int)];
4096 } u;
4097 u.l = 1;
4098 return u.c[sizeof (long int) - 1] == 1;
4099
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104if ac_fn_c_try_run "$LINENO"; then :
4105 ac_cv_c_bigendian=no
4106else
4107 ac_cv_c_bigendian=yes
4108fi
4109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4110 conftest.$ac_objext conftest.beam conftest.$ac_ext
4111fi
4112
4113 fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4116$as_echo "$ac_cv_c_bigendian" >&6; }
4117 case $ac_cv_c_bigendian in #(
4118 yes)
4119 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4120;; #(
4121 no)
4122 ;; #(
4123 universal)
4124
4125$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4126
4127 ;; #(
4128 *)
4129 as_fn_error $? "unknown endianness
4130 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4131 esac
4132
4133
4134# Checks for programs.
4135for ac_prog in gawk mawk nawk awk
4136do
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138set dummy $ac_prog; ac_word=$2
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if ${ac_cv_prog_AWK+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143else
4144 if test -n "$AWK"; then
4145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 ac_cv_prog_AWK="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158done
4159 done
4160IFS=$as_save_IFS
4161
4162fi
4163fi
4164AWK=$ac_cv_prog_AWK
4165if test -n "$AWK"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4167$as_echo "$AWK" >&6; }
4168else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
4171fi
4172
4173
4174 test -n "$AWK" && break
4175done
4176
4177ac_ext=c
4178ac_cpp='$CPP $CPPFLAGS'
4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4183$as_echo_n "checking how to run the C preprocessor... " >&6; }
4184# On Suns, sometimes $CPP names a directory.
4185if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187fi
4188if test -z "$CPP"; then
4189 if ${ac_cv_prog_CPP+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 # Double quotes because CPP needs to be expanded
4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 do
4195 ac_preproc_ok=false
4196for ac_c_preproc_warn_flag in '' yes
4197do
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h. */
4206#ifdef __STDC__
4207# include <limits.h>
4208#else
4209# include <assert.h>
4210#endif
4211 Syntax error
4212_ACEOF
4213if ac_fn_c_try_cpp "$LINENO"; then :
4214
4215else
4216 # Broken: fails on valid input.
4217continue
4218fi
4219rm -f conftest.err conftest.i conftest.$ac_ext
4220
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225#include <ac_nonexistent.h>
4226_ACEOF
4227if ac_fn_c_try_cpp "$LINENO"; then :
4228 # Broken: success on invalid input.
4229continue
4230else
4231 # Passes both tests.
4232ac_preproc_ok=:
4233break
4234fi
4235rm -f conftest.err conftest.i conftest.$ac_ext
4236
4237done
4238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4239rm -f conftest.i conftest.err conftest.$ac_ext
4240if $ac_preproc_ok; then :
4241 break
4242fi
4243
4244 done
4245 ac_cv_prog_CPP=$CPP
4246
4247fi
4248 CPP=$ac_cv_prog_CPP
4249else
4250 ac_cv_prog_CPP=$CPP
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4253$as_echo "$CPP" >&6; }
4254ac_preproc_ok=false
4255for ac_c_preproc_warn_flag in '' yes
4256do
4257 # Use a header file that comes with gcc, so configuring glibc
4258 # with a fresh cross-compiler works.
4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 # <limits.h> exists even on freestanding compilers.
4261 # On the NeXT, cc -E runs the code through the compiler's parser,
4262 # not just through cpp. "Syntax error" is here to catch this case.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h. */
4265#ifdef __STDC__
4266# include <limits.h>
4267#else
4268# include <assert.h>
4269#endif
4270 Syntax error
4271_ACEOF
4272if ac_fn_c_try_cpp "$LINENO"; then :
4273
4274else
4275 # Broken: fails on valid input.
4276continue
4277fi
4278rm -f conftest.err conftest.i conftest.$ac_ext
4279
4280 # OK, works on sane cases. Now check whether nonexistent headers
4281 # can be detected and how.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h. */
4284#include <ac_nonexistent.h>
4285_ACEOF
4286if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: success on invalid input.
4288continue
4289else
4290 # Passes both tests.
4291ac_preproc_ok=:
4292break
4293fi
4294rm -f conftest.err conftest.i conftest.$ac_ext
4295
4296done
4297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298rm -f conftest.i conftest.err conftest.$ac_ext
4299if $ac_preproc_ok; then :
4300
4301else
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4305See \`config.log' for more details" "$LINENO" 5; }
4306fi
4307
4308ac_ext=c
4309ac_cpp='$CPP $CPPFLAGS'
4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
4314if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4316set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
4319if ${ac_cv_prog_RANLIB+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 if test -n "$RANLIB"; then
4323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337 done
4338IFS=$as_save_IFS
4339
4340fi
4341fi
4342RANLIB=$ac_cv_prog_RANLIB
4343if test -n "$RANLIB"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4345$as_echo "$RANLIB" >&6; }
4346else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351
4352fi
4353if test -z "$ac_cv_prog_RANLIB"; then
4354 ac_ct_RANLIB=$RANLIB
4355 # Extract the first word of "ranlib", so it can be a program name with args.
4356set dummy ranlib; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358$as_echo_n "checking for $ac_word... " >&6; }
4359if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 if test -n "$ac_ct_RANLIB"; then
4363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_ac_ct_RANLIB="ranlib"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377 done
4378IFS=$as_save_IFS
4379
4380fi
4381fi
4382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4383if test -n "$ac_ct_RANLIB"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4385$as_echo "$ac_ct_RANLIB" >&6; }
4386else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388$as_echo "no" >&6; }
4389fi
4390
4391 if test "x$ac_ct_RANLIB" = x; then
4392 RANLIB=":"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395yes:)
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398ac_tool_warned=yes ;;
4399esac
4400 RANLIB=$ac_ct_RANLIB
4401 fi
4402else
4403 RANLIB="$ac_cv_prog_RANLIB"
4404fi
4405
4406# Find a good install program. We prefer a C program (faster),
4407# so one script is as good as another. But avoid the broken or
4408# incompatible versions:
4409# SysV /etc/install, /usr/sbin/install
4410# SunOS /usr/etc/install
4411# IRIX /sbin/install
4412# AIX /bin/install
4413# AmigaOS /C/install, which installs bootblocks on floppy discs
4414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4415# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4417# OS/2's system install, which has a completely different semantic
4418# ./install, which can be erroneously created by make from ./install.sh.
4419# Reject install programs that cannot install multiple files.
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4421$as_echo_n "checking for a BSD-compatible install... " >&6; }
4422if test -z "$INSTALL"; then
4423if ${ac_cv_path_install+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 # Account for people who put trailing slashes in PATH elements.
4432case $as_dir/ in #((
4433 ./ | .// | /[cC]/* | \
4434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4436 /usr/ucb/* ) ;;
4437 *)
4438 # OSF1 and SCO ODT 3.0 have their own names for install.
4439 # Don't use installbsd from OSF since it installs stuff as root
4440 # by default.
4441 for ac_prog in ginstall scoinst install; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4444 if test $ac_prog = install &&
4445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4446 # AIX install. It has an incompatible calling convention.
4447 :
4448 elif test $ac_prog = install &&
4449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4450 # program-specific install script used by HP pwplus--don't use.
4451 :
4452 else
4453 rm -rf conftest.one conftest.two conftest.dir
4454 echo one > conftest.one
4455 echo two > conftest.two
4456 mkdir conftest.dir
4457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4458 test -s conftest.one && test -s conftest.two &&
4459 test -s conftest.dir/conftest.one &&
4460 test -s conftest.dir/conftest.two
4461 then
4462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4463 break 3
4464 fi
4465 fi
4466 fi
4467 done
4468 done
4469 ;;
4470esac
4471
4472 done
4473IFS=$as_save_IFS
4474
4475rm -rf conftest.one conftest.two conftest.dir
4476
4477fi
4478 if test "${ac_cv_path_install+set}" = set; then
4479 INSTALL=$ac_cv_path_install
4480 else
4481 # As a last resort, use the slow shell script. Don't cache a
4482 # value for INSTALL within a source directory, because that will
4483 # break other packages using the cache if that directory is
4484 # removed, or if the value is a relative name.
4485 INSTALL=$ac_install_sh
4486 fi
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4489$as_echo "$INSTALL" >&6; }
4490
4491# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4492# It thinks the first close brace ends the variable substitution.
4493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4494
4495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4496
4497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4500$as_echo_n "checking for egrep... " >&6; }
4501if ${ac_cv_path_EGREP+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 if test -z "$EGREP"; then
4508 ac_path_EGREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in egrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4518 as_fn_executable_p "$ac_path_EGREP" || continue
4519# Check for GNU ac_path_EGREP and select it if it is found.
4520 # Check for GNU $ac_path_EGREP
4521case `"$ac_path_EGREP" --version 2>&1` in
4522*GNU*)
4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524*)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'EGREP' >> "conftest.nl"
4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_EGREP="$ac_path_EGREP"
4539 ac_path_EGREP_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545esac
4546
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4550 done
4551IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_EGREP"; then
4553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 fi
4555else
4556 ac_cv_path_EGREP=$EGREP
4557fi
4558
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4562$as_echo "$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4567$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4568if test -z "$MKDIR_P"; then
4569 if ${ac_cv_path_mkdir+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in mkdir gmkdir; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4581 'mkdir (GNU coreutils) '* | \
4582 'mkdir (coreutils) '* | \
4583 'mkdir (fileutils) '4.1*)
4584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4585 break 3;;
4586 esac
4587 done
4588 done
4589 done
4590IFS=$as_save_IFS
4591
4592fi
4593
4594 test -d ./--version && rmdir ./--version
4595 if test "${ac_cv_path_mkdir+set}" = set; then
4596 MKDIR_P="$ac_cv_path_mkdir -p"
4597 else
4598 # As a last resort, use the slow shell script. Don't cache a
4599 # value for MKDIR_P within a source directory, because that will
4600 # break other packages using the cache if that directory is
4601 # removed, or if the value is a relative name.
4602 MKDIR_P="$ac_install_sh -d"
4603 fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4606$as_echo "$MKDIR_P" >&6; }
4607
4608if test -n "$ac_tool_prefix"; then
4609 for ac_prog in ar
4610 do
4611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if ${ac_cv_prog_AR+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 if test -n "$AR"; then
4619 ac_cv_prog_AR="$AR" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633 done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638AR=$ac_cv_prog_AR
4639if test -n "$AR"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4641$as_echo "$AR" >&6; }
4642else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648 test -n "$AR" && break
4649 done
4650fi
4651if test -z "$AR"; then
4652 ac_ct_AR=$AR
4653 for ac_prog in ar
4654do
4655 # Extract the first word of "$ac_prog", so it can be a program name with args.
4656set dummy $ac_prog; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if ${ac_cv_prog_ac_ct_AR+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661else
4662 if test -n "$ac_ct_AR"; then
4663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_prog_ac_ct_AR="$ac_prog"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677 done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682ac_ct_AR=$ac_cv_prog_ac_ct_AR
4683if test -n "$ac_ct_AR"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4685$as_echo "$ac_ct_AR" >&6; }
4686else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691
4692 test -n "$ac_ct_AR" && break
4693done
4694
4695 if test "x$ac_ct_AR" = x; then
4696 AR=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 AR=$ac_ct_AR
4705 fi
4706fi
4707
4708# Extract the first word of "cat", so it can be a program name with args.
4709set dummy cat; ac_word=$2
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if ${ac_cv_path_CAT+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 case $CAT in
4716 [\\/]* | ?:[\\/]*)
4717 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4718 ;;
4719 *)
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732 done
4733IFS=$as_save_IFS
4734
4735 ;;
4736esac
4737fi
4738CAT=$ac_cv_path_CAT
4739if test -n "$CAT"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4741$as_echo "$CAT" >&6; }
4742else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745fi
4746
4747
4748# Extract the first word of "kill", so it can be a program name with args.
4749set dummy kill; ac_word=$2
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if ${ac_cv_path_KILL+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754else
4755 case $KILL in
4756 [\\/]* | ?:[\\/]*)
4757 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4758 ;;
4759 *)
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771done
4772 done
4773IFS=$as_save_IFS
4774
4775 ;;
4776esac
4777fi
4778KILL=$ac_cv_path_KILL
4779if test -n "$KILL"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4781$as_echo "$KILL" >&6; }
4782else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787
4788# Extract the first word of "sed", so it can be a program name with args.
4789set dummy sed; ac_word=$2
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if ${ac_cv_path_SED+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794else
4795 case $SED in
4796 [\\/]* | ?:[\\/]*)
4797 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4798 ;;
4799 *)
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811done
4812 done
4813IFS=$as_save_IFS
4814
4815 ;;
4816esac
4817fi
4818SED=$ac_cv_path_SED
4819if test -n "$SED"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4821$as_echo "$SED" >&6; }
4822else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827
4828# Extract the first word of "ent", so it can be a program name with args.
4829set dummy ent; ac_word=$2
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if ${ac_cv_path_ENT+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834else
4835 case $ENT in
4836 [\\/]* | ?:[\\/]*)
4837 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4838 ;;
4839 *)
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4850 fi
4851done
4852 done
4853IFS=$as_save_IFS
4854
4855 ;;
4856esac
4857fi
4858ENT=$ac_cv_path_ENT
4859if test -n "$ENT"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4861$as_echo "$ENT" >&6; }
4862else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
4865fi
4866
4867
4868
4869# Extract the first word of "bash", so it can be a program name with args.
4870set dummy bash; ac_word=$2
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872$as_echo_n "checking for $ac_word... " >&6; }
4873if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875else
4876 case $TEST_MINUS_S_SH in
4877 [\\/]* | ?:[\\/]*)
4878 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4879 ;;
4880 *)
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892done
4893 done
4894IFS=$as_save_IFS
4895
4896 ;;
4897esac
4898fi
4899TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4900if test -n "$TEST_MINUS_S_SH"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4902$as_echo "$TEST_MINUS_S_SH" >&6; }
4903else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906fi
4907
4908
4909# Extract the first word of "ksh", so it can be a program name with args.
4910set dummy ksh; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 case $TEST_MINUS_S_SH in
4917 [\\/]* | ?:[\\/]*)
4918 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4919 ;;
4920 *)
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932done
4933 done
4934IFS=$as_save_IFS
4935
4936 ;;
4937esac
4938fi
4939TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4940if test -n "$TEST_MINUS_S_SH"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4942$as_echo "$TEST_MINUS_S_SH" >&6; }
4943else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946fi
4947
4948
4949# Extract the first word of "sh", so it can be a program name with args.
4950set dummy sh; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4954 $as_echo_n "(cached) " >&6
4955else
4956 case $TEST_MINUS_S_SH in
4957 [\\/]* | ?:[\\/]*)
4958 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4959 ;;
4960 *)
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973 done
4974IFS=$as_save_IFS
4975
4976 ;;
4977esac
4978fi
4979TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4980if test -n "$TEST_MINUS_S_SH"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4982$as_echo "$TEST_MINUS_S_SH" >&6; }
4983else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989# Extract the first word of "sh", so it can be a program name with args.
4990set dummy sh; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if ${ac_cv_path_SH+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995else
4996 case $SH in
4997 [\\/]* | ?:[\\/]*)
4998 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4999 ;;
5000 *)
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012done
5013 done
5014IFS=$as_save_IFS
5015
5016 ;;
5017esac
5018fi
5019SH=$ac_cv_path_SH
5020if test -n "$SH"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5022$as_echo "$SH" >&6; }
5023else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025$as_echo "no" >&6; }
5026fi
5027
5028
5029# Extract the first word of "groff", so it can be a program name with args.
5030set dummy groff; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
5033if ${ac_cv_path_GROFF+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035else
5036 case $GROFF in
5037 [\\/]* | ?:[\\/]*)
5038 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5039 ;;
5040 *)
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052done
5053 done
5054IFS=$as_save_IFS
5055
5056 ;;
5057esac
5058fi
5059GROFF=$ac_cv_path_GROFF
5060if test -n "$GROFF"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5062$as_echo "$GROFF" >&6; }
5063else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068
5069# Extract the first word of "nroff", so it can be a program name with args.
5070set dummy nroff; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if ${ac_cv_path_NROFF+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075else
5076 case $NROFF in
5077 [\\/]* | ?:[\\/]*)
5078 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
5079 ;;
5080 *)
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092done
5093 done
5094IFS=$as_save_IFS
5095
5096 ;;
5097esac
5098fi
5099NROFF=$ac_cv_path_NROFF
5100if test -n "$NROFF"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5102$as_echo "$NROFF" >&6; }
5103else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108
5109# Extract the first word of "mandoc", so it can be a program name with args.
5110set dummy mandoc; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_path_MANDOC+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 case $MANDOC in
5117 [\\/]* | ?:[\\/]*)
5118 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5119 ;;
5120 *)
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136 ;;
5137esac
5138fi
5139MANDOC=$ac_cv_path_MANDOC
5140if test -n "$MANDOC"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5142$as_echo "$MANDOC" >&6; }
5143else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149TEST_SHELL=sh
5150
5151
5152if test "x$MANDOC" != "x" ; then
5153 MANFMT="$MANDOC"
5154elif test "x$NROFF" != "x" ; then
5155 MANFMT="$NROFF -mandoc"
5156elif test "x$GROFF" != "x" ; then
5157 MANFMT="$GROFF -mandoc -Tascii"
5158else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5160$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5161 MANFMT="false"
5162fi
5163
5164
5165# Extract the first word of "groupadd", so it can be a program name with args.
5166set dummy groupadd; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
5169if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171else
5172 case $PATH_GROUPADD_PROG in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189 done
5190IFS=$as_save_IFS
5191
5192 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5193 ;;
5194esac
5195fi
5196PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5197if test -n "$PATH_GROUPADD_PROG"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5199$as_echo "$PATH_GROUPADD_PROG" >&6; }
5200else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205
5206# Extract the first word of "useradd", so it can be a program name with args.
5207set dummy useradd; ac_word=$2
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 case $PATH_USERADD_PROG in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230 done
5231IFS=$as_save_IFS
5232
5233 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5234 ;;
5235esac
5236fi
5237PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5238if test -n "$PATH_USERADD_PROG"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5240$as_echo "$PATH_USERADD_PROG" >&6; }
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244fi
5245
5246
5247# Extract the first word of "pkgmk", so it can be a program name with args.
5248set dummy pkgmk; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
5251if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253else
5254 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5255 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269 done
5270IFS=$as_save_IFS
5271
5272 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5273fi
5274fi
5275MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5276if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5278$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5279else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281$as_echo "no" >&6; }
5282fi
5283
5284
5285if test -x /sbin/sh; then
5286 STARTUP_SCRIPT_SHELL=/sbin/sh
5287
5288else
5289 STARTUP_SCRIPT_SHELL=/bin/sh
5290
5291fi
5292
5293# System features
5294# Check whether --enable-largefile was given.
5295if test "${enable_largefile+set}" = set; then :
5296 enableval=$enable_largefile;
5297fi
5298
5299if test "$enable_largefile" != no; then
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5302$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5303if ${ac_cv_sys_largefile_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 ac_cv_sys_largefile_CC=no
5307 if test "$GCC" != yes; then
5308 ac_save_CC=$CC
5309 while :; do
5310 # IRIX 6.2 and later do not support large files by default,
5311 # so use the C compiler's -n32 option if that helps.
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h. */
5314#include <sys/types.h>
5315 /* Check that off_t can represent 2**63 - 1 correctly.
5316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5317 since some C++ compilers masquerading as C compilers
5318 incorrectly reject 9223372036854775807. */
5319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5321 && LARGE_OFF_T % 2147483647 == 1)
5322 ? 1 : -1];
5323int
5324main ()
5325{
5326
5327 ;
5328 return 0;
5329}
5330_ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 break
5333fi
5334rm -f core conftest.err conftest.$ac_objext
5335 CC="$CC -n32"
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 ac_cv_sys_largefile_CC=' -n32'; break
5338fi
5339rm -f core conftest.err conftest.$ac_objext
5340 break
5341 done
5342 CC=$ac_save_CC
5343 rm -f conftest.$ac_ext
5344 fi
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5347$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5348 if test "$ac_cv_sys_largefile_CC" != no; then
5349 CC=$CC$ac_cv_sys_largefile_CC
5350 fi
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5353$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5354if ${ac_cv_sys_file_offset_bits+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 while :; do
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360#include <sys/types.h>
5361 /* Check that off_t can represent 2**63 - 1 correctly.
5362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5363 since some C++ compilers masquerading as C compilers
5364 incorrectly reject 9223372036854775807. */
5365#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5367 && LARGE_OFF_T % 2147483647 == 1)
5368 ? 1 : -1];
5369int
5370main ()
5371{
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_sys_file_offset_bits=no; break
5379fi
5380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#define _FILE_OFFSET_BITS 64
5384#include <sys/types.h>
5385 /* Check that off_t can represent 2**63 - 1 correctly.
5386 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5387 since some C++ compilers masquerading as C compilers
5388 incorrectly reject 9223372036854775807. */
5389#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5390 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5391 && LARGE_OFF_T % 2147483647 == 1)
5392 ? 1 : -1];
5393int
5394main ()
5395{
5396
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_sys_file_offset_bits=64; break
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_cv_sys_file_offset_bits=unknown
5406 break
5407done
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5410$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5411case $ac_cv_sys_file_offset_bits in #(
5412 no | unknown) ;;
5413 *)
5414cat >>confdefs.h <<_ACEOF
5415#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5416_ACEOF
5417;;
5418esac
5419rm -rf conftest*
5420 if test $ac_cv_sys_file_offset_bits = unknown; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5422$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5423if ${ac_cv_sys_large_files+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 while :; do
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h. */
5429#include <sys/types.h>
5430 /* Check that off_t can represent 2**63 - 1 correctly.
5431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5432 since some C++ compilers masquerading as C compilers
5433 incorrectly reject 9223372036854775807. */
5434#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5436 && LARGE_OFF_T % 2147483647 == 1)
5437 ? 1 : -1];
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_sys_large_files=no; break
5448fi
5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452#define _LARGE_FILES 1
5453#include <sys/types.h>
5454 /* Check that off_t can represent 2**63 - 1 correctly.
5455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5456 since some C++ compilers masquerading as C compilers
5457 incorrectly reject 9223372036854775807. */
5458#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5460 && LARGE_OFF_T % 2147483647 == 1)
5461 ? 1 : -1];
5462int
5463main ()
5464{
5465
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_sys_large_files=1; break
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 ac_cv_sys_large_files=unknown
5475 break
5476done
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5479$as_echo "$ac_cv_sys_large_files" >&6; }
5480case $ac_cv_sys_large_files in #(
5481 no | unknown) ;;
5482 *)
5483cat >>confdefs.h <<_ACEOF
5484#define _LARGE_FILES $ac_cv_sys_large_files
5485_ACEOF
5486;;
5487esac
5488rm -rf conftest*
5489 fi
5490
5491
5492fi
5493
5494
5495if test -z "$AR" ; then
5496 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5497fi
5498
5499# Extract the first word of "passwd", so it can be a program name with args.
5500set dummy passwd; ac_word=$2
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502$as_echo_n "checking for $ac_word... " >&6; }
5503if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505else
5506 case $PATH_PASSWD_PROG in
5507 [\\/]* | ?:[\\/]*)
5508 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5509 ;;
5510 *)
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523 done
5524IFS=$as_save_IFS
5525
5526 ;;
5527esac
5528fi
5529PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5530if test -n "$PATH_PASSWD_PROG"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5532$as_echo "$PATH_PASSWD_PROG" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539if test ! -z "$PATH_PASSWD_PROG" ; then
5540
5541cat >>confdefs.h <<_ACEOF
5542#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5543_ACEOF
5544
5545fi
5546
5547LD="$CC"
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5551$as_echo_n "checking for inline... " >&6; }
5552if ${ac_cv_c_inline+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554else
5555 ac_cv_c_inline=no
5556for ac_kw in inline __inline__ __inline; do
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h. */
5559#ifndef __cplusplus
5560typedef int foo_t;
5561static $ac_kw foo_t static_foo () {return 0; }
5562$ac_kw foo_t foo () {return 0; }
5563#endif
5564
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_c_inline=$ac_kw
5568fi
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 test "$ac_cv_c_inline" != no && break
5571done
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5575$as_echo "$ac_cv_c_inline" >&6; }
5576
5577case $ac_cv_c_inline in
5578 inline | yes) ;;
5579 *)
5580 case $ac_cv_c_inline in
5581 no) ac_val=;;
5582 *) ac_val=$ac_cv_c_inline;;
5583 esac
5584 cat >>confdefs.h <<_ACEOF
5585#ifndef __cplusplus
5586#define inline $ac_val
5587#endif
5588_ACEOF
5589 ;;
5590esac
5591
5592
5593ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5594"
5595if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5596 have_llong_max=1
5597fi
5598
5599ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5600 #include <sys/types.h>
5601 #include <sys/param.h>
5602 #include <dev/systrace.h>
5603
5604"
5605if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5606 have_systr_policy_kill=1
5607fi
5608
5609ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5610 #include <sys/types.h>
5611 #include <sys/resource.h>
5612
5613"
5614if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5615
5616$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5617
5618fi
5619
5620ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5621 #include <sys/types.h>
5622 #include <linux/prctl.h>
5623
5624"
5625if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5626 have_linux_no_new_privs=1
5627fi
5628
5629
5630openssl=yes
5631
5632# Check whether --with-openssl was given.
5633if test "${with_openssl+set}" = set; then :
5634 withval=$with_openssl; if test "x$withval" = "xno" ; then
5635 openssl=no
5636 fi
5637
5638
5639fi
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5
5642$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; }
5643if test "x$openssl" = "xyes" ; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645$as_echo "yes" >&6; }
5646
5647cat >>confdefs.h <<_ACEOF
5648#define WITH_OPENSSL 1
5649_ACEOF
5650
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656use_stack_protector=1
5657use_toolchain_hardening=1
5658
5659# Check whether --with-stackprotect was given.
5660if test "${with_stackprotect+set}" = set; then :
5661 withval=$with_stackprotect;
5662 if test "x$withval" = "xno"; then
5663 use_stack_protector=0
5664 fi
5665fi
5666
5667
5668# Check whether --with-hardening was given.
5669if test "${with_hardening+set}" = set; then :
5670 withval=$with_hardening;
5671 if test "x$withval" = "xno"; then
5672 use_toolchain_hardening=0
5673 fi
5674fi
5675
5676
5677# We use -Werror for the tests only so that we catch warnings like "this is
5678# on by default" for things like -fPIE.
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5680$as_echo_n "checking if $CC supports -Werror... " >&6; }
5681saved_CFLAGS="$CFLAGS"
5682CFLAGS="$CFLAGS -Werror"
5683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685int main(void) { return 0; }
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689$as_echo "yes" >&6; }
5690 WERROR="-Werror"
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694 WERROR=""
5695
5696fi
5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698CFLAGS="$saved_CFLAGS"
5699
5700if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5701 {
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5
5703$as_echo_n "checking if $CC supports compile flag -pipe... " >&6; }
5704 saved_CFLAGS="$CFLAGS"
5705 CFLAGS="$CFLAGS $WERROR -pipe"
5706 _define_flag=""
5707 test "x$_define_flag" = "x" && _define_flag="-pipe"
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h. */
5710
5711#include <stdlib.h>
5712#include <stdio.h>
5713int main(int argc, char **argv) {
5714 /* Some math to catch -ftrapv problems in the toolchain */
5715 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5716 float l = i * 2.1;
5717 double m = l / 0.5;
5718 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5719 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5720 exit(0);
5721}
5722
5723_ACEOF
5724if ac_fn_c_try_compile "$LINENO"; then :
5725
5726if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5727then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730 CFLAGS="$saved_CFLAGS"
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
5734 CFLAGS="$saved_CFLAGS $_define_flag"
5735fi
5736else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739 CFLAGS="$saved_CFLAGS"
5740
5741fi
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743}
5744 {
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5746$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5747 saved_CFLAGS="$CFLAGS"
5748 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5749 _define_flag=""
5750 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h. */
5753
5754#include <stdlib.h>
5755#include <stdio.h>
5756int main(int argc, char **argv) {
5757 /* Some math to catch -ftrapv problems in the toolchain */
5758 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5759 float l = i * 2.1;
5760 double m = l / 0.5;
5761 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5762 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5763 exit(0);
5764}
5765
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768
5769if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5770then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772$as_echo "no" >&6; }
5773 CFLAGS="$saved_CFLAGS"
5774else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776$as_echo "yes" >&6; }
5777 CFLAGS="$saved_CFLAGS $_define_flag"
5778fi
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782 CFLAGS="$saved_CFLAGS"
5783
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786}
5787 {
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5789$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5790 saved_CFLAGS="$CFLAGS"
5791 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5792 _define_flag=""
5793 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h. */
5796
5797#include <stdlib.h>
5798#include <stdio.h>
5799int main(int argc, char **argv) {
5800 /* Some math to catch -ftrapv problems in the toolchain */
5801 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5802 float l = i * 2.1;
5803 double m = l / 0.5;
5804 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5805 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5806 exit(0);
5807}
5808
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"; then :
5811
5812if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5813then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816 CFLAGS="$saved_CFLAGS"
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819$as_echo "yes" >&6; }
5820 CFLAGS="$saved_CFLAGS $_define_flag"
5821fi
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825 CFLAGS="$saved_CFLAGS"
5826
5827fi
5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829}
5830 {
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5832$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5833 saved_CFLAGS="$CFLAGS"
5834 CFLAGS="$CFLAGS $WERROR -Wall"
5835 _define_flag=""
5836 test "x$_define_flag" = "x" && _define_flag="-Wall"
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839
5840#include <stdlib.h>
5841#include <stdio.h>
5842int main(int argc, char **argv) {
5843 /* Some math to catch -ftrapv problems in the toolchain */
5844 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5845 float l = i * 2.1;
5846 double m = l / 0.5;
5847 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5848 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5849 exit(0);
5850}
5851
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"; then :
5854
5855if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5856then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859 CFLAGS="$saved_CFLAGS"
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862$as_echo "yes" >&6; }
5863 CFLAGS="$saved_CFLAGS $_define_flag"
5864fi
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868 CFLAGS="$saved_CFLAGS"
5869
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872}
5873 {
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5875$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5876 saved_CFLAGS="$CFLAGS"
5877 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5878 _define_flag=""
5879 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882
5883#include <stdlib.h>
5884#include <stdio.h>
5885int main(int argc, char **argv) {
5886 /* Some math to catch -ftrapv problems in the toolchain */
5887 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5888 float l = i * 2.1;
5889 double m = l / 0.5;
5890 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5891 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5892 exit(0);
5893}
5894
5895_ACEOF
5896if ac_fn_c_try_compile "$LINENO"; then :
5897
5898if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5899then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902 CFLAGS="$saved_CFLAGS"
5903else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905$as_echo "yes" >&6; }
5906 CFLAGS="$saved_CFLAGS $_define_flag"
5907fi
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911 CFLAGS="$saved_CFLAGS"
5912
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915}
5916 {
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5918$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5919 saved_CFLAGS="$CFLAGS"
5920 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5921 _define_flag=""
5922 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
5925
5926#include <stdlib.h>
5927#include <stdio.h>
5928int main(int argc, char **argv) {
5929 /* Some math to catch -ftrapv problems in the toolchain */
5930 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5931 float l = i * 2.1;
5932 double m = l / 0.5;
5933 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5934 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5935 exit(0);
5936}
5937
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940
5941if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5942then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945 CFLAGS="$saved_CFLAGS"
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5948$as_echo "yes" >&6; }
5949 CFLAGS="$saved_CFLAGS $_define_flag"
5950fi
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954 CFLAGS="$saved_CFLAGS"
5955
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958}
5959 {
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5961$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5962 saved_CFLAGS="$CFLAGS"
5963 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5964 _define_flag=""
5965 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h. */
5968
5969#include <stdlib.h>
5970#include <stdio.h>
5971int main(int argc, char **argv) {
5972 /* Some math to catch -ftrapv problems in the toolchain */
5973 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5974 float l = i * 2.1;
5975 double m = l / 0.5;
5976 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5977 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5978 exit(0);
5979}
5980
5981_ACEOF
5982if ac_fn_c_try_compile "$LINENO"; then :
5983
5984if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
5985then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988 CFLAGS="$saved_CFLAGS"
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5991$as_echo "yes" >&6; }
5992 CFLAGS="$saved_CFLAGS $_define_flag"
5993fi
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997 CFLAGS="$saved_CFLAGS"
5998
5999fi
6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001}
6002 {
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
6004$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
6005 saved_CFLAGS="$CFLAGS"
6006 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6007 _define_flag=""
6008 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h. */
6011
6012#include <stdlib.h>
6013#include <stdio.h>
6014int main(int argc, char **argv) {
6015 /* Some math to catch -ftrapv problems in the toolchain */
6016 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6017 float l = i * 2.1;
6018 double m = l / 0.5;
6019 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6020 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6021 exit(0);
6022}
6023
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"; then :
6026
6027if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6028then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030$as_echo "no" >&6; }
6031 CFLAGS="$saved_CFLAGS"
6032else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6034$as_echo "yes" >&6; }
6035 CFLAGS="$saved_CFLAGS $_define_flag"
6036fi
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040 CFLAGS="$saved_CFLAGS"
6041
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044}
6045 {
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6047$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
6048 saved_CFLAGS="$CFLAGS"
6049 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6050 _define_flag=""
6051 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058 /* Some math to catch -ftrapv problems in the toolchain */
6059 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060 float l = i * 2.1;
6061 double m = l / 0.5;
6062 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064 exit(0);
6065}
6066
6067_ACEOF
6068if ac_fn_c_try_compile "$LINENO"; then :
6069
6070if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6071then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
6074 CFLAGS="$saved_CFLAGS"
6075else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6077$as_echo "yes" >&6; }
6078 CFLAGS="$saved_CFLAGS $_define_flag"
6079fi
6080else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083 CFLAGS="$saved_CFLAGS"
6084
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087}
6088 {
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
6090$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6091 saved_CFLAGS="$CFLAGS"
6092 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6093 _define_flag="-Wno-pointer-sign"
6094 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h. */
6097
6098#include <stdlib.h>
6099#include <stdio.h>
6100int main(int argc, char **argv) {
6101 /* Some math to catch -ftrapv problems in the toolchain */
6102 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6103 float l = i * 2.1;
6104 double m = l / 0.5;
6105 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6106 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6107 exit(0);
6108}
6109
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"; then :
6112
6113if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6114then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117 CFLAGS="$saved_CFLAGS"
6118else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120$as_echo "yes" >&6; }
6121 CFLAGS="$saved_CFLAGS $_define_flag"
6122fi
6123else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126 CFLAGS="$saved_CFLAGS"
6127
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130}
6131 {
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6133$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6134 saved_CFLAGS="$CFLAGS"
6135 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6136 _define_flag="-Wno-unused-result"
6137 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h. */
6140
6141#include <stdlib.h>
6142#include <stdio.h>
6143int main(int argc, char **argv) {
6144 /* Some math to catch -ftrapv problems in the toolchain */
6145 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6146 float l = i * 2.1;
6147 double m = l / 0.5;
6148 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6149 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6150 exit(0);
6151}
6152
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155
6156if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6157then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160 CFLAGS="$saved_CFLAGS"
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6163$as_echo "yes" >&6; }
6164 CFLAGS="$saved_CFLAGS $_define_flag"
6165fi
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6170
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173}
6174 {
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6176$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6177 saved_CFLAGS="$CFLAGS"
6178 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6179 _define_flag=""
6180 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h. */
6183
6184#include <stdlib.h>
6185#include <stdio.h>
6186int main(int argc, char **argv) {
6187 /* Some math to catch -ftrapv problems in the toolchain */
6188 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6189 float l = i * 2.1;
6190 double m = l / 0.5;
6191 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6192 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6193 exit(0);
6194}
6195
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198
6199if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6200then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202$as_echo "no" >&6; }
6203 CFLAGS="$saved_CFLAGS"
6204else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6206$as_echo "yes" >&6; }
6207 CFLAGS="$saved_CFLAGS $_define_flag"
6208fi
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212 CFLAGS="$saved_CFLAGS"
6213
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216}
6217 if test "x$use_toolchain_hardening" = "x1"; then
6218 # Cygwin GCC 7.x allows thunking on the CLI, but produces non-working
6219 # code. Unfortunately you only notice this at link time.
6220 case "$host" in
6221 *-*-cygwin*) ;;
6222 *)
6223 {
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mfunction-return=thunk" >&5
6225$as_echo_n "checking if $CC supports compile flag -mfunction-return=thunk... " >&6; }
6226 saved_CFLAGS="$CFLAGS"
6227 CFLAGS="$CFLAGS $WERROR -mfunction-return=thunk"
6228 _define_flag=""
6229 test "x$_define_flag" = "x" && _define_flag="-mfunction-return=thunk"
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h. */
6232
6233#include <stdlib.h>
6234#include <stdio.h>
6235int main(int argc, char **argv) {
6236 /* Some math to catch -ftrapv problems in the toolchain */
6237 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6238 float l = i * 2.1;
6239 double m = l / 0.5;
6240 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6241 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6242 exit(0);
6243}
6244
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247
6248if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6249then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252 CFLAGS="$saved_CFLAGS"
6253else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6255$as_echo "yes" >&6; }
6256 CFLAGS="$saved_CFLAGS $_define_flag"
6257fi
6258else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261 CFLAGS="$saved_CFLAGS"
6262
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265} # gcc
6266 {
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mindirect-branch=thunk" >&5
6268$as_echo_n "checking if $CC supports compile flag -mindirect-branch=thunk... " >&6; }
6269 saved_CFLAGS="$CFLAGS"
6270 CFLAGS="$CFLAGS $WERROR -mindirect-branch=thunk"
6271 _define_flag=""
6272 test "x$_define_flag" = "x" && _define_flag="-mindirect-branch=thunk"
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h. */
6275
6276#include <stdlib.h>
6277#include <stdio.h>
6278int main(int argc, char **argv) {
6279 /* Some math to catch -ftrapv problems in the toolchain */
6280 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6281 float l = i * 2.1;
6282 double m = l / 0.5;
6283 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6284 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6285 exit(0);
6286}
6287
6288_ACEOF
6289if ac_fn_c_try_compile "$LINENO"; then :
6290
6291if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6292then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
6295 CFLAGS="$saved_CFLAGS"
6296else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6298$as_echo "yes" >&6; }
6299 CFLAGS="$saved_CFLAGS $_define_flag"
6300fi
6301else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303$as_echo "no" >&6; }
6304 CFLAGS="$saved_CFLAGS"
6305
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308} # gcc
6309 ;;
6310 esac
6311 {
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -mretpoline" >&5
6313$as_echo_n "checking if $CC supports compile flag -mretpoline... " >&6; }
6314 saved_CFLAGS="$CFLAGS"
6315 CFLAGS="$CFLAGS $WERROR -mretpoline"
6316 _define_flag=""
6317 test "x$_define_flag" = "x" && _define_flag="-mretpoline"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321#include <stdlib.h>
6322#include <stdio.h>
6323int main(int argc, char **argv) {
6324 /* Some math to catch -ftrapv problems in the toolchain */
6325 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6326 float l = i * 2.1;
6327 double m = l / 0.5;
6328 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6329 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6330 exit(0);
6331}
6332
6333_ACEOF
6334if ac_fn_c_try_compile "$LINENO"; then :
6335
6336if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6337then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340 CFLAGS="$saved_CFLAGS"
6341else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343$as_echo "yes" >&6; }
6344 CFLAGS="$saved_CFLAGS $_define_flag"
6345fi
6346else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349 CFLAGS="$saved_CFLAGS"
6350
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353} # clang
6354 {
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,retpolineplt" >&5
6356$as_echo_n "checking if $LD supports link flag -Wl,-z,retpolineplt... " >&6; }
6357 saved_LDFLAGS="$LDFLAGS"
6358 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,retpolineplt"
6359 _define_flag=""
6360 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,retpolineplt"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363
6364#include <stdlib.h>
6365#include <stdio.h>
6366int main(int argc, char **argv) {
6367 /* Some math to catch -ftrapv problems in the toolchain */
6368 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6369 float l = i * 2.1;
6370 double m = l / 0.5;
6371 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6372 long long p = n * o;
6373 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6374 exit(0);
6375}
6376
6377_ACEOF
6378if ac_fn_c_try_link "$LINENO"; then :
6379
6380if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6381then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384 LDFLAGS="$saved_LDFLAGS"
6385else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6387$as_echo "yes" >&6; }
6388 LDFLAGS="$saved_LDFLAGS $_define_flag"
6389fi
6390else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393 LDFLAGS="$saved_LDFLAGS"
6394
6395fi
6396rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398}
6399 {
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6401$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6402 saved_CFLAGS="$CFLAGS"
6403 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6404 _define_flag=""
6405 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h. */
6408
6409#include <stdlib.h>
6410#include <stdio.h>
6411int main(int argc, char **argv) {
6412 /* Some math to catch -ftrapv problems in the toolchain */
6413 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6414 float l = i * 2.1;
6415 double m = l / 0.5;
6416 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6417 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6418 exit(0);
6419}
6420
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423
6424if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6425then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
6428 CFLAGS="$saved_CFLAGS"
6429else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431$as_echo "yes" >&6; }
6432 CFLAGS="$saved_CFLAGS $_define_flag"
6433fi
6434else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437 CFLAGS="$saved_CFLAGS"
6438
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441}
6442 {
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6444$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6445 saved_LDFLAGS="$LDFLAGS"
6446 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6447 _define_flag=""
6448 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450/* end confdefs.h. */
6451
6452#include <stdlib.h>
6453#include <stdio.h>
6454int main(int argc, char **argv) {
6455 /* Some math to catch -ftrapv problems in the toolchain */
6456 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6457 float l = i * 2.1;
6458 double m = l / 0.5;
6459 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6460 long long p = n * o;
6461 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6462 exit(0);
6463}
6464
6465_ACEOF
6466if ac_fn_c_try_link "$LINENO"; then :
6467
6468if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6469then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472 LDFLAGS="$saved_LDFLAGS"
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475$as_echo "yes" >&6; }
6476 LDFLAGS="$saved_LDFLAGS $_define_flag"
6477fi
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481 LDFLAGS="$saved_LDFLAGS"
6482
6483fi
6484rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6486}
6487 {
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6489$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6490 saved_LDFLAGS="$LDFLAGS"
6491 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6492 _define_flag=""
6493 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h. */
6496
6497#include <stdlib.h>
6498#include <stdio.h>
6499int main(int argc, char **argv) {
6500 /* Some math to catch -ftrapv problems in the toolchain */
6501 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6502 float l = i * 2.1;
6503 double m = l / 0.5;
6504 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6505 long long p = n * o;
6506 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6507 exit(0);
6508}
6509
6510_ACEOF
6511if ac_fn_c_try_link "$LINENO"; then :
6512
6513if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6514then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517 LDFLAGS="$saved_LDFLAGS"
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6520$as_echo "yes" >&6; }
6521 LDFLAGS="$saved_LDFLAGS $_define_flag"
6522fi
6523else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526 LDFLAGS="$saved_LDFLAGS"
6527
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531}
6532 {
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6534$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6535 saved_LDFLAGS="$LDFLAGS"
6536 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6537 _define_flag=""
6538 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h. */
6541
6542#include <stdlib.h>
6543#include <stdio.h>
6544int main(int argc, char **argv) {
6545 /* Some math to catch -ftrapv problems in the toolchain */
6546 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6547 float l = i * 2.1;
6548 double m = l / 0.5;
6549 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6550 long long p = n * o;
6551 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6552 exit(0);
6553}
6554
6555_ACEOF
6556if ac_fn_c_try_link "$LINENO"; then :
6557
6558if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6559then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562 LDFLAGS="$saved_LDFLAGS"
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6565$as_echo "yes" >&6; }
6566 LDFLAGS="$saved_LDFLAGS $_define_flag"
6567fi
6568else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571 LDFLAGS="$saved_LDFLAGS"
6572
6573fi
6574rm -f core conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
6576}
6577 # NB. -ftrapv expects certain support functions to be present in
6578 # the compiler library (libgcc or similar) to detect integer operations
6579 # that can overflow. We must check that the result of enabling it
6580 # actually links. The test program compiled/linked includes a number
6581 # of integer operations that should exercise this.
6582 {
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6584$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6585 saved_CFLAGS="$CFLAGS"
6586 CFLAGS="$CFLAGS $WERROR -ftrapv"
6587 _define_flag=""
6588 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h. */
6591
6592#include <stdlib.h>
6593#include <stdio.h>
6594int main(int argc, char **argv) {
6595 /* Some math to catch -ftrapv problems in the toolchain */
6596 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6597 float l = i * 2.1;
6598 double m = l / 0.5;
6599 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6600 long long int p = n * o;
6601 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6602 exit(0);
6603}
6604
6605_ACEOF
6606if ac_fn_c_try_link "$LINENO"; then :
6607
6608if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
6609then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612 CFLAGS="$saved_CFLAGS"
6613else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615$as_echo "yes" >&6; }
6616 CFLAGS="$saved_CFLAGS $_define_flag"
6617fi
6618else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621 CFLAGS="$saved_CFLAGS"
6622
6623fi
6624rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626}
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6629$as_echo_n "checking gcc version... " >&6; }
6630 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6631 case $GCC_VER in
6632 1.*) no_attrib_nonnull=1 ;;
6633 2.8* | 2.9*)
6634 no_attrib_nonnull=1
6635 ;;
6636 2.*) no_attrib_nonnull=1 ;;
6637 *) ;;
6638 esac
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6640$as_echo "$GCC_VER" >&6; }
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6643$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6644 saved_CFLAGS="$CFLAGS"
6645 CFLAGS="$CFLAGS -fno-builtin-memset"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h. */
6648 #include <string.h>
6649int
6650main ()
6651{
6652 char b[10]; memset(b, 0, sizeof(b));
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_link "$LINENO"; then :
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6659$as_echo "yes" >&6; }
6660else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663 CFLAGS="$saved_CFLAGS"
6664
6665fi
6666rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6668
6669 # -fstack-protector-all doesn't always work for some GCC versions
6670 # and/or platforms, so we test if we can. If it's not supported
6671 # on a given platform gcc will emit a warning so we use -Werror.
6672 if test "x$use_stack_protector" = "x1"; then
6673 for t in -fstack-protector-strong -fstack-protector-all \
6674 -fstack-protector; do
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6676$as_echo_n "checking if $CC supports $t... " >&6; }
6677 saved_CFLAGS="$CFLAGS"
6678 saved_LDFLAGS="$LDFLAGS"
6679 CFLAGS="$CFLAGS $t -Werror"
6680 LDFLAGS="$LDFLAGS $t -Werror"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h. */
6683 #include <stdio.h>
6684int
6685main ()
6686{
6687
6688 char x[256];
6689 snprintf(x, sizeof(x), "XXX");
6690
6691 ;
6692 return 0;
6693}
6694_ACEOF
6695if ac_fn_c_try_link "$LINENO"; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697$as_echo "yes" >&6; }
6698 CFLAGS="$saved_CFLAGS $t"
6699 LDFLAGS="$saved_LDFLAGS $t"
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6701$as_echo_n "checking if $t works... " >&6; }
6702 if test "$cross_compiling" = yes; then :
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6704$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6705 break
6706
6707else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h. */
6710 #include <stdio.h>
6711int
6712main ()
6713{
6714
6715 char x[256];
6716 snprintf(x, sizeof(x), "XXX");
6717
6718 ;
6719 return 0;
6720}
6721_ACEOF
6722if ac_fn_c_try_run "$LINENO"; then :
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6724$as_echo "yes" >&6; }
6725 break
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6731 conftest.$ac_objext conftest.beam conftest.$ac_ext
6732fi
6733
6734
6735else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738
6739fi
6740rm -f core conftest.err conftest.$ac_objext \
6741 conftest$ac_exeext conftest.$ac_ext
6742 CFLAGS="$saved_CFLAGS"
6743 LDFLAGS="$saved_LDFLAGS"
6744 done
6745 fi
6746
6747 if test -z "$have_llong_max"; then
6748 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6749 unset ac_cv_have_decl_LLONG_MAX
6750 saved_CFLAGS="$CFLAGS"
6751 CFLAGS="$CFLAGS -std=gnu99"
6752 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6753
6754"
6755if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6756 have_llong_max=1
6757else
6758 CFLAGS="$saved_CFLAGS"
6759fi
6760
6761 fi
6762fi
6763
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6765$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h. */
6768
6769#include <stdlib.h>
6770__attribute__((__unused__)) static void foo(void){return;}
6771int
6772main ()
6773{
6774 exit(0);
6775 ;
6776 return 0;
6777}
6778_ACEOF
6779if ac_fn_c_try_compile "$LINENO"; then :
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6781$as_echo "yes" >&6; }
6782else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
6785
6786$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6787
6788
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ prototype args" >&5
6793$as_echo_n "checking if compiler allows __attribute__ prototype args... " >&6; }
6794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h. */
6796
6797#include <stdlib.h>
6798typedef void foo(const char *, ...) __attribute__((format(printf, 1, 2)));
6799int
6800main ()
6801{
6802 exit(0);
6803 ;
6804 return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_compile "$LINENO"; then :
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6809$as_echo "yes" >&6; }
6810else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
6813
6814$as_echo "#define NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 1" >>confdefs.h
6815
6816
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819
6820if test "x$no_attrib_nonnull" != "x1" ; then
6821
6822$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6823
6824fi
6825
6826
6827# Check whether --with-rpath was given.
6828if test "${with_rpath+set}" = set; then :
6829 withval=$with_rpath;
6830 if test "x$withval" = "xno" ; then
6831 need_dash_r=""
6832 fi
6833 if test "x$withval" = "xyes" ; then
6834 need_dash_r=1
6835 fi
6836
6837
6838fi
6839
6840
6841# Allow user to specify flags
6842
6843# Check whether --with-cflags was given.
6844if test "${with_cflags+set}" = set; then :
6845 withval=$with_cflags;
6846 if test -n "$withval" && test "x$withval" != "xno" && \
6847 test "x${withval}" != "xyes"; then
6848 CFLAGS="$CFLAGS $withval"
6849 fi
6850
6851
6852fi
6853
6854
6855
6856# Check whether --with-cflags-after was given.
6857if test "${with_cflags_after+set}" = set; then :
6858 withval=$with_cflags_after;
6859 if test -n "$withval" && test "x$withval" != "xno" && \
6860 test "x${withval}" != "xyes"; then
6861 CFLAGS_AFTER="$withval"
6862 fi
6863
6864
6865fi
6866
6867
6868# Check whether --with-cppflags was given.
6869if test "${with_cppflags+set}" = set; then :
6870 withval=$with_cppflags;
6871 if test -n "$withval" && test "x$withval" != "xno" && \
6872 test "x${withval}" != "xyes"; then
6873 CPPFLAGS="$CPPFLAGS $withval"
6874 fi
6875
6876
6877fi
6878
6879
6880# Check whether --with-ldflags was given.
6881if test "${with_ldflags+set}" = set; then :
6882 withval=$with_ldflags;
6883 if test -n "$withval" && test "x$withval" != "xno" && \
6884 test "x${withval}" != "xyes"; then
6885 LDFLAGS="$LDFLAGS $withval"
6886 fi
6887
6888
6889fi
6890
6891
6892# Check whether --with-ldflags-after was given.
6893if test "${with_ldflags_after+set}" = set; then :
6894 withval=$with_ldflags_after;
6895 if test -n "$withval" && test "x$withval" != "xno" && \
6896 test "x${withval}" != "xyes"; then
6897 LDFLAGS_AFTER="$withval"
6898 fi
6899
6900
6901fi
6902
6903
6904# Check whether --with-libs was given.
6905if test "${with_libs+set}" = set; then :
6906 withval=$with_libs;
6907 if test -n "$withval" && test "x$withval" != "xno" && \
6908 test "x${withval}" != "xyes"; then
6909 LIBS="$LIBS $withval"
6910 fi
6911
6912
6913fi
6914
6915
6916# Check whether --with-Werror was given.
6917if test "${with_Werror+set}" = set; then :
6918 withval=$with_Werror;
6919 if test -n "$withval" && test "x$withval" != "xno"; then
6920 werror_flags="-Werror"
6921 if test "x${withval}" != "xyes"; then
6922 werror_flags="$withval"
6923 fi
6924 fi
6925
6926
6927fi
6928
6929
6930for ac_header in \
6931 blf.h \
6932 bstring.h \
6933 crypt.h \
6934 crypto/sha2.h \
6935 dirent.h \
6936 endian.h \
6937 elf.h \
6938 err.h \
6939 features.h \
6940 fcntl.h \
6941 floatingpoint.h \
6942 getopt.h \
6943 glob.h \
6944 ia.h \
6945 iaf.h \
6946 ifaddrs.h \
6947 inttypes.h \
6948 langinfo.h \
6949 limits.h \
6950 locale.h \
6951 login.h \
6952 maillock.h \
6953 ndir.h \
6954 net/if_tun.h \
6955 netdb.h \
6956 netgroup.h \
6957 pam/pam_appl.h \
6958 paths.h \
6959 poll.h \
6960 pty.h \
6961 readpassphrase.h \
6962 rpc/types.h \
6963 security/pam_appl.h \
6964 sha2.h \
6965 shadow.h \
6966 stddef.h \
6967 stdint.h \
6968 string.h \
6969 strings.h \
6970 sys/bitypes.h \
6971 sys/bsdtty.h \
6972 sys/cdefs.h \
6973 sys/dir.h \
6974 sys/file.h \
6975 sys/mman.h \
6976 sys/label.h \
6977 sys/ndir.h \
6978 sys/poll.h \
6979 sys/prctl.h \
6980 sys/pstat.h \
6981 sys/ptrace.h \
6982 sys/random.h \
6983 sys/select.h \
6984 sys/stat.h \
6985 sys/stream.h \
6986 sys/stropts.h \
6987 sys/strtio.h \
6988 sys/statvfs.h \
6989 sys/sysmacros.h \
6990 sys/time.h \
6991 sys/timers.h \
6992 sys/vfs.h \
6993 time.h \
6994 tmpdir.h \
6995 ttyent.h \
6996 ucred.h \
6997 unistd.h \
6998 usersec.h \
6999 util.h \
7000 utime.h \
7001 utmp.h \
7002 utmpx.h \
7003 vis.h \
7004 wchar.h \
7005
7006do :
7007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7008ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7010 cat >>confdefs.h <<_ACEOF
7011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012_ACEOF
7013
7014fi
7015
7016done
7017
7018
7019# On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h]
7020# to be included first.
7021for ac_header in sys/audit.h
7022do :
7023 ac_fn_c_check_header_compile "$LINENO" "sys/audit.h" "ac_cv_header_sys_audit_h" "
7024#ifdef HAVE_SYS_TIME_H
7025# include <sys/time.h>
7026#endif
7027#ifdef HAVE_SYS_TYPES_H
7028# include <sys/types.h>
7029#endif
7030#ifdef HAVE_SYS_LABEL_H
7031# include <sys/label.h>
7032#endif
7033
7034"
7035if test "x$ac_cv_header_sys_audit_h" = xyes; then :
7036 cat >>confdefs.h <<_ACEOF
7037#define HAVE_SYS_AUDIT_H 1
7038_ACEOF
7039
7040fi
7041
7042done
7043
7044
7045# sys/capsicum.h requires sys/types.h
7046for ac_header in sys/capsicum.h
7047do :
7048 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "
7049#ifdef HAVE_SYS_TYPES_H
7050# include <sys/types.h>
7051#endif
7052
7053"
7054if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
7055 cat >>confdefs.h <<_ACEOF
7056#define HAVE_SYS_CAPSICUM_H 1
7057_ACEOF
7058
7059fi
7060
7061done
7062
7063
7064# net/route.h requires sys/socket.h and sys/types.h.
7065# sys/sysctl.h also requires sys/param.h
7066for ac_header in net/route.h sys/sysctl.h
7067do :
7068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7070#ifdef HAVE_SYS_TYPES_H
7071# include <sys/types.h>
7072#endif
7073#include <sys/param.h>
7074#include <sys/socket.h>
7075
7076"
7077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7078 cat >>confdefs.h <<_ACEOF
7079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080_ACEOF
7081
7082fi
7083
7084done
7085
7086
7087# lastlog.h requires sys/time.h to be included first on Solaris
7088for ac_header in lastlog.h
7089do :
7090 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
7091#ifdef HAVE_SYS_TIME_H
7092# include <sys/time.h>
7093#endif
7094
7095"
7096if test "x$ac_cv_header_lastlog_h" = xyes; then :
7097 cat >>confdefs.h <<_ACEOF
7098#define HAVE_LASTLOG_H 1
7099_ACEOF
7100
7101fi
7102
7103done
7104
7105
7106# sys/ptms.h requires sys/stream.h to be included first on Solaris
7107for ac_header in sys/ptms.h
7108do :
7109 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
7110#ifdef HAVE_SYS_STREAM_H
7111# include <sys/stream.h>
7112#endif
7113
7114"
7115if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
7116 cat >>confdefs.h <<_ACEOF
7117#define HAVE_SYS_PTMS_H 1
7118_ACEOF
7119
7120fi
7121
7122done
7123
7124
7125# login_cap.h requires sys/types.h on NetBSD
7126for ac_header in login_cap.h
7127do :
7128 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
7129#include <sys/types.h>
7130
7131"
7132if test "x$ac_cv_header_login_cap_h" = xyes; then :
7133 cat >>confdefs.h <<_ACEOF
7134#define HAVE_LOGIN_CAP_H 1
7135_ACEOF
7136
7137fi
7138
7139done
7140
7141
7142# older BSDs need sys/param.h before sys/mount.h
7143for ac_header in sys/mount.h
7144do :
7145 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
7146#include <sys/param.h>
7147
7148"
7149if test "x$ac_cv_header_sys_mount_h" = xyes; then :
7150 cat >>confdefs.h <<_ACEOF
7151#define HAVE_SYS_MOUNT_H 1
7152_ACEOF
7153
7154fi
7155
7156done
7157
7158
7159# Android requires sys/socket.h to be included before sys/un.h
7160for ac_header in sys/un.h
7161do :
7162 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
7163#include <sys/types.h>
7164#include <sys/socket.h>
7165
7166"
7167if test "x$ac_cv_header_sys_un_h" = xyes; then :
7168 cat >>confdefs.h <<_ACEOF
7169#define HAVE_SYS_UN_H 1
7170_ACEOF
7171
7172fi
7173
7174done
7175
7176
7177# Messages for features tested for in target-specific section
7178SIA_MSG="no"
7179SPC_MSG="no"
7180SP_MSG="no"
7181SPP_MSG="no"
7182
7183# Support for Solaris/Illumos privileges (this test is used by both
7184# the --with-solaris-privs option and --with-sandbox=solaris).
7185SOLARIS_PRIVS="no"
7186
7187# Check for some target-specific stuff
7188case "$host" in
7189*-*-aix*)
7190 # Some versions of VAC won't allow macro redefinitions at
7191 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7192 # particularly with older versions of vac or xlc.
7193 # It also throws errors about null macro arguments, but these are
7194 # not fatal.
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
7196$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h. */
7199
7200#define testmacro foo
7201#define testmacro bar
7202int
7203main ()
7204{
7205 exit(0);
7206 ;
7207 return 0;
7208}
7209_ACEOF
7210if ac_fn_c_try_compile "$LINENO"; then :
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7212$as_echo "yes" >&6; }
7213else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215$as_echo "no" >&6; }
7216 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
7217 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7218 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
7219
7220
7221fi
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
7225$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
7226 if (test -z "$blibpath"); then
7227 blibpath="/usr/lib:/lib"
7228 fi
7229 saved_LDFLAGS="$LDFLAGS"
7230 if test "$GCC" = "yes"; then
7231 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
7232 else
7233 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
7234 fi
7235 for tryflags in $flags ;do
7236 if (test -z "$blibflags"); then
7237 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239/* end confdefs.h. */
7240
7241int
7242main ()
7243{
7244
7245 ;
7246 return 0;
7247}
7248_ACEOF
7249if ac_fn_c_try_link "$LINENO"; then :
7250 blibflags=$tryflags
7251fi
7252rm -f core conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254 fi
7255 done
7256 if (test -z "$blibflags"); then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7258$as_echo "not found" >&6; }
7259 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
7262$as_echo "$blibflags" >&6; }
7263 fi
7264 LDFLAGS="$saved_LDFLAGS"
7265 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
7266if test "x$ac_cv_func_authenticate" = xyes; then :
7267
7268$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7269
7270else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
7272$as_echo_n "checking for authenticate in -ls... " >&6; }
7273if ${ac_cv_lib_s_authenticate+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275else
7276 ac_check_lib_save_LIBS=$LIBS
7277LIBS="-ls $LIBS"
7278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h. */
7280
7281/* Override any GCC internal prototype to avoid an error.
7282 Use char because int might match the return type of a GCC
7283 builtin and then its argument prototype would still apply. */
7284#ifdef __cplusplus
7285extern "C"
7286#endif
7287char authenticate ();
7288int
7289main ()
7290{
7291return authenticate ();
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296if ac_fn_c_try_link "$LINENO"; then :
7297 ac_cv_lib_s_authenticate=yes
7298else
7299 ac_cv_lib_s_authenticate=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303LIBS=$ac_check_lib_save_LIBS
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
7306$as_echo "$ac_cv_lib_s_authenticate" >&6; }
7307if test "x$ac_cv_lib_s_authenticate" = xyes; then :
7308 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7309
7310 LIBS="$LIBS -ls"
7311
7312fi
7313
7314
7315fi
7316
7317 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
7318"
7319if test "x$ac_cv_have_decl_authenticate" = xyes; then :
7320 ac_have_decl=1
7321else
7322 ac_have_decl=0
7323fi
7324
7325cat >>confdefs.h <<_ACEOF
7326#define HAVE_DECL_AUTHENTICATE $ac_have_decl
7327_ACEOF
7328ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
7329"
7330if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
7331 ac_have_decl=1
7332else
7333 ac_have_decl=0
7334fi
7335
7336cat >>confdefs.h <<_ACEOF
7337#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
7338_ACEOF
7339ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
7340"
7341if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
7342 ac_have_decl=1
7343else
7344 ac_have_decl=0
7345fi
7346
7347cat >>confdefs.h <<_ACEOF
7348#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
7349_ACEOF
7350ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
7351"
7352if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
7353 ac_have_decl=1
7354else
7355 ac_have_decl=0
7356fi
7357
7358cat >>confdefs.h <<_ACEOF
7359#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
7360_ACEOF
7361ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
7362"
7363if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
7364 ac_have_decl=1
7365else
7366 ac_have_decl=0
7367fi
7368
7369cat >>confdefs.h <<_ACEOF
7370#define HAVE_DECL_SETAUTHDB $ac_have_decl
7371_ACEOF
7372
7373 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
7374
7375"
7376if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
7377 ac_have_decl=1
7378else
7379 ac_have_decl=0
7380fi
7381
7382cat >>confdefs.h <<_ACEOF
7383#define HAVE_DECL_LOGINFAILED $ac_have_decl
7384_ACEOF
7385if test $ac_have_decl = 1; then :
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
7387$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390 #include <usersec.h>
7391int
7392main ()
7393{
7394 (void)loginfailed("user","host","tty",0);
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399if ac_fn_c_try_compile "$LINENO"; then :
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7401$as_echo "yes" >&6; }
7402
7403$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7404
7405else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407$as_echo "no" >&6; }
7408
7409fi
7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411fi
7412
7413 for ac_func in getgrset setauthdb
7414do :
7415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7416ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7417if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7418 cat >>confdefs.h <<_ACEOF
7419#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7420_ACEOF
7421
7422fi
7423done
7424
7425 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7426 #include <fcntl.h>
7427
7428"
7429if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7430
7431$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7432
7433fi
7434
7435 check_for_aix_broken_getaddrinfo=1
7436
7437$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7438
7439
7440$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7441
7442
7443$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7444
7445
7446$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7447
7448
7449$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7450
7451
7452$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7453
7454
7455$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7456
7457
7458$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7459
7460
7461$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7462
7463
7464$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7465
7466
7467$as_echo "#define BROKEN_STRNDUP 1" >>confdefs.h
7468
7469
7470$as_echo "#define BROKEN_STRNLEN 1" >>confdefs.h
7471
7472 ;;
7473*-*-android*)
7474
7475$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7476
7477
7478$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7479
7480 ;;
7481*-*-cygwin*)
7482 check_for_libcrypt_later=1
7483 LIBS="$LIBS /usr/lib/textreadmode.o"
7484
7485$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7486
7487
7488$as_echo "#define USE_PIPES 1" >>confdefs.h
7489
7490
7491$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
7492
7493
7494$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7495
7496
7497$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7498
7499
7500$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7501
7502
7503$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7504
7505
7506$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7507
7508 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7509 # reasons which cause compile warnings, so we disable those warnings.
7510 {
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7512$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7513 saved_CFLAGS="$CFLAGS"
7514 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7515 _define_flag=""
7516 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519
7520#include <stdlib.h>
7521#include <stdio.h>
7522int main(int argc, char **argv) {
7523 /* Some math to catch -ftrapv problems in the toolchain */
7524 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7525 float l = i * 2.1;
7526 double m = l / 0.5;
7527 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7528 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7529 exit(0);
7530}
7531
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534
7535if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
7536then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
7539 CFLAGS="$saved_CFLAGS"
7540else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542$as_echo "yes" >&6; }
7543 CFLAGS="$saved_CFLAGS $_define_flag"
7544fi
7545else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548 CFLAGS="$saved_CFLAGS"
7549
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552}
7553 ;;
7554*-*-dgux*)
7555
7556$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7557
7558 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7559
7560 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7561
7562 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7563
7564 ;;
7565*-*-darwin*)
7566 use_pie=auto
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7568$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7569 if test "$cross_compiling" = yes; then :
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7571$as_echo "assume it is working" >&6; }
7572else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h. */
7575 #include <mach-o/dyld.h>
7576main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7577 exit(0);
7578 else
7579 exit(1);
7580}
7581
7582_ACEOF
7583if ac_fn_c_try_run "$LINENO"; then :
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7585$as_echo "working" >&6; }
7586else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7588$as_echo "buggy" >&6; }
7589
7590$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7591
7592
7593fi
7594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7595 conftest.$ac_objext conftest.beam conftest.$ac_ext
7596fi
7597
7598 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7599
7600 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7601
7602 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7603
7604
7605$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7606
7607
7608cat >>confdefs.h <<_ACEOF
7609#define BIND_8_COMPAT 1
7610_ACEOF
7611
7612
7613$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7614
7615
7616$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7617
7618
7619$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7620
7621
7622 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7623if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7624
7625else
7626
7627$as_echo "#define AU_IPv4 0" >>confdefs.h
7628
7629 #include <bsm/audit.h>
7630
7631$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7632
7633
7634fi
7635
7636
7637$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7638
7639 for ac_func in sandbox_init
7640do :
7641 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7642if test "x$ac_cv_func_sandbox_init" = xyes; then :
7643 cat >>confdefs.h <<_ACEOF
7644#define HAVE_SANDBOX_INIT 1
7645_ACEOF
7646
7647fi
7648done
7649
7650 for ac_header in sandbox.h
7651do :
7652 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7653if test "x$ac_cv_header_sandbox_h" = xyes; then :
7654 cat >>confdefs.h <<_ACEOF
7655#define HAVE_SANDBOX_H 1
7656_ACEOF
7657
7658fi
7659
7660done
7661
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5
7663$as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; }
7664if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666else
7667 ac_check_lib_save_LIBS=$LIBS
7668LIBS="-lsandbox $LIBS"
7669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h. */
7671
7672/* Override any GCC internal prototype to avoid an error.
7673 Use char because int might match the return type of a GCC
7674 builtin and then its argument prototype would still apply. */
7675#ifdef __cplusplus
7676extern "C"
7677#endif
7678char sandbox_apply ();
7679int
7680main ()
7681{
7682return sandbox_apply ();
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_link "$LINENO"; then :
7688 ac_cv_lib_sandbox_sandbox_apply=yes
7689else
7690 ac_cv_lib_sandbox_sandbox_apply=no
7691fi
7692rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694LIBS=$ac_check_lib_save_LIBS
7695fi
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
7697$as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; }
7698if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7699
7700 SSHDLIBS="$SSHDLIBS -lsandbox"
7701
7702fi
7703
7704 ;;
7705*-*-dragonfly*)
7706 SSHDLIBS="$SSHDLIBS -lcrypt"
7707 TEST_MALLOC_OPTIONS="AFGJPRX"
7708 ;;
7709*-*-haiku*)
7710 LIBS="$LIBS -lbsd "
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7712$as_echo_n "checking for socket in -lnetwork... " >&6; }
7713if ${ac_cv_lib_network_socket+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715else
7716 ac_check_lib_save_LIBS=$LIBS
7717LIBS="-lnetwork $LIBS"
7718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h. */
7720
7721/* Override any GCC internal prototype to avoid an error.
7722 Use char because int might match the return type of a GCC
7723 builtin and then its argument prototype would still apply. */
7724#ifdef __cplusplus
7725extern "C"
7726#endif
7727char socket ();
7728int
7729main ()
7730{
7731return socket ();
7732 ;
7733 return 0;
7734}
7735_ACEOF
7736if ac_fn_c_try_link "$LINENO"; then :
7737 ac_cv_lib_network_socket=yes
7738else
7739 ac_cv_lib_network_socket=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743LIBS=$ac_check_lib_save_LIBS
7744fi
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7746$as_echo "$ac_cv_lib_network_socket" >&6; }
7747if test "x$ac_cv_lib_network_socket" = xyes; then :
7748 cat >>confdefs.h <<_ACEOF
7749#define HAVE_LIBNETWORK 1
7750_ACEOF
7751
7752 LIBS="-lnetwork $LIBS"
7753
7754fi
7755
7756 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7757
7758 MANTYPE=man
7759 ;;
7760*-*-hpux*)
7761 # first we define all of the options common to all HP-UX releases
7762 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7763 IPADDR_IN_DISPLAY=yes
7764 $as_echo "#define USE_PIPES 1" >>confdefs.h
7765
7766 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7767
7768
7769$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7770
7771 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7772
7773
7774$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7775
7776 maildir="/var/mail"
7777 LIBS="$LIBS -lsec"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7779$as_echo_n "checking for t_error in -lxnet... " >&6; }
7780if ${ac_cv_lib_xnet_t_error+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lxnet $LIBS"
7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char t_error ();
7795int
7796main ()
7797{
7798return t_error ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_c_try_link "$LINENO"; then :
7804 ac_cv_lib_xnet_t_error=yes
7805else
7806 ac_cv_lib_xnet_t_error=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810LIBS=$ac_check_lib_save_LIBS
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7813$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7814if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7815 cat >>confdefs.h <<_ACEOF
7816#define HAVE_LIBXNET 1
7817_ACEOF
7818
7819 LIBS="-lxnet $LIBS"
7820
7821else
7822 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7823fi
7824
7825
7826 # next, we define all of the options specific to major releases
7827 case "$host" in
7828 *-*-hpux10*)
7829 if test -z "$GCC"; then
7830 CFLAGS="$CFLAGS -Ae"
7831 fi
7832 ;;
7833 *-*-hpux11*)
7834
7835$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7836
7837
7838$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7839
7840
7841$as_echo "#define USE_BTMP 1" >>confdefs.h
7842
7843 check_for_hpux_broken_getaddrinfo=1
7844 check_for_conflicting_getspnam=1
7845 ;;
7846 esac
7847
7848 # lastly, we define options specific to minor releases
7849 case "$host" in
7850 *-*-hpux10.26)
7851
7852$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7853
7854 disable_ptmx_check=yes
7855 LIBS="$LIBS -lsecpw"
7856 ;;
7857 esac
7858 ;;
7859*-*-irix5*)
7860 PATH="$PATH:/usr/etc"
7861
7862$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7863
7864 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7865
7866 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7867
7868 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7869
7870
7871$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7872
7873 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7874
7875 ;;
7876*-*-irix6*)
7877 PATH="$PATH:/usr/etc"
7878
7879$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7880
7881
7882$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7883
7884
7885$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7886
7887 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7888if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7889
7890$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7891
7892fi
7893
7894 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7895
7896 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7897
7898 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7899
7900 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7901
7902
7903$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7904
7905 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7906
7907 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7908
7909 ;;
7910*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7911 check_for_libcrypt_later=1
7912 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7913
7914 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7915
7916 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7917
7918
7919$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7920
7921
7922$as_echo "#define USE_BTMP 1" >>confdefs.h
7923
7924 ;;
7925*-*-linux*)
7926 no_dev_ptmx=1
7927 use_pie=auto
7928 check_for_libcrypt_later=1
7929 check_for_openpty_ctty_bug=1
7930 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE"
7931
7932$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7933
7934
7935$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7936
7937 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7938
7939
7940$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7941
7942
7943$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7944
7945 $as_echo "#define USE_BTMP 1" >>confdefs.h
7946
7947
7948$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7949
7950 inet6_default_4in6=yes
7951 case `uname -r` in
7952 1.*|2.0.*)
7953
7954$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7955
7956 ;;
7957 esac
7958 # tun(4) forwarding compat code
7959 for ac_header in linux/if_tun.h
7960do :
7961 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7962if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7963 cat >>confdefs.h <<_ACEOF
7964#define HAVE_LINUX_IF_TUN_H 1
7965_ACEOF
7966
7967fi
7968
7969done
7970
7971 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7972
7973$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7974
7975
7976$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7977
7978
7979$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7980
7981 fi
7982 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
7983#ifdef HAVE_SYS_TYPES_H
7984# include <sys/types.H>
7985#endif
7986
7987"
7988if test "x$ac_cv_header_linux_if_h" = xyes; then :
7989
7990$as_echo "#define SYS_RDOMAIN_LINUX 1" >>confdefs.h
7991
7992fi
7993
7994
7995 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7996do :
7997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7999"
8000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8001 cat >>confdefs.h <<_ACEOF
8002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003_ACEOF
8004
8005fi
8006
8007done
8008
8009 # Obtain MIPS ABI
8010 case "$host" in
8011 mips*)
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h. */
8014
8015#if _MIPS_SIM != _ABIO32
8016#error
8017#endif
8018
8019int
8020main ()
8021{
8022
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027if ac_fn_c_try_compile "$LINENO"; then :
8028 mips_abi="o32"
8029else
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h. */
8032
8033#if _MIPS_SIM != _ABIN32
8034#error
8035#endif
8036
8037int
8038main ()
8039{
8040
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046 mips_abi="n32"
8047else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h. */
8050
8051#if _MIPS_SIM != _ABI64
8052#error
8053#endif
8054
8055int
8056main ()
8057{
8058
8059 ;
8060 return 0;
8061}
8062_ACEOF
8063if ac_fn_c_try_compile "$LINENO"; then :
8064 mips_abi="n64"
8065else
8066 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
8067
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073
8074fi
8075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 ;;
8077 esac
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
8079$as_echo_n "checking for seccomp architecture... " >&6; }
8080 seccomp_audit_arch=
8081 case "$host" in
8082 x86_64-*)
8083 seccomp_audit_arch=AUDIT_ARCH_X86_64
8084 ;;
8085 i*86-*)
8086 seccomp_audit_arch=AUDIT_ARCH_I386
8087 ;;
8088 arm*-*)
8089 seccomp_audit_arch=AUDIT_ARCH_ARM
8090 ;;
8091 aarch64*-*)
8092 seccomp_audit_arch=AUDIT_ARCH_AARCH64
8093 ;;
8094 s390x-*)
8095 seccomp_audit_arch=AUDIT_ARCH_S390X
8096 ;;
8097 s390-*)
8098 seccomp_audit_arch=AUDIT_ARCH_S390
8099 ;;
8100 powerpc64-*)
8101 seccomp_audit_arch=AUDIT_ARCH_PPC64
8102 ;;
8103 powerpc64le-*)
8104 seccomp_audit_arch=AUDIT_ARCH_PPC64LE
8105 ;;
8106 mips-*)
8107 seccomp_audit_arch=AUDIT_ARCH_MIPS
8108 ;;
8109 mipsel-*)
8110 seccomp_audit_arch=AUDIT_ARCH_MIPSEL
8111 ;;
8112 mips64-*)
8113 case "$mips_abi" in
8114 "n32")
8115 seccomp_audit_arch=AUDIT_ARCH_MIPS64N32
8116 ;;
8117 "n64")
8118 seccomp_audit_arch=AUDIT_ARCH_MIPS64
8119 ;;
8120 esac
8121 ;;
8122 mips64el-*)
8123 case "$mips_abi" in
8124 "n32")
8125 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64N32
8126 ;;
8127 "n64")
8128 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 if test "x$seccomp_audit_arch" != "x" ; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
8135$as_echo "\"$seccomp_audit_arch\"" >&6; }
8136
8137cat >>confdefs.h <<_ACEOF
8138#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
8139_ACEOF
8140
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
8143$as_echo "architecture not supported" >&6; }
8144 fi
8145 ;;
8146mips-sony-bsd|mips-sony-newsos4)
8147
8148$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8149
8150 SONY=1
8151 ;;
8152*-*-netbsd*)
8153 check_for_libcrypt_before=1
8154 if test "x$withval" != "xno" ; then
8155 need_dash_r=1
8156 fi
8157 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
8158
8159$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8160
8161 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8162if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8163
8164else
8165
8166$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8167
8168fi
8169
8170
8171
8172$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
8173
8174 TEST_MALLOC_OPTIONS="AJRX"
8175
8176$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
8177
8178 ;;
8179*-*-freebsd*)
8180 check_for_libcrypt_later=1
8181
8182$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
8183
8184
8185$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
8186
8187 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
8188if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
8189
8190else
8191
8192$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
8193
8194fi
8195
8196
8197
8198$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
8199
8200 TEST_MALLOC_OPTIONS="AJRX"
8201 # Preauth crypto occasionally uses file descriptors for crypto offload
8202 # and will crash if they cannot be opened.
8203
8204$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
8205
8206 ;;
8207*-*-bsdi*)
8208 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8209
8210 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8211
8212 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8213
8214 ;;
8215*-next-*)
8216 conf_lastlog_location="/usr/adm/lastlog"
8217 conf_utmp_location=/etc/utmp
8218 conf_wtmp_location=/usr/adm/wtmp
8219 maildir=/usr/spool/mail
8220
8221$as_echo "#define HAVE_NEXT 1" >>confdefs.h
8222
8223 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
8224
8225 $as_echo "#define USE_PIPES 1" >>confdefs.h
8226
8227
8228$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
8229
8230 ;;
8231*-*-openbsd*)
8232 use_pie=auto
8233
8234$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
8235
8236
8237$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
8238
8239
8240$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
8241
8242
8243$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
8244
8245 TEST_MALLOC_OPTIONS="AFGJPRX"
8246 ;;
8247*-*-solaris*)
8248 if test "x$withval" != "xno" ; then
8249 need_dash_r=1
8250 fi
8251 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8252
8253 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
8254
8255 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
8256
8257
8258$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
8259
8260 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8261
8262 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8263
8264$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8265
8266
8267$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8268
8269
8270$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8271
8272 external_path_file=/etc/default/login
8273 # hardwire lastlog location (can't detect it on some versions)
8274 conf_lastlog_location="/var/adm/lastlog"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
8276$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
8277 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8278 if test "$sol2ver" -ge 8; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8280$as_echo "yes" >&6; }
8281 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
8282
8283
8284$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
8285
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288$as_echo "no" >&6; }
8289 fi
8290 for ac_func in setpflags
8291do :
8292 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
8293if test "x$ac_cv_func_setpflags" = xyes; then :
8294 cat >>confdefs.h <<_ACEOF
8295#define HAVE_SETPFLAGS 1
8296_ACEOF
8297
8298fi
8299done
8300
8301 for ac_func in setppriv
8302do :
8303 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
8304if test "x$ac_cv_func_setppriv" = xyes; then :
8305 cat >>confdefs.h <<_ACEOF
8306#define HAVE_SETPPRIV 1
8307_ACEOF
8308
8309fi
8310done
8311
8312 for ac_func in priv_basicset
8313do :
8314 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset"
8315if test "x$ac_cv_func_priv_basicset" = xyes; then :
8316 cat >>confdefs.h <<_ACEOF
8317#define HAVE_PRIV_BASICSET 1
8318_ACEOF
8319
8320fi
8321done
8322
8323 for ac_header in priv.h
8324do :
8325 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
8326if test "x$ac_cv_header_priv_h" = xyes; then :
8327 cat >>confdefs.h <<_ACEOF
8328#define HAVE_PRIV_H 1
8329_ACEOF
8330
8331fi
8332
8333done
8334
8335
8336# Check whether --with-solaris-contracts was given.
8337if test "${with_solaris_contracts+set}" = set; then :
8338 withval=$with_solaris_contracts;
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
8340$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
8341if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343else
8344 ac_check_lib_save_LIBS=$LIBS
8345LIBS="-lcontract $LIBS"
8346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h. */
8348
8349/* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355char ct_tmpl_activate ();
8356int
8357main ()
8358{
8359return ct_tmpl_activate ();
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365 ac_cv_lib_contract_ct_tmpl_activate=yes
8366else
8367 ac_cv_lib_contract_ct_tmpl_activate=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371LIBS=$ac_check_lib_save_LIBS
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8374$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8375if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
8376
8377$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
8378
8379 LIBS="$LIBS -lcontract"
8380 SPC_MSG="yes"
8381fi
8382
8383
8384fi
8385
8386
8387# Check whether --with-solaris-projects was given.
8388if test "${with_solaris_projects+set}" = set; then :
8389 withval=$with_solaris_projects;
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
8391$as_echo_n "checking for setproject in -lproject... " >&6; }
8392if ${ac_cv_lib_project_setproject+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394else
8395 ac_check_lib_save_LIBS=$LIBS
8396LIBS="-lproject $LIBS"
8397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399
8400/* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply. */
8403#ifdef __cplusplus
8404extern "C"
8405#endif
8406char setproject ();
8407int
8408main ()
8409{
8410return setproject ();
8411 ;
8412 return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_link "$LINENO"; then :
8416 ac_cv_lib_project_setproject=yes
8417else
8418 ac_cv_lib_project_setproject=no
8419fi
8420rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422LIBS=$ac_check_lib_save_LIBS
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
8425$as_echo "$ac_cv_lib_project_setproject" >&6; }
8426if test "x$ac_cv_lib_project_setproject" = xyes; then :
8427
8428$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
8429
8430 LIBS="$LIBS -lproject"
8431 SP_MSG="yes"
8432fi
8433
8434
8435fi
8436
8437
8438# Check whether --with-solaris-privs was given.
8439if test "${with_solaris_privs+set}" = set; then :
8440 withval=$with_solaris_privs;
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5
8442$as_echo_n "checking for Solaris/Illumos privilege support... " >&6; }
8443 if test "x$ac_cv_func_setppriv" = "xyes" -a \
8444 "x$ac_cv_header_priv_h" = "xyes" ; then
8445 SOLARIS_PRIVS=yes
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8447$as_echo "found" >&6; }
8448
8449$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
8450
8451
8452$as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h
8453
8454 SPP_MSG="yes"
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8457$as_echo "not found" >&6; }
8458 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5
8459 fi
8460
8461fi
8462
8463 TEST_SHELL=$SHELL # let configure find us a capable shell
8464 ;;
8465*-*-sunos4*)
8466 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8467 for ac_func in getpwanam
8468do :
8469 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
8470if test "x$ac_cv_func_getpwanam" = xyes; then :
8471 cat >>confdefs.h <<_ACEOF
8472#define HAVE_GETPWANAM 1
8473_ACEOF
8474
8475fi
8476done
8477
8478 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8479
8480 conf_utmp_location=/etc/utmp
8481 conf_wtmp_location=/var/adm/wtmp
8482 conf_lastlog_location=/var/adm/lastlog
8483 $as_echo "#define USE_PIPES 1" >>confdefs.h
8484
8485
8486$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
8487
8488 ;;
8489*-ncr-sysv*)
8490 LIBS="$LIBS -lc89"
8491 $as_echo "#define USE_PIPES 1" >>confdefs.h
8492
8493 $as_echo "#define SSHD_ACQUIRES_CTTY 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*-sni-sysv*)
8503 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8505$as_echo_n "checking for dlsym in -ldl... " >&6; }
8506if ${ac_cv_lib_dl_dlsym+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508else
8509 ac_check_lib_save_LIBS=$LIBS
8510LIBS="-ldl $LIBS"
8511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h. */
8513
8514/* Override any GCC internal prototype to avoid an error.
8515 Use char because int might match the return type of a GCC
8516 builtin and then its argument prototype would still apply. */
8517#ifdef __cplusplus
8518extern "C"
8519#endif
8520char dlsym ();
8521int
8522main ()
8523{
8524return dlsym ();
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_link "$LINENO"; then :
8530 ac_cv_lib_dl_dlsym=yes
8531else
8532 ac_cv_lib_dl_dlsym=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536LIBS=$ac_check_lib_save_LIBS
8537fi
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8539$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8540if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
8541 cat >>confdefs.h <<_ACEOF
8542#define HAVE_LIBDL 1
8543_ACEOF
8544
8545 LIBS="-ldl $LIBS"
8546
8547fi
8548
8549 # -lresolv needs to be at the end of LIBS or DNS lookups break
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
8551$as_echo_n "checking for res_query in -lresolv... " >&6; }
8552if ${ac_cv_lib_resolv_res_query+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554else
8555 ac_check_lib_save_LIBS=$LIBS
8556LIBS="-lresolv $LIBS"
8557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h. */
8559
8560/* Override any GCC internal prototype to avoid an error.
8561 Use char because int might match the return type of a GCC
8562 builtin and then its argument prototype would still apply. */
8563#ifdef __cplusplus
8564extern "C"
8565#endif
8566char res_query ();
8567int
8568main ()
8569{
8570return res_query ();
8571 ;
8572 return 0;
8573}
8574_ACEOF
8575if ac_fn_c_try_link "$LINENO"; then :
8576 ac_cv_lib_resolv_res_query=yes
8577else
8578 ac_cv_lib_resolv_res_query=no
8579fi
8580rm -f core conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8582LIBS=$ac_check_lib_save_LIBS
8583fi
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
8585$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
8586if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
8587 LIBS="$LIBS -lresolv"
8588fi
8589
8590 IPADDR_IN_DISPLAY=yes
8591 $as_echo "#define USE_PIPES 1" >>confdefs.h
8592
8593 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
8594
8595 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8596
8597 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8598
8599 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8600
8601 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8602
8603 external_path_file=/etc/default/login
8604 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8605 # Attention: always take care to bind libsocket and libnsl before libc,
8606 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8607 ;;
8608# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8609*-*-sysv4.2*)
8610 $as_echo "#define USE_PIPES 1" >>confdefs.h
8611
8612 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8613
8614 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8615
8616 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8617
8618
8619$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8620
8621 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8622
8623 TEST_SHELL=$SHELL # let configure find us a capable shell
8624 ;;
8625# UnixWare 7.x, OpenUNIX 8
8626*-*-sysv5*)
8627 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8628
8629$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8630
8631 $as_echo "#define USE_PIPES 1" >>confdefs.h
8632
8633 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8634
8635 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8636
8637 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8638
8639 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8640
8641 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8642
8643 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8644
8645 TEST_SHELL=$SHELL # let configure find us a capable shell
8646 check_for_libcrypt_later=1
8647 case "$host" in
8648 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8649 maildir=/var/spool/mail
8650 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8653$as_echo_n "checking for getluid in -lprot... " >&6; }
8654if ${ac_cv_lib_prot_getluid+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 ac_check_lib_save_LIBS=$LIBS
8658LIBS="-lprot $LIBS"
8659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h. */
8661
8662/* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8665#ifdef __cplusplus
8666extern "C"
8667#endif
8668char getluid ();
8669int
8670main ()
8671{
8672return getluid ();
8673 ;
8674 return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_link "$LINENO"; then :
8678 ac_cv_lib_prot_getluid=yes
8679else
8680 ac_cv_lib_prot_getluid=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8687$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8688if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8689 LIBS="$LIBS -lprot"
8690 for ac_func in getluid setluid
8691do :
8692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8695 cat >>confdefs.h <<_ACEOF
8696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8697_ACEOF
8698
8699fi
8700done
8701
8702
8703fi
8704
8705 ;;
8706 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8707
8708 ;;
8709 esac
8710 ;;
8711*-*-sysv*)
8712 ;;
8713# SCO UNIX and OEM versions of SCO UNIX
8714*-*-sco3.2v4*)
8715 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8716 ;;
8717# SCO OpenServer 5.x
8718*-*-sco3.2v5*)
8719 if test -z "$GCC"; then
8720 CFLAGS="$CFLAGS -belf"
8721 fi
8722 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8723 no_dev_ptmx=1
8724 $as_echo "#define USE_PIPES 1" >>confdefs.h
8725
8726 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8727
8728 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8729
8730 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8731
8732 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8733
8734 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8735
8736 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8737
8738 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8739
8740 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8741
8742 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8743
8744 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8745
8746 for ac_func in getluid setluid
8747do :
8748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8751 cat >>confdefs.h <<_ACEOF
8752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753_ACEOF
8754
8755fi
8756done
8757
8758 MANTYPE=man
8759 TEST_SHELL=$SHELL # let configure find us a capable shell
8760 SKIP_DISABLE_LASTLOG_DEFINE=yes
8761 ;;
8762*-dec-osf*)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8764$as_echo_n "checking for Digital Unix SIA... " >&6; }
8765 no_osfsia=""
8766
8767# Check whether --with-osfsia was given.
8768if test "${with_osfsia+set}" = set; then :
8769 withval=$with_osfsia;
8770 if test "x$withval" = "xno" ; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8772$as_echo "disabled" >&6; }
8773 no_osfsia=1
8774 fi
8775
8776fi
8777
8778 if test -z "$no_osfsia" ; then
8779 if test -f /etc/sia/matrix.conf; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8781$as_echo "yes" >&6; }
8782
8783$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8784
8785
8786$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8787
8788 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8789
8790 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8791 SIA_MSG="yes"
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794$as_echo "no" >&6; }
8795
8796$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8797
8798 fi
8799 fi
8800 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8801
8802 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8803
8804 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8805
8806 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8807
8808
8809$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8810
8811 ;;
8812
8813*-*-nto-qnx*)
8814 $as_echo "#define USE_PIPES 1" >>confdefs.h
8815
8816 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8817
8818 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8819
8820 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8821
8822
8823$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8824
8825 enable_etc_default_login=no # has incompatible /etc/default/login
8826 case "$host" in
8827 *-*-nto-qnx6*)
8828 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8829
8830 ;;
8831 esac
8832 ;;
8833
8834*-*-ultrix*)
8835
8836$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8837
8838 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8839
8840
8841$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8842
8843 ;;
8844
8845*-*-lynxos)
8846 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8847
8848$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8849
8850 ;;
8851esac
8852
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8854$as_echo_n "checking compiler and flags for sanity... " >&6; }
8855if test "$cross_compiling" = yes; then :
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8857$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8858
8859else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h. */
8862 #include <stdio.h>
8863int
8864main ()
8865{
8866 exit(0);
8867 ;
8868 return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_run "$LINENO"; then :
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8873$as_echo "yes" >&6; }
8874else
8875
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
8878 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8879
8880fi
8881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8882 conftest.$ac_objext conftest.beam conftest.$ac_ext
8883fi
8884
8885
8886# Checks for libraries.
8887ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8888if test "x$ac_cv_func_setsockopt" = xyes; then :
8889
8890else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8892$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8893if ${ac_cv_lib_socket_setsockopt+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 ac_check_lib_save_LIBS=$LIBS
8897LIBS="-lsocket $LIBS"
8898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h. */
8900
8901/* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904#ifdef __cplusplus
8905extern "C"
8906#endif
8907char setsockopt ();
8908int
8909main ()
8910{
8911return setsockopt ();
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916if ac_fn_c_try_link "$LINENO"; then :
8917 ac_cv_lib_socket_setsockopt=yes
8918else
8919 ac_cv_lib_socket_setsockopt=no
8920fi
8921rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923LIBS=$ac_check_lib_save_LIBS
8924fi
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8926$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8927if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8928 cat >>confdefs.h <<_ACEOF
8929#define HAVE_LIBSOCKET 1
8930_ACEOF
8931
8932 LIBS="-lsocket $LIBS"
8933
8934fi
8935
8936fi
8937
8938
8939for ac_func in dirname
8940do :
8941 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8942if test "x$ac_cv_func_dirname" = xyes; then :
8943 cat >>confdefs.h <<_ACEOF
8944#define HAVE_DIRNAME 1
8945_ACEOF
8946 for ac_header in libgen.h
8947do :
8948 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8949if test "x$ac_cv_header_libgen_h" = xyes; then :
8950 cat >>confdefs.h <<_ACEOF
8951#define HAVE_LIBGEN_H 1
8952_ACEOF
8953
8954fi
8955
8956done
8957
8958else
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8961$as_echo_n "checking for dirname in -lgen... " >&6; }
8962if ${ac_cv_lib_gen_dirname+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964else
8965 ac_check_lib_save_LIBS=$LIBS
8966LIBS="-lgen $LIBS"
8967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h. */
8969
8970/* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973#ifdef __cplusplus
8974extern "C"
8975#endif
8976char dirname ();
8977int
8978main ()
8979{
8980return dirname ();
8981 ;
8982 return 0;
8983}
8984_ACEOF
8985if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_lib_gen_dirname=yes
8987else
8988 ac_cv_lib_gen_dirname=no
8989fi
8990rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992LIBS=$ac_check_lib_save_LIBS
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8995$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8996if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8999$as_echo_n "checking for broken dirname... " >&6; }
9000if ${ac_cv_have_broken_dirname+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002else
9003
9004 save_LIBS="$LIBS"
9005 LIBS="$LIBS -lgen"
9006 if test "$cross_compiling" = yes; then :
9007 ac_cv_have_broken_dirname="no"
9008else
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h. */
9011
9012#include <libgen.h>
9013#include <string.h>
9014
9015int main(int argc, char **argv) {
9016 char *s, buf[32];
9017
9018 strncpy(buf,"/etc", 32);
9019 s = dirname(buf);
9020 if (!s || strncmp(s, "/", 32) != 0) {
9021 exit(1);
9022 } else {
9023 exit(0);
9024 }
9025}
9026
9027_ACEOF
9028if ac_fn_c_try_run "$LINENO"; then :
9029 ac_cv_have_broken_dirname="no"
9030else
9031 ac_cv_have_broken_dirname="yes"
9032fi
9033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034 conftest.$ac_objext conftest.beam conftest.$ac_ext
9035fi
9036
9037 LIBS="$save_LIBS"
9038
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
9041$as_echo "$ac_cv_have_broken_dirname" >&6; }
9042 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
9043 LIBS="$LIBS -lgen"
9044 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
9045
9046 for ac_header in libgen.h
9047do :
9048 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
9049if test "x$ac_cv_header_libgen_h" = xyes; then :
9050 cat >>confdefs.h <<_ACEOF
9051#define HAVE_LIBGEN_H 1
9052_ACEOF
9053
9054fi
9055
9056done
9057
9058 fi
9059
9060fi
9061
9062
9063fi
9064done
9065
9066
9067ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
9068if test "x$ac_cv_func_getspnam" = xyes; then :
9069
9070else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
9072$as_echo_n "checking for getspnam in -lgen... " >&6; }
9073if ${ac_cv_lib_gen_getspnam+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075else
9076 ac_check_lib_save_LIBS=$LIBS
9077LIBS="-lgen $LIBS"
9078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char getspnam ();
9088int
9089main ()
9090{
9091return getspnam ();
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_lib_gen_getspnam=yes
9098else
9099 ac_cv_lib_gen_getspnam=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103LIBS=$ac_check_lib_save_LIBS
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
9106$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
9107if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
9108 LIBS="$LIBS -lgen"
9109fi
9110
9111fi
9112
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
9114$as_echo_n "checking for library containing basename... " >&6; }
9115if ${ac_cv_search_basename+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 ac_func_search_save_LIBS=$LIBS
9119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h. */
9121
9122/* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9125#ifdef __cplusplus
9126extern "C"
9127#endif
9128char basename ();
9129int
9130main ()
9131{
9132return basename ();
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137for ac_lib in '' gen; do
9138 if test -z "$ac_lib"; then
9139 ac_res="none required"
9140 else
9141 ac_res=-l$ac_lib
9142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9143 fi
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_search_basename=$ac_res
9146fi
9147rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext
9149 if ${ac_cv_search_basename+:} false; then :
9150 break
9151fi
9152done
9153if ${ac_cv_search_basename+:} false; then :
9154
9155else
9156 ac_cv_search_basename=no
9157fi
9158rm conftest.$ac_ext
9159LIBS=$ac_func_search_save_LIBS
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
9162$as_echo "$ac_cv_search_basename" >&6; }
9163ac_res=$ac_cv_search_basename
9164if test "$ac_res" != no; then :
9165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9166
9167$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
9168
9169fi
9170
9171
9172
9173# Check whether --with-zlib was given.
9174if test "${with_zlib+set}" = set; then :
9175 withval=$with_zlib; if test "x$withval" = "xno" ; then
9176 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
9177 elif test "x$withval" != "xyes"; then
9178 if test -d "$withval/lib"; then
9179 if test -n "${need_dash_r}"; then
9180 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9181 else
9182 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9183 fi
9184 else
9185 if test -n "${need_dash_r}"; then
9186 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9187 else
9188 LDFLAGS="-L${withval} ${LDFLAGS}"
9189 fi
9190 fi
9191 if test -d "$withval/include"; then
9192 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9193 else
9194 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9195 fi
9196 fi
9197
9198fi
9199
9200
9201ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9202if test "x$ac_cv_header_zlib_h" = xyes; then :
9203
9204else
9205 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
9206fi
9207
9208
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
9210$as_echo_n "checking for deflate in -lz... " >&6; }
9211if ${ac_cv_lib_z_deflate+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213else
9214 ac_check_lib_save_LIBS=$LIBS
9215LIBS="-lz $LIBS"
9216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h. */
9218
9219/* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222#ifdef __cplusplus
9223extern "C"
9224#endif
9225char deflate ();
9226int
9227main ()
9228{
9229return deflate ();
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235 ac_cv_lib_z_deflate=yes
9236else
9237 ac_cv_lib_z_deflate=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241LIBS=$ac_check_lib_save_LIBS
9242fi
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
9244$as_echo "$ac_cv_lib_z_deflate" >&6; }
9245if test "x$ac_cv_lib_z_deflate" = xyes; then :
9246 cat >>confdefs.h <<_ACEOF
9247#define HAVE_LIBZ 1
9248_ACEOF
9249
9250 LIBS="-lz $LIBS"
9251
9252else
9253
9254 saved_CPPFLAGS="$CPPFLAGS"
9255 saved_LDFLAGS="$LDFLAGS"
9256 save_LIBS="$LIBS"
9257 if test -n "${need_dash_r}"; then
9258 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
9259 else
9260 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
9261 fi
9262 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
9263 LIBS="$LIBS -lz"
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h. */
9266
9267/* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9270#ifdef __cplusplus
9271extern "C"
9272#endif
9273char deflate ();
9274int
9275main ()
9276{
9277return deflate ();
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282if ac_fn_c_try_link "$LINENO"; then :
9283 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
9284
9285else
9286
9287 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
9288
9289
9290fi
9291rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293
9294
9295fi
9296
9297
9298
9299# Check whether --with-zlib-version-check was given.
9300if test "${with_zlib_version_check+set}" = set; then :
9301 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
9302 zlib_check_nonfatal=1
9303 fi
9304
9305
9306fi
9307
9308
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
9310$as_echo_n "checking for possibly buggy zlib... " >&6; }
9311if test "$cross_compiling" = yes; then :
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
9313$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
9314
9315else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h. */
9318
9319#include <stdio.h>
9320#include <stdlib.h>
9321#include <zlib.h>
9322
9323int
9324main ()
9325{
9326
9327 int a=0, b=0, c=0, d=0, n, v;
9328 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
9329 if (n != 3 && n != 4)
9330 exit(1);
9331 v = a*1000000 + b*10000 + c*100 + d;
9332 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
9333
9334 /* 1.1.4 is OK */
9335 if (a == 1 && b == 1 && c >= 4)
9336 exit(0);
9337
9338 /* 1.2.3 and up are OK */
9339 if (v >= 1020300)
9340 exit(0);
9341
9342 exit(2);
9343
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_run "$LINENO"; then :
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
9351else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9353$as_echo "yes" >&6; }
9354 if test -z "$zlib_check_nonfatal" ; then
9355 as_fn_error $? "*** zlib too old - check config.log ***
9356Your reported zlib version has known security problems. It's possible your
9357vendor has fixed these problems without changing the version number. If you
9358are sure this is the case, you can disable the check by running
9359\"./configure --without-zlib-version-check\".
9360If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9361See http://www.gzip.org/zlib/ for details." "$LINENO" 5
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
9364$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
9365 fi
9366
9367fi
9368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9369 conftest.$ac_objext conftest.beam conftest.$ac_ext
9370fi
9371
9372
9373ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9374if test "x$ac_cv_func_strcasecmp" = xyes; then :
9375
9376else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
9378$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
9379if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381else
9382 ac_check_lib_save_LIBS=$LIBS
9383LIBS="-lresolv $LIBS"
9384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h. */
9386
9387/* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9390#ifdef __cplusplus
9391extern "C"
9392#endif
9393char strcasecmp ();
9394int
9395main ()
9396{
9397return strcasecmp ();
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402if ac_fn_c_try_link "$LINENO"; then :
9403 ac_cv_lib_resolv_strcasecmp=yes
9404else
9405 ac_cv_lib_resolv_strcasecmp=no
9406fi
9407rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409LIBS=$ac_check_lib_save_LIBS
9410fi
9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
9412$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
9413if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
9414 LIBS="$LIBS -lresolv"
9415fi
9416
9417
9418fi
9419
9420for ac_func in utimes
9421do :
9422 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
9423if test "x$ac_cv_func_utimes" = xyes; then :
9424 cat >>confdefs.h <<_ACEOF
9425#define HAVE_UTIMES 1
9426_ACEOF
9427
9428else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
9430$as_echo_n "checking for utimes in -lc89... " >&6; }
9431if ${ac_cv_lib_c89_utimes+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433else
9434 ac_check_lib_save_LIBS=$LIBS
9435LIBS="-lc89 $LIBS"
9436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437/* end confdefs.h. */
9438
9439/* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9442#ifdef __cplusplus
9443extern "C"
9444#endif
9445char utimes ();
9446int
9447main ()
9448{
9449return utimes ();
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"; then :
9455 ac_cv_lib_c89_utimes=yes
9456else
9457 ac_cv_lib_c89_utimes=no
9458fi
9459rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461LIBS=$ac_check_lib_save_LIBS
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
9464$as_echo "$ac_cv_lib_c89_utimes" >&6; }
9465if test "x$ac_cv_lib_c89_utimes" = xyes; then :
9466 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
9467
9468 LIBS="$LIBS -lc89"
9469fi
9470
9471
9472fi
9473done
9474
9475
9476for ac_header in bsd/libutil.h libutil.h
9477do :
9478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9481 cat >>confdefs.h <<_ACEOF
9482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483_ACEOF
9484
9485fi
9486
9487done
9488
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
9490$as_echo_n "checking for library containing fmt_scaled... " >&6; }
9491if ${ac_cv_search_fmt_scaled+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493else
9494 ac_func_search_save_LIBS=$LIBS
9495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h. */
9497
9498/* Override any GCC internal prototype to avoid an error.
9499 Use char because int might match the return type of a GCC
9500 builtin and then its argument prototype would still apply. */
9501#ifdef __cplusplus
9502extern "C"
9503#endif
9504char fmt_scaled ();
9505int
9506main ()
9507{
9508return fmt_scaled ();
9509 ;
9510 return 0;
9511}
9512_ACEOF
9513for ac_lib in '' util bsd; do
9514 if test -z "$ac_lib"; then
9515 ac_res="none required"
9516 else
9517 ac_res=-l$ac_lib
9518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9519 fi
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 ac_cv_search_fmt_scaled=$ac_res
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext
9525 if ${ac_cv_search_fmt_scaled+:} false; then :
9526 break
9527fi
9528done
9529if ${ac_cv_search_fmt_scaled+:} false; then :
9530
9531else
9532 ac_cv_search_fmt_scaled=no
9533fi
9534rm conftest.$ac_ext
9535LIBS=$ac_func_search_save_LIBS
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9538$as_echo "$ac_cv_search_fmt_scaled" >&6; }
9539ac_res=$ac_cv_search_fmt_scaled
9540if test "$ac_res" != no; then :
9541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9542
9543fi
9544
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9546$as_echo_n "checking for library containing scan_scaled... " >&6; }
9547if ${ac_cv_search_scan_scaled+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549else
9550 ac_func_search_save_LIBS=$LIBS
9551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552/* end confdefs.h. */
9553
9554/* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557#ifdef __cplusplus
9558extern "C"
9559#endif
9560char scan_scaled ();
9561int
9562main ()
9563{
9564return scan_scaled ();
9565 ;
9566 return 0;
9567}
9568_ACEOF
9569for ac_lib in '' util bsd; do
9570 if test -z "$ac_lib"; then
9571 ac_res="none required"
9572 else
9573 ac_res=-l$ac_lib
9574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9575 fi
9576 if ac_fn_c_try_link "$LINENO"; then :
9577 ac_cv_search_scan_scaled=$ac_res
9578fi
9579rm -f core conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext
9581 if ${ac_cv_search_scan_scaled+:} false; then :
9582 break
9583fi
9584done
9585if ${ac_cv_search_scan_scaled+:} false; then :
9586
9587else
9588 ac_cv_search_scan_scaled=no
9589fi
9590rm conftest.$ac_ext
9591LIBS=$ac_func_search_save_LIBS
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9594$as_echo "$ac_cv_search_scan_scaled" >&6; }
9595ac_res=$ac_cv_search_scan_scaled
9596if test "$ac_res" != no; then :
9597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9598
9599fi
9600
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9602$as_echo_n "checking for library containing login... " >&6; }
9603if ${ac_cv_search_login+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605else
9606 ac_func_search_save_LIBS=$LIBS
9607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h. */
9609
9610/* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9613#ifdef __cplusplus
9614extern "C"
9615#endif
9616char login ();
9617int
9618main ()
9619{
9620return login ();
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625for ac_lib in '' util bsd; do
9626 if test -z "$ac_lib"; then
9627 ac_res="none required"
9628 else
9629 ac_res=-l$ac_lib
9630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9631 fi
9632 if ac_fn_c_try_link "$LINENO"; then :
9633 ac_cv_search_login=$ac_res
9634fi
9635rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext
9637 if ${ac_cv_search_login+:} false; then :
9638 break
9639fi
9640done
9641if ${ac_cv_search_login+:} false; then :
9642
9643else
9644 ac_cv_search_login=no
9645fi
9646rm conftest.$ac_ext
9647LIBS=$ac_func_search_save_LIBS
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9650$as_echo "$ac_cv_search_login" >&6; }
9651ac_res=$ac_cv_search_login
9652if test "$ac_res" != no; then :
9653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9654
9655fi
9656
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9658$as_echo_n "checking for library containing logout... " >&6; }
9659if ${ac_cv_search_logout+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661else
9662 ac_func_search_save_LIBS=$LIBS
9663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h. */
9665
9666/* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9669#ifdef __cplusplus
9670extern "C"
9671#endif
9672char logout ();
9673int
9674main ()
9675{
9676return logout ();
9677 ;
9678 return 0;
9679}
9680_ACEOF
9681for ac_lib in '' util bsd; do
9682 if test -z "$ac_lib"; then
9683 ac_res="none required"
9684 else
9685 ac_res=-l$ac_lib
9686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9687 fi
9688 if ac_fn_c_try_link "$LINENO"; then :
9689 ac_cv_search_logout=$ac_res
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext
9693 if ${ac_cv_search_logout+:} false; then :
9694 break
9695fi
9696done
9697if ${ac_cv_search_logout+:} false; then :
9698
9699else
9700 ac_cv_search_logout=no
9701fi
9702rm conftest.$ac_ext
9703LIBS=$ac_func_search_save_LIBS
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9706$as_echo "$ac_cv_search_logout" >&6; }
9707ac_res=$ac_cv_search_logout
9708if test "$ac_res" != no; then :
9709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9710
9711fi
9712
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9714$as_echo_n "checking for library containing logwtmp... " >&6; }
9715if ${ac_cv_search_logwtmp+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717else
9718 ac_func_search_save_LIBS=$LIBS
9719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h. */
9721
9722/* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725#ifdef __cplusplus
9726extern "C"
9727#endif
9728char logwtmp ();
9729int
9730main ()
9731{
9732return logwtmp ();
9733 ;
9734 return 0;
9735}
9736_ACEOF
9737for ac_lib in '' util bsd; do
9738 if test -z "$ac_lib"; then
9739 ac_res="none required"
9740 else
9741 ac_res=-l$ac_lib
9742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9743 fi
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 ac_cv_search_logwtmp=$ac_res
9746fi
9747rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext
9749 if ${ac_cv_search_logwtmp+:} false; then :
9750 break
9751fi
9752done
9753if ${ac_cv_search_logwtmp+:} false; then :
9754
9755else
9756 ac_cv_search_logwtmp=no
9757fi
9758rm conftest.$ac_ext
9759LIBS=$ac_func_search_save_LIBS
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9762$as_echo "$ac_cv_search_logwtmp" >&6; }
9763ac_res=$ac_cv_search_logwtmp
9764if test "$ac_res" != no; then :
9765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9766
9767fi
9768
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9770$as_echo_n "checking for library containing openpty... " >&6; }
9771if ${ac_cv_search_openpty+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 ac_func_search_save_LIBS=$LIBS
9775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h. */
9777
9778/* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784char openpty ();
9785int
9786main ()
9787{
9788return openpty ();
9789 ;
9790 return 0;
9791}
9792_ACEOF
9793for ac_lib in '' util bsd; do
9794 if test -z "$ac_lib"; then
9795 ac_res="none required"
9796 else
9797 ac_res=-l$ac_lib
9798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9799 fi
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 ac_cv_search_openpty=$ac_res
9802fi
9803rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext
9805 if ${ac_cv_search_openpty+:} false; then :
9806 break
9807fi
9808done
9809if ${ac_cv_search_openpty+:} false; then :
9810
9811else
9812 ac_cv_search_openpty=no
9813fi
9814rm conftest.$ac_ext
9815LIBS=$ac_func_search_save_LIBS
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9818$as_echo "$ac_cv_search_openpty" >&6; }
9819ac_res=$ac_cv_search_openpty
9820if test "$ac_res" != no; then :
9821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9822
9823fi
9824
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9826$as_echo_n "checking for library containing updwtmp... " >&6; }
9827if ${ac_cv_search_updwtmp+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829else
9830 ac_func_search_save_LIBS=$LIBS
9831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h. */
9833
9834/* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840char updwtmp ();
9841int
9842main ()
9843{
9844return updwtmp ();
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849for ac_lib in '' util bsd; do
9850 if test -z "$ac_lib"; then
9851 ac_res="none required"
9852 else
9853 ac_res=-l$ac_lib
9854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9855 fi
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 ac_cv_search_updwtmp=$ac_res
9858fi
9859rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext
9861 if ${ac_cv_search_updwtmp+:} false; then :
9862 break
9863fi
9864done
9865if ${ac_cv_search_updwtmp+:} false; then :
9866
9867else
9868 ac_cv_search_updwtmp=no
9869fi
9870rm conftest.$ac_ext
9871LIBS=$ac_func_search_save_LIBS
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9874$as_echo "$ac_cv_search_updwtmp" >&6; }
9875ac_res=$ac_cv_search_updwtmp
9876if test "$ac_res" != no; then :
9877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9878
9879fi
9880
9881for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9882do :
9883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9885if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9886 cat >>confdefs.h <<_ACEOF
9887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9888_ACEOF
9889
9890fi
9891done
9892
9893
9894# On some platforms, inet_ntop and gethostbyname may be found in libresolv
9895# or libnsl.
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9897$as_echo_n "checking for library containing inet_ntop... " >&6; }
9898if ${ac_cv_search_inet_ntop+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900else
9901 ac_func_search_save_LIBS=$LIBS
9902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h. */
9904
9905/* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908#ifdef __cplusplus
9909extern "C"
9910#endif
9911char inet_ntop ();
9912int
9913main ()
9914{
9915return inet_ntop ();
9916 ;
9917 return 0;
9918}
9919_ACEOF
9920for ac_lib in '' resolv nsl; do
9921 if test -z "$ac_lib"; then
9922 ac_res="none required"
9923 else
9924 ac_res=-l$ac_lib
9925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9926 fi
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_search_inet_ntop=$ac_res
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext
9932 if ${ac_cv_search_inet_ntop+:} false; then :
9933 break
9934fi
9935done
9936if ${ac_cv_search_inet_ntop+:} false; then :
9937
9938else
9939 ac_cv_search_inet_ntop=no
9940fi
9941rm conftest.$ac_ext
9942LIBS=$ac_func_search_save_LIBS
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9945$as_echo "$ac_cv_search_inet_ntop" >&6; }
9946ac_res=$ac_cv_search_inet_ntop
9947if test "$ac_res" != no; then :
9948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9949
9950fi
9951
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9953$as_echo_n "checking for library containing gethostbyname... " >&6; }
9954if ${ac_cv_search_gethostbyname+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956else
9957 ac_func_search_save_LIBS=$LIBS
9958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h. */
9960
9961/* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964#ifdef __cplusplus
9965extern "C"
9966#endif
9967char gethostbyname ();
9968int
9969main ()
9970{
9971return gethostbyname ();
9972 ;
9973 return 0;
9974}
9975_ACEOF
9976for ac_lib in '' resolv nsl; do
9977 if test -z "$ac_lib"; then
9978 ac_res="none required"
9979 else
9980 ac_res=-l$ac_lib
9981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9982 fi
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 ac_cv_search_gethostbyname=$ac_res
9985fi
9986rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext
9988 if ${ac_cv_search_gethostbyname+:} false; then :
9989 break
9990fi
9991done
9992if ${ac_cv_search_gethostbyname+:} false; then :
9993
9994else
9995 ac_cv_search_gethostbyname=no
9996fi
9997rm conftest.$ac_ext
9998LIBS=$ac_func_search_save_LIBS
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10001$as_echo "$ac_cv_search_gethostbyname" >&6; }
10002ac_res=$ac_cv_search_gethostbyname
10003if test "$ac_res" != no; then :
10004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10005
10006fi
10007
10008
10009# "Particular Function Checks"
10010# see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html
10011for ac_func in strftime
10012do :
10013 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10014if test "x$ac_cv_func_strftime" = xyes; then :
10015 cat >>confdefs.h <<_ACEOF
10016#define HAVE_STRFTIME 1
10017_ACEOF
10018
10019else
10020 # strftime is in -lintl on SCO UNIX.
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10022$as_echo_n "checking for strftime in -lintl... " >&6; }
10023if ${ac_cv_lib_intl_strftime+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025else
10026 ac_check_lib_save_LIBS=$LIBS
10027LIBS="-lintl $LIBS"
10028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h. */
10030
10031/* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10034#ifdef __cplusplus
10035extern "C"
10036#endif
10037char strftime ();
10038int
10039main ()
10040{
10041return strftime ();
10042 ;
10043 return 0;
10044}
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"; then :
10047 ac_cv_lib_intl_strftime=yes
10048else
10049 ac_cv_lib_intl_strftime=no
10050fi
10051rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053LIBS=$ac_check_lib_save_LIBS
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10056$as_echo "$ac_cv_lib_intl_strftime" >&6; }
10057if test "x$ac_cv_lib_intl_strftime" = xyes; then :
10058 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10059
10060LIBS="-lintl $LIBS"
10061fi
10062
10063fi
10064done
10065
10066for ac_header in stdlib.h
10067do :
10068 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10069if test "x$ac_cv_header_stdlib_h" = xyes; then :
10070 cat >>confdefs.h <<_ACEOF
10071#define HAVE_STDLIB_H 1
10072_ACEOF
10073
10074fi
10075
10076done
10077
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10079$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10080if ${ac_cv_func_malloc_0_nonnull+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082else
10083 if test "$cross_compiling" = yes; then :
10084 ac_cv_func_malloc_0_nonnull=no
10085else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
10088#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10089# include <stdlib.h>
10090#else
10091char *malloc ();
10092#endif
10093
10094int
10095main ()
10096{
10097return ! malloc (0);
10098 ;
10099 return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_run "$LINENO"; then :
10103 ac_cv_func_malloc_0_nonnull=yes
10104else
10105 ac_cv_func_malloc_0_nonnull=no
10106fi
10107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10108 conftest.$ac_objext conftest.beam conftest.$ac_ext
10109fi
10110
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10113$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10114if test $ac_cv_func_malloc_0_nonnull = yes; then :
10115
10116$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10117
10118else
10119 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10120
10121 case " $LIBOBJS " in
10122 *" malloc.$ac_objext "* ) ;;
10123 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10124 ;;
10125esac
10126
10127
10128$as_echo "#define malloc rpl_malloc" >>confdefs.h
10129
10130fi
10131
10132
10133for ac_header in stdlib.h
10134do :
10135 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10136if test "x$ac_cv_header_stdlib_h" = xyes; then :
10137 cat >>confdefs.h <<_ACEOF
10138#define HAVE_STDLIB_H 1
10139_ACEOF
10140
10141fi
10142
10143done
10144
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10146$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10147if ${ac_cv_func_realloc_0_nonnull+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149else
10150 if test "$cross_compiling" = yes; then :
10151 ac_cv_func_realloc_0_nonnull=no
10152else
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h. */
10155#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10156# include <stdlib.h>
10157#else
10158char *realloc ();
10159#endif
10160
10161int
10162main ()
10163{
10164return ! realloc (0, 0);
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_run "$LINENO"; then :
10170 ac_cv_func_realloc_0_nonnull=yes
10171else
10172 ac_cv_func_realloc_0_nonnull=no
10173fi
10174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10175 conftest.$ac_objext conftest.beam conftest.$ac_ext
10176fi
10177
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
10180$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10181if test $ac_cv_func_realloc_0_nonnull = yes; then :
10182
10183$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
10184
10185else
10186 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
10187
10188 case " $LIBOBJS " in
10189 *" realloc.$ac_objext "* ) ;;
10190 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10191 ;;
10192esac
10193
10194
10195$as_echo "#define realloc rpl_realloc" >>confdefs.h
10196
10197fi
10198
10199
10200# autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL;
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if calloc(0, N) returns non-null" >&5
10202$as_echo_n "checking if calloc(0, N) returns non-null... " >&6; }
10203if test "$cross_compiling" = yes; then :
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming same as malloc" >&5
10205$as_echo "$as_me: WARNING: cross compiling: assuming same as malloc" >&2;}
10206 func_calloc_0_nonnull="$ac_cv_func_malloc_0_nonnull"
10207
10208else
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210/* end confdefs.h. */
10211 #include <stdlib.h>
10212int
10213main ()
10214{
10215 void *p = calloc(0, 1); exit(p == NULL);
10216
10217 ;
10218 return 0;
10219}
10220_ACEOF
10221if ac_fn_c_try_run "$LINENO"; then :
10222 func_calloc_0_nonnull=yes
10223else
10224 func_calloc_0_nonnull=no
10225fi
10226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10227 conftest.$ac_objext conftest.beam conftest.$ac_ext
10228fi
10229
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $func_calloc_0_nonnull" >&5
10231$as_echo "$func_calloc_0_nonnull" >&6; }
10232
10233if test "x$func_calloc_0_nonnull" = "xyes"; then
10234
10235$as_echo "#define HAVE_CALLOC 1" >>confdefs.h
10236
10237else
10238
10239$as_echo "#define HAVE_CALLOC 0" >>confdefs.h
10240
10241
10242$as_echo "#define calloc rpl_calloc" >>confdefs.h
10243
10244fi
10245
10246# Check for ALTDIRFUNC glob() extension
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
10248$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
10249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h. */
10251
10252 #include <glob.h>
10253 #ifdef GLOB_ALTDIRFUNC
10254 FOUNDIT
10255 #endif
10256
10257_ACEOF
10258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10259 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
10260
10261
10262$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
10263
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265$as_echo "yes" >&6; }
10266
10267else
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
10271
10272
10273fi
10274rm -f conftest*
10275
10276
10277# Check for g.gl_matchc glob() extension
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
10279$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
10280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h. */
10282 #include <glob.h>
10283int
10284main ()
10285{
10286 glob_t g; g.gl_matchc = 1;
10287 ;
10288 return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"; then :
10292
10293
10294$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
10295
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10297$as_echo "yes" >&6; }
10298
10299else
10300
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
10303
10304fi
10305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306
10307# Check for g.gl_statv glob() extension
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
10309$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
10310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h. */
10312 #include <glob.h>
10313int
10314main ()
10315{
10316
10317#ifndef GLOB_KEEPSTAT
10318#error "glob does not support GLOB_KEEPSTAT extension"
10319#endif
10320glob_t g;
10321g.gl_statv = NULL;
10322
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327if ac_fn_c_try_compile "$LINENO"; then :
10328
10329
10330$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
10331
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10333$as_echo "yes" >&6; }
10334
10335else
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338$as_echo "no" >&6; }
10339
10340
10341fi
10342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10343
10344ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
10345"
10346if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
10347 ac_have_decl=1
10348else
10349 ac_have_decl=0
10350fi
10351
10352cat >>confdefs.h <<_ACEOF
10353#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
10354_ACEOF
10355
10356
10357ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h>
10358"
10359if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then :
10360
10361else
10362
10363$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
10364
10365fi
10366
10367
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
10369$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
10370if test "$cross_compiling" = yes; then :
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
10373$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
10374 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10375
10376
10377
10378else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h. */
10381
10382#include <sys/types.h>
10383#include <dirent.h>
10384int
10385main ()
10386{
10387
10388 struct dirent d;
10389 exit(sizeof(d.d_name)<=sizeof(char));
10390
10391 ;
10392 return 0;
10393}
10394_ACEOF
10395if ac_fn_c_try_run "$LINENO"; then :
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397$as_echo "yes" >&6; }
10398else
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
10402
10403$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10404
10405
10406fi
10407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
10409fi
10410
10411
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
10413$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
10414if test -d "/proc/$$/fd" ; then
10415
10416$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419$as_echo "yes" >&6; }
10420else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422$as_echo "no" >&6; }
10423fi
10424
10425# Check whether user wants to use ldns
10426LDNS_MSG="no"
10427
10428# Check whether --with-ldns was given.
10429if test "${with_ldns+set}" = set; then :
10430 withval=$with_ldns;
10431 ldns=""
10432 if test "x$withval" = "xyes" ; then
10433 if test -n "$ac_tool_prefix"; then
10434 # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args.
10435set dummy ${ac_tool_prefix}ldns-config; ac_word=$2
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if ${ac_cv_path_LDNSCONFIG+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441 case $LDNSCONFIG in
10442 [\\/]* | ?:[\\/]*)
10443 ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path.
10444 ;;
10445 *)
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10456 fi
10457done
10458 done
10459IFS=$as_save_IFS
10460
10461 ;;
10462esac
10463fi
10464LDNSCONFIG=$ac_cv_path_LDNSCONFIG
10465if test -n "$LDNSCONFIG"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5
10467$as_echo "$LDNSCONFIG" >&6; }
10468else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
10471fi
10472
10473
10474fi
10475if test -z "$ac_cv_path_LDNSCONFIG"; then
10476 ac_pt_LDNSCONFIG=$LDNSCONFIG
10477 # Extract the first word of "ldns-config", so it can be a program name with args.
10478set dummy ldns-config; ac_word=$2
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480$as_echo_n "checking for $ac_word... " >&6; }
10481if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483else
10484 case $ac_pt_LDNSCONFIG in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path.
10487 ;;
10488 *)
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501 done
10502IFS=$as_save_IFS
10503
10504 ;;
10505esac
10506fi
10507ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG
10508if test -n "$ac_pt_LDNSCONFIG"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5
10510$as_echo "$ac_pt_LDNSCONFIG" >&6; }
10511else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513$as_echo "no" >&6; }
10514fi
10515
10516 if test "x$ac_pt_LDNSCONFIG" = x; then
10517 LDNSCONFIG="no"
10518 else
10519 case $cross_compiling:$ac_tool_warned in
10520yes:)
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10523ac_tool_warned=yes ;;
10524esac
10525 LDNSCONFIG=$ac_pt_LDNSCONFIG
10526 fi
10527else
10528 LDNSCONFIG="$ac_cv_path_LDNSCONFIG"
10529fi
10530
10531 if test "x$LDNSCONFIG" = "xno"; then
10532 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10533 LDFLAGS="$LDFLAGS -L${withval}/lib"
10534 LIBS="-lldns $LIBS"
10535 ldns=yes
10536 else
10537 LIBS="$LIBS `$LDNSCONFIG --libs`"
10538 CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`"
10539 ldns=yes
10540 fi
10541 elif test "x$withval" != "xno" ; then
10542 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10543 LDFLAGS="$LDFLAGS -L${withval}/lib"
10544 LIBS="-lldns $LIBS"
10545 ldns=yes
10546 fi
10547
10548 # Verify that it works.
10549 if test "x$ldns" = "xyes" ; then
10550
10551$as_echo "#define HAVE_LDNS 1" >>confdefs.h
10552
10553 LDNS_MSG="yes"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
10555$as_echo_n "checking for ldns support... " >&6; }
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h. */
10558
10559#include <stdio.h>
10560#include <stdlib.h>
10561#include <stdint.h>
10562#include <ldns/ldns.h>
10563int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
10564
10565
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10569$as_echo "yes" >&6; }
10570else
10571
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
10574 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
10575
10576fi
10577rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 fi
10580
10581fi
10582
10583
10584# Check whether user wants libedit support
10585LIBEDIT_MSG="no"
10586
10587# Check whether --with-libedit was given.
10588if test "${with_libedit+set}" = set; then :
10589 withval=$with_libedit; if test "x$withval" != "xno" ; then
10590 if test "x$withval" = "xyes" ; then
10591 if test -n "$ac_tool_prefix"; then
10592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10593set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595$as_echo_n "checking for $ac_word... " >&6; }
10596if ${ac_cv_path_PKGCONFIG+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598else
10599 case $PKGCONFIG in
10600 [\\/]* | ?:[\\/]*)
10601 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
10602 ;;
10603 *)
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605for as_dir in $PATH
10606do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10614 fi
10615done
10616 done
10617IFS=$as_save_IFS
10618
10619 ;;
10620esac
10621fi
10622PKGCONFIG=$ac_cv_path_PKGCONFIG
10623if test -n "$PKGCONFIG"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10625$as_echo "$PKGCONFIG" >&6; }
10626else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630
10631
10632fi
10633if test -z "$ac_cv_path_PKGCONFIG"; then
10634 ac_pt_PKGCONFIG=$PKGCONFIG
10635 # Extract the first word of "pkg-config", so it can be a program name with args.
10636set dummy pkg-config; ac_word=$2
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638$as_echo_n "checking for $ac_word... " >&6; }
10639if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641else
10642 case $ac_pt_PKGCONFIG in
10643 [\\/]* | ?:[\\/]*)
10644 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
10645 ;;
10646 *)
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648for as_dir in $PATH
10649do
10650 IFS=$as_save_IFS
10651 test -z "$as_dir" && as_dir=.
10652 for ac_exec_ext in '' $ac_executable_extensions; do
10653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10654 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10656 break 2
10657 fi
10658done
10659 done
10660IFS=$as_save_IFS
10661
10662 ;;
10663esac
10664fi
10665ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
10666if test -n "$ac_pt_PKGCONFIG"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
10668$as_echo "$ac_pt_PKGCONFIG" >&6; }
10669else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671$as_echo "no" >&6; }
10672fi
10673
10674 if test "x$ac_pt_PKGCONFIG" = x; then
10675 PKGCONFIG="no"
10676 else
10677 case $cross_compiling:$ac_tool_warned in
10678yes:)
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10681ac_tool_warned=yes ;;
10682esac
10683 PKGCONFIG=$ac_pt_PKGCONFIG
10684 fi
10685else
10686 PKGCONFIG="$ac_cv_path_PKGCONFIG"
10687fi
10688
10689 if test "x$PKGCONFIG" != "xno"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
10691$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
10692 if "$PKGCONFIG" libedit; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694$as_echo "yes" >&6; }
10695 use_pkgconfig_for_libedit=yes
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698$as_echo "no" >&6; }
10699 fi
10700 fi
10701 else
10702 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10703 if test -n "${need_dash_r}"; then
10704 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10705 else
10706 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10707 fi
10708 fi
10709 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10710 LIBEDIT=`$PKGCONFIG --libs libedit`
10711 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10712 else
10713 LIBEDIT="-ledit -lcurses"
10714 fi
10715 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10717$as_echo_n "checking for el_init in -ledit... " >&6; }
10718if ${ac_cv_lib_edit_el_init+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720else
10721 ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ledit $OTHERLIBS
10723 $LIBS"
10724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h. */
10726
10727/* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10730#ifdef __cplusplus
10731extern "C"
10732#endif
10733char el_init ();
10734int
10735main ()
10736{
10737return el_init ();
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_link "$LINENO"; then :
10743 ac_cv_lib_edit_el_init=yes
10744else
10745 ac_cv_lib_edit_el_init=no
10746fi
10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749LIBS=$ac_check_lib_save_LIBS
10750fi
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10752$as_echo "$ac_cv_lib_edit_el_init" >&6; }
10753if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10754
10755$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10756
10757 LIBEDIT_MSG="yes"
10758
10759
10760else
10761 as_fn_error $? "libedit not found" "$LINENO" 5
10762fi
10763
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10765$as_echo_n "checking if libedit version is compatible... " >&6; }
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h. */
10768 #include <histedit.h>
10769int
10770main ()
10771{
10772
10773 int i = H_SETSIZE;
10774 el_init("", NULL, NULL, NULL);
10775 exit(0);
10776
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781if ac_fn_c_try_compile "$LINENO"; then :
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783$as_echo "yes" >&6; }
10784else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
10787 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10788
10789fi
10790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792
10793fi
10794
10795
10796AUDIT_MODULE=none
10797
10798# Check whether --with-audit was given.
10799if test "${with_audit+set}" = set; then :
10800 withval=$with_audit;
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10802$as_echo_n "checking for supported audit module... " >&6; }
10803 case "$withval" in
10804 bsm)
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10806$as_echo "bsm" >&6; }
10807 AUDIT_MODULE=bsm
10808 for ac_header in bsm/audit.h
10809do :
10810 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10811#ifdef HAVE_TIME_H
10812# include <time.h>
10813#endif
10814
10815
10816"
10817if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10818 cat >>confdefs.h <<_ACEOF
10819#define HAVE_BSM_AUDIT_H 1
10820_ACEOF
10821
10822else
10823 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10824fi
10825
10826done
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10829$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10830if ${ac_cv_lib_bsm_getaudit+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832else
10833 ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lbsm $LIBS"
10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h. */
10837
10838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char getaudit ();
10845int
10846main ()
10847{
10848return getaudit ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_bsm_getaudit=yes
10855else
10856 ac_cv_lib_bsm_getaudit=no
10857fi
10858rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860LIBS=$ac_check_lib_save_LIBS
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10863$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10864if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10865 cat >>confdefs.h <<_ACEOF
10866#define HAVE_LIBBSM 1
10867_ACEOF
10868
10869 LIBS="-lbsm $LIBS"
10870
10871else
10872 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10873fi
10874
10875 for ac_func in getaudit
10876do :
10877 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10878if test "x$ac_cv_func_getaudit" = xyes; then :
10879 cat >>confdefs.h <<_ACEOF
10880#define HAVE_GETAUDIT 1
10881_ACEOF
10882
10883else
10884 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10885fi
10886done
10887
10888 # These are optional
10889 for ac_func in getaudit_addr aug_get_machine
10890do :
10891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10893if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10894 cat >>confdefs.h <<_ACEOF
10895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10896_ACEOF
10897
10898fi
10899done
10900
10901
10902$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10903
10904 if test "$sol2ver" -ge 11; then
10905 SSHDLIBS="$SSHDLIBS -lscf"
10906
10907$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10908
10909 fi
10910 ;;
10911 linux)
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10913$as_echo "linux" >&6; }
10914 AUDIT_MODULE=linux
10915 for ac_header in libaudit.h
10916do :
10917 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10918if test "x$ac_cv_header_libaudit_h" = xyes; then :
10919 cat >>confdefs.h <<_ACEOF
10920#define HAVE_LIBAUDIT_H 1
10921_ACEOF
10922
10923fi
10924
10925done
10926
10927 SSHDLIBS="$SSHDLIBS -laudit"
10928
10929$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10930
10931 ;;
10932 debug)
10933 AUDIT_MODULE=debug
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10935$as_echo "debug" >&6; }
10936
10937$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10938
10939 ;;
10940 no)
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942$as_echo "no" >&6; }
10943 ;;
10944 *)
10945 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10946 ;;
10947 esac
10948
10949fi
10950
10951
10952
10953# Check whether --with-pie was given.
10954if test "${with_pie+set}" = set; then :
10955 withval=$with_pie;
10956 if test "x$withval" = "xno"; then
10957 use_pie=no
10958 fi
10959 if test "x$withval" = "xyes"; then
10960 use_pie=yes
10961 fi
10962
10963
10964fi
10965
10966if test "x$use_pie" = "x"; then
10967 use_pie=no
10968fi
10969if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10970 # Turn off automatic PIE when toolchain hardening is off.
10971 use_pie=no
10972fi
10973if test "x$use_pie" = "xauto"; then
10974 # Automatic PIE requires gcc >= 4.x
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10976$as_echo_n "checking for gcc >= 4.x... " >&6; }
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h. */
10979
10980#if !defined(__GNUC__) || __GNUC__ < 4
10981#error gcc is too old
10982#endif
10983
10984_ACEOF
10985if ac_fn_c_try_compile "$LINENO"; then :
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987$as_echo "yes" >&6; }
10988else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
10991 use_pie=no
10992
10993fi
10994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995fi
10996if test "x$use_pie" != "xno"; then
10997 SAVED_CFLAGS="$CFLAGS"
10998 SAVED_LDFLAGS="$LDFLAGS"
10999 {
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
11001$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
11002 saved_CFLAGS="$CFLAGS"
11003 CFLAGS="$CFLAGS $WERROR -fPIE"
11004 _define_flag=""
11005 test "x$_define_flag" = "x" && _define_flag="-fPIE"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h. */
11008
11009#include <stdlib.h>
11010#include <stdio.h>
11011int main(int argc, char **argv) {
11012 /* Some math to catch -ftrapv problems in the toolchain */
11013 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11014 float l = i * 2.1;
11015 double m = l / 0.5;
11016 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11017 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
11018 exit(0);
11019}
11020
11021_ACEOF
11022if ac_fn_c_try_compile "$LINENO"; then :
11023
11024if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11025then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
11028 CFLAGS="$saved_CFLAGS"
11029else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031$as_echo "yes" >&6; }
11032 CFLAGS="$saved_CFLAGS $_define_flag"
11033fi
11034else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036$as_echo "no" >&6; }
11037 CFLAGS="$saved_CFLAGS"
11038
11039fi
11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041}
11042 {
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
11044$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
11045 saved_LDFLAGS="$LDFLAGS"
11046 LDFLAGS="$LDFLAGS $WERROR -pie"
11047 _define_flag=""
11048 test "x$_define_flag" = "x" && _define_flag="-pie"
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050/* end confdefs.h. */
11051
11052#include <stdlib.h>
11053#include <stdio.h>
11054int main(int argc, char **argv) {
11055 /* Some math to catch -ftrapv problems in the toolchain */
11056 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
11057 float l = i * 2.1;
11058 double m = l / 0.5;
11059 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
11060 long long p = n * o;
11061 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
11062 exit(0);
11063}
11064
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067
11068if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
11069then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
11072 LDFLAGS="$saved_LDFLAGS"
11073else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11075$as_echo "yes" >&6; }
11076 LDFLAGS="$saved_LDFLAGS $_define_flag"
11077fi
11078else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080$as_echo "no" >&6; }
11081 LDFLAGS="$saved_LDFLAGS"
11082
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086}
11087 # We use both -fPIE and -pie or neither.
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
11089$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
11090 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
11091 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11093$as_echo "yes" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096$as_echo "no" >&6; }
11097 CFLAGS="$SAVED_CFLAGS"
11098 LDFLAGS="$SAVED_LDFLAGS"
11099 fi
11100fi
11101
11102for ac_func in \
11103 Blowfish_initstate \
11104 Blowfish_expandstate \
11105 Blowfish_expand0state \
11106 Blowfish_stream2word \
11107 asprintf \
11108 b64_ntop \
11109 __b64_ntop \
11110 b64_pton \
11111 __b64_pton \
11112 bcopy \
11113 bcrypt_pbkdf \
11114 bindresvport_sa \
11115 blf_enc \
11116 bzero \
11117 cap_rights_limit \
11118 clock \
11119 closefrom \
11120 dirfd \
11121 endgrent \
11122 err \
11123 errx \
11124 explicit_bzero \
11125 fchmod \
11126 fchown \
11127 flock \
11128 freeaddrinfo \
11129 freezero \
11130 fstatfs \
11131 fstatvfs \
11132 futimes \
11133 getaddrinfo \
11134 getcwd \
11135 getgrouplist \
11136 getline \
11137 getnameinfo \
11138 getopt \
11139 getpagesize \
11140 getpeereid \
11141 getpeerucred \
11142 getpgid \
11143 _getpty \
11144 getrlimit \
11145 getrandom \
11146 getsid \
11147 getttyent \
11148 glob \
11149 group_from_gid \
11150 inet_aton \
11151 inet_ntoa \
11152 inet_ntop \
11153 innetgr \
11154 llabs \
11155 login_getcapbool \
11156 md5_crypt \
11157 memmove \
11158 memset_s \
11159 mkdtemp \
11160 ngetaddrinfo \
11161 nsleep \
11162 ogetaddrinfo \
11163 openlog_r \
11164 pledge \
11165 poll \
11166 prctl \
11167 pstat \
11168 raise \
11169 readpassphrase \
11170 reallocarray \
11171 recvmsg \
11172 recallocarray \
11173 rresvport_af \
11174 sendmsg \
11175 setdtablesize \
11176 setegid \
11177 setenv \
11178 seteuid \
11179 setgroupent \
11180 setgroups \
11181 setlinebuf \
11182 setlogin \
11183 setpassent\
11184 setpcred \
11185 setproctitle \
11186 setregid \
11187 setreuid \
11188 setrlimit \
11189 setsid \
11190 setvbuf \
11191 sigaction \
11192 sigvec \
11193 snprintf \
11194 socketpair \
11195 statfs \
11196 statvfs \
11197 strcasestr \
11198 strdup \
11199 strerror \
11200 strlcat \
11201 strlcpy \
11202 strmode \
11203 strndup \
11204 strnlen \
11205 strnvis \
11206 strptime \
11207 strsignal \
11208 strtonum \
11209 strtoll \
11210 strtoul \
11211 strtoull \
11212 swap32 \
11213 sysconf \
11214 tcgetpgrp \
11215 timingsafe_bcmp \
11216 truncate \
11217 unsetenv \
11218 updwtmpx \
11219 user_from_uid \
11220 usleep \
11221 vasprintf \
11222 vsnprintf \
11223 waitpid \
11224 warn \
11225
11226do :
11227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11229if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11230 cat >>confdefs.h <<_ACEOF
11231#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232_ACEOF
11233
11234fi
11235done
11236
11237
11238ac_fn_c_check_decl "$LINENO" "bzero" "ac_cv_have_decl_bzero" "$ac_includes_default"
11239if test "x$ac_cv_have_decl_bzero" = xyes; then :
11240 ac_have_decl=1
11241else
11242 ac_have_decl=0
11243fi
11244
11245cat >>confdefs.h <<_ACEOF
11246#define HAVE_DECL_BZERO $ac_have_decl
11247_ACEOF
11248
11249
11250for ac_func in mblen mbtowc nl_langinfo wcwidth
11251do :
11252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11254if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11255 cat >>confdefs.h <<_ACEOF
11256#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257_ACEOF
11258
11259fi
11260done
11261
11262
11263TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes}
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5
11265$as_echo_n "checking for utf8 locale support... " >&6; }
11266if test "$cross_compiling" = yes; then :
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11268$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11269
11270else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272/* end confdefs.h. */
11273
11274#include <locale.h>
11275#include <stdlib.h>
11276
11277int
11278main ()
11279{
11280
11281 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8");
11282 if (loc != NULL)
11283 exit(0);
11284 exit(1);
11285
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_run "$LINENO"; then :
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11292$as_echo "yes" >&6; }
11293else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
11296 TEST_SSH_UTF8=no
11297fi
11298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11299 conftest.$ac_objext conftest.beam conftest.$ac_ext
11300fi
11301
11302
11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h. */
11305 #include <ctype.h>
11306int
11307main ()
11308{
11309 return (isblank('a'));
11310 ;
11311 return 0;
11312}
11313_ACEOF
11314if ac_fn_c_try_link "$LINENO"; then :
11315
11316$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
11317
11318
11319fi
11320rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322
11323disable_pkcs11=
11324# Check whether --enable-pkcs11 was given.
11325if test "${enable_pkcs11+set}" = set; then :
11326 enableval=$enable_pkcs11;
11327 if test "x$enableval" = "xno" ; then
11328 disable_pkcs11=1
11329 fi
11330
11331
11332fi
11333
11334
11335# PKCS11 depends on OpenSSL.
11336if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
11337 # PKCS#11 support requires dlopen() and co
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11339$as_echo_n "checking for library containing dlopen... " >&6; }
11340if ${ac_cv_search_dlopen+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 ac_func_search_save_LIBS=$LIBS
11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h. */
11346
11347/* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350#ifdef __cplusplus
11351extern "C"
11352#endif
11353char dlopen ();
11354int
11355main ()
11356{
11357return dlopen ();
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362for ac_lib in '' dl; do
11363 if test -z "$ac_lib"; then
11364 ac_res="none required"
11365 else
11366 ac_res=-l$ac_lib
11367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11368 fi
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_search_dlopen=$ac_res
11371fi
11372rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext
11374 if ${ac_cv_search_dlopen+:} false; then :
11375 break
11376fi
11377done
11378if ${ac_cv_search_dlopen+:} false; then :
11379
11380else
11381 ac_cv_search_dlopen=no
11382fi
11383rm conftest.$ac_ext
11384LIBS=$ac_func_search_save_LIBS
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11387$as_echo "$ac_cv_search_dlopen" >&6; }
11388ac_res=$ac_cv_search_dlopen
11389if test "$ac_res" != no; then :
11390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11391 ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
11392
11393"
11394if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
11395
11396$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
11397
11398fi
11399
11400
11401fi
11402
11403fi
11404
11405# IRIX has a const char return value for gai_strerror()
11406for ac_func in gai_strerror
11407do :
11408 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
11409if test "x$ac_cv_func_gai_strerror" = xyes; then :
11410 cat >>confdefs.h <<_ACEOF
11411#define HAVE_GAI_STRERROR 1
11412_ACEOF
11413
11414 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
11415
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h. */
11418
11419#include <sys/types.h>
11420#include <sys/socket.h>
11421#include <netdb.h>
11422
11423const char *gai_strerror(int);
11424
11425int
11426main ()
11427{
11428
11429 char *str;
11430 str = gai_strerror(0);
11431
11432 ;
11433 return 0;
11434}
11435_ACEOF
11436if ac_fn_c_try_compile "$LINENO"; then :
11437
11438
11439$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
11440
11441fi
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443fi
11444done
11445
11446
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
11448$as_echo_n "checking for library containing nanosleep... " >&6; }
11449if ${ac_cv_search_nanosleep+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451else
11452 ac_func_search_save_LIBS=$LIBS
11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h. */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char nanosleep ();
11463int
11464main ()
11465{
11466return nanosleep ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471for ac_lib in '' rt posix4; do
11472 if test -z "$ac_lib"; then
11473 ac_res="none required"
11474 else
11475 ac_res=-l$ac_lib
11476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11477 fi
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_search_nanosleep=$ac_res
11480fi
11481rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext
11483 if ${ac_cv_search_nanosleep+:} false; then :
11484 break
11485fi
11486done
11487if ${ac_cv_search_nanosleep+:} false; then :
11488
11489else
11490 ac_cv_search_nanosleep=no
11491fi
11492rm conftest.$ac_ext
11493LIBS=$ac_func_search_save_LIBS
11494fi
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
11496$as_echo "$ac_cv_search_nanosleep" >&6; }
11497ac_res=$ac_cv_search_nanosleep
11498if test "$ac_res" != no; then :
11499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11500
11501$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
11502
11503fi
11504
11505
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11507$as_echo_n "checking for library containing clock_gettime... " >&6; }
11508if ${ac_cv_search_clock_gettime+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510else
11511 ac_func_search_save_LIBS=$LIBS
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514
11515/* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518#ifdef __cplusplus
11519extern "C"
11520#endif
11521char clock_gettime ();
11522int
11523main ()
11524{
11525return clock_gettime ();
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530for ac_lib in '' rt; do
11531 if test -z "$ac_lib"; then
11532 ac_res="none required"
11533 else
11534 ac_res=-l$ac_lib
11535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11536 fi
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_search_clock_gettime=$ac_res
11539fi
11540rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext
11542 if ${ac_cv_search_clock_gettime+:} false; then :
11543 break
11544fi
11545done
11546if ${ac_cv_search_clock_gettime+:} false; then :
11547
11548else
11549 ac_cv_search_clock_gettime=no
11550fi
11551rm conftest.$ac_ext
11552LIBS=$ac_func_search_save_LIBS
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11555$as_echo "$ac_cv_search_clock_gettime" >&6; }
11556ac_res=$ac_cv_search_clock_gettime
11557if test "$ac_res" != no; then :
11558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11559
11560$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11561
11562fi
11563
11564
11565ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
11566#ifdef HAVE_STRING_H
11567# include <string.h>
11568#endif
11569
11570"
11571if test "x$ac_cv_have_decl_strsep" = xyes; then :
11572 for ac_func in strsep
11573do :
11574 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
11575if test "x$ac_cv_func_strsep" = xyes; then :
11576 cat >>confdefs.h <<_ACEOF
11577#define HAVE_STRSEP 1
11578_ACEOF
11579
11580fi
11581done
11582
11583fi
11584
11585
11586ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
11587
11588"
11589if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
11590 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
11591
11592else
11593 for ac_func in tcsendbreak
11594do :
11595 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
11596if test "x$ac_cv_func_tcsendbreak" = xyes; then :
11597 cat >>confdefs.h <<_ACEOF
11598#define HAVE_TCSENDBREAK 1
11599_ACEOF
11600
11601fi
11602done
11603
11604fi
11605
11606
11607ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
11608"
11609if test "x$ac_cv_have_decl_h_errno" = xyes; then :
11610 ac_have_decl=1
11611else
11612 ac_have_decl=0
11613fi
11614
11615cat >>confdefs.h <<_ACEOF
11616#define HAVE_DECL_H_ERRNO $ac_have_decl
11617_ACEOF
11618
11619
11620ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11621#include <sys/types.h>
11622#include <sys/socket.h>
11623
11624"
11625if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
11626 ac_have_decl=1
11627else
11628 ac_have_decl=0
11629fi
11630
11631cat >>confdefs.h <<_ACEOF
11632#define HAVE_DECL_SHUT_RD $ac_have_decl
11633_ACEOF
11634
11635
11636ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11637#include <sys/types.h>
11638#ifdef HAVE_SYS_STAT_H
11639# include <sys/stat.h>
11640#endif
11641#ifdef HAVE_FCNTL_H
11642# include <fcntl.h>
11643#endif
11644
11645"
11646if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
11647 ac_have_decl=1
11648else
11649 ac_have_decl=0
11650fi
11651
11652cat >>confdefs.h <<_ACEOF
11653#define HAVE_DECL_O_NONBLOCK $ac_have_decl
11654_ACEOF
11655
11656
11657ac_fn_c_check_decl "$LINENO" "readv" "ac_cv_have_decl_readv" "
11658#include <sys/types.h>
11659#include <sys/uio.h>
11660#include <unistd.h>
11661
11662"
11663if test "x$ac_cv_have_decl_readv" = xyes; then :
11664 ac_have_decl=1
11665else
11666 ac_have_decl=0
11667fi
11668
11669cat >>confdefs.h <<_ACEOF
11670#define HAVE_DECL_READV $ac_have_decl
11671_ACEOF
11672ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
11673#include <sys/types.h>
11674#include <sys/uio.h>
11675#include <unistd.h>
11676
11677"
11678if test "x$ac_cv_have_decl_writev" = xyes; then :
11679 ac_have_decl=1
11680else
11681 ac_have_decl=0
11682fi
11683
11684cat >>confdefs.h <<_ACEOF
11685#define HAVE_DECL_WRITEV $ac_have_decl
11686_ACEOF
11687
11688
11689ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
11690#include <sys/param.h>
11691
11692"
11693if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
11694 ac_have_decl=1
11695else
11696 ac_have_decl=0
11697fi
11698
11699cat >>confdefs.h <<_ACEOF
11700#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
11701_ACEOF
11702
11703
11704ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
11705#include <stddef.h>
11706
11707"
11708if test "x$ac_cv_have_decl_offsetof" = xyes; then :
11709 ac_have_decl=1
11710else
11711 ac_have_decl=0
11712fi
11713
11714cat >>confdefs.h <<_ACEOF
11715#define HAVE_DECL_OFFSETOF $ac_have_decl
11716_ACEOF
11717
11718
11719# extra bits for select(2)
11720ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
11721#include <sys/param.h>
11722#include <sys/types.h>
11723#ifdef HAVE_SYS_SYSMACROS_H
11724#include <sys/sysmacros.h>
11725#endif
11726#ifdef HAVE_SYS_SELECT_H
11727#include <sys/select.h>
11728#endif
11729#ifdef HAVE_SYS_TIME_H
11730#include <sys/time.h>
11731#endif
11732#ifdef HAVE_UNISTD_H
11733#include <unistd.h>
11734#endif
11735
11736"
11737if test "x$ac_cv_have_decl_howmany" = xyes; then :
11738 ac_have_decl=1
11739else
11740 ac_have_decl=0
11741fi
11742
11743cat >>confdefs.h <<_ACEOF
11744#define HAVE_DECL_HOWMANY $ac_have_decl
11745_ACEOF
11746ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
11747#include <sys/param.h>
11748#include <sys/types.h>
11749#ifdef HAVE_SYS_SYSMACROS_H
11750#include <sys/sysmacros.h>
11751#endif
11752#ifdef HAVE_SYS_SELECT_H
11753#include <sys/select.h>
11754#endif
11755#ifdef HAVE_SYS_TIME_H
11756#include <sys/time.h>
11757#endif
11758#ifdef HAVE_UNISTD_H
11759#include <unistd.h>
11760#endif
11761
11762"
11763if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
11764 ac_have_decl=1
11765else
11766 ac_have_decl=0
11767fi
11768
11769cat >>confdefs.h <<_ACEOF
11770#define HAVE_DECL_NFDBITS $ac_have_decl
11771_ACEOF
11772
11773ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
11774#include <sys/param.h>
11775#include <sys/types.h>
11776#ifdef HAVE_SYS_SELECT_H
11777#include <sys/select.h>
11778#endif
11779#ifdef HAVE_SYS_TIME_H
11780#include <sys/time.h>
11781#endif
11782#ifdef HAVE_UNISTD_H
11783#include <unistd.h>
11784#endif
11785
11786"
11787if test "x$ac_cv_type_fd_mask" = xyes; then :
11788
11789cat >>confdefs.h <<_ACEOF
11790#define HAVE_FD_MASK 1
11791_ACEOF
11792
11793
11794fi
11795
11796
11797for ac_func in setresuid
11798do :
11799 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
11800if test "x$ac_cv_func_setresuid" = xyes; then :
11801 cat >>confdefs.h <<_ACEOF
11802#define HAVE_SETRESUID 1
11803_ACEOF
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
11806$as_echo_n "checking if setresuid seems to work... " >&6; }
11807 if test "$cross_compiling" = yes; then :
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11809$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11810
11811else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h. */
11814
11815#include <stdlib.h>
11816#include <errno.h>
11817
11818int
11819main ()
11820{
11821
11822 errno=0;
11823 setresuid(0,0,0);
11824 if (errno==ENOSYS)
11825 exit(1);
11826 else
11827 exit(0);
11828
11829 ;
11830 return 0;
11831}
11832_ACEOF
11833if ac_fn_c_try_run "$LINENO"; then :
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11835$as_echo "yes" >&6; }
11836else
11837
11838$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11839
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11841$as_echo "not implemented" >&6; }
11842fi
11843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11844 conftest.$ac_objext conftest.beam conftest.$ac_ext
11845fi
11846
11847
11848fi
11849done
11850
11851
11852for ac_func in setresgid
11853do :
11854 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11855if test "x$ac_cv_func_setresgid" = xyes; then :
11856 cat >>confdefs.h <<_ACEOF
11857#define HAVE_SETRESGID 1
11858_ACEOF
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11861$as_echo_n "checking if setresgid seems to work... " >&6; }
11862 if test "$cross_compiling" = yes; then :
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11864$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11865
11866else
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868/* end confdefs.h. */
11869
11870#include <stdlib.h>
11871#include <errno.h>
11872
11873int
11874main ()
11875{
11876
11877 errno=0;
11878 setresgid(0,0,0);
11879 if (errno==ENOSYS)
11880 exit(1);
11881 else
11882 exit(0);
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888if ac_fn_c_try_run "$LINENO"; then :
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11890$as_echo "yes" >&6; }
11891else
11892
11893$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11896$as_echo "not implemented" >&6; }
11897fi
11898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11899 conftest.$ac_objext conftest.beam conftest.$ac_ext
11900fi
11901
11902
11903fi
11904done
11905
11906
11907for ac_func in realpath
11908do :
11909 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11910if test "x$ac_cv_func_realpath" = xyes; then :
11911 cat >>confdefs.h <<_ACEOF
11912#define HAVE_REALPATH 1
11913_ACEOF
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5
11916$as_echo_n "checking if realpath works with non-existent files... " >&6; }
11917 if test "$cross_compiling" = yes; then :
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11919$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11920
11921else
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h. */
11924
11925#include <limits.h>
11926#include <stdlib.h>
11927#include <errno.h>
11928
11929int
11930main ()
11931{
11932
11933 char buf[PATH_MAX];
11934 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
11935 if (errno == ENOENT)
11936 exit(1);
11937 exit(0);
11938
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943if ac_fn_c_try_run "$LINENO"; then :
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11945$as_echo "yes" >&6; }
11946else
11947
11948$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
11949
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951$as_echo "no" >&6; }
11952fi
11953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11954 conftest.$ac_objext conftest.beam conftest.$ac_ext
11955fi
11956
11957
11958fi
11959done
11960
11961
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fflush(NULL)" >&5
11963$as_echo_n "checking for working fflush(NULL)... " >&6; }
11964if test "$cross_compiling" = yes; then :
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11966$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11967
11968else
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h. */
11971#include <stdio.h>
11972int
11973main ()
11974{
11975fflush(NULL); exit(0);
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_run "$LINENO"; then :
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982$as_echo "yes" >&6; }
11983else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986
11987$as_echo "#define FFLUSH_NULL_BUG 1" >>confdefs.h
11988
11989fi
11990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11991 conftest.$ac_objext conftest.beam conftest.$ac_ext
11992fi
11993
11994
11995for ac_func in gettimeofday time
11996do :
11997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11999if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12000 cat >>confdefs.h <<_ACEOF
12001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002_ACEOF
12003
12004fi
12005done
12006
12007for ac_func in endutent getutent getutid getutline pututline setutent
12008do :
12009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12010ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12011if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12012 cat >>confdefs.h <<_ACEOF
12013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014_ACEOF
12015
12016fi
12017done
12018
12019for ac_func in utmpname
12020do :
12021 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
12022if test "x$ac_cv_func_utmpname" = xyes; then :
12023 cat >>confdefs.h <<_ACEOF
12024#define HAVE_UTMPNAME 1
12025_ACEOF
12026
12027fi
12028done
12029
12030for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
12031do :
12032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12034if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12035 cat >>confdefs.h <<_ACEOF
12036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037_ACEOF
12038
12039fi
12040done
12041
12042for ac_func in setutxdb setutxent utmpxname
12043do :
12044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12047 cat >>confdefs.h <<_ACEOF
12048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049_ACEOF
12050
12051fi
12052done
12053
12054for ac_func in getlastlogxbyname
12055do :
12056 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
12057if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
12058 cat >>confdefs.h <<_ACEOF
12059#define HAVE_GETLASTLOGXBYNAME 1
12060_ACEOF
12061
12062fi
12063done
12064
12065
12066ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12067if test "x$ac_cv_func_daemon" = xyes; then :
12068
12069$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12070
12071else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
12073$as_echo_n "checking for daemon in -lbsd... " >&6; }
12074if ${ac_cv_lib_bsd_daemon+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076else
12077 ac_check_lib_save_LIBS=$LIBS
12078LIBS="-lbsd $LIBS"
12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080/* end confdefs.h. */
12081
12082/* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085#ifdef __cplusplus
12086extern "C"
12087#endif
12088char daemon ();
12089int
12090main ()
12091{
12092return daemon ();
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_bsd_daemon=yes
12099else
12100 ac_cv_lib_bsd_daemon=no
12101fi
12102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104LIBS=$ac_check_lib_save_LIBS
12105fi
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
12107$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
12108if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
12109 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12110
12111fi
12112
12113
12114fi
12115
12116
12117ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12118if test "x$ac_cv_func_getpagesize" = xyes; then :
12119
12120$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12121
12122else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
12124$as_echo_n "checking for getpagesize in -lucb... " >&6; }
12125if ${ac_cv_lib_ucb_getpagesize+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127else
12128 ac_check_lib_save_LIBS=$LIBS
12129LIBS="-lucb $LIBS"
12130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131/* end confdefs.h. */
12132
12133/* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136#ifdef __cplusplus
12137extern "C"
12138#endif
12139char getpagesize ();
12140int
12141main ()
12142{
12143return getpagesize ();
12144 ;
12145 return 0;
12146}
12147_ACEOF
12148if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_lib_ucb_getpagesize=yes
12150else
12151 ac_cv_lib_ucb_getpagesize=no
12152fi
12153rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155LIBS=$ac_check_lib_save_LIBS
12156fi
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
12158$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
12159if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
12160 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12161
12162fi
12163
12164
12165fi
12166
12167
12168# Check for broken snprintf
12169if test "x$ac_cv_func_snprintf" = "xyes" ; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
12171$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
12172 if test "$cross_compiling" = yes; then :
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12174$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12175
12176else
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178/* end confdefs.h. */
12179 #include <stdio.h>
12180int
12181main ()
12182{
12183
12184 char b[5];
12185 snprintf(b,5,"123456789");
12186 exit(b[4]!='\0');
12187
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192if ac_fn_c_try_run "$LINENO"; then :
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194$as_echo "yes" >&6; }
12195else
12196
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199
12200$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
12203$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
12204
12205fi
12206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12207 conftest.$ac_objext conftest.beam conftest.$ac_ext
12208fi
12209
12210fi
12211
12212# We depend on vsnprintf returning the right thing on overflow: the
12213# number of characters it tried to create (as per SUSv3)
12214if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
12216$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
12217 if test "$cross_compiling" = yes; then :
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
12219$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
12220
12221else
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h. */
12224
12225#include <sys/types.h>
12226#include <stdio.h>
12227#include <stdarg.h>
12228
12229int x_snprintf(char *str, size_t count, const char *fmt, ...)
12230{
12231 size_t ret;
12232 va_list ap;
12233
12234 va_start(ap, fmt);
12235 ret = vsnprintf(str, count, fmt, ap);
12236 va_end(ap);
12237 return ret;
12238}
12239
12240int
12241main ()
12242{
12243
12244char x[1];
12245if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
12246 return 1;
12247if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
12248 return 1;
12249return 0;
12250
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_run "$LINENO"; then :
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257$as_echo "yes" >&6; }
12258else
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
12262
12263$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12264
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
12266$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
12267
12268fi
12269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12270 conftest.$ac_objext conftest.beam conftest.$ac_ext
12271fi
12272
12273fi
12274
12275# On systems where [v]snprintf is broken, but is declared in stdio,
12276# check that the fmt argument is const char * or just char *.
12277# This is only useful for when BROKEN_SNPRINTF
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
12279$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
12280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281/* end confdefs.h. */
12282
12283#include <stdio.h>
12284int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
12285
12286int
12287main ()
12288{
12289
12290 snprintf(0, 0, 0);
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296if ac_fn_c_try_compile "$LINENO"; then :
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298$as_echo "yes" >&6; }
12299
12300$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
12301
12302else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
12305 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
12306
12307fi
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309
12310# Check for missing getpeereid (or equiv) support
12311NO_PEERCHECK=""
12312if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
12314$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h. */
12317
12318#include <sys/types.h>
12319#include <sys/socket.h>
12320int
12321main ()
12322{
12323int i = SO_PEERCRED;
12324 ;
12325 return 0;
12326}
12327_ACEOF
12328if ac_fn_c_try_compile "$LINENO"; then :
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330$as_echo "yes" >&6; }
12331
12332$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
12333
12334
12335else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338 NO_PEERCHECK=1
12339
12340fi
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
12343
12344if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
12346$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
12347if test "$cross_compiling" = yes; then :
12348
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350$as_echo "yes" >&6; }
12351 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12352
12353
12354
12355else
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h. */
12358
12359#include <stdlib.h>
12360
12361int
12362main ()
12363{
12364
12365 char template[]="conftest.mkstemp-test";
12366 if (mkstemp(template) == -1)
12367 exit(1);
12368 unlink(template);
12369 exit(0);
12370
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375if ac_fn_c_try_run "$LINENO"; then :
12376
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
12379
12380else
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383$as_echo "yes" >&6; }
12384
12385$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12386
12387
12388fi
12389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12390 conftest.$ac_objext conftest.beam conftest.$ac_ext
12391fi
12392
12393fi
12394
12395if test ! -z "$check_for_openpty_ctty_bug"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
12397$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
12398 if test "$cross_compiling" = yes; then :
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12401$as_echo "cross-compiling, assuming yes" >&6; }
12402
12403
12404else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h. */
12407
12408#include <stdio.h>
12409#include <sys/fcntl.h>
12410#include <sys/types.h>
12411#include <sys/wait.h>
12412
12413int
12414main ()
12415{
12416
12417 pid_t pid;
12418 int fd, ptyfd, ttyfd, status;
12419
12420 pid = fork();
12421 if (pid < 0) { /* failed */
12422 exit(1);
12423 } else if (pid > 0) { /* parent */
12424 waitpid(pid, &status, 0);
12425 if (WIFEXITED(status))
12426 exit(WEXITSTATUS(status));
12427 else
12428 exit(2);
12429 } else { /* child */
12430 close(0); close(1); close(2);
12431 setsid();
12432 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12433 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12434 if (fd >= 0)
12435 exit(3); /* Acquired ctty: broken */
12436 else
12437 exit(0); /* Did not acquire ctty: OK */
12438 }
12439
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444if ac_fn_c_try_run "$LINENO"; then :
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447$as_echo "yes" >&6; }
12448
12449else
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452$as_echo "no" >&6; }
12453 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
12454
12455
12456fi
12457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12458 conftest.$ac_objext conftest.beam conftest.$ac_ext
12459fi
12460
12461fi
12462
12463if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12464 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12466$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12467 if test "$cross_compiling" = yes; then :
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12470$as_echo "cross-compiling, assuming yes" >&6; }
12471
12472
12473else
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h. */
12476
12477#include <stdio.h>
12478#include <sys/socket.h>
12479#include <netdb.h>
12480#include <errno.h>
12481#include <netinet/in.h>
12482
12483#define TEST_PORT "2222"
12484
12485int
12486main ()
12487{
12488
12489 int err, sock;
12490 struct addrinfo *gai_ai, *ai, hints;
12491 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12492
12493 memset(&hints, 0, sizeof(hints));
12494 hints.ai_family = PF_UNSPEC;
12495 hints.ai_socktype = SOCK_STREAM;
12496 hints.ai_flags = AI_PASSIVE;
12497
12498 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12499 if (err != 0) {
12500 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12501 exit(1);
12502 }
12503
12504 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12505 if (ai->ai_family != AF_INET6)
12506 continue;
12507
12508 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12509 sizeof(ntop), strport, sizeof(strport),
12510 NI_NUMERICHOST|NI_NUMERICSERV);
12511
12512 if (err != 0) {
12513 if (err == EAI_SYSTEM)
12514 perror("getnameinfo EAI_SYSTEM");
12515 else
12516 fprintf(stderr, "getnameinfo failed: %s\n",
12517 gai_strerror(err));
12518 exit(2);
12519 }
12520
12521 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12522 if (sock < 0)
12523 perror("socket");
12524 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12525 if (errno == EBADF)
12526 exit(3);
12527 }
12528 }
12529 exit(0);
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535if ac_fn_c_try_run "$LINENO"; then :
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538$as_echo "yes" >&6; }
12539
12540else
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
12544 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12545
12546
12547fi
12548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549 conftest.$ac_objext conftest.beam conftest.$ac_ext
12550fi
12551
12552fi
12553
12554if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12555 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12557$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12558 if test "$cross_compiling" = yes; then :
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
12561$as_echo "cross-compiling, assuming no" >&6; }
12562
12563
12564else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h. */
12567
12568#include <stdio.h>
12569#include <sys/socket.h>
12570#include <netdb.h>
12571#include <errno.h>
12572#include <netinet/in.h>
12573
12574#define TEST_PORT "2222"
12575
12576int
12577main ()
12578{
12579
12580 int err, sock;
12581 struct addrinfo *gai_ai, *ai, hints;
12582 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12583
12584 memset(&hints, 0, sizeof(hints));
12585 hints.ai_family = PF_UNSPEC;
12586 hints.ai_socktype = SOCK_STREAM;
12587 hints.ai_flags = AI_PASSIVE;
12588
12589 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12590 if (err != 0) {
12591 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12592 exit(1);
12593 }
12594
12595 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12596 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
12597 continue;
12598
12599 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12600 sizeof(ntop), strport, sizeof(strport),
12601 NI_NUMERICHOST|NI_NUMERICSERV);
12602
12603 if (ai->ai_family == AF_INET && err != 0) {
12604 perror("getnameinfo");
12605 exit(2);
12606 }
12607 }
12608 exit(0);
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614if ac_fn_c_try_run "$LINENO"; then :
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617$as_echo "yes" >&6; }
12618
12619$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
12620
12621
12622else
12623
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625$as_echo "no" >&6; }
12626 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12627
12628
12629fi
12630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12631 conftest.$ac_objext conftest.beam conftest.$ac_ext
12632fi
12633
12634fi
12635
12636if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
12637 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h>
12638 #include <sys/socket.h>
12639 #include <netdb.h>
12640"
12641if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
12642 ac_have_decl=1
12643else
12644 ac_have_decl=0
12645fi
12646
12647cat >>confdefs.h <<_ACEOF
12648#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
12649_ACEOF
12650
12651fi
12652
12653if test "x$check_for_conflicting_getspnam" = "x1"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
12655$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657/* end confdefs.h. */
12658 #include <shadow.h>
12659int
12660main ()
12661{
12662 exit(0);
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
12671
12672else
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675$as_echo "yes" >&6; }
12676
12677$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
12678
12679
12680
12681fi
12682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683fi
12684
12685if test "x$ac_cv_func_strnvis" = "xyes"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5
12687$as_echo_n "checking for working strnvis... " >&6; }
12688 if test "$cross_compiling" = yes; then :
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5
12690$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;}
12691
12692$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12693
12694
12695else
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h. */
12698
12699#include <signal.h>
12700#include <stdlib.h>
12701#include <string.h>
12702#include <vis.h>
12703static void sighandler(int sig) { _exit(1); }
12704
12705int
12706main ()
12707{
12708
12709 char dst[16];
12710
12711 signal(SIGSEGV, sighandler);
12712 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)
12713 exit(0);
12714 exit(1)
12715
12716 ;
12717 return 0;
12718}
12719_ACEOF
12720if ac_fn_c_try_run "$LINENO"; then :
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12722$as_echo "yes" >&6; }
12723else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725$as_echo "no" >&6; }
12726
12727$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12728
12729fi
12730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731 conftest.$ac_objext conftest.beam conftest.$ac_ext
12732fi
12733
12734fi
12735
12736for ac_func in getpgrp
12737do :
12738 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
12739if test "x$ac_cv_func_getpgrp" = xyes; then :
12740 cat >>confdefs.h <<_ACEOF
12741#define HAVE_GETPGRP 1
12742_ACEOF
12743
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpgrp accepts zero args" >&5
12745$as_echo_n "checking if getpgrp accepts zero args... " >&6; }
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h. */
12748$ac_includes_default
12749int
12750main ()
12751{
12752 getpgrp();
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757if ac_fn_c_try_compile "$LINENO"; then :
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
12760
12761$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12762
12763else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766
12767$as_echo "#define GETPGRP_VOID 0" >>confdefs.h
12768
12769
12770fi
12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772
12773fi
12774done
12775
12776
12777# Search for OpenSSL
12778saved_CPPFLAGS="$CPPFLAGS"
12779saved_LDFLAGS="$LDFLAGS"
12780
12781# Check whether --with-ssl-dir was given.
12782if test "${with_ssl_dir+set}" = set; then :
12783 withval=$with_ssl_dir;
12784 if test "x$openssl" = "xno" ; then
12785 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5
12786 fi
12787 if test "x$withval" != "xno" ; then
12788 case "$withval" in
12789 # Relative paths
12790 ./*|../*) withval="`pwd`/$withval"
12791 esac
12792 if test -d "$withval/lib"; then
12793 if test -n "${need_dash_r}"; then
12794 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12795 else
12796 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12797 fi
12798 elif test -d "$withval/lib64"; then
12799 if test -n "${need_dash_r}"; then
12800 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
12801 else
12802 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
12803 fi
12804 else
12805 if test -n "${need_dash_r}"; then
12806 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12807 else
12808 LDFLAGS="-L${withval} ${LDFLAGS}"
12809 fi
12810 fi
12811 if test -d "$withval/include"; then
12812 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12813 else
12814 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12815 fi
12816 fi
12817
12818
12819fi
12820
12821
12822
12823# Check whether --with-openssl-header-check was given.
12824if test "${with_openssl_header_check+set}" = set; then :
12825 withval=$with_openssl_header_check;
12826 if test "x$withval" = "xno" ; then
12827 openssl_check_nonfatal=1
12828 fi
12829
12830
12831fi
12832
12833
12834openssl_engine=no
12835
12836# Check whether --with-ssl-engine was given.
12837if test "${with_ssl_engine+set}" = set; then :
12838 withval=$with_ssl_engine;
12839 if test "x$withval" != "xno" ; then
12840 if test "x$openssl" = "xno" ; then
12841 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5
12842 fi
12843 openssl_engine=yes
12844 fi
12845
12846
12847fi
12848
12849
12850if test "x$openssl" = "xyes" ; then
12851 LIBS="-lcrypto $LIBS"
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h. */
12854
12855/* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858#ifdef __cplusplus
12859extern "C"
12860#endif
12861char RAND_add ();
12862int
12863main ()
12864{
12865return RAND_add ();
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870if ac_fn_c_try_link "$LINENO"; then :
12871
12872$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12873
12874else
12875
12876 if test -n "${need_dash_r}"; then
12877 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
12878 else
12879 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
12880 fi
12881 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
12882 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
12883if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
12884
12885else
12886 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
12887fi
12888
12889
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891/* end confdefs.h. */
12892
12893/* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896#ifdef __cplusplus
12897extern "C"
12898#endif
12899char RAND_add ();
12900int
12901main ()
12902{
12903return RAND_add ();
12904 ;
12905 return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_link "$LINENO"; then :
12909 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12910
12911else
12912
12913 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
12914
12915
12916fi
12917rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919
12920
12921fi
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924
12925 # Determine OpenSSL header version
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
12927$as_echo_n "checking OpenSSL header version... " >&6; }
12928 if test "$cross_compiling" = yes; then :
12929
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12931$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12932
12933
12934else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h. */
12937
12938 #include <stdlib.h>
12939 #include <stdio.h>
12940 #include <string.h>
12941 #include <openssl/opensslv.h>
12942 #define DATA "conftest.sslincver"
12943
12944int
12945main ()
12946{
12947
12948 FILE *fd;
12949 int rc;
12950
12951 fd = fopen(DATA,"w");
12952 if(fd == NULL)
12953 exit(1);
12954
12955 if ((rc = fprintf(fd, "%08lx (%s)\n",
12956 (unsigned long)OPENSSL_VERSION_NUMBER,
12957 OPENSSL_VERSION_TEXT)) < 0)
12958 exit(1);
12959
12960 exit(0);
12961
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_run "$LINENO"; then :
12967
12968 ssl_header_ver=`cat conftest.sslincver`
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
12970$as_echo "$ssl_header_ver" >&6; }
12971
12972else
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12975$as_echo "not found" >&6; }
12976 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
12977
12978fi
12979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12980 conftest.$ac_objext conftest.beam conftest.$ac_ext
12981fi
12982
12983
12984 # Determine OpenSSL library version
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
12986$as_echo_n "checking OpenSSL library version... " >&6; }
12987 if test "$cross_compiling" = yes; then :
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12990$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12991
12992
12993else
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h. */
12996
12997 #include <stdio.h>
12998 #include <string.h>
12999 #include <openssl/opensslv.h>
13000 #include <openssl/crypto.h>
13001 #define DATA "conftest.ssllibver"
13002
13003int
13004main ()
13005{
13006
13007 FILE *fd;
13008 int rc;
13009
13010 fd = fopen(DATA,"w");
13011 if(fd == NULL)
13012 exit(1);
13013
13014 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(),
13015 SSLeay_version(SSLEAY_VERSION))) < 0)
13016 exit(1);
13017
13018 exit(0);
13019
13020 ;
13021 return 0;
13022}
13023_ACEOF
13024if ac_fn_c_try_run "$LINENO"; then :
13025
13026 ssl_library_ver=`cat conftest.ssllibver`
13027 # Check version is supported.
13028 case "$ssl_library_ver" in
13029 10000*|0*)
13030 as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5
13031 ;;
13032 100*) ;; # 1.0.x
13033 200*) ;; # LibreSSL
13034 *)
13035 as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5
13036 ;;
13037 esac
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
13039$as_echo "$ssl_library_ver" >&6; }
13040
13041else
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13044$as_echo "not found" >&6; }
13045 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
13046
13047fi
13048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13049 conftest.$ac_objext conftest.beam conftest.$ac_ext
13050fi
13051
13052
13053 # Sanity check OpenSSL headers
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
13055$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
13056 if test "$cross_compiling" = yes; then :
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
13059$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13060
13061
13062else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064/* end confdefs.h. */
13065
13066 #include <string.h>
13067 #include <openssl/opensslv.h>
13068 #include <openssl/crypto.h>
13069
13070int
13071main ()
13072{
13073
13074 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
13075
13076 ;
13077 return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_run "$LINENO"; then :
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083$as_echo "yes" >&6; }
13084
13085else
13086
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088$as_echo "no" >&6; }
13089 if test "x$openssl_check_nonfatal" = "x"; then
13090 as_fn_error $? "Your OpenSSL headers do not match your
13091 library. Check config.log for details.
13092 If you are sure your installation is consistent, you can disable the check
13093 by running \"./configure --without-openssl-header-check\".
13094 Also see contrib/findssl.sh for help identifying header/library mismatches.
13095 " "$LINENO" 5
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
13098 library. Check config.log for details.
13099 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
13100$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
13101 library. Check config.log for details.
13102 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
13103 fi
13104
13105fi
13106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13107 conftest.$ac_objext conftest.beam conftest.$ac_ext
13108fi
13109
13110
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
13112$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h. */
13115 #include <openssl/evp.h>
13116int
13117main ()
13118{
13119 SSLeay_add_all_algorithms();
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124if ac_fn_c_try_link "$LINENO"; then :
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127$as_echo "yes" >&6; }
13128
13129else
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133 saved_LIBS="$LIBS"
13134 LIBS="$LIBS -ldl"
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
13136$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h. */
13139 #include <openssl/evp.h>
13140int
13141main ()
13142{
13143 SSLeay_add_all_algorithms();
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148if ac_fn_c_try_link "$LINENO"; then :
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13151$as_echo "yes" >&6; }
13152
13153else
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
13157 LIBS="$saved_LIBS"
13158
13159
13160fi
13161rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163
13164
13165fi
13166rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168
13169 for ac_func in \
13170 BN_is_prime_ex \
13171 DSA_generate_parameters_ex \
13172 EVP_DigestInit_ex \
13173 EVP_DigestFinal_ex \
13174 EVP_MD_CTX_init \
13175 EVP_MD_CTX_cleanup \
13176 EVP_MD_CTX_copy_ex \
13177 HMAC_CTX_init \
13178 RSA_generate_key_ex \
13179 RSA_get_default_method \
13180
13181do :
13182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13185 cat >>confdefs.h <<_ACEOF
13186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13187_ACEOF
13188
13189fi
13190done
13191
13192
13193 if test "x$openssl_engine" = "xyes" ; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
13195$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h. */
13198
13199 #include <openssl/engine.h>
13200
13201int
13202main ()
13203{
13204
13205 ENGINE_load_builtin_engines();
13206 ENGINE_register_all_complete();
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212if ac_fn_c_try_compile "$LINENO"; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214$as_echo "yes" >&6; }
13215
13216$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
13217
13218
13219else
13220 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
13221
13222fi
13223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 fi
13225
13226 # Check for OpenSSL without EVP_aes_{192,256}_cbc
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
13228$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h. */
13231
13232 #include <string.h>
13233 #include <openssl/evp.h>
13234
13235int
13236main ()
13237{
13238
13239 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
13240
13241 ;
13242 return 0;
13243}
13244_ACEOF
13245if ac_fn_c_try_link "$LINENO"; then :
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248$as_echo "no" >&6; }
13249
13250else
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253$as_echo "yes" >&6; }
13254
13255$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
13256
13257
13258
13259fi
13260rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262
13263 # Check for OpenSSL with EVP_aes_*ctr
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
13265$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267/* end confdefs.h. */
13268
13269 #include <string.h>
13270 #include <openssl/evp.h>
13271
13272int
13273main ()
13274{
13275
13276 exit(EVP_aes_128_ctr() == NULL ||
13277 EVP_aes_192_cbc() == NULL ||
13278 EVP_aes_256_cbc() == NULL);
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284if ac_fn_c_try_link "$LINENO"; then :
13285
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13287$as_echo "yes" >&6; }
13288
13289$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
13290
13291
13292else
13293
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296
13297
13298fi
13299rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301
13302 # Check for OpenSSL with EVP_aes_*gcm
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
13304$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h. */
13307
13308 #include <string.h>
13309 #include <openssl/evp.h>
13310
13311int
13312main ()
13313{
13314
13315 exit(EVP_aes_128_gcm() == NULL ||
13316 EVP_aes_256_gcm() == NULL ||
13317 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
13318 EVP_CTRL_GCM_IV_GEN == 0 ||
13319 EVP_CTRL_GCM_SET_TAG == 0 ||
13320 EVP_CTRL_GCM_GET_TAG == 0 ||
13321 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
13322
13323 ;
13324 return 0;
13325}
13326_ACEOF
13327if ac_fn_c_try_link "$LINENO"; then :
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330$as_echo "yes" >&6; }
13331
13332$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
13333
13334
13335else
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
13339 unsupported_algorithms="$unsupported_cipers \
13340 aes128-gcm@openssh.com \
13341 aes256-gcm@openssh.com"
13342
13343
13344fi
13345rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
13347
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
13349$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
13350if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352else
13353 ac_func_search_save_LIBS=$LIBS
13354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357/* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char EVP_CIPHER_CTX_ctrl ();
13364int
13365main ()
13366{
13367return EVP_CIPHER_CTX_ctrl ();
13368 ;
13369 return 0;
13370}
13371_ACEOF
13372for ac_lib in '' crypto; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13375 else
13376 ac_res=-l$ac_lib
13377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13378 fi
13379 if ac_fn_c_try_link "$LINENO"; then :
13380 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext
13384 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13385 break
13386fi
13387done
13388if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13389
13390else
13391 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
13392fi
13393rm conftest.$ac_ext
13394LIBS=$ac_func_search_save_LIBS
13395fi
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
13397$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
13398ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
13399if test "$ac_res" != no; then :
13400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13401
13402$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
13403
13404fi
13405
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
13408$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h. */
13411
13412 #include <string.h>
13413 #include <openssl/evp.h>
13414
13415int
13416main ()
13417{
13418
13419 if(EVP_DigestUpdate(NULL, NULL,0))
13420 exit(0);
13421
13422 ;
13423 return 0;
13424}
13425_ACEOF
13426if ac_fn_c_try_link "$LINENO"; then :
13427
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13429$as_echo "yes" >&6; }
13430
13431else
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434$as_echo "no" >&6; }
13435
13436$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
13437
13438
13439
13440fi
13441rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13443
13444 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
13445 # because the system crypt() is more featureful.
13446 if test "x$check_for_libcrypt_before" = "x1"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13448$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13449if ${ac_cv_lib_crypt_crypt+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451else
13452 ac_check_lib_save_LIBS=$LIBS
13453LIBS="-lcrypt $LIBS"
13454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h. */
13456
13457/* Override any GCC internal prototype to avoid an error.
13458 Use char because int might match the return type of a GCC
13459 builtin and then its argument prototype would still apply. */
13460#ifdef __cplusplus
13461extern "C"
13462#endif
13463char crypt ();
13464int
13465main ()
13466{
13467return crypt ();
13468 ;
13469 return 0;
13470}
13471_ACEOF
13472if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_lib_crypt_crypt=yes
13474else
13475 ac_cv_lib_crypt_crypt=no
13476fi
13477rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479LIBS=$ac_check_lib_save_LIBS
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13482$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13483if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13484 cat >>confdefs.h <<_ACEOF
13485#define HAVE_LIBCRYPT 1
13486_ACEOF
13487
13488 LIBS="-lcrypt $LIBS"
13489
13490fi
13491
13492 fi
13493
13494 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
13495 # version in OpenSSL.
13496 if test "x$check_for_libcrypt_later" = "x1"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13498$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13499if ${ac_cv_lib_crypt_crypt+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501else
13502 ac_check_lib_save_LIBS=$LIBS
13503LIBS="-lcrypt $LIBS"
13504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h. */
13506
13507/* Override any GCC internal prototype to avoid an error.
13508 Use char because int might match the return type of a GCC
13509 builtin and then its argument prototype would still apply. */
13510#ifdef __cplusplus
13511extern "C"
13512#endif
13513char crypt ();
13514int
13515main ()
13516{
13517return crypt ();
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522if ac_fn_c_try_link "$LINENO"; then :
13523 ac_cv_lib_crypt_crypt=yes
13524else
13525 ac_cv_lib_crypt_crypt=no
13526fi
13527rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529LIBS=$ac_check_lib_save_LIBS
13530fi
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13532$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13533if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13534 LIBS="$LIBS -lcrypt"
13535fi
13536
13537 fi
13538 for ac_func in crypt DES_crypt
13539do :
13540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13542if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13543 cat >>confdefs.h <<_ACEOF
13544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13545_ACEOF
13546
13547fi
13548done
13549
13550
13551 # Search for SHA256 support in libc and/or OpenSSL
13552 for ac_func in SHA256_Update EVP_sha256
13553do :
13554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13555ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13556if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13557 cat >>confdefs.h <<_ACEOF
13558#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559_ACEOF
13560
13561else
13562 unsupported_algorithms="$unsupported_algorithms \
13563 hmac-sha2-256 \
13564 hmac-sha2-512 \
13565 diffie-hellman-group-exchange-sha256 \
13566 hmac-sha2-256-etm@openssh.com \
13567 hmac-sha2-512-etm@openssh.com"
13568
13569
13570fi
13571done
13572
13573 # Search for RIPE-MD support in OpenSSL
13574 for ac_func in EVP_ripemd160
13575do :
13576 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
13577if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
13578 cat >>confdefs.h <<_ACEOF
13579#define HAVE_EVP_RIPEMD160 1
13580_ACEOF
13581
13582else
13583 unsupported_algorithms="$unsupported_algorithms \
13584 hmac-ripemd160 \
13585 hmac-ripemd160@openssh.com \
13586 hmac-ripemd160-etm@openssh.com"
13587
13588
13589fi
13590done
13591
13592
13593 # Check complete ECC support in OpenSSL
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
13595$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597/* end confdefs.h. */
13598
13599 #include <openssl/ec.h>
13600 #include <openssl/ecdh.h>
13601 #include <openssl/ecdsa.h>
13602 #include <openssl/evp.h>
13603 #include <openssl/objects.h>
13604 #include <openssl/opensslv.h>
13605
13606int
13607main ()
13608{
13609
13610 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
13611 const EVP_MD *m = EVP_sha256(); /* We need this too */
13612
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617if ac_fn_c_try_link "$LINENO"; then :
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13619$as_echo "yes" >&6; }
13620 enable_nistp256=1
13621else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623$as_echo "no" >&6; }
13624
13625fi
13626rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
13630$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h. */
13633
13634 #include <openssl/ec.h>
13635 #include <openssl/ecdh.h>
13636 #include <openssl/ecdsa.h>
13637 #include <openssl/evp.h>
13638 #include <openssl/objects.h>
13639 #include <openssl/opensslv.h>
13640
13641int
13642main ()
13643{
13644
13645 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
13646 const EVP_MD *m = EVP_sha384(); /* We need this too */
13647
13648 ;
13649 return 0;
13650}
13651_ACEOF
13652if ac_fn_c_try_link "$LINENO"; then :
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13654$as_echo "yes" >&6; }
13655 enable_nistp384=1
13656else
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658$as_echo "no" >&6; }
13659
13660fi
13661rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
13665$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667/* end confdefs.h. */
13668
13669 #include <openssl/ec.h>
13670 #include <openssl/ecdh.h>
13671 #include <openssl/ecdsa.h>
13672 #include <openssl/evp.h>
13673 #include <openssl/objects.h>
13674 #include <openssl/opensslv.h>
13675
13676int
13677main ()
13678{
13679
13680 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13681 const EVP_MD *m = EVP_sha512(); /* We need this too */
13682
13683 ;
13684 return 0;
13685}
13686_ACEOF
13687if ac_fn_c_try_link "$LINENO"; then :
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13689$as_echo "yes" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
13691$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
13692 if test "$cross_compiling" = yes; then :
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
13694$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
13695 enable_nistp521=1
13696
13697else
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699/* end confdefs.h. */
13700
13701 #include <openssl/ec.h>
13702 #include <openssl/ecdh.h>
13703 #include <openssl/ecdsa.h>
13704 #include <openssl/evp.h>
13705 #include <openssl/objects.h>
13706 #include <openssl/opensslv.h>
13707
13708int
13709main ()
13710{
13711
13712 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13713 const EVP_MD *m = EVP_sha512(); /* We need this too */
13714 exit(e == NULL || m == NULL);
13715
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720if ac_fn_c_try_run "$LINENO"; then :
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722$as_echo "yes" >&6; }
13723 enable_nistp521=1
13724else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726$as_echo "no" >&6; }
13727fi
13728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13729 conftest.$ac_objext conftest.beam conftest.$ac_ext
13730fi
13731
13732else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734$as_echo "no" >&6; }
13735
13736fi
13737rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13739
13740 COMMENT_OUT_ECC="#no ecc#"
13741 TEST_SSH_ECC=no
13742
13743 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
13744 test x$enable_nistp521 = x1; then
13745
13746$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
13747
13748 fi
13749 if test x$enable_nistp256 = x1; then
13750
13751$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
13752
13753 TEST_SSH_ECC=yes
13754 COMMENT_OUT_ECC=""
13755 else
13756 unsupported_algorithms="$unsupported_algorithms \
13757 ecdsa-sha2-nistp256 \
13758 ecdh-sha2-nistp256 \
13759 ecdsa-sha2-nistp256-cert-v01@openssh.com"
13760 fi
13761 if test x$enable_nistp384 = x1; then
13762
13763$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
13764
13765 TEST_SSH_ECC=yes
13766 COMMENT_OUT_ECC=""
13767 else
13768 unsupported_algorithms="$unsupported_algorithms \
13769 ecdsa-sha2-nistp384 \
13770 ecdh-sha2-nistp384 \
13771 ecdsa-sha2-nistp384-cert-v01@openssh.com"
13772 fi
13773 if test x$enable_nistp521 = x1; then
13774
13775$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
13776
13777 TEST_SSH_ECC=yes
13778 COMMENT_OUT_ECC=""
13779 else
13780 unsupported_algorithms="$unsupported_algorithms \
13781 ecdh-sha2-nistp521 \
13782 ecdsa-sha2-nistp521 \
13783 ecdsa-sha2-nistp521-cert-v01@openssh.com"
13784 fi
13785
13786
13787
13788else
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13790$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13791if ${ac_cv_lib_crypt_crypt+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793else
13794 ac_check_lib_save_LIBS=$LIBS
13795LIBS="-lcrypt $LIBS"
13796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h. */
13798
13799/* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13802#ifdef __cplusplus
13803extern "C"
13804#endif
13805char crypt ();
13806int
13807main ()
13808{
13809return crypt ();
13810 ;
13811 return 0;
13812}
13813_ACEOF
13814if ac_fn_c_try_link "$LINENO"; then :
13815 ac_cv_lib_crypt_crypt=yes
13816else
13817 ac_cv_lib_crypt_crypt=no
13818fi
13819rm -f core conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
13821LIBS=$ac_check_lib_save_LIBS
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13824$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13825if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13826 LIBS="$LIBS -lcrypt"
13827fi
13828
13829 for ac_func in crypt
13830do :
13831 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13832if test "x$ac_cv_func_crypt" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834#define HAVE_CRYPT 1
13835_ACEOF
13836
13837fi
13838done
13839
13840fi
13841
13842for ac_func in \
13843 arc4random \
13844 arc4random_buf \
13845 arc4random_stir \
13846 arc4random_uniform \
13847
13848do :
13849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13851if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13852 cat >>confdefs.h <<_ACEOF
13853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13854_ACEOF
13855
13856fi
13857done
13858
13859
13860saved_LIBS="$LIBS"
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
13862$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
13863if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865else
13866 ac_check_lib_save_LIBS=$LIBS
13867LIBS="-liaf $LIBS"
13868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h. */
13870
13871/* Override any GCC internal prototype to avoid an error.
13872 Use char because int might match the return type of a GCC
13873 builtin and then its argument prototype would still apply. */
13874#ifdef __cplusplus
13875extern "C"
13876#endif
13877char ia_openinfo ();
13878int
13879main ()
13880{
13881return ia_openinfo ();
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_lib_iaf_ia_openinfo=yes
13888else
13889 ac_cv_lib_iaf_ia_openinfo=no
13890fi
13891rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893LIBS=$ac_check_lib_save_LIBS
13894fi
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
13896$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
13897if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
13898
13899 LIBS="$LIBS -liaf"
13900 for ac_func in set_id
13901do :
13902 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
13903if test "x$ac_cv_func_set_id" = xyes; then :
13904 cat >>confdefs.h <<_ACEOF
13905#define HAVE_SET_ID 1
13906_ACEOF
13907 SSHDLIBS="$SSHDLIBS -liaf"
13908
13909$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
13910
13911
13912fi
13913done
13914
13915
13916fi
13917
13918LIBS="$saved_LIBS"
13919
13920### Configure cryptographic random number support
13921
13922# Check whether OpenSSL seeds itself
13923if test "x$openssl" = "xyes" ; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
13925$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
13926 if test "$cross_compiling" = yes; then :
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13929$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13930 # This is safe, since we will fatal() at runtime if
13931 # OpenSSL is not seeded correctly.
13932 OPENSSL_SEEDS_ITSELF=yes
13933
13934
13935else
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h. */
13938
13939 #include <string.h>
13940 #include <openssl/rand.h>
13941
13942int
13943main ()
13944{
13945
13946 exit(RAND_status() == 1 ? 0 : 1);
13947
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_run "$LINENO"; then :
13953
13954 OPENSSL_SEEDS_ITSELF=yes
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13956$as_echo "yes" >&6; }
13957
13958else
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961$as_echo "no" >&6; }
13962
13963fi
13964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13965 conftest.$ac_objext conftest.beam conftest.$ac_ext
13966fi
13967
13968fi
13969
13970# PRNGD TCP socket
13971
13972# Check whether --with-prngd-port was given.
13973if test "${with_prngd_port+set}" = set; then :
13974 withval=$with_prngd_port;
13975 case "$withval" in
13976 no)
13977 withval=""
13978 ;;
13979 [0-9]*)
13980 ;;
13981 *)
13982 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
13983 ;;
13984 esac
13985 if test ! -z "$withval" ; then
13986 PRNGD_PORT="$withval"
13987
13988cat >>confdefs.h <<_ACEOF
13989#define PRNGD_PORT $PRNGD_PORT
13990_ACEOF
13991
13992 fi
13993
13994
13995fi
13996
13997
13998# PRNGD Unix domain socket
13999
14000# Check whether --with-prngd-socket was given.
14001if test "${with_prngd_socket+set}" = set; then :
14002 withval=$with_prngd_socket;
14003 case "$withval" in
14004 yes)
14005 withval="/var/run/egd-pool"
14006 ;;
14007 no)
14008 withval=""
14009 ;;
14010 /*)
14011 ;;
14012 *)
14013 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
14014 ;;
14015 esac
14016
14017 if test ! -z "$withval" ; then
14018 if test ! -z "$PRNGD_PORT" ; then
14019 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
14020 fi
14021 if test ! -r "$withval" ; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
14023$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14024 fi
14025 PRNGD_SOCKET="$withval"
14026
14027cat >>confdefs.h <<_ACEOF
14028#define PRNGD_SOCKET "$PRNGD_SOCKET"
14029_ACEOF
14030
14031 fi
14032
14033else
14034
14035 # Check for existing socket only if we don't have a random device already
14036 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
14038$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
14039 # Insert other locations here
14040 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14041 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14042 PRNGD_SOCKET="$sock"
14043 cat >>confdefs.h <<_ACEOF
14044#define PRNGD_SOCKET "$PRNGD_SOCKET"
14045_ACEOF
14046
14047 break;
14048 fi
14049 done
14050 if test ! -z "$PRNGD_SOCKET" ; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
14052$as_echo "$PRNGD_SOCKET" >&6; }
14053 else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14055$as_echo "not found" >&6; }
14056 fi
14057 fi
14058
14059
14060fi
14061
14062
14063# Which randomness source do we use?
14064if test ! -z "$PRNGD_PORT" ; then
14065 RAND_MSG="PRNGd port $PRNGD_PORT"
14066elif test ! -z "$PRNGD_SOCKET" ; then
14067 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
14068elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
14069
14070$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
14071
14072 RAND_MSG="OpenSSL internal ONLY"
14073elif test "x$openssl" = "xno" ; then
14074 { $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
14075$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;}
14076else
14077 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
14078fi
14079
14080# Check for PAM libs
14081PAM_MSG="no"
14082
14083# Check whether --with-pam was given.
14084if test "${with_pam+set}" = set; then :
14085 withval=$with_pam;
14086 if test "x$withval" != "xno" ; then
14087 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
14088 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
14089 as_fn_error $? "PAM headers not found" "$LINENO" 5
14090 fi
14091
14092 saved_LIBS="$LIBS"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14094$as_echo_n "checking for dlopen in -ldl... " >&6; }
14095if ${ac_cv_lib_dl_dlopen+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097else
14098 ac_check_lib_save_LIBS=$LIBS
14099LIBS="-ldl $LIBS"
14100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h. */
14102
14103/* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14106#ifdef __cplusplus
14107extern "C"
14108#endif
14109char dlopen ();
14110int
14111main ()
14112{
14113return dlopen ();
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118if ac_fn_c_try_link "$LINENO"; then :
14119 ac_cv_lib_dl_dlopen=yes
14120else
14121 ac_cv_lib_dl_dlopen=no
14122fi
14123rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125LIBS=$ac_check_lib_save_LIBS
14126fi
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14128$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14129if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14130 cat >>confdefs.h <<_ACEOF
14131#define HAVE_LIBDL 1
14132_ACEOF
14133
14134 LIBS="-ldl $LIBS"
14135
14136fi
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
14139$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
14140if ${ac_cv_lib_pam_pam_set_item+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142else
14143 ac_check_lib_save_LIBS=$LIBS
14144LIBS="-lpam $LIBS"
14145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146/* end confdefs.h. */
14147
14148/* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151#ifdef __cplusplus
14152extern "C"
14153#endif
14154char pam_set_item ();
14155int
14156main ()
14157{
14158return pam_set_item ();
14159 ;
14160 return 0;
14161}
14162_ACEOF
14163if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_pam_pam_set_item=yes
14165else
14166 ac_cv_lib_pam_pam_set_item=no
14167fi
14168rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170LIBS=$ac_check_lib_save_LIBS
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
14173$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
14174if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
14175 cat >>confdefs.h <<_ACEOF
14176#define HAVE_LIBPAM 1
14177_ACEOF
14178
14179 LIBS="-lpam $LIBS"
14180
14181else
14182 as_fn_error $? "*** libpam missing" "$LINENO" 5
14183fi
14184
14185 for ac_func in pam_getenvlist
14186do :
14187 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
14188if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
14189 cat >>confdefs.h <<_ACEOF
14190#define HAVE_PAM_GETENVLIST 1
14191_ACEOF
14192
14193fi
14194done
14195
14196 for ac_func in pam_putenv
14197do :
14198 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
14199if test "x$ac_cv_func_pam_putenv" = xyes; then :
14200 cat >>confdefs.h <<_ACEOF
14201#define HAVE_PAM_PUTENV 1
14202_ACEOF
14203
14204fi
14205done
14206
14207 LIBS="$saved_LIBS"
14208
14209 PAM_MSG="yes"
14210
14211 SSHDLIBS="$SSHDLIBS -lpam"
14212
14213$as_echo "#define USE_PAM 1" >>confdefs.h
14214
14215
14216 if test $ac_cv_lib_dl_dlopen = yes; then
14217 case "$LIBS" in
14218 *-ldl*)
14219 # libdl already in LIBS
14220 ;;
14221 *)
14222 SSHDLIBS="$SSHDLIBS -ldl"
14223 ;;
14224 esac
14225 fi
14226 fi
14227
14228
14229fi
14230
14231
14232
14233# Check whether --with-pam-service was given.
14234if test "${with_pam_service+set}" = set; then :
14235 withval=$with_pam_service;
14236 if test "x$withval" != "xno" && \
14237 test "x$withval" != "xyes" ; then
14238
14239cat >>confdefs.h <<_ACEOF
14240#define SSHD_PAM_SERVICE "$withval"
14241_ACEOF
14242
14243 fi
14244
14245
14246fi
14247
14248
14249# Check for older PAM
14250if test "x$PAM_MSG" = "xyes" ; then
14251 # Check PAM strerror arguments (old PAM)
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
14253$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h. */
14256
14257#include <stdlib.h>
14258#if defined(HAVE_SECURITY_PAM_APPL_H)
14259#include <security/pam_appl.h>
14260#elif defined (HAVE_PAM_PAM_APPL_H)
14261#include <pam/pam_appl.h>
14262#endif
14263
14264int
14265main ()
14266{
14267
14268(void)pam_strerror((pam_handle_t *)NULL, -1);
14269
14270 ;
14271 return 0;
14272}
14273_ACEOF
14274if ac_fn_c_try_compile "$LINENO"; then :
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276$as_echo "no" >&6; }
14277else
14278
14279
14280$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
14281
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14283$as_echo "yes" >&6; }
14284 PAM_MSG="yes (old library)"
14285
14286
14287fi
14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289fi
14290
14291case "$host" in
14292*-*-cygwin*)
14293 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
14294 ;;
14295*)
14296 SSH_PRIVSEP_USER=sshd
14297 ;;
14298esac
14299
14300# Check whether --with-privsep-user was given.
14301if test "${with_privsep_user+set}" = set; then :
14302 withval=$with_privsep_user;
14303 if test -n "$withval" && test "x$withval" != "xno" && \
14304 test "x${withval}" != "xyes"; then
14305 SSH_PRIVSEP_USER=$withval
14306 fi
14307
14308
14309fi
14310
14311if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
14312
14313cat >>confdefs.h <<_ACEOF
14314#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
14315_ACEOF
14316
14317else
14318
14319cat >>confdefs.h <<_ACEOF
14320#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14321_ACEOF
14322
14323fi
14324
14325
14326if test "x$have_linux_no_new_privs" = "x1" ; then
14327ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
14328 #include <sys/types.h>
14329 #include <linux/seccomp.h>
14330
14331"
14332if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
14333 have_seccomp_filter=1
14334fi
14335
14336fi
14337if test "x$have_seccomp_filter" = "x1" ; then
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
14339$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
14340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h. */
14342
14343 #include <errno.h>
14344 #include <elf.h>
14345 #include <linux/audit.h>
14346 #include <linux/seccomp.h>
14347 #include <stdlib.h>
14348 #include <sys/prctl.h>
14349
14350int
14351main ()
14352{
14353 int i = $seccomp_audit_arch;
14354 errno = 0;
14355 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
14356 exit(errno == EFAULT ? 0 : 1);
14357 ;
14358 return 0;
14359}
14360_ACEOF
14361if ac_fn_c_try_link "$LINENO"; then :
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363$as_echo "yes" >&6; }
14364else
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367$as_echo "no" >&6; }
14368 # Disable seccomp filter as a target
14369 have_seccomp_filter=0
14370
14371
14372fi
14373rm -f core conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375fi
14376
14377# Decide which sandbox style to use
14378sandbox_arg=""
14379
14380# Check whether --with-sandbox was given.
14381if test "${with_sandbox+set}" = set; then :
14382 withval=$with_sandbox;
14383 if test "x$withval" = "xyes" ; then
14384 sandbox_arg=""
14385 else
14386 sandbox_arg="$withval"
14387 fi
14388
14389
14390fi
14391
14392
14393# Some platforms (seems to be the ones that have a kernel poll(2)-type
14394# function with which they implement select(2)) use an extra file descriptor
14395# when calling select(2), which means we can't use the rlimit sandbox.
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
14397$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
14398if test "$cross_compiling" = yes; then :
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14400$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14401 select_works_with_rlimit=yes
14402
14403else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h. */
14406
14407#include <sys/types.h>
14408#ifdef HAVE_SYS_TIME_H
14409# include <sys/time.h>
14410#endif
14411#include <sys/resource.h>
14412#ifdef HAVE_SYS_SELECT_H
14413# include <sys/select.h>
14414#endif
14415#include <errno.h>
14416#include <fcntl.h>
14417#include <stdlib.h>
14418
14419int
14420main ()
14421{
14422
14423 struct rlimit rl_zero;
14424 int fd, r;
14425 fd_set fds;
14426 struct timeval tv;
14427
14428 fd = open("/dev/null", O_RDONLY);
14429 FD_ZERO(&fds);
14430 FD_SET(fd, &fds);
14431 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14432 setrlimit(RLIMIT_FSIZE, &rl_zero);
14433 setrlimit(RLIMIT_NOFILE, &rl_zero);
14434 tv.tv_sec = 1;
14435 tv.tv_usec = 0;
14436 r = select(fd+1, &fds, NULL, NULL, &tv);
14437 exit (r == -1 ? 1 : 0);
14438
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443if ac_fn_c_try_run "$LINENO"; then :
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14445$as_echo "yes" >&6; }
14446 select_works_with_rlimit=yes
14447else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449$as_echo "no" >&6; }
14450 select_works_with_rlimit=no
14451fi
14452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14453 conftest.$ac_objext conftest.beam conftest.$ac_ext
14454fi
14455
14456
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
14458$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
14459if test "$cross_compiling" = yes; then :
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14461$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14462 rlimit_nofile_zero_works=yes
14463
14464else
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466/* end confdefs.h. */
14467
14468#include <sys/types.h>
14469#ifdef HAVE_SYS_TIME_H
14470# include <sys/time.h>
14471#endif
14472#include <sys/resource.h>
14473#include <errno.h>
14474#include <stdlib.h>
14475
14476int
14477main ()
14478{
14479
14480 struct rlimit rl_zero;
14481 int fd, r;
14482 fd_set fds;
14483
14484 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14485 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
14486 exit (r == -1 ? 1 : 0);
14487
14488 ;
14489 return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_run "$LINENO"; then :
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494$as_echo "yes" >&6; }
14495 rlimit_nofile_zero_works=yes
14496else
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498$as_echo "no" >&6; }
14499 rlimit_nofile_zero_works=no
14500fi
14501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14502 conftest.$ac_objext conftest.beam conftest.$ac_ext
14503fi
14504
14505
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
14507$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
14508if test "$cross_compiling" = yes; then :
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14510$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14511
14512else
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514/* end confdefs.h. */
14515
14516#include <sys/types.h>
14517#include <sys/resource.h>
14518#include <stdlib.h>
14519
14520int
14521main ()
14522{
14523
14524 struct rlimit rl_zero;
14525
14526 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14527 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
14528
14529 ;
14530 return 0;
14531}
14532_ACEOF
14533if ac_fn_c_try_run "$LINENO"; then :
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535$as_echo "yes" >&6; }
14536else
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538$as_echo "no" >&6; }
14539
14540$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
14541
14542fi
14543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14544 conftest.$ac_objext conftest.beam conftest.$ac_ext
14545fi
14546
14547
14548if test "x$sandbox_arg" = "xpledge" || \
14549 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
14550 test "x$ac_cv_func_pledge" != "xyes" && \
14551 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5
14552 SANDBOX_STYLE="pledge"
14553
14554$as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h
14555
14556elif test "x$sandbox_arg" = "xsystrace" || \
14557 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
14558 test "x$have_systr_policy_kill" != "x1" && \
14559 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
14560 SANDBOX_STYLE="systrace"
14561
14562$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
14563
14564elif test "x$sandbox_arg" = "xdarwin" || \
14565 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
14566 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
14567 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
14568 "x$ac_cv_header_sandbox_h" != "xyes" && \
14569 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
14570 SANDBOX_STYLE="darwin"
14571
14572$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
14573
14574elif test "x$sandbox_arg" = "xseccomp_filter" || \
14575 ( test -z "$sandbox_arg" && \
14576 test "x$have_seccomp_filter" = "x1" && \
14577 test "x$ac_cv_header_elf_h" = "xyes" && \
14578 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
14579 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
14580 test "x$seccomp_audit_arch" != "x" && \
14581 test "x$have_linux_no_new_privs" = "x1" && \
14582 test "x$ac_cv_func_prctl" = "xyes" ) ; then
14583 test "x$seccomp_audit_arch" = "x" && \
14584 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
14585 test "x$have_linux_no_new_privs" != "x1" && \
14586 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
14587 test "x$have_seccomp_filter" != "x1" && \
14588 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
14589 test "x$ac_cv_func_prctl" != "xyes" && \
14590 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
14591 SANDBOX_STYLE="seccomp_filter"
14592
14593$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
14594
14595elif test "x$sandbox_arg" = "xcapsicum" || \
14596 ( test -z "$sandbox_arg" && \
14597 test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \
14598 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
14599 test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \
14600 as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5
14601 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
14602 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
14603 SANDBOX_STYLE="capsicum"
14604
14605$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
14606
14607elif test "x$sandbox_arg" = "xrlimit" || \
14608 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
14609 test "x$select_works_with_rlimit" = "xyes" && \
14610 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
14611 test "x$ac_cv_func_setrlimit" != "xyes" && \
14612 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
14613 test "x$select_works_with_rlimit" != "xyes" && \
14614 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
14615 SANDBOX_STYLE="rlimit"
14616
14617$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
14618
14619elif test "x$sandbox_arg" = "xsolaris" || \
14620 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
14621 SANDBOX_STYLE="solaris"
14622
14623$as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h
14624
14625elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
14626 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
14627 SANDBOX_STYLE="none"
14628
14629$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
14630
14631else
14632 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
14633fi
14634
14635# Cheap hack to ensure NEWS-OS libraries are arranged right.
14636if test ! -z "$SONY" ; then
14637 LIBS="$LIBS -liberty";
14638fi
14639
14640# Check for long long datatypes
14641ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14642if test "x$ac_cv_type_long_long" = xyes; then :
14643
14644cat >>confdefs.h <<_ACEOF
14645#define HAVE_LONG_LONG 1
14646_ACEOF
14647
14648
14649fi
14650ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
14651if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
14652
14653cat >>confdefs.h <<_ACEOF
14654#define HAVE_UNSIGNED_LONG_LONG 1
14655_ACEOF
14656
14657
14658fi
14659ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
14660if test "x$ac_cv_type_long_double" = xyes; then :
14661
14662cat >>confdefs.h <<_ACEOF
14663#define HAVE_LONG_DOUBLE 1
14664_ACEOF
14665
14666
14667fi
14668
14669
14670# Check datatype sizes
14671# The cast to long int works around a bug in the HP C Compiler
14672# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14673# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14674# This bug is HP SR number 8606223364.
14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
14676$as_echo_n "checking size of short int... " >&6; }
14677if ${ac_cv_sizeof_short_int+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679else
14680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
14681
14682else
14683 if test "$ac_cv_type_short_int" = yes; then
14684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14686as_fn_error 77 "cannot compute sizeof (short int)
14687See \`config.log' for more details" "$LINENO" 5; }
14688 else
14689 ac_cv_sizeof_short_int=0
14690 fi
14691fi
14692
14693fi
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
14695$as_echo "$ac_cv_sizeof_short_int" >&6; }
14696
14697
14698
14699cat >>confdefs.h <<_ACEOF
14700#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14701_ACEOF
14702
14703
14704# The cast to long int works around a bug in the HP C Compiler
14705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14707# This bug is HP SR number 8606223364.
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14709$as_echo_n "checking size of int... " >&6; }
14710if ${ac_cv_sizeof_int+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712else
14713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14714
14715else
14716 if test "$ac_cv_type_int" = yes; then
14717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14719as_fn_error 77 "cannot compute sizeof (int)
14720See \`config.log' for more details" "$LINENO" 5; }
14721 else
14722 ac_cv_sizeof_int=0
14723 fi
14724fi
14725
14726fi
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14728$as_echo "$ac_cv_sizeof_int" >&6; }
14729
14730
14731
14732cat >>confdefs.h <<_ACEOF
14733#define SIZEOF_INT $ac_cv_sizeof_int
14734_ACEOF
14735
14736
14737# The cast to long int works around a bug in the HP C Compiler
14738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14740# This bug is HP SR number 8606223364.
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14742$as_echo_n "checking size of long int... " >&6; }
14743if ${ac_cv_sizeof_long_int+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745else
14746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14747
14748else
14749 if test "$ac_cv_type_long_int" = yes; then
14750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14752as_fn_error 77 "cannot compute sizeof (long int)
14753See \`config.log' for more details" "$LINENO" 5; }
14754 else
14755 ac_cv_sizeof_long_int=0
14756 fi
14757fi
14758
14759fi
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14761$as_echo "$ac_cv_sizeof_long_int" >&6; }
14762
14763
14764
14765cat >>confdefs.h <<_ACEOF
14766#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14767_ACEOF
14768
14769
14770# The cast to long int works around a bug in the HP C Compiler
14771# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14772# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14773# This bug is HP SR number 8606223364.
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
14775$as_echo_n "checking size of long long int... " >&6; }
14776if ${ac_cv_sizeof_long_long_int+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778else
14779 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
14780
14781else
14782 if test "$ac_cv_type_long_long_int" = yes; then
14783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14785as_fn_error 77 "cannot compute sizeof (long long int)
14786See \`config.log' for more details" "$LINENO" 5; }
14787 else
14788 ac_cv_sizeof_long_long_int=0
14789 fi
14790fi
14791
14792fi
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
14794$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
14795
14796
14797
14798cat >>confdefs.h <<_ACEOF
14799#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14800_ACEOF
14801
14802
14803
14804# Sanity check long long for some platforms (AIX)
14805if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14806 ac_cv_sizeof_long_long_int=0
14807fi
14808
14809# compute LLONG_MIN and LLONG_MAX if we don't know them.
14810if test -z "$have_llong_max"; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
14812$as_echo_n "checking for max value of long long... " >&6; }
14813 if test "$cross_compiling" = yes; then :
14814
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
14816$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14817
14818
14819else
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821/* end confdefs.h. */
14822
14823#include <stdio.h>
14824/* Why is this so damn hard? */
14825#ifdef __GNUC__
14826# undef __GNUC__
14827#endif
14828#define __USE_ISOC99
14829#include <limits.h>
14830#define DATA "conftest.llminmax"
14831#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
14832
14833/*
14834 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
14835 * we do this the hard way.
14836 */
14837static int
14838fprint_ll(FILE *f, long long n)
14839{
14840 unsigned int i;
14841 int l[sizeof(long long) * 8];
14842
14843 if (n < 0)
14844 if (fprintf(f, "-") < 0)
14845 return -1;
14846 for (i = 0; n != 0; i++) {
14847 l[i] = my_abs(n % 10);
14848 n /= 10;
14849 }
14850 do {
14851 if (fprintf(f, "%d", l[--i]) < 0)
14852 return -1;
14853 } while (i != 0);
14854 if (fprintf(f, " ") < 0)
14855 return -1;
14856 return 0;
14857}
14858
14859int
14860main ()
14861{
14862
14863 FILE *f;
14864 long long i, llmin, llmax = 0;
14865
14866 if((f = fopen(DATA,"w")) == NULL)
14867 exit(1);
14868
14869#if defined(LLONG_MIN) && defined(LLONG_MAX)
14870 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
14871 llmin = LLONG_MIN;
14872 llmax = LLONG_MAX;
14873#else
14874 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
14875 /* This will work on one's complement and two's complement */
14876 for (i = 1; i > llmax; i <<= 1, i++)
14877 llmax = i;
14878 llmin = llmax + 1LL; /* wrap */
14879#endif
14880
14881 /* Sanity check */
14882 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
14883 || llmax - 1 > llmax || llmin == llmax || llmin == 0
14884 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
14885 fprintf(f, "unknown unknown\n");
14886 exit(2);
14887 }
14888
14889 if (fprint_ll(f, llmin) < 0)
14890 exit(3);
14891 if (fprint_ll(f, llmax) < 0)
14892 exit(4);
14893 if (fclose(f) < 0)
14894 exit(5);
14895 exit(0);
14896
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901if ac_fn_c_try_run "$LINENO"; then :
14902
14903 llong_min=`$AWK '{print $1}' conftest.llminmax`
14904 llong_max=`$AWK '{print $2}' conftest.llminmax`
14905
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
14907$as_echo "$llong_max" >&6; }
14908
14909cat >>confdefs.h <<_ACEOF
14910#define LLONG_MAX ${llong_max}LL
14911_ACEOF
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
14914$as_echo_n "checking for min value of long long... " >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
14916$as_echo "$llong_min" >&6; }
14917
14918cat >>confdefs.h <<_ACEOF
14919#define LLONG_MIN ${llong_min}LL
14920_ACEOF
14921
14922
14923else
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14926$as_echo "not found" >&6; }
14927
14928fi
14929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930 conftest.$ac_objext conftest.beam conftest.$ac_ext
14931fi
14932
14933fi
14934
14935
14936# More checks for data types
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
14938$as_echo_n "checking for u_int type... " >&6; }
14939if ${ac_cv_have_u_int+:} false; then :
14940 $as_echo_n "(cached) " >&6
14941else
14942
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944/* end confdefs.h. */
14945 #include <sys/types.h>
14946int
14947main ()
14948{
14949 u_int a; a = 1;
14950 ;
14951 return 0;
14952}
14953_ACEOF
14954if ac_fn_c_try_compile "$LINENO"; then :
14955 ac_cv_have_u_int="yes"
14956else
14957 ac_cv_have_u_int="no"
14958
14959fi
14960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
14964$as_echo "$ac_cv_have_u_int" >&6; }
14965if test "x$ac_cv_have_u_int" = "xyes" ; then
14966
14967$as_echo "#define HAVE_U_INT 1" >>confdefs.h
14968
14969 have_u_int=1
14970fi
14971
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
14973$as_echo_n "checking for intXX_t types... " >&6; }
14974if ${ac_cv_have_intxx_t+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976else
14977
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979/* end confdefs.h. */
14980 #include <sys/types.h>
14981int
14982main ()
14983{
14984 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14985 ;
14986 return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"; then :
14990 ac_cv_have_intxx_t="yes"
14991else
14992 ac_cv_have_intxx_t="no"
14993
14994fi
14995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14996
14997fi
14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
14999$as_echo "$ac_cv_have_intxx_t" >&6; }
15000if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15001
15002$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15003
15004 have_intxx_t=1
15005fi
15006
15007if (test -z "$have_intxx_t" && \
15008 test "x$ac_cv_header_stdint_h" = "xyes")
15009then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
15011$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h. */
15014 #include <stdint.h>
15015int
15016main ()
15017{
15018 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023if ac_fn_c_try_compile "$LINENO"; then :
15024
15025 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15026
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028$as_echo "yes" >&6; }
15029
15030else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032$as_echo "no" >&6; }
15033
15034fi
15035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036fi
15037
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
15039$as_echo_n "checking for int64_t type... " >&6; }
15040if ${ac_cv_have_int64_t+:} false; then :
15041 $as_echo_n "(cached) " >&6
15042else
15043
15044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h. */
15046
15047#include <sys/types.h>
15048#ifdef HAVE_STDINT_H
15049# include <stdint.h>
15050#endif
15051#include <sys/socket.h>
15052#ifdef HAVE_SYS_BITYPES_H
15053# include <sys/bitypes.h>
15054#endif
15055
15056int
15057main ()
15058{
15059
15060int64_t a; a = 1;
15061
15062 ;
15063 return 0;
15064}
15065_ACEOF
15066if ac_fn_c_try_compile "$LINENO"; then :
15067 ac_cv_have_int64_t="yes"
15068else
15069 ac_cv_have_int64_t="no"
15070
15071fi
15072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073
15074fi
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
15076$as_echo "$ac_cv_have_int64_t" >&6; }
15077if test "x$ac_cv_have_int64_t" = "xyes" ; then
15078
15079$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
15080
15081fi
15082
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
15084$as_echo_n "checking for u_intXX_t types... " >&6; }
15085if ${ac_cv_have_u_intxx_t+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087else
15088
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090/* end confdefs.h. */
15091 #include <sys/types.h>
15092int
15093main ()
15094{
15095 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15096 ;
15097 return 0;
15098}
15099_ACEOF
15100if ac_fn_c_try_compile "$LINENO"; then :
15101 ac_cv_have_u_intxx_t="yes"
15102else
15103 ac_cv_have_u_intxx_t="no"
15104
15105fi
15106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107
15108fi
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
15110$as_echo "$ac_cv_have_u_intxx_t" >&6; }
15111if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15112
15113$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15114
15115 have_u_intxx_t=1
15116fi
15117
15118if test -z "$have_u_intxx_t" ; then
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
15120$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122/* end confdefs.h. */
15123 #include <sys/socket.h>
15124int
15125main ()
15126{
15127 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15128 ;
15129 return 0;
15130}
15131_ACEOF
15132if ac_fn_c_try_compile "$LINENO"; then :
15133
15134 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15137$as_echo "yes" >&6; }
15138
15139else
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15141$as_echo "no" >&6; }
15142
15143fi
15144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145fi
15146
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
15148$as_echo_n "checking for u_int64_t types... " >&6; }
15149if ${ac_cv_have_u_int64_t+:} false; then :
15150 $as_echo_n "(cached) " >&6
15151else
15152
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h. */
15155 #include <sys/types.h>
15156int
15157main ()
15158{
15159 u_int64_t a; a = 1;
15160 ;
15161 return 0;
15162}
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165 ac_cv_have_u_int64_t="yes"
15166else
15167 ac_cv_have_u_int64_t="no"
15168
15169fi
15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171
15172fi
15173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
15174$as_echo "$ac_cv_have_u_int64_t" >&6; }
15175if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15176
15177$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15178
15179 have_u_int64_t=1
15180fi
15181
15182if (test -z "$have_u_int64_t" && \
15183 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15184then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
15186$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h. */
15189 #include <sys/bitypes.h>
15190int
15191main ()
15192{
15193 u_int64_t a; a = 1
15194 ;
15195 return 0;
15196}
15197_ACEOF
15198if ac_fn_c_try_compile "$LINENO"; then :
15199
15200 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15203$as_echo "yes" >&6; }
15204
15205else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207$as_echo "no" >&6; }
15208
15209fi
15210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211fi
15212
15213if test -z "$have_u_intxx_t" ; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
15215$as_echo_n "checking for uintXX_t types... " >&6; }
15216if ${ac_cv_have_uintxx_t+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218else
15219
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221/* end confdefs.h. */
15222
15223#include <sys/types.h>
15224
15225int
15226main ()
15227{
15228
15229 uint8_t a;
15230 uint16_t b;
15231 uint32_t c;
15232 a = b = c = 1;
15233
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238if ac_fn_c_try_compile "$LINENO"; then :
15239 ac_cv_have_uintxx_t="yes"
15240else
15241 ac_cv_have_uintxx_t="no"
15242
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245
15246fi
15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
15248$as_echo "$ac_cv_have_uintxx_t" >&6; }
15249 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15250
15251$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15252
15253 fi
15254fi
15255
15256if (test -z "$have_uintxx_t" && \
15257 test "x$ac_cv_header_stdint_h" = "xyes")
15258then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
15260$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h. */
15263 #include <stdint.h>
15264int
15265main ()
15266{
15267 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15268 ;
15269 return 0;
15270}
15271_ACEOF
15272if ac_fn_c_try_compile "$LINENO"; then :
15273
15274 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15275
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15277$as_echo "yes" >&6; }
15278
15279else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281$as_echo "no" >&6; }
15282
15283fi
15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285fi
15286
15287if (test -z "$have_uintxx_t" && \
15288 test "x$ac_cv_header_inttypes_h" = "xyes")
15289then
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
15291$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293/* end confdefs.h. */
15294 #include <inttypes.h>
15295int
15296main ()
15297{
15298 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
15299 ;
15300 return 0;
15301}
15302_ACEOF
15303if ac_fn_c_try_compile "$LINENO"; then :
15304
15305 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15308$as_echo "yes" >&6; }
15309
15310else
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312$as_echo "no" >&6; }
15313
15314fi
15315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316fi
15317
15318if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15319 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15320then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15322$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324/* end confdefs.h. */
15325
15326#include <sys/bitypes.h>
15327
15328int
15329main ()
15330{
15331
15332 int8_t a; int16_t b; int32_t c;
15333 u_int8_t e; u_int16_t f; u_int32_t g;
15334 a = b = c = e = f = g = 1;
15335
15336 ;
15337 return 0;
15338}
15339_ACEOF
15340if ac_fn_c_try_compile "$LINENO"; then :
15341
15342 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
15343
15344 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15347$as_echo "yes" >&6; }
15348
15349else
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351$as_echo "no" >&6; }
15352
15353fi
15354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355fi
15356
15357
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
15359$as_echo_n "checking for u_char... " >&6; }
15360if ${ac_cv_have_u_char+:} 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_char foo; foo = 125;
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_compile "$LINENO"; then :
15376 ac_cv_have_u_char="yes"
15377else
15378 ac_cv_have_u_char="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_char" >&5
15385$as_echo "$ac_cv_have_u_char" >&6; }
15386if test "x$ac_cv_have_u_char" = "xyes" ; then
15387
15388$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
15389
15390fi
15391
15392ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
15393#include <sys/types.h>
15394#include <stdint.h>
15395
15396"
15397if test "x$ac_cv_type_intmax_t" = xyes; then :
15398
15399cat >>confdefs.h <<_ACEOF
15400#define HAVE_INTMAX_T 1
15401_ACEOF
15402
15403
15404fi
15405ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
15406#include <sys/types.h>
15407#include <stdint.h>
15408
15409"
15410if test "x$ac_cv_type_uintmax_t" = xyes; then :
15411
15412cat >>confdefs.h <<_ACEOF
15413#define HAVE_UINTMAX_T 1
15414_ACEOF
15415
15416
15417fi
15418
15419
15420
15421 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15422#include <sys/socket.h>
15423"
15424if test "x$ac_cv_type_socklen_t" = xyes; then :
15425
15426else
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15429$as_echo_n "checking for socklen_t equivalent... " >&6; }
15430 if ${curl_cv_socklen_t_equiv+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432else
15433
15434 # Systems have either "struct sockaddr *" or
15435 # "void *" as the second argument to getpeername
15436 curl_cv_socklen_t_equiv=
15437 for arg2 in "struct sockaddr" void; do
15438 for t in int size_t unsigned long "unsigned long"; do
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h. */
15441
15442 #include <sys/types.h>
15443 #include <sys/socket.h>
15444
15445 int getpeername (int, $arg2 *, $t *);
15446
15447int
15448main ()
15449{
15450
15451 $t len;
15452 getpeername(0,0,&len);
15453
15454 ;
15455 return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_compile "$LINENO"; then :
15459
15460 curl_cv_socklen_t_equiv="$t"
15461 break
15462
15463fi
15464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465 done
15466 done
15467
15468 if test "x$curl_cv_socklen_t_equiv" = x; then
15469 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15470 fi
15471
15472fi
15473
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
15475$as_echo "$curl_cv_socklen_t_equiv" >&6; }
15476
15477cat >>confdefs.h <<_ACEOF
15478#define socklen_t $curl_cv_socklen_t_equiv
15479_ACEOF
15480
15481fi
15482
15483
15484
15485ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
15486"
15487if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15488
15489cat >>confdefs.h <<_ACEOF
15490#define HAVE_SIG_ATOMIC_T 1
15491_ACEOF
15492
15493
15494fi
15495
15496ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
15497#include <sys/types.h>
15498#ifdef HAVE_SYS_BITYPES_H
15499#include <sys/bitypes.h>
15500#endif
15501#ifdef HAVE_SYS_STATFS_H
15502#include <sys/statfs.h>
15503#endif
15504#ifdef HAVE_SYS_STATVFS_H
15505#include <sys/statvfs.h>
15506#endif
15507
15508"
15509if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15510
15511cat >>confdefs.h <<_ACEOF
15512#define HAVE_FSBLKCNT_T 1
15513_ACEOF
15514
15515
15516fi
15517ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
15518#include <sys/types.h>
15519#ifdef HAVE_SYS_BITYPES_H
15520#include <sys/bitypes.h>
15521#endif
15522#ifdef HAVE_SYS_STATFS_H
15523#include <sys/statfs.h>
15524#endif
15525#ifdef HAVE_SYS_STATVFS_H
15526#include <sys/statvfs.h>
15527#endif
15528
15529"
15530if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15531
15532cat >>confdefs.h <<_ACEOF
15533#define HAVE_FSFILCNT_T 1
15534_ACEOF
15535
15536
15537fi
15538
15539
15540ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
15541#include <sys/types.h>
15542#ifdef HAVE_SYS_BITYPES_H
15543#include <sys/bitypes.h>
15544#endif
15545#ifdef HAVE_SYS_STATFS_H
15546#include <sys/statfs.h>
15547#endif
15548#ifdef HAVE_SYS_STATVFS_H
15549#include <sys/statvfs.h>
15550#endif
15551#ifdef HAVE_SYS_VFS_H
15552#include <sys/vfs.h>
15553#endif
15554
15555"
15556if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
15557
15558cat >>confdefs.h <<_ACEOF
15559#define HAVE_STRUCT_STATFS_F_FLAGS 1
15560_ACEOF
15561
15562
15563fi
15564
15565
15566
15567ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
15568#include <netinet/in.h>
15569"
15570if test "x$ac_cv_type_in_addr_t" = xyes; then :
15571
15572cat >>confdefs.h <<_ACEOF
15573#define HAVE_IN_ADDR_T 1
15574_ACEOF
15575
15576
15577fi
15578ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15579#include <netinet/in.h>
15580"
15581if test "x$ac_cv_type_in_port_t" = xyes; then :
15582
15583cat >>confdefs.h <<_ACEOF
15584#define HAVE_IN_PORT_T 1
15585_ACEOF
15586
15587
15588fi
15589
15590
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15592$as_echo_n "checking for size_t... " >&6; }
15593if ${ac_cv_have_size_t+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595else
15596
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598/* end confdefs.h. */
15599 #include <sys/types.h>
15600int
15601main ()
15602{
15603 size_t foo; foo = 1235;
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"; then :
15609 ac_cv_have_size_t="yes"
15610else
15611 ac_cv_have_size_t="no"
15612
15613fi
15614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15615
15616fi
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
15618$as_echo "$ac_cv_have_size_t" >&6; }
15619if test "x$ac_cv_have_size_t" = "xyes" ; then
15620
15621$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
15622
15623fi
15624
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15626$as_echo_n "checking for ssize_t... " >&6; }
15627if ${ac_cv_have_ssize_t+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629else
15630
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h. */
15633 #include <sys/types.h>
15634int
15635main ()
15636{
15637 ssize_t foo; foo = 1235;
15638 ;
15639 return 0;
15640}
15641_ACEOF
15642if ac_fn_c_try_compile "$LINENO"; then :
15643 ac_cv_have_ssize_t="yes"
15644else
15645 ac_cv_have_ssize_t="no"
15646
15647fi
15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
15652$as_echo "$ac_cv_have_ssize_t" >&6; }
15653if test "x$ac_cv_have_ssize_t" = "xyes" ; then
15654
15655$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
15656
15657fi
15658
15659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
15660$as_echo_n "checking for clock_t... " >&6; }
15661if ${ac_cv_have_clock_t+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663else
15664
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h. */
15667 #include <time.h>
15668int
15669main ()
15670{
15671 clock_t foo; foo = 1235;
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676if ac_fn_c_try_compile "$LINENO"; then :
15677 ac_cv_have_clock_t="yes"
15678else
15679 ac_cv_have_clock_t="no"
15680
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683
15684fi
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
15686$as_echo "$ac_cv_have_clock_t" >&6; }
15687if test "x$ac_cv_have_clock_t" = "xyes" ; then
15688
15689$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
15690
15691fi
15692
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
15694$as_echo_n "checking for sa_family_t... " >&6; }
15695if ${ac_cv_have_sa_family_t+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697else
15698
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700/* end confdefs.h. */
15701
15702#include <sys/types.h>
15703#include <sys/socket.h>
15704
15705int
15706main ()
15707{
15708 sa_family_t foo; foo = 1235;
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713if ac_fn_c_try_compile "$LINENO"; then :
15714 ac_cv_have_sa_family_t="yes"
15715else
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717/* end confdefs.h. */
15718
15719#include <sys/types.h>
15720#include <sys/socket.h>
15721#include <netinet/in.h>
15722
15723int
15724main ()
15725{
15726 sa_family_t foo; foo = 1235;
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_compile "$LINENO"; then :
15732 ac_cv_have_sa_family_t="yes"
15733else
15734 ac_cv_have_sa_family_t="no"
15735
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738
15739fi
15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741
15742fi
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
15744$as_echo "$ac_cv_have_sa_family_t" >&6; }
15745if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
15746
15747$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15748
15749fi
15750
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
15752$as_echo_n "checking for pid_t... " >&6; }
15753if ${ac_cv_have_pid_t+:} false; then :
15754 $as_echo_n "(cached) " >&6
15755else
15756
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h. */
15759 #include <sys/types.h>
15760int
15761main ()
15762{
15763 pid_t foo; foo = 1235;
15764 ;
15765 return 0;
15766}
15767_ACEOF
15768if ac_fn_c_try_compile "$LINENO"; then :
15769 ac_cv_have_pid_t="yes"
15770else
15771 ac_cv_have_pid_t="no"
15772
15773fi
15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
15778$as_echo "$ac_cv_have_pid_t" >&6; }
15779if test "x$ac_cv_have_pid_t" = "xyes" ; then
15780
15781$as_echo "#define HAVE_PID_T 1" >>confdefs.h
15782
15783fi
15784
15785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
15786$as_echo_n "checking for mode_t... " >&6; }
15787if ${ac_cv_have_mode_t+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789else
15790
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h. */
15793 #include <sys/types.h>
15794int
15795main ()
15796{
15797 mode_t foo; foo = 1235;
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802if ac_fn_c_try_compile "$LINENO"; then :
15803 ac_cv_have_mode_t="yes"
15804else
15805 ac_cv_have_mode_t="no"
15806
15807fi
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
15812$as_echo "$ac_cv_have_mode_t" >&6; }
15813if test "x$ac_cv_have_mode_t" = "xyes" ; then
15814
15815$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
15816
15817fi
15818
15819
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15821$as_echo_n "checking for struct sockaddr_storage... " >&6; }
15822if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824else
15825
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h. */
15828
15829#include <sys/types.h>
15830#include <sys/socket.h>
15831
15832int
15833main ()
15834{
15835 struct sockaddr_storage s;
15836 ;
15837 return 0;
15838}
15839_ACEOF
15840if ac_fn_c_try_compile "$LINENO"; then :
15841 ac_cv_have_struct_sockaddr_storage="yes"
15842else
15843 ac_cv_have_struct_sockaddr_storage="no"
15844
15845fi
15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847
15848fi
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
15850$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
15851if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
15852
15853$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15854
15855fi
15856
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
15858$as_echo_n "checking for struct sockaddr_in6... " >&6; }
15859if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
15860 $as_echo_n "(cached) " >&6
15861else
15862
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864/* end confdefs.h. */
15865
15866#include <sys/types.h>
15867#include <netinet/in.h>
15868
15869int
15870main ()
15871{
15872 struct sockaddr_in6 s; s.sin6_family = 0;
15873 ;
15874 return 0;
15875}
15876_ACEOF
15877if ac_fn_c_try_compile "$LINENO"; then :
15878 ac_cv_have_struct_sockaddr_in6="yes"
15879else
15880 ac_cv_have_struct_sockaddr_in6="no"
15881
15882fi
15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884
15885fi
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
15887$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
15888if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
15889
15890$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
15891
15892fi
15893
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
15895$as_echo_n "checking for struct in6_addr... " >&6; }
15896if ${ac_cv_have_struct_in6_addr+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898else
15899
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h. */
15902
15903#include <sys/types.h>
15904#include <netinet/in.h>
15905
15906int
15907main ()
15908{
15909 struct in6_addr s; s.s6_addr[0] = 0;
15910 ;
15911 return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_compile "$LINENO"; then :
15915 ac_cv_have_struct_in6_addr="yes"
15916else
15917 ac_cv_have_struct_in6_addr="no"
15918
15919fi
15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921
15922fi
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
15924$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
15925if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
15926
15927$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
15928
15929
15930 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
15931#ifdef HAVE_SYS_TYPES_H
15932#include <sys/types.h>
15933#endif
15934#include <netinet/in.h>
15935
15936"
15937if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15938
15939cat >>confdefs.h <<_ACEOF
15940#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15941_ACEOF
15942
15943
15944fi
15945
15946fi
15947
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
15949$as_echo_n "checking for struct addrinfo... " >&6; }
15950if ${ac_cv_have_struct_addrinfo+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952else
15953
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955/* end confdefs.h. */
15956
15957#include <sys/types.h>
15958#include <sys/socket.h>
15959#include <netdb.h>
15960
15961int
15962main ()
15963{
15964 struct addrinfo s; s.ai_flags = AI_PASSIVE;
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_compile "$LINENO"; then :
15970 ac_cv_have_struct_addrinfo="yes"
15971else
15972 ac_cv_have_struct_addrinfo="no"
15973
15974fi
15975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976
15977fi
15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
15979$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
15980if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
15981
15982$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
15983
15984fi
15985
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
15987$as_echo_n "checking for struct timeval... " >&6; }
15988if ${ac_cv_have_struct_timeval+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990else
15991
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h. */
15994 #include <sys/time.h>
15995int
15996main ()
15997{
15998 struct timeval tv; tv.tv_sec = 1;
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003if ac_fn_c_try_compile "$LINENO"; then :
16004 ac_cv_have_struct_timeval="yes"
16005else
16006 ac_cv_have_struct_timeval="no"
16007
16008fi
16009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010
16011fi
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
16013$as_echo "$ac_cv_have_struct_timeval" >&6; }
16014if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
16015
16016$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
16017
16018 have_struct_timeval=1
16019fi
16020
16021ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
16022if test "x$ac_cv_type_struct_timespec" = xyes; then :
16023
16024cat >>confdefs.h <<_ACEOF
16025#define HAVE_STRUCT_TIMESPEC 1
16026_ACEOF
16027
16028
16029fi
16030
16031
16032# We need int64_t or else certain parts of the compile will fail.
16033if test "x$ac_cv_have_int64_t" = "xno" && \
16034 test "x$ac_cv_sizeof_long_int" != "x8" && \
16035 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
16036 echo "OpenSSH requires int64_t support. Contact your vendor or install"
16037 echo "an alternative compiler (I.E., GCC) before continuing."
16038 echo ""
16039 exit 1;
16040else
16041 if test "$cross_compiling" = yes; then :
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
16043$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16044
16045else
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h. */
16048
16049#include <stdio.h>
16050#include <string.h>
16051#ifdef HAVE_SNPRINTF
16052main()
16053{
16054 char buf[50];
16055 char expected_out[50];
16056 int mazsize = 50 ;
16057#if (SIZEOF_LONG_INT == 8)
16058 long int num = 0x7fffffffffffffff;
16059#else
16060 long long num = 0x7fffffffffffffffll;
16061#endif
16062 strcpy(expected_out, "9223372036854775807");
16063 snprintf(buf, mazsize, "%lld", num);
16064 if(strcmp(buf, expected_out) != 0)
16065 exit(1);
16066 exit(0);
16067}
16068#else
16069main() { exit(0); }
16070#endif
16071
16072_ACEOF
16073if ac_fn_c_try_run "$LINENO"; then :
16074 true
16075else
16076 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
16077
16078fi
16079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16080 conftest.$ac_objext conftest.beam conftest.$ac_ext
16081fi
16082
16083fi
16084
16085
16086# look for field 'ut_host' in header 'utmp.h'
16087 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16088 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
16090$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
16091 if eval \${$ossh_varname+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093else
16094
16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h. */
16097#include <utmp.h>
16098
16099_ACEOF
16100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "ut_host" >/dev/null 2>&1; then :
16102 eval "$ossh_varname=yes"
16103else
16104 eval "$ossh_varname=no"
16105fi
16106rm -f conftest*
16107
16108fi
16109
16110 ossh_result=`eval 'echo $'"$ossh_varname"`
16111 if test -n "`echo $ossh_varname`"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16113$as_echo "$ossh_result" >&6; }
16114 if test "x$ossh_result" = "xyes"; then
16115
16116$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
16117
16118 fi
16119 else
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121$as_echo "no" >&6; }
16122 fi
16123
16124
16125# look for field 'ut_host' in header 'utmpx.h'
16126 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16127 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
16129$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
16130 if eval \${$ossh_varname+:} false; then :
16131 $as_echo_n "(cached) " >&6
16132else
16133
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h. */
16136#include <utmpx.h>
16137
16138_ACEOF
16139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16140 $EGREP "ut_host" >/dev/null 2>&1; then :
16141 eval "$ossh_varname=yes"
16142else
16143 eval "$ossh_varname=no"
16144fi
16145rm -f conftest*
16146
16147fi
16148
16149 ossh_result=`eval 'echo $'"$ossh_varname"`
16150 if test -n "`echo $ossh_varname`"; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16152$as_echo "$ossh_result" >&6; }
16153 if test "x$ossh_result" = "xyes"; then
16154
16155$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
16156
16157 fi
16158 else
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160$as_echo "no" >&6; }
16161 fi
16162
16163
16164# look for field 'syslen' in header 'utmpx.h'
16165 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16166 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
16168$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
16169 if eval \${$ossh_varname+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171else
16172
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174/* end confdefs.h. */
16175#include <utmpx.h>
16176
16177_ACEOF
16178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16179 $EGREP "syslen" >/dev/null 2>&1; then :
16180 eval "$ossh_varname=yes"
16181else
16182 eval "$ossh_varname=no"
16183fi
16184rm -f conftest*
16185
16186fi
16187
16188 ossh_result=`eval 'echo $'"$ossh_varname"`
16189 if test -n "`echo $ossh_varname`"; then
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16191$as_echo "$ossh_result" >&6; }
16192 if test "x$ossh_result" = "xyes"; then
16193
16194$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
16195
16196 fi
16197 else
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199$as_echo "no" >&6; }
16200 fi
16201
16202
16203# look for field 'ut_pid' in header 'utmp.h'
16204 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16205 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
16207$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
16208 if eval \${$ossh_varname+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210else
16211
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214#include <utmp.h>
16215
16216_ACEOF
16217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16218 $EGREP "ut_pid" >/dev/null 2>&1; then :
16219 eval "$ossh_varname=yes"
16220else
16221 eval "$ossh_varname=no"
16222fi
16223rm -f conftest*
16224
16225fi
16226
16227 ossh_result=`eval 'echo $'"$ossh_varname"`
16228 if test -n "`echo $ossh_varname`"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16230$as_echo "$ossh_result" >&6; }
16231 if test "x$ossh_result" = "xyes"; then
16232
16233$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
16234
16235 fi
16236 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238$as_echo "no" >&6; }
16239 fi
16240
16241
16242# look for field 'ut_type' in header 'utmp.h'
16243 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16244 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
16246$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
16247 if eval \${$ossh_varname+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249else
16250
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252/* end confdefs.h. */
16253#include <utmp.h>
16254
16255_ACEOF
16256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16257 $EGREP "ut_type" >/dev/null 2>&1; then :
16258 eval "$ossh_varname=yes"
16259else
16260 eval "$ossh_varname=no"
16261fi
16262rm -f conftest*
16263
16264fi
16265
16266 ossh_result=`eval 'echo $'"$ossh_varname"`
16267 if test -n "`echo $ossh_varname`"; then
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16269$as_echo "$ossh_result" >&6; }
16270 if test "x$ossh_result" = "xyes"; then
16271
16272$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
16273
16274 fi
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277$as_echo "no" >&6; }
16278 fi
16279
16280
16281# look for field 'ut_type' in header 'utmpx.h'
16282 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16283 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
16285$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
16286 if eval \${$ossh_varname+:} false; then :
16287 $as_echo_n "(cached) " >&6
16288else
16289
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h. */
16292#include <utmpx.h>
16293
16294_ACEOF
16295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16296 $EGREP "ut_type" >/dev/null 2>&1; then :
16297 eval "$ossh_varname=yes"
16298else
16299 eval "$ossh_varname=no"
16300fi
16301rm -f conftest*
16302
16303fi
16304
16305 ossh_result=`eval 'echo $'"$ossh_varname"`
16306 if test -n "`echo $ossh_varname`"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16308$as_echo "$ossh_result" >&6; }
16309 if test "x$ossh_result" = "xyes"; then
16310
16311$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
16312
16313 fi
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316$as_echo "no" >&6; }
16317 fi
16318
16319
16320# look for field 'ut_tv' in header 'utmp.h'
16321 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16322 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
16324$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
16325 if eval \${$ossh_varname+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327else
16328
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330/* end confdefs.h. */
16331#include <utmp.h>
16332
16333_ACEOF
16334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16335 $EGREP "ut_tv" >/dev/null 2>&1; then :
16336 eval "$ossh_varname=yes"
16337else
16338 eval "$ossh_varname=no"
16339fi
16340rm -f conftest*
16341
16342fi
16343
16344 ossh_result=`eval 'echo $'"$ossh_varname"`
16345 if test -n "`echo $ossh_varname`"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16347$as_echo "$ossh_result" >&6; }
16348 if test "x$ossh_result" = "xyes"; then
16349
16350$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
16351
16352 fi
16353 else
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355$as_echo "no" >&6; }
16356 fi
16357
16358
16359# look for field 'ut_id' in header 'utmp.h'
16360 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16361 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
16363$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
16364 if eval \${$ossh_varname+:} false; then :
16365 $as_echo_n "(cached) " >&6
16366else
16367
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h. */
16370#include <utmp.h>
16371
16372_ACEOF
16373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16374 $EGREP "ut_id" >/dev/null 2>&1; then :
16375 eval "$ossh_varname=yes"
16376else
16377 eval "$ossh_varname=no"
16378fi
16379rm -f conftest*
16380
16381fi
16382
16383 ossh_result=`eval 'echo $'"$ossh_varname"`
16384 if test -n "`echo $ossh_varname`"; then
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16386$as_echo "$ossh_result" >&6; }
16387 if test "x$ossh_result" = "xyes"; then
16388
16389$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
16390
16391 fi
16392 else
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394$as_echo "no" >&6; }
16395 fi
16396
16397
16398# look for field 'ut_id' in header 'utmpx.h'
16399 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16400 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
16402$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
16403 if eval \${$ossh_varname+:} false; then :
16404 $as_echo_n "(cached) " >&6
16405else
16406
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h. */
16409#include <utmpx.h>
16410
16411_ACEOF
16412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16413 $EGREP "ut_id" >/dev/null 2>&1; then :
16414 eval "$ossh_varname=yes"
16415else
16416 eval "$ossh_varname=no"
16417fi
16418rm -f conftest*
16419
16420fi
16421
16422 ossh_result=`eval 'echo $'"$ossh_varname"`
16423 if test -n "`echo $ossh_varname`"; then
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16425$as_echo "$ossh_result" >&6; }
16426 if test "x$ossh_result" = "xyes"; then
16427
16428$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
16429
16430 fi
16431 else
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16433$as_echo "no" >&6; }
16434 fi
16435
16436
16437# look for field 'ut_addr' in header 'utmp.h'
16438 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16439 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
16441$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
16442 if eval \${$ossh_varname+:} false; then :
16443 $as_echo_n "(cached) " >&6
16444else
16445
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447/* end confdefs.h. */
16448#include <utmp.h>
16449
16450_ACEOF
16451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16452 $EGREP "ut_addr" >/dev/null 2>&1; then :
16453 eval "$ossh_varname=yes"
16454else
16455 eval "$ossh_varname=no"
16456fi
16457rm -f conftest*
16458
16459fi
16460
16461 ossh_result=`eval 'echo $'"$ossh_varname"`
16462 if test -n "`echo $ossh_varname`"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16464$as_echo "$ossh_result" >&6; }
16465 if test "x$ossh_result" = "xyes"; then
16466
16467$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
16468
16469 fi
16470 else
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16472$as_echo "no" >&6; }
16473 fi
16474
16475
16476# look for field 'ut_addr' in header 'utmpx.h'
16477 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16478 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
16480$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
16481 if eval \${$ossh_varname+:} false; then :
16482 $as_echo_n "(cached) " >&6
16483else
16484
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h. */
16487#include <utmpx.h>
16488
16489_ACEOF
16490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16491 $EGREP "ut_addr" >/dev/null 2>&1; then :
16492 eval "$ossh_varname=yes"
16493else
16494 eval "$ossh_varname=no"
16495fi
16496rm -f conftest*
16497
16498fi
16499
16500 ossh_result=`eval 'echo $'"$ossh_varname"`
16501 if test -n "`echo $ossh_varname`"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16503$as_echo "$ossh_result" >&6; }
16504 if test "x$ossh_result" = "xyes"; then
16505
16506$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
16507
16508 fi
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511$as_echo "no" >&6; }
16512 fi
16513
16514
16515# look for field 'ut_addr_v6' in header 'utmp.h'
16516 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16517 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
16519$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
16520 if eval \${$ossh_varname+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522else
16523
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525/* end confdefs.h. */
16526#include <utmp.h>
16527
16528_ACEOF
16529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16530 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16531 eval "$ossh_varname=yes"
16532else
16533 eval "$ossh_varname=no"
16534fi
16535rm -f conftest*
16536
16537fi
16538
16539 ossh_result=`eval 'echo $'"$ossh_varname"`
16540 if test -n "`echo $ossh_varname`"; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16542$as_echo "$ossh_result" >&6; }
16543 if test "x$ossh_result" = "xyes"; then
16544
16545$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
16546
16547 fi
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
16551 fi
16552
16553
16554# look for field 'ut_addr_v6' in header 'utmpx.h'
16555 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16556 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
16558$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
16559 if eval \${$ossh_varname+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561else
16562
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564/* end confdefs.h. */
16565#include <utmpx.h>
16566
16567_ACEOF
16568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16569 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16570 eval "$ossh_varname=yes"
16571else
16572 eval "$ossh_varname=no"
16573fi
16574rm -f conftest*
16575
16576fi
16577
16578 ossh_result=`eval 'echo $'"$ossh_varname"`
16579 if test -n "`echo $ossh_varname`"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16581$as_echo "$ossh_result" >&6; }
16582 if test "x$ossh_result" = "xyes"; then
16583
16584$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
16585
16586 fi
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589$as_echo "no" >&6; }
16590 fi
16591
16592
16593# look for field 'ut_exit' in header 'utmp.h'
16594 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16595 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
16597$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
16598 if eval \${$ossh_varname+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600else
16601
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h. */
16604#include <utmp.h>
16605
16606_ACEOF
16607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 $EGREP "ut_exit" >/dev/null 2>&1; then :
16609 eval "$ossh_varname=yes"
16610else
16611 eval "$ossh_varname=no"
16612fi
16613rm -f conftest*
16614
16615fi
16616
16617 ossh_result=`eval 'echo $'"$ossh_varname"`
16618 if test -n "`echo $ossh_varname`"; then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16620$as_echo "$ossh_result" >&6; }
16621 if test "x$ossh_result" = "xyes"; then
16622
16623$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
16624
16625 fi
16626 else
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628$as_echo "no" >&6; }
16629 fi
16630
16631
16632# look for field 'ut_time' in header 'utmp.h'
16633 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16634 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
16636$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
16637 if eval \${$ossh_varname+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639else
16640
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642/* end confdefs.h. */
16643#include <utmp.h>
16644
16645_ACEOF
16646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16647 $EGREP "ut_time" >/dev/null 2>&1; then :
16648 eval "$ossh_varname=yes"
16649else
16650 eval "$ossh_varname=no"
16651fi
16652rm -f conftest*
16653
16654fi
16655
16656 ossh_result=`eval 'echo $'"$ossh_varname"`
16657 if test -n "`echo $ossh_varname`"; then
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16659$as_echo "$ossh_result" >&6; }
16660 if test "x$ossh_result" = "xyes"; then
16661
16662$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
16663
16664 fi
16665 else
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667$as_echo "no" >&6; }
16668 fi
16669
16670
16671# look for field 'ut_time' in header 'utmpx.h'
16672 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16673 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
16675$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
16676 if eval \${$ossh_varname+:} false; then :
16677 $as_echo_n "(cached) " >&6
16678else
16679
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h. */
16682#include <utmpx.h>
16683
16684_ACEOF
16685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16686 $EGREP "ut_time" >/dev/null 2>&1; then :
16687 eval "$ossh_varname=yes"
16688else
16689 eval "$ossh_varname=no"
16690fi
16691rm -f conftest*
16692
16693fi
16694
16695 ossh_result=`eval 'echo $'"$ossh_varname"`
16696 if test -n "`echo $ossh_varname`"; then
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16698$as_echo "$ossh_result" >&6; }
16699 if test "x$ossh_result" = "xyes"; then
16700
16701$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
16702
16703 fi
16704 else
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706$as_echo "no" >&6; }
16707 fi
16708
16709
16710# look for field 'ut_tv' in header 'utmpx.h'
16711 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16712 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
16714$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
16715 if eval \${$ossh_varname+:} false; then :
16716 $as_echo_n "(cached) " >&6
16717else
16718
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h. */
16721#include <utmpx.h>
16722
16723_ACEOF
16724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16725 $EGREP "ut_tv" >/dev/null 2>&1; then :
16726 eval "$ossh_varname=yes"
16727else
16728 eval "$ossh_varname=no"
16729fi
16730rm -f conftest*
16731
16732fi
16733
16734 ossh_result=`eval 'echo $'"$ossh_varname"`
16735 if test -n "`echo $ossh_varname`"; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16737$as_echo "$ossh_result" >&6; }
16738 if test "x$ossh_result" = "xyes"; then
16739
16740$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
16741
16742 fi
16743 else
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16745$as_echo "no" >&6; }
16746 fi
16747
16748
16749ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16750if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16751
16752cat >>confdefs.h <<_ACEOF
16753#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16754_ACEOF
16755
16756
16757fi
16758
16759ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16760if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16761
16762cat >>confdefs.h <<_ACEOF
16763#define HAVE_STRUCT_STAT_ST_MTIM 1
16764_ACEOF
16765
16766
16767fi
16768
16769ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default"
16770if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
16771
16772cat >>confdefs.h <<_ACEOF
16773#define HAVE_STRUCT_STAT_ST_MTIME 1
16774_ACEOF
16775
16776
16777fi
16778
16779ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
16780#include <sys/types.h>
16781#include <pwd.h>
16782
16783"
16784if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
16785
16786cat >>confdefs.h <<_ACEOF
16787#define HAVE_STRUCT_PASSWD_PW_GECOS 1
16788_ACEOF
16789
16790
16791fi
16792ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
16793#include <sys/types.h>
16794#include <pwd.h>
16795
16796"
16797if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
16798
16799cat >>confdefs.h <<_ACEOF
16800#define HAVE_STRUCT_PASSWD_PW_CLASS 1
16801_ACEOF
16802
16803
16804fi
16805ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
16806#include <sys/types.h>
16807#include <pwd.h>
16808
16809"
16810if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
16811
16812cat >>confdefs.h <<_ACEOF
16813#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
16814_ACEOF
16815
16816
16817fi
16818ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
16819#include <sys/types.h>
16820#include <pwd.h>
16821
16822"
16823if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
16824
16825cat >>confdefs.h <<_ACEOF
16826#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
16827_ACEOF
16828
16829
16830fi
16831
16832
16833ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
16834#include <stdio.h>
16835#if HAVE_SYS_TYPES_H
16836# include <sys/types.h>
16837#endif
16838#include <netinet/in.h>
16839#include <arpa/nameser.h>
16840#include <resolv.h>
16841
16842"
16843if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
16844
16845else
16846
16847$as_echo "#define __res_state state" >>confdefs.h
16848
16849fi
16850
16851
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
16853$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
16854if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856else
16857
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859/* end confdefs.h. */
16860
16861#include <sys/types.h>
16862#include <sys/socket.h>
16863
16864int
16865main ()
16866{
16867 struct sockaddr_storage s; s.ss_family = 1;
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_compile "$LINENO"; then :
16873 ac_cv_have_ss_family_in_struct_ss="yes"
16874else
16875 ac_cv_have_ss_family_in_struct_ss="no"
16876fi
16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878
16879fi
16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
16881$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
16882if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
16883
16884$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
16885
16886fi
16887
16888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
16889$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
16890if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
16891 $as_echo_n "(cached) " >&6
16892else
16893
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h. */
16896
16897#include <sys/types.h>
16898#include <sys/socket.h>
16899
16900int
16901main ()
16902{
16903 struct sockaddr_storage s; s.__ss_family = 1;
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908if ac_fn_c_try_compile "$LINENO"; then :
16909 ac_cv_have___ss_family_in_struct_ss="yes"
16910else
16911 ac_cv_have___ss_family_in_struct_ss="no"
16912
16913fi
16914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915
16916fi
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
16918$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
16919if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
16920
16921$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16922
16923fi
16924
16925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
16926$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
16927if ${ac_cv_have_accrights_in_msghdr+:} false; then :
16928 $as_echo_n "(cached) " >&6
16929else
16930
16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932/* end confdefs.h. */
16933
16934#include <sys/types.h>
16935#include <sys/socket.h>
16936#include <sys/uio.h>
16937
16938int
16939main ()
16940{
16941
16942#ifdef msg_accrights
16943#error "msg_accrights is a macro"
16944exit(1);
16945#endif
16946struct msghdr m;
16947m.msg_accrights = 0;
16948exit(0);
16949
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954if ac_fn_c_try_compile "$LINENO"; then :
16955 ac_cv_have_accrights_in_msghdr="yes"
16956else
16957 ac_cv_have_accrights_in_msghdr="no"
16958
16959fi
16960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961
16962fi
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
16964$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
16965if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
16966
16967$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
16968
16969fi
16970
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
16972$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
16973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h. */
16975
16976#include <sys/param.h>
16977#include <sys/stat.h>
16978#ifdef HAVE_SYS_TIME_H
16979# include <sys/time.h>
16980#endif
16981#ifdef HAVE_SYS_MOUNT_H
16982#include <sys/mount.h>
16983#endif
16984#ifdef HAVE_SYS_STATVFS_H
16985#include <sys/statvfs.h>
16986#endif
16987
16988int
16989main ()
16990{
16991 struct statvfs s; s.f_fsid = 0;
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996if ac_fn_c_try_compile "$LINENO"; then :
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998$as_echo "yes" >&6; }
16999else
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001$as_echo "no" >&6; }
17002
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
17004$as_echo_n "checking if fsid_t has member val... " >&6; }
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006/* end confdefs.h. */
17007
17008#include <sys/types.h>
17009#include <sys/statvfs.h>
17010
17011int
17012main ()
17013{
17014 fsid_t t; t.val[0] = 0;
17015 ;
17016 return 0;
17017}
17018_ACEOF
17019if ac_fn_c_try_compile "$LINENO"; then :
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17021$as_echo "yes" >&6; }
17022
17023$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
17024
17025else
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17027$as_echo "no" >&6; }
17028fi
17029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
17032$as_echo_n "checking if f_fsid has member __val... " >&6; }
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h. */
17035
17036#include <sys/types.h>
17037#include <sys/statvfs.h>
17038
17039int
17040main ()
17041{
17042 fsid_t t; t.__val[0] = 0;
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_compile "$LINENO"; then :
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17049$as_echo "yes" >&6; }
17050
17051$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
17052
17053else
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055$as_echo "no" >&6; }
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058
17059fi
17060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061
17062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
17063$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
17064if ${ac_cv_have_control_in_msghdr+:} false; then :
17065 $as_echo_n "(cached) " >&6
17066else
17067
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h. */
17070
17071#include <sys/types.h>
17072#include <sys/socket.h>
17073#include <sys/uio.h>
17074
17075int
17076main ()
17077{
17078
17079#ifdef msg_control
17080#error "msg_control is a macro"
17081exit(1);
17082#endif
17083struct msghdr m;
17084m.msg_control = 0;
17085exit(0);
17086
17087 ;
17088 return 0;
17089}
17090_ACEOF
17091if ac_fn_c_try_compile "$LINENO"; then :
17092 ac_cv_have_control_in_msghdr="yes"
17093else
17094 ac_cv_have_control_in_msghdr="no"
17095
17096fi
17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098
17099fi
17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
17101$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
17102if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
17103
17104$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
17105
17106fi
17107
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
17109$as_echo_n "checking if libc defines __progname... " >&6; }
17110if ${ac_cv_libc_defines___progname+:} false; then :
17111 $as_echo_n "(cached) " >&6
17112else
17113
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115/* end confdefs.h. */
17116
17117int
17118main ()
17119{
17120 extern char *__progname; printf("%s", __progname);
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125if ac_fn_c_try_link "$LINENO"; then :
17126 ac_cv_libc_defines___progname="yes"
17127else
17128 ac_cv_libc_defines___progname="no"
17129
17130fi
17131rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133
17134fi
17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
17136$as_echo "$ac_cv_libc_defines___progname" >&6; }
17137if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
17138
17139$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17140
17141fi
17142
17143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
17144$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
17145if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
17146 $as_echo_n "(cached) " >&6
17147else
17148
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150/* end confdefs.h. */
17151 #include <stdio.h>
17152int
17153main ()
17154{
17155 printf("%s", __FUNCTION__);
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160if ac_fn_c_try_link "$LINENO"; then :
17161 ac_cv_cc_implements___FUNCTION__="yes"
17162else
17163 ac_cv_cc_implements___FUNCTION__="no"
17164
17165fi
17166rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168
17169fi
17170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
17171$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
17172if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
17173
17174$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
17175
17176fi
17177
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
17179$as_echo_n "checking whether $CC implements __func__... " >&6; }
17180if ${ac_cv_cc_implements___func__+:} false; then :
17181 $as_echo_n "(cached) " >&6
17182else
17183
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h. */
17186 #include <stdio.h>
17187int
17188main ()
17189{
17190 printf("%s", __func__);
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195if ac_fn_c_try_link "$LINENO"; then :
17196 ac_cv_cc_implements___func__="yes"
17197else
17198 ac_cv_cc_implements___func__="no"
17199
17200fi
17201rm -f core conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
17203
17204fi
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
17206$as_echo "$ac_cv_cc_implements___func__" >&6; }
17207if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
17208
17209$as_echo "#define HAVE___func__ 1" >>confdefs.h
17210
17211fi
17212
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
17214$as_echo_n "checking whether va_copy exists... " >&6; }
17215if ${ac_cv_have_va_copy+:} false; then :
17216 $as_echo_n "(cached) " >&6
17217else
17218
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220/* end confdefs.h. */
17221
17222#include <stdarg.h>
17223va_list x,y;
17224
17225int
17226main ()
17227{
17228 va_copy(x,y);
17229 ;
17230 return 0;
17231}
17232_ACEOF
17233if ac_fn_c_try_link "$LINENO"; then :
17234 ac_cv_have_va_copy="yes"
17235else
17236 ac_cv_have_va_copy="no"
17237
17238fi
17239rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241
17242fi
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
17244$as_echo "$ac_cv_have_va_copy" >&6; }
17245if test "x$ac_cv_have_va_copy" = "xyes" ; then
17246
17247$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
17248
17249fi
17250
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
17252$as_echo_n "checking whether __va_copy exists... " >&6; }
17253if ${ac_cv_have___va_copy+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255else
17256
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h. */
17259
17260#include <stdarg.h>
17261va_list x,y;
17262
17263int
17264main ()
17265{
17266 __va_copy(x,y);
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271if ac_fn_c_try_link "$LINENO"; then :
17272 ac_cv_have___va_copy="yes"
17273else
17274 ac_cv_have___va_copy="no"
17275
17276fi
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
17282$as_echo "$ac_cv_have___va_copy" >&6; }
17283if test "x$ac_cv_have___va_copy" = "xyes" ; then
17284
17285$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
17286
17287fi
17288
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
17290$as_echo_n "checking whether getopt has optreset support... " >&6; }
17291if ${ac_cv_have_getopt_optreset+:} false; then :
17292 $as_echo_n "(cached) " >&6
17293else
17294
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h. */
17297 #include <getopt.h>
17298int
17299main ()
17300{
17301 extern int optreset; optreset = 0;
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306if ac_fn_c_try_link "$LINENO"; then :
17307 ac_cv_have_getopt_optreset="yes"
17308else
17309 ac_cv_have_getopt_optreset="no"
17310
17311fi
17312rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17314
17315fi
17316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
17317$as_echo "$ac_cv_have_getopt_optreset" >&6; }
17318if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
17319
17320$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
17321
17322fi
17323
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
17325$as_echo_n "checking if libc defines sys_errlist... " >&6; }
17326if ${ac_cv_libc_defines_sys_errlist+:} false; then :
17327 $as_echo_n "(cached) " >&6
17328else
17329
17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17331/* end confdefs.h. */
17332
17333int
17334main ()
17335{
17336 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341if ac_fn_c_try_link "$LINENO"; then :
17342 ac_cv_libc_defines_sys_errlist="yes"
17343else
17344 ac_cv_libc_defines_sys_errlist="no"
17345
17346fi
17347rm -f core conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349
17350fi
17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
17352$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
17353if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
17354
17355$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
17356
17357fi
17358
17359
17360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
17361$as_echo_n "checking if libc defines sys_nerr... " >&6; }
17362if ${ac_cv_libc_defines_sys_nerr+:} false; then :
17363 $as_echo_n "(cached) " >&6
17364else
17365
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367/* end confdefs.h. */
17368
17369int
17370main ()
17371{
17372 extern int sys_nerr; printf("%i", sys_nerr);
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377if ac_fn_c_try_link "$LINENO"; then :
17378 ac_cv_libc_defines_sys_nerr="yes"
17379else
17380 ac_cv_libc_defines_sys_nerr="no"
17381
17382fi
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385
17386fi
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
17388$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
17389if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
17390
17391$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
17392
17393fi
17394
17395# Check libraries needed by DNS fingerprint support
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
17397$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
17398if ${ac_cv_search_getrrsetbyname+:} false; then :
17399 $as_echo_n "(cached) " >&6
17400else
17401 ac_func_search_save_LIBS=$LIBS
17402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403/* end confdefs.h. */
17404
17405/* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411char getrrsetbyname ();
17412int
17413main ()
17414{
17415return getrrsetbyname ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420for ac_lib in '' resolv; do
17421 if test -z "$ac_lib"; then
17422 ac_res="none required"
17423 else
17424 ac_res=-l$ac_lib
17425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17426 fi
17427 if ac_fn_c_try_link "$LINENO"; then :
17428 ac_cv_search_getrrsetbyname=$ac_res
17429fi
17430rm -f core conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext
17432 if ${ac_cv_search_getrrsetbyname+:} false; then :
17433 break
17434fi
17435done
17436if ${ac_cv_search_getrrsetbyname+:} false; then :
17437
17438else
17439 ac_cv_search_getrrsetbyname=no
17440fi
17441rm conftest.$ac_ext
17442LIBS=$ac_func_search_save_LIBS
17443fi
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
17445$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
17446ac_res=$ac_cv_search_getrrsetbyname
17447if test "$ac_res" != no; then :
17448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17449
17450$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
17451
17452else
17453
17454 # Needed by our getrrsetbyname()
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
17456$as_echo_n "checking for library containing res_query... " >&6; }
17457if ${ac_cv_search_res_query+:} false; then :
17458 $as_echo_n "(cached) " >&6
17459else
17460 ac_func_search_save_LIBS=$LIBS
17461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h. */
17463
17464/* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17467#ifdef __cplusplus
17468extern "C"
17469#endif
17470char res_query ();
17471int
17472main ()
17473{
17474return res_query ();
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479for ac_lib in '' resolv; do
17480 if test -z "$ac_lib"; then
17481 ac_res="none required"
17482 else
17483 ac_res=-l$ac_lib
17484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17485 fi
17486 if ac_fn_c_try_link "$LINENO"; then :
17487 ac_cv_search_res_query=$ac_res
17488fi
17489rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext
17491 if ${ac_cv_search_res_query+:} false; then :
17492 break
17493fi
17494done
17495if ${ac_cv_search_res_query+:} false; then :
17496
17497else
17498 ac_cv_search_res_query=no
17499fi
17500rm conftest.$ac_ext
17501LIBS=$ac_func_search_save_LIBS
17502fi
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
17504$as_echo "$ac_cv_search_res_query" >&6; }
17505ac_res=$ac_cv_search_res_query
17506if test "$ac_res" != no; then :
17507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17508
17509fi
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17512$as_echo_n "checking for library containing dn_expand... " >&6; }
17513if ${ac_cv_search_dn_expand+:} false; then :
17514 $as_echo_n "(cached) " >&6
17515else
17516 ac_func_search_save_LIBS=$LIBS
17517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518/* end confdefs.h. */
17519
17520/* Override any GCC internal prototype to avoid an error.
17521 Use char because int might match the return type of a GCC
17522 builtin and then its argument prototype would still apply. */
17523#ifdef __cplusplus
17524extern "C"
17525#endif
17526char dn_expand ();
17527int
17528main ()
17529{
17530return dn_expand ();
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535for ac_lib in '' resolv; do
17536 if test -z "$ac_lib"; then
17537 ac_res="none required"
17538 else
17539 ac_res=-l$ac_lib
17540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17541 fi
17542 if ac_fn_c_try_link "$LINENO"; then :
17543 ac_cv_search_dn_expand=$ac_res
17544fi
17545rm -f core conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext
17547 if ${ac_cv_search_dn_expand+:} false; then :
17548 break
17549fi
17550done
17551if ${ac_cv_search_dn_expand+:} false; then :
17552
17553else
17554 ac_cv_search_dn_expand=no
17555fi
17556rm conftest.$ac_ext
17557LIBS=$ac_func_search_save_LIBS
17558fi
17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17560$as_echo "$ac_cv_search_dn_expand" >&6; }
17561ac_res=$ac_cv_search_dn_expand
17562if test "$ac_res" != no; then :
17563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17564
17565fi
17566
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
17568$as_echo_n "checking if res_query will link... " >&6; }
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570/* end confdefs.h. */
17571
17572#include <sys/types.h>
17573#include <netinet/in.h>
17574#include <arpa/nameser.h>
17575#include <netdb.h>
17576#include <resolv.h>
17577
17578int
17579main ()
17580{
17581
17582 res_query (0, 0, 0, 0, 0);
17583
17584 ;
17585 return 0;
17586}
17587_ACEOF
17588if ac_fn_c_try_link "$LINENO"; then :
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17590$as_echo "yes" >&6; }
17591else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17593$as_echo "no" >&6; }
17594 saved_LIBS="$LIBS"
17595 LIBS="$LIBS -lresolv"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
17597$as_echo_n "checking for res_query in -lresolv... " >&6; }
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h. */
17600
17601#include <sys/types.h>
17602#include <netinet/in.h>
17603#include <arpa/nameser.h>
17604#include <netdb.h>
17605#include <resolv.h>
17606
17607int
17608main ()
17609{
17610
17611 res_query (0, 0, 0, 0, 0);
17612
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617if ac_fn_c_try_link "$LINENO"; then :
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17619$as_echo "yes" >&6; }
17620else
17621 LIBS="$saved_LIBS"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623$as_echo "no" >&6; }
17624fi
17625rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627
17628fi
17629rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 for ac_func in _getshort _getlong
17632do :
17633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17634ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17635if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17636 cat >>confdefs.h <<_ACEOF
17637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638_ACEOF
17639
17640fi
17641done
17642
17643 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
17644 #include <arpa/nameser.h>
17645"
17646if test "x$ac_cv_have_decl__getshort" = xyes; then :
17647 ac_have_decl=1
17648else
17649 ac_have_decl=0
17650fi
17651
17652cat >>confdefs.h <<_ACEOF
17653#define HAVE_DECL__GETSHORT $ac_have_decl
17654_ACEOF
17655ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
17656 #include <arpa/nameser.h>
17657"
17658if test "x$ac_cv_have_decl__getlong" = xyes; then :
17659 ac_have_decl=1
17660else
17661 ac_have_decl=0
17662fi
17663
17664cat >>confdefs.h <<_ACEOF
17665#define HAVE_DECL__GETLONG $ac_have_decl
17666_ACEOF
17667
17668 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
17669"
17670if test "x$ac_cv_member_HEADER_ad" = xyes; then :
17671
17672$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
17673
17674fi
17675
17676
17677fi
17678
17679
17680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
17681$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
17682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683/* end confdefs.h. */
17684
17685#include <stdio.h>
17686#if HAVE_SYS_TYPES_H
17687# include <sys/types.h>
17688#endif
17689#include <netinet/in.h>
17690#include <arpa/nameser.h>
17691#include <resolv.h>
17692extern struct __res_state _res;
17693
17694int
17695main ()
17696{
17697
17698struct __res_state *volatile p = &_res; /* force resolution of _res */
17699return 0;
17700
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705if ac_fn_c_try_link "$LINENO"; then :
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17707$as_echo "yes" >&6; }
17708
17709$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
17710
17711
17712else
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
17715
17716fi
17717rm -f core conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
17719
17720# Check whether user wants SELinux support
17721SELINUX_MSG="no"
17722LIBSELINUX=""
17723
17724# Check whether --with-selinux was given.
17725if test "${with_selinux+set}" = set; then :
17726 withval=$with_selinux; if test "x$withval" != "xno" ; then
17727 save_LIBS="$LIBS"
17728
17729$as_echo "#define WITH_SELINUX 1" >>confdefs.h
17730
17731 SELINUX_MSG="yes"
17732 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17733if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
17734
17735else
17736 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
17737fi
17738
17739
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
17741$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
17742if ${ac_cv_lib_selinux_setexeccon+:} false; then :
17743 $as_echo_n "(cached) " >&6
17744else
17745 ac_check_lib_save_LIBS=$LIBS
17746LIBS="-lselinux $LIBS"
17747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748/* end confdefs.h. */
17749
17750/* Override any GCC internal prototype to avoid an error.
17751 Use char because int might match the return type of a GCC
17752 builtin and then its argument prototype would still apply. */
17753#ifdef __cplusplus
17754extern "C"
17755#endif
17756char setexeccon ();
17757int
17758main ()
17759{
17760return setexeccon ();
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765if ac_fn_c_try_link "$LINENO"; then :
17766 ac_cv_lib_selinux_setexeccon=yes
17767else
17768 ac_cv_lib_selinux_setexeccon=no
17769fi
17770rm -f core conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772LIBS=$ac_check_lib_save_LIBS
17773fi
17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
17775$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
17776if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
17777 LIBSELINUX="-lselinux"
17778 LIBS="$LIBS -lselinux"
17779
17780else
17781 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
17782fi
17783
17784 SSHLIBS="$SSHLIBS $LIBSELINUX"
17785 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
17786 for ac_func in getseuserbyname get_default_context_with_level
17787do :
17788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17790if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17791 cat >>confdefs.h <<_ACEOF
17792#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17793_ACEOF
17794
17795fi
17796done
17797
17798 LIBS="$save_LIBS"
17799 fi
17800
17801fi
17802
17803
17804
17805
17806# Check whether user wants Kerberos 5 support
17807KRB5_MSG="no"
17808
17809# Check whether --with-kerberos5 was given.
17810if test "${with_kerberos5+set}" = set; then :
17811 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
17812 if test "x$withval" = "xyes" ; then
17813 KRB5ROOT="/usr/local"
17814 else
17815 KRB5ROOT=${withval}
17816 fi
17817
17818
17819$as_echo "#define KRB5 1" >>confdefs.h
17820
17821 KRB5_MSG="yes"
17822
17823 if test -n "$ac_tool_prefix"; then
17824 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
17825set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
17826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17827$as_echo_n "checking for $ac_word... " >&6; }
17828if ${ac_cv_path_KRB5CONF+:} false; then :
17829 $as_echo_n "(cached) " >&6
17830else
17831 case $KRB5CONF in
17832 [\\/]* | ?:[\\/]*)
17833 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
17834 ;;
17835 *)
17836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17837as_dummy="$KRB5ROOT/bin:$PATH"
17838for as_dir in $as_dummy
17839do
17840 IFS=$as_save_IFS
17841 test -z "$as_dir" && as_dir=.
17842 for ac_exec_ext in '' $ac_executable_extensions; do
17843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17844 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17846 break 2
17847 fi
17848done
17849 done
17850IFS=$as_save_IFS
17851
17852 ;;
17853esac
17854fi
17855KRB5CONF=$ac_cv_path_KRB5CONF
17856if test -n "$KRB5CONF"; then
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
17858$as_echo "$KRB5CONF" >&6; }
17859else
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861$as_echo "no" >&6; }
17862fi
17863
17864
17865fi
17866if test -z "$ac_cv_path_KRB5CONF"; then
17867 ac_pt_KRB5CONF=$KRB5CONF
17868 # Extract the first word of "krb5-config", so it can be a program name with args.
17869set dummy krb5-config; ac_word=$2
17870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17871$as_echo_n "checking for $ac_word... " >&6; }
17872if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then :
17873 $as_echo_n "(cached) " >&6
17874else
17875 case $ac_pt_KRB5CONF in
17876 [\\/]* | ?:[\\/]*)
17877 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path.
17878 ;;
17879 *)
17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17881as_dummy="$KRB5ROOT/bin:$PATH"
17882for as_dir in $as_dummy
17883do
17884 IFS=$as_save_IFS
17885 test -z "$as_dir" && as_dir=.
17886 for ac_exec_ext in '' $ac_executable_extensions; do
17887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17888 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17890 break 2
17891 fi
17892done
17893 done
17894IFS=$as_save_IFS
17895
17896 ;;
17897esac
17898fi
17899ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF
17900if test -n "$ac_pt_KRB5CONF"; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5
17902$as_echo "$ac_pt_KRB5CONF" >&6; }
17903else
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17905$as_echo "no" >&6; }
17906fi
17907
17908 if test "x$ac_pt_KRB5CONF" = x; then
17909 KRB5CONF="$KRB5ROOT/bin/krb5-config"
17910 else
17911 case $cross_compiling:$ac_tool_warned in
17912yes:)
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17915ac_tool_warned=yes ;;
17916esac
17917 KRB5CONF=$ac_pt_KRB5CONF
17918 fi
17919else
17920 KRB5CONF="$ac_cv_path_KRB5CONF"
17921fi
17922
17923 if test -x $KRB5CONF ; then
17924 K5CFLAGS="`$KRB5CONF --cflags`"
17925 K5LIBS="`$KRB5CONF --libs`"
17926 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
17927
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
17929$as_echo_n "checking for gssapi support... " >&6; }
17930 if $KRB5CONF | grep gssapi >/dev/null ; then
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932$as_echo "yes" >&6; }
17933
17934$as_echo "#define GSSAPI 1" >>confdefs.h
17935
17936 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
17937 GSSLIBS="`$KRB5CONF --libs gssapi`"
17938 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
17939 else
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941$as_echo "no" >&6; }
17942 fi
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17944$as_echo_n "checking whether we are using Heimdal... " >&6; }
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946/* end confdefs.h. */
17947 #include <krb5.h>
17948
17949int
17950main ()
17951{
17952 char *tmp = heimdal_version;
17953 ;
17954 return 0;
17955}
17956_ACEOF
17957if ac_fn_c_try_compile "$LINENO"; then :
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17959$as_echo "yes" >&6; }
17960
17961$as_echo "#define HEIMDAL 1" >>confdefs.h
17962
17963else
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965$as_echo "no" >&6; }
17966
17967fi
17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 else
17970 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
17971 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17973$as_echo_n "checking whether we are using Heimdal... " >&6; }
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h. */
17976 #include <krb5.h>
17977
17978int
17979main ()
17980{
17981 char *tmp = heimdal_version;
17982 ;
17983 return 0;
17984}
17985_ACEOF
17986if ac_fn_c_try_compile "$LINENO"; then :
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17988$as_echo "yes" >&6; }
17989 $as_echo "#define HEIMDAL 1" >>confdefs.h
17990
17991 K5LIBS="-lkrb5"
17992 K5LIBS="$K5LIBS -lcom_err -lasn1"
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
17994$as_echo_n "checking for net_write in -lroken... " >&6; }
17995if ${ac_cv_lib_roken_net_write+:} false; then :
17996 $as_echo_n "(cached) " >&6
17997else
17998 ac_check_lib_save_LIBS=$LIBS
17999LIBS="-lroken $LIBS"
18000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001/* end confdefs.h. */
18002
18003/* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18006#ifdef __cplusplus
18007extern "C"
18008#endif
18009char net_write ();
18010int
18011main ()
18012{
18013return net_write ();
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018if ac_fn_c_try_link "$LINENO"; then :
18019 ac_cv_lib_roken_net_write=yes
18020else
18021 ac_cv_lib_roken_net_write=no
18022fi
18023rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025LIBS=$ac_check_lib_save_LIBS
18026fi
18027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
18028$as_echo "$ac_cv_lib_roken_net_write" >&6; }
18029if test "x$ac_cv_lib_roken_net_write" = xyes; then :
18030 K5LIBS="$K5LIBS -lroken"
18031fi
18032
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18034$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18035if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18036 $as_echo_n "(cached) " >&6
18037else
18038 ac_check_lib_save_LIBS=$LIBS
18039LIBS="-ldes $LIBS"
18040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041/* end confdefs.h. */
18042
18043/* Override any GCC internal prototype to avoid an error.
18044 Use char because int might match the return type of a GCC
18045 builtin and then its argument prototype would still apply. */
18046#ifdef __cplusplus
18047extern "C"
18048#endif
18049char des_cbc_encrypt ();
18050int
18051main ()
18052{
18053return des_cbc_encrypt ();
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"; then :
18059 ac_cv_lib_des_des_cbc_encrypt=yes
18060else
18061 ac_cv_lib_des_des_cbc_encrypt=no
18062fi
18063rm -f core conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18065LIBS=$ac_check_lib_save_LIBS
18066fi
18067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18068$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18069if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18070 K5LIBS="$K5LIBS -ldes"
18071fi
18072
18073
18074else
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076$as_echo "no" >&6; }
18077 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
18078
18079fi
18080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
18082$as_echo_n "checking for library containing dn_expand... " >&6; }
18083if ${ac_cv_search_dn_expand+:} false; then :
18084 $as_echo_n "(cached) " >&6
18085else
18086 ac_func_search_save_LIBS=$LIBS
18087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h. */
18089
18090/* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char dn_expand ();
18097int
18098main ()
18099{
18100return dn_expand ();
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105for ac_lib in '' resolv; do
18106 if test -z "$ac_lib"; then
18107 ac_res="none required"
18108 else
18109 ac_res=-l$ac_lib
18110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18111 fi
18112 if ac_fn_c_try_link "$LINENO"; then :
18113 ac_cv_search_dn_expand=$ac_res
18114fi
18115rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext
18117 if ${ac_cv_search_dn_expand+:} false; then :
18118 break
18119fi
18120done
18121if ${ac_cv_search_dn_expand+:} false; then :
18122
18123else
18124 ac_cv_search_dn_expand=no
18125fi
18126rm conftest.$ac_ext
18127LIBS=$ac_func_search_save_LIBS
18128fi
18129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
18130$as_echo "$ac_cv_search_dn_expand" >&6; }
18131ac_res=$ac_cv_search_dn_expand
18132if test "$ac_res" != no; then :
18133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18134
18135fi
18136
18137
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
18139$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
18140if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
18141 $as_echo_n "(cached) " >&6
18142else
18143 ac_check_lib_save_LIBS=$LIBS
18144LIBS="-lgssapi_krb5 $LIBS"
18145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146/* end confdefs.h. */
18147
18148/* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151#ifdef __cplusplus
18152extern "C"
18153#endif
18154char gss_init_sec_context ();
18155int
18156main ()
18157{
18158return gss_init_sec_context ();
18159 ;
18160 return 0;
18161}
18162_ACEOF
18163if ac_fn_c_try_link "$LINENO"; then :
18164 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
18165else
18166 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
18167fi
18168rm -f core conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170LIBS=$ac_check_lib_save_LIBS
18171fi
18172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
18173$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
18174if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
18175 $as_echo "#define GSSAPI 1" >>confdefs.h
18176
18177 GSSLIBS="-lgssapi_krb5"
18178else
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
18180$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
18181if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
18182 $as_echo_n "(cached) " >&6
18183else
18184 ac_check_lib_save_LIBS=$LIBS
18185LIBS="-lgssapi $LIBS"
18186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h. */
18188
18189/* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18192#ifdef __cplusplus
18193extern "C"
18194#endif
18195char gss_init_sec_context ();
18196int
18197main ()
18198{
18199return gss_init_sec_context ();
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204if ac_fn_c_try_link "$LINENO"; then :
18205 ac_cv_lib_gssapi_gss_init_sec_context=yes
18206else
18207 ac_cv_lib_gssapi_gss_init_sec_context=no
18208fi
18209rm -f core conftest.err conftest.$ac_objext \
18210 conftest$ac_exeext conftest.$ac_ext
18211LIBS=$ac_check_lib_save_LIBS
18212fi
18213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
18214$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
18215if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
18216 $as_echo "#define GSSAPI 1" >>confdefs.h
18217
18218 GSSLIBS="-lgssapi"
18219else
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
18221$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
18222if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
18223 $as_echo_n "(cached) " >&6
18224else
18225 ac_check_lib_save_LIBS=$LIBS
18226LIBS="-lgss $LIBS"
18227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228/* end confdefs.h. */
18229
18230/* Override any GCC internal prototype to avoid an error.
18231 Use char because int might match the return type of a GCC
18232 builtin and then its argument prototype would still apply. */
18233#ifdef __cplusplus
18234extern "C"
18235#endif
18236char gss_init_sec_context ();
18237int
18238main ()
18239{
18240return gss_init_sec_context ();
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245if ac_fn_c_try_link "$LINENO"; then :
18246 ac_cv_lib_gss_gss_init_sec_context=yes
18247else
18248 ac_cv_lib_gss_gss_init_sec_context=no
18249fi
18250rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252LIBS=$ac_check_lib_save_LIBS
18253fi
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
18255$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
18256if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
18257 $as_echo "#define GSSAPI 1" >>confdefs.h
18258
18259 GSSLIBS="-lgss"
18260else
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
18262$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
18263fi
18264
18265
18266fi
18267
18268
18269fi
18270
18271
18272 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18273if test "x$ac_cv_header_gssapi_h" = xyes; then :
18274
18275else
18276 unset ac_cv_header_gssapi_h
18277 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18278 for ac_header in gssapi.h
18279do :
18280 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
18281if test "x$ac_cv_header_gssapi_h" = xyes; then :
18282 cat >>confdefs.h <<_ACEOF
18283#define HAVE_GSSAPI_H 1
18284_ACEOF
18285
18286else
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
18288$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
18289
18290fi
18291
18292done
18293
18294
18295
18296fi
18297
18298
18299
18300 oldCPP="$CPPFLAGS"
18301 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
18302 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
18303if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
18304
18305else
18306 CPPFLAGS="$oldCPP"
18307fi
18308
18309
18310
18311 fi
18312 if test ! -z "$need_dash_r" ; then
18313 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
18314 fi
18315 if test ! -z "$blibpath" ; then
18316 blibpath="$blibpath:${KRB5ROOT}/lib"
18317 fi
18318
18319 for ac_header in gssapi.h gssapi/gssapi.h
18320do :
18321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18322ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18323if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18324 cat >>confdefs.h <<_ACEOF
18325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18326_ACEOF
18327
18328fi
18329
18330done
18331
18332 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
18333do :
18334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18335ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18337 cat >>confdefs.h <<_ACEOF
18338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18339_ACEOF
18340
18341fi
18342
18343done
18344
18345 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
18346do :
18347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18348ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18349if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18350 cat >>confdefs.h <<_ACEOF
18351#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18352_ACEOF
18353
18354fi
18355
18356done
18357
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
18360$as_echo_n "checking for library containing k_hasafs... " >&6; }
18361if ${ac_cv_search_k_hasafs+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363else
18364 ac_func_search_save_LIBS=$LIBS
18365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366/* end confdefs.h. */
18367
18368/* Override any GCC internal prototype to avoid an error.
18369 Use char because int might match the return type of a GCC
18370 builtin and then its argument prototype would still apply. */
18371#ifdef __cplusplus
18372extern "C"
18373#endif
18374char k_hasafs ();
18375int
18376main ()
18377{
18378return k_hasafs ();
18379 ;
18380 return 0;
18381}
18382_ACEOF
18383for ac_lib in '' kafs; do
18384 if test -z "$ac_lib"; then
18385 ac_res="none required"
18386 else
18387 ac_res=-l$ac_lib
18388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18389 fi
18390 if ac_fn_c_try_link "$LINENO"; then :
18391 ac_cv_search_k_hasafs=$ac_res
18392fi
18393rm -f core conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext
18395 if ${ac_cv_search_k_hasafs+:} false; then :
18396 break
18397fi
18398done
18399if ${ac_cv_search_k_hasafs+:} false; then :
18400
18401else
18402 ac_cv_search_k_hasafs=no
18403fi
18404rm conftest.$ac_ext
18405LIBS=$ac_func_search_save_LIBS
18406fi
18407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
18408$as_echo "$ac_cv_search_k_hasafs" >&6; }
18409ac_res=$ac_cv_search_k_hasafs
18410if test "$ac_res" != no; then :
18411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18412
18413$as_echo "#define USE_AFS 1" >>confdefs.h
18414
18415fi
18416
18417
18418 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
18419#ifdef HAVE_GSSAPI_H
18420# include <gssapi.h>
18421#elif defined(HAVE_GSSAPI_GSSAPI_H)
18422# include <gssapi/gssapi.h>
18423#endif
18424
18425#ifdef HAVE_GSSAPI_GENERIC_H
18426# include <gssapi_generic.h>
18427#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
18428# include <gssapi/gssapi_generic.h>
18429#endif
18430
18431"
18432if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
18433 ac_have_decl=1
18434else
18435 ac_have_decl=0
18436fi
18437
18438cat >>confdefs.h <<_ACEOF
18439#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
18440_ACEOF
18441
18442 saved_LIBS="$LIBS"
18443 LIBS="$LIBS $K5LIBS"
18444 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
18445do :
18446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18447ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18448if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18449 cat >>confdefs.h <<_ACEOF
18450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18451_ACEOF
18452
18453fi
18454done
18455
18456 LIBS="$saved_LIBS"
18457
18458 fi
18459
18460
18461fi
18462
18463
18464
18465
18466# Looking for programs, paths and files
18467
18468PRIVSEP_PATH=/var/empty
18469
18470# Check whether --with-privsep-path was given.
18471if test "${with_privsep_path+set}" = set; then :
18472 withval=$with_privsep_path;
18473 if test -n "$withval" && test "x$withval" != "xno" && \
18474 test "x${withval}" != "xyes"; then
18475 PRIVSEP_PATH=$withval
18476 fi
18477
18478
18479fi
18480
18481
18482
18483
18484# Check whether --with-xauth was given.
18485if test "${with_xauth+set}" = set; then :
18486 withval=$with_xauth;
18487 if test -n "$withval" && test "x$withval" != "xno" && \
18488 test "x${withval}" != "xyes"; then
18489 xauth_path=$withval
18490 fi
18491
18492else
18493
18494 TestPath="$PATH"
18495 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
18496 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
18497 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
18498 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
18499 # Extract the first word of "xauth", so it can be a program name with args.
18500set dummy xauth; ac_word=$2
18501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18502$as_echo_n "checking for $ac_word... " >&6; }
18503if ${ac_cv_path_xauth_path+:} false; then :
18504 $as_echo_n "(cached) " >&6
18505else
18506 case $xauth_path in
18507 [\\/]* | ?:[\\/]*)
18508 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
18509 ;;
18510 *)
18511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18512for as_dir in $TestPath
18513do
18514 IFS=$as_save_IFS
18515 test -z "$as_dir" && as_dir=.
18516 for ac_exec_ext in '' $ac_executable_extensions; do
18517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18518 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
18519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18520 break 2
18521 fi
18522done
18523 done
18524IFS=$as_save_IFS
18525
18526 ;;
18527esac
18528fi
18529xauth_path=$ac_cv_path_xauth_path
18530if test -n "$xauth_path"; then
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
18532$as_echo "$xauth_path" >&6; }
18533else
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18535$as_echo "no" >&6; }
18536fi
18537
18538
18539 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
18540 xauth_path="/usr/openwin/bin/xauth"
18541 fi
18542
18543
18544fi
18545
18546
18547STRIP_OPT=-s
18548# Check whether --enable-strip was given.
18549if test "${enable_strip+set}" = set; then :
18550 enableval=$enable_strip;
18551 if test "x$enableval" = "xno" ; then
18552 STRIP_OPT=
18553 fi
18554
18555
18556fi
18557
18558
18559
18560if test -z "$xauth_path" ; then
18561 XAUTH_PATH="undefined"
18562
18563else
18564
18565cat >>confdefs.h <<_ACEOF
18566#define XAUTH_PATH "$xauth_path"
18567_ACEOF
18568
18569 XAUTH_PATH=$xauth_path
18570
18571fi
18572
18573# Check for mail directory
18574
18575# Check whether --with-maildir was given.
18576if test "${with_maildir+set}" = set; then :
18577 withval=$with_maildir;
18578 if test "X$withval" != X && test "x$withval" != xno && \
18579 test "x${withval}" != xyes; then
18580
18581cat >>confdefs.h <<_ACEOF
18582#define MAIL_DIRECTORY "$withval"
18583_ACEOF
18584
18585 fi
18586
18587else
18588
18589 if test "X$maildir" != "X"; then
18590 cat >>confdefs.h <<_ACEOF
18591#define MAIL_DIRECTORY "$maildir"
18592_ACEOF
18593
18594 else
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
18596$as_echo_n "checking Discovering system mail directory... " >&6; }
18597 if test "$cross_compiling" = yes; then :
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
18600$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
18601
18602
18603else
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h. */
18606
18607#include <stdio.h>
18608#include <string.h>
18609#ifdef HAVE_PATHS_H
18610#include <paths.h>
18611#endif
18612#ifdef HAVE_MAILLOCK_H
18613#include <maillock.h>
18614#endif
18615#define DATA "conftest.maildir"
18616
18617int
18618main ()
18619{
18620
18621 FILE *fd;
18622 int rc;
18623
18624 fd = fopen(DATA,"w");
18625 if(fd == NULL)
18626 exit(1);
18627
18628#if defined (_PATH_MAILDIR)
18629 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
18630 exit(1);
18631#elif defined (MAILDIR)
18632 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
18633 exit(1);
18634#elif defined (_PATH_MAIL)
18635 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
18636 exit(1);
18637#else
18638 exit (2);
18639#endif
18640
18641 exit(0);
18642
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647if ac_fn_c_try_run "$LINENO"; then :
18648
18649 maildir_what=`awk -F: '{print $1}' conftest.maildir`
18650 maildir=`awk -F: '{print $2}' conftest.maildir \
18651 | sed 's|/$||'`
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
18653$as_echo "Using: $maildir from $maildir_what" >&6; }
18654 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
18655 cat >>confdefs.h <<_ACEOF
18656#define MAIL_DIRECTORY "$maildir"
18657_ACEOF
18658
18659 fi
18660
18661else
18662
18663 if test "X$ac_status" = "X2";then
18664# our test program didn't find it. Default to /var/spool/mail
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
18666$as_echo "Using: default value of /var/spool/mail" >&6; }
18667 cat >>confdefs.h <<_ACEOF
18668#define MAIL_DIRECTORY "/var/spool/mail"
18669_ACEOF
18670
18671 else
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
18673$as_echo "*** not found ***" >&6; }
18674 fi
18675
18676fi
18677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18678 conftest.$ac_objext conftest.beam conftest.$ac_ext
18679fi
18680
18681 fi
18682
18683
18684fi
18685 # maildir
18686
18687if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
18689$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
18690 disable_ptmx_check=yes
18691fi
18692if test -z "$no_dev_ptmx" ; then
18693 if test "x$disable_ptmx_check" != "xyes" ; then
18694 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
18696$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
18697if eval \${$as_ac_File+:} false; then :
18698 $as_echo_n "(cached) " >&6
18699else
18700 test "$cross_compiling" = yes &&
18701 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18702if test -r ""/dev/ptmx""; then
18703 eval "$as_ac_File=yes"
18704else
18705 eval "$as_ac_File=no"
18706fi
18707fi
18708eval ac_res=\$$as_ac_File
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18710$as_echo "$ac_res" >&6; }
18711if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18712
18713
18714cat >>confdefs.h <<_ACEOF
18715#define HAVE_DEV_PTMX 1
18716_ACEOF
18717
18718 have_dev_ptmx=1
18719
18720
18721fi
18722
18723 fi
18724fi
18725
18726if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
18727 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
18728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
18729$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
18730if eval \${$as_ac_File+:} false; then :
18731 $as_echo_n "(cached) " >&6
18732else
18733 test "$cross_compiling" = yes &&
18734 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18735if test -r ""/dev/ptc""; then
18736 eval "$as_ac_File=yes"
18737else
18738 eval "$as_ac_File=no"
18739fi
18740fi
18741eval ac_res=\$$as_ac_File
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18743$as_echo "$ac_res" >&6; }
18744if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18745
18746
18747cat >>confdefs.h <<_ACEOF
18748#define HAVE_DEV_PTS_AND_PTC 1
18749_ACEOF
18750
18751 have_dev_ptc=1
18752
18753
18754fi
18755
18756else
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
18758$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
18759fi
18760
18761# Options from here on. Some of these are preset by platform above
18762
18763# Check whether --with-mantype was given.
18764if test "${with_mantype+set}" = set; then :
18765 withval=$with_mantype;
18766 case "$withval" in
18767 man|cat|doc)
18768 MANTYPE=$withval
18769 ;;
18770 *)
18771 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
18772 ;;
18773 esac
18774
18775
18776fi
18777
18778if test -z "$MANTYPE"; then
18779 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
18780 for ac_prog in nroff awf
18781do
18782 # Extract the first word of "$ac_prog", so it can be a program name with args.
18783set dummy $ac_prog; ac_word=$2
18784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18785$as_echo_n "checking for $ac_word... " >&6; }
18786if ${ac_cv_path_NROFF+:} false; then :
18787 $as_echo_n "(cached) " >&6
18788else
18789 case $NROFF in
18790 [\\/]* | ?:[\\/]*)
18791 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
18792 ;;
18793 *)
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795for as_dir in $TestPath
18796do
18797 IFS=$as_save_IFS
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
18802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 break 2
18804 fi
18805done
18806 done
18807IFS=$as_save_IFS
18808
18809 ;;
18810esac
18811fi
18812NROFF=$ac_cv_path_NROFF
18813if test -n "$NROFF"; then
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
18815$as_echo "$NROFF" >&6; }
18816else
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18818$as_echo "no" >&6; }
18819fi
18820
18821
18822 test -n "$NROFF" && break
18823done
18824test -n "$NROFF" || NROFF="/bin/false"
18825
18826 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18827 MANTYPE=doc
18828 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
18829 MANTYPE=man
18830 else
18831 MANTYPE=cat
18832 fi
18833fi
18834
18835if test "$MANTYPE" = "doc"; then
18836 mansubdir=man;
18837else
18838 mansubdir=$MANTYPE;
18839fi
18840
18841
18842# Check whether to enable MD5 passwords
18843MD5_MSG="no"
18844
18845# Check whether --with-md5-passwords was given.
18846if test "${with_md5_passwords+set}" = set; then :
18847 withval=$with_md5_passwords;
18848 if test "x$withval" != "xno" ; then
18849
18850$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
18851
18852 MD5_MSG="yes"
18853 fi
18854
18855
18856fi
18857
18858
18859# Whether to disable shadow password support
18860
18861# Check whether --with-shadow was given.
18862if test "${with_shadow+set}" = set; then :
18863 withval=$with_shadow;
18864 if test "x$withval" = "xno" ; then
18865 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
18866
18867 disable_shadow=yes
18868 fi
18869
18870
18871fi
18872
18873
18874if test -z "$disable_shadow" ; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
18876$as_echo_n "checking if the systems has expire shadow information... " >&6; }
18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878/* end confdefs.h. */
18879
18880#include <sys/types.h>
18881#include <shadow.h>
18882struct spwd sp;
18883
18884int
18885main ()
18886{
18887 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
18888 ;
18889 return 0;
18890}
18891_ACEOF
18892if ac_fn_c_try_compile "$LINENO"; then :
18893 sp_expire_available=yes
18894fi
18895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896
18897 if test "x$sp_expire_available" = "xyes" ; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899$as_echo "yes" >&6; }
18900
18901$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
18902
18903 else
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905$as_echo "no" >&6; }
18906 fi
18907fi
18908
18909# Use ip address instead of hostname in $DISPLAY
18910if test ! -z "$IPADDR_IN_DISPLAY" ; then
18911 DISPLAY_HACK_MSG="yes"
18912
18913$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18914
18915else
18916 DISPLAY_HACK_MSG="no"
18917
18918# Check whether --with-ipaddr-display was given.
18919if test "${with_ipaddr_display+set}" = set; then :
18920 withval=$with_ipaddr_display;
18921 if test "x$withval" != "xno" ; then
18922 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18923
18924 DISPLAY_HACK_MSG="yes"
18925 fi
18926
18927
18928fi
18929
18930fi
18931
18932# check for /etc/default/login and use it if present.
18933# Check whether --enable-etc-default-login was given.
18934if test "${enable_etc_default_login+set}" = set; then :
18935 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
18937$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
18938 etc_default_login=no
18939 else
18940 etc_default_login=yes
18941 fi
18942else
18943 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
18944 then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
18946$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
18947 etc_default_login=no
18948 else
18949 etc_default_login=yes
18950 fi
18951
18952fi
18953
18954
18955if test "x$etc_default_login" != "xno"; then
18956 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
18958$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
18959if eval \${$as_ac_File+:} false; then :
18960 $as_echo_n "(cached) " >&6
18961else
18962 test "$cross_compiling" = yes &&
18963 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18964if test -r ""/etc/default/login""; then
18965 eval "$as_ac_File=yes"
18966else
18967 eval "$as_ac_File=no"
18968fi
18969fi
18970eval ac_res=\$$as_ac_File
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18972$as_echo "$ac_res" >&6; }
18973if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18974 external_path_file=/etc/default/login
18975fi
18976
18977 if test "x$external_path_file" = "x/etc/default/login"; then
18978
18979$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
18980
18981 fi
18982fi
18983
18984if test $ac_cv_func_login_getcapbool = "yes" && \
18985 test $ac_cv_header_login_cap_h = "yes" ; then
18986 external_path_file=/etc/login.conf
18987fi
18988
18989# Whether to mess with the default path
18990SERVER_PATH_MSG="(default)"
18991
18992# Check whether --with-default-path was given.
18993if test "${with_default_path+set}" = set; then :
18994 withval=$with_default_path;
18995 if test "x$external_path_file" = "x/etc/login.conf" ; then
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18997--with-default-path=PATH has no effect on this system.
18998Edit /etc/login.conf instead." >&5
18999$as_echo "$as_me: WARNING:
19000--with-default-path=PATH has no effect on this system.
19001Edit /etc/login.conf instead." >&2;}
19002 elif test "x$withval" != "xno" ; then
19003 if test ! -z "$external_path_file" ; then
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19005--with-default-path=PATH will only be used if PATH is not defined in
19006$external_path_file ." >&5
19007$as_echo "$as_me: WARNING:
19008--with-default-path=PATH will only be used if PATH is not defined in
19009$external_path_file ." >&2;}
19010 fi
19011 user_path="$withval"
19012 SERVER_PATH_MSG="$withval"
19013 fi
19014
19015else
19016 if test "x$external_path_file" = "x/etc/login.conf" ; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
19018$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
19019 else
19020 if test ! -z "$external_path_file" ; then
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19022If PATH is defined in $external_path_file, ensure the path to scp is included,
19023otherwise scp will not work." >&5
19024$as_echo "$as_me: WARNING:
19025If PATH is defined in $external_path_file, ensure the path to scp is included,
19026otherwise scp will not work." >&2;}
19027 fi
19028 if test "$cross_compiling" = yes; then :
19029 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19030
19031else
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033/* end confdefs.h. */
19034
19035/* find out what STDPATH is */
19036#include <stdio.h>
19037#ifdef HAVE_PATHS_H
19038# include <paths.h>
19039#endif
19040#ifndef _PATH_STDPATH
19041# ifdef _PATH_USERPATH /* Irix */
19042# define _PATH_STDPATH _PATH_USERPATH
19043# else
19044# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
19045# endif
19046#endif
19047#include <sys/types.h>
19048#include <sys/stat.h>
19049#include <fcntl.h>
19050#define DATA "conftest.stdpath"
19051
19052int
19053main ()
19054{
19055
19056 FILE *fd;
19057 int rc;
19058
19059 fd = fopen(DATA,"w");
19060 if(fd == NULL)
19061 exit(1);
19062
19063 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
19064 exit(1);
19065
19066 exit(0);
19067
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072if ac_fn_c_try_run "$LINENO"; then :
19073 user_path=`cat conftest.stdpath`
19074else
19075 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
19076fi
19077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19078 conftest.$ac_objext conftest.beam conftest.$ac_ext
19079fi
19080
19081# make sure $bindir is in USER_PATH so scp will work
19082 t_bindir="${bindir}"
19083 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
19084 t_bindir=`eval echo ${t_bindir}`
19085 case $t_bindir in
19086 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
19087 esac
19088 case $t_bindir in
19089 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
19090 esac
19091 done
19092 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
19093 if test $? -ne 0 ; then
19094 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
19095 if test $? -ne 0 ; then
19096 user_path=$user_path:$t_bindir
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
19098$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
19099 fi
19100 fi
19101 fi
19102
19103fi
19104
19105if test "x$external_path_file" != "x/etc/login.conf" ; then
19106
19107cat >>confdefs.h <<_ACEOF
19108#define USER_PATH "$user_path"
19109_ACEOF
19110
19111
19112fi
19113
19114# Set superuser path separately to user path
19115
19116# Check whether --with-superuser-path was given.
19117if test "${with_superuser_path+set}" = set; then :
19118 withval=$with_superuser_path;
19119 if test -n "$withval" && test "x$withval" != "xno" && \
19120 test "x${withval}" != "xyes"; then
19121
19122cat >>confdefs.h <<_ACEOF
19123#define SUPERUSER_PATH "$withval"
19124_ACEOF
19125
19126 superuser_path=$withval
19127 fi
19128
19129
19130fi
19131
19132
19133
19134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
19135$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
19136IPV4_IN6_HACK_MSG="no"
19137
19138# Check whether --with-4in6 was given.
19139if test "${with_4in6+set}" = set; then :
19140 withval=$with_4in6;
19141 if test "x$withval" != "xno" ; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19143$as_echo "yes" >&6; }
19144
19145$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19146
19147 IPV4_IN6_HACK_MSG="yes"
19148 else
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19150$as_echo "no" >&6; }
19151 fi
19152
19153else
19154
19155 if test "x$inet6_default_4in6" = "xyes"; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
19157$as_echo "yes (default)" >&6; }
19158 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
19159
19160 IPV4_IN6_HACK_MSG="yes"
19161 else
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
19163$as_echo "no (default)" >&6; }
19164 fi
19165
19166
19167fi
19168
19169
19170# Whether to enable BSD auth support
19171BSD_AUTH_MSG=no
19172
19173# Check whether --with-bsd-auth was given.
19174if test "${with_bsd_auth+set}" = set; then :
19175 withval=$with_bsd_auth;
19176 if test "x$withval" != "xno" ; then
19177
19178$as_echo "#define BSD_AUTH 1" >>confdefs.h
19179
19180 BSD_AUTH_MSG=yes
19181 fi
19182
19183
19184fi
19185
19186
19187# Where to place sshd.pid
19188piddir=/var/run
19189# make sure the directory exists
19190if test ! -d $piddir ; then
19191 piddir=`eval echo ${sysconfdir}`
19192 case $piddir in
19193 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
19194 esac
19195fi
19196
19197
19198# Check whether --with-pid-dir was given.
19199if test "${with_pid_dir+set}" = set; then :
19200 withval=$with_pid_dir;
19201 if test -n "$withval" && test "x$withval" != "xno" && \
19202 test "x${withval}" != "xyes"; then
19203 piddir=$withval
19204 if test ! -d $piddir ; then
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
19206$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
19207 fi
19208 fi
19209
19210
19211fi
19212
19213
19214
19215cat >>confdefs.h <<_ACEOF
19216#define _PATH_SSH_PIDDIR "$piddir"
19217_ACEOF
19218
19219
19220
19221# Check whether --enable-lastlog was given.
19222if test "${enable_lastlog+set}" = set; then :
19223 enableval=$enable_lastlog;
19224 if test "x$enableval" = "xno" ; then
19225 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19226
19227 fi
19228
19229
19230fi
19231
19232# Check whether --enable-utmp was given.
19233if test "${enable_utmp+set}" = set; then :
19234 enableval=$enable_utmp;
19235 if test "x$enableval" = "xno" ; then
19236 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19237
19238 fi
19239
19240
19241fi
19242
19243# Check whether --enable-utmpx was given.
19244if test "${enable_utmpx+set}" = set; then :
19245 enableval=$enable_utmpx;
19246 if test "x$enableval" = "xno" ; then
19247
19248$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
19249
19250 fi
19251
19252
19253fi
19254
19255# Check whether --enable-wtmp was given.
19256if test "${enable_wtmp+set}" = set; then :
19257 enableval=$enable_wtmp;
19258 if test "x$enableval" = "xno" ; then
19259 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19260
19261 fi
19262
19263
19264fi
19265
19266# Check whether --enable-wtmpx was given.
19267if test "${enable_wtmpx+set}" = set; then :
19268 enableval=$enable_wtmpx;
19269 if test "x$enableval" = "xno" ; then
19270
19271$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19272
19273 fi
19274
19275
19276fi
19277
19278# Check whether --enable-libutil was given.
19279if test "${enable_libutil+set}" = set; then :
19280 enableval=$enable_libutil;
19281 if test "x$enableval" = "xno" ; then
19282 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
19283
19284 fi
19285
19286
19287fi
19288
19289# Check whether --enable-pututline was given.
19290if test "${enable_pututline+set}" = set; then :
19291 enableval=$enable_pututline;
19292 if test "x$enableval" = "xno" ; then
19293
19294$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
19295
19296 fi
19297
19298
19299fi
19300
19301# Check whether --enable-pututxline was given.
19302if test "${enable_pututxline+set}" = set; then :
19303 enableval=$enable_pututxline;
19304 if test "x$enableval" = "xno" ; then
19305
19306$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
19307
19308 fi
19309
19310
19311fi
19312
19313
19314# Check whether --with-lastlog was given.
19315if test "${with_lastlog+set}" = set; then :
19316 withval=$with_lastlog;
19317 if test "x$withval" = "xno" ; then
19318 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19319
19320 elif test -n "$withval" && test "x${withval}" != "xyes"; then
19321 conf_lastlog_location=$withval
19322 fi
19323
19324
19325fi
19326
19327
19328
19329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
19330$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
19331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332/* end confdefs.h. */
19333
19334#include <sys/types.h>
19335#include <utmp.h>
19336#ifdef HAVE_LASTLOG_H
19337# include <lastlog.h>
19338#endif
19339#ifdef HAVE_PATHS_H
19340# include <paths.h>
19341#endif
19342#ifdef HAVE_LOGIN_H
19343# include <login.h>
19344#endif
19345
19346int
19347main ()
19348{
19349 char *lastlog = LASTLOG_FILE;
19350 ;
19351 return 0;
19352}
19353_ACEOF
19354if ac_fn_c_try_compile "$LINENO"; then :
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19356$as_echo "yes" >&6; }
19357else
19358
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; }
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
19362$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364/* end confdefs.h. */
19365
19366#include <sys/types.h>
19367#include <utmp.h>
19368#ifdef HAVE_LASTLOG_H
19369# include <lastlog.h>
19370#endif
19371#ifdef HAVE_PATHS_H
19372# include <paths.h>
19373#endif
19374
19375int
19376main ()
19377{
19378 char *lastlog = _PATH_LASTLOG;
19379 ;
19380 return 0;
19381}
19382_ACEOF
19383if ac_fn_c_try_compile "$LINENO"; then :
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19385$as_echo "yes" >&6; }
19386else
19387
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389$as_echo "no" >&6; }
19390 system_lastlog_path=no
19391
19392fi
19393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394
19395fi
19396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397
19398if test -z "$conf_lastlog_location"; then
19399 if test x"$system_lastlog_path" = x"no" ; then
19400 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
19401 if (test -d "$f" || test -f "$f") ; then
19402 conf_lastlog_location=$f
19403 fi
19404 done
19405 if test -z "$conf_lastlog_location"; then
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
19407$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
19408 fi
19409 fi
19410fi
19411
19412if test -n "$conf_lastlog_location"; then
19413
19414cat >>confdefs.h <<_ACEOF
19415#define CONF_LASTLOG_FILE "$conf_lastlog_location"
19416_ACEOF
19417
19418fi
19419
19420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
19421$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
19422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423/* end confdefs.h. */
19424
19425#include <sys/types.h>
19426#include <utmp.h>
19427#ifdef HAVE_PATHS_H
19428# include <paths.h>
19429#endif
19430
19431int
19432main ()
19433{
19434 char *utmp = UTMP_FILE;
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439if ac_fn_c_try_compile "$LINENO"; then :
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441$as_echo "yes" >&6; }
19442else
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444$as_echo "no" >&6; }
19445 system_utmp_path=no
19446
19447fi
19448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19449if test -z "$conf_utmp_location"; then
19450 if test x"$system_utmp_path" = x"no" ; then
19451 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
19452 if test -f $f ; then
19453 conf_utmp_location=$f
19454 fi
19455 done
19456 if test -z "$conf_utmp_location"; then
19457 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19458
19459 fi
19460 fi
19461fi
19462if test -n "$conf_utmp_location"; then
19463
19464cat >>confdefs.h <<_ACEOF
19465#define CONF_UTMP_FILE "$conf_utmp_location"
19466_ACEOF
19467
19468fi
19469
19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
19471$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
19472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473/* end confdefs.h. */
19474
19475#include <sys/types.h>
19476#include <utmp.h>
19477#ifdef HAVE_PATHS_H
19478# include <paths.h>
19479#endif
19480
19481int
19482main ()
19483{
19484 char *wtmp = WTMP_FILE;
19485 ;
19486 return 0;
19487}
19488_ACEOF
19489if ac_fn_c_try_compile "$LINENO"; then :
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491$as_echo "yes" >&6; }
19492else
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494$as_echo "no" >&6; }
19495 system_wtmp_path=no
19496
19497fi
19498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499if test -z "$conf_wtmp_location"; then
19500 if test x"$system_wtmp_path" = x"no" ; then
19501 for f in /usr/adm/wtmp /var/log/wtmp; do
19502 if test -f $f ; then
19503 conf_wtmp_location=$f
19504 fi
19505 done
19506 if test -z "$conf_wtmp_location"; then
19507 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19508
19509 fi
19510 fi
19511fi
19512if test -n "$conf_wtmp_location"; then
19513
19514cat >>confdefs.h <<_ACEOF
19515#define CONF_WTMP_FILE "$conf_wtmp_location"
19516_ACEOF
19517
19518fi
19519
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
19521$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
19522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523/* end confdefs.h. */
19524
19525#include <sys/types.h>
19526#include <utmp.h>
19527#ifdef HAVE_UTMPX_H
19528#include <utmpx.h>
19529#endif
19530#ifdef HAVE_PATHS_H
19531# include <paths.h>
19532#endif
19533
19534int
19535main ()
19536{
19537 char *wtmpx = WTMPX_FILE;
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542if ac_fn_c_try_compile "$LINENO"; then :
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19544$as_echo "yes" >&6; }
19545else
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19547$as_echo "no" >&6; }
19548 system_wtmpx_path=no
19549
19550fi
19551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552if test -z "$conf_wtmpx_location"; then
19553 if test x"$system_wtmpx_path" = x"no" ; then
19554 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19555
19556 fi
19557else
19558
19559cat >>confdefs.h <<_ACEOF
19560#define CONF_WTMPX_FILE "$conf_wtmpx_location"
19561_ACEOF
19562
19563fi
19564
19565
19566if test ! -z "$blibpath" ; then
19567 LDFLAGS="$LDFLAGS $blibflags$blibpath"
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
19569$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
19570fi
19571
19572ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
19573#ifdef HAVE_SYS_TYPES_H
19574#include <sys/types.h>
19575#endif
19576#ifdef HAVE_UTMP_H
19577#include <utmp.h>
19578#endif
19579#ifdef HAVE_UTMPX_H
19580#include <utmpx.h>
19581#endif
19582#ifdef HAVE_LASTLOG_H
19583#include <lastlog.h>
19584#endif
19585
19586"
19587if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
19588
19589else
19590
19591 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
19592 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19593
19594 fi
19595
19596fi
19597
19598
19599ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
19600#ifdef HAVE_SYS_TYPES_H
19601#include <sys/types.h>
19602#endif
19603#ifdef HAVE_UTMP_H
19604#include <utmp.h>
19605#endif
19606#ifdef HAVE_UTMPX_H
19607#include <utmpx.h>
19608#endif
19609#ifdef HAVE_LASTLOG_H
19610#include <lastlog.h>
19611#endif
19612
19613"
19614if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
19615
19616else
19617
19618 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19619
19620 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19621
19622
19623fi
19624
19625
19626CFLAGS="$CFLAGS $werror_flags"
19627
19628if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
19629 TEST_SSH_IPV6=no
19630else
19631 TEST_SSH_IPV6=yes
19632fi
19633ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
19634if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
19635 TEST_SSH_IPV6=no
19636fi
19637
19638TEST_SSH_IPV6=$TEST_SSH_IPV6
19639
19640TEST_SSH_UTF8=$TEST_SSH_UTF8
19641
19642TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
19643
19644UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
19645
19646DEPEND=$(cat $srcdir/.depend)
19647
19648
19649CFLAGS="${CFLAGS} ${CFLAGS_AFTER}"
19650LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}"
19651
19652
19653ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
19654
19655cat >confcache <<\_ACEOF
19656# This file is a shell script that caches the results of configure
19657# tests run on this system so they can be shared between configure
19658# scripts and configure runs, see configure's option --config-cache.
19659# It is not useful on other systems. If it contains results you don't
19660# want to keep, you may remove or edit it.
19661#
19662# config.status only pays attention to the cache file if you give it
19663# the --recheck option to rerun configure.
19664#
19665# `ac_cv_env_foo' variables (set or unset) will be overridden when
19666# loading this file, other *unset* `ac_cv_foo' will be assigned the
19667# following values.
19668
19669_ACEOF
19670
19671# The following way of writing the cache mishandles newlines in values,
19672# but we know of no workaround that is simple, portable, and efficient.
19673# So, we kill variables containing newlines.
19674# Ultrix sh set writes to stderr and can't be redirected directly,
19675# and sets the high bit in the cache file unless we assign to the vars.
19676(
19677 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19678 eval ac_val=\$$ac_var
19679 case $ac_val in #(
19680 *${as_nl}*)
19681 case $ac_var in #(
19682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19683$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19684 esac
19685 case $ac_var in #(
19686 _ | IFS | as_nl) ;; #(
19687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19688 *) { eval $ac_var=; unset $ac_var;} ;;
19689 esac ;;
19690 esac
19691 done
19692
19693 (set) 2>&1 |
19694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19695 *${as_nl}ac_space=\ *)
19696 # `set' does not quote correctly, so add quotes: double-quote
19697 # substitution turns \\\\ into \\, and sed turns \\ into \.
19698 sed -n \
19699 "s/'/'\\\\''/g;
19700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19701 ;; #(
19702 *)
19703 # `set' quotes correctly as required by POSIX, so do not add quotes.
19704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19705 ;;
19706 esac |
19707 sort
19708) |
19709 sed '
19710 /^ac_cv_env_/b end
19711 t clear
19712 :clear
19713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19714 t end
19715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19716 :end' >>confcache
19717if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19718 if test -w "$cache_file"; then
19719 if test "x$cache_file" != "x/dev/null"; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19721$as_echo "$as_me: updating cache $cache_file" >&6;}
19722 if test ! -f "$cache_file" || test -h "$cache_file"; then
19723 cat confcache >"$cache_file"
19724 else
19725 case $cache_file in #(
19726 */* | ?:*)
19727 mv -f confcache "$cache_file"$$ &&
19728 mv -f "$cache_file"$$ "$cache_file" ;; #(
19729 *)
19730 mv -f confcache "$cache_file" ;;
19731 esac
19732 fi
19733 fi
19734 else
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19736$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19737 fi
19738fi
19739rm -f confcache
19740
19741test "x$prefix" = xNONE && prefix=$ac_default_prefix
19742# Let make expand exec_prefix.
19743test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19744
19745DEFS=-DHAVE_CONFIG_H
19746
19747ac_libobjs=
19748ac_ltlibobjs=
19749U=
19750for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19751 # 1. Remove the extension, and $U if already installed.
19752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19755 # will be set to the directory where LIBOBJS objects are built.
19756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19758done
19759LIBOBJS=$ac_libobjs
19760
19761LTLIBOBJS=$ac_ltlibobjs
19762
19763
19764
19765
19766: "${CONFIG_STATUS=./config.status}"
19767ac_write_fail=0
19768ac_clean_files_save=$ac_clean_files
19769ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19770{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19771$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19772as_write_fail=0
19773cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19774#! $SHELL
19775# Generated by $as_me.
19776# Run this file to recreate the current configuration.
19777# Compiler output produced by configure, useful for debugging
19778# configure, is in config.log if it exists.
19779
19780debug=false
19781ac_cs_recheck=false
19782ac_cs_silent=false
19783
19784SHELL=\${CONFIG_SHELL-$SHELL}
19785export SHELL
19786_ASEOF
19787cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19788## -------------------- ##
19789## M4sh Initialization. ##
19790## -------------------- ##
19791
19792# Be more Bourne compatible
19793DUALCASE=1; export DUALCASE # for MKS sh
19794if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19795 emulate sh
19796 NULLCMD=:
19797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19798 # is contrary to our usage. Disable this feature.
19799 alias -g '${1+"$@"}'='"$@"'
19800 setopt NO_GLOB_SUBST
19801else
19802 case `(set -o) 2>/dev/null` in #(
19803 *posix*) :
19804 set -o posix ;; #(
19805 *) :
19806 ;;
19807esac
19808fi
19809
19810
19811as_nl='
19812'
19813export as_nl
19814# Printing a long string crashes Solaris 7 /usr/bin/printf.
19815as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19817as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19818# Prefer a ksh shell builtin over an external printf program on Solaris,
19819# but without wasting forks for bash or zsh.
19820if test -z "$BASH_VERSION$ZSH_VERSION" \
19821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19822 as_echo='print -r --'
19823 as_echo_n='print -rn --'
19824elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19825 as_echo='printf %s\n'
19826 as_echo_n='printf %s'
19827else
19828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19830 as_echo_n='/usr/ucb/echo -n'
19831 else
19832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19833 as_echo_n_body='eval
19834 arg=$1;
19835 case $arg in #(
19836 *"$as_nl"*)
19837 expr "X$arg" : "X\\(.*\\)$as_nl";
19838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19839 esac;
19840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19841 '
19842 export as_echo_n_body
19843 as_echo_n='sh -c $as_echo_n_body as_echo'
19844 fi
19845 export as_echo_body
19846 as_echo='sh -c $as_echo_body as_echo'
19847fi
19848
19849# The user is always right.
19850if test "${PATH_SEPARATOR+set}" != set; then
19851 PATH_SEPARATOR=:
19852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19854 PATH_SEPARATOR=';'
19855 }
19856fi
19857
19858
19859# IFS
19860# We need space, tab and new line, in precisely that order. Quoting is
19861# there to prevent editors from complaining about space-tab.
19862# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19863# splitting by setting IFS to empty value.)
19864IFS=" "" $as_nl"
19865
19866# Find who we are. Look in the path if we contain no directory separator.
19867as_myself=
19868case $0 in #((
19869 *[\\/]* ) as_myself=$0 ;;
19870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19871for as_dir in $PATH
19872do
19873 IFS=$as_save_IFS
19874 test -z "$as_dir" && as_dir=.
19875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19876 done
19877IFS=$as_save_IFS
19878
19879 ;;
19880esac
19881# We did not find ourselves, most probably we were run as `sh COMMAND'
19882# in which case we are not to be found in the path.
19883if test "x$as_myself" = x; then
19884 as_myself=$0
19885fi
19886if test ! -f "$as_myself"; then
19887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19888 exit 1
19889fi
19890
19891# Unset variables that we do not need and which cause bugs (e.g. in
19892# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19893# suppresses any "Segmentation fault" message there. '((' could
19894# trigger a bug in pdksh 5.2.14.
19895for as_var in BASH_ENV ENV MAIL MAILPATH
19896do eval test x\${$as_var+set} = xset \
19897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19898done
19899PS1='$ '
19900PS2='> '
19901PS4='+ '
19902
19903# NLS nuisances.
19904LC_ALL=C
19905export LC_ALL
19906LANGUAGE=C
19907export LANGUAGE
19908
19909# CDPATH.
19910(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19911
19912
19913# as_fn_error STATUS ERROR [LINENO LOG_FD]
19914# ----------------------------------------
19915# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19916# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19917# script with STATUS, using 1 if that was 0.
19918as_fn_error ()
19919{
19920 as_status=$1; test $as_status -eq 0 && as_status=1
19921 if test "$4"; then
19922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19924 fi
19925 $as_echo "$as_me: error: $2" >&2
19926 as_fn_exit $as_status
19927} # as_fn_error
19928
19929
19930# as_fn_set_status STATUS
19931# -----------------------
19932# Set $? to STATUS, without forking.
19933as_fn_set_status ()
19934{
19935 return $1
19936} # as_fn_set_status
19937
19938# as_fn_exit STATUS
19939# -----------------
19940# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19941as_fn_exit ()
19942{
19943 set +e
19944 as_fn_set_status $1
19945 exit $1
19946} # as_fn_exit
19947
19948# as_fn_unset VAR
19949# ---------------
19950# Portably unset VAR.
19951as_fn_unset ()
19952{
19953 { eval $1=; unset $1;}
19954}
19955as_unset=as_fn_unset
19956# as_fn_append VAR VALUE
19957# ----------------------
19958# Append the text in VALUE to the end of the definition contained in VAR. Take
19959# advantage of any shell optimizations that allow amortized linear growth over
19960# repeated appends, instead of the typical quadratic growth present in naive
19961# implementations.
19962if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19963 eval 'as_fn_append ()
19964 {
19965 eval $1+=\$2
19966 }'
19967else
19968 as_fn_append ()
19969 {
19970 eval $1=\$$1\$2
19971 }
19972fi # as_fn_append
19973
19974# as_fn_arith ARG...
19975# ------------------
19976# Perform arithmetic evaluation on the ARGs, and store the result in the
19977# global $as_val. Take advantage of shells that can avoid forks. The arguments
19978# must be portable across $(()) and expr.
19979if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19980 eval 'as_fn_arith ()
19981 {
19982 as_val=$(( $* ))
19983 }'
19984else
19985 as_fn_arith ()
19986 {
19987 as_val=`expr "$@" || test $? -eq 1`
19988 }
19989fi # as_fn_arith
19990
19991
19992if expr a : '\(a\)' >/dev/null 2>&1 &&
19993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19994 as_expr=expr
19995else
19996 as_expr=false
19997fi
19998
19999if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20000 as_basename=basename
20001else
20002 as_basename=false
20003fi
20004
20005if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20006 as_dirname=dirname
20007else
20008 as_dirname=false
20009fi
20010
20011as_me=`$as_basename -- "$0" ||
20012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20013 X"$0" : 'X\(//\)$' \| \
20014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20015$as_echo X/"$0" |
20016 sed '/^.*\/\([^/][^/]*\)\/*$/{
20017 s//\1/
20018 q
20019 }
20020 /^X\/\(\/\/\)$/{
20021 s//\1/
20022 q
20023 }
20024 /^X\/\(\/\).*/{
20025 s//\1/
20026 q
20027 }
20028 s/.*/./; q'`
20029
20030# Avoid depending upon Character Ranges.
20031as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20033as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20034as_cr_digits='0123456789'
20035as_cr_alnum=$as_cr_Letters$as_cr_digits
20036
20037ECHO_C= ECHO_N= ECHO_T=
20038case `echo -n x` in #(((((
20039-n*)
20040 case `echo 'xy\c'` in
20041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20042 xy) ECHO_C='\c';;
20043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20044 ECHO_T=' ';;
20045 esac;;
20046*)
20047 ECHO_N='-n';;
20048esac
20049
20050rm -f conf$$ conf$$.exe conf$$.file
20051if test -d conf$$.dir; then
20052 rm -f conf$$.dir/conf$$.file
20053else
20054 rm -f conf$$.dir
20055 mkdir conf$$.dir 2>/dev/null
20056fi
20057if (echo >conf$$.file) 2>/dev/null; then
20058 if ln -s conf$$.file conf$$ 2>/dev/null; then
20059 as_ln_s='ln -s'
20060 # ... but there are two gotchas:
20061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20063 # In both cases, we have to default to `cp -pR'.
20064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20065 as_ln_s='cp -pR'
20066 elif ln conf$$.file conf$$ 2>/dev/null; then
20067 as_ln_s=ln
20068 else
20069 as_ln_s='cp -pR'
20070 fi
20071else
20072 as_ln_s='cp -pR'
20073fi
20074rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20075rmdir conf$$.dir 2>/dev/null
20076
20077
20078# as_fn_mkdir_p
20079# -------------
20080# Create "$as_dir" as a directory, including parents if necessary.
20081as_fn_mkdir_p ()
20082{
20083
20084 case $as_dir in #(
20085 -*) as_dir=./$as_dir;;
20086 esac
20087 test -d "$as_dir" || eval $as_mkdir_p || {
20088 as_dirs=
20089 while :; do
20090 case $as_dir in #(
20091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20092 *) as_qdir=$as_dir;;
20093 esac
20094 as_dirs="'$as_qdir' $as_dirs"
20095 as_dir=`$as_dirname -- "$as_dir" ||
20096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20097 X"$as_dir" : 'X\(//\)[^/]' \| \
20098 X"$as_dir" : 'X\(//\)$' \| \
20099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20100$as_echo X"$as_dir" |
20101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20102 s//\1/
20103 q
20104 }
20105 /^X\(\/\/\)[^/].*/{
20106 s//\1/
20107 q
20108 }
20109 /^X\(\/\/\)$/{
20110 s//\1/
20111 q
20112 }
20113 /^X\(\/\).*/{
20114 s//\1/
20115 q
20116 }
20117 s/.*/./; q'`
20118 test -d "$as_dir" && break
20119 done
20120 test -z "$as_dirs" || eval "mkdir $as_dirs"
20121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20122
20123
20124} # as_fn_mkdir_p
20125if mkdir -p . 2>/dev/null; then
20126 as_mkdir_p='mkdir -p "$as_dir"'
20127else
20128 test -d ./-p && rmdir ./-p
20129 as_mkdir_p=false
20130fi
20131
20132
20133# as_fn_executable_p FILE
20134# -----------------------
20135# Test if FILE is an executable regular file.
20136as_fn_executable_p ()
20137{
20138 test -f "$1" && test -x "$1"
20139} # as_fn_executable_p
20140as_test_x='test -x'
20141as_executable_p=as_fn_executable_p
20142
20143# Sed expression to map a string onto a valid CPP name.
20144as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20145
20146# Sed expression to map a string onto a valid variable name.
20147as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20148
20149
20150exec 6>&1
20151## ----------------------------------- ##
20152## Main body of $CONFIG_STATUS script. ##
20153## ----------------------------------- ##
20154_ASEOF
20155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20156
20157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20158# Save the log message, to keep $0 and so on meaningful, and to
20159# report actual input values of CONFIG_FILES etc. instead of their
20160# values after options handling.
20161ac_log="
20162This file was extended by OpenSSH $as_me Portable, which was
20163generated by GNU Autoconf 2.69. Invocation command line was
20164
20165 CONFIG_FILES = $CONFIG_FILES
20166 CONFIG_HEADERS = $CONFIG_HEADERS
20167 CONFIG_LINKS = $CONFIG_LINKS
20168 CONFIG_COMMANDS = $CONFIG_COMMANDS
20169 $ $0 $@
20170
20171on `(hostname || uname -n) 2>/dev/null | sed 1q`
20172"
20173
20174_ACEOF
20175
20176case $ac_config_files in *"
20177"*) set x $ac_config_files; shift; ac_config_files=$*;;
20178esac
20179
20180case $ac_config_headers in *"
20181"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20182esac
20183
20184
20185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186# Files that config.status was made for.
20187config_files="$ac_config_files"
20188config_headers="$ac_config_headers"
20189
20190_ACEOF
20191
20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193ac_cs_usage="\
20194\`$as_me' instantiates files and other configuration actions
20195from templates according to the current configuration. Unless the files
20196and actions are specified as TAGs, all are instantiated by default.
20197
20198Usage: $0 [OPTION]... [TAG]...
20199
20200 -h, --help print this help, then exit
20201 -V, --version print version number and configuration settings, then exit
20202 --config print configuration, then exit
20203 -q, --quiet, --silent
20204 do not print progress messages
20205 -d, --debug don't remove temporary files
20206 --recheck update $as_me by reconfiguring in the same conditions
20207 --file=FILE[:TEMPLATE]
20208 instantiate the configuration file FILE
20209 --header=FILE[:TEMPLATE]
20210 instantiate the configuration header FILE
20211
20212Configuration files:
20213$config_files
20214
20215Configuration headers:
20216$config_headers
20217
20218Report bugs to <openssh-unix-dev@mindrot.org>."
20219
20220_ACEOF
20221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20222ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20223ac_cs_version="\\
20224OpenSSH config.status Portable
20225configured by $0, generated by GNU Autoconf 2.69,
20226 with options \\"\$ac_cs_config\\"
20227
20228Copyright (C) 2012 Free Software Foundation, Inc.
20229This config.status script is free software; the Free Software Foundation
20230gives unlimited permission to copy, distribute and modify it."
20231
20232ac_pwd='$ac_pwd'
20233srcdir='$srcdir'
20234INSTALL='$INSTALL'
20235MKDIR_P='$MKDIR_P'
20236AWK='$AWK'
20237test -n "\$AWK" || AWK=awk
20238_ACEOF
20239
20240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20241# The default lists apply if the user does not specify any file.
20242ac_need_defaults=:
20243while test $# != 0
20244do
20245 case $1 in
20246 --*=?*)
20247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20249 ac_shift=:
20250 ;;
20251 --*=)
20252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20253 ac_optarg=
20254 ac_shift=:
20255 ;;
20256 *)
20257 ac_option=$1
20258 ac_optarg=$2
20259 ac_shift=shift
20260 ;;
20261 esac
20262
20263 case $ac_option in
20264 # Handling of the options.
20265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20266 ac_cs_recheck=: ;;
20267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20268 $as_echo "$ac_cs_version"; exit ;;
20269 --config | --confi | --conf | --con | --co | --c )
20270 $as_echo "$ac_cs_config"; exit ;;
20271 --debug | --debu | --deb | --de | --d | -d )
20272 debug=: ;;
20273 --file | --fil | --fi | --f )
20274 $ac_shift
20275 case $ac_optarg in
20276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20277 '') as_fn_error $? "missing file argument" ;;
20278 esac
20279 as_fn_append CONFIG_FILES " '$ac_optarg'"
20280 ac_need_defaults=false;;
20281 --header | --heade | --head | --hea )
20282 $ac_shift
20283 case $ac_optarg in
20284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20285 esac
20286 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20287 ac_need_defaults=false;;
20288 --he | --h)
20289 # Conflict between --help and --header
20290 as_fn_error $? "ambiguous option: \`$1'
20291Try \`$0 --help' for more information.";;
20292 --help | --hel | -h )
20293 $as_echo "$ac_cs_usage"; exit ;;
20294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20296 ac_cs_silent=: ;;
20297
20298 # This is an error.
20299 -*) as_fn_error $? "unrecognized option: \`$1'
20300Try \`$0 --help' for more information." ;;
20301
20302 *) as_fn_append ac_config_targets " $1"
20303 ac_need_defaults=false ;;
20304
20305 esac
20306 shift
20307done
20308
20309ac_configure_extra_args=
20310
20311if $ac_cs_silent; then
20312 exec 6>/dev/null
20313 ac_configure_extra_args="$ac_configure_extra_args --silent"
20314fi
20315
20316_ACEOF
20317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20318if \$ac_cs_recheck; then
20319 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20320 shift
20321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20322 CONFIG_SHELL='$SHELL'
20323 export CONFIG_SHELL
20324 exec "\$@"
20325fi
20326
20327_ACEOF
20328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20329exec 5>>config.log
20330{
20331 echo
20332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20333## Running $as_me. ##
20334_ASBOX
20335 $as_echo "$ac_log"
20336} >&5
20337
20338_ACEOF
20339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20340_ACEOF
20341
20342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20343
20344# Handling of arguments.
20345for ac_config_target in $ac_config_targets
20346do
20347 case $ac_config_target in
20348 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20350 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
20351 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
20352 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
20353 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
20354 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
20355 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
20356
20357 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20358 esac
20359done
20360
20361
20362# If the user did not use the arguments to specify the items to instantiate,
20363# then the envvar interface is used. Set only those that are not.
20364# We use the long form for the default assignment because of an extremely
20365# bizarre bug on SunOS 4.1.3.
20366if $ac_need_defaults; then
20367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20369fi
20370
20371# Have a temporary directory for convenience. Make it in the build tree
20372# simply because there is no reason against having it here, and in addition,
20373# creating and moving files from /tmp can sometimes cause problems.
20374# Hook for its removal unless debugging.
20375# Note that there is a small window in which the directory will not be cleaned:
20376# after its creation but before its name has been assigned to `$tmp'.
20377$debug ||
20378{
20379 tmp= ac_tmp=
20380 trap 'exit_status=$?
20381 : "${ac_tmp:=$tmp}"
20382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20383' 0
20384 trap 'as_fn_exit 1' 1 2 13 15
20385}
20386# Create a (secure) tmp directory for tmp files.
20387
20388{
20389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20390 test -d "$tmp"
20391} ||
20392{
20393 tmp=./conf$$-$RANDOM
20394 (umask 077 && mkdir "$tmp")
20395} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20396ac_tmp=$tmp
20397
20398# Set up the scripts for CONFIG_FILES section.
20399# No need to generate them if there are no CONFIG_FILES.
20400# This happens for instance with `./config.status config.h'.
20401if test -n "$CONFIG_FILES"; then
20402
20403
20404ac_cr=`echo X | tr X '\015'`
20405# On cygwin, bash can eat \r inside `` if the user requested igncr.
20406# But we know of no other shell where ac_cr would be empty at this
20407# point, so we can use a bashism as a fallback.
20408if test "x$ac_cr" = x; then
20409 eval ac_cr=\$\'\\r\'
20410fi
20411ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20412if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20413 ac_cs_awk_cr='\\r'
20414else
20415 ac_cs_awk_cr=$ac_cr
20416fi
20417
20418echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20419_ACEOF
20420
20421
20422{
20423 echo "cat >conf$$subs.awk <<_ACEOF" &&
20424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20425 echo "_ACEOF"
20426} >conf$$subs.sh ||
20427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20428ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20429ac_delim='%!_!# '
20430for ac_last_try in false false false false false :; do
20431 . ./conf$$subs.sh ||
20432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20433
20434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20435 if test $ac_delim_n = $ac_delim_num; then
20436 break
20437 elif $ac_last_try; then
20438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20439 else
20440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20441 fi
20442done
20443rm -f conf$$subs.sh
20444
20445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20446cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20447_ACEOF
20448sed -n '
20449h
20450s/^/S["/; s/!.*/"]=/
20451p
20452g
20453s/^[^!]*!//
20454:repl
20455t repl
20456s/'"$ac_delim"'$//
20457t delim
20458:nl
20459h
20460s/\(.\{148\}\)..*/\1/
20461t more1
20462s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20463p
20464n
20465b repl
20466:more1
20467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20468p
20469g
20470s/.\{148\}//
20471t nl
20472:delim
20473h
20474s/\(.\{148\}\)..*/\1/
20475t more2
20476s/["\\]/\\&/g; s/^/"/; s/$/"/
20477p
20478b
20479:more2
20480s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20481p
20482g
20483s/.\{148\}//
20484t delim
20485' <conf$$subs.awk | sed '
20486/^[^""]/{
20487 N
20488 s/\n//
20489}
20490' >>$CONFIG_STATUS || ac_write_fail=1
20491rm -f conf$$subs.awk
20492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20493_ACAWK
20494cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20495 for (key in S) S_is_set[key] = 1
20496 FS = ""
20497
20498}
20499{
20500 line = $ 0
20501 nfields = split(line, field, "@")
20502 substed = 0
20503 len = length(field[1])
20504 for (i = 2; i < nfields; i++) {
20505 key = field[i]
20506 keylen = length(key)
20507 if (S_is_set[key]) {
20508 value = S[key]
20509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20510 len += length(value) + length(field[++i])
20511 substed = 1
20512 } else
20513 len += 1 + keylen
20514 }
20515
20516 print line
20517}
20518
20519_ACAWK
20520_ACEOF
20521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20522if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20523 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20524else
20525 cat
20526fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20527 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20528_ACEOF
20529
20530# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20531# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20532# trailing colons and then remove the whole line if VPATH becomes empty
20533# (actually we leave an empty line to preserve line numbers).
20534if test "x$srcdir" = x.; then
20535 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20536h
20537s///
20538s/^/:/
20539s/[ ]*$/:/
20540s/:\$(srcdir):/:/g
20541s/:\${srcdir}:/:/g
20542s/:@srcdir@:/:/g
20543s/^:*//
20544s/:*$//
20545x
20546s/\(=[ ]*\).*/\1/
20547G
20548s/\n//
20549s/^[^=]*=[ ]*$//
20550}'
20551fi
20552
20553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20554fi # test -n "$CONFIG_FILES"
20555
20556# Set up the scripts for CONFIG_HEADERS section.
20557# No need to generate them if there are no CONFIG_HEADERS.
20558# This happens for instance with `./config.status Makefile'.
20559if test -n "$CONFIG_HEADERS"; then
20560cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20561BEGIN {
20562_ACEOF
20563
20564# Transform confdefs.h into an awk script `defines.awk', embedded as
20565# here-document in config.status, that substitutes the proper values into
20566# config.h.in to produce config.h.
20567
20568# Create a delimiter string that does not exist in confdefs.h, to ease
20569# handling of long lines.
20570ac_delim='%!_!# '
20571for ac_last_try in false false :; do
20572 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20573 if test -z "$ac_tt"; then
20574 break
20575 elif $ac_last_try; then
20576 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20577 else
20578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20579 fi
20580done
20581
20582# For the awk script, D is an array of macro values keyed by name,
20583# likewise P contains macro parameters if any. Preserve backslash
20584# newline sequences.
20585
20586ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20587sed -n '
20588s/.\{148\}/&'"$ac_delim"'/g
20589t rset
20590:rset
20591s/^[ ]*#[ ]*define[ ][ ]*/ /
20592t def
20593d
20594:def
20595s/\\$//
20596t bsnl
20597s/["\\]/\\&/g
20598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20599D["\1"]=" \3"/p
20600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20601d
20602:bsnl
20603s/["\\]/\\&/g
20604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20605D["\1"]=" \3\\\\\\n"\\/p
20606t cont
20607s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20608t cont
20609d
20610:cont
20611n
20612s/.\{148\}/&'"$ac_delim"'/g
20613t clear
20614:clear
20615s/\\$//
20616t bsnlc
20617s/["\\]/\\&/g; s/^/"/; s/$/"/p
20618d
20619:bsnlc
20620s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20621b cont
20622' <confdefs.h | sed '
20623s/'"$ac_delim"'/"\\\
20624"/g' >>$CONFIG_STATUS || ac_write_fail=1
20625
20626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20627 for (key in D) D_is_set[key] = 1
20628 FS = ""
20629}
20630/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20631 line = \$ 0
20632 split(line, arg, " ")
20633 if (arg[1] == "#") {
20634 defundef = arg[2]
20635 mac1 = arg[3]
20636 } else {
20637 defundef = substr(arg[1], 2)
20638 mac1 = arg[2]
20639 }
20640 split(mac1, mac2, "(") #)
20641 macro = mac2[1]
20642 prefix = substr(line, 1, index(line, defundef) - 1)
20643 if (D_is_set[macro]) {
20644 # Preserve the white space surrounding the "#".
20645 print prefix "define", macro P[macro] D[macro]
20646 next
20647 } else {
20648 # Replace #undef with comments. This is necessary, for example,
20649 # in the case of _POSIX_SOURCE, which is predefined and required
20650 # on some systems where configure will not decide to define it.
20651 if (defundef == "undef") {
20652 print "/*", prefix defundef, macro, "*/"
20653 next
20654 }
20655 }
20656}
20657{ print }
20658_ACAWK
20659_ACEOF
20660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20662fi # test -n "$CONFIG_HEADERS"
20663
20664
20665eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
20666shift
20667for ac_tag
20668do
20669 case $ac_tag in
20670 :[FHLC]) ac_mode=$ac_tag; continue;;
20671 esac
20672 case $ac_mode$ac_tag in
20673 :[FHL]*:*);;
20674 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20675 :[FH]-) ac_tag=-:-;;
20676 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20677 esac
20678 ac_save_IFS=$IFS
20679 IFS=:
20680 set x $ac_tag
20681 IFS=$ac_save_IFS
20682 shift
20683 ac_file=$1
20684 shift
20685
20686 case $ac_mode in
20687 :L) ac_source=$1;;
20688 :[FH])
20689 ac_file_inputs=
20690 for ac_f
20691 do
20692 case $ac_f in
20693 -) ac_f="$ac_tmp/stdin";;
20694 *) # Look for the file first in the build tree, then in the source tree
20695 # (if the path is not absolute). The absolute path cannot be DOS-style,
20696 # because $ac_f cannot contain `:'.
20697 test -f "$ac_f" ||
20698 case $ac_f in
20699 [\\/$]*) false;;
20700 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20701 esac ||
20702 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20703 esac
20704 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20705 as_fn_append ac_file_inputs " '$ac_f'"
20706 done
20707
20708 # Let's still pretend it is `configure' which instantiates (i.e., don't
20709 # use $as_me), people would be surprised to read:
20710 # /* config.h. Generated by config.status. */
20711 configure_input='Generated from '`
20712 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20713 `' by configure.'
20714 if test x"$ac_file" != x-; then
20715 configure_input="$ac_file. $configure_input"
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20717$as_echo "$as_me: creating $ac_file" >&6;}
20718 fi
20719 # Neutralize special characters interpreted by sed in replacement strings.
20720 case $configure_input in #(
20721 *\&* | *\|* | *\\* )
20722 ac_sed_conf_input=`$as_echo "$configure_input" |
20723 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20724 *) ac_sed_conf_input=$configure_input;;
20725 esac
20726
20727 case $ac_tag in
20728 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20730 esac
20731 ;;
20732 esac
20733
20734 ac_dir=`$as_dirname -- "$ac_file" ||
20735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20736 X"$ac_file" : 'X\(//\)[^/]' \| \
20737 X"$ac_file" : 'X\(//\)$' \| \
20738 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20739$as_echo X"$ac_file" |
20740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20741 s//\1/
20742 q
20743 }
20744 /^X\(\/\/\)[^/].*/{
20745 s//\1/
20746 q
20747 }
20748 /^X\(\/\/\)$/{
20749 s//\1/
20750 q
20751 }
20752 /^X\(\/\).*/{
20753 s//\1/
20754 q
20755 }
20756 s/.*/./; q'`
20757 as_dir="$ac_dir"; as_fn_mkdir_p
20758 ac_builddir=.
20759
20760case "$ac_dir" in
20761.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20762*)
20763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20764 # A ".." for each directory in $ac_dir_suffix.
20765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20766 case $ac_top_builddir_sub in
20767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20769 esac ;;
20770esac
20771ac_abs_top_builddir=$ac_pwd
20772ac_abs_builddir=$ac_pwd$ac_dir_suffix
20773# for backward compatibility:
20774ac_top_builddir=$ac_top_build_prefix
20775
20776case $srcdir in
20777 .) # We are building in place.
20778 ac_srcdir=.
20779 ac_top_srcdir=$ac_top_builddir_sub
20780 ac_abs_top_srcdir=$ac_pwd ;;
20781 [\\/]* | ?:[\\/]* ) # Absolute name.
20782 ac_srcdir=$srcdir$ac_dir_suffix;
20783 ac_top_srcdir=$srcdir
20784 ac_abs_top_srcdir=$srcdir ;;
20785 *) # Relative name.
20786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20787 ac_top_srcdir=$ac_top_build_prefix$srcdir
20788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20789esac
20790ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20791
20792
20793 case $ac_mode in
20794 :F)
20795 #
20796 # CONFIG_FILE
20797 #
20798
20799 case $INSTALL in
20800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20801 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20802 esac
20803 ac_MKDIR_P=$MKDIR_P
20804 case $MKDIR_P in
20805 [\\/$]* | ?:[\\/]* ) ;;
20806 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20807 esac
20808_ACEOF
20809
20810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20811# If the template does not know about datarootdir, expand it.
20812# FIXME: This hack should be removed a few years after 2.60.
20813ac_datarootdir_hack=; ac_datarootdir_seen=
20814ac_sed_dataroot='
20815/datarootdir/ {
20816 p
20817 q
20818}
20819/@datadir@/p
20820/@docdir@/p
20821/@infodir@/p
20822/@localedir@/p
20823/@mandir@/p'
20824case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20825*datarootdir*) ac_datarootdir_seen=yes;;
20826*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20828$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20829_ACEOF
20830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831 ac_datarootdir_hack='
20832 s&@datadir@&$datadir&g
20833 s&@docdir@&$docdir&g
20834 s&@infodir@&$infodir&g
20835 s&@localedir@&$localedir&g
20836 s&@mandir@&$mandir&g
20837 s&\\\${datarootdir}&$datarootdir&g' ;;
20838esac
20839_ACEOF
20840
20841# Neutralize VPATH when `$srcdir' = `.'.
20842# Shell code in configure.ac might set extrasub.
20843# FIXME: do we really want to maintain this feature?
20844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20845ac_sed_extra="$ac_vpsub
20846$extrasub
20847_ACEOF
20848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20849:t
20850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20851s|@configure_input@|$ac_sed_conf_input|;t t
20852s&@top_builddir@&$ac_top_builddir_sub&;t t
20853s&@top_build_prefix@&$ac_top_build_prefix&;t t
20854s&@srcdir@&$ac_srcdir&;t t
20855s&@abs_srcdir@&$ac_abs_srcdir&;t t
20856s&@top_srcdir@&$ac_top_srcdir&;t t
20857s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20858s&@builddir@&$ac_builddir&;t t
20859s&@abs_builddir@&$ac_abs_builddir&;t t
20860s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20861s&@INSTALL@&$ac_INSTALL&;t t
20862s&@MKDIR_P@&$ac_MKDIR_P&;t t
20863$ac_datarootdir_hack
20864"
20865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20866 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20867
20868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20871 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20873which seems to be undefined. Please make sure it is defined" >&5
20874$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20875which seems to be undefined. Please make sure it is defined" >&2;}
20876
20877 rm -f "$ac_tmp/stdin"
20878 case $ac_file in
20879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20881 esac \
20882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20883 ;;
20884 :H)
20885 #
20886 # CONFIG_HEADER
20887 #
20888 if test x"$ac_file" != x-; then
20889 {
20890 $as_echo "/* $configure_input */" \
20891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20892 } >"$ac_tmp/config.h" \
20893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20896$as_echo "$as_me: $ac_file is unchanged" >&6;}
20897 else
20898 rm -f "$ac_file"
20899 mv "$ac_tmp/config.h" "$ac_file" \
20900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20901 fi
20902 else
20903 $as_echo "/* $configure_input */" \
20904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20905 || as_fn_error $? "could not create -" "$LINENO" 5
20906 fi
20907 ;;
20908
20909
20910 esac
20911
20912done # for ac_tag
20913
20914
20915as_fn_exit 0
20916_ACEOF
20917ac_clean_files=$ac_clean_files_save
20918
20919test $ac_write_fail = 0 ||
20920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20921
20922
20923# configure is writing to config.log, and then calls config.status.
20924# config.status does its own redirection, appending to config.log.
20925# Unfortunately, on DOS this fails, as config.log is still kept open
20926# by configure, so config.status won't be able to write to it; its
20927# output is simply discarded. So we exec the FD to /dev/null,
20928# effectively closing config.log, so it can be properly (re)opened and
20929# appended to by config.status. When coming back to configure, we
20930# need to make the FD available again.
20931if test "$no_create" != yes; then
20932 ac_cs_success=:
20933 ac_config_status_args=
20934 test "$silent" = yes &&
20935 ac_config_status_args="$ac_config_status_args --quiet"
20936 exec 5>/dev/null
20937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20938 exec 5>>config.log
20939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20940 # would make configure fail if this is the last instruction.
20941 $ac_cs_success || as_fn_exit 1
20942fi
20943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20946fi
20947
20948
20949# Print summary of options
20950
20951# Someone please show me a better way :)
20952A=`eval echo ${prefix}` ; A=`eval echo ${A}`
20953B=`eval echo ${bindir}` ; B=`eval echo ${B}`
20954C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
20955D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
20956E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
20957F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
20958G=`eval echo ${piddir}` ; G=`eval echo ${G}`
20959H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
20960I=`eval echo ${user_path}` ; I=`eval echo ${I}`
20961J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
20962
20963echo ""
20964echo "OpenSSH has been configured with the following options:"
20965echo " User binaries: $B"
20966echo " System binaries: $C"
20967echo " Configuration files: $D"
20968echo " Askpass program: $E"
20969echo " Manual pages: $F"
20970echo " PID file: $G"
20971echo " Privilege separation chroot path: $H"
20972if test "x$external_path_file" = "x/etc/login.conf" ; then
20973echo " At runtime, sshd will use the path defined in $external_path_file"
20974echo " Make sure the path to scp is present, otherwise scp will not work"
20975else
20976echo " sshd default user PATH: $I"
20977 if test ! -z "$external_path_file"; then
20978echo " (If PATH is set in $external_path_file it will be used instead. If"
20979echo " used, ensure the path to scp is present, otherwise scp will not work.)"
20980 fi
20981fi
20982if test ! -z "$superuser_path" ; then
20983echo " sshd superuser user PATH: $J"
20984fi
20985echo " Manpage format: $MANTYPE"
20986echo " PAM support: $PAM_MSG"
20987echo " OSF SIA support: $SIA_MSG"
20988echo " KerberosV support: $KRB5_MSG"
20989echo " SELinux support: $SELINUX_MSG"
20990echo " MD5 password support: $MD5_MSG"
20991echo " libedit support: $LIBEDIT_MSG"
20992echo " libldns support: $LDNS_MSG"
20993echo " Solaris process contract support: $SPC_MSG"
20994echo " Solaris project support: $SP_MSG"
20995echo " Solaris privilege support: $SPP_MSG"
20996echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
20997echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
20998echo " BSD Auth support: $BSD_AUTH_MSG"
20999echo " Random number source: $RAND_MSG"
21000echo " Privsep sandbox style: $SANDBOX_STYLE"
21001
21002echo ""
21003
21004echo " Host: ${host}"
21005echo " Compiler: ${CC}"
21006echo " Compiler flags: ${CFLAGS}"
21007echo "Preprocessor flags: ${CPPFLAGS}"
21008echo " Linker flags: ${LDFLAGS}"
21009echo " Libraries: ${LIBS}"
21010if test ! -z "${SSHDLIBS}"; then
21011echo " +for sshd: ${SSHDLIBS}"
21012fi
21013if test ! -z "${SSHLIBS}"; then
21014echo " +for ssh: ${SSHLIBS}"
21015fi
21016
21017echo ""
21018
21019if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
21020 echo "SVR4 style packages are supported with \"make package\""
21021 echo ""
21022fi
21023
21024if test "x$PAM_MSG" = "xyes" ; then
21025 echo "PAM is enabled. You may need to install a PAM control file "
21026 echo "for sshd, otherwise password authentication may fail. "
21027 echo "Example PAM control files can be found in the contrib/ "
21028 echo "subdirectory"
21029 echo ""
21030fi
21031
21032if test ! -z "$NO_PEERCHECK" ; then
21033 echo "WARNING: the operating system that you are using does not"
21034 echo "appear to support getpeereid(), getpeerucred() or the"
21035 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
21036 echo "enforce security checks to prevent unauthorised connections to"
21037 echo "ssh-agent. Their absence increases the risk that a malicious"
21038 echo "user can connect to your agent."
21039 echo ""
21040fi
21041
21042if test "$AUDIT_MODULE" = "bsm" ; then
21043 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
21044 echo "See the Solaris section in README.platform for details."
21045fi