summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20667
1 files changed, 20667 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..b2c2c3b91
--- /dev/null
+++ b/configure
@@ -0,0 +1,20667 @@
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
627UNSUPPORTED_ALGORITHMS
628TEST_MALLOC_OPTIONS
629TEST_SSH_UTF8
630TEST_SSH_IPV6
631piddir
632user_path
633mansubdir
634MANTYPE
635XAUTH_PATH
636STRIP_OPT
637xauth_path
638PRIVSEP_PATH
639K5LIBS
640GSSLIBS
641KRB5CONF
642SSHDLIBS
643SSHLIBS
644SSH_PRIVSEP_USER
645COMMENT_OUT_ECC
646TEST_SSH_ECC
647LIBEDIT
648PKGCONFIG
649LDNSCONFIG
650LIBOBJS
651LD
652PATH_PASSWD_PROG
653STARTUP_SCRIPT_SHELL
654MAKE_PACKAGE_SUPPORTED
655PATH_USERADD_PROG
656PATH_GROUPADD_PROG
657MANFMT
658TEST_SHELL
659MANDOC
660NROFF
661GROFF
662SH
663TEST_MINUS_S_SH
664ENT
665SED
666PERL
667KILL
668CAT
669ac_ct_AR
670AR
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674RANLIB
675AWK
676EGREP
677GREP
678CPP
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_largefile
736with_openssl
737with_stackprotect
738with_hardening
739with_rpath
740with_cflags
741with_cflags_after
742with_cppflags
743with_ldflags
744with_ldflags_after
745with_libs
746with_Werror
747with_solaris_contracts
748with_solaris_projects
749with_solaris_privs
750with_osfsia
751with_zlib
752with_zlib_version_check
753with_skey
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-skey[=PATH] Enable S/Key support (optionally in PATH)
1450 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1451 --with-libedit[=PATH] Enable libedit support for sftp
1452 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1453 --with-pie Build Position Independent Executables if possible
1454 --with-ssl-dir=PATH Specify path to OpenSSL installation
1455 --without-openssl-header-check Disable OpenSSL version consistency check
1456 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1457 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1458 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1459 --with-pam Enable PAM support
1460 --with-pam-service=name Specify PAM service name
1461 --with-privsep-user=user Specify non-privileged user for privilege separation
1462 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge)
1463 --with-selinux Enable SELinux support
1464 --with-kerberos5=PATH Enable Kerberos 5 support
1465 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1466 --with-xauth=PATH Specify path to xauth program
1467 --with-maildir=/path/to/mail Specify your system mail directory
1468 --with-mantype=man|cat|doc Set man page type
1469 --with-md5-passwords Enable use of MD5 passwords
1470 --without-shadow Disable shadow password support
1471 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1472 --with-default-path= Specify default $PATH environment for server
1473 --with-superuser-path= Specify different path for super-user
1474 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1475 --with-bsd-auth Enable BSD auth support
1476 --with-pid-dir=PATH Specify location of ssh.pid file
1477 --with-lastlog=FILE|DIR specify lastlog location common locations
1478
1479Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <openssh-unix-dev@mindrot.org>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550fi
1551
1552test -n "$ac_init_help" && exit $ac_status
1553if $ac_init_version; then
1554 cat <<\_ACEOF
1555OpenSSH configure Portable
1556generated by GNU Autoconf 2.69
1557
1558Copyright (C) 2012 Free Software Foundation, Inc.
1559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
1561_ACEOF
1562 exit
1563fi
1564
1565## ------------------------ ##
1566## Autoconf initialization. ##
1567## ------------------------ ##
1568
1569# ac_fn_c_try_compile LINENO
1570# --------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_compile ()
1573{
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_try_run LINENO
1608# ----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610# that executables *can* be run.
1611ac_fn_c_try_run ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=$ac_status
1642fi
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_run
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists and can be compiled using the include files in
1689# INCLUDES, setting the cache variable VAR accordingly.
1690ac_fn_c_check_header_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
1695if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697else
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h. */
1700$4
1701#include <$2>
1702_ACEOF
1703if ac_fn_c_try_compile "$LINENO"; then :
1704 eval "$3=yes"
1705else
1706 eval "$3=no"
1707fi
1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709fi
1710eval ac_res=\$$3
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715} # ac_fn_c_check_header_compile
1716
1717# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1718# ---------------------------------------------
1719# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1720# accordingly.
1721ac_fn_c_check_decl ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 as_decl_name=`echo $2|sed 's/ *(.*//'`
1725 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1727$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1728if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h. */
1733$4
1734int
1735main ()
1736{
1737#ifndef $as_decl_name
1738#ifdef __cplusplus
1739 (void) $as_decl_use;
1740#else
1741 (void) $as_decl_name;
1742#endif
1743#endif
1744
1745 ;
1746 return 0;
1747}
1748_ACEOF
1749if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751else
1752 eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758$as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761} # ac_fn_c_check_decl
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_link
1808
1809# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810# -------------------------------------------------------
1811# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812# the include files in INCLUDES and setting the cache variable VAR
1813# accordingly.
1814ac_fn_c_check_header_mongrel ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if eval \${$3+:} false; then :
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826else
1827 # Is the header compilable?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829$as_echo_n "checking $2 usability... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832$4
1833#include <$2>
1834_ACEOF
1835if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_header_compiler=yes
1837else
1838 ac_header_compiler=no
1839fi
1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842$as_echo "$ac_header_compiler" >&6; }
1843
1844# Is the header present?
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846$as_echo_n "checking $2 presence... " >&6; }
1847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_cpp "$LINENO"; then :
1852 ac_header_preproc=yes
1853else
1854 ac_header_preproc=no
1855fi
1856rm -f conftest.err conftest.i conftest.$ac_ext
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858$as_echo "$ac_header_preproc" >&6; }
1859
1860# So? What about this header?
1861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862 yes:no: )
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ;;
1868 no:yes:* )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1872$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1876$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879( $as_echo "## ------------------------------------------- ##
1880## Report this to openssh-unix-dev@mindrot.org ##
1881## ------------------------------------------- ##"
1882 ) | sed "s/^/$as_me: WARNING: /" >&2
1883 ;;
1884esac
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889else
1890 eval "$3=\$ac_header_compiler"
1891fi
1892eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895fi
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898} # ac_fn_c_check_header_mongrel
1899
1900# ac_fn_c_check_func LINENO FUNC VAR
1901# ----------------------------------
1902# Tests whether FUNC exists, setting the cache variable VAR accordingly
1903ac_fn_c_check_func ()
1904{
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h. */
1913/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915#define $2 innocuous_$2
1916
1917/* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922#ifdef __STDC__
1923# include <limits.h>
1924#else
1925# include <assert.h>
1926#endif
1927
1928#undef $2
1929
1930/* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933#ifdef __cplusplus
1934extern "C"
1935#endif
1936char $2 ();
1937/* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940#if defined __stub_$2 || defined __stub___$2
1941choke me
1942#endif
1943
1944int
1945main ()
1946{
1947return $2 ();
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954else
1955 eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_func
1966
1967# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968# -------------------------------------------
1969# Tests whether TYPE exists after having included INCLUDES, setting cache
1970# variable VAR accordingly.
1971ac_fn_c_check_type ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h. */
1982$4
1983int
1984main ()
1985{
1986if (sizeof ($2))
1987 return 0;
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996int
1997main ()
1998{
1999if (sizeof (($2)))
2000 return 0;
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006
2007else
2008 eval "$3=yes"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019} # ac_fn_c_check_type
2020
2021# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022# --------------------------------------------
2023# Tries to find the compile-time value of EXPR in a program that includes
2024# INCLUDES, setting VAR accordingly. Returns whether the value could be
2025# computed
2026ac_fn_c_compute_int ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034int
2035main ()
2036{
2037static int test_array [1 - 2 * !(($2) >= 0)];
2038test_array [0] = 0;
2039return test_array [0];
2040
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_lo=0 ac_mid=0
2047 while :; do
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058 ;
2059 return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=$ac_mid; break
2064else
2065 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2066 if test $ac_lo -le $ac_mid; then
2067 ac_lo= ac_hi=
2068 break
2069 fi
2070 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074else
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
2078int
2079main ()
2080{
2081static int test_array [1 - 2 * !(($2) < 0)];
2082test_array [0] = 0;
2083return test_array [0];
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=-1 ac_mid=-1
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h. */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2099test_array [0] = 0;
2100return test_array [0];
2101
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_lo=$ac_mid; break
2108else
2109 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2110 if test $ac_mid -le $ac_hi; then
2111 ac_lo= ac_hi=
2112 break
2113 fi
2114 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2115fi
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118else
2119 ac_lo= ac_hi=
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124# Binary search between lo and hi bounds.
2125while test "x$ac_lo" != "x$ac_hi"; do
2126 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134test_array [0] = 0;
2135return test_array [0];
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_hi=$ac_mid
2143else
2144 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147done
2148case $ac_lo in #((
2149?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2150'') ac_retval=1 ;;
2151esac
2152 else
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156static long int longval () { return $2; }
2157static unsigned long int ulongval () { return $2; }
2158#include <stdio.h>
2159#include <stdlib.h>
2160int
2161main ()
2162{
2163
2164 FILE *f = fopen ("conftest.val", "w");
2165 if (! f)
2166 return 1;
2167 if (($2) < 0)
2168 {
2169 long int i = longval ();
2170 if (i != ($2))
2171 return 1;
2172 fprintf (f, "%ld", i);
2173 }
2174 else
2175 {
2176 unsigned long int i = ulongval ();
2177 if (i != ($2))
2178 return 1;
2179 fprintf (f, "%lu", i);
2180 }
2181 /* Do not output a trailing newline, as this causes \r\n confusion
2182 on some platforms. */
2183 return ferror (f) || fclose (f) != 0;
2184
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_run "$LINENO"; then :
2190 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2191else
2192 ac_retval=1
2193fi
2194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2195 conftest.$ac_objext conftest.beam conftest.$ac_ext
2196rm -f conftest.val
2197
2198 fi
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 as_fn_set_status $ac_retval
2201
2202} # ac_fn_c_compute_int
2203
2204# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2205# ----------------------------------------------------
2206# Tries to find if the field MEMBER exists in type AGGR, after including
2207# INCLUDES, setting cache variable VAR accordingly.
2208ac_fn_c_check_member ()
2209{
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2212$as_echo_n "checking for $2.$3... " >&6; }
2213if eval \${$4+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$5
2219int
2220main ()
2221{
2222static $2 ac_aggr;
2223if (ac_aggr.$3)
2224return 0;
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$4=yes"
2231else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234$5
2235int
2236main ()
2237{
2238static $2 ac_aggr;
2239if (sizeof ac_aggr.$3)
2240return 0;
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246 eval "$4=yes"
2247else
2248 eval "$4=no"
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253fi
2254eval ac_res=\$$4
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256$as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259} # ac_fn_c_check_member
2260cat >config.log <<_ACEOF
2261This file contains any messages produced by compilers while
2262running configure, to aid debugging if configure makes a mistake.
2263
2264It was created by OpenSSH $as_me Portable, which was
2265generated by GNU Autoconf 2.69. Invocation command line was
2266
2267 $ $0 $@
2268
2269_ACEOF
2270exec 5>>config.log
2271{
2272cat <<_ASUNAME
2273## --------- ##
2274## Platform. ##
2275## --------- ##
2276
2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282
2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2285
2286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2293
2294_ASUNAME
2295
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 $as_echo "PATH: $as_dir"
2302 done
2303IFS=$as_save_IFS
2304
2305} >&5
2306
2307cat >&5 <<_ACEOF
2308
2309
2310## ----------- ##
2311## Core tests. ##
2312## ----------- ##
2313
2314_ACEOF
2315
2316
2317# Keep a trace of the command line.
2318# Strip out --no-create and --no-recursion so they do not pile up.
2319# Strip out --silent because we don't want to record it for future runs.
2320# Also quote any args containing shell meta-characters.
2321# Make two passes to allow for proper duplicate-argument suppression.
2322ac_configure_args=
2323ac_configure_args0=
2324ac_configure_args1=
2325ac_must_keep_next=false
2326for ac_pass in 1 2
2327do
2328 for ac_arg
2329 do
2330 case $ac_arg in
2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333 | -silent | --silent | --silen | --sile | --sil)
2334 continue ;;
2335 *\'*)
2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 esac
2338 case $ac_pass in
2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2340 2)
2341 as_fn_append ac_configure_args1 " '$ac_arg'"
2342 if test $ac_must_keep_next = true; then
2343 ac_must_keep_next=false # Got value, back to normal.
2344 else
2345 case $ac_arg in
2346 *=* | --config-cache | -C | -disable-* | --disable-* \
2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349 | -with-* | --with-* | -without-* | --without-* | --x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352 esac
2353 ;;
2354 -* ) ac_must_keep_next=true ;;
2355 esac
2356 fi
2357 as_fn_append ac_configure_args " '$ac_arg'"
2358 ;;
2359 esac
2360 done
2361done
2362{ ac_configure_args0=; unset ac_configure_args0;}
2363{ ac_configure_args1=; unset ac_configure_args1;}
2364
2365# When interrupted or exit'd, cleanup temporary files, and complete
2366# config.log. We remove comments because anyway the quotes in there
2367# would cause problems or look ugly.
2368# WARNING: Use '\'' to represent an apostrophe within the trap.
2369# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2372 {
2373 echo
2374
2375 $as_echo "## ---------------- ##
2376## Cache variables. ##
2377## ---------------- ##"
2378 echo
2379 # The following way of writing the cache mishandles newlines in values,
2380(
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in #(
2384 *${as_nl}*)
2385 case $ac_var in #(
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388 esac
2389 case $ac_var in #(
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2393 esac ;;
2394 esac
2395 done
2396 (set) 2>&1 |
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2399 sed -n \
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402 ;; #(
2403 *)
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405 ;;
2406 esac |
2407 sort
2408)
2409 echo
2410
2411 $as_echo "## ----------------- ##
2412## Output variables. ##
2413## ----------------- ##"
2414 echo
2415 for ac_var in $ac_subst_vars
2416 do
2417 eval ac_val=\$$ac_var
2418 case $ac_val in
2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420 esac
2421 $as_echo "$ac_var='\''$ac_val'\''"
2422 done | sort
2423 echo
2424
2425 if test -n "$ac_subst_files"; then
2426 $as_echo "## ------------------- ##
2427## File substitutions. ##
2428## ------------------- ##"
2429 echo
2430 for ac_var in $ac_subst_files
2431 do
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
2437 done | sort
2438 echo
2439 fi
2440
2441 if test -s confdefs.h; then
2442 $as_echo "## ----------- ##
2443## confdefs.h. ##
2444## ----------- ##"
2445 echo
2446 cat confdefs.h
2447 echo
2448 fi
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2452 } >&5
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 exit $exit_status
2456' 0
2457for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459done
2460ac_signal=0
2461
2462# confdefs.h avoids OS command line length limits that DEFS can exceed.
2463rm -f -r conftest* confdefs.h
2464
2465$as_echo "/* confdefs.h */" > confdefs.h
2466
2467# Predefined preprocessor variables.
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_NAME "$PACKAGE_NAME"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_VERSION "$PACKAGE_VERSION"
2479_ACEOF
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_STRING "$PACKAGE_STRING"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_URL "$PACKAGE_URL"
2491_ACEOF
2492
2493
2494# Let the site file select an alternate cache file if it wants to.
2495# Prefer an explicitly selected file to automatically selected ones.
2496ac_site_file1=NONE
2497ac_site_file2=NONE
2498if test -n "$CONFIG_SITE"; then
2499 # We do not want a PATH search for config.site.
2500 case $CONFIG_SITE in #((
2501 -*) ac_site_file1=./$CONFIG_SITE;;
2502 */*) ac_site_file1=$CONFIG_SITE;;
2503 *) ac_site_file1=./$CONFIG_SITE;;
2504 esac
2505elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2508else
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2511fi
2512for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513do
2514 test "x$ac_site_file" = xNONE && continue
2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2519 . "$ac_site_file" \
2520 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522as_fn_error $? "failed to load site script $ac_site_file
2523See \`config.log' for more details" "$LINENO" 5; }
2524 fi
2525done
2526
2527if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532$as_echo "$as_me: loading cache $cache_file" >&6;}
2533 case $cache_file in
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
2536 esac
2537 fi
2538else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540$as_echo "$as_me: creating cache $cache_file" >&6;}
2541 >$cache_file
2542fi
2543
2544# Check that the precious variables saved in the cache have kept the same
2545# value.
2546ac_cache_corrupted=false
2547for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2562 *)
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2592 fi
2593done
2594if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2600fi
2601## -------------------- ##
2602## Main body of script. ##
2603## -------------------- ##
2604
2605ac_ext=c
2606ac_cpp='$CPP $CPPFLAGS'
2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
2613
2614ac_ext=c
2615ac_cpp='$CPP $CPPFLAGS'
2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621ac_config_headers="$ac_config_headers config.h"
2622
2623ac_ext=c
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630set dummy ${ac_tool_prefix}gcc; ac_word=$2
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632$as_echo_n "checking for $ac_word... " >&6; }
2633if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651 done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659$as_echo "$CC" >&6; }
2660else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662$as_echo "no" >&6; }
2663fi
2664
2665
2666fi
2667if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "gcc", so it can be a program name with args.
2670set dummy gcc; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_ac_ct_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC="gcc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691 done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699$as_echo "$ac_ct_CC" >&6; }
2700else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705 if test "x$ac_ct_CC" = x; then
2706 CC=""
2707 else
2708 case $cross_compiling:$ac_tool_warned in
2709yes:)
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712ac_tool_warned=yes ;;
2713esac
2714 CC=$ac_ct_CC
2715 fi
2716else
2717 CC="$ac_cv_prog_CC"
2718fi
2719
2720if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723set dummy ${ac_tool_prefix}cc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_CC="${ac_tool_prefix}cc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743done
2744 done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752$as_echo "$CC" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759 fi
2760fi
2761if test -z "$CC"; then
2762 # Extract the first word of "cc", so it can be a program name with args.
2763set dummy cc; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
2772 ac_prog_rejected=no
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781 ac_prog_rejected=yes
2782 continue
2783 fi
2784 ac_cv_prog_CC="cc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
2792if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy $ac_cv_prog_CC
2795 shift
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2800 shift
2801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2802 fi
2803fi
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809$as_echo "$CC" >&6; }
2810else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
2813fi
2814
2815
2816fi
2817if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in cl.exe
2820 do
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if ${ac_cv_prog_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843 done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858 test -n "$CC" && break
2859 done
2860fi
2861if test -z "$CC"; then
2862 ac_ct_CC=$CC
2863 for ac_prog in cl.exe
2864do
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866set dummy $ac_prog; ac_word=$2
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868$as_echo_n "checking for $ac_word... " >&6; }
2869if ${ac_cv_prog_ac_ct_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871else
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC="$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887 done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893if test -n "$ac_ct_CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2895$as_echo "$ac_ct_CC" >&6; }
2896else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901
2902 test -n "$ac_ct_CC" && break
2903done
2904
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909yes:)
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912ac_tool_warned=yes ;;
2913esac
2914 CC=$ac_ct_CC
2915 fi
2916fi
2917
2918fi
2919
2920
2921test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923as_fn_error $? "no acceptable C compiler found in \$PATH
2924See \`config.log' for more details" "$LINENO" 5; }
2925
2926# Provide some information about the compiler.
2927$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2928set X $ac_compile
2929ac_compiler=$2
2930for ac_option in --version -v -V -qversion; do
2931 { { ac_try="$ac_compiler $ac_option >&5"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937$as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2939 ac_status=$?
2940 if test -s conftest.err; then
2941 sed '10a\
2942... rest of stderr output deleted ...
2943 10q' conftest.err >conftest.er1
2944 cat conftest.er1 >&5
2945 fi
2946 rm -f conftest.er1 conftest.err
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }
2949done
2950
2951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952/* end confdefs.h. */
2953
2954int
2955main ()
2956{
2957
2958 ;
2959 return 0;
2960}
2961_ACEOF
2962ac_clean_files_save=$ac_clean_files
2963ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964# Try to create an executable without -o first, disregard a.out.
2965# It will help us diagnose broken compilers, and finding out an intuition
2966# of exeext.
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2968$as_echo_n "checking whether the C compiler works... " >&6; }
2969ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970
2971# The possible output files:
2972ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2973
2974ac_rmfiles=
2975for ac_file in $ac_files
2976do
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2980 esac
2981done
2982rm -f $ac_rmfiles
2983
2984if { { ac_try="$ac_link_default"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link_default") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997# in a Makefile. We should not override ac_cv_exeext if it was cached,
2998# so that the user can short-circuit this test for compilers unknown to
2999# Autoconf.
3000for ac_file in $ac_files ''
3001do
3002 test -f "$ac_file" || continue
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3005 ;;
3006 [ab].out )
3007 # We found the default executable, but exeext='' is most
3008 # certainly right.
3009 break;;
3010 *.* )
3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3012 then :; else
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 fi
3015 # We set ac_cv_exeext here because the later test for it is not
3016 # safe: cross compilers may not add the suffix if given an `-o'
3017 # argument, so we may need to know it at that point already.
3018 # Even if this section looks crufty: it has the advantage of
3019 # actually working.
3020 break;;
3021 * )
3022 break;;
3023 esac
3024done
3025test "$ac_cv_exeext" = no && ac_cv_exeext=
3026
3027else
3028 ac_file=''
3029fi
3030if test -z "$ac_file"; then :
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033$as_echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
3036{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error 77 "C compiler cannot create executables
3039See \`config.log' for more details" "$LINENO" 5; }
3040else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042$as_echo "yes" >&6; }
3043fi
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3045$as_echo_n "checking for C compiler default output file name... " >&6; }
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047$as_echo "$ac_file" >&6; }
3048ac_exeext=$ac_cv_exeext
3049
3050rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051ac_clean_files=$ac_clean_files_save
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053$as_echo_n "checking for suffix of executables... " >&6; }
3054if { { ac_try="$ac_link"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067# work properly (i.e., refer to `conftest.exe'), while it won't with
3068# `rm'.
3069for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 break;;
3075 * ) break;;
3076 esac
3077done
3078else
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082See \`config.log' for more details" "$LINENO" 5; }
3083fi
3084rm -f conftest conftest$ac_cv_exeext
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086$as_echo "$ac_cv_exeext" >&6; }
3087
3088rm -f conftest.$ac_ext
3089EXEEXT=$ac_cv_exeext
3090ac_exeext=$EXEEXT
3091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092/* end confdefs.h. */
3093#include <stdio.h>
3094int
3095main ()
3096{
3097FILE *f = fopen ("conftest.out", "w");
3098 return ferror (f) || fclose (f) != 0;
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104ac_clean_files="$ac_clean_files conftest.out"
3105# Check that the compiler produces executables we can run. If not, either
3106# the compiler is broken, or we cross compile.
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108$as_echo_n "checking whether we are cross compiling... " >&6; }
3109if test "$cross_compiling" != yes; then
3110 { { ac_try="$ac_link"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 if { ac_try='./conftest$ac_cv_exeext'
3122 { { case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127$as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; }; then
3132 cross_compiling=no
3133 else
3134 if test "$cross_compiling" = maybe; then
3135 cross_compiling=yes
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139as_fn_error $? "cannot run C compiled programs.
3140If you meant to cross compile, use \`--host'.
3141See \`config.log' for more details" "$LINENO" 5; }
3142 fi
3143 fi
3144fi
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146$as_echo "$cross_compiling" >&6; }
3147
3148rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149ac_clean_files=$ac_clean_files_save
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151$as_echo_n "checking for suffix of object files... " >&6; }
3152if ${ac_cv_objext+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154else
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h. */
3157
3158int
3159main ()
3160{
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.o conftest.obj
3167if { { ac_try="$ac_compile"
3168case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173$as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_compile") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183 break;;
3184 esac
3185done
3186else
3187 $as_echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error $? "cannot compute suffix of object files: cannot compile
3193See \`config.log' for more details" "$LINENO" 5; }
3194fi
3195rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198$as_echo "$ac_cv_objext" >&6; }
3199OBJEXT=$ac_cv_objext
3200ac_objext=$OBJEXT
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3202$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3203if ${ac_cv_c_compiler_gnu+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205else
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212#ifndef __GNUC__
3213 choke me
3214#endif
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220if ac_fn_c_try_compile "$LINENO"; then :
3221 ac_compiler_gnu=yes
3222else
3223 ac_compiler_gnu=no
3224fi
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226ac_cv_c_compiler_gnu=$ac_compiler_gnu
3227
3228fi
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3230$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3231if test $ac_compiler_gnu = yes; then
3232 GCC=yes
3233else
3234 GCC=
3235fi
3236ac_test_CFLAGS=${CFLAGS+set}
3237ac_save_CFLAGS=$CFLAGS
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3239$as_echo_n "checking whether $CC accepts -g... " >&6; }
3240if ${ac_cv_prog_cc_g+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242else
3243 ac_save_c_werror_flag=$ac_c_werror_flag
3244 ac_c_werror_flag=yes
3245 ac_cv_prog_cc_g=no
3246 CFLAGS="-g"
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h. */
3249
3250int
3251main ()
3252{
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_cv_prog_cc_g=yes
3260else
3261 CFLAGS=""
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
3274
3275else
3276 ac_c_werror_flag=$ac_save_c_werror_flag
3277 CFLAGS="-g"
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_g=yes
3291fi
3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293fi
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3300$as_echo "$ac_cv_prog_cc_g" >&6; }
3301if test "$ac_test_CFLAGS" = set; then
3302 CFLAGS=$ac_save_CFLAGS
3303elif test $ac_cv_prog_cc_g = yes; then
3304 if test "$GCC" = yes; then
3305 CFLAGS="-g -O2"
3306 else
3307 CFLAGS="-g"
3308 fi
3309else
3310 if test "$GCC" = yes; then
3311 CFLAGS="-O2"
3312 else
3313 CFLAGS=
3314 fi
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3317$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318if ${ac_cv_prog_cc_c89+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320else
3321 ac_cv_prog_cc_c89=no
3322ac_save_CC=$CC
3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h. */
3325#include <stdarg.h>
3326#include <stdio.h>
3327struct stat;
3328/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329struct buf { int x; };
3330FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331static char *e (p, i)
3332 char **p;
3333 int i;
3334{
3335 return p[i];
3336}
3337static char *f (char * (*g) (char **, int), char **p, ...)
3338{
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3345}
3346
3347/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3348 function prototypes and stuff, but not '\xHH' hex character constants.
3349 These don't provoke an error unfortunately, instead are silently treated
3350 as 'x'. The following induces an error, until -std is added to get
3351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3352 array size at least. It's necessary to write '\x00'==0 to get something
3353 that's true only with -std. */
3354int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3355
3356/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357 inside strings and character constants. */
3358#define FOO(x) 'x'
3359int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3360
3361int test (int i, double x);
3362struct s1 {int (*f) (int a);};
3363struct s2 {int (*f) (double a);};
3364int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365int argc;
3366char **argv;
3367int
3368main ()
3369{
3370return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3371 ;
3372 return 0;
3373}
3374_ACEOF
3375for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3377do
3378 CC="$ac_save_CC $ac_arg"
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_c89=$ac_arg
3381fi
3382rm -f core conftest.err conftest.$ac_objext
3383 test "x$ac_cv_prog_cc_c89" != "xno" && break
3384done
3385rm -f conftest.$ac_ext
3386CC=$ac_save_CC
3387
3388fi
3389# AC_CACHE_VAL
3390case "x$ac_cv_prog_cc_c89" in
3391 x)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3393$as_echo "none needed" >&6; } ;;
3394 xno)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3396$as_echo "unsupported" >&6; } ;;
3397 *)
3398 CC="$CC $ac_cv_prog_cc_c89"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3400$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3401esac
3402if test "x$ac_cv_prog_cc_c89" != xno; then :
3403
3404fi
3405
3406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412ac_aux_dir=
3413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3414 if test -f "$ac_dir/install-sh"; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/install-sh -c"
3417 break
3418 elif test -f "$ac_dir/install.sh"; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/install.sh -c"
3421 break
3422 elif test -f "$ac_dir/shtool"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/shtool install -c"
3425 break
3426 fi
3427done
3428if test -z "$ac_aux_dir"; then
3429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3430fi
3431
3432# These three variables are undocumented and unsupported,
3433# and are intended to be withdrawn in a future Autoconf release.
3434# They can cause serious problems if a builder's source tree is in a directory
3435# whose full name contains unusual characters.
3436ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3437ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3438ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3439
3440
3441# Make sure we can run config.sub.
3442$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3443 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3444
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3446$as_echo_n "checking build system type... " >&6; }
3447if ${ac_cv_build+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449else
3450 ac_build_alias=$build_alias
3451test "x$ac_build_alias" = x &&
3452 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3453test "x$ac_build_alias" = x &&
3454 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3455ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3457
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3460$as_echo "$ac_cv_build" >&6; }
3461case $ac_cv_build in
3462*-*-*) ;;
3463*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3464esac
3465build=$ac_cv_build
3466ac_save_IFS=$IFS; IFS='-'
3467set x $ac_cv_build
3468shift
3469build_cpu=$1
3470build_vendor=$2
3471shift; shift
3472# Remember, the first character of IFS is used to create $*,
3473# except with old shells:
3474build_os=$*
3475IFS=$ac_save_IFS
3476case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3477
3478
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3480$as_echo_n "checking host system type... " >&6; }
3481if ${ac_cv_host+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483else
3484 if test "x$host_alias" = x; then
3485 ac_cv_host=$ac_cv_build
3486else
3487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3489fi
3490
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3493$as_echo "$ac_cv_host" >&6; }
3494case $ac_cv_host in
3495*-*-*) ;;
3496*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3497esac
3498host=$ac_cv_host
3499ac_save_IFS=$IFS; IFS='-'
3500set x $ac_cv_host
3501shift
3502host_cpu=$1
3503host_vendor=$2
3504shift; shift
3505# Remember, the first character of IFS is used to create $*,
3506# except with old shells:
3507host_os=$*
3508IFS=$ac_save_IFS
3509case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3510
3511
3512
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3519$as_echo_n "checking how to run the C preprocessor... " >&6; }
3520# On Suns, sometimes $CPP names a directory.
3521if test -n "$CPP" && test -d "$CPP"; then
3522 CPP=
3523fi
3524if test -z "$CPP"; then
3525 if ${ac_cv_prog_CPP+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527else
3528 # Double quotes because CPP needs to be expanded
3529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3530 do
3531 ac_preproc_ok=false
3532for ac_c_preproc_warn_flag in '' yes
3533do
3534 # Use a header file that comes with gcc, so configuring glibc
3535 # with a fresh cross-compiler works.
3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3537 # <limits.h> exists even on freestanding compilers.
3538 # On the NeXT, cc -E runs the code through the compiler's parser,
3539 # not just through cpp. "Syntax error" is here to catch this case.
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h. */
3542#ifdef __STDC__
3543# include <limits.h>
3544#else
3545# include <assert.h>
3546#endif
3547 Syntax error
3548_ACEOF
3549if ac_fn_c_try_cpp "$LINENO"; then :
3550
3551else
3552 # Broken: fails on valid input.
3553continue
3554fi
3555rm -f conftest.err conftest.i conftest.$ac_ext
3556
3557 # OK, works on sane cases. Now check whether nonexistent headers
3558 # can be detected and how.
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h. */
3561#include <ac_nonexistent.h>
3562_ACEOF
3563if ac_fn_c_try_cpp "$LINENO"; then :
3564 # Broken: success on invalid input.
3565continue
3566else
3567 # Passes both tests.
3568ac_preproc_ok=:
3569break
3570fi
3571rm -f conftest.err conftest.i conftest.$ac_ext
3572
3573done
3574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3575rm -f conftest.i conftest.err conftest.$ac_ext
3576if $ac_preproc_ok; then :
3577 break
3578fi
3579
3580 done
3581 ac_cv_prog_CPP=$CPP
3582
3583fi
3584 CPP=$ac_cv_prog_CPP
3585else
3586 ac_cv_prog_CPP=$CPP
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3589$as_echo "$CPP" >&6; }
3590ac_preproc_ok=false
3591for ac_c_preproc_warn_flag in '' yes
3592do
3593 # Use a header file that comes with gcc, so configuring glibc
3594 # with a fresh cross-compiler works.
3595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3596 # <limits.h> exists even on freestanding compilers.
3597 # On the NeXT, cc -E runs the code through the compiler's parser,
3598 # not just through cpp. "Syntax error" is here to catch this case.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h. */
3601#ifdef __STDC__
3602# include <limits.h>
3603#else
3604# include <assert.h>
3605#endif
3606 Syntax error
3607_ACEOF
3608if ac_fn_c_try_cpp "$LINENO"; then :
3609
3610else
3611 # Broken: fails on valid input.
3612continue
3613fi
3614rm -f conftest.err conftest.i conftest.$ac_ext
3615
3616 # OK, works on sane cases. Now check whether nonexistent headers
3617 # can be detected and how.
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h. */
3620#include <ac_nonexistent.h>
3621_ACEOF
3622if ac_fn_c_try_cpp "$LINENO"; then :
3623 # Broken: success on invalid input.
3624continue
3625else
3626 # Passes both tests.
3627ac_preproc_ok=:
3628break
3629fi
3630rm -f conftest.err conftest.i conftest.$ac_ext
3631
3632done
3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634rm -f conftest.i conftest.err conftest.$ac_ext
3635if $ac_preproc_ok; then :
3636
3637else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3641See \`config.log' for more details" "$LINENO" 5; }
3642fi
3643
3644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3652$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3653if ${ac_cv_path_GREP+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655else
3656 if test -z "$GREP"; then
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 as_fn_executable_p "$ac_path_GREP" || continue
3668# Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670case `"$ac_path_GREP" --version 2>&1` in
3671*GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673*)
3674 ac_count=0
3675 $as_echo_n 0123456789 >"conftest.in"
3676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 $as_echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 as_fn_arith $ac_count + 1 && ac_count=$as_val
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3689 fi
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694esac
3695
3696 $ac_path_GREP_found && break 3
3697 done
3698 done
3699 done
3700IFS=$as_save_IFS
3701 if test -z "$ac_cv_path_GREP"; then
3702 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3703 fi
3704else
3705 ac_cv_path_GREP=$GREP
3706fi
3707
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3710$as_echo "$ac_cv_path_GREP" >&6; }
3711 GREP="$ac_cv_path_GREP"
3712
3713
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3715$as_echo_n "checking for egrep... " >&6; }
3716if ${ac_cv_path_EGREP+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718else
3719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3720 then ac_cv_path_EGREP="$GREP -E"
3721 else
3722 if test -z "$EGREP"; then
3723 ac_path_EGREP_found=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in egrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733 as_fn_executable_p "$ac_path_EGREP" || continue
3734# Check for GNU ac_path_EGREP and select it if it is found.
3735 # Check for GNU $ac_path_EGREP
3736case `"$ac_path_EGREP" --version 2>&1` in
3737*GNU*)
3738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3739*)
3740 ac_count=0
3741 $as_echo_n 0123456789 >"conftest.in"
3742 while :
3743 do
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 $as_echo 'EGREP' >> "conftest.nl"
3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 as_fn_arith $ac_count + 1 && ac_count=$as_val
3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_EGREP="$ac_path_EGREP"
3754 ac_path_EGREP_max=$ac_count
3755 fi
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760esac
3761
3762 $ac_path_EGREP_found && break 3
3763 done
3764 done
3765 done
3766IFS=$as_save_IFS
3767 if test -z "$ac_cv_path_EGREP"; then
3768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3769 fi
3770else
3771 ac_cv_path_EGREP=$EGREP
3772fi
3773
3774 fi
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3777$as_echo "$ac_cv_path_EGREP" >&6; }
3778 EGREP="$ac_cv_path_EGREP"
3779
3780
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3782$as_echo_n "checking for ANSI C header files... " >&6; }
3783if ${ac_cv_header_stdc+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785else
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h. */
3788#include <stdlib.h>
3789#include <stdarg.h>
3790#include <string.h>
3791#include <float.h>
3792
3793int
3794main ()
3795{
3796
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_header_stdc=yes
3803else
3804 ac_cv_header_stdc=no
3805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807
3808if test $ac_cv_header_stdc = yes; then
3809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h. */
3812#include <string.h>
3813
3814_ACEOF
3815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816 $EGREP "memchr" >/dev/null 2>&1; then :
3817
3818else
3819 ac_cv_header_stdc=no
3820fi
3821rm -f conftest*
3822
3823fi
3824
3825if test $ac_cv_header_stdc = yes; then
3826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h. */
3829#include <stdlib.h>
3830
3831_ACEOF
3832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 $EGREP "free" >/dev/null 2>&1; then :
3834
3835else
3836 ac_cv_header_stdc=no
3837fi
3838rm -f conftest*
3839
3840fi
3841
3842if test $ac_cv_header_stdc = yes; then
3843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3844 if test "$cross_compiling" = yes; then :
3845 :
3846else
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849#include <ctype.h>
3850#include <stdlib.h>
3851#if ((' ' & 0x0FF) == 0x020)
3852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3854#else
3855# define ISLOWER(c) \
3856 (('a' <= (c) && (c) <= 'i') \
3857 || ('j' <= (c) && (c) <= 'r') \
3858 || ('s' <= (c) && (c) <= 'z'))
3859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3860#endif
3861
3862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3863int
3864main ()
3865{
3866 int i;
3867 for (i = 0; i < 256; i++)
3868 if (XOR (islower (i), ISLOWER (i))
3869 || toupper (i) != TOUPPER (i))
3870 return 2;
3871 return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_run "$LINENO"; then :
3875
3876else
3877 ac_cv_header_stdc=no
3878fi
3879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3880 conftest.$ac_objext conftest.beam conftest.$ac_ext
3881fi
3882
3883fi
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3886$as_echo "$ac_cv_header_stdc" >&6; }
3887if test $ac_cv_header_stdc = yes; then
3888
3889$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3890
3891fi
3892
3893# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3895 inttypes.h stdint.h unistd.h
3896do :
3897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3899"
3900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3901 cat >>confdefs.h <<_ACEOF
3902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3903_ACEOF
3904
3905fi
3906
3907done
3908
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3911$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3912if ${ac_cv_c_bigendian+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914else
3915 ac_cv_c_bigendian=unknown
3916 # See if we're dealing with a universal compiler.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h. */
3919#ifndef __APPLE_CC__
3920 not a universal capable compiler
3921 #endif
3922 typedef int dummy;
3923
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926
3927 # Check for potential -arch flags. It is not universal unless
3928 # there are at least two -arch flags with different values.
3929 ac_arch=
3930 ac_prev=
3931 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3932 if test -n "$ac_prev"; then
3933 case $ac_word in
3934 i?86 | x86_64 | ppc | ppc64)
3935 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3936 ac_arch=$ac_word
3937 else
3938 ac_cv_c_bigendian=universal
3939 break
3940 fi
3941 ;;
3942 esac
3943 ac_prev=
3944 elif test "x$ac_word" = "x-arch"; then
3945 ac_prev=arch
3946 fi
3947 done
3948fi
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 if test $ac_cv_c_bigendian = unknown; then
3951 # See if sys/param.h defines the BYTE_ORDER macro.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h. */
3954#include <sys/types.h>
3955 #include <sys/param.h>
3956
3957int
3958main ()
3959{
3960#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3961 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3962 && LITTLE_ENDIAN)
3963 bogus endian macros
3964 #endif
3965
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971 # It does; now see whether it defined to BIG_ENDIAN or not.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h. */
3974#include <sys/types.h>
3975 #include <sys/param.h>
3976
3977int
3978main ()
3979{
3980#if BYTE_ORDER != BIG_ENDIAN
3981 not big endian
3982 #endif
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_c_bigendian=yes
3990else
3991 ac_cv_c_bigendian=no
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 if test $ac_cv_c_bigendian = unknown; then
3998 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
4001#include <limits.h>
4002
4003int
4004main ()
4005{
4006#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4007 bogus endian macros
4008 #endif
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_compile "$LINENO"; then :
4015 # It does; now see whether it defined to _BIG_ENDIAN or not.
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <limits.h>
4019
4020int
4021main ()
4022{
4023#ifndef _BIG_ENDIAN
4024 not big endian
4025 #endif
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_compile "$LINENO"; then :
4032 ac_cv_c_bigendian=yes
4033else
4034 ac_cv_c_bigendian=no
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 if test $ac_cv_c_bigendian = unknown; then
4041 # Compile a test program.
4042 if test "$cross_compiling" = yes; then :
4043 # Try to guess by grepping values from an object file.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h. */
4046short int ascii_mm[] =
4047 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4048 short int ascii_ii[] =
4049 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4050 int use_ascii (int i) {
4051 return ascii_mm[i] + ascii_ii[i];
4052 }
4053 short int ebcdic_ii[] =
4054 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4055 short int ebcdic_mm[] =
4056 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4057 int use_ebcdic (int i) {
4058 return ebcdic_mm[i] + ebcdic_ii[i];
4059 }
4060 extern int foo;
4061
4062int
4063main ()
4064{
4065return use_ascii (foo) == use_ebcdic (foo);
4066 ;
4067 return 0;
4068}
4069_ACEOF
4070if ac_fn_c_try_compile "$LINENO"; then :
4071 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4072 ac_cv_c_bigendian=yes
4073 fi
4074 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4075 if test "$ac_cv_c_bigendian" = unknown; then
4076 ac_cv_c_bigendian=no
4077 else
4078 # finding both strings is unlikely to happen, but who knows?
4079 ac_cv_c_bigendian=unknown
4080 fi
4081 fi
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087$ac_includes_default
4088int
4089main ()
4090{
4091
4092 /* Are we little or big endian? From Harbison&Steele. */
4093 union
4094 {
4095 long int l;
4096 char c[sizeof (long int)];
4097 } u;
4098 u.l = 1;
4099 return u.c[sizeof (long int) - 1] == 1;
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105if ac_fn_c_try_run "$LINENO"; then :
4106 ac_cv_c_bigendian=no
4107else
4108 ac_cv_c_bigendian=yes
4109fi
4110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4111 conftest.$ac_objext conftest.beam conftest.$ac_ext
4112fi
4113
4114 fi
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4117$as_echo "$ac_cv_c_bigendian" >&6; }
4118 case $ac_cv_c_bigendian in #(
4119 yes)
4120 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4121;; #(
4122 no)
4123 ;; #(
4124 universal)
4125
4126$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4127
4128 ;; #(
4129 *)
4130 as_fn_error $? "unknown endianness
4131 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4132 esac
4133
4134
4135# Checks for programs.
4136for ac_prog in gawk mawk nawk awk
4137do
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139set dummy $ac_prog; ac_word=$2
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
4142if ${ac_cv_prog_AWK+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144else
4145 if test -n "$AWK"; then
4146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_AWK="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4158 fi
4159done
4160 done
4161IFS=$as_save_IFS
4162
4163fi
4164fi
4165AWK=$ac_cv_prog_AWK
4166if test -n "$AWK"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4168$as_echo "$AWK" >&6; }
4169else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
4172fi
4173
4174
4175 test -n "$AWK" && break
4176done
4177
4178ac_ext=c
4179ac_cpp='$CPP $CPPFLAGS'
4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4184$as_echo_n "checking how to run the C preprocessor... " >&6; }
4185# On Suns, sometimes $CPP names a directory.
4186if test -n "$CPP" && test -d "$CPP"; then
4187 CPP=
4188fi
4189if test -z "$CPP"; then
4190 if ${ac_cv_prog_CPP+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 # Double quotes because CPP needs to be expanded
4194 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4195 do
4196 ac_preproc_ok=false
4197for ac_c_preproc_warn_flag in '' yes
4198do
4199 # Use a header file that comes with gcc, so configuring glibc
4200 # with a fresh cross-compiler works.
4201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4202 # <limits.h> exists even on freestanding compilers.
4203 # On the NeXT, cc -E runs the code through the compiler's parser,
4204 # not just through cpp. "Syntax error" is here to catch this case.
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h. */
4207#ifdef __STDC__
4208# include <limits.h>
4209#else
4210# include <assert.h>
4211#endif
4212 Syntax error
4213_ACEOF
4214if ac_fn_c_try_cpp "$LINENO"; then :
4215
4216else
4217 # Broken: fails on valid input.
4218continue
4219fi
4220rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222 # OK, works on sane cases. Now check whether nonexistent headers
4223 # can be detected and how.
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h. */
4226#include <ac_nonexistent.h>
4227_ACEOF
4228if ac_fn_c_try_cpp "$LINENO"; then :
4229 # Broken: success on invalid input.
4230continue
4231else
4232 # Passes both tests.
4233ac_preproc_ok=:
4234break
4235fi
4236rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238done
4239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4240rm -f conftest.i conftest.err conftest.$ac_ext
4241if $ac_preproc_ok; then :
4242 break
4243fi
4244
4245 done
4246 ac_cv_prog_CPP=$CPP
4247
4248fi
4249 CPP=$ac_cv_prog_CPP
4250else
4251 ac_cv_prog_CPP=$CPP
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4254$as_echo "$CPP" >&6; }
4255ac_preproc_ok=false
4256for ac_c_preproc_warn_flag in '' yes
4257do
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h. */
4266#ifdef __STDC__
4267# include <limits.h>
4268#else
4269# include <assert.h>
4270#endif
4271 Syntax error
4272_ACEOF
4273if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275else
4276 # Broken: fails on valid input.
4277continue
4278fi
4279rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h. */
4285#include <ac_nonexistent.h>
4286_ACEOF
4287if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4289continue
4290else
4291 # Passes both tests.
4292ac_preproc_ok=:
4293break
4294fi
4295rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297done
4298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299rm -f conftest.i conftest.err conftest.$ac_ext
4300if $ac_preproc_ok; then :
4301
4302else
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4306See \`config.log' for more details" "$LINENO" 5; }
4307fi
4308
4309ac_ext=c
4310ac_cpp='$CPP $CPPFLAGS'
4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4315if test -n "$ac_tool_prefix"; then
4316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4317set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319$as_echo_n "checking for $ac_word... " >&6; }
4320if ${ac_cv_prog_RANLIB+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 if test -n "$RANLIB"; then
4324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4325else
4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337done
4338 done
4339IFS=$as_save_IFS
4340
4341fi
4342fi
4343RANLIB=$ac_cv_prog_RANLIB
4344if test -n "$RANLIB"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4346$as_echo "$RANLIB" >&6; }
4347else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349$as_echo "no" >&6; }
4350fi
4351
4352
4353fi
4354if test -z "$ac_cv_prog_RANLIB"; then
4355 ac_ct_RANLIB=$RANLIB
4356 # Extract the first word of "ranlib", so it can be a program name with args.
4357set dummy ranlib; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
4360if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362else
4363 if test -n "$ac_ct_RANLIB"; then
4364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_ac_ct_RANLIB="ranlib"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377done
4378 done
4379IFS=$as_save_IFS
4380
4381fi
4382fi
4383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4384if test -n "$ac_ct_RANLIB"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4386$as_echo "$ac_ct_RANLIB" >&6; }
4387else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
4390fi
4391
4392 if test "x$ac_ct_RANLIB" = x; then
4393 RANLIB=":"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396yes:)
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399ac_tool_warned=yes ;;
4400esac
4401 RANLIB=$ac_ct_RANLIB
4402 fi
4403else
4404 RANLIB="$ac_cv_prog_RANLIB"
4405fi
4406
4407# Find a good install program. We prefer a C program (faster),
4408# so one script is as good as another. But avoid the broken or
4409# incompatible versions:
4410# SysV /etc/install, /usr/sbin/install
4411# SunOS /usr/etc/install
4412# IRIX /sbin/install
4413# AIX /bin/install
4414# AmigaOS /C/install, which installs bootblocks on floppy discs
4415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4416# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4418# OS/2's system install, which has a completely different semantic
4419# ./install, which can be erroneously created by make from ./install.sh.
4420# Reject install programs that cannot install multiple files.
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4422$as_echo_n "checking for a BSD-compatible install... " >&6; }
4423if test -z "$INSTALL"; then
4424if ${ac_cv_path_install+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 # Account for people who put trailing slashes in PATH elements.
4433case $as_dir/ in #((
4434 ./ | .// | /[cC]/* | \
4435 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4436 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4437 /usr/ucb/* ) ;;
4438 *)
4439 # OSF1 and SCO ODT 3.0 have their own names for install.
4440 # Don't use installbsd from OSF since it installs stuff as root
4441 # by default.
4442 for ac_prog in ginstall scoinst install; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4445 if test $ac_prog = install &&
4446 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4447 # AIX install. It has an incompatible calling convention.
4448 :
4449 elif test $ac_prog = install &&
4450 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4451 # program-specific install script used by HP pwplus--don't use.
4452 :
4453 else
4454 rm -rf conftest.one conftest.two conftest.dir
4455 echo one > conftest.one
4456 echo two > conftest.two
4457 mkdir conftest.dir
4458 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4459 test -s conftest.one && test -s conftest.two &&
4460 test -s conftest.dir/conftest.one &&
4461 test -s conftest.dir/conftest.two
4462 then
4463 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4464 break 3
4465 fi
4466 fi
4467 fi
4468 done
4469 done
4470 ;;
4471esac
4472
4473 done
4474IFS=$as_save_IFS
4475
4476rm -rf conftest.one conftest.two conftest.dir
4477
4478fi
4479 if test "${ac_cv_path_install+set}" = set; then
4480 INSTALL=$ac_cv_path_install
4481 else
4482 # As a last resort, use the slow shell script. Don't cache a
4483 # value for INSTALL within a source directory, because that will
4484 # break other packages using the cache if that directory is
4485 # removed, or if the value is a relative name.
4486 INSTALL=$ac_install_sh
4487 fi
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4490$as_echo "$INSTALL" >&6; }
4491
4492# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493# It thinks the first close brace ends the variable substitution.
4494test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4495
4496test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4497
4498test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4501$as_echo_n "checking for egrep... " >&6; }
4502if ${ac_cv_path_EGREP+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504else
4505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4506 then ac_cv_path_EGREP="$GREP -E"
4507 else
4508 if test -z "$EGREP"; then
4509 ac_path_EGREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_prog in egrep; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4519 as_fn_executable_p "$ac_path_EGREP" || continue
4520# Check for GNU ac_path_EGREP and select it if it is found.
4521 # Check for GNU $ac_path_EGREP
4522case `"$ac_path_EGREP" --version 2>&1` in
4523*GNU*)
4524 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4525*)
4526 ac_count=0
4527 $as_echo_n 0123456789 >"conftest.in"
4528 while :
4529 do
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'EGREP' >> "conftest.nl"
4534 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
4537 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_EGREP="$ac_path_EGREP"
4540 ac_path_EGREP_max=$ac_count
4541 fi
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546esac
4547
4548 $ac_path_EGREP_found && break 3
4549 done
4550 done
4551 done
4552IFS=$as_save_IFS
4553 if test -z "$ac_cv_path_EGREP"; then
4554 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555 fi
4556else
4557 ac_cv_path_EGREP=$EGREP
4558fi
4559
4560 fi
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4563$as_echo "$ac_cv_path_EGREP" >&6; }
4564 EGREP="$ac_cv_path_EGREP"
4565
4566
4567if test -n "$ac_tool_prefix"; then
4568 for ac_prog in ar
4569 do
4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573$as_echo_n "checking for $ac_word... " >&6; }
4574if ${ac_cv_prog_AR+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 if test -n "$AR"; then
4578 ac_cv_prog_AR="$AR" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592 done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597AR=$ac_cv_prog_AR
4598if test -n "$AR"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4600$as_echo "$AR" >&6; }
4601else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603$as_echo "no" >&6; }
4604fi
4605
4606
4607 test -n "$AR" && break
4608 done
4609fi
4610if test -z "$AR"; then
4611 ac_ct_AR=$AR
4612 for ac_prog in ar
4613do
4614 # Extract the first word of "$ac_prog", so it can be a program name with args.
4615set dummy $ac_prog; ac_word=$2
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617$as_echo_n "checking for $ac_word... " >&6; }
4618if ${ac_cv_prog_ac_ct_AR+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620else
4621 if test -n "$ac_ct_AR"; then
4622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_AR="$ac_prog"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636 done
4637IFS=$as_save_IFS
4638
4639fi
4640fi
4641ac_ct_AR=$ac_cv_prog_ac_ct_AR
4642if test -n "$ac_ct_AR"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4644$as_echo "$ac_ct_AR" >&6; }
4645else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648fi
4649
4650
4651 test -n "$ac_ct_AR" && break
4652done
4653
4654 if test "x$ac_ct_AR" = x; then
4655 AR=""
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658yes:)
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661ac_tool_warned=yes ;;
4662esac
4663 AR=$ac_ct_AR
4664 fi
4665fi
4666
4667# Extract the first word of "cat", so it can be a program name with args.
4668set dummy cat; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if ${ac_cv_path_CAT+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 case $CAT in
4675 [\\/]* | ?:[\\/]*)
4676 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4677 ;;
4678 *)
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4689 fi
4690done
4691 done
4692IFS=$as_save_IFS
4693
4694 ;;
4695esac
4696fi
4697CAT=$ac_cv_path_CAT
4698if test -n "$CAT"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4700$as_echo "$CAT" >&6; }
4701else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703$as_echo "no" >&6; }
4704fi
4705
4706
4707# Extract the first word of "kill", so it can be a program name with args.
4708set dummy kill; ac_word=$2
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
4711if ${ac_cv_path_KILL+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714 case $KILL in
4715 [\\/]* | ?:[\\/]*)
4716 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4717 ;;
4718 *)
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4729 fi
4730done
4731 done
4732IFS=$as_save_IFS
4733
4734 ;;
4735esac
4736fi
4737KILL=$ac_cv_path_KILL
4738if test -n "$KILL"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4740$as_echo "$KILL" >&6; }
4741else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743$as_echo "no" >&6; }
4744fi
4745
4746
4747for ac_prog in perl5 perl
4748do
4749 # Extract the first word of "$ac_prog", so it can be a program name with args.
4750set dummy $ac_prog; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_path_PERL+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755else
4756 case $PERL in
4757 [\\/]* | ?:[\\/]*)
4758 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4759 ;;
4760 *)
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773 done
4774IFS=$as_save_IFS
4775
4776 ;;
4777esac
4778fi
4779PERL=$ac_cv_path_PERL
4780if test -n "$PERL"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4782$as_echo "$PERL" >&6; }
4783else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787
4788
4789 test -n "$PERL" && break
4790done
4791
4792# Extract the first word of "sed", so it can be a program name with args.
4793set dummy sed; ac_word=$2
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if ${ac_cv_path_SED+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798else
4799 case $SED in
4800 [\\/]* | ?:[\\/]*)
4801 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4802 ;;
4803 *)
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819 ;;
4820esac
4821fi
4822SED=$ac_cv_path_SED
4823if test -n "$SED"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4825$as_echo "$SED" >&6; }
4826else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828$as_echo "no" >&6; }
4829fi
4830
4831
4832
4833# Extract the first word of "ent", so it can be a program name with args.
4834set dummy ent; ac_word=$2
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836$as_echo_n "checking for $ac_word... " >&6; }
4837if ${ac_cv_path_ENT+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 case $ENT in
4841 [\\/]* | ?:[\\/]*)
4842 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4843 ;;
4844 *)
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857 done
4858IFS=$as_save_IFS
4859
4860 ;;
4861esac
4862fi
4863ENT=$ac_cv_path_ENT
4864if test -n "$ENT"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4866$as_echo "$ENT" >&6; }
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
4870fi
4871
4872
4873
4874# Extract the first word of "bash", so it can be a program name with args.
4875set dummy bash; ac_word=$2
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 case $TEST_MINUS_S_SH in
4882 [\\/]* | ?:[\\/]*)
4883 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4884 ;;
4885 *)
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897done
4898 done
4899IFS=$as_save_IFS
4900
4901 ;;
4902esac
4903fi
4904TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4905if test -n "$TEST_MINUS_S_SH"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4907$as_echo "$TEST_MINUS_S_SH" >&6; }
4908else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
4911fi
4912
4913
4914# Extract the first word of "ksh", so it can be a program name with args.
4915set dummy ksh; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920else
4921 case $TEST_MINUS_S_SH in
4922 [\\/]* | ?:[\\/]*)
4923 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4924 ;;
4925 *)
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937done
4938 done
4939IFS=$as_save_IFS
4940
4941 ;;
4942esac
4943fi
4944TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4945if test -n "$TEST_MINUS_S_SH"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4947$as_echo "$TEST_MINUS_S_SH" >&6; }
4948else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951fi
4952
4953
4954# Extract the first word of "sh", so it can be a program name with args.
4955set dummy sh; ac_word=$2
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 case $TEST_MINUS_S_SH in
4962 [\\/]* | ?:[\\/]*)
4963 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4964 ;;
4965 *)
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967for as_dir in $PATH
4968do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977done
4978 done
4979IFS=$as_save_IFS
4980
4981 ;;
4982esac
4983fi
4984TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4985if test -n "$TEST_MINUS_S_SH"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4987$as_echo "$TEST_MINUS_S_SH" >&6; }
4988else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992
4993
4994# Extract the first word of "sh", so it can be a program name with args.
4995set dummy sh; ac_word=$2
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997$as_echo_n "checking for $ac_word... " >&6; }
4998if ${ac_cv_path_SH+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000else
5001 case $SH in
5002 [\\/]* | ?:[\\/]*)
5003 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5004 ;;
5005 *)
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017done
5018 done
5019IFS=$as_save_IFS
5020
5021 ;;
5022esac
5023fi
5024SH=$ac_cv_path_SH
5025if test -n "$SH"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
5027$as_echo "$SH" >&6; }
5028else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031fi
5032
5033
5034# Extract the first word of "groff", so it can be a program name with args.
5035set dummy groff; ac_word=$2
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037$as_echo_n "checking for $ac_word... " >&6; }
5038if ${ac_cv_path_GROFF+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040else
5041 case $GROFF in
5042 [\\/]* | ?:[\\/]*)
5043 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5044 ;;
5045 *)
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057done
5058 done
5059IFS=$as_save_IFS
5060
5061 ;;
5062esac
5063fi
5064GROFF=$ac_cv_path_GROFF
5065if test -n "$GROFF"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
5067$as_echo "$GROFF" >&6; }
5068else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070$as_echo "no" >&6; }
5071fi
5072
5073
5074# Extract the first word of "nroff", so it can be a program name with args.
5075set dummy nroff; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_path_NROFF+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $NROFF in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101 ;;
5102esac
5103fi
5104NROFF=$ac_cv_path_NROFF
5105if test -n "$NROFF"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5107$as_echo "$NROFF" >&6; }
5108else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
5114# Extract the first word of "mandoc", so it can be a program name with args.
5115set dummy mandoc; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if ${ac_cv_path_MANDOC+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120else
5121 case $MANDOC in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5124 ;;
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137done
5138 done
5139IFS=$as_save_IFS
5140
5141 ;;
5142esac
5143fi
5144MANDOC=$ac_cv_path_MANDOC
5145if test -n "$MANDOC"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5147$as_echo "$MANDOC" >&6; }
5148else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153
5154TEST_SHELL=sh
5155
5156
5157if test "x$MANDOC" != "x" ; then
5158 MANFMT="$MANDOC"
5159elif test "x$NROFF" != "x" ; then
5160 MANFMT="$NROFF -mandoc"
5161elif test "x$GROFF" != "x" ; then
5162 MANFMT="$GROFF -mandoc -Tascii"
5163else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5165$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5166 MANFMT="false"
5167fi
5168
5169
5170# Extract the first word of "groupadd", so it can be a program name with args.
5171set dummy groupadd; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176else
5177 case $PATH_GROUPADD_PROG in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5180 ;;
5181 *)
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194 done
5195IFS=$as_save_IFS
5196
5197 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5198 ;;
5199esac
5200fi
5201PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5202if test -n "$PATH_GROUPADD_PROG"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5204$as_echo "$PATH_GROUPADD_PROG" >&6; }
5205else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }
5208fi
5209
5210
5211# Extract the first word of "useradd", so it can be a program name with args.
5212set dummy useradd; ac_word=$2
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
5215if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217else
5218 case $PATH_USERADD_PROG in
5219 [\\/]* | ?:[\\/]*)
5220 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5221 ;;
5222 *)
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234done
5235 done
5236IFS=$as_save_IFS
5237
5238 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5239 ;;
5240esac
5241fi
5242PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5243if test -n "$PATH_USERADD_PROG"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5245$as_echo "$PATH_USERADD_PROG" >&6; }
5246else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251
5252# Extract the first word of "pkgmk", so it can be a program name with args.
5253set dummy pkgmk; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5260 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5278fi
5279fi
5280MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5281if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5283$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5284else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288
5289
5290if test -x /sbin/sh; then
5291 STARTUP_SCRIPT_SHELL=/sbin/sh
5292
5293else
5294 STARTUP_SCRIPT_SHELL=/bin/sh
5295
5296fi
5297
5298# System features
5299# Check whether --enable-largefile was given.
5300if test "${enable_largefile+set}" = set; then :
5301 enableval=$enable_largefile;
5302fi
5303
5304if test "$enable_largefile" != no; then
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5307$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5308if ${ac_cv_sys_largefile_CC+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310else
5311 ac_cv_sys_largefile_CC=no
5312 if test "$GCC" != yes; then
5313 ac_save_CC=$CC
5314 while :; do
5315 # IRIX 6.2 and later do not support large files by default,
5316 # so use the C compiler's -n32 option if that helps.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h. */
5319#include <sys/types.h>
5320 /* Check that off_t can represent 2**63 - 1 correctly.
5321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5322 since some C++ compilers masquerading as C compilers
5323 incorrectly reject 9223372036854775807. */
5324#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5326 && LARGE_OFF_T % 2147483647 == 1)
5327 ? 1 : -1];
5328int
5329main ()
5330{
5331
5332 ;
5333 return 0;
5334}
5335_ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 break
5338fi
5339rm -f core conftest.err conftest.$ac_objext
5340 CC="$CC -n32"
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 ac_cv_sys_largefile_CC=' -n32'; break
5343fi
5344rm -f core conftest.err conftest.$ac_objext
5345 break
5346 done
5347 CC=$ac_save_CC
5348 rm -f conftest.$ac_ext
5349 fi
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5352$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5353 if test "$ac_cv_sys_largefile_CC" != no; then
5354 CC=$CC$ac_cv_sys_largefile_CC
5355 fi
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5358$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5359if ${ac_cv_sys_file_offset_bits+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361else
5362 while :; do
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365#include <sys/types.h>
5366 /* Check that off_t can represent 2**63 - 1 correctly.
5367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5368 since some C++ compilers masquerading as C compilers
5369 incorrectly reject 9223372036854775807. */
5370#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5372 && LARGE_OFF_T % 2147483647 == 1)
5373 ? 1 : -1];
5374int
5375main ()
5376{
5377
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382if ac_fn_c_try_compile "$LINENO"; then :
5383 ac_cv_sys_file_offset_bits=no; break
5384fi
5385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h. */
5388#define _FILE_OFFSET_BITS 64
5389#include <sys/types.h>
5390 /* Check that off_t can represent 2**63 - 1 correctly.
5391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5392 since some C++ compilers masquerading as C compilers
5393 incorrectly reject 9223372036854775807. */
5394#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5396 && LARGE_OFF_T % 2147483647 == 1)
5397 ? 1 : -1];
5398int
5399main ()
5400{
5401
5402 ;
5403 return 0;
5404}
5405_ACEOF
5406if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_cv_sys_file_offset_bits=64; break
5408fi
5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ac_cv_sys_file_offset_bits=unknown
5411 break
5412done
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5415$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5416case $ac_cv_sys_file_offset_bits in #(
5417 no | unknown) ;;
5418 *)
5419cat >>confdefs.h <<_ACEOF
5420#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5421_ACEOF
5422;;
5423esac
5424rm -rf conftest*
5425 if test $ac_cv_sys_file_offset_bits = unknown; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5427$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5428if ${ac_cv_sys_large_files+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 while :; do
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <sys/types.h>
5435 /* Check that off_t can represent 2**63 - 1 correctly.
5436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5437 since some C++ compilers masquerading as C compilers
5438 incorrectly reject 9223372036854775807. */
5439#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5441 && LARGE_OFF_T % 2147483647 == 1)
5442 ? 1 : -1];
5443int
5444main ()
5445{
5446
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_sys_large_files=no; break
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#define _LARGE_FILES 1
5458#include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5467int
5468main ()
5469{
5470
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_sys_large_files=1; break
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_cv_sys_large_files=unknown
5480 break
5481done
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5484$as_echo "$ac_cv_sys_large_files" >&6; }
5485case $ac_cv_sys_large_files in #(
5486 no | unknown) ;;
5487 *)
5488cat >>confdefs.h <<_ACEOF
5489#define _LARGE_FILES $ac_cv_sys_large_files
5490_ACEOF
5491;;
5492esac
5493rm -rf conftest*
5494 fi
5495
5496
5497fi
5498
5499
5500if test -z "$AR" ; then
5501 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5502fi
5503
5504# Extract the first word of "passwd", so it can be a program name with args.
5505set dummy passwd; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510else
5511 case $PATH_PASSWD_PROG in
5512 [\\/]* | ?:[\\/]*)
5513 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5514 ;;
5515 *)
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528 done
5529IFS=$as_save_IFS
5530
5531 ;;
5532esac
5533fi
5534PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5535if test -n "$PATH_PASSWD_PROG"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5537$as_echo "$PATH_PASSWD_PROG" >&6; }
5538else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5541fi
5542
5543
5544if test ! -z "$PATH_PASSWD_PROG" ; then
5545
5546cat >>confdefs.h <<_ACEOF
5547#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5548_ACEOF
5549
5550fi
5551
5552if test -z "$LD" ; then
5553 LD=$CC
5554fi
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5558$as_echo_n "checking for inline... " >&6; }
5559if ${ac_cv_c_inline+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 ac_cv_c_inline=no
5563for ac_kw in inline __inline__ __inline; do
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h. */
5566#ifndef __cplusplus
5567typedef int foo_t;
5568static $ac_kw foo_t static_foo () {return 0; }
5569$ac_kw foo_t foo () {return 0; }
5570#endif
5571
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_c_inline=$ac_kw
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 test "$ac_cv_c_inline" != no && break
5578done
5579
5580fi
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5582$as_echo "$ac_cv_c_inline" >&6; }
5583
5584case $ac_cv_c_inline in
5585 inline | yes) ;;
5586 *)
5587 case $ac_cv_c_inline in
5588 no) ac_val=;;
5589 *) ac_val=$ac_cv_c_inline;;
5590 esac
5591 cat >>confdefs.h <<_ACEOF
5592#ifndef __cplusplus
5593#define inline $ac_val
5594#endif
5595_ACEOF
5596 ;;
5597esac
5598
5599
5600ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5601"
5602if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5603 have_llong_max=1
5604fi
5605
5606ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5607 #include <sys/types.h>
5608 #include <sys/param.h>
5609 #include <dev/systrace.h>
5610
5611"
5612if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5613 have_systr_policy_kill=1
5614fi
5615
5616ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5617 #include <sys/types.h>
5618 #include <sys/resource.h>
5619
5620"
5621if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5622
5623$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5624
5625fi
5626
5627ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5628 #include <sys/types.h>
5629 #include <linux/prctl.h>
5630
5631"
5632if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5633 have_linux_no_new_privs=1
5634fi
5635
5636
5637openssl=yes
5638
5639# Check whether --with-openssl was given.
5640if test "${with_openssl+set}" = set; then :
5641 withval=$with_openssl; if test "x$withval" = "xno" ; then
5642 openssl=no
5643 fi
5644
5645
5646fi
5647
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5
5649$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; }
5650if test "x$openssl" = "xyes" ; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653
5654cat >>confdefs.h <<_ACEOF
5655#define WITH_OPENSSL 1
5656_ACEOF
5657
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663use_stack_protector=1
5664use_toolchain_hardening=1
5665
5666# Check whether --with-stackprotect was given.
5667if test "${with_stackprotect+set}" = set; then :
5668 withval=$with_stackprotect;
5669 if test "x$withval" = "xno"; then
5670 use_stack_protector=0
5671 fi
5672fi
5673
5674
5675# Check whether --with-hardening was given.
5676if test "${with_hardening+set}" = set; then :
5677 withval=$with_hardening;
5678 if test "x$withval" = "xno"; then
5679 use_toolchain_hardening=0
5680 fi
5681fi
5682
5683
5684# We use -Werror for the tests only so that we catch warnings like "this is
5685# on by default" for things like -fPIE.
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
5687$as_echo_n "checking if $CC supports -Werror... " >&6; }
5688saved_CFLAGS="$CFLAGS"
5689CFLAGS="$CFLAGS -Werror"
5690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h. */
5692int main(void) { return 0; }
5693_ACEOF
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697 WERROR="-Werror"
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701 WERROR=""
5702
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705CFLAGS="$saved_CFLAGS"
5706
5707if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5708 {
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5
5710$as_echo_n "checking if $CC supports compile flag -pipe... " >&6; }
5711 saved_CFLAGS="$CFLAGS"
5712 CFLAGS="$CFLAGS $WERROR -pipe"
5713 _define_flag=""
5714 test "x$_define_flag" = "x" && _define_flag="-pipe"
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h. */
5717
5718#include <stdlib.h>
5719#include <stdio.h>
5720int main(int argc, char **argv) {
5721 /* Some math to catch -ftrapv problems in the toolchain */
5722 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5723 float l = i * 2.1;
5724 double m = l / 0.5;
5725 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5726 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5727 exit(0);
5728}
5729
5730_ACEOF
5731if ac_fn_c_try_compile "$LINENO"; then :
5732
5733if `grep -i "unrecognized option" conftest.err >/dev/null`
5734then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737 CFLAGS="$saved_CFLAGS"
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741 CFLAGS="$saved_CFLAGS $_define_flag"
5742fi
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746 CFLAGS="$saved_CFLAGS"
5747
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750}
5751 {
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5
5753$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; }
5754 saved_CFLAGS="$CFLAGS"
5755 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5756 _define_flag=""
5757 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h. */
5760
5761#include <stdlib.h>
5762#include <stdio.h>
5763int main(int argc, char **argv) {
5764 /* Some math to catch -ftrapv problems in the toolchain */
5765 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5766 float l = i * 2.1;
5767 double m = l / 0.5;
5768 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5769 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5770 exit(0);
5771}
5772
5773_ACEOF
5774if ac_fn_c_try_compile "$LINENO"; then :
5775
5776if `grep -i "unrecognized option" conftest.err >/dev/null`
5777then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780 CFLAGS="$saved_CFLAGS"
5781else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5783$as_echo "yes" >&6; }
5784 CFLAGS="$saved_CFLAGS $_define_flag"
5785fi
5786else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789 CFLAGS="$saved_CFLAGS"
5790
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793}
5794 {
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5796$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; }
5797 saved_CFLAGS="$CFLAGS"
5798 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5799 _define_flag=""
5800 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h. */
5803
5804#include <stdlib.h>
5805#include <stdio.h>
5806int main(int argc, char **argv) {
5807 /* Some math to catch -ftrapv problems in the toolchain */
5808 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5809 float l = i * 2.1;
5810 double m = l / 0.5;
5811 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5812 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5813 exit(0);
5814}
5815
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818
5819if `grep -i "unrecognized option" conftest.err >/dev/null`
5820then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823 CFLAGS="$saved_CFLAGS"
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5826$as_echo "yes" >&6; }
5827 CFLAGS="$saved_CFLAGS $_define_flag"
5828fi
5829else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831$as_echo "no" >&6; }
5832 CFLAGS="$saved_CFLAGS"
5833
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836}
5837 {
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5
5839$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; }
5840 saved_CFLAGS="$CFLAGS"
5841 CFLAGS="$CFLAGS $WERROR -Wall"
5842 _define_flag=""
5843 test "x$_define_flag" = "x" && _define_flag="-Wall"
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846
5847#include <stdlib.h>
5848#include <stdio.h>
5849int main(int argc, char **argv) {
5850 /* Some math to catch -ftrapv problems in the toolchain */
5851 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5852 float l = i * 2.1;
5853 double m = l / 0.5;
5854 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5855 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5856 exit(0);
5857}
5858
5859_ACEOF
5860if ac_fn_c_try_compile "$LINENO"; then :
5861
5862if `grep -i "unrecognized option" conftest.err >/dev/null`
5863then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866 CFLAGS="$saved_CFLAGS"
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5869$as_echo "yes" >&6; }
5870 CFLAGS="$saved_CFLAGS $_define_flag"
5871fi
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875 CFLAGS="$saved_CFLAGS"
5876
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879}
5880 {
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5
5882$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; }
5883 saved_CFLAGS="$CFLAGS"
5884 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5885 _define_flag=""
5886 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h. */
5889
5890#include <stdlib.h>
5891#include <stdio.h>
5892int main(int argc, char **argv) {
5893 /* Some math to catch -ftrapv problems in the toolchain */
5894 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5895 float l = i * 2.1;
5896 double m = l / 0.5;
5897 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5898 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5899 exit(0);
5900}
5901
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904
5905if `grep -i "unrecognized option" conftest.err >/dev/null`
5906then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909 CFLAGS="$saved_CFLAGS"
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5912$as_echo "yes" >&6; }
5913 CFLAGS="$saved_CFLAGS $_define_flag"
5914fi
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918 CFLAGS="$saved_CFLAGS"
5919
5920fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922}
5923 {
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5
5925$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; }
5926 saved_CFLAGS="$CFLAGS"
5927 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5928 _define_flag=""
5929 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932
5933#include <stdlib.h>
5934#include <stdio.h>
5935int main(int argc, char **argv) {
5936 /* Some math to catch -ftrapv problems in the toolchain */
5937 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5938 float l = i * 2.1;
5939 double m = l / 0.5;
5940 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5941 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5942 exit(0);
5943}
5944
5945_ACEOF
5946if ac_fn_c_try_compile "$LINENO"; then :
5947
5948if `grep -i "unrecognized option" conftest.err >/dev/null`
5949then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951$as_echo "no" >&6; }
5952 CFLAGS="$saved_CFLAGS"
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5955$as_echo "yes" >&6; }
5956 CFLAGS="$saved_CFLAGS $_define_flag"
5957fi
5958else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961 CFLAGS="$saved_CFLAGS"
5962
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965}
5966 {
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5
5968$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; }
5969 saved_CFLAGS="$CFLAGS"
5970 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5971 _define_flag=""
5972 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975
5976#include <stdlib.h>
5977#include <stdio.h>
5978int main(int argc, char **argv) {
5979 /* Some math to catch -ftrapv problems in the toolchain */
5980 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5981 float l = i * 2.1;
5982 double m = l / 0.5;
5983 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5984 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5985 exit(0);
5986}
5987
5988_ACEOF
5989if ac_fn_c_try_compile "$LINENO"; then :
5990
5991if `grep -i "unrecognized option" conftest.err >/dev/null`
5992then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995 CFLAGS="$saved_CFLAGS"
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998$as_echo "yes" >&6; }
5999 CFLAGS="$saved_CFLAGS $_define_flag"
6000fi
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004 CFLAGS="$saved_CFLAGS"
6005
6006fi
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008}
6009 {
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5
6011$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; }
6012 saved_CFLAGS="$CFLAGS"
6013 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6014 _define_flag=""
6015 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h. */
6018
6019#include <stdlib.h>
6020#include <stdio.h>
6021int main(int argc, char **argv) {
6022 /* Some math to catch -ftrapv problems in the toolchain */
6023 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6024 float l = i * 2.1;
6025 double m = l / 0.5;
6026 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6027 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6028 exit(0);
6029}
6030
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"; then :
6033
6034if `grep -i "unrecognized option" conftest.err >/dev/null`
6035then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038 CFLAGS="$saved_CFLAGS"
6039else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041$as_echo "yes" >&6; }
6042 CFLAGS="$saved_CFLAGS $_define_flag"
6043fi
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047 CFLAGS="$saved_CFLAGS"
6048
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051}
6052 {
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6054$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; }
6055 saved_CFLAGS="$CFLAGS"
6056 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6057 _define_flag=""
6058 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062#include <stdlib.h>
6063#include <stdio.h>
6064int main(int argc, char **argv) {
6065 /* Some math to catch -ftrapv problems in the toolchain */
6066 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6067 float l = i * 2.1;
6068 double m = l / 0.5;
6069 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6070 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6071 exit(0);
6072}
6073
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"; then :
6076
6077if `grep -i "unrecognized option" conftest.err >/dev/null`
6078then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081 CFLAGS="$saved_CFLAGS"
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6084$as_echo "yes" >&6; }
6085 CFLAGS="$saved_CFLAGS $_define_flag"
6086fi
6087else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090 CFLAGS="$saved_CFLAGS"
6091
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094}
6095 {
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5
6097$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; }
6098 saved_CFLAGS="$CFLAGS"
6099 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6100 _define_flag="-Wno-pointer-sign"
6101 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103/* end confdefs.h. */
6104
6105#include <stdlib.h>
6106#include <stdio.h>
6107int main(int argc, char **argv) {
6108 /* Some math to catch -ftrapv problems in the toolchain */
6109 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6110 float l = i * 2.1;
6111 double m = l / 0.5;
6112 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6113 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6114 exit(0);
6115}
6116
6117_ACEOF
6118if ac_fn_c_try_compile "$LINENO"; then :
6119
6120if `grep -i "unrecognized option" conftest.err >/dev/null`
6121then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124 CFLAGS="$saved_CFLAGS"
6125else
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6127$as_echo "yes" >&6; }
6128 CFLAGS="$saved_CFLAGS $_define_flag"
6129fi
6130else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133 CFLAGS="$saved_CFLAGS"
6134
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137}
6138 {
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5
6140$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; }
6141 saved_CFLAGS="$CFLAGS"
6142 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6143 _define_flag="-Wno-unused-result"
6144 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h. */
6147
6148#include <stdlib.h>
6149#include <stdio.h>
6150int main(int argc, char **argv) {
6151 /* Some math to catch -ftrapv problems in the toolchain */
6152 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6153 float l = i * 2.1;
6154 double m = l / 0.5;
6155 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6156 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6157 exit(0);
6158}
6159
6160_ACEOF
6161if ac_fn_c_try_compile "$LINENO"; then :
6162
6163if `grep -i "unrecognized option" conftest.err >/dev/null`
6164then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167 CFLAGS="$saved_CFLAGS"
6168else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6170$as_echo "yes" >&6; }
6171 CFLAGS="$saved_CFLAGS $_define_flag"
6172fi
6173else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176 CFLAGS="$saved_CFLAGS"
6177
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180}
6181 {
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6183$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; }
6184 saved_CFLAGS="$CFLAGS"
6185 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6186 _define_flag=""
6187 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h. */
6190
6191#include <stdlib.h>
6192#include <stdio.h>
6193int main(int argc, char **argv) {
6194 /* Some math to catch -ftrapv problems in the toolchain */
6195 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6196 float l = i * 2.1;
6197 double m = l / 0.5;
6198 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6199 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6200 exit(0);
6201}
6202
6203_ACEOF
6204if ac_fn_c_try_compile "$LINENO"; then :
6205
6206if `grep -i "unrecognized option" conftest.err >/dev/null`
6207then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210 CFLAGS="$saved_CFLAGS"
6211else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213$as_echo "yes" >&6; }
6214 CFLAGS="$saved_CFLAGS $_define_flag"
6215fi
6216else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219 CFLAGS="$saved_CFLAGS"
6220
6221fi
6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223}
6224 if test "x$use_toolchain_hardening" = "x1"; then
6225 {
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6227$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; }
6228 saved_CFLAGS="$CFLAGS"
6229 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6230 _define_flag=""
6231 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h. */
6234
6235#include <stdlib.h>
6236#include <stdio.h>
6237int main(int argc, char **argv) {
6238 /* Some math to catch -ftrapv problems in the toolchain */
6239 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6240 float l = i * 2.1;
6241 double m = l / 0.5;
6242 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6243 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6244 exit(0);
6245}
6246
6247_ACEOF
6248if ac_fn_c_try_compile "$LINENO"; then :
6249
6250if `grep -i "unrecognized option" conftest.err >/dev/null`
6251then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254 CFLAGS="$saved_CFLAGS"
6255else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6257$as_echo "yes" >&6; }
6258 CFLAGS="$saved_CFLAGS $_define_flag"
6259fi
6260else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262$as_echo "no" >&6; }
6263 CFLAGS="$saved_CFLAGS"
6264
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267}
6268 {
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5
6270$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; }
6271 saved_LDFLAGS="$LDFLAGS"
6272 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6273 _define_flag=""
6274 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277
6278#include <stdlib.h>
6279#include <stdio.h>
6280int main(int argc, char **argv) {
6281 /* Some math to catch -ftrapv problems in the toolchain */
6282 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6283 float l = i * 2.1;
6284 double m = l / 0.5;
6285 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6286 long long p = n * o;
6287 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6288 exit(0);
6289}
6290
6291_ACEOF
6292if ac_fn_c_try_link "$LINENO"; then :
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294$as_echo "yes" >&6; }
6295 LDFLAGS="$saved_LDFLAGS $_define_flag"
6296else
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298$as_echo "no" >&6; }
6299 LDFLAGS="$saved_LDFLAGS"
6300
6301fi
6302rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6304}
6305 {
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5
6307$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; }
6308 saved_LDFLAGS="$LDFLAGS"
6309 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6310 _define_flag=""
6311 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314
6315#include <stdlib.h>
6316#include <stdio.h>
6317int main(int argc, char **argv) {
6318 /* Some math to catch -ftrapv problems in the toolchain */
6319 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6320 float l = i * 2.1;
6321 double m = l / 0.5;
6322 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6323 long long p = n * o;
6324 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6325 exit(0);
6326}
6327
6328_ACEOF
6329if ac_fn_c_try_link "$LINENO"; then :
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6331$as_echo "yes" >&6; }
6332 LDFLAGS="$saved_LDFLAGS $_define_flag"
6333else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335$as_echo "no" >&6; }
6336 LDFLAGS="$saved_LDFLAGS"
6337
6338fi
6339rm -f core conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
6341}
6342 {
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6344$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; }
6345 saved_LDFLAGS="$LDFLAGS"
6346 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6347 _define_flag=""
6348 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352#include <stdlib.h>
6353#include <stdio.h>
6354int main(int argc, char **argv) {
6355 /* Some math to catch -ftrapv problems in the toolchain */
6356 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6357 float l = i * 2.1;
6358 double m = l / 0.5;
6359 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6360 long long p = n * o;
6361 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6362 exit(0);
6363}
6364
6365_ACEOF
6366if ac_fn_c_try_link "$LINENO"; then :
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6368$as_echo "yes" >&6; }
6369 LDFLAGS="$saved_LDFLAGS $_define_flag"
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373 LDFLAGS="$saved_LDFLAGS"
6374
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378}
6379 # NB. -ftrapv expects certain support functions to be present in
6380 # the compiler library (libgcc or similar) to detect integer operations
6381 # that can overflow. We must check that the result of enabling it
6382 # actually links. The test program compiled/linked includes a number
6383 # of integer operations that should exercise this.
6384 {
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6386$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; }
6387 saved_CFLAGS="$CFLAGS"
6388 CFLAGS="$CFLAGS $WERROR -ftrapv"
6389 _define_flag=""
6390 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h. */
6393
6394#include <stdlib.h>
6395#include <stdio.h>
6396int main(int argc, char **argv) {
6397 /* Some math to catch -ftrapv problems in the toolchain */
6398 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6399 float l = i * 2.1;
6400 double m = l / 0.5;
6401 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6402 long long int p = n * o;
6403 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
6404 exit(0);
6405}
6406
6407_ACEOF
6408if ac_fn_c_try_link "$LINENO"; then :
6409
6410if `grep -i "unrecognized option" conftest.err >/dev/null`
6411then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414 CFLAGS="$saved_CFLAGS"
6415else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417$as_echo "yes" >&6; }
6418 CFLAGS="$saved_CFLAGS $_define_flag"
6419fi
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423 CFLAGS="$saved_CFLAGS"
6424
6425fi
6426rm -f core conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6428}
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6431$as_echo_n "checking gcc version... " >&6; }
6432 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6433 case $GCC_VER in
6434 1.*) no_attrib_nonnull=1 ;;
6435 2.8* | 2.9*)
6436 no_attrib_nonnull=1
6437 ;;
6438 2.*) no_attrib_nonnull=1 ;;
6439 *) ;;
6440 esac
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
6442$as_echo "$GCC_VER" >&6; }
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
6445$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
6446 saved_CFLAGS="$CFLAGS"
6447 CFLAGS="$CFLAGS -fno-builtin-memset"
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h. */
6450 #include <string.h>
6451int
6452main ()
6453{
6454 char b[10]; memset(b, 0, sizeof(b));
6455 ;
6456 return 0;
6457}
6458_ACEOF
6459if ac_fn_c_try_link "$LINENO"; then :
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6461$as_echo "yes" >&6; }
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465 CFLAGS="$saved_CFLAGS"
6466
6467fi
6468rm -f core conftest.err conftest.$ac_objext \
6469 conftest$ac_exeext conftest.$ac_ext
6470
6471 # -fstack-protector-all doesn't always work for some GCC versions
6472 # and/or platforms, so we test if we can. If it's not supported
6473 # on a given platform gcc will emit a warning so we use -Werror.
6474 if test "x$use_stack_protector" = "x1"; then
6475 for t in -fstack-protector-strong -fstack-protector-all \
6476 -fstack-protector; do
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
6478$as_echo_n "checking if $CC supports $t... " >&6; }
6479 saved_CFLAGS="$CFLAGS"
6480 saved_LDFLAGS="$LDFLAGS"
6481 CFLAGS="$CFLAGS $t -Werror"
6482 LDFLAGS="$LDFLAGS $t -Werror"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h. */
6485 #include <stdio.h>
6486int
6487main ()
6488{
6489
6490 char x[256];
6491 snprintf(x, sizeof(x), "XXX");
6492
6493 ;
6494 return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_link "$LINENO"; then :
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6499$as_echo "yes" >&6; }
6500 CFLAGS="$saved_CFLAGS $t"
6501 LDFLAGS="$saved_LDFLAGS $t"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
6503$as_echo_n "checking if $t works... " >&6; }
6504 if test "$cross_compiling" = yes; then :
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
6506$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6507 break
6508
6509else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512 #include <stdio.h>
6513int
6514main ()
6515{
6516
6517 char x[256];
6518 snprintf(x, sizeof(x), "XXX");
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_run "$LINENO"; then :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6526$as_echo "yes" >&6; }
6527 break
6528else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6533 conftest.$ac_objext conftest.beam conftest.$ac_ext
6534fi
6535
6536
6537else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539$as_echo "no" >&6; }
6540
6541fi
6542rm -f core conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6544 CFLAGS="$saved_CFLAGS"
6545 LDFLAGS="$saved_LDFLAGS"
6546 done
6547 fi
6548
6549 if test -z "$have_llong_max"; then
6550 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6551 unset ac_cv_have_decl_LLONG_MAX
6552 saved_CFLAGS="$CFLAGS"
6553 CFLAGS="$CFLAGS -std=gnu99"
6554 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
6555
6556"
6557if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
6558 have_llong_max=1
6559else
6560 CFLAGS="$saved_CFLAGS"
6561fi
6562
6563 fi
6564fi
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5
6567$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; }
6568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h. */
6570
6571#include <stdlib.h>
6572__attribute__((__unused__)) static void foo(void){return;}
6573int
6574main ()
6575{
6576 exit(0);
6577 ;
6578 return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_compile "$LINENO"; then :
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6583$as_echo "yes" >&6; }
6584else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587
6588$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h
6589
6590
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593
6594if test "x$no_attrib_nonnull" != "x1" ; then
6595
6596$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6597
6598fi
6599
6600
6601# Check whether --with-rpath was given.
6602if test "${with_rpath+set}" = set; then :
6603 withval=$with_rpath;
6604 if test "x$withval" = "xno" ; then
6605 need_dash_r=""
6606 fi
6607 if test "x$withval" = "xyes" ; then
6608 need_dash_r=1
6609 fi
6610
6611
6612fi
6613
6614
6615# Allow user to specify flags
6616
6617# Check whether --with-cflags was given.
6618if test "${with_cflags+set}" = set; then :
6619 withval=$with_cflags;
6620 if test -n "$withval" && test "x$withval" != "xno" && \
6621 test "x${withval}" != "xyes"; then
6622 CFLAGS="$CFLAGS $withval"
6623 fi
6624
6625
6626fi
6627
6628
6629
6630# Check whether --with-cflags-after was given.
6631if test "${with_cflags_after+set}" = set; then :
6632 withval=$with_cflags_after;
6633 if test -n "$withval" && test "x$withval" != "xno" && \
6634 test "x${withval}" != "xyes"; then
6635 CFLAGS_AFTER="$withval"
6636 fi
6637
6638
6639fi
6640
6641
6642# Check whether --with-cppflags was given.
6643if test "${with_cppflags+set}" = set; then :
6644 withval=$with_cppflags;
6645 if test -n "$withval" && test "x$withval" != "xno" && \
6646 test "x${withval}" != "xyes"; then
6647 CPPFLAGS="$CPPFLAGS $withval"
6648 fi
6649
6650
6651fi
6652
6653
6654# Check whether --with-ldflags was given.
6655if test "${with_ldflags+set}" = set; then :
6656 withval=$with_ldflags;
6657 if test -n "$withval" && test "x$withval" != "xno" && \
6658 test "x${withval}" != "xyes"; then
6659 LDFLAGS="$LDFLAGS $withval"
6660 fi
6661
6662
6663fi
6664
6665
6666# Check whether --with-ldflags-after was given.
6667if test "${with_ldflags_after+set}" = set; then :
6668 withval=$with_ldflags_after;
6669 if test -n "$withval" && test "x$withval" != "xno" && \
6670 test "x${withval}" != "xyes"; then
6671 LDFLAGS_AFTER="$withval"
6672 fi
6673
6674
6675fi
6676
6677
6678# Check whether --with-libs was given.
6679if test "${with_libs+set}" = set; then :
6680 withval=$with_libs;
6681 if test -n "$withval" && test "x$withval" != "xno" && \
6682 test "x${withval}" != "xyes"; then
6683 LIBS="$LIBS $withval"
6684 fi
6685
6686
6687fi
6688
6689
6690# Check whether --with-Werror was given.
6691if test "${with_Werror+set}" = set; then :
6692 withval=$with_Werror;
6693 if test -n "$withval" && test "x$withval" != "xno"; then
6694 werror_flags="-Werror"
6695 if test "x${withval}" != "xyes"; then
6696 werror_flags="$withval"
6697 fi
6698 fi
6699
6700
6701fi
6702
6703
6704for ac_header in \
6705 blf.h \
6706 bstring.h \
6707 crypt.h \
6708 crypto/sha2.h \
6709 dirent.h \
6710 endian.h \
6711 elf.h \
6712 err.h \
6713 features.h \
6714 fcntl.h \
6715 floatingpoint.h \
6716 getopt.h \
6717 glob.h \
6718 ia.h \
6719 iaf.h \
6720 inttypes.h \
6721 langinfo.h \
6722 limits.h \
6723 locale.h \
6724 login.h \
6725 maillock.h \
6726 ndir.h \
6727 net/if_tun.h \
6728 netdb.h \
6729 netgroup.h \
6730 pam/pam_appl.h \
6731 paths.h \
6732 poll.h \
6733 pty.h \
6734 readpassphrase.h \
6735 rpc/types.h \
6736 security/pam_appl.h \
6737 sha2.h \
6738 shadow.h \
6739 stddef.h \
6740 stdint.h \
6741 string.h \
6742 strings.h \
6743 sys/audit.h \
6744 sys/bitypes.h \
6745 sys/bsdtty.h \
6746 sys/cdefs.h \
6747 sys/dir.h \
6748 sys/mman.h \
6749 sys/ndir.h \
6750 sys/poll.h \
6751 sys/prctl.h \
6752 sys/pstat.h \
6753 sys/ptrace.h \
6754 sys/select.h \
6755 sys/stat.h \
6756 sys/stream.h \
6757 sys/stropts.h \
6758 sys/strtio.h \
6759 sys/statvfs.h \
6760 sys/sysmacros.h \
6761 sys/time.h \
6762 sys/timers.h \
6763 time.h \
6764 tmpdir.h \
6765 ttyent.h \
6766 ucred.h \
6767 unistd.h \
6768 usersec.h \
6769 util.h \
6770 utime.h \
6771 utmp.h \
6772 utmpx.h \
6773 vis.h \
6774 wchar.h \
6775
6776do :
6777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6780 cat >>confdefs.h <<_ACEOF
6781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782_ACEOF
6783
6784fi
6785
6786done
6787
6788
6789# sys/capsicum.h requires sys/types.h
6790for ac_header in sys/capsicum.h
6791do :
6792 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "
6793#ifdef HAVE_SYS_TYPES_H
6794# include <sys/types.h>
6795#endif
6796
6797"
6798if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800#define HAVE_SYS_CAPSICUM_H 1
6801_ACEOF
6802
6803fi
6804
6805done
6806
6807
6808# lastlog.h requires sys/time.h to be included first on Solaris
6809for ac_header in lastlog.h
6810do :
6811 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6812#ifdef HAVE_SYS_TIME_H
6813# include <sys/time.h>
6814#endif
6815
6816"
6817if test "x$ac_cv_header_lastlog_h" = xyes; then :
6818 cat >>confdefs.h <<_ACEOF
6819#define HAVE_LASTLOG_H 1
6820_ACEOF
6821
6822fi
6823
6824done
6825
6826
6827# sys/ptms.h requires sys/stream.h to be included first on Solaris
6828for ac_header in sys/ptms.h
6829do :
6830 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6831#ifdef HAVE_SYS_STREAM_H
6832# include <sys/stream.h>
6833#endif
6834
6835"
6836if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6837 cat >>confdefs.h <<_ACEOF
6838#define HAVE_SYS_PTMS_H 1
6839_ACEOF
6840
6841fi
6842
6843done
6844
6845
6846# login_cap.h requires sys/types.h on NetBSD
6847for ac_header in login_cap.h
6848do :
6849 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6850#include <sys/types.h>
6851
6852"
6853if test "x$ac_cv_header_login_cap_h" = xyes; then :
6854 cat >>confdefs.h <<_ACEOF
6855#define HAVE_LOGIN_CAP_H 1
6856_ACEOF
6857
6858fi
6859
6860done
6861
6862
6863# older BSDs need sys/param.h before sys/mount.h
6864for ac_header in sys/mount.h
6865do :
6866 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6867#include <sys/param.h>
6868
6869"
6870if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6871 cat >>confdefs.h <<_ACEOF
6872#define HAVE_SYS_MOUNT_H 1
6873_ACEOF
6874
6875fi
6876
6877done
6878
6879
6880# Android requires sys/socket.h to be included before sys/un.h
6881for ac_header in sys/un.h
6882do :
6883 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6884#include <sys/types.h>
6885#include <sys/socket.h>
6886
6887"
6888if test "x$ac_cv_header_sys_un_h" = xyes; then :
6889 cat >>confdefs.h <<_ACEOF
6890#define HAVE_SYS_UN_H 1
6891_ACEOF
6892
6893fi
6894
6895done
6896
6897
6898# Messages for features tested for in target-specific section
6899SIA_MSG="no"
6900SPC_MSG="no"
6901SP_MSG="no"
6902SPP_MSG="no"
6903
6904# Support for Solaris/Illumos privileges (this test is used by both
6905# the --with-solaris-privs option and --with-sandbox=solaris).
6906SOLARIS_PRIVS="no"
6907
6908# Check for some target-specific stuff
6909case "$host" in
6910*-*-aix*)
6911 # Some versions of VAC won't allow macro redefinitions at
6912 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6913 # particularly with older versions of vac or xlc.
6914 # It also throws errors about null macro argments, but these are
6915 # not fatal.
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6917$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h. */
6920
6921#define testmacro foo
6922#define testmacro bar
6923int
6924main ()
6925{
6926 exit(0);
6927 ;
6928 return 0;
6929}
6930_ACEOF
6931if ac_fn_c_try_compile "$LINENO"; then :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6933$as_echo "yes" >&6; }
6934else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936$as_echo "no" >&6; }
6937 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6938 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6939 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6940 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6941
6942
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6947$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6948 if (test -z "$blibpath"); then
6949 blibpath="/usr/lib:/lib"
6950 fi
6951 saved_LDFLAGS="$LDFLAGS"
6952 if test "$GCC" = "yes"; then
6953 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6954 else
6955 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6956 fi
6957 for tryflags in $flags ;do
6958 if (test -z "$blibflags"); then
6959 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h. */
6962
6963int
6964main ()
6965{
6966
6967 ;
6968 return 0;
6969}
6970_ACEOF
6971if ac_fn_c_try_link "$LINENO"; then :
6972 blibflags=$tryflags
6973fi
6974rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 fi
6977 done
6978 if (test -z "$blibflags"); then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6980$as_echo "not found" >&6; }
6981 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6984$as_echo "$blibflags" >&6; }
6985 fi
6986 LDFLAGS="$saved_LDFLAGS"
6987 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6988if test "x$ac_cv_func_authenticate" = xyes; then :
6989
6990$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6991
6992else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6994$as_echo_n "checking for authenticate in -ls... " >&6; }
6995if ${ac_cv_lib_s_authenticate+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997else
6998 ac_check_lib_save_LIBS=$LIBS
6999LIBS="-ls $LIBS"
7000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h. */
7002
7003/* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7006#ifdef __cplusplus
7007extern "C"
7008#endif
7009char authenticate ();
7010int
7011main ()
7012{
7013return authenticate ();
7014 ;
7015 return 0;
7016}
7017_ACEOF
7018if ac_fn_c_try_link "$LINENO"; then :
7019 ac_cv_lib_s_authenticate=yes
7020else
7021 ac_cv_lib_s_authenticate=no
7022fi
7023rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025LIBS=$ac_check_lib_save_LIBS
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
7028$as_echo "$ac_cv_lib_s_authenticate" >&6; }
7029if test "x$ac_cv_lib_s_authenticate" = xyes; then :
7030 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
7031
7032 LIBS="$LIBS -ls"
7033
7034fi
7035
7036
7037fi
7038
7039 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
7040"
7041if test "x$ac_cv_have_decl_authenticate" = xyes; then :
7042 ac_have_decl=1
7043else
7044 ac_have_decl=0
7045fi
7046
7047cat >>confdefs.h <<_ACEOF
7048#define HAVE_DECL_AUTHENTICATE $ac_have_decl
7049_ACEOF
7050ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
7051"
7052if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
7053 ac_have_decl=1
7054else
7055 ac_have_decl=0
7056fi
7057
7058cat >>confdefs.h <<_ACEOF
7059#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
7060_ACEOF
7061ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
7062"
7063if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
7064 ac_have_decl=1
7065else
7066 ac_have_decl=0
7067fi
7068
7069cat >>confdefs.h <<_ACEOF
7070#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
7071_ACEOF
7072ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
7073"
7074if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
7075 ac_have_decl=1
7076else
7077 ac_have_decl=0
7078fi
7079
7080cat >>confdefs.h <<_ACEOF
7081#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
7082_ACEOF
7083ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
7084"
7085if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
7086 ac_have_decl=1
7087else
7088 ac_have_decl=0
7089fi
7090
7091cat >>confdefs.h <<_ACEOF
7092#define HAVE_DECL_SETAUTHDB $ac_have_decl
7093_ACEOF
7094
7095 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
7096
7097"
7098if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
7099 ac_have_decl=1
7100else
7101 ac_have_decl=0
7102fi
7103
7104cat >>confdefs.h <<_ACEOF
7105#define HAVE_DECL_LOGINFAILED $ac_have_decl
7106_ACEOF
7107if test $ac_have_decl = 1; then :
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
7109$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h. */
7112 #include <usersec.h>
7113int
7114main ()
7115{
7116 (void)loginfailed("user","host","tty",0);
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121if ac_fn_c_try_compile "$LINENO"; then :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7123$as_echo "yes" >&6; }
7124
7125$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
7126
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133fi
7134
7135 for ac_func in getgrset setauthdb
7136do :
7137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7140 cat >>confdefs.h <<_ACEOF
7141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7142_ACEOF
7143
7144fi
7145done
7146
7147 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
7148 #include <fcntl.h>
7149
7150"
7151if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
7152
7153$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
7154
7155fi
7156
7157 check_for_aix_broken_getaddrinfo=1
7158
7159$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7160
7161
7162$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7163
7164
7165$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7166
7167
7168$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7169
7170
7171$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7172
7173
7174$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7175
7176
7177$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7178
7179
7180$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7181
7182
7183$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
7184
7185
7186$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7187
7188 ;;
7189*-*-android*)
7190
7191$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7192
7193
7194$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7195
7196 ;;
7197*-*-cygwin*)
7198 check_for_libcrypt_later=1
7199 LIBS="$LIBS /usr/lib/textreadmode.o"
7200
7201$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
7202
7203
7204$as_echo "#define USE_PIPES 1" >>confdefs.h
7205
7206
7207$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
7208
7209
7210$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7211
7212
7213$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7214
7215
7216$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7217
7218
7219$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
7220
7221
7222$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
7223
7224 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7225 # reasons which cause compile warnings, so we disable those warnings.
7226 {
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5
7228$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; }
7229 saved_CFLAGS="$CFLAGS"
7230 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7231 _define_flag=""
7232 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235
7236#include <stdlib.h>
7237#include <stdio.h>
7238int main(int argc, char **argv) {
7239 /* Some math to catch -ftrapv problems in the toolchain */
7240 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
7241 float l = i * 2.1;
7242 double m = l / 0.5;
7243 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
7244 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
7245 exit(0);
7246}
7247
7248_ACEOF
7249if ac_fn_c_try_compile "$LINENO"; then :
7250
7251if `grep -i "unrecognized option" conftest.err >/dev/null`
7252then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255 CFLAGS="$saved_CFLAGS"
7256else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7258$as_echo "yes" >&6; }
7259 CFLAGS="$saved_CFLAGS $_define_flag"
7260fi
7261else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
7264 CFLAGS="$saved_CFLAGS"
7265
7266fi
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268}
7269 ;;
7270*-*-dgux*)
7271
7272$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7273
7274 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7275
7276 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7277
7278 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7279
7280 ;;
7281*-*-darwin*)
7282 use_pie=auto
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
7284$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7285 if test "$cross_compiling" = yes; then :
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
7287$as_echo "assume it is working" >&6; }
7288else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h. */
7291 #include <mach-o/dyld.h>
7292main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7293 exit(0);
7294 else
7295 exit(1);
7296}
7297
7298_ACEOF
7299if ac_fn_c_try_run "$LINENO"; then :
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
7301$as_echo "working" >&6; }
7302else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
7304$as_echo "buggy" >&6; }
7305
7306$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7307
7308
7309fi
7310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7311 conftest.$ac_objext conftest.beam conftest.$ac_ext
7312fi
7313
7314 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7315
7316 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7317
7318 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7319
7320
7321$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7322
7323
7324cat >>confdefs.h <<_ACEOF
7325#define BIND_8_COMPAT 1
7326_ACEOF
7327
7328
7329$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7330
7331
7332$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7333
7334
7335$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7336
7337
7338 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
7339if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
7340
7341else
7342
7343$as_echo "#define AU_IPv4 0" >>confdefs.h
7344
7345 #include <bsm/audit.h>
7346
7347$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
7348
7349
7350fi
7351
7352
7353$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7354
7355 for ac_func in sandbox_init
7356do :
7357 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
7358if test "x$ac_cv_func_sandbox_init" = xyes; then :
7359 cat >>confdefs.h <<_ACEOF
7360#define HAVE_SANDBOX_INIT 1
7361_ACEOF
7362
7363fi
7364done
7365
7366 for ac_header in sandbox.h
7367do :
7368 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
7369if test "x$ac_cv_header_sandbox_h" = xyes; then :
7370 cat >>confdefs.h <<_ACEOF
7371#define HAVE_SANDBOX_H 1
7372_ACEOF
7373
7374fi
7375
7376done
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5
7379$as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; }
7380if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382else
7383 ac_check_lib_save_LIBS=$LIBS
7384LIBS="-lsandbox $LIBS"
7385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h. */
7387
7388/* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7391#ifdef __cplusplus
7392extern "C"
7393#endif
7394char sandbox_apply ();
7395int
7396main ()
7397{
7398return sandbox_apply ();
7399 ;
7400 return 0;
7401}
7402_ACEOF
7403if ac_fn_c_try_link "$LINENO"; then :
7404 ac_cv_lib_sandbox_sandbox_apply=yes
7405else
7406 ac_cv_lib_sandbox_sandbox_apply=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410LIBS=$ac_check_lib_save_LIBS
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5
7413$as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; }
7414if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then :
7415
7416 SSHDLIBS="$SSHDLIBS -lsandbox"
7417
7418fi
7419
7420 ;;
7421*-*-dragonfly*)
7422 SSHDLIBS="$SSHDLIBS -lcrypt"
7423 TEST_MALLOC_OPTIONS="AFGJPRX"
7424 ;;
7425*-*-haiku*)
7426 LIBS="$LIBS -lbsd "
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7428$as_echo_n "checking for socket in -lnetwork... " >&6; }
7429if ${ac_cv_lib_network_socket+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431else
7432 ac_check_lib_save_LIBS=$LIBS
7433LIBS="-lnetwork $LIBS"
7434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h. */
7436
7437/* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7440#ifdef __cplusplus
7441extern "C"
7442#endif
7443char socket ();
7444int
7445main ()
7446{
7447return socket ();
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452if ac_fn_c_try_link "$LINENO"; then :
7453 ac_cv_lib_network_socket=yes
7454else
7455 ac_cv_lib_network_socket=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459LIBS=$ac_check_lib_save_LIBS
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7462$as_echo "$ac_cv_lib_network_socket" >&6; }
7463if test "x$ac_cv_lib_network_socket" = xyes; then :
7464 cat >>confdefs.h <<_ACEOF
7465#define HAVE_LIBNETWORK 1
7466_ACEOF
7467
7468 LIBS="-lnetwork $LIBS"
7469
7470fi
7471
7472 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
7473
7474 MANTYPE=man
7475 ;;
7476*-*-hpux*)
7477 # first we define all of the options common to all HP-UX releases
7478 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7479 IPADDR_IN_DISPLAY=yes
7480 $as_echo "#define USE_PIPES 1" >>confdefs.h
7481
7482 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7483
7484
7485$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
7486
7487 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
7488
7489
7490$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
7491
7492 maildir="/var/mail"
7493 LIBS="$LIBS -lsec"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
7495$as_echo_n "checking for t_error in -lxnet... " >&6; }
7496if ${ac_cv_lib_xnet_t_error+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498else
7499 ac_check_lib_save_LIBS=$LIBS
7500LIBS="-lxnet $LIBS"
7501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503
7504/* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507#ifdef __cplusplus
7508extern "C"
7509#endif
7510char t_error ();
7511int
7512main ()
7513{
7514return t_error ();
7515 ;
7516 return 0;
7517}
7518_ACEOF
7519if ac_fn_c_try_link "$LINENO"; then :
7520 ac_cv_lib_xnet_t_error=yes
7521else
7522 ac_cv_lib_xnet_t_error=no
7523fi
7524rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526LIBS=$ac_check_lib_save_LIBS
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
7529$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7530if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
7531 cat >>confdefs.h <<_ACEOF
7532#define HAVE_LIBXNET 1
7533_ACEOF
7534
7535 LIBS="-lxnet $LIBS"
7536
7537else
7538 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
7539fi
7540
7541
7542 # next, we define all of the options specific to major releases
7543 case "$host" in
7544 *-*-hpux10*)
7545 if test -z "$GCC"; then
7546 CFLAGS="$CFLAGS -Ae"
7547 fi
7548 ;;
7549 *-*-hpux11*)
7550
7551$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7552
7553
7554$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7555
7556
7557$as_echo "#define USE_BTMP 1" >>confdefs.h
7558
7559 check_for_hpux_broken_getaddrinfo=1
7560 check_for_conflicting_getspnam=1
7561 ;;
7562 esac
7563
7564 # lastly, we define options specific to minor releases
7565 case "$host" in
7566 *-*-hpux10.26)
7567
7568$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7569
7570 disable_ptmx_check=yes
7571 LIBS="$LIBS -lsecpw"
7572 ;;
7573 esac
7574 ;;
7575*-*-irix5*)
7576 PATH="$PATH:/usr/etc"
7577
7578$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7579
7580 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7581
7582 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7583
7584 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7585
7586
7587$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7588
7589 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7590
7591 ;;
7592*-*-irix6*)
7593 PATH="$PATH:/usr/etc"
7594
7595$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
7596
7597
7598$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
7599
7600
7601$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
7602
7603 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
7604if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7605
7606$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
7607
7608fi
7609
7610 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
7611
7612 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7613
7614 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7615
7616 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7617
7618
7619$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7620
7621 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7622
7623 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7624
7625 ;;
7626*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7627 check_for_libcrypt_later=1
7628 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7629
7630 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7631
7632 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7633
7634
7635$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7636
7637
7638$as_echo "#define USE_BTMP 1" >>confdefs.h
7639
7640 ;;
7641*-*-linux*)
7642 no_dev_ptmx=1
7643 use_pie=auto
7644 check_for_libcrypt_later=1
7645 check_for_openpty_ctty_bug=1
7646 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE"
7647
7648$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7649
7650
7651$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
7652
7653 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
7654
7655
7656$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
7657
7658
7659$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
7660
7661 $as_echo "#define USE_BTMP 1" >>confdefs.h
7662
7663
7664$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
7665
7666 inet6_default_4in6=yes
7667 case `uname -r` in
7668 1.*|2.0.*)
7669
7670$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
7671
7672 ;;
7673 esac
7674 # tun(4) forwarding compat code
7675 for ac_header in linux/if_tun.h
7676do :
7677 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
7678if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
7679 cat >>confdefs.h <<_ACEOF
7680#define HAVE_LINUX_IF_TUN_H 1
7681_ACEOF
7682
7683fi
7684
7685done
7686
7687 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7688
7689$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
7690
7691
7692$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
7693
7694
7695$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7696
7697 fi
7698 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7699do :
7700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
7702"
7703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7704 cat >>confdefs.h <<_ACEOF
7705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706_ACEOF
7707
7708fi
7709
7710done
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5
7713$as_echo_n "checking for seccomp architecture... " >&6; }
7714 seccomp_audit_arch=
7715 case "$host" in
7716 x86_64-*)
7717 seccomp_audit_arch=AUDIT_ARCH_X86_64
7718 ;;
7719 i*86-*)
7720 seccomp_audit_arch=AUDIT_ARCH_I386
7721 ;;
7722 arm*-*)
7723 seccomp_audit_arch=AUDIT_ARCH_ARM
7724 ;;
7725 aarch64*-*)
7726 seccomp_audit_arch=AUDIT_ARCH_AARCH64
7727 ;;
7728 s390x-*)
7729 seccomp_audit_arch=AUDIT_ARCH_S390X
7730 ;;
7731 s390-*)
7732 seccomp_audit_arch=AUDIT_ARCH_S390
7733 ;;
7734 powerpc64-*)
7735 seccomp_audit_arch=AUDIT_ARCH_PPC64
7736 ;;
7737 powerpc64le-*)
7738 seccomp_audit_arch=AUDIT_ARCH_PPC64LE
7739 ;;
7740 mips-*)
7741 seccomp_audit_arch=AUDIT_ARCH_MIPS
7742 ;;
7743 mipsel-*)
7744 seccomp_audit_arch=AUDIT_ARCH_MIPSEL
7745 ;;
7746 mips64-*)
7747 seccomp_audit_arch=AUDIT_ARCH_MIPS64
7748 ;;
7749 mips64el-*)
7750 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64
7751 ;;
7752 esac
7753 if test "x$seccomp_audit_arch" != "x" ; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5
7755$as_echo "\"$seccomp_audit_arch\"" >&6; }
7756
7757cat >>confdefs.h <<_ACEOF
7758#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7759_ACEOF
7760
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5
7763$as_echo "architecture not supported" >&6; }
7764 fi
7765 ;;
7766mips-sony-bsd|mips-sony-newsos4)
7767
7768$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7769
7770 SONY=1
7771 ;;
7772*-*-netbsd*)
7773 check_for_libcrypt_before=1
7774 if test "x$withval" != "xno" ; then
7775 need_dash_r=1
7776 fi
7777 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
7778
7779$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7780
7781 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7782if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7783
7784else
7785
7786$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7787
7788fi
7789
7790
7791
7792$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
7793
7794 TEST_MALLOC_OPTIONS="AJRX"
7795
7796$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h
7797
7798 ;;
7799*-*-freebsd*)
7800 check_for_libcrypt_later=1
7801
7802$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7803
7804
7805$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7806
7807 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7808if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7809
7810else
7811
7812$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7813
7814fi
7815
7816
7817
7818$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7819
7820 TEST_MALLOC_OPTIONS="AJRX"
7821 # Preauth crypto occasionally uses file descriptors for crypto offload
7822 # and will crash if they cannot be opened.
7823
7824$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7825
7826 ;;
7827*-*-bsdi*)
7828 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7829
7830 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7831
7832 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7833
7834 ;;
7835*-next-*)
7836 conf_lastlog_location="/usr/adm/lastlog"
7837 conf_utmp_location=/etc/utmp
7838 conf_wtmp_location=/usr/adm/wtmp
7839 maildir=/usr/spool/mail
7840
7841$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7842
7843 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7844
7845 $as_echo "#define USE_PIPES 1" >>confdefs.h
7846
7847
7848$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7849
7850 ;;
7851*-*-openbsd*)
7852 use_pie=auto
7853
7854$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7855
7856
7857$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7858
7859
7860$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7861
7862
7863$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7864
7865 TEST_MALLOC_OPTIONS="AFGJPRX"
7866 ;;
7867*-*-solaris*)
7868 if test "x$withval" != "xno" ; then
7869 need_dash_r=1
7870 fi
7871 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7872
7873 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7874
7875 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7876
7877
7878$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7879
7880 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7881
7882 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7883
7884$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7885
7886
7887$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7888
7889
7890$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7891
7892 external_path_file=/etc/default/login
7893 # hardwire lastlog location (can't detect it on some versions)
7894 conf_lastlog_location="/var/adm/lastlog"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7896$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7897 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7898 if test "$sol2ver" -ge 8; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900$as_echo "yes" >&6; }
7901 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7902
7903
7904$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7905
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909 fi
7910 for ac_func in setpflags
7911do :
7912 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags"
7913if test "x$ac_cv_func_setpflags" = xyes; then :
7914 cat >>confdefs.h <<_ACEOF
7915#define HAVE_SETPFLAGS 1
7916_ACEOF
7917
7918fi
7919done
7920
7921 for ac_func in setppriv
7922do :
7923 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
7924if test "x$ac_cv_func_setppriv" = xyes; then :
7925 cat >>confdefs.h <<_ACEOF
7926#define HAVE_SETPPRIV 1
7927_ACEOF
7928
7929fi
7930done
7931
7932 for ac_func in priv_basicset
7933do :
7934 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset"
7935if test "x$ac_cv_func_priv_basicset" = xyes; then :
7936 cat >>confdefs.h <<_ACEOF
7937#define HAVE_PRIV_BASICSET 1
7938_ACEOF
7939
7940fi
7941done
7942
7943 for ac_header in priv.h
7944do :
7945 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
7946if test "x$ac_cv_header_priv_h" = xyes; then :
7947 cat >>confdefs.h <<_ACEOF
7948#define HAVE_PRIV_H 1
7949_ACEOF
7950
7951fi
7952
7953done
7954
7955
7956# Check whether --with-solaris-contracts was given.
7957if test "${with_solaris_contracts+set}" = set; then :
7958 withval=$with_solaris_contracts;
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7960$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7961if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 ac_check_lib_save_LIBS=$LIBS
7965LIBS="-lcontract $LIBS"
7966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h. */
7968
7969/* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
7972#ifdef __cplusplus
7973extern "C"
7974#endif
7975char ct_tmpl_activate ();
7976int
7977main ()
7978{
7979return ct_tmpl_activate ();
7980 ;
7981 return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"; then :
7985 ac_cv_lib_contract_ct_tmpl_activate=yes
7986else
7987 ac_cv_lib_contract_ct_tmpl_activate=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991LIBS=$ac_check_lib_save_LIBS
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7994$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7995if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7996
7997$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7998
7999 LIBS="$LIBS -lcontract"
8000 SPC_MSG="yes"
8001fi
8002
8003
8004fi
8005
8006
8007# Check whether --with-solaris-projects was given.
8008if test "${with_solaris_projects+set}" = set; then :
8009 withval=$with_solaris_projects;
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
8011$as_echo_n "checking for setproject in -lproject... " >&6; }
8012if ${ac_cv_lib_project_setproject+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014else
8015 ac_check_lib_save_LIBS=$LIBS
8016LIBS="-lproject $LIBS"
8017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h. */
8019
8020/* Override any GCC internal prototype to avoid an error.
8021 Use char because int might match the return type of a GCC
8022 builtin and then its argument prototype would still apply. */
8023#ifdef __cplusplus
8024extern "C"
8025#endif
8026char setproject ();
8027int
8028main ()
8029{
8030return setproject ();
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"; then :
8036 ac_cv_lib_project_setproject=yes
8037else
8038 ac_cv_lib_project_setproject=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042LIBS=$ac_check_lib_save_LIBS
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
8045$as_echo "$ac_cv_lib_project_setproject" >&6; }
8046if test "x$ac_cv_lib_project_setproject" = xyes; then :
8047
8048$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
8049
8050 LIBS="$LIBS -lproject"
8051 SP_MSG="yes"
8052fi
8053
8054
8055fi
8056
8057
8058# Check whether --with-solaris-privs was given.
8059if test "${with_solaris_privs+set}" = set; then :
8060 withval=$with_solaris_privs;
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5
8062$as_echo_n "checking for Solaris/Illumos privilege support... " >&6; }
8063 if test "x$ac_cv_func_setppriv" = "xyes" -a \
8064 "x$ac_cv_header_priv_h" = "xyes" ; then
8065 SOLARIS_PRIVS=yes
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8067$as_echo "found" >&6; }
8068
8069$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h
8070
8071
8072$as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h
8073
8074 SPP_MSG="yes"
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8077$as_echo "not found" >&6; }
8078 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5
8079 fi
8080
8081fi
8082
8083 TEST_SHELL=$SHELL # let configure find us a capable shell
8084 ;;
8085*-*-sunos4*)
8086 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8087 for ac_func in getpwanam
8088do :
8089 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
8090if test "x$ac_cv_func_getpwanam" = xyes; then :
8091 cat >>confdefs.h <<_ACEOF
8092#define HAVE_GETPWANAM 1
8093_ACEOF
8094
8095fi
8096done
8097
8098 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
8099
8100 conf_utmp_location=/etc/utmp
8101 conf_wtmp_location=/var/adm/wtmp
8102 conf_lastlog_location=/var/adm/lastlog
8103 $as_echo "#define USE_PIPES 1" >>confdefs.h
8104
8105 ;;
8106*-ncr-sysv*)
8107 LIBS="$LIBS -lc89"
8108 $as_echo "#define USE_PIPES 1" >>confdefs.h
8109
8110 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8111
8112 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8113
8114 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8115
8116 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8117
8118 ;;
8119*-sni-sysv*)
8120 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8122$as_echo_n "checking for dlsym in -ldl... " >&6; }
8123if ${ac_cv_lib_dl_dlsym+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125else
8126 ac_check_lib_save_LIBS=$LIBS
8127LIBS="-ldl $LIBS"
8128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130
8131/* Override any GCC internal prototype to avoid an error.
8132 Use char because int might match the return type of a GCC
8133 builtin and then its argument prototype would still apply. */
8134#ifdef __cplusplus
8135extern "C"
8136#endif
8137char dlsym ();
8138int
8139main ()
8140{
8141return dlsym ();
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146if ac_fn_c_try_link "$LINENO"; then :
8147 ac_cv_lib_dl_dlsym=yes
8148else
8149 ac_cv_lib_dl_dlsym=no
8150fi
8151rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153LIBS=$ac_check_lib_save_LIBS
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
8156$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
8157if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
8158 cat >>confdefs.h <<_ACEOF
8159#define HAVE_LIBDL 1
8160_ACEOF
8161
8162 LIBS="-ldl $LIBS"
8163
8164fi
8165
8166 # -lresolv needs to be at the end of LIBS or DNS lookups break
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
8168$as_echo_n "checking for res_query in -lresolv... " >&6; }
8169if ${ac_cv_lib_resolv_res_query+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171else
8172 ac_check_lib_save_LIBS=$LIBS
8173LIBS="-lresolv $LIBS"
8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176
8177/* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8180#ifdef __cplusplus
8181extern "C"
8182#endif
8183char res_query ();
8184int
8185main ()
8186{
8187return res_query ();
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_link "$LINENO"; then :
8193 ac_cv_lib_resolv_res_query=yes
8194else
8195 ac_cv_lib_resolv_res_query=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199LIBS=$ac_check_lib_save_LIBS
8200fi
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
8202$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
8203if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
8204 LIBS="$LIBS -lresolv"
8205fi
8206
8207 IPADDR_IN_DISPLAY=yes
8208 $as_echo "#define USE_PIPES 1" >>confdefs.h
8209
8210 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
8211
8212 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8213
8214 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8215
8216 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8217
8218 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8219
8220 external_path_file=/etc/default/login
8221 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8222 # Attention: always take care to bind libsocket and libnsl before libc,
8223 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8224 ;;
8225# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8226*-*-sysv4.2*)
8227 $as_echo "#define USE_PIPES 1" >>confdefs.h
8228
8229 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8230
8231 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8232
8233 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8234
8235
8236$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8237
8238 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8239
8240 TEST_SHELL=$SHELL # let configure find us a capable shell
8241 ;;
8242# UnixWare 7.x, OpenUNIX 8
8243*-*-sysv5*)
8244 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8245
8246$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
8247
8248 $as_echo "#define USE_PIPES 1" >>confdefs.h
8249
8250 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8251
8252 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8253
8254 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8255
8256 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8257
8258 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8259
8260 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
8261
8262 TEST_SHELL=$SHELL # let configure find us a capable shell
8263 case "$host" in
8264 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8265 maildir=/var/spool/mail
8266
8267$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
8268
8269 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
8272$as_echo_n "checking for getluid in -lprot... " >&6; }
8273if ${ac_cv_lib_prot_getluid+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275else
8276 ac_check_lib_save_LIBS=$LIBS
8277LIBS="-lprot $LIBS"
8278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h. */
8280
8281/* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8284#ifdef __cplusplus
8285extern "C"
8286#endif
8287char getluid ();
8288int
8289main ()
8290{
8291return getluid ();
8292 ;
8293 return 0;
8294}
8295_ACEOF
8296if ac_fn_c_try_link "$LINENO"; then :
8297 ac_cv_lib_prot_getluid=yes
8298else
8299 ac_cv_lib_prot_getluid=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303LIBS=$ac_check_lib_save_LIBS
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
8306$as_echo "$ac_cv_lib_prot_getluid" >&6; }
8307if test "x$ac_cv_lib_prot_getluid" = xyes; then :
8308 LIBS="$LIBS -lprot"
8309 for ac_func in getluid setluid
8310do :
8311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8312ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8313if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8314 cat >>confdefs.h <<_ACEOF
8315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8316_ACEOF
8317
8318fi
8319done
8320
8321 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8322
8323 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8324
8325
8326fi
8327
8328 ;;
8329 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
8330
8331 check_for_libcrypt_later=1
8332 ;;
8333 esac
8334 ;;
8335*-*-sysv*)
8336 ;;
8337# SCO UNIX and OEM versions of SCO UNIX
8338*-*-sco3.2v4*)
8339 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
8340 ;;
8341# SCO OpenServer 5.x
8342*-*-sco3.2v5*)
8343 if test -z "$GCC"; then
8344 CFLAGS="$CFLAGS -belf"
8345 fi
8346 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8347 no_dev_ptmx=1
8348 $as_echo "#define USE_PIPES 1" >>confdefs.h
8349
8350 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
8351
8352 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
8353
8354 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8355
8356 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8357
8358 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8359
8360 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8361
8362 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8363
8364 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8365
8366 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
8367
8368 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
8369
8370 for ac_func in getluid setluid
8371do :
8372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8373ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8374if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8375 cat >>confdefs.h <<_ACEOF
8376#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8377_ACEOF
8378
8379fi
8380done
8381
8382 MANTYPE=man
8383 TEST_SHELL=$SHELL # let configure find us a capable shell
8384 SKIP_DISABLE_LASTLOG_DEFINE=yes
8385 ;;
8386*-*-unicosmk*)
8387
8388$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8389
8390 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8391
8392 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8393
8394 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8395
8396 $as_echo "#define USE_PIPES 1" >>confdefs.h
8397
8398 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8399
8400 LDFLAGS="$LDFLAGS"
8401 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8402 MANTYPE=cat
8403 ;;
8404*-*-unicosmp*)
8405 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8406
8407 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8408
8409 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8410
8411 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
8412
8413 $as_echo "#define USE_PIPES 1" >>confdefs.h
8414
8415 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8416
8417 LDFLAGS="$LDFLAGS"
8418 LIBS="$LIBS -lgen -lacid -ldb"
8419 MANTYPE=cat
8420 ;;
8421*-*-unicos*)
8422 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8423
8424 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8425
8426 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8427
8428 $as_echo "#define USE_PIPES 1" >>confdefs.h
8429
8430 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8431
8432 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
8433
8434 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8435 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8436 MANTYPE=cat
8437 ;;
8438*-dec-osf*)
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
8440$as_echo_n "checking for Digital Unix SIA... " >&6; }
8441 no_osfsia=""
8442
8443# Check whether --with-osfsia was given.
8444if test "${with_osfsia+set}" = set; then :
8445 withval=$with_osfsia;
8446 if test "x$withval" = "xno" ; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8448$as_echo "disabled" >&6; }
8449 no_osfsia=1
8450 fi
8451
8452fi
8453
8454 if test -z "$no_osfsia" ; then
8455 if test -f /etc/sia/matrix.conf; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8457$as_echo "yes" >&6; }
8458
8459$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
8460
8461
8462$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
8463
8464 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8465
8466 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8467 SIA_MSG="yes"
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
8471
8472$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
8473
8474 fi
8475 fi
8476 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8477
8478 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
8479
8480 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8481
8482 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
8483
8484
8485$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
8486
8487 ;;
8488
8489*-*-nto-qnx*)
8490 $as_echo "#define USE_PIPES 1" >>confdefs.h
8491
8492 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
8493
8494 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
8495
8496 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
8497
8498
8499$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8500
8501 enable_etc_default_login=no # has incompatible /etc/default/login
8502 case "$host" in
8503 *-*-nto-qnx6*)
8504 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
8505
8506 ;;
8507 esac
8508 ;;
8509
8510*-*-ultrix*)
8511
8512$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
8513
8514 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
8515
8516
8517$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
8518
8519 ;;
8520
8521*-*-lynxos)
8522 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8523
8524$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
8525
8526 ;;
8527esac
8528
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
8530$as_echo_n "checking compiler and flags for sanity... " >&6; }
8531if test "$cross_compiling" = yes; then :
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
8533$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8534
8535else
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h. */
8538 #include <stdio.h>
8539int
8540main ()
8541{
8542 exit(0);
8543 ;
8544 return 0;
8545}
8546_ACEOF
8547if ac_fn_c_try_run "$LINENO"; then :
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8549$as_echo "yes" >&6; }
8550else
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
8554 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
8555
8556fi
8557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8558 conftest.$ac_objext conftest.beam conftest.$ac_ext
8559fi
8560
8561
8562# Checks for libraries.
8563ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
8564if test "x$ac_cv_func_setsockopt" = xyes; then :
8565
8566else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
8568$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
8569if ${ac_cv_lib_socket_setsockopt+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571else
8572 ac_check_lib_save_LIBS=$LIBS
8573LIBS="-lsocket $LIBS"
8574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h. */
8576
8577/* Override any GCC internal prototype to avoid an error.
8578 Use char because int might match the return type of a GCC
8579 builtin and then its argument prototype would still apply. */
8580#ifdef __cplusplus
8581extern "C"
8582#endif
8583char setsockopt ();
8584int
8585main ()
8586{
8587return setsockopt ();
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592if ac_fn_c_try_link "$LINENO"; then :
8593 ac_cv_lib_socket_setsockopt=yes
8594else
8595 ac_cv_lib_socket_setsockopt=no
8596fi
8597rm -f core conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599LIBS=$ac_check_lib_save_LIBS
8600fi
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
8602$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
8603if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
8604 cat >>confdefs.h <<_ACEOF
8605#define HAVE_LIBSOCKET 1
8606_ACEOF
8607
8608 LIBS="-lsocket $LIBS"
8609
8610fi
8611
8612fi
8613
8614
8615for ac_func in dirname
8616do :
8617 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
8618if test "x$ac_cv_func_dirname" = xyes; then :
8619 cat >>confdefs.h <<_ACEOF
8620#define HAVE_DIRNAME 1
8621_ACEOF
8622 for ac_header in libgen.h
8623do :
8624 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8625if test "x$ac_cv_header_libgen_h" = xyes; then :
8626 cat >>confdefs.h <<_ACEOF
8627#define HAVE_LIBGEN_H 1
8628_ACEOF
8629
8630fi
8631
8632done
8633
8634else
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
8637$as_echo_n "checking for dirname in -lgen... " >&6; }
8638if ${ac_cv_lib_gen_dirname+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641 ac_check_lib_save_LIBS=$LIBS
8642LIBS="-lgen $LIBS"
8643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h. */
8645
8646/* Override any GCC internal prototype to avoid an error.
8647 Use char because int might match the return type of a GCC
8648 builtin and then its argument prototype would still apply. */
8649#ifdef __cplusplus
8650extern "C"
8651#endif
8652char dirname ();
8653int
8654main ()
8655{
8656return dirname ();
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662 ac_cv_lib_gen_dirname=yes
8663else
8664 ac_cv_lib_gen_dirname=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668LIBS=$ac_check_lib_save_LIBS
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
8671$as_echo "$ac_cv_lib_gen_dirname" >&6; }
8672if test "x$ac_cv_lib_gen_dirname" = xyes; then :
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
8675$as_echo_n "checking for broken dirname... " >&6; }
8676if ${ac_cv_have_broken_dirname+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678else
8679
8680 save_LIBS="$LIBS"
8681 LIBS="$LIBS -lgen"
8682 if test "$cross_compiling" = yes; then :
8683 ac_cv_have_broken_dirname="no"
8684else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h. */
8687
8688#include <libgen.h>
8689#include <string.h>
8690
8691int main(int argc, char **argv) {
8692 char *s, buf[32];
8693
8694 strncpy(buf,"/etc", 32);
8695 s = dirname(buf);
8696 if (!s || strncmp(s, "/", 32) != 0) {
8697 exit(1);
8698 } else {
8699 exit(0);
8700 }
8701}
8702
8703_ACEOF
8704if ac_fn_c_try_run "$LINENO"; then :
8705 ac_cv_have_broken_dirname="no"
8706else
8707 ac_cv_have_broken_dirname="yes"
8708fi
8709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8710 conftest.$ac_objext conftest.beam conftest.$ac_ext
8711fi
8712
8713 LIBS="$save_LIBS"
8714
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
8717$as_echo "$ac_cv_have_broken_dirname" >&6; }
8718 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8719 LIBS="$LIBS -lgen"
8720 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
8721
8722 for ac_header in libgen.h
8723do :
8724 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
8725if test "x$ac_cv_header_libgen_h" = xyes; then :
8726 cat >>confdefs.h <<_ACEOF
8727#define HAVE_LIBGEN_H 1
8728_ACEOF
8729
8730fi
8731
8732done
8733
8734 fi
8735
8736fi
8737
8738
8739fi
8740done
8741
8742
8743ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
8744if test "x$ac_cv_func_getspnam" = xyes; then :
8745
8746else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
8748$as_echo_n "checking for getspnam in -lgen... " >&6; }
8749if ${ac_cv_lib_gen_getspnam+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751else
8752 ac_check_lib_save_LIBS=$LIBS
8753LIBS="-lgen $LIBS"
8754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h. */
8756
8757/* Override any GCC internal prototype to avoid an error.
8758 Use char because int might match the return type of a GCC
8759 builtin and then its argument prototype would still apply. */
8760#ifdef __cplusplus
8761extern "C"
8762#endif
8763char getspnam ();
8764int
8765main ()
8766{
8767return getspnam ();
8768 ;
8769 return 0;
8770}
8771_ACEOF
8772if ac_fn_c_try_link "$LINENO"; then :
8773 ac_cv_lib_gen_getspnam=yes
8774else
8775 ac_cv_lib_gen_getspnam=no
8776fi
8777rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779LIBS=$ac_check_lib_save_LIBS
8780fi
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
8782$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
8783if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
8784 LIBS="$LIBS -lgen"
8785fi
8786
8787fi
8788
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
8790$as_echo_n "checking for library containing basename... " >&6; }
8791if ${ac_cv_search_basename+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793else
8794 ac_func_search_save_LIBS=$LIBS
8795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h. */
8797
8798/* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8801#ifdef __cplusplus
8802extern "C"
8803#endif
8804char basename ();
8805int
8806main ()
8807{
8808return basename ();
8809 ;
8810 return 0;
8811}
8812_ACEOF
8813for ac_lib in '' gen; do
8814 if test -z "$ac_lib"; then
8815 ac_res="none required"
8816 else
8817 ac_res=-l$ac_lib
8818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8819 fi
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 ac_cv_search_basename=$ac_res
8822fi
8823rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext
8825 if ${ac_cv_search_basename+:} false; then :
8826 break
8827fi
8828done
8829if ${ac_cv_search_basename+:} false; then :
8830
8831else
8832 ac_cv_search_basename=no
8833fi
8834rm conftest.$ac_ext
8835LIBS=$ac_func_search_save_LIBS
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8838$as_echo "$ac_cv_search_basename" >&6; }
8839ac_res=$ac_cv_search_basename
8840if test "$ac_res" != no; then :
8841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8842
8843$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8844
8845fi
8846
8847
8848
8849# Check whether --with-zlib was given.
8850if test "${with_zlib+set}" = set; then :
8851 withval=$with_zlib; if test "x$withval" = "xno" ; then
8852 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8853 elif test "x$withval" != "xyes"; then
8854 if test -d "$withval/lib"; then
8855 if test -n "${need_dash_r}"; then
8856 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8857 else
8858 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8859 fi
8860 else
8861 if test -n "${need_dash_r}"; then
8862 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8863 else
8864 LDFLAGS="-L${withval} ${LDFLAGS}"
8865 fi
8866 fi
8867 if test -d "$withval/include"; then
8868 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8869 else
8870 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8871 fi
8872 fi
8873
8874fi
8875
8876
8877ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8878if test "x$ac_cv_header_zlib_h" = xyes; then :
8879
8880else
8881 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8882fi
8883
8884
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8886$as_echo_n "checking for deflate in -lz... " >&6; }
8887if ${ac_cv_lib_z_deflate+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889else
8890 ac_check_lib_save_LIBS=$LIBS
8891LIBS="-lz $LIBS"
8892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h. */
8894
8895/* Override any GCC internal prototype to avoid an error.
8896 Use char because int might match the return type of a GCC
8897 builtin and then its argument prototype would still apply. */
8898#ifdef __cplusplus
8899extern "C"
8900#endif
8901char deflate ();
8902int
8903main ()
8904{
8905return deflate ();
8906 ;
8907 return 0;
8908}
8909_ACEOF
8910if ac_fn_c_try_link "$LINENO"; then :
8911 ac_cv_lib_z_deflate=yes
8912else
8913 ac_cv_lib_z_deflate=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917LIBS=$ac_check_lib_save_LIBS
8918fi
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8920$as_echo "$ac_cv_lib_z_deflate" >&6; }
8921if test "x$ac_cv_lib_z_deflate" = xyes; then :
8922 cat >>confdefs.h <<_ACEOF
8923#define HAVE_LIBZ 1
8924_ACEOF
8925
8926 LIBS="-lz $LIBS"
8927
8928else
8929
8930 saved_CPPFLAGS="$CPPFLAGS"
8931 saved_LDFLAGS="$LDFLAGS"
8932 save_LIBS="$LIBS"
8933 if test -n "${need_dash_r}"; then
8934 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8935 else
8936 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8937 fi
8938 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8939 LIBS="$LIBS -lz"
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h. */
8942
8943/* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8946#ifdef __cplusplus
8947extern "C"
8948#endif
8949char deflate ();
8950int
8951main ()
8952{
8953return deflate ();
8954 ;
8955 return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then :
8959 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8960
8961else
8962
8963 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8964
8965
8966fi
8967rm -f core conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8969
8970
8971fi
8972
8973
8974
8975# Check whether --with-zlib-version-check was given.
8976if test "${with_zlib_version_check+set}" = set; then :
8977 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8978 zlib_check_nonfatal=1
8979 fi
8980
8981
8982fi
8983
8984
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8986$as_echo_n "checking for possibly buggy zlib... " >&6; }
8987if test "$cross_compiling" = yes; then :
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8989$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8990
8991else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h. */
8994
8995#include <stdio.h>
8996#include <stdlib.h>
8997#include <zlib.h>
8998
8999int
9000main ()
9001{
9002
9003 int a=0, b=0, c=0, d=0, n, v;
9004 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
9005 if (n != 3 && n != 4)
9006 exit(1);
9007 v = a*1000000 + b*10000 + c*100 + d;
9008 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
9009
9010 /* 1.1.4 is OK */
9011 if (a == 1 && b == 1 && c >= 4)
9012 exit(0);
9013
9014 /* 1.2.3 and up are OK */
9015 if (v >= 1020300)
9016 exit(0);
9017
9018 exit(2);
9019
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_run "$LINENO"; then :
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9029$as_echo "yes" >&6; }
9030 if test -z "$zlib_check_nonfatal" ; then
9031 as_fn_error $? "*** zlib too old - check config.log ***
9032Your reported zlib version has known security problems. It's possible your
9033vendor has fixed these problems without changing the version number. If you
9034are sure this is the case, you can disable the check by running
9035\"./configure --without-zlib-version-check\".
9036If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9037See http://www.gzip.org/zlib/ for details." "$LINENO" 5
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
9040$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
9041 fi
9042
9043fi
9044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9045 conftest.$ac_objext conftest.beam conftest.$ac_ext
9046fi
9047
9048
9049ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9050if test "x$ac_cv_func_strcasecmp" = xyes; then :
9051
9052else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
9054$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
9055if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057else
9058 ac_check_lib_save_LIBS=$LIBS
9059LIBS="-lresolv $LIBS"
9060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h. */
9062
9063/* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9066#ifdef __cplusplus
9067extern "C"
9068#endif
9069char strcasecmp ();
9070int
9071main ()
9072{
9073return strcasecmp ();
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"; then :
9079 ac_cv_lib_resolv_strcasecmp=yes
9080else
9081 ac_cv_lib_resolv_strcasecmp=no
9082fi
9083rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085LIBS=$ac_check_lib_save_LIBS
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
9088$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
9089if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
9090 LIBS="$LIBS -lresolv"
9091fi
9092
9093
9094fi
9095
9096for ac_func in utimes
9097do :
9098 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
9099if test "x$ac_cv_func_utimes" = xyes; then :
9100 cat >>confdefs.h <<_ACEOF
9101#define HAVE_UTIMES 1
9102_ACEOF
9103
9104else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
9106$as_echo_n "checking for utimes in -lc89... " >&6; }
9107if ${ac_cv_lib_c89_utimes+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109else
9110 ac_check_lib_save_LIBS=$LIBS
9111LIBS="-lc89 $LIBS"
9112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113/* end confdefs.h. */
9114
9115/* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9118#ifdef __cplusplus
9119extern "C"
9120#endif
9121char utimes ();
9122int
9123main ()
9124{
9125return utimes ();
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_link "$LINENO"; then :
9131 ac_cv_lib_c89_utimes=yes
9132else
9133 ac_cv_lib_c89_utimes=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137LIBS=$ac_check_lib_save_LIBS
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
9140$as_echo "$ac_cv_lib_c89_utimes" >&6; }
9141if test "x$ac_cv_lib_c89_utimes" = xyes; then :
9142 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
9143
9144 LIBS="$LIBS -lc89"
9145fi
9146
9147
9148fi
9149done
9150
9151
9152for ac_header in bsd/libutil.h libutil.h
9153do :
9154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9157 cat >>confdefs.h <<_ACEOF
9158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159_ACEOF
9160
9161fi
9162
9163done
9164
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
9166$as_echo_n "checking for library containing fmt_scaled... " >&6; }
9167if ${ac_cv_search_fmt_scaled+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169else
9170 ac_func_search_save_LIBS=$LIBS
9171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h. */
9173
9174/* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9177#ifdef __cplusplus
9178extern "C"
9179#endif
9180char fmt_scaled ();
9181int
9182main ()
9183{
9184return fmt_scaled ();
9185 ;
9186 return 0;
9187}
9188_ACEOF
9189for ac_lib in '' util bsd; do
9190 if test -z "$ac_lib"; then
9191 ac_res="none required"
9192 else
9193 ac_res=-l$ac_lib
9194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9195 fi
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 ac_cv_search_fmt_scaled=$ac_res
9198fi
9199rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext
9201 if ${ac_cv_search_fmt_scaled+:} false; then :
9202 break
9203fi
9204done
9205if ${ac_cv_search_fmt_scaled+:} false; then :
9206
9207else
9208 ac_cv_search_fmt_scaled=no
9209fi
9210rm conftest.$ac_ext
9211LIBS=$ac_func_search_save_LIBS
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
9214$as_echo "$ac_cv_search_fmt_scaled" >&6; }
9215ac_res=$ac_cv_search_fmt_scaled
9216if test "$ac_res" != no; then :
9217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9218
9219fi
9220
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
9222$as_echo_n "checking for library containing scan_scaled... " >&6; }
9223if ${ac_cv_search_scan_scaled+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225else
9226 ac_func_search_save_LIBS=$LIBS
9227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h. */
9229
9230/* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9233#ifdef __cplusplus
9234extern "C"
9235#endif
9236char scan_scaled ();
9237int
9238main ()
9239{
9240return scan_scaled ();
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245for ac_lib in '' util bsd; do
9246 if test -z "$ac_lib"; then
9247 ac_res="none required"
9248 else
9249 ac_res=-l$ac_lib
9250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9251 fi
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 ac_cv_search_scan_scaled=$ac_res
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext
9257 if ${ac_cv_search_scan_scaled+:} false; then :
9258 break
9259fi
9260done
9261if ${ac_cv_search_scan_scaled+:} false; then :
9262
9263else
9264 ac_cv_search_scan_scaled=no
9265fi
9266rm conftest.$ac_ext
9267LIBS=$ac_func_search_save_LIBS
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
9270$as_echo "$ac_cv_search_scan_scaled" >&6; }
9271ac_res=$ac_cv_search_scan_scaled
9272if test "$ac_res" != no; then :
9273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9274
9275fi
9276
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
9278$as_echo_n "checking for library containing login... " >&6; }
9279if ${ac_cv_search_login+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281else
9282 ac_func_search_save_LIBS=$LIBS
9283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h. */
9285
9286/* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
9289#ifdef __cplusplus
9290extern "C"
9291#endif
9292char login ();
9293int
9294main ()
9295{
9296return login ();
9297 ;
9298 return 0;
9299}
9300_ACEOF
9301for ac_lib in '' util bsd; do
9302 if test -z "$ac_lib"; then
9303 ac_res="none required"
9304 else
9305 ac_res=-l$ac_lib
9306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9307 fi
9308 if ac_fn_c_try_link "$LINENO"; then :
9309 ac_cv_search_login=$ac_res
9310fi
9311rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext
9313 if ${ac_cv_search_login+:} false; then :
9314 break
9315fi
9316done
9317if ${ac_cv_search_login+:} false; then :
9318
9319else
9320 ac_cv_search_login=no
9321fi
9322rm conftest.$ac_ext
9323LIBS=$ac_func_search_save_LIBS
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
9326$as_echo "$ac_cv_search_login" >&6; }
9327ac_res=$ac_cv_search_login
9328if test "$ac_res" != no; then :
9329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9330
9331fi
9332
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
9334$as_echo_n "checking for library containing logout... " >&6; }
9335if ${ac_cv_search_logout+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337else
9338 ac_func_search_save_LIBS=$LIBS
9339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h. */
9341
9342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char logout ();
9349int
9350main ()
9351{
9352return logout ();
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357for ac_lib in '' util bsd; do
9358 if test -z "$ac_lib"; then
9359 ac_res="none required"
9360 else
9361 ac_res=-l$ac_lib
9362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9363 fi
9364 if ac_fn_c_try_link "$LINENO"; then :
9365 ac_cv_search_logout=$ac_res
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext
9369 if ${ac_cv_search_logout+:} false; then :
9370 break
9371fi
9372done
9373if ${ac_cv_search_logout+:} false; then :
9374
9375else
9376 ac_cv_search_logout=no
9377fi
9378rm conftest.$ac_ext
9379LIBS=$ac_func_search_save_LIBS
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
9382$as_echo "$ac_cv_search_logout" >&6; }
9383ac_res=$ac_cv_search_logout
9384if test "$ac_res" != no; then :
9385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9386
9387fi
9388
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
9390$as_echo_n "checking for library containing logwtmp... " >&6; }
9391if ${ac_cv_search_logwtmp+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393else
9394 ac_func_search_save_LIBS=$LIBS
9395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h. */
9397
9398/* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401#ifdef __cplusplus
9402extern "C"
9403#endif
9404char logwtmp ();
9405int
9406main ()
9407{
9408return logwtmp ();
9409 ;
9410 return 0;
9411}
9412_ACEOF
9413for ac_lib in '' util bsd; do
9414 if test -z "$ac_lib"; then
9415 ac_res="none required"
9416 else
9417 ac_res=-l$ac_lib
9418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 fi
9420 if ac_fn_c_try_link "$LINENO"; then :
9421 ac_cv_search_logwtmp=$ac_res
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext
9425 if ${ac_cv_search_logwtmp+:} false; then :
9426 break
9427fi
9428done
9429if ${ac_cv_search_logwtmp+:} false; then :
9430
9431else
9432 ac_cv_search_logwtmp=no
9433fi
9434rm conftest.$ac_ext
9435LIBS=$ac_func_search_save_LIBS
9436fi
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
9438$as_echo "$ac_cv_search_logwtmp" >&6; }
9439ac_res=$ac_cv_search_logwtmp
9440if test "$ac_res" != no; then :
9441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9442
9443fi
9444
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
9446$as_echo_n "checking for library containing openpty... " >&6; }
9447if ${ac_cv_search_openpty+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 ac_func_search_save_LIBS=$LIBS
9451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h. */
9453
9454/* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9457#ifdef __cplusplus
9458extern "C"
9459#endif
9460char openpty ();
9461int
9462main ()
9463{
9464return openpty ();
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469for ac_lib in '' util bsd; do
9470 if test -z "$ac_lib"; then
9471 ac_res="none required"
9472 else
9473 ac_res=-l$ac_lib
9474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9475 fi
9476 if ac_fn_c_try_link "$LINENO"; then :
9477 ac_cv_search_openpty=$ac_res
9478fi
9479rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext
9481 if ${ac_cv_search_openpty+:} false; then :
9482 break
9483fi
9484done
9485if ${ac_cv_search_openpty+:} false; then :
9486
9487else
9488 ac_cv_search_openpty=no
9489fi
9490rm conftest.$ac_ext
9491LIBS=$ac_func_search_save_LIBS
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
9494$as_echo "$ac_cv_search_openpty" >&6; }
9495ac_res=$ac_cv_search_openpty
9496if test "$ac_res" != no; then :
9497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9498
9499fi
9500
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
9502$as_echo_n "checking for library containing updwtmp... " >&6; }
9503if ${ac_cv_search_updwtmp+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505else
9506 ac_func_search_save_LIBS=$LIBS
9507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h. */
9509
9510/* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516char updwtmp ();
9517int
9518main ()
9519{
9520return updwtmp ();
9521 ;
9522 return 0;
9523}
9524_ACEOF
9525for ac_lib in '' util bsd; do
9526 if test -z "$ac_lib"; then
9527 ac_res="none required"
9528 else
9529 ac_res=-l$ac_lib
9530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9531 fi
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 ac_cv_search_updwtmp=$ac_res
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext
9537 if ${ac_cv_search_updwtmp+:} false; then :
9538 break
9539fi
9540done
9541if ${ac_cv_search_updwtmp+:} false; then :
9542
9543else
9544 ac_cv_search_updwtmp=no
9545fi
9546rm conftest.$ac_ext
9547LIBS=$ac_func_search_save_LIBS
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
9550$as_echo "$ac_cv_search_updwtmp" >&6; }
9551ac_res=$ac_cv_search_updwtmp
9552if test "$ac_res" != no; then :
9553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9554
9555fi
9556
9557for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9558do :
9559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9561if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9562 cat >>confdefs.h <<_ACEOF
9563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9564_ACEOF
9565
9566fi
9567done
9568
9569
9570# On some platforms, inet_ntop and gethostbyname may be found in libresolv
9571# or libnsl.
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9573$as_echo_n "checking for library containing inet_ntop... " >&6; }
9574if ${ac_cv_search_inet_ntop+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576else
9577 ac_func_search_save_LIBS=$LIBS
9578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h. */
9580
9581/* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584#ifdef __cplusplus
9585extern "C"
9586#endif
9587char inet_ntop ();
9588int
9589main ()
9590{
9591return inet_ntop ();
9592 ;
9593 return 0;
9594}
9595_ACEOF
9596for ac_lib in '' resolv nsl; do
9597 if test -z "$ac_lib"; then
9598 ac_res="none required"
9599 else
9600 ac_res=-l$ac_lib
9601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9602 fi
9603 if ac_fn_c_try_link "$LINENO"; then :
9604 ac_cv_search_inet_ntop=$ac_res
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext
9608 if ${ac_cv_search_inet_ntop+:} false; then :
9609 break
9610fi
9611done
9612if ${ac_cv_search_inet_ntop+:} false; then :
9613
9614else
9615 ac_cv_search_inet_ntop=no
9616fi
9617rm conftest.$ac_ext
9618LIBS=$ac_func_search_save_LIBS
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9621$as_echo "$ac_cv_search_inet_ntop" >&6; }
9622ac_res=$ac_cv_search_inet_ntop
9623if test "$ac_res" != no; then :
9624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9625
9626fi
9627
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9629$as_echo_n "checking for library containing gethostbyname... " >&6; }
9630if ${ac_cv_search_gethostbyname+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632else
9633 ac_func_search_save_LIBS=$LIBS
9634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h. */
9636
9637/* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640#ifdef __cplusplus
9641extern "C"
9642#endif
9643char gethostbyname ();
9644int
9645main ()
9646{
9647return gethostbyname ();
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652for ac_lib in '' resolv nsl; do
9653 if test -z "$ac_lib"; then
9654 ac_res="none required"
9655 else
9656 ac_res=-l$ac_lib
9657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9658 fi
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 ac_cv_search_gethostbyname=$ac_res
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext
9664 if ${ac_cv_search_gethostbyname+:} false; then :
9665 break
9666fi
9667done
9668if ${ac_cv_search_gethostbyname+:} false; then :
9669
9670else
9671 ac_cv_search_gethostbyname=no
9672fi
9673rm conftest.$ac_ext
9674LIBS=$ac_func_search_save_LIBS
9675fi
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9677$as_echo "$ac_cv_search_gethostbyname" >&6; }
9678ac_res=$ac_cv_search_gethostbyname
9679if test "$ac_res" != no; then :
9680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9681
9682fi
9683
9684
9685# "Particular Function Checks"
9686# see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html
9687for ac_func in strftime
9688do :
9689 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9690if test "x$ac_cv_func_strftime" = xyes; then :
9691 cat >>confdefs.h <<_ACEOF
9692#define HAVE_STRFTIME 1
9693_ACEOF
9694
9695else
9696 # strftime is in -lintl on SCO UNIX.
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9698$as_echo_n "checking for strftime in -lintl... " >&6; }
9699if ${ac_cv_lib_intl_strftime+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701else
9702 ac_check_lib_save_LIBS=$LIBS
9703LIBS="-lintl $LIBS"
9704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h. */
9706
9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710#ifdef __cplusplus
9711extern "C"
9712#endif
9713char strftime ();
9714int
9715main ()
9716{
9717return strftime ();
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722if ac_fn_c_try_link "$LINENO"; then :
9723 ac_cv_lib_intl_strftime=yes
9724else
9725 ac_cv_lib_intl_strftime=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729LIBS=$ac_check_lib_save_LIBS
9730fi
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9732$as_echo "$ac_cv_lib_intl_strftime" >&6; }
9733if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9734 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9735
9736LIBS="-lintl $LIBS"
9737fi
9738
9739fi
9740done
9741
9742for ac_header in stdlib.h
9743do :
9744 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9745if test "x$ac_cv_header_stdlib_h" = xyes; then :
9746 cat >>confdefs.h <<_ACEOF
9747#define HAVE_STDLIB_H 1
9748_ACEOF
9749
9750fi
9751
9752done
9753
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9755$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9756if ${ac_cv_func_malloc_0_nonnull+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758else
9759 if test "$cross_compiling" = yes; then :
9760 ac_cv_func_malloc_0_nonnull=no
9761else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763/* end confdefs.h. */
9764#if defined STDC_HEADERS || defined HAVE_STDLIB_H
9765# include <stdlib.h>
9766#else
9767char *malloc ();
9768#endif
9769
9770int
9771main ()
9772{
9773return ! malloc (0);
9774 ;
9775 return 0;
9776}
9777_ACEOF
9778if ac_fn_c_try_run "$LINENO"; then :
9779 ac_cv_func_malloc_0_nonnull=yes
9780else
9781 ac_cv_func_malloc_0_nonnull=no
9782fi
9783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9784 conftest.$ac_objext conftest.beam conftest.$ac_ext
9785fi
9786
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9789$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9790if test $ac_cv_func_malloc_0_nonnull = yes; then :
9791
9792$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
9793
9794else
9795 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
9796
9797 case " $LIBOBJS " in
9798 *" malloc.$ac_objext "* ) ;;
9799 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9800 ;;
9801esac
9802
9803
9804$as_echo "#define malloc rpl_malloc" >>confdefs.h
9805
9806fi
9807
9808
9809for ac_header in stdlib.h
9810do :
9811 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9812if test "x$ac_cv_header_stdlib_h" = xyes; then :
9813 cat >>confdefs.h <<_ACEOF
9814#define HAVE_STDLIB_H 1
9815_ACEOF
9816
9817fi
9818
9819done
9820
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
9822$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
9823if ${ac_cv_func_realloc_0_nonnull+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825else
9826 if test "$cross_compiling" = yes; then :
9827 ac_cv_func_realloc_0_nonnull=no
9828else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h. */
9831#if defined STDC_HEADERS || defined HAVE_STDLIB_H
9832# include <stdlib.h>
9833#else
9834char *realloc ();
9835#endif
9836
9837int
9838main ()
9839{
9840return ! realloc (0, 0);
9841 ;
9842 return 0;
9843}
9844_ACEOF
9845if ac_fn_c_try_run "$LINENO"; then :
9846 ac_cv_func_realloc_0_nonnull=yes
9847else
9848 ac_cv_func_realloc_0_nonnull=no
9849fi
9850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9851 conftest.$ac_objext conftest.beam conftest.$ac_ext
9852fi
9853
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
9856$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
9857if test $ac_cv_func_realloc_0_nonnull = yes; then :
9858
9859$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
9860
9861else
9862 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
9863
9864 case " $LIBOBJS " in
9865 *" realloc.$ac_objext "* ) ;;
9866 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
9867 ;;
9868esac
9869
9870
9871$as_echo "#define realloc rpl_realloc" >>confdefs.h
9872
9873fi
9874
9875
9876# autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL;
9877if test "x$ac_cv_func_malloc_0_nonnull" != "xyes"; then
9878
9879$as_echo "#define HAVE_CALLOC 0" >>confdefs.h
9880
9881
9882$as_echo "#define calloc rpl_calloc" >>confdefs.h
9883
9884fi
9885
9886# Check for ALTDIRFUNC glob() extension
9887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
9888$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
9889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h. */
9891
9892 #include <glob.h>
9893 #ifdef GLOB_ALTDIRFUNC
9894 FOUNDIT
9895 #endif
9896
9897_ACEOF
9898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9899 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
9900
9901
9902$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
9903
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9905$as_echo "yes" >&6; }
9906
9907else
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
9911
9912
9913fi
9914rm -f conftest*
9915
9916
9917# Check for g.gl_matchc glob() extension
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
9919$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
9920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h. */
9922 #include <glob.h>
9923int
9924main ()
9925{
9926 glob_t g; g.gl_matchc = 1;
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_compile "$LINENO"; then :
9932
9933
9934$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937$as_echo "yes" >&6; }
9938
9939else
9940
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942$as_echo "no" >&6; }
9943
9944fi
9945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946
9947# Check for g.gl_statv glob() extension
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9949$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
9950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h. */
9952 #include <glob.h>
9953int
9954main ()
9955{
9956
9957#ifndef GLOB_KEEPSTAT
9958#error "glob does not support GLOB_KEEPSTAT extension"
9959#endif
9960glob_t g;
9961g.gl_statv = NULL;
9962
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_compile "$LINENO"; then :
9968
9969
9970$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973$as_echo "yes" >&6; }
9974
9975else
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978$as_echo "no" >&6; }
9979
9980
9981fi
9982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983
9984ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
9985"
9986if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
9987 ac_have_decl=1
9988else
9989 ac_have_decl=0
9990fi
9991
9992cat >>confdefs.h <<_ACEOF
9993#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
9994_ACEOF
9995
9996
9997ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h>
9998"
9999if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then :
10000
10001else
10002
10003$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
10004
10005fi
10006
10007
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
10009$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
10010if test "$cross_compiling" = yes; then :
10011
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
10013$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
10014 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10015
10016
10017
10018else
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h. */
10021
10022#include <sys/types.h>
10023#include <dirent.h>
10024int
10025main ()
10026{
10027
10028 struct dirent d;
10029 exit(sizeof(d.d_name)<=sizeof(char));
10030
10031 ;
10032 return 0;
10033}
10034_ACEOF
10035if ac_fn_c_try_run "$LINENO"; then :
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037$as_echo "yes" >&6; }
10038else
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
10042
10043$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
10044
10045
10046fi
10047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10048 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049fi
10050
10051
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
10053$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
10054if test -d "/proc/$$/fd" ; then
10055
10056$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10059$as_echo "yes" >&6; }
10060else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062$as_echo "no" >&6; }
10063fi
10064
10065# Check whether user wants S/Key support
10066SKEY_MSG="no"
10067
10068# Check whether --with-skey was given.
10069if test "${with_skey+set}" = set; then :
10070 withval=$with_skey;
10071 if test "x$withval" != "xno" ; then
10072
10073 if test "x$withval" != "xyes" ; then
10074 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10075 LDFLAGS="$LDFLAGS -L${withval}/lib"
10076 fi
10077
10078
10079$as_echo "#define SKEY 1" >>confdefs.h
10080
10081 LIBS="-lskey $LIBS"
10082 SKEY_MSG="yes"
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
10085$as_echo_n "checking for s/key support... " >&6; }
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
10088
10089#include <stdio.h>
10090#include <skey.h>
10091
10092int
10093main ()
10094{
10095
10096 char *ff = skey_keyinfo(""); ff="";
10097 exit(0);
10098
10099 ;
10100 return 0;
10101}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"; then :
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10105$as_echo "yes" >&6; }
10106else
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109$as_echo "no" >&6; }
10110 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
10111
10112fi
10113rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
10116$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h. */
10119
10120#include <stdio.h>
10121#include <skey.h>
10122
10123int
10124main ()
10125{
10126
10127 (void)skeychallenge(NULL,"name","",0);
10128
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133if ac_fn_c_try_compile "$LINENO"; then :
10134
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10136$as_echo "yes" >&6; }
10137
10138$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
10139
10140else
10141
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143$as_echo "no" >&6; }
10144
10145fi
10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 fi
10148
10149
10150fi
10151
10152
10153# Check whether user wants to use ldns
10154LDNS_MSG="no"
10155
10156# Check whether --with-ldns was given.
10157if test "${with_ldns+set}" = set; then :
10158 withval=$with_ldns;
10159 ldns=""
10160 if test "x$withval" = "xyes" ; then
10161 if test -n "$ac_tool_prefix"; then
10162 # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args.
10163set dummy ${ac_tool_prefix}ldns-config; ac_word=$2
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165$as_echo_n "checking for $ac_word... " >&6; }
10166if ${ac_cv_path_LDNSCONFIG+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168else
10169 case $LDNSCONFIG in
10170 [\\/]* | ?:[\\/]*)
10171 ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path.
10172 ;;
10173 *)
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181 ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185done
10186 done
10187IFS=$as_save_IFS
10188
10189 ;;
10190esac
10191fi
10192LDNSCONFIG=$ac_cv_path_LDNSCONFIG
10193if test -n "$LDNSCONFIG"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5
10195$as_echo "$LDNSCONFIG" >&6; }
10196else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198$as_echo "no" >&6; }
10199fi
10200
10201
10202fi
10203if test -z "$ac_cv_path_LDNSCONFIG"; then
10204 ac_pt_LDNSCONFIG=$LDNSCONFIG
10205 # Extract the first word of "ldns-config", so it can be a program name with args.
10206set dummy ldns-config; ac_word=$2
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208$as_echo_n "checking for $ac_word... " >&6; }
10209if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211else
10212 case $ac_pt_LDNSCONFIG in
10213 [\\/]* | ?:[\\/]*)
10214 ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path.
10215 ;;
10216 *)
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229 done
10230IFS=$as_save_IFS
10231
10232 ;;
10233esac
10234fi
10235ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG
10236if test -n "$ac_pt_LDNSCONFIG"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5
10238$as_echo "$ac_pt_LDNSCONFIG" >&6; }
10239else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241$as_echo "no" >&6; }
10242fi
10243
10244 if test "x$ac_pt_LDNSCONFIG" = x; then
10245 LDNSCONFIG="no"
10246 else
10247 case $cross_compiling:$ac_tool_warned in
10248yes:)
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10251ac_tool_warned=yes ;;
10252esac
10253 LDNSCONFIG=$ac_pt_LDNSCONFIG
10254 fi
10255else
10256 LDNSCONFIG="$ac_cv_path_LDNSCONFIG"
10257fi
10258
10259 if test "x$PKGCONFIG" = "xno"; then
10260 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10261 LDFLAGS="$LDFLAGS -L${withval}/lib"
10262 LIBS="-lldns $LIBS"
10263 ldns=yes
10264 else
10265 LIBS="$LIBS `$LDNSCONFIG --libs`"
10266 CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`"
10267 ldns=yes
10268 fi
10269 elif test "x$withval" != "xno" ; then
10270 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10271 LDFLAGS="$LDFLAGS -L${withval}/lib"
10272 LIBS="-lldns $LIBS"
10273 ldns=yes
10274 fi
10275
10276 # Verify that it works.
10277 if test "x$ldns" = "xyes" ; then
10278
10279$as_echo "#define HAVE_LDNS 1" >>confdefs.h
10280
10281 LDNS_MSG="yes"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
10283$as_echo_n "checking for ldns support... " >&6; }
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h. */
10286
10287#include <stdio.h>
10288#include <stdlib.h>
10289#include <stdint.h>
10290#include <ldns/ldns.h>
10291int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
10292
10293
10294_ACEOF
10295if ac_fn_c_try_link "$LINENO"; then :
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10297$as_echo "yes" >&6; }
10298else
10299
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301$as_echo "no" >&6; }
10302 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
10303
10304fi
10305rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 fi
10308
10309fi
10310
10311
10312# Check whether user wants libedit support
10313LIBEDIT_MSG="no"
10314
10315# Check whether --with-libedit was given.
10316if test "${with_libedit+set}" = set; then :
10317 withval=$with_libedit; if test "x$withval" != "xno" ; then
10318 if test "x$withval" = "xyes" ; then
10319 if test -n "$ac_tool_prefix"; then
10320 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10321set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323$as_echo_n "checking for $ac_word... " >&6; }
10324if ${ac_cv_path_PKGCONFIG+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326else
10327 case $PKGCONFIG in
10328 [\\/]* | ?:[\\/]*)
10329 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
10330 ;;
10331 *)
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10342 fi
10343done
10344 done
10345IFS=$as_save_IFS
10346
10347 ;;
10348esac
10349fi
10350PKGCONFIG=$ac_cv_path_PKGCONFIG
10351if test -n "$PKGCONFIG"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
10353$as_echo "$PKGCONFIG" >&6; }
10354else
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356$as_echo "no" >&6; }
10357fi
10358
10359
10360fi
10361if test -z "$ac_cv_path_PKGCONFIG"; then
10362 ac_pt_PKGCONFIG=$PKGCONFIG
10363 # Extract the first word of "pkg-config", so it can be a program name with args.
10364set dummy pkg-config; ac_word=$2
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10366$as_echo_n "checking for $ac_word... " >&6; }
10367if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
10368 $as_echo_n "(cached) " >&6
10369else
10370 case $ac_pt_PKGCONFIG in
10371 [\\/]* | ?:[\\/]*)
10372 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
10373 ;;
10374 *)
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386done
10387 done
10388IFS=$as_save_IFS
10389
10390 ;;
10391esac
10392fi
10393ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
10394if test -n "$ac_pt_PKGCONFIG"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
10396$as_echo "$ac_pt_PKGCONFIG" >&6; }
10397else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
10400fi
10401
10402 if test "x$ac_pt_PKGCONFIG" = x; then
10403 PKGCONFIG="no"
10404 else
10405 case $cross_compiling:$ac_tool_warned in
10406yes:)
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10409ac_tool_warned=yes ;;
10410esac
10411 PKGCONFIG=$ac_pt_PKGCONFIG
10412 fi
10413else
10414 PKGCONFIG="$ac_cv_path_PKGCONFIG"
10415fi
10416
10417 if test "x$PKGCONFIG" != "xno"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
10419$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
10420 if "$PKGCONFIG" libedit; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422$as_echo "yes" >&6; }
10423 use_pkgconfig_for_libedit=yes
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426$as_echo "no" >&6; }
10427 fi
10428 fi
10429 else
10430 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10431 if test -n "${need_dash_r}"; then
10432 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10433 else
10434 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10435 fi
10436 fi
10437 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
10438 LIBEDIT=`$PKGCONFIG --libs libedit`
10439 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
10440 else
10441 LIBEDIT="-ledit -lcurses"
10442 fi
10443 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
10445$as_echo_n "checking for el_init in -ledit... " >&6; }
10446if ${ac_cv_lib_edit_el_init+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448else
10449 ac_check_lib_save_LIBS=$LIBS
10450LIBS="-ledit $OTHERLIBS
10451 $LIBS"
10452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h. */
10454
10455/* Override any GCC internal prototype to avoid an error.
10456 Use char because int might match the return type of a GCC
10457 builtin and then its argument prototype would still apply. */
10458#ifdef __cplusplus
10459extern "C"
10460#endif
10461char el_init ();
10462int
10463main ()
10464{
10465return el_init ();
10466 ;
10467 return 0;
10468}
10469_ACEOF
10470if ac_fn_c_try_link "$LINENO"; then :
10471 ac_cv_lib_edit_el_init=yes
10472else
10473 ac_cv_lib_edit_el_init=no
10474fi
10475rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477LIBS=$ac_check_lib_save_LIBS
10478fi
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
10480$as_echo "$ac_cv_lib_edit_el_init" >&6; }
10481if test "x$ac_cv_lib_edit_el_init" = xyes; then :
10482
10483$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
10484
10485 LIBEDIT_MSG="yes"
10486
10487
10488else
10489 as_fn_error $? "libedit not found" "$LINENO" 5
10490fi
10491
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
10493$as_echo_n "checking if libedit version is compatible... " >&6; }
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
10496 #include <histedit.h>
10497int
10498main ()
10499{
10500
10501 int i = H_SETSIZE;
10502 el_init("", NULL, NULL, NULL);
10503 exit(0);
10504
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509if ac_fn_c_try_compile "$LINENO"; then :
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511$as_echo "yes" >&6; }
10512else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514$as_echo "no" >&6; }
10515 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
10516
10517fi
10518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 fi
10520
10521fi
10522
10523
10524AUDIT_MODULE=none
10525
10526# Check whether --with-audit was given.
10527if test "${with_audit+set}" = set; then :
10528 withval=$with_audit;
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
10530$as_echo_n "checking for supported audit module... " >&6; }
10531 case "$withval" in
10532 bsm)
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
10534$as_echo "bsm" >&6; }
10535 AUDIT_MODULE=bsm
10536 for ac_header in bsm/audit.h
10537do :
10538 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
10539#ifdef HAVE_TIME_H
10540# include <time.h>
10541#endif
10542
10543
10544"
10545if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
10546 cat >>confdefs.h <<_ACEOF
10547#define HAVE_BSM_AUDIT_H 1
10548_ACEOF
10549
10550else
10551 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
10552fi
10553
10554done
10555
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
10557$as_echo_n "checking for getaudit in -lbsm... " >&6; }
10558if ${ac_cv_lib_bsm_getaudit+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 ac_check_lib_save_LIBS=$LIBS
10562LIBS="-lbsm $LIBS"
10563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565
10566/* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569#ifdef __cplusplus
10570extern "C"
10571#endif
10572char getaudit ();
10573int
10574main ()
10575{
10576return getaudit ();
10577 ;
10578 return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_bsm_getaudit=yes
10583else
10584 ac_cv_lib_bsm_getaudit=no
10585fi
10586rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588LIBS=$ac_check_lib_save_LIBS
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
10591$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
10592if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
10593 cat >>confdefs.h <<_ACEOF
10594#define HAVE_LIBBSM 1
10595_ACEOF
10596
10597 LIBS="-lbsm $LIBS"
10598
10599else
10600 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
10601fi
10602
10603 for ac_func in getaudit
10604do :
10605 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
10606if test "x$ac_cv_func_getaudit" = xyes; then :
10607 cat >>confdefs.h <<_ACEOF
10608#define HAVE_GETAUDIT 1
10609_ACEOF
10610
10611else
10612 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
10613fi
10614done
10615
10616 # These are optional
10617 for ac_func in getaudit_addr aug_get_machine
10618do :
10619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10621if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10622 cat >>confdefs.h <<_ACEOF
10623#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10624_ACEOF
10625
10626fi
10627done
10628
10629
10630$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
10631
10632 if test "$sol2ver" -ge 11; then
10633 SSHDLIBS="$SSHDLIBS -lscf"
10634
10635$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
10636
10637 fi
10638 ;;
10639 linux)
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
10641$as_echo "linux" >&6; }
10642 AUDIT_MODULE=linux
10643 for ac_header in libaudit.h
10644do :
10645 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
10646if test "x$ac_cv_header_libaudit_h" = xyes; then :
10647 cat >>confdefs.h <<_ACEOF
10648#define HAVE_LIBAUDIT_H 1
10649_ACEOF
10650
10651fi
10652
10653done
10654
10655 SSHDLIBS="$SSHDLIBS -laudit"
10656
10657$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
10658
10659 ;;
10660 debug)
10661 AUDIT_MODULE=debug
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
10663$as_echo "debug" >&6; }
10664
10665$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
10666
10667 ;;
10668 no)
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
10671 ;;
10672 *)
10673 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
10674 ;;
10675 esac
10676
10677fi
10678
10679
10680
10681# Check whether --with-pie was given.
10682if test "${with_pie+set}" = set; then :
10683 withval=$with_pie;
10684 if test "x$withval" = "xno"; then
10685 use_pie=no
10686 fi
10687 if test "x$withval" = "xyes"; then
10688 use_pie=yes
10689 fi
10690
10691
10692fi
10693
10694if test "x$use_pie" = "x"; then
10695 use_pie=no
10696fi
10697if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10698 # Turn off automatic PIE when toolchain hardening is off.
10699 use_pie=no
10700fi
10701if test "x$use_pie" = "xauto"; then
10702 # Automatic PIE requires gcc >= 4.x
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5
10704$as_echo_n "checking for gcc >= 4.x... " >&6; }
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h. */
10707
10708#if !defined(__GNUC__) || __GNUC__ < 4
10709#error gcc is too old
10710#endif
10711
10712_ACEOF
10713if ac_fn_c_try_compile "$LINENO"; then :
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10715$as_echo "yes" >&6; }
10716else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
10719 use_pie=no
10720
10721fi
10722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723fi
10724if test "x$use_pie" != "xno"; then
10725 SAVED_CFLAGS="$CFLAGS"
10726 SAVED_LDFLAGS="$LDFLAGS"
10727 {
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5
10729$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; }
10730 saved_CFLAGS="$CFLAGS"
10731 CFLAGS="$CFLAGS $WERROR -fPIE"
10732 _define_flag=""
10733 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735/* end confdefs.h. */
10736
10737#include <stdlib.h>
10738#include <stdio.h>
10739int main(int argc, char **argv) {
10740 /* Some math to catch -ftrapv problems in the toolchain */
10741 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10742 float l = i * 2.1;
10743 double m = l / 0.5;
10744 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10745 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
10746 exit(0);
10747}
10748
10749_ACEOF
10750if ac_fn_c_try_compile "$LINENO"; then :
10751
10752if `grep -i "unrecognized option" conftest.err >/dev/null`
10753then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756 CFLAGS="$saved_CFLAGS"
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10759$as_echo "yes" >&6; }
10760 CFLAGS="$saved_CFLAGS $_define_flag"
10761fi
10762else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764$as_echo "no" >&6; }
10765 CFLAGS="$saved_CFLAGS"
10766
10767fi
10768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769}
10770 {
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5
10772$as_echo_n "checking if $LD supports link flag -pie... " >&6; }
10773 saved_LDFLAGS="$LDFLAGS"
10774 LDFLAGS="$LDFLAGS $WERROR -pie"
10775 _define_flag=""
10776 test "x$_define_flag" = "x" && _define_flag="-pie"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778/* end confdefs.h. */
10779
10780#include <stdlib.h>
10781#include <stdio.h>
10782int main(int argc, char **argv) {
10783 /* Some math to catch -ftrapv problems in the toolchain */
10784 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
10785 float l = i * 2.1;
10786 double m = l / 0.5;
10787 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
10788 long long p = n * o;
10789 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
10790 exit(0);
10791}
10792
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10796$as_echo "yes" >&6; }
10797 LDFLAGS="$saved_LDFLAGS $_define_flag"
10798else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
10801 LDFLAGS="$saved_LDFLAGS"
10802
10803fi
10804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806}
10807 # We use both -fPIE and -pie or neither.
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5
10809$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; }
10810 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10811 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813$as_echo "yes" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
10817 CFLAGS="$SAVED_CFLAGS"
10818 LDFLAGS="$SAVED_LDFLAGS"
10819 fi
10820fi
10821
10822for ac_func in \
10823 Blowfish_initstate \
10824 Blowfish_expandstate \
10825 Blowfish_expand0state \
10826 Blowfish_stream2word \
10827 asprintf \
10828 b64_ntop \
10829 __b64_ntop \
10830 b64_pton \
10831 __b64_pton \
10832 bcopy \
10833 bcrypt_pbkdf \
10834 bindresvport_sa \
10835 blf_enc \
10836 cap_rights_limit \
10837 clock \
10838 closefrom \
10839 dirfd \
10840 endgrent \
10841 err \
10842 errx \
10843 explicit_bzero \
10844 fchmod \
10845 fchown \
10846 freeaddrinfo \
10847 freezero \
10848 fstatfs \
10849 fstatvfs \
10850 futimes \
10851 getaddrinfo \
10852 getcwd \
10853 getgrouplist \
10854 getnameinfo \
10855 getopt \
10856 getpagesize \
10857 getpeereid \
10858 getpeerucred \
10859 getpgid \
10860 getpgrp \
10861 _getpty \
10862 getrlimit \
10863 getttyent \
10864 glob \
10865 group_from_gid \
10866 inet_aton \
10867 inet_ntoa \
10868 inet_ntop \
10869 innetgr \
10870 llabs \
10871 login_getcapbool \
10872 md5_crypt \
10873 memmove \
10874 memset_s \
10875 mkdtemp \
10876 ngetaddrinfo \
10877 nsleep \
10878 ogetaddrinfo \
10879 openlog_r \
10880 pledge \
10881 poll \
10882 prctl \
10883 pstat \
10884 readpassphrase \
10885 reallocarray \
10886 recvmsg \
10887 recallocarray \
10888 rresvport_af \
10889 sendmsg \
10890 setdtablesize \
10891 setegid \
10892 setenv \
10893 seteuid \
10894 setgroupent \
10895 setgroups \
10896 setlinebuf \
10897 setlogin \
10898 setpassent\
10899 setpcred \
10900 setproctitle \
10901 setregid \
10902 setreuid \
10903 setrlimit \
10904 setsid \
10905 setvbuf \
10906 sigaction \
10907 sigvec \
10908 snprintf \
10909 socketpair \
10910 statfs \
10911 statvfs \
10912 strcasestr \
10913 strdup \
10914 strerror \
10915 strlcat \
10916 strlcpy \
10917 strmode \
10918 strnlen \
10919 strnvis \
10920 strptime \
10921 strsignal \
10922 strtonum \
10923 strtoll \
10924 strtoul \
10925 strtoull \
10926 swap32 \
10927 sysconf \
10928 tcgetpgrp \
10929 timingsafe_bcmp \
10930 truncate \
10931 unsetenv \
10932 updwtmpx \
10933 user_from_uid \
10934 usleep \
10935 vasprintf \
10936 vsnprintf \
10937 waitpid \
10938 warn \
10939
10940do :
10941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10944 cat >>confdefs.h <<_ACEOF
10945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10946_ACEOF
10947
10948fi
10949done
10950
10951
10952for ac_func in mblen mbtowc nl_langinfo wcwidth
10953do :
10954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10956if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10957 cat >>confdefs.h <<_ACEOF
10958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959_ACEOF
10960
10961fi
10962done
10963
10964
10965TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes}
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5
10967$as_echo_n "checking for utf8 locale support... " >&6; }
10968if test "$cross_compiling" = yes; then :
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10970$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10971
10972else
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974/* end confdefs.h. */
10975
10976#include <locale.h>
10977#include <stdlib.h>
10978
10979int
10980main ()
10981{
10982
10983 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8");
10984 if (loc != NULL)
10985 exit(0);
10986 exit(1);
10987
10988 ;
10989 return 0;
10990}
10991_ACEOF
10992if ac_fn_c_try_run "$LINENO"; then :
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994$as_echo "yes" >&6; }
10995else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
10998 TEST_SSH_UTF8=no
10999fi
11000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11001 conftest.$ac_objext conftest.beam conftest.$ac_ext
11002fi
11003
11004
11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007 #include <ctype.h>
11008int
11009main ()
11010{
11011 return (isblank('a'));
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017
11018$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
11019
11020
11021fi
11022rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024
11025disable_pkcs11=
11026# Check whether --enable-pkcs11 was given.
11027if test "${enable_pkcs11+set}" = set; then :
11028 enableval=$enable_pkcs11;
11029 if test "x$enableval" = "xno" ; then
11030 disable_pkcs11=1
11031 fi
11032
11033
11034fi
11035
11036
11037# PKCS11 depends on OpenSSL.
11038if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
11039 # PKCS#11 support requires dlopen() and co
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11041$as_echo_n "checking for library containing dlopen... " >&6; }
11042if ${ac_cv_search_dlopen+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044else
11045 ac_func_search_save_LIBS=$LIBS
11046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047/* end confdefs.h. */
11048
11049/* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052#ifdef __cplusplus
11053extern "C"
11054#endif
11055char dlopen ();
11056int
11057main ()
11058{
11059return dlopen ();
11060 ;
11061 return 0;
11062}
11063_ACEOF
11064for ac_lib in '' dl; do
11065 if test -z "$ac_lib"; then
11066 ac_res="none required"
11067 else
11068 ac_res=-l$ac_lib
11069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11070 fi
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 ac_cv_search_dlopen=$ac_res
11073fi
11074rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext
11076 if ${ac_cv_search_dlopen+:} false; then :
11077 break
11078fi
11079done
11080if ${ac_cv_search_dlopen+:} false; then :
11081
11082else
11083 ac_cv_search_dlopen=no
11084fi
11085rm conftest.$ac_ext
11086LIBS=$ac_func_search_save_LIBS
11087fi
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11089$as_echo "$ac_cv_search_dlopen" >&6; }
11090ac_res=$ac_cv_search_dlopen
11091if test "$ac_res" != no; then :
11092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11093
11094$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
11095
11096
11097fi
11098
11099fi
11100
11101# IRIX has a const char return value for gai_strerror()
11102for ac_func in gai_strerror
11103do :
11104 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
11105if test "x$ac_cv_func_gai_strerror" = xyes; then :
11106 cat >>confdefs.h <<_ACEOF
11107#define HAVE_GAI_STRERROR 1
11108_ACEOF
11109
11110 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
11111
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113/* end confdefs.h. */
11114
11115#include <sys/types.h>
11116#include <sys/socket.h>
11117#include <netdb.h>
11118
11119const char *gai_strerror(int);
11120
11121int
11122main ()
11123{
11124
11125 char *str;
11126 str = gai_strerror(0);
11127
11128 ;
11129 return 0;
11130}
11131_ACEOF
11132if ac_fn_c_try_compile "$LINENO"; then :
11133
11134
11135$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
11136
11137fi
11138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139fi
11140done
11141
11142
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
11144$as_echo_n "checking for library containing nanosleep... " >&6; }
11145if ${ac_cv_search_nanosleep+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147else
11148 ac_func_search_save_LIBS=$LIBS
11149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150/* end confdefs.h. */
11151
11152/* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155#ifdef __cplusplus
11156extern "C"
11157#endif
11158char nanosleep ();
11159int
11160main ()
11161{
11162return nanosleep ();
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167for ac_lib in '' rt posix4; do
11168 if test -z "$ac_lib"; then
11169 ac_res="none required"
11170 else
11171 ac_res=-l$ac_lib
11172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11173 fi
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 ac_cv_search_nanosleep=$ac_res
11176fi
11177rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext
11179 if ${ac_cv_search_nanosleep+:} false; then :
11180 break
11181fi
11182done
11183if ${ac_cv_search_nanosleep+:} false; then :
11184
11185else
11186 ac_cv_search_nanosleep=no
11187fi
11188rm conftest.$ac_ext
11189LIBS=$ac_func_search_save_LIBS
11190fi
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
11192$as_echo "$ac_cv_search_nanosleep" >&6; }
11193ac_res=$ac_cv_search_nanosleep
11194if test "$ac_res" != no; then :
11195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11196
11197$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
11198
11199fi
11200
11201
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11203$as_echo_n "checking for library containing clock_gettime... " >&6; }
11204if ${ac_cv_search_clock_gettime+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206else
11207 ac_func_search_save_LIBS=$LIBS
11208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h. */
11210
11211/* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214#ifdef __cplusplus
11215extern "C"
11216#endif
11217char clock_gettime ();
11218int
11219main ()
11220{
11221return clock_gettime ();
11222 ;
11223 return 0;
11224}
11225_ACEOF
11226for ac_lib in '' rt; do
11227 if test -z "$ac_lib"; then
11228 ac_res="none required"
11229 else
11230 ac_res=-l$ac_lib
11231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11232 fi
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 ac_cv_search_clock_gettime=$ac_res
11235fi
11236rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext
11238 if ${ac_cv_search_clock_gettime+:} false; then :
11239 break
11240fi
11241done
11242if ${ac_cv_search_clock_gettime+:} false; then :
11243
11244else
11245 ac_cv_search_clock_gettime=no
11246fi
11247rm conftest.$ac_ext
11248LIBS=$ac_func_search_save_LIBS
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11251$as_echo "$ac_cv_search_clock_gettime" >&6; }
11252ac_res=$ac_cv_search_clock_gettime
11253if test "$ac_res" != no; then :
11254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11255
11256$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11257
11258fi
11259
11260
11261ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
11262if test "x$ac_cv_have_decl_getrusage" = xyes; then :
11263 for ac_func in getrusage
11264do :
11265 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11266if test "x$ac_cv_func_getrusage" = xyes; then :
11267 cat >>confdefs.h <<_ACEOF
11268#define HAVE_GETRUSAGE 1
11269_ACEOF
11270
11271fi
11272done
11273
11274fi
11275
11276ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
11277#ifdef HAVE_STRING_H
11278# include <string.h>
11279#endif
11280
11281"
11282if test "x$ac_cv_have_decl_strsep" = xyes; then :
11283 for ac_func in strsep
11284do :
11285 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
11286if test "x$ac_cv_func_strsep" = xyes; then :
11287 cat >>confdefs.h <<_ACEOF
11288#define HAVE_STRSEP 1
11289_ACEOF
11290
11291fi
11292done
11293
11294fi
11295
11296
11297ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
11298
11299"
11300if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
11301 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
11302
11303else
11304 for ac_func in tcsendbreak
11305do :
11306 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
11307if test "x$ac_cv_func_tcsendbreak" = xyes; then :
11308 cat >>confdefs.h <<_ACEOF
11309#define HAVE_TCSENDBREAK 1
11310_ACEOF
11311
11312fi
11313done
11314
11315fi
11316
11317
11318ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
11319"
11320if test "x$ac_cv_have_decl_h_errno" = xyes; then :
11321 ac_have_decl=1
11322else
11323 ac_have_decl=0
11324fi
11325
11326cat >>confdefs.h <<_ACEOF
11327#define HAVE_DECL_H_ERRNO $ac_have_decl
11328_ACEOF
11329
11330
11331ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11332#include <sys/types.h>
11333#include <sys/socket.h>
11334
11335"
11336if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
11337 ac_have_decl=1
11338else
11339 ac_have_decl=0
11340fi
11341
11342cat >>confdefs.h <<_ACEOF
11343#define HAVE_DECL_SHUT_RD $ac_have_decl
11344_ACEOF
11345
11346
11347ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
11348#include <sys/types.h>
11349#ifdef HAVE_SYS_STAT_H
11350# include <sys/stat.h>
11351#endif
11352#ifdef HAVE_FCNTL_H
11353# include <fcntl.h>
11354#endif
11355
11356"
11357if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
11358 ac_have_decl=1
11359else
11360 ac_have_decl=0
11361fi
11362
11363cat >>confdefs.h <<_ACEOF
11364#define HAVE_DECL_O_NONBLOCK $ac_have_decl
11365_ACEOF
11366
11367
11368ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
11369#include <sys/types.h>
11370#include <sys/uio.h>
11371#include <unistd.h>
11372
11373"
11374if test "x$ac_cv_have_decl_writev" = xyes; then :
11375 ac_have_decl=1
11376else
11377 ac_have_decl=0
11378fi
11379
11380cat >>confdefs.h <<_ACEOF
11381#define HAVE_DECL_WRITEV $ac_have_decl
11382_ACEOF
11383
11384
11385ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
11386#include <sys/param.h>
11387
11388"
11389if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
11390 ac_have_decl=1
11391else
11392 ac_have_decl=0
11393fi
11394
11395cat >>confdefs.h <<_ACEOF
11396#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
11397_ACEOF
11398
11399
11400ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
11401#include <stddef.h>
11402
11403"
11404if test "x$ac_cv_have_decl_offsetof" = xyes; then :
11405 ac_have_decl=1
11406else
11407 ac_have_decl=0
11408fi
11409
11410cat >>confdefs.h <<_ACEOF
11411#define HAVE_DECL_OFFSETOF $ac_have_decl
11412_ACEOF
11413
11414
11415# extra bits for select(2)
11416ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
11417#include <sys/param.h>
11418#include <sys/types.h>
11419#ifdef HAVE_SYS_SYSMACROS_H
11420#include <sys/sysmacros.h>
11421#endif
11422#ifdef HAVE_SYS_SELECT_H
11423#include <sys/select.h>
11424#endif
11425#ifdef HAVE_SYS_TIME_H
11426#include <sys/time.h>
11427#endif
11428#ifdef HAVE_UNISTD_H
11429#include <unistd.h>
11430#endif
11431
11432"
11433if test "x$ac_cv_have_decl_howmany" = xyes; then :
11434 ac_have_decl=1
11435else
11436 ac_have_decl=0
11437fi
11438
11439cat >>confdefs.h <<_ACEOF
11440#define HAVE_DECL_HOWMANY $ac_have_decl
11441_ACEOF
11442ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
11443#include <sys/param.h>
11444#include <sys/types.h>
11445#ifdef HAVE_SYS_SYSMACROS_H
11446#include <sys/sysmacros.h>
11447#endif
11448#ifdef HAVE_SYS_SELECT_H
11449#include <sys/select.h>
11450#endif
11451#ifdef HAVE_SYS_TIME_H
11452#include <sys/time.h>
11453#endif
11454#ifdef HAVE_UNISTD_H
11455#include <unistd.h>
11456#endif
11457
11458"
11459if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
11460 ac_have_decl=1
11461else
11462 ac_have_decl=0
11463fi
11464
11465cat >>confdefs.h <<_ACEOF
11466#define HAVE_DECL_NFDBITS $ac_have_decl
11467_ACEOF
11468
11469ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
11470#include <sys/param.h>
11471#include <sys/types.h>
11472#ifdef HAVE_SYS_SELECT_H
11473#include <sys/select.h>
11474#endif
11475#ifdef HAVE_SYS_TIME_H
11476#include <sys/time.h>
11477#endif
11478#ifdef HAVE_UNISTD_H
11479#include <unistd.h>
11480#endif
11481
11482"
11483if test "x$ac_cv_type_fd_mask" = xyes; then :
11484
11485cat >>confdefs.h <<_ACEOF
11486#define HAVE_FD_MASK 1
11487_ACEOF
11488
11489
11490fi
11491
11492
11493for ac_func in setresuid
11494do :
11495 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
11496if test "x$ac_cv_func_setresuid" = xyes; then :
11497 cat >>confdefs.h <<_ACEOF
11498#define HAVE_SETRESUID 1
11499_ACEOF
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
11502$as_echo_n "checking if setresuid seems to work... " >&6; }
11503 if test "$cross_compiling" = yes; then :
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11505$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11506
11507else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509/* end confdefs.h. */
11510
11511#include <stdlib.h>
11512#include <errno.h>
11513
11514int
11515main ()
11516{
11517
11518 errno=0;
11519 setresuid(0,0,0);
11520 if (errno==ENOSYS)
11521 exit(1);
11522 else
11523 exit(0);
11524
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_run "$LINENO"; then :
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
11532else
11533
11534$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11537$as_echo "not implemented" >&6; }
11538fi
11539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11540 conftest.$ac_objext conftest.beam conftest.$ac_ext
11541fi
11542
11543
11544fi
11545done
11546
11547
11548for ac_func in setresgid
11549do :
11550 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
11551if test "x$ac_cv_func_setresgid" = xyes; then :
11552 cat >>confdefs.h <<_ACEOF
11553#define HAVE_SETRESGID 1
11554_ACEOF
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
11557$as_echo_n "checking if setresgid seems to work... " >&6; }
11558 if test "$cross_compiling" = yes; then :
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
11560$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11561
11562else
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564/* end confdefs.h. */
11565
11566#include <stdlib.h>
11567#include <errno.h>
11568
11569int
11570main ()
11571{
11572
11573 errno=0;
11574 setresgid(0,0,0);
11575 if (errno==ENOSYS)
11576 exit(1);
11577 else
11578 exit(0);
11579
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_run "$LINENO"; then :
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586$as_echo "yes" >&6; }
11587else
11588
11589$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
11592$as_echo "not implemented" >&6; }
11593fi
11594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11595 conftest.$ac_objext conftest.beam conftest.$ac_ext
11596fi
11597
11598
11599fi
11600done
11601
11602
11603for ac_func in realpath
11604do :
11605 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11606if test "x$ac_cv_func_realpath" = xyes; then :
11607 cat >>confdefs.h <<_ACEOF
11608#define HAVE_REALPATH 1
11609_ACEOF
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5
11612$as_echo_n "checking if realpath works with non-existent files... " >&6; }
11613 if test "$cross_compiling" = yes; then :
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5
11615$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
11616
11617else
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h. */
11620
11621#include <limits.h>
11622#include <stdlib.h>
11623#include <errno.h>
11624
11625int
11626main ()
11627{
11628
11629 char buf[PATH_MAX];
11630 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
11631 if (errno == ENOENT)
11632 exit(1);
11633 exit(0);
11634
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639if ac_fn_c_try_run "$LINENO"; then :
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641$as_echo "yes" >&6; }
11642else
11643
11644$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
11645
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
11648fi
11649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11650 conftest.$ac_objext conftest.beam conftest.$ac_ext
11651fi
11652
11653
11654fi
11655done
11656
11657
11658for ac_func in gettimeofday time
11659do :
11660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11661ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11662if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11663 cat >>confdefs.h <<_ACEOF
11664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665_ACEOF
11666
11667fi
11668done
11669
11670for ac_func in endutent getutent getutid getutline pututline setutent
11671do :
11672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11673ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11674if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11675 cat >>confdefs.h <<_ACEOF
11676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677_ACEOF
11678
11679fi
11680done
11681
11682for ac_func in utmpname
11683do :
11684 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
11685if test "x$ac_cv_func_utmpname" = xyes; then :
11686 cat >>confdefs.h <<_ACEOF
11687#define HAVE_UTMPNAME 1
11688_ACEOF
11689
11690fi
11691done
11692
11693for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11694do :
11695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11697if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11698 cat >>confdefs.h <<_ACEOF
11699#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700_ACEOF
11701
11702fi
11703done
11704
11705for ac_func in setutxdb setutxent utmpxname
11706do :
11707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11709if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11710 cat >>confdefs.h <<_ACEOF
11711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11712_ACEOF
11713
11714fi
11715done
11716
11717for ac_func in getlastlogxbyname
11718do :
11719 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
11720if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
11721 cat >>confdefs.h <<_ACEOF
11722#define HAVE_GETLASTLOGXBYNAME 1
11723_ACEOF
11724
11725fi
11726done
11727
11728
11729ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
11730if test "x$ac_cv_func_daemon" = xyes; then :
11731
11732$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11733
11734else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
11736$as_echo_n "checking for daemon in -lbsd... " >&6; }
11737if ${ac_cv_lib_bsd_daemon+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739else
11740 ac_check_lib_save_LIBS=$LIBS
11741LIBS="-lbsd $LIBS"
11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h. */
11744
11745/* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748#ifdef __cplusplus
11749extern "C"
11750#endif
11751char daemon ();
11752int
11753main ()
11754{
11755return daemon ();
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_bsd_daemon=yes
11762else
11763 ac_cv_lib_bsd_daemon=no
11764fi
11765rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767LIBS=$ac_check_lib_save_LIBS
11768fi
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
11770$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
11771if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
11772 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
11773
11774fi
11775
11776
11777fi
11778
11779
11780ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11781if test "x$ac_cv_func_getpagesize" = xyes; then :
11782
11783$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11784
11785else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
11787$as_echo_n "checking for getpagesize in -lucb... " >&6; }
11788if ${ac_cv_lib_ucb_getpagesize+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791 ac_check_lib_save_LIBS=$LIBS
11792LIBS="-lucb $LIBS"
11793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794/* end confdefs.h. */
11795
11796/* Override any GCC internal prototype to avoid an error.
11797 Use char because int might match the return type of a GCC
11798 builtin and then its argument prototype would still apply. */
11799#ifdef __cplusplus
11800extern "C"
11801#endif
11802char getpagesize ();
11803int
11804main ()
11805{
11806return getpagesize ();
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811if ac_fn_c_try_link "$LINENO"; then :
11812 ac_cv_lib_ucb_getpagesize=yes
11813else
11814 ac_cv_lib_ucb_getpagesize=no
11815fi
11816rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818LIBS=$ac_check_lib_save_LIBS
11819fi
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
11821$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
11822if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
11823 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11824
11825fi
11826
11827
11828fi
11829
11830
11831# Check for broken snprintf
11832if test "x$ac_cv_func_snprintf" = "xyes" ; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
11834$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
11835 if test "$cross_compiling" = yes; then :
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
11837$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11838
11839else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841/* end confdefs.h. */
11842 #include <stdio.h>
11843int
11844main ()
11845{
11846
11847 char b[5];
11848 snprintf(b,5,"123456789");
11849 exit(b[4]!='\0');
11850
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855if ac_fn_c_try_run "$LINENO"; then :
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11857$as_echo "yes" >&6; }
11858else
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862
11863$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11866$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11867
11868fi
11869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11870 conftest.$ac_objext conftest.beam conftest.$ac_ext
11871fi
11872
11873fi
11874
11875# We depend on vsnprintf returning the right thing on overflow: the
11876# number of characters it tried to create (as per SUSv3)
11877if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
11879$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
11880 if test "$cross_compiling" = yes; then :
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11882$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11883
11884else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h. */
11887
11888#include <sys/types.h>
11889#include <stdio.h>
11890#include <stdarg.h>
11891
11892int x_snprintf(char *str, size_t count, const char *fmt, ...)
11893{
11894 size_t ret;
11895 va_list ap;
11896
11897 va_start(ap, fmt);
11898 ret = vsnprintf(str, count, fmt, ap);
11899 va_end(ap);
11900 return ret;
11901}
11902
11903int
11904main ()
11905{
11906
11907char x[1];
11908if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
11909 return 1;
11910if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
11911 return 1;
11912return 0;
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_run "$LINENO"; then :
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920$as_echo "yes" >&6; }
11921else
11922
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
11925
11926$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
11927
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11929$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11930
11931fi
11932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11933 conftest.$ac_objext conftest.beam conftest.$ac_ext
11934fi
11935
11936fi
11937
11938# On systems where [v]snprintf is broken, but is declared in stdio,
11939# check that the fmt argument is const char * or just char *.
11940# This is only useful for when BROKEN_SNPRINTF
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
11942$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h. */
11945
11946#include <stdio.h>
11947int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
11948
11949int
11950main ()
11951{
11952
11953 snprintf(0, 0, 0);
11954
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959if ac_fn_c_try_compile "$LINENO"; then :
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961$as_echo "yes" >&6; }
11962
11963$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
11964
11965else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
11968 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
11969
11970fi
11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972
11973# Check for missing getpeereid (or equiv) support
11974NO_PEERCHECK=""
11975if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
11977$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980
11981#include <sys/types.h>
11982#include <sys/socket.h>
11983int
11984main ()
11985{
11986int i = SO_PEERCRED;
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991if ac_fn_c_try_compile "$LINENO"; then :
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11993$as_echo "yes" >&6; }
11994
11995$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
11996
11997
11998else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001 NO_PEERCHECK=1
12002
12003fi
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005fi
12006
12007if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
12009$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
12010if test "$cross_compiling" = yes; then :
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013$as_echo "yes" >&6; }
12014 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12015
12016
12017
12018else
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020/* end confdefs.h. */
12021
12022#include <stdlib.h>
12023
12024int
12025main ()
12026{
12027
12028 char template[]="conftest.mkstemp-test";
12029 if (mkstemp(template) == -1)
12030 exit(1);
12031 unlink(template);
12032 exit(0);
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_run "$LINENO"; then :
12039
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042
12043else
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046$as_echo "yes" >&6; }
12047
12048$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
12049
12050
12051fi
12052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12053 conftest.$ac_objext conftest.beam conftest.$ac_ext
12054fi
12055
12056fi
12057
12058if test ! -z "$check_for_openpty_ctty_bug"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
12060$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
12061 if test "$cross_compiling" = yes; then :
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12064$as_echo "cross-compiling, assuming yes" >&6; }
12065
12066
12067else
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h. */
12070
12071#include <stdio.h>
12072#include <sys/fcntl.h>
12073#include <sys/types.h>
12074#include <sys/wait.h>
12075
12076int
12077main ()
12078{
12079
12080 pid_t pid;
12081 int fd, ptyfd, ttyfd, status;
12082
12083 pid = fork();
12084 if (pid < 0) { /* failed */
12085 exit(1);
12086 } else if (pid > 0) { /* parent */
12087 waitpid(pid, &status, 0);
12088 if (WIFEXITED(status))
12089 exit(WEXITSTATUS(status));
12090 else
12091 exit(2);
12092 } else { /* child */
12093 close(0); close(1); close(2);
12094 setsid();
12095 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
12096 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
12097 if (fd >= 0)
12098 exit(3); /* Acquired ctty: broken */
12099 else
12100 exit(0); /* Did not acquire ctty: OK */
12101 }
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_run "$LINENO"; then :
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110$as_echo "yes" >&6; }
12111
12112else
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
12116 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
12117
12118
12119fi
12120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12121 conftest.$ac_objext conftest.beam conftest.$ac_ext
12122fi
12123
12124fi
12125
12126if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12127 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12129$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12130 if test "$cross_compiling" = yes; then :
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
12133$as_echo "cross-compiling, assuming yes" >&6; }
12134
12135
12136else
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h. */
12139
12140#include <stdio.h>
12141#include <sys/socket.h>
12142#include <netdb.h>
12143#include <errno.h>
12144#include <netinet/in.h>
12145
12146#define TEST_PORT "2222"
12147
12148int
12149main ()
12150{
12151
12152 int err, sock;
12153 struct addrinfo *gai_ai, *ai, hints;
12154 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12155
12156 memset(&hints, 0, sizeof(hints));
12157 hints.ai_family = PF_UNSPEC;
12158 hints.ai_socktype = SOCK_STREAM;
12159 hints.ai_flags = AI_PASSIVE;
12160
12161 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12162 if (err != 0) {
12163 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12164 exit(1);
12165 }
12166
12167 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12168 if (ai->ai_family != AF_INET6)
12169 continue;
12170
12171 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12172 sizeof(ntop), strport, sizeof(strport),
12173 NI_NUMERICHOST|NI_NUMERICSERV);
12174
12175 if (err != 0) {
12176 if (err == EAI_SYSTEM)
12177 perror("getnameinfo EAI_SYSTEM");
12178 else
12179 fprintf(stderr, "getnameinfo failed: %s\n",
12180 gai_strerror(err));
12181 exit(2);
12182 }
12183
12184 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
12185 if (sock < 0)
12186 perror("socket");
12187 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
12188 if (errno == EBADF)
12189 exit(3);
12190 }
12191 }
12192 exit(0);
12193
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198if ac_fn_c_try_run "$LINENO"; then :
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201$as_echo "yes" >&6; }
12202
12203else
12204
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
12207 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12208
12209
12210fi
12211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12212 conftest.$ac_objext conftest.beam conftest.$ac_ext
12213fi
12214
12215fi
12216
12217if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
12218 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
12220$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
12221 if test "$cross_compiling" = yes; then :
12222
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
12224$as_echo "cross-compiling, assuming no" >&6; }
12225
12226
12227else
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
12230
12231#include <stdio.h>
12232#include <sys/socket.h>
12233#include <netdb.h>
12234#include <errno.h>
12235#include <netinet/in.h>
12236
12237#define TEST_PORT "2222"
12238
12239int
12240main ()
12241{
12242
12243 int err, sock;
12244 struct addrinfo *gai_ai, *ai, hints;
12245 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
12246
12247 memset(&hints, 0, sizeof(hints));
12248 hints.ai_family = PF_UNSPEC;
12249 hints.ai_socktype = SOCK_STREAM;
12250 hints.ai_flags = AI_PASSIVE;
12251
12252 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
12253 if (err != 0) {
12254 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
12255 exit(1);
12256 }
12257
12258 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
12259 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
12260 continue;
12261
12262 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
12263 sizeof(ntop), strport, sizeof(strport),
12264 NI_NUMERICHOST|NI_NUMERICSERV);
12265
12266 if (ai->ai_family == AF_INET && err != 0) {
12267 perror("getnameinfo");
12268 exit(2);
12269 }
12270 }
12271 exit(0);
12272
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_run "$LINENO"; then :
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280$as_echo "yes" >&6; }
12281
12282$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
12283
12284
12285else
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
12290
12291
12292fi
12293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12294 conftest.$ac_objext conftest.beam conftest.$ac_ext
12295fi
12296
12297fi
12298
12299if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
12300 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h>
12301 #include <sys/socket.h>
12302 #include <netdb.h>
12303"
12304if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then :
12305 ac_have_decl=1
12306else
12307 ac_have_decl=0
12308fi
12309
12310cat >>confdefs.h <<_ACEOF
12311#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl
12312_ACEOF
12313
12314fi
12315
12316if test "x$check_for_conflicting_getspnam" = "x1"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
12318$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h. */
12321 #include <shadow.h>
12322int
12323main ()
12324{
12325 exit(0);
12326 ;
12327 return 0;
12328}
12329_ACEOF
12330if ac_fn_c_try_compile "$LINENO"; then :
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
12334
12335else
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12338$as_echo "yes" >&6; }
12339
12340$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
12341
12342
12343
12344fi
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346fi
12347
12348if test "x$ac_cv_func_strnvis" = "xyes"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5
12350$as_echo_n "checking for working strnvis... " >&6; }
12351 if test "$cross_compiling" = yes; then :
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5
12353$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;}
12354
12355$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12356
12357
12358else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361
12362#include <signal.h>
12363#include <stdlib.h>
12364#include <string.h>
12365#include <vis.h>
12366static void sighandler(int sig) { _exit(1); }
12367
12368int
12369main ()
12370{
12371
12372 char dst[16];
12373
12374 signal(SIGSEGV, sighandler);
12375 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)
12376 exit(0);
12377 exit(1)
12378
12379 ;
12380 return 0;
12381}
12382_ACEOF
12383if ac_fn_c_try_run "$LINENO"; then :
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12385$as_echo "yes" >&6; }
12386else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389
12390$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
12391
12392fi
12393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12394 conftest.$ac_objext conftest.beam conftest.$ac_ext
12395fi
12396
12397fi
12398
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12400$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12401if ${ac_cv_func_getpgrp_void+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403else
12404 # Use it with a single arg.
12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h. */
12407$ac_includes_default
12408int
12409main ()
12410{
12411getpgrp (0);
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_compile "$LINENO"; then :
12417 ac_cv_func_getpgrp_void=no
12418else
12419 ac_cv_func_getpgrp_void=yes
12420fi
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422
12423fi
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12425$as_echo "$ac_cv_func_getpgrp_void" >&6; }
12426if test $ac_cv_func_getpgrp_void = yes; then
12427
12428$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12429
12430fi
12431
12432
12433# Search for OpenSSL
12434saved_CPPFLAGS="$CPPFLAGS"
12435saved_LDFLAGS="$LDFLAGS"
12436
12437# Check whether --with-ssl-dir was given.
12438if test "${with_ssl_dir+set}" = set; then :
12439 withval=$with_ssl_dir;
12440 if test "x$openssl" = "xno" ; then
12441 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5
12442 fi
12443 if test "x$withval" != "xno" ; then
12444 case "$withval" in
12445 # Relative paths
12446 ./*|../*) withval="`pwd`/$withval"
12447 esac
12448 if test -d "$withval/lib"; then
12449 if test -n "${need_dash_r}"; then
12450 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12451 else
12452 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12453 fi
12454 elif test -d "$withval/lib64"; then
12455 if test -n "${need_dash_r}"; then
12456 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
12457 else
12458 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
12459 fi
12460 else
12461 if test -n "${need_dash_r}"; then
12462 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12463 else
12464 LDFLAGS="-L${withval} ${LDFLAGS}"
12465 fi
12466 fi
12467 if test -d "$withval/include"; then
12468 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12469 else
12470 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12471 fi
12472 fi
12473
12474
12475fi
12476
12477
12478
12479# Check whether --with-openssl-header-check was given.
12480if test "${with_openssl_header_check+set}" = set; then :
12481 withval=$with_openssl_header_check;
12482 if test "x$withval" = "xno" ; then
12483 openssl_check_nonfatal=1
12484 fi
12485
12486
12487fi
12488
12489
12490openssl_engine=no
12491
12492# Check whether --with-ssl-engine was given.
12493if test "${with_ssl_engine+set}" = set; then :
12494 withval=$with_ssl_engine;
12495 if test "x$withval" != "xno" ; then
12496 if test "x$openssl" = "xno" ; then
12497 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5
12498 fi
12499 openssl_engine=yes
12500 fi
12501
12502
12503fi
12504
12505
12506if test "x$openssl" = "xyes" ; then
12507 LIBS="-lcrypto $LIBS"
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h. */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char RAND_add ();
12518int
12519main ()
12520{
12521return RAND_add ();
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_link "$LINENO"; then :
12527
12528$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12529
12530else
12531
12532 if test -n "${need_dash_r}"; then
12533 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
12534 else
12535 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
12536 fi
12537 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
12538 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
12539if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
12540
12541else
12542 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
12543fi
12544
12545
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547/* end confdefs.h. */
12548
12549/* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552#ifdef __cplusplus
12553extern "C"
12554#endif
12555char RAND_add ();
12556int
12557main ()
12558{
12559return RAND_add ();
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564if ac_fn_c_try_link "$LINENO"; then :
12565 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12566
12567else
12568
12569 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
12570
12571
12572fi
12573rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575
12576
12577fi
12578rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580
12581 # Determine OpenSSL header version
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
12583$as_echo_n "checking OpenSSL header version... " >&6; }
12584 if test "$cross_compiling" = yes; then :
12585
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12587$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12588
12589
12590else
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h. */
12593
12594 #include <stdlib.h>
12595 #include <stdio.h>
12596 #include <string.h>
12597 #include <openssl/opensslv.h>
12598 #define DATA "conftest.sslincver"
12599
12600int
12601main ()
12602{
12603
12604 FILE *fd;
12605 int rc;
12606
12607 fd = fopen(DATA,"w");
12608 if(fd == NULL)
12609 exit(1);
12610
12611 if ((rc = fprintf(fd, "%08lx (%s)\n",
12612 (unsigned long)OPENSSL_VERSION_NUMBER,
12613 OPENSSL_VERSION_TEXT)) < 0)
12614 exit(1);
12615
12616 exit(0);
12617
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622if ac_fn_c_try_run "$LINENO"; then :
12623
12624 ssl_header_ver=`cat conftest.sslincver`
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
12626$as_echo "$ssl_header_ver" >&6; }
12627
12628else
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12631$as_echo "not found" >&6; }
12632 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
12633
12634fi
12635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12636 conftest.$ac_objext conftest.beam conftest.$ac_ext
12637fi
12638
12639
12640 # Determine OpenSSL library version
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
12642$as_echo_n "checking OpenSSL library version... " >&6; }
12643 if test "$cross_compiling" = yes; then :
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12646$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12647
12648
12649else
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651/* end confdefs.h. */
12652
12653 #include <stdio.h>
12654 #include <string.h>
12655 #include <openssl/opensslv.h>
12656 #include <openssl/crypto.h>
12657 #define DATA "conftest.ssllibver"
12658
12659int
12660main ()
12661{
12662
12663 FILE *fd;
12664 int rc;
12665
12666 fd = fopen(DATA,"w");
12667 if(fd == NULL)
12668 exit(1);
12669
12670 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(),
12671 SSLeay_version(SSLEAY_VERSION))) < 0)
12672 exit(1);
12673
12674 exit(0);
12675
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_run "$LINENO"; then :
12681
12682 ssl_library_ver=`cat conftest.ssllibver`
12683 # Check version is supported.
12684 case "$ssl_library_ver" in
12685 10000*|0*)
12686 as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5
12687 ;;
12688 100*) ;; # 1.0.x
12689 200*) ;; # LibreSSL
12690 *)
12691 as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5
12692 ;;
12693 esac
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
12695$as_echo "$ssl_library_ver" >&6; }
12696
12697else
12698
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12700$as_echo "not found" >&6; }
12701 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
12702
12703fi
12704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12705 conftest.$ac_objext conftest.beam conftest.$ac_ext
12706fi
12707
12708
12709 # Sanity check OpenSSL headers
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
12711$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
12712 if test "$cross_compiling" = yes; then :
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12715$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12716
12717
12718else
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h. */
12721
12722 #include <string.h>
12723 #include <openssl/opensslv.h>
12724 #include <openssl/crypto.h>
12725
12726int
12727main ()
12728{
12729
12730 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736if ac_fn_c_try_run "$LINENO"; then :
12737
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739$as_echo "yes" >&6; }
12740
12741else
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744$as_echo "no" >&6; }
12745 if test "x$openssl_check_nonfatal" = "x"; then
12746 as_fn_error $? "Your OpenSSL headers do not match your
12747 library. Check config.log for details.
12748 If you are sure your installation is consistent, you can disable the check
12749 by running \"./configure --without-openssl-header-check\".
12750 Also see contrib/findssl.sh for help identifying header/library mismatches.
12751 " "$LINENO" 5
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
12754 library. Check config.log for details.
12755 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
12756$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
12757 library. Check config.log for details.
12758 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
12759 fi
12760
12761fi
12762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12763 conftest.$ac_objext conftest.beam conftest.$ac_ext
12764fi
12765
12766
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
12768$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h. */
12771 #include <openssl/evp.h>
12772int
12773main ()
12774{
12775 SSLeay_add_all_algorithms();
12776 ;
12777 return 0;
12778}
12779_ACEOF
12780if ac_fn_c_try_link "$LINENO"; then :
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783$as_echo "yes" >&6; }
12784
12785else
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
12789 saved_LIBS="$LIBS"
12790 LIBS="$LIBS -ldl"
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
12792$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794/* end confdefs.h. */
12795 #include <openssl/evp.h>
12796int
12797main ()
12798{
12799 SSLeay_add_all_algorithms();
12800 ;
12801 return 0;
12802}
12803_ACEOF
12804if ac_fn_c_try_link "$LINENO"; then :
12805
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807$as_echo "yes" >&6; }
12808
12809else
12810
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812$as_echo "no" >&6; }
12813 LIBS="$saved_LIBS"
12814
12815
12816fi
12817rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819
12820
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824
12825 for ac_func in \
12826 BN_is_prime_ex \
12827 DSA_generate_parameters_ex \
12828 EVP_DigestInit_ex \
12829 EVP_DigestFinal_ex \
12830 EVP_MD_CTX_init \
12831 EVP_MD_CTX_cleanup \
12832 EVP_MD_CTX_copy_ex \
12833 HMAC_CTX_init \
12834 RSA_generate_key_ex \
12835 RSA_get_default_method \
12836
12837do :
12838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12840if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12841 cat >>confdefs.h <<_ACEOF
12842#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12843_ACEOF
12844
12845fi
12846done
12847
12848
12849 if test "x$openssl_engine" = "xyes" ; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
12851$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h. */
12854
12855 #include <openssl/engine.h>
12856
12857int
12858main ()
12859{
12860
12861 ENGINE_load_builtin_engines();
12862 ENGINE_register_all_complete();
12863
12864 ;
12865 return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_compile "$LINENO"; then :
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870$as_echo "yes" >&6; }
12871
12872$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
12873
12874
12875else
12876 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
12877
12878fi
12879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 fi
12881
12882 # Check for OpenSSL without EVP_aes_{192,256}_cbc
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
12884$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886/* end confdefs.h. */
12887
12888 #include <string.h>
12889 #include <openssl/evp.h>
12890
12891int
12892main ()
12893{
12894
12895 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901if ac_fn_c_try_link "$LINENO"; then :
12902
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904$as_echo "no" >&6; }
12905
12906else
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12909$as_echo "yes" >&6; }
12910
12911$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
12912
12913
12914
12915fi
12916rm -f core conftest.err conftest.$ac_objext \
12917 conftest$ac_exeext conftest.$ac_ext
12918
12919 # Check for OpenSSL with EVP_aes_*ctr
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5
12921$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; }
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h. */
12924
12925 #include <string.h>
12926 #include <openssl/evp.h>
12927
12928int
12929main ()
12930{
12931
12932 exit(EVP_aes_128_ctr() == NULL ||
12933 EVP_aes_192_cbc() == NULL ||
12934 EVP_aes_256_cbc() == NULL);
12935
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940if ac_fn_c_try_link "$LINENO"; then :
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12943$as_echo "yes" >&6; }
12944
12945$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h
12946
12947
12948else
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
12952
12953
12954fi
12955rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957
12958 # Check for OpenSSL with EVP_aes_*gcm
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5
12960$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; }
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h. */
12963
12964 #include <string.h>
12965 #include <openssl/evp.h>
12966
12967int
12968main ()
12969{
12970
12971 exit(EVP_aes_128_gcm() == NULL ||
12972 EVP_aes_256_gcm() == NULL ||
12973 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12974 EVP_CTRL_GCM_IV_GEN == 0 ||
12975 EVP_CTRL_GCM_SET_TAG == 0 ||
12976 EVP_CTRL_GCM_GET_TAG == 0 ||
12977 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12978
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983if ac_fn_c_try_link "$LINENO"; then :
12984
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986$as_echo "yes" >&6; }
12987
12988$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h
12989
12990
12991else
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
12995 unsupported_algorithms="$unsupported_cipers \
12996 aes128-gcm@openssh.com \
12997 aes256-gcm@openssh.com"
12998
12999
13000fi
13001rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext conftest.$ac_ext
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
13005$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; }
13006if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008else
13009 ac_func_search_save_LIBS=$LIBS
13010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011/* end confdefs.h. */
13012
13013/* Override any GCC internal prototype to avoid an error.
13014 Use char because int might match the return type of a GCC
13015 builtin and then its argument prototype would still apply. */
13016#ifdef __cplusplus
13017extern "C"
13018#endif
13019char EVP_CIPHER_CTX_ctrl ();
13020int
13021main ()
13022{
13023return EVP_CIPHER_CTX_ctrl ();
13024 ;
13025 return 0;
13026}
13027_ACEOF
13028for ac_lib in '' crypto; do
13029 if test -z "$ac_lib"; then
13030 ac_res="none required"
13031 else
13032 ac_res=-l$ac_lib
13033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13034 fi
13035 if ac_fn_c_try_link "$LINENO"; then :
13036 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
13037fi
13038rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext
13040 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13041 break
13042fi
13043done
13044if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then :
13045
13046else
13047 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
13048fi
13049rm conftest.$ac_ext
13050LIBS=$ac_func_search_save_LIBS
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
13053$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
13054ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
13055if test "$ac_res" != no; then :
13056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13057
13058$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h
13059
13060fi
13061
13062
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
13064$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h. */
13067
13068 #include <string.h>
13069 #include <openssl/evp.h>
13070
13071int
13072main ()
13073{
13074
13075 if(EVP_DigestUpdate(NULL, NULL,0))
13076 exit(0);
13077
13078 ;
13079 return 0;
13080}
13081_ACEOF
13082if ac_fn_c_try_link "$LINENO"; then :
13083
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085$as_echo "yes" >&6; }
13086
13087else
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091
13092$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
13093
13094
13095
13096fi
13097rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099
13100 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
13101 # because the system crypt() is more featureful.
13102 if test "x$check_for_libcrypt_before" = "x1"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13104$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13105if ${ac_cv_lib_crypt_crypt+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107else
13108 ac_check_lib_save_LIBS=$LIBS
13109LIBS="-lcrypt $LIBS"
13110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h. */
13112
13113/* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13116#ifdef __cplusplus
13117extern "C"
13118#endif
13119char crypt ();
13120int
13121main ()
13122{
13123return crypt ();
13124 ;
13125 return 0;
13126}
13127_ACEOF
13128if ac_fn_c_try_link "$LINENO"; then :
13129 ac_cv_lib_crypt_crypt=yes
13130else
13131 ac_cv_lib_crypt_crypt=no
13132fi
13133rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135LIBS=$ac_check_lib_save_LIBS
13136fi
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13138$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13139if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13140 cat >>confdefs.h <<_ACEOF
13141#define HAVE_LIBCRYPT 1
13142_ACEOF
13143
13144 LIBS="-lcrypt $LIBS"
13145
13146fi
13147
13148 fi
13149
13150 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
13151 # version in OpenSSL.
13152 if test "x$check_for_libcrypt_later" = "x1"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13154$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13155if ${ac_cv_lib_crypt_crypt+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157else
13158 ac_check_lib_save_LIBS=$LIBS
13159LIBS="-lcrypt $LIBS"
13160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161/* end confdefs.h. */
13162
13163/* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166#ifdef __cplusplus
13167extern "C"
13168#endif
13169char crypt ();
13170int
13171main ()
13172{
13173return crypt ();
13174 ;
13175 return 0;
13176}
13177_ACEOF
13178if ac_fn_c_try_link "$LINENO"; then :
13179 ac_cv_lib_crypt_crypt=yes
13180else
13181 ac_cv_lib_crypt_crypt=no
13182fi
13183rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185LIBS=$ac_check_lib_save_LIBS
13186fi
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13188$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13189if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13190 LIBS="$LIBS -lcrypt"
13191fi
13192
13193 fi
13194 for ac_func in crypt DES_crypt
13195do :
13196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13197ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13198if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13199 cat >>confdefs.h <<_ACEOF
13200#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13201_ACEOF
13202
13203fi
13204done
13205
13206
13207 # Search for SHA256 support in libc and/or OpenSSL
13208 for ac_func in SHA256_Update EVP_sha256
13209do :
13210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13211ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13212if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13213 cat >>confdefs.h <<_ACEOF
13214#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13215_ACEOF
13216
13217else
13218 unsupported_algorithms="$unsupported_algorithms \
13219 hmac-sha2-256 \
13220 hmac-sha2-512 \
13221 diffie-hellman-group-exchange-sha256 \
13222 hmac-sha2-256-etm@openssh.com \
13223 hmac-sha2-512-etm@openssh.com"
13224
13225
13226fi
13227done
13228
13229 # Search for RIPE-MD support in OpenSSL
13230 for ac_func in EVP_ripemd160
13231do :
13232 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160"
13233if test "x$ac_cv_func_EVP_ripemd160" = xyes; then :
13234 cat >>confdefs.h <<_ACEOF
13235#define HAVE_EVP_RIPEMD160 1
13236_ACEOF
13237
13238else
13239 unsupported_algorithms="$unsupported_algorithms \
13240 hmac-ripemd160 \
13241 hmac-ripemd160@openssh.com \
13242 hmac-ripemd160-etm@openssh.com"
13243
13244
13245fi
13246done
13247
13248
13249 # Check complete ECC support in OpenSSL
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
13251$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; }
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h. */
13254
13255 #include <openssl/ec.h>
13256 #include <openssl/ecdh.h>
13257 #include <openssl/ecdsa.h>
13258 #include <openssl/evp.h>
13259 #include <openssl/objects.h>
13260 #include <openssl/opensslv.h>
13261
13262int
13263main ()
13264{
13265
13266 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
13267 const EVP_MD *m = EVP_sha256(); /* We need this too */
13268
13269 ;
13270 return 0;
13271}
13272_ACEOF
13273if ac_fn_c_try_link "$LINENO"; then :
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275$as_echo "yes" >&6; }
13276 enable_nistp256=1
13277else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279$as_echo "no" >&6; }
13280
13281fi
13282rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5
13286$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; }
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288/* end confdefs.h. */
13289
13290 #include <openssl/ec.h>
13291 #include <openssl/ecdh.h>
13292 #include <openssl/ecdsa.h>
13293 #include <openssl/evp.h>
13294 #include <openssl/objects.h>
13295 #include <openssl/opensslv.h>
13296
13297int
13298main ()
13299{
13300
13301 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
13302 const EVP_MD *m = EVP_sha384(); /* We need this too */
13303
13304 ;
13305 return 0;
13306}
13307_ACEOF
13308if ac_fn_c_try_link "$LINENO"; then :
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310$as_echo "yes" >&6; }
13311 enable_nistp384=1
13312else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315
13316fi
13317rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5
13321$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; }
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h. */
13324
13325 #include <openssl/ec.h>
13326 #include <openssl/ecdh.h>
13327 #include <openssl/ecdsa.h>
13328 #include <openssl/evp.h>
13329 #include <openssl/objects.h>
13330 #include <openssl/opensslv.h>
13331
13332int
13333main ()
13334{
13335
13336 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13337 const EVP_MD *m = EVP_sha512(); /* We need this too */
13338
13339 ;
13340 return 0;
13341}
13342_ACEOF
13343if ac_fn_c_try_link "$LINENO"; then :
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345$as_echo "yes" >&6; }
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5
13347$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; }
13348 if test "$cross_compiling" = yes; then :
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5
13350$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
13351 enable_nistp521=1
13352
13353else
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357 #include <openssl/ec.h>
13358 #include <openssl/ecdh.h>
13359 #include <openssl/ecdsa.h>
13360 #include <openssl/evp.h>
13361 #include <openssl/objects.h>
13362 #include <openssl/opensslv.h>
13363
13364int
13365main ()
13366{
13367
13368 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
13369 const EVP_MD *m = EVP_sha512(); /* We need this too */
13370 exit(e == NULL || m == NULL);
13371
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376if ac_fn_c_try_run "$LINENO"; then :
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378$as_echo "yes" >&6; }
13379 enable_nistp521=1
13380else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382$as_echo "no" >&6; }
13383fi
13384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13385 conftest.$ac_objext conftest.beam conftest.$ac_ext
13386fi
13387
13388else
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
13391
13392fi
13393rm -f core conftest.err conftest.$ac_objext \
13394 conftest$ac_exeext conftest.$ac_ext
13395
13396 COMMENT_OUT_ECC="#no ecc#"
13397 TEST_SSH_ECC=no
13398
13399 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
13400 test x$enable_nistp521 = x1; then
13401
13402$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
13403
13404 fi
13405 if test x$enable_nistp256 = x1; then
13406
13407$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
13408
13409 TEST_SSH_ECC=yes
13410 COMMENT_OUT_ECC=""
13411 else
13412 unsupported_algorithms="$unsupported_algorithms \
13413 ecdsa-sha2-nistp256 \
13414 ecdh-sha2-nistp256 \
13415 ecdsa-sha2-nistp256-cert-v01@openssh.com"
13416 fi
13417 if test x$enable_nistp384 = x1; then
13418
13419$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
13420
13421 TEST_SSH_ECC=yes
13422 COMMENT_OUT_ECC=""
13423 else
13424 unsupported_algorithms="$unsupported_algorithms \
13425 ecdsa-sha2-nistp384 \
13426 ecdh-sha2-nistp384 \
13427 ecdsa-sha2-nistp384-cert-v01@openssh.com"
13428 fi
13429 if test x$enable_nistp521 = x1; then
13430
13431$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h
13432
13433 TEST_SSH_ECC=yes
13434 COMMENT_OUT_ECC=""
13435 else
13436 unsupported_algorithms="$unsupported_algorithms \
13437 ecdh-sha2-nistp521 \
13438 ecdsa-sha2-nistp521 \
13439 ecdsa-sha2-nistp521-cert-v01@openssh.com"
13440 fi
13441
13442
13443
13444else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13446$as_echo_n "checking for crypt in -lcrypt... " >&6; }
13447if ${ac_cv_lib_crypt_crypt+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449else
13450 ac_check_lib_save_LIBS=$LIBS
13451LIBS="-lcrypt $LIBS"
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h. */
13454
13455/* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458#ifdef __cplusplus
13459extern "C"
13460#endif
13461char crypt ();
13462int
13463main ()
13464{
13465return crypt ();
13466 ;
13467 return 0;
13468}
13469_ACEOF
13470if ac_fn_c_try_link "$LINENO"; then :
13471 ac_cv_lib_crypt_crypt=yes
13472else
13473 ac_cv_lib_crypt_crypt=no
13474fi
13475rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477LIBS=$ac_check_lib_save_LIBS
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13480$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13481if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13482 LIBS="$LIBS -lcrypt"
13483fi
13484
13485 for ac_func in crypt
13486do :
13487 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13488if test "x$ac_cv_func_crypt" = xyes; then :
13489 cat >>confdefs.h <<_ACEOF
13490#define HAVE_CRYPT 1
13491_ACEOF
13492
13493fi
13494done
13495
13496fi
13497
13498for ac_func in \
13499 arc4random \
13500 arc4random_buf \
13501 arc4random_stir \
13502 arc4random_uniform \
13503
13504do :
13505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13507if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13508 cat >>confdefs.h <<_ACEOF
13509#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13510_ACEOF
13511
13512fi
13513done
13514
13515
13516saved_LIBS="$LIBS"
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
13518$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
13519if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521else
13522 ac_check_lib_save_LIBS=$LIBS
13523LIBS="-liaf $LIBS"
13524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525/* end confdefs.h. */
13526
13527/* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13530#ifdef __cplusplus
13531extern "C"
13532#endif
13533char ia_openinfo ();
13534int
13535main ()
13536{
13537return ia_openinfo ();
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542if ac_fn_c_try_link "$LINENO"; then :
13543 ac_cv_lib_iaf_ia_openinfo=yes
13544else
13545 ac_cv_lib_iaf_ia_openinfo=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549LIBS=$ac_check_lib_save_LIBS
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
13552$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
13553if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
13554
13555 LIBS="$LIBS -liaf"
13556 for ac_func in set_id
13557do :
13558 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
13559if test "x$ac_cv_func_set_id" = xyes; then :
13560 cat >>confdefs.h <<_ACEOF
13561#define HAVE_SET_ID 1
13562_ACEOF
13563 SSHDLIBS="$SSHDLIBS -liaf"
13564
13565$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
13566
13567
13568fi
13569done
13570
13571
13572fi
13573
13574LIBS="$saved_LIBS"
13575
13576### Configure cryptographic random number support
13577
13578# Check wheter OpenSSL seeds itself
13579if test "x$openssl" = "xyes" ; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
13581$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
13582 if test "$cross_compiling" = yes; then :
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
13585$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13586 # This is safe, since we will fatal() at runtime if
13587 # OpenSSL is not seeded correctly.
13588 OPENSSL_SEEDS_ITSELF=yes
13589
13590
13591else
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h. */
13594
13595 #include <string.h>
13596 #include <openssl/rand.h>
13597
13598int
13599main ()
13600{
13601
13602 exit(RAND_status() == 1 ? 0 : 1);
13603
13604 ;
13605 return 0;
13606}
13607_ACEOF
13608if ac_fn_c_try_run "$LINENO"; then :
13609
13610 OPENSSL_SEEDS_ITSELF=yes
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13612$as_echo "yes" >&6; }
13613
13614else
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617$as_echo "no" >&6; }
13618
13619fi
13620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13621 conftest.$ac_objext conftest.beam conftest.$ac_ext
13622fi
13623
13624fi
13625
13626# PRNGD TCP socket
13627
13628# Check whether --with-prngd-port was given.
13629if test "${with_prngd_port+set}" = set; then :
13630 withval=$with_prngd_port;
13631 case "$withval" in
13632 no)
13633 withval=""
13634 ;;
13635 [0-9]*)
13636 ;;
13637 *)
13638 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
13639 ;;
13640 esac
13641 if test ! -z "$withval" ; then
13642 PRNGD_PORT="$withval"
13643
13644cat >>confdefs.h <<_ACEOF
13645#define PRNGD_PORT $PRNGD_PORT
13646_ACEOF
13647
13648 fi
13649
13650
13651fi
13652
13653
13654# PRNGD Unix domain socket
13655
13656# Check whether --with-prngd-socket was given.
13657if test "${with_prngd_socket+set}" = set; then :
13658 withval=$with_prngd_socket;
13659 case "$withval" in
13660 yes)
13661 withval="/var/run/egd-pool"
13662 ;;
13663 no)
13664 withval=""
13665 ;;
13666 /*)
13667 ;;
13668 *)
13669 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
13670 ;;
13671 esac
13672
13673 if test ! -z "$withval" ; then
13674 if test ! -z "$PRNGD_PORT" ; then
13675 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
13676 fi
13677 if test ! -r "$withval" ; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
13679$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
13680 fi
13681 PRNGD_SOCKET="$withval"
13682
13683cat >>confdefs.h <<_ACEOF
13684#define PRNGD_SOCKET "$PRNGD_SOCKET"
13685_ACEOF
13686
13687 fi
13688
13689else
13690
13691 # Check for existing socket only if we don't have a random device already
13692 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
13694$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
13695 # Insert other locations here
13696 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
13697 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
13698 PRNGD_SOCKET="$sock"
13699 cat >>confdefs.h <<_ACEOF
13700#define PRNGD_SOCKET "$PRNGD_SOCKET"
13701_ACEOF
13702
13703 break;
13704 fi
13705 done
13706 if test ! -z "$PRNGD_SOCKET" ; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
13708$as_echo "$PRNGD_SOCKET" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13711$as_echo "not found" >&6; }
13712 fi
13713 fi
13714
13715
13716fi
13717
13718
13719# Which randomness source do we use?
13720if test ! -z "$PRNGD_PORT" ; then
13721 RAND_MSG="PRNGd port $PRNGD_PORT"
13722elif test ! -z "$PRNGD_SOCKET" ; then
13723 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
13724elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
13725
13726$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
13727
13728 RAND_MSG="OpenSSL internal ONLY"
13729elif test "x$openssl" = "xno" ; then
13730 { $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
13731$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;}
13732else
13733 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
13734fi
13735
13736# Check for PAM libs
13737PAM_MSG="no"
13738
13739# Check whether --with-pam was given.
13740if test "${with_pam+set}" = set; then :
13741 withval=$with_pam;
13742 if test "x$withval" != "xno" ; then
13743 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13744 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13745 as_fn_error $? "PAM headers not found" "$LINENO" 5
13746 fi
13747
13748 saved_LIBS="$LIBS"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13750$as_echo_n "checking for dlopen in -ldl... " >&6; }
13751if ${ac_cv_lib_dl_dlopen+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753else
13754 ac_check_lib_save_LIBS=$LIBS
13755LIBS="-ldl $LIBS"
13756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h. */
13758
13759/* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762#ifdef __cplusplus
13763extern "C"
13764#endif
13765char dlopen ();
13766int
13767main ()
13768{
13769return dlopen ();
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_lib_dl_dlopen=yes
13776else
13777 ac_cv_lib_dl_dlopen=no
13778fi
13779rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781LIBS=$ac_check_lib_save_LIBS
13782fi
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13784$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13785if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787#define HAVE_LIBDL 1
13788_ACEOF
13789
13790 LIBS="-ldl $LIBS"
13791
13792fi
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
13795$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
13796if ${ac_cv_lib_pam_pam_set_item+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798else
13799 ac_check_lib_save_LIBS=$LIBS
13800LIBS="-lpam $LIBS"
13801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h. */
13803
13804/* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13807#ifdef __cplusplus
13808extern "C"
13809#endif
13810char pam_set_item ();
13811int
13812main ()
13813{
13814return pam_set_item ();
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819if ac_fn_c_try_link "$LINENO"; then :
13820 ac_cv_lib_pam_pam_set_item=yes
13821else
13822 ac_cv_lib_pam_pam_set_item=no
13823fi
13824rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826LIBS=$ac_check_lib_save_LIBS
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
13829$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
13830if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832#define HAVE_LIBPAM 1
13833_ACEOF
13834
13835 LIBS="-lpam $LIBS"
13836
13837else
13838 as_fn_error $? "*** libpam missing" "$LINENO" 5
13839fi
13840
13841 for ac_func in pam_getenvlist
13842do :
13843 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
13844if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
13845 cat >>confdefs.h <<_ACEOF
13846#define HAVE_PAM_GETENVLIST 1
13847_ACEOF
13848
13849fi
13850done
13851
13852 for ac_func in pam_putenv
13853do :
13854 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
13855if test "x$ac_cv_func_pam_putenv" = xyes; then :
13856 cat >>confdefs.h <<_ACEOF
13857#define HAVE_PAM_PUTENV 1
13858_ACEOF
13859
13860fi
13861done
13862
13863 LIBS="$saved_LIBS"
13864
13865 PAM_MSG="yes"
13866
13867 SSHDLIBS="$SSHDLIBS -lpam"
13868
13869$as_echo "#define USE_PAM 1" >>confdefs.h
13870
13871
13872 if test $ac_cv_lib_dl_dlopen = yes; then
13873 case "$LIBS" in
13874 *-ldl*)
13875 # libdl already in LIBS
13876 ;;
13877 *)
13878 SSHDLIBS="$SSHDLIBS -ldl"
13879 ;;
13880 esac
13881 fi
13882 fi
13883
13884
13885fi
13886
13887
13888
13889# Check whether --with-pam-service was given.
13890if test "${with_pam_service+set}" = set; then :
13891 withval=$with_pam_service;
13892 if test "x$withval" != "xno" && \
13893 test "x$withval" != "xyes" ; then
13894
13895cat >>confdefs.h <<_ACEOF
13896#define SSHD_PAM_SERVICE "$withval"
13897_ACEOF
13898
13899 fi
13900
13901
13902fi
13903
13904
13905# Check for older PAM
13906if test "x$PAM_MSG" = "xyes" ; then
13907 # Check PAM strerror arguments (old PAM)
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
13909$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911/* end confdefs.h. */
13912
13913#include <stdlib.h>
13914#if defined(HAVE_SECURITY_PAM_APPL_H)
13915#include <security/pam_appl.h>
13916#elif defined (HAVE_PAM_PAM_APPL_H)
13917#include <pam/pam_appl.h>
13918#endif
13919
13920int
13921main ()
13922{
13923
13924(void)pam_strerror((pam_handle_t *)NULL, -1);
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930if ac_fn_c_try_compile "$LINENO"; then :
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13932$as_echo "no" >&6; }
13933else
13934
13935
13936$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939$as_echo "yes" >&6; }
13940 PAM_MSG="yes (old library)"
13941
13942
13943fi
13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945fi
13946
13947case "$host" in
13948*-*-cygwin*)
13949 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
13950 ;;
13951*)
13952 SSH_PRIVSEP_USER=sshd
13953 ;;
13954esac
13955
13956# Check whether --with-privsep-user was given.
13957if test "${with_privsep_user+set}" = set; then :
13958 withval=$with_privsep_user;
13959 if test -n "$withval" && test "x$withval" != "xno" && \
13960 test "x${withval}" != "xyes"; then
13961 SSH_PRIVSEP_USER=$withval
13962 fi
13963
13964
13965fi
13966
13967if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
13968
13969cat >>confdefs.h <<_ACEOF
13970#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
13971_ACEOF
13972
13973else
13974
13975cat >>confdefs.h <<_ACEOF
13976#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
13977_ACEOF
13978
13979fi
13980
13981
13982if test "x$have_linux_no_new_privs" = "x1" ; then
13983ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
13984 #include <sys/types.h>
13985 #include <linux/seccomp.h>
13986
13987"
13988if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
13989 have_seccomp_filter=1
13990fi
13991
13992fi
13993if test "x$have_seccomp_filter" = "x1" ; then
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
13995$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h. */
13998
13999 #include <errno.h>
14000 #include <elf.h>
14001 #include <linux/audit.h>
14002 #include <linux/seccomp.h>
14003 #include <stdlib.h>
14004 #include <sys/prctl.h>
14005
14006int
14007main ()
14008{
14009 int i = $seccomp_audit_arch;
14010 errno = 0;
14011 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
14012 exit(errno == EFAULT ? 0 : 1);
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017if ac_fn_c_try_link "$LINENO"; then :
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019$as_echo "yes" >&6; }
14020else
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023$as_echo "no" >&6; }
14024 # Disable seccomp filter as a target
14025 have_seccomp_filter=0
14026
14027
14028fi
14029rm -f core conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14031fi
14032
14033# Decide which sandbox style to use
14034sandbox_arg=""
14035
14036# Check whether --with-sandbox was given.
14037if test "${with_sandbox+set}" = set; then :
14038 withval=$with_sandbox;
14039 if test "x$withval" = "xyes" ; then
14040 sandbox_arg=""
14041 else
14042 sandbox_arg="$withval"
14043 fi
14044
14045
14046fi
14047
14048
14049# Some platforms (seems to be the ones that have a kernel poll(2)-type
14050# function with which they implement select(2)) use an extra file descriptor
14051# when calling select(2), which means we can't use the rlimit sandbox.
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
14053$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
14054if test "$cross_compiling" = yes; then :
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14056$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14057 select_works_with_rlimit=yes
14058
14059else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h. */
14062
14063#include <sys/types.h>
14064#ifdef HAVE_SYS_TIME_H
14065# include <sys/time.h>
14066#endif
14067#include <sys/resource.h>
14068#ifdef HAVE_SYS_SELECT_H
14069# include <sys/select.h>
14070#endif
14071#include <errno.h>
14072#include <fcntl.h>
14073#include <stdlib.h>
14074
14075int
14076main ()
14077{
14078
14079 struct rlimit rl_zero;
14080 int fd, r;
14081 fd_set fds;
14082 struct timeval tv;
14083
14084 fd = open("/dev/null", O_RDONLY);
14085 FD_ZERO(&fds);
14086 FD_SET(fd, &fds);
14087 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14088 setrlimit(RLIMIT_FSIZE, &rl_zero);
14089 setrlimit(RLIMIT_NOFILE, &rl_zero);
14090 tv.tv_sec = 1;
14091 tv.tv_usec = 0;
14092 r = select(fd+1, &fds, NULL, NULL, &tv);
14093 exit (r == -1 ? 1 : 0);
14094
14095 ;
14096 return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_run "$LINENO"; then :
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101$as_echo "yes" >&6; }
14102 select_works_with_rlimit=yes
14103else
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105$as_echo "no" >&6; }
14106 select_works_with_rlimit=no
14107fi
14108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14109 conftest.$ac_objext conftest.beam conftest.$ac_ext
14110fi
14111
14112
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
14114$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; }
14115if test "$cross_compiling" = yes; then :
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14117$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14118 rlimit_nofile_zero_works=yes
14119
14120else
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h. */
14123
14124#include <sys/types.h>
14125#ifdef HAVE_SYS_TIME_H
14126# include <sys/time.h>
14127#endif
14128#include <sys/resource.h>
14129#include <errno.h>
14130#include <stdlib.h>
14131
14132int
14133main ()
14134{
14135
14136 struct rlimit rl_zero;
14137 int fd, r;
14138 fd_set fds;
14139
14140 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14141 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
14142 exit (r == -1 ? 1 : 0);
14143
14144 ;
14145 return 0;
14146}
14147_ACEOF
14148if ac_fn_c_try_run "$LINENO"; then :
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150$as_echo "yes" >&6; }
14151 rlimit_nofile_zero_works=yes
14152else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154$as_echo "no" >&6; }
14155 rlimit_nofile_zero_works=no
14156fi
14157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14158 conftest.$ac_objext conftest.beam conftest.$ac_ext
14159fi
14160
14161
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
14163$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
14164if test "$cross_compiling" = yes; then :
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
14166$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14167
14168else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170/* end confdefs.h. */
14171
14172#include <sys/types.h>
14173#include <sys/resource.h>
14174#include <stdlib.h>
14175
14176int
14177main ()
14178{
14179
14180 struct rlimit rl_zero;
14181
14182 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
14183 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
14184
14185 ;
14186 return 0;
14187}
14188_ACEOF
14189if ac_fn_c_try_run "$LINENO"; then :
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14191$as_echo "yes" >&6; }
14192else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194$as_echo "no" >&6; }
14195
14196$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
14197
14198fi
14199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
14201fi
14202
14203
14204if test "x$sandbox_arg" = "xpledge" || \
14205 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then
14206 test "x$ac_cv_func_pledge" != "xyes" && \
14207 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5
14208 SANDBOX_STYLE="pledge"
14209
14210$as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h
14211
14212elif test "x$sandbox_arg" = "xsystrace" || \
14213 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
14214 test "x$have_systr_policy_kill" != "x1" && \
14215 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
14216 SANDBOX_STYLE="systrace"
14217
14218$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
14219
14220elif test "x$sandbox_arg" = "xdarwin" || \
14221 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
14222 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
14223 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
14224 "x$ac_cv_header_sandbox_h" != "xyes" && \
14225 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
14226 SANDBOX_STYLE="darwin"
14227
14228$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
14229
14230elif test "x$sandbox_arg" = "xseccomp_filter" || \
14231 ( test -z "$sandbox_arg" && \
14232 test "x$have_seccomp_filter" = "x1" && \
14233 test "x$ac_cv_header_elf_h" = "xyes" && \
14234 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
14235 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
14236 test "x$seccomp_audit_arch" != "x" && \
14237 test "x$have_linux_no_new_privs" = "x1" && \
14238 test "x$ac_cv_func_prctl" = "xyes" ) ; then
14239 test "x$seccomp_audit_arch" = "x" && \
14240 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
14241 test "x$have_linux_no_new_privs" != "x1" && \
14242 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
14243 test "x$have_seccomp_filter" != "x1" && \
14244 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
14245 test "x$ac_cv_func_prctl" != "xyes" && \
14246 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
14247 SANDBOX_STYLE="seccomp_filter"
14248
14249$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
14250
14251elif test "x$sandbox_arg" = "xcapsicum" || \
14252 ( test -z "$sandbox_arg" && \
14253 test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \
14254 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
14255 test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \
14256 as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5
14257 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
14258 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5
14259 SANDBOX_STYLE="capsicum"
14260
14261$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h
14262
14263elif test "x$sandbox_arg" = "xrlimit" || \
14264 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
14265 test "x$select_works_with_rlimit" = "xyes" && \
14266 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
14267 test "x$ac_cv_func_setrlimit" != "xyes" && \
14268 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
14269 test "x$select_works_with_rlimit" != "xyes" && \
14270 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
14271 SANDBOX_STYLE="rlimit"
14272
14273$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
14274
14275elif test "x$sandbox_arg" = "xsolaris" || \
14276 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then
14277 SANDBOX_STYLE="solaris"
14278
14279$as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h
14280
14281elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
14282 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
14283 SANDBOX_STYLE="none"
14284
14285$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
14286
14287else
14288 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
14289fi
14290
14291# Cheap hack to ensure NEWS-OS libraries are arranged right.
14292if test ! -z "$SONY" ; then
14293 LIBS="$LIBS -liberty";
14294fi
14295
14296# Check for long long datatypes
14297ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14298if test "x$ac_cv_type_long_long" = xyes; then :
14299
14300cat >>confdefs.h <<_ACEOF
14301#define HAVE_LONG_LONG 1
14302_ACEOF
14303
14304
14305fi
14306ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
14307if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
14308
14309cat >>confdefs.h <<_ACEOF
14310#define HAVE_UNSIGNED_LONG_LONG 1
14311_ACEOF
14312
14313
14314fi
14315ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
14316if test "x$ac_cv_type_long_double" = xyes; then :
14317
14318cat >>confdefs.h <<_ACEOF
14319#define HAVE_LONG_DOUBLE 1
14320_ACEOF
14321
14322
14323fi
14324
14325
14326# Check datatype sizes
14327# The cast to long int works around a bug in the HP C Compiler
14328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14330# This bug is HP SR number 8606223364.
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
14332$as_echo_n "checking size of short int... " >&6; }
14333if ${ac_cv_sizeof_short_int+:} false; then :
14334 $as_echo_n "(cached) " >&6
14335else
14336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
14337
14338else
14339 if test "$ac_cv_type_short_int" = yes; then
14340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14342as_fn_error 77 "cannot compute sizeof (short int)
14343See \`config.log' for more details" "$LINENO" 5; }
14344 else
14345 ac_cv_sizeof_short_int=0
14346 fi
14347fi
14348
14349fi
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
14351$as_echo "$ac_cv_sizeof_short_int" >&6; }
14352
14353
14354
14355cat >>confdefs.h <<_ACEOF
14356#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14357_ACEOF
14358
14359
14360# The cast to long int works around a bug in the HP C Compiler
14361# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14362# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14363# This bug is HP SR number 8606223364.
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14365$as_echo_n "checking size of int... " >&6; }
14366if ${ac_cv_sizeof_int+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368else
14369 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14370
14371else
14372 if test "$ac_cv_type_int" = yes; then
14373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14375as_fn_error 77 "cannot compute sizeof (int)
14376See \`config.log' for more details" "$LINENO" 5; }
14377 else
14378 ac_cv_sizeof_int=0
14379 fi
14380fi
14381
14382fi
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14384$as_echo "$ac_cv_sizeof_int" >&6; }
14385
14386
14387
14388cat >>confdefs.h <<_ACEOF
14389#define SIZEOF_INT $ac_cv_sizeof_int
14390_ACEOF
14391
14392
14393# The cast to long int works around a bug in the HP C Compiler
14394# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14395# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14396# This bug is HP SR number 8606223364.
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
14398$as_echo_n "checking size of long int... " >&6; }
14399if ${ac_cv_sizeof_long_int+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401else
14402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
14403
14404else
14405 if test "$ac_cv_type_long_int" = yes; then
14406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14408as_fn_error 77 "cannot compute sizeof (long int)
14409See \`config.log' for more details" "$LINENO" 5; }
14410 else
14411 ac_cv_sizeof_long_int=0
14412 fi
14413fi
14414
14415fi
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
14417$as_echo "$ac_cv_sizeof_long_int" >&6; }
14418
14419
14420
14421cat >>confdefs.h <<_ACEOF
14422#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14423_ACEOF
14424
14425
14426# The cast to long int works around a bug in the HP C Compiler
14427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14429# This bug is HP SR number 8606223364.
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
14431$as_echo_n "checking size of long long int... " >&6; }
14432if ${ac_cv_sizeof_long_long_int+:} false; then :
14433 $as_echo_n "(cached) " >&6
14434else
14435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
14436
14437else
14438 if test "$ac_cv_type_long_long_int" = yes; then
14439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14441as_fn_error 77 "cannot compute sizeof (long long int)
14442See \`config.log' for more details" "$LINENO" 5; }
14443 else
14444 ac_cv_sizeof_long_long_int=0
14445 fi
14446fi
14447
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
14450$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
14451
14452
14453
14454cat >>confdefs.h <<_ACEOF
14455#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14456_ACEOF
14457
14458
14459
14460# Sanity check long long for some platforms (AIX)
14461if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14462 ac_cv_sizeof_long_long_int=0
14463fi
14464
14465# compute LLONG_MIN and LLONG_MAX if we don't know them.
14466if test -z "$have_llong_max"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
14468$as_echo_n "checking for max value of long long... " >&6; }
14469 if test "$cross_compiling" = yes; then :
14470
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
14472$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14473
14474
14475else
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477/* end confdefs.h. */
14478
14479#include <stdio.h>
14480/* Why is this so damn hard? */
14481#ifdef __GNUC__
14482# undef __GNUC__
14483#endif
14484#define __USE_ISOC99
14485#include <limits.h>
14486#define DATA "conftest.llminmax"
14487#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
14488
14489/*
14490 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
14491 * we do this the hard way.
14492 */
14493static int
14494fprint_ll(FILE *f, long long n)
14495{
14496 unsigned int i;
14497 int l[sizeof(long long) * 8];
14498
14499 if (n < 0)
14500 if (fprintf(f, "-") < 0)
14501 return -1;
14502 for (i = 0; n != 0; i++) {
14503 l[i] = my_abs(n % 10);
14504 n /= 10;
14505 }
14506 do {
14507 if (fprintf(f, "%d", l[--i]) < 0)
14508 return -1;
14509 } while (i != 0);
14510 if (fprintf(f, " ") < 0)
14511 return -1;
14512 return 0;
14513}
14514
14515int
14516main ()
14517{
14518
14519 FILE *f;
14520 long long i, llmin, llmax = 0;
14521
14522 if((f = fopen(DATA,"w")) == NULL)
14523 exit(1);
14524
14525#if defined(LLONG_MIN) && defined(LLONG_MAX)
14526 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
14527 llmin = LLONG_MIN;
14528 llmax = LLONG_MAX;
14529#else
14530 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
14531 /* This will work on one's complement and two's complement */
14532 for (i = 1; i > llmax; i <<= 1, i++)
14533 llmax = i;
14534 llmin = llmax + 1LL; /* wrap */
14535#endif
14536
14537 /* Sanity check */
14538 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
14539 || llmax - 1 > llmax || llmin == llmax || llmin == 0
14540 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
14541 fprintf(f, "unknown unknown\n");
14542 exit(2);
14543 }
14544
14545 if (fprint_ll(f, llmin) < 0)
14546 exit(3);
14547 if (fprint_ll(f, llmax) < 0)
14548 exit(4);
14549 if (fclose(f) < 0)
14550 exit(5);
14551 exit(0);
14552
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_run "$LINENO"; then :
14558
14559 llong_min=`$AWK '{print $1}' conftest.llminmax`
14560 llong_max=`$AWK '{print $2}' conftest.llminmax`
14561
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
14563$as_echo "$llong_max" >&6; }
14564
14565cat >>confdefs.h <<_ACEOF
14566#define LLONG_MAX ${llong_max}LL
14567_ACEOF
14568
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
14570$as_echo_n "checking for min value of long long... " >&6; }
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
14572$as_echo "$llong_min" >&6; }
14573
14574cat >>confdefs.h <<_ACEOF
14575#define LLONG_MIN ${llong_min}LL
14576_ACEOF
14577
14578
14579else
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14582$as_echo "not found" >&6; }
14583
14584fi
14585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14586 conftest.$ac_objext conftest.beam conftest.$ac_ext
14587fi
14588
14589fi
14590
14591
14592# More checks for data types
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
14594$as_echo_n "checking for u_int type... " >&6; }
14595if ${ac_cv_have_u_int+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597else
14598
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h. */
14601 #include <sys/types.h>
14602int
14603main ()
14604{
14605 u_int a; a = 1;
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610if ac_fn_c_try_compile "$LINENO"; then :
14611 ac_cv_have_u_int="yes"
14612else
14613 ac_cv_have_u_int="no"
14614
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
14620$as_echo "$ac_cv_have_u_int" >&6; }
14621if test "x$ac_cv_have_u_int" = "xyes" ; then
14622
14623$as_echo "#define HAVE_U_INT 1" >>confdefs.h
14624
14625 have_u_int=1
14626fi
14627
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
14629$as_echo_n "checking for intXX_t types... " >&6; }
14630if ${ac_cv_have_intxx_t+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632else
14633
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635/* end confdefs.h. */
14636 #include <sys/types.h>
14637int
14638main ()
14639{
14640 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14641 ;
14642 return 0;
14643}
14644_ACEOF
14645if ac_fn_c_try_compile "$LINENO"; then :
14646 ac_cv_have_intxx_t="yes"
14647else
14648 ac_cv_have_intxx_t="no"
14649
14650fi
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652
14653fi
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
14655$as_echo "$ac_cv_have_intxx_t" >&6; }
14656if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14657
14658$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14659
14660 have_intxx_t=1
14661fi
14662
14663if (test -z "$have_intxx_t" && \
14664 test "x$ac_cv_header_stdint_h" = "xyes")
14665then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
14667$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669/* end confdefs.h. */
14670 #include <stdint.h>
14671int
14672main ()
14673{
14674 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14675 ;
14676 return 0;
14677}
14678_ACEOF
14679if ac_fn_c_try_compile "$LINENO"; then :
14680
14681 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14684$as_echo "yes" >&6; }
14685
14686else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688$as_echo "no" >&6; }
14689
14690fi
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
14693
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
14695$as_echo_n "checking for int64_t type... " >&6; }
14696if ${ac_cv_have_int64_t+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698else
14699
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h. */
14702
14703#include <sys/types.h>
14704#ifdef HAVE_STDINT_H
14705# include <stdint.h>
14706#endif
14707#include <sys/socket.h>
14708#ifdef HAVE_SYS_BITYPES_H
14709# include <sys/bitypes.h>
14710#endif
14711
14712int
14713main ()
14714{
14715
14716int64_t a; a = 1;
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722if ac_fn_c_try_compile "$LINENO"; then :
14723 ac_cv_have_int64_t="yes"
14724else
14725 ac_cv_have_int64_t="no"
14726
14727fi
14728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729
14730fi
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
14732$as_echo "$ac_cv_have_int64_t" >&6; }
14733if test "x$ac_cv_have_int64_t" = "xyes" ; then
14734
14735$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
14736
14737fi
14738
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
14740$as_echo_n "checking for u_intXX_t types... " >&6; }
14741if ${ac_cv_have_u_intxx_t+:} false; then :
14742 $as_echo_n "(cached) " >&6
14743else
14744
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746/* end confdefs.h. */
14747 #include <sys/types.h>
14748int
14749main ()
14750{
14751 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14752 ;
14753 return 0;
14754}
14755_ACEOF
14756if ac_fn_c_try_compile "$LINENO"; then :
14757 ac_cv_have_u_intxx_t="yes"
14758else
14759 ac_cv_have_u_intxx_t="no"
14760
14761fi
14762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763
14764fi
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
14766$as_echo "$ac_cv_have_u_intxx_t" >&6; }
14767if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14768
14769$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14770
14771 have_u_intxx_t=1
14772fi
14773
14774if test -z "$have_u_intxx_t" ; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
14776$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778/* end confdefs.h. */
14779 #include <sys/socket.h>
14780int
14781main ()
14782{
14783 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"; then :
14789
14790 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14793$as_echo "yes" >&6; }
14794
14795else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797$as_echo "no" >&6; }
14798
14799fi
14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801fi
14802
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
14804$as_echo_n "checking for u_int64_t types... " >&6; }
14805if ${ac_cv_have_u_int64_t+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807else
14808
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h. */
14811 #include <sys/types.h>
14812int
14813main ()
14814{
14815 u_int64_t a; a = 1;
14816 ;
14817 return 0;
14818}
14819_ACEOF
14820if ac_fn_c_try_compile "$LINENO"; then :
14821 ac_cv_have_u_int64_t="yes"
14822else
14823 ac_cv_have_u_int64_t="no"
14824
14825fi
14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827
14828fi
14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
14830$as_echo "$ac_cv_have_u_int64_t" >&6; }
14831if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14832
14833$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14834
14835 have_u_int64_t=1
14836fi
14837
14838if (test -z "$have_u_int64_t" && \
14839 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14840then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
14842$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h. */
14845 #include <sys/bitypes.h>
14846int
14847main ()
14848{
14849 u_int64_t a; a = 1
14850 ;
14851 return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_compile "$LINENO"; then :
14855
14856 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14859$as_echo "yes" >&6; }
14860
14861else
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863$as_echo "no" >&6; }
14864
14865fi
14866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867fi
14868
14869if test -z "$have_u_intxx_t" ; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
14871$as_echo_n "checking for uintXX_t types... " >&6; }
14872if ${ac_cv_have_uintxx_t+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874else
14875
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877/* end confdefs.h. */
14878
14879#include <sys/types.h>
14880
14881int
14882main ()
14883{
14884
14885 uint8_t a;
14886 uint16_t b;
14887 uint32_t c;
14888 a = b = c = 1;
14889
14890 ;
14891 return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_compile "$LINENO"; then :
14895 ac_cv_have_uintxx_t="yes"
14896else
14897 ac_cv_have_uintxx_t="no"
14898
14899fi
14900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
14904$as_echo "$ac_cv_have_uintxx_t" >&6; }
14905 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14906
14907$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14908
14909 fi
14910fi
14911
14912if (test -z "$have_uintxx_t" && \
14913 test "x$ac_cv_header_stdint_h" = "xyes")
14914then
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
14916$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918/* end confdefs.h. */
14919 #include <stdint.h>
14920int
14921main ()
14922{
14923 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14924 ;
14925 return 0;
14926}
14927_ACEOF
14928if ac_fn_c_try_compile "$LINENO"; then :
14929
14930 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14933$as_echo "yes" >&6; }
14934
14935else
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937$as_echo "no" >&6; }
14938
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941fi
14942
14943if (test -z "$have_uintxx_t" && \
14944 test "x$ac_cv_header_inttypes_h" = "xyes")
14945then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5
14947$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; }
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949/* end confdefs.h. */
14950 #include <inttypes.h>
14951int
14952main ()
14953{
14954 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_compile "$LINENO"; then :
14960
14961 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964$as_echo "yes" >&6; }
14965
14966else
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968$as_echo "no" >&6; }
14969
14970fi
14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972fi
14973
14974if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14975 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14976then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14978$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h. */
14981
14982#include <sys/bitypes.h>
14983
14984int
14985main ()
14986{
14987
14988 int8_t a; int16_t b; int32_t c;
14989 u_int8_t e; u_int16_t f; u_int32_t g;
14990 a = b = c = e = f = g = 1;
14991
14992 ;
14993 return 0;
14994}
14995_ACEOF
14996if ac_fn_c_try_compile "$LINENO"; then :
14997
14998 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
14999
15000 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15003$as_echo "yes" >&6; }
15004
15005else
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15007$as_echo "no" >&6; }
15008
15009fi
15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011fi
15012
15013
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
15015$as_echo_n "checking for u_char... " >&6; }
15016if ${ac_cv_have_u_char+:} false; then :
15017 $as_echo_n "(cached) " >&6
15018else
15019
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022 #include <sys/types.h>
15023int
15024main ()
15025{
15026 u_char foo; foo = 125;
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_compile "$LINENO"; then :
15032 ac_cv_have_u_char="yes"
15033else
15034 ac_cv_have_u_char="no"
15035
15036fi
15037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038
15039fi
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
15041$as_echo "$ac_cv_have_u_char" >&6; }
15042if test "x$ac_cv_have_u_char" = "xyes" ; then
15043
15044$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
15045
15046fi
15047
15048ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "
15049#include <sys/types.h>
15050#include <stdint.h>
15051
15052"
15053if test "x$ac_cv_type_intmax_t" = xyes; then :
15054
15055cat >>confdefs.h <<_ACEOF
15056#define HAVE_INTMAX_T 1
15057_ACEOF
15058
15059
15060fi
15061ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
15062#include <sys/types.h>
15063#include <stdint.h>
15064
15065"
15066if test "x$ac_cv_type_uintmax_t" = xyes; then :
15067
15068cat >>confdefs.h <<_ACEOF
15069#define HAVE_UINTMAX_T 1
15070_ACEOF
15071
15072
15073fi
15074
15075
15076
15077 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15078#include <sys/socket.h>
15079"
15080if test "x$ac_cv_type_socklen_t" = xyes; then :
15081
15082else
15083
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15085$as_echo_n "checking for socklen_t equivalent... " >&6; }
15086 if ${curl_cv_socklen_t_equiv+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088else
15089
15090 # Systems have either "struct sockaddr *" or
15091 # "void *" as the second argument to getpeername
15092 curl_cv_socklen_t_equiv=
15093 for arg2 in "struct sockaddr" void; do
15094 for t in int size_t unsigned long "unsigned long"; do
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h. */
15097
15098 #include <sys/types.h>
15099 #include <sys/socket.h>
15100
15101 int getpeername (int, $arg2 *, $t *);
15102
15103int
15104main ()
15105{
15106
15107 $t len;
15108 getpeername(0,0,&len);
15109
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_compile "$LINENO"; then :
15115
15116 curl_cv_socklen_t_equiv="$t"
15117 break
15118
15119fi
15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 done
15122 done
15123
15124 if test "x$curl_cv_socklen_t_equiv" = x; then
15125 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15126 fi
15127
15128fi
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
15131$as_echo "$curl_cv_socklen_t_equiv" >&6; }
15132
15133cat >>confdefs.h <<_ACEOF
15134#define socklen_t $curl_cv_socklen_t_equiv
15135_ACEOF
15136
15137fi
15138
15139
15140
15141ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
15142"
15143if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15144
15145cat >>confdefs.h <<_ACEOF
15146#define HAVE_SIG_ATOMIC_T 1
15147_ACEOF
15148
15149
15150fi
15151
15152ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
15153#include <sys/types.h>
15154#ifdef HAVE_SYS_BITYPES_H
15155#include <sys/bitypes.h>
15156#endif
15157#ifdef HAVE_SYS_STATFS_H
15158#include <sys/statfs.h>
15159#endif
15160#ifdef HAVE_SYS_STATVFS_H
15161#include <sys/statvfs.h>
15162#endif
15163
15164"
15165if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15166
15167cat >>confdefs.h <<_ACEOF
15168#define HAVE_FSBLKCNT_T 1
15169_ACEOF
15170
15171
15172fi
15173ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
15174#include <sys/types.h>
15175#ifdef HAVE_SYS_BITYPES_H
15176#include <sys/bitypes.h>
15177#endif
15178#ifdef HAVE_SYS_STATFS_H
15179#include <sys/statfs.h>
15180#endif
15181#ifdef HAVE_SYS_STATVFS_H
15182#include <sys/statvfs.h>
15183#endif
15184
15185"
15186if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15187
15188cat >>confdefs.h <<_ACEOF
15189#define HAVE_FSFILCNT_T 1
15190_ACEOF
15191
15192
15193fi
15194
15195
15196ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
15197#include <netinet/in.h>
15198"
15199if test "x$ac_cv_type_in_addr_t" = xyes; then :
15200
15201cat >>confdefs.h <<_ACEOF
15202#define HAVE_IN_ADDR_T 1
15203_ACEOF
15204
15205
15206fi
15207ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15208#include <netinet/in.h>
15209"
15210if test "x$ac_cv_type_in_port_t" = xyes; then :
15211
15212cat >>confdefs.h <<_ACEOF
15213#define HAVE_IN_PORT_T 1
15214_ACEOF
15215
15216
15217fi
15218
15219
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15221$as_echo_n "checking for size_t... " >&6; }
15222if ${ac_cv_have_size_t+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224else
15225
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h. */
15228 #include <sys/types.h>
15229int
15230main ()
15231{
15232 size_t foo; foo = 1235;
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237if ac_fn_c_try_compile "$LINENO"; then :
15238 ac_cv_have_size_t="yes"
15239else
15240 ac_cv_have_size_t="no"
15241
15242fi
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244
15245fi
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
15247$as_echo "$ac_cv_have_size_t" >&6; }
15248if test "x$ac_cv_have_size_t" = "xyes" ; then
15249
15250$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
15251
15252fi
15253
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15255$as_echo_n "checking for ssize_t... " >&6; }
15256if ${ac_cv_have_ssize_t+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258else
15259
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261/* end confdefs.h. */
15262 #include <sys/types.h>
15263int
15264main ()
15265{
15266 ssize_t foo; foo = 1235;
15267 ;
15268 return 0;
15269}
15270_ACEOF
15271if ac_fn_c_try_compile "$LINENO"; then :
15272 ac_cv_have_ssize_t="yes"
15273else
15274 ac_cv_have_ssize_t="no"
15275
15276fi
15277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278
15279fi
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
15281$as_echo "$ac_cv_have_ssize_t" >&6; }
15282if test "x$ac_cv_have_ssize_t" = "xyes" ; then
15283
15284$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
15285
15286fi
15287
15288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
15289$as_echo_n "checking for clock_t... " >&6; }
15290if ${ac_cv_have_clock_t+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292else
15293
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h. */
15296 #include <time.h>
15297int
15298main ()
15299{
15300 clock_t foo; foo = 1235;
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305if ac_fn_c_try_compile "$LINENO"; then :
15306 ac_cv_have_clock_t="yes"
15307else
15308 ac_cv_have_clock_t="no"
15309
15310fi
15311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312
15313fi
15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
15315$as_echo "$ac_cv_have_clock_t" >&6; }
15316if test "x$ac_cv_have_clock_t" = "xyes" ; then
15317
15318$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
15319
15320fi
15321
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
15323$as_echo_n "checking for sa_family_t... " >&6; }
15324if ${ac_cv_have_sa_family_t+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326else
15327
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329/* end confdefs.h. */
15330
15331#include <sys/types.h>
15332#include <sys/socket.h>
15333
15334int
15335main ()
15336{
15337 sa_family_t foo; foo = 1235;
15338 ;
15339 return 0;
15340}
15341_ACEOF
15342if ac_fn_c_try_compile "$LINENO"; then :
15343 ac_cv_have_sa_family_t="yes"
15344else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346/* end confdefs.h. */
15347
15348#include <sys/types.h>
15349#include <sys/socket.h>
15350#include <netinet/in.h>
15351
15352int
15353main ()
15354{
15355 sa_family_t foo; foo = 1235;
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361 ac_cv_have_sa_family_t="yes"
15362else
15363 ac_cv_have_sa_family_t="no"
15364
15365fi
15366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367
15368fi
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370
15371fi
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
15373$as_echo "$ac_cv_have_sa_family_t" >&6; }
15374if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
15375
15376$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15377
15378fi
15379
15380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
15381$as_echo_n "checking for pid_t... " >&6; }
15382if ${ac_cv_have_pid_t+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384else
15385
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387/* end confdefs.h. */
15388 #include <sys/types.h>
15389int
15390main ()
15391{
15392 pid_t foo; foo = 1235;
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397if ac_fn_c_try_compile "$LINENO"; then :
15398 ac_cv_have_pid_t="yes"
15399else
15400 ac_cv_have_pid_t="no"
15401
15402fi
15403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404
15405fi
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
15407$as_echo "$ac_cv_have_pid_t" >&6; }
15408if test "x$ac_cv_have_pid_t" = "xyes" ; then
15409
15410$as_echo "#define HAVE_PID_T 1" >>confdefs.h
15411
15412fi
15413
15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
15415$as_echo_n "checking for mode_t... " >&6; }
15416if ${ac_cv_have_mode_t+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418else
15419
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h. */
15422 #include <sys/types.h>
15423int
15424main ()
15425{
15426 mode_t foo; foo = 1235;
15427 ;
15428 return 0;
15429}
15430_ACEOF
15431if ac_fn_c_try_compile "$LINENO"; then :
15432 ac_cv_have_mode_t="yes"
15433else
15434 ac_cv_have_mode_t="no"
15435
15436fi
15437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438
15439fi
15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
15441$as_echo "$ac_cv_have_mode_t" >&6; }
15442if test "x$ac_cv_have_mode_t" = "xyes" ; then
15443
15444$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
15445
15446fi
15447
15448
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15450$as_echo_n "checking for struct sockaddr_storage... " >&6; }
15451if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
15452 $as_echo_n "(cached) " >&6
15453else
15454
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456/* end confdefs.h. */
15457
15458#include <sys/types.h>
15459#include <sys/socket.h>
15460
15461int
15462main ()
15463{
15464 struct sockaddr_storage s;
15465 ;
15466 return 0;
15467}
15468_ACEOF
15469if ac_fn_c_try_compile "$LINENO"; then :
15470 ac_cv_have_struct_sockaddr_storage="yes"
15471else
15472 ac_cv_have_struct_sockaddr_storage="no"
15473
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476
15477fi
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
15479$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
15480if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
15481
15482$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
15483
15484fi
15485
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
15487$as_echo_n "checking for struct sockaddr_in6... " >&6; }
15488if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
15489 $as_echo_n "(cached) " >&6
15490else
15491
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493/* end confdefs.h. */
15494
15495#include <sys/types.h>
15496#include <netinet/in.h>
15497
15498int
15499main ()
15500{
15501 struct sockaddr_in6 s; s.sin6_family = 0;
15502 ;
15503 return 0;
15504}
15505_ACEOF
15506if ac_fn_c_try_compile "$LINENO"; then :
15507 ac_cv_have_struct_sockaddr_in6="yes"
15508else
15509 ac_cv_have_struct_sockaddr_in6="no"
15510
15511fi
15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513
15514fi
15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
15516$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
15517if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
15518
15519$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
15520
15521fi
15522
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
15524$as_echo_n "checking for struct in6_addr... " >&6; }
15525if ${ac_cv_have_struct_in6_addr+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527else
15528
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530/* end confdefs.h. */
15531
15532#include <sys/types.h>
15533#include <netinet/in.h>
15534
15535int
15536main ()
15537{
15538 struct in6_addr s; s.s6_addr[0] = 0;
15539 ;
15540 return 0;
15541}
15542_ACEOF
15543if ac_fn_c_try_compile "$LINENO"; then :
15544 ac_cv_have_struct_in6_addr="yes"
15545else
15546 ac_cv_have_struct_in6_addr="no"
15547
15548fi
15549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550
15551fi
15552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
15553$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
15554if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
15555
15556$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
15557
15558
15559 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
15560#ifdef HAVE_SYS_TYPES_H
15561#include <sys/types.h>
15562#endif
15563#include <netinet/in.h>
15564
15565"
15566if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15567
15568cat >>confdefs.h <<_ACEOF
15569#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15570_ACEOF
15571
15572
15573fi
15574
15575fi
15576
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
15578$as_echo_n "checking for struct addrinfo... " >&6; }
15579if ${ac_cv_have_struct_addrinfo+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581else
15582
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585
15586#include <sys/types.h>
15587#include <sys/socket.h>
15588#include <netdb.h>
15589
15590int
15591main ()
15592{
15593 struct addrinfo s; s.ai_flags = AI_PASSIVE;
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598if ac_fn_c_try_compile "$LINENO"; then :
15599 ac_cv_have_struct_addrinfo="yes"
15600else
15601 ac_cv_have_struct_addrinfo="no"
15602
15603fi
15604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605
15606fi
15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
15608$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
15609if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
15610
15611$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
15612
15613fi
15614
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
15616$as_echo_n "checking for struct timeval... " >&6; }
15617if ${ac_cv_have_struct_timeval+:} false; then :
15618 $as_echo_n "(cached) " >&6
15619else
15620
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622/* end confdefs.h. */
15623 #include <sys/time.h>
15624int
15625main ()
15626{
15627 struct timeval tv; tv.tv_sec = 1;
15628 ;
15629 return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_compile "$LINENO"; then :
15633 ac_cv_have_struct_timeval="yes"
15634else
15635 ac_cv_have_struct_timeval="no"
15636
15637fi
15638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15639
15640fi
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
15642$as_echo "$ac_cv_have_struct_timeval" >&6; }
15643if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
15644
15645$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
15646
15647 have_struct_timeval=1
15648fi
15649
15650ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
15651if test "x$ac_cv_type_struct_timespec" = xyes; then :
15652
15653cat >>confdefs.h <<_ACEOF
15654#define HAVE_STRUCT_TIMESPEC 1
15655_ACEOF
15656
15657
15658fi
15659
15660
15661# We need int64_t or else certian parts of the compile will fail.
15662if test "x$ac_cv_have_int64_t" = "xno" && \
15663 test "x$ac_cv_sizeof_long_int" != "x8" && \
15664 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
15665 echo "OpenSSH requires int64_t support. Contact your vendor or install"
15666 echo "an alternative compiler (I.E., GCC) before continuing."
15667 echo ""
15668 exit 1;
15669else
15670 if test "$cross_compiling" = yes; then :
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
15672$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15673
15674else
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h. */
15677
15678#include <stdio.h>
15679#include <string.h>
15680#ifdef HAVE_SNPRINTF
15681main()
15682{
15683 char buf[50];
15684 char expected_out[50];
15685 int mazsize = 50 ;
15686#if (SIZEOF_LONG_INT == 8)
15687 long int num = 0x7fffffffffffffff;
15688#else
15689 long long num = 0x7fffffffffffffffll;
15690#endif
15691 strcpy(expected_out, "9223372036854775807");
15692 snprintf(buf, mazsize, "%lld", num);
15693 if(strcmp(buf, expected_out) != 0)
15694 exit(1);
15695 exit(0);
15696}
15697#else
15698main() { exit(0); }
15699#endif
15700
15701_ACEOF
15702if ac_fn_c_try_run "$LINENO"; then :
15703 true
15704else
15705 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
15706
15707fi
15708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15709 conftest.$ac_objext conftest.beam conftest.$ac_ext
15710fi
15711
15712fi
15713
15714
15715# look for field 'ut_host' in header 'utmp.h'
15716 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15717 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
15719$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
15720 if eval \${$ossh_varname+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722else
15723
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725/* end confdefs.h. */
15726#include <utmp.h>
15727
15728_ACEOF
15729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15730 $EGREP "ut_host" >/dev/null 2>&1; then :
15731 eval "$ossh_varname=yes"
15732else
15733 eval "$ossh_varname=no"
15734fi
15735rm -f conftest*
15736
15737fi
15738
15739 ossh_result=`eval 'echo $'"$ossh_varname"`
15740 if test -n "`echo $ossh_varname`"; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15742$as_echo "$ossh_result" >&6; }
15743 if test "x$ossh_result" = "xyes"; then
15744
15745$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
15746
15747 fi
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750$as_echo "no" >&6; }
15751 fi
15752
15753
15754# look for field 'ut_host' in header 'utmpx.h'
15755 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15756 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
15758$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
15759 if eval \${$ossh_varname+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761else
15762
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h. */
15765#include <utmpx.h>
15766
15767_ACEOF
15768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15769 $EGREP "ut_host" >/dev/null 2>&1; then :
15770 eval "$ossh_varname=yes"
15771else
15772 eval "$ossh_varname=no"
15773fi
15774rm -f conftest*
15775
15776fi
15777
15778 ossh_result=`eval 'echo $'"$ossh_varname"`
15779 if test -n "`echo $ossh_varname`"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15781$as_echo "$ossh_result" >&6; }
15782 if test "x$ossh_result" = "xyes"; then
15783
15784$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
15785
15786 fi
15787 else
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789$as_echo "no" >&6; }
15790 fi
15791
15792
15793# look for field 'syslen' in header 'utmpx.h'
15794 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15795 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
15797$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
15798 if eval \${$ossh_varname+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800else
15801
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h. */
15804#include <utmpx.h>
15805
15806_ACEOF
15807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15808 $EGREP "syslen" >/dev/null 2>&1; then :
15809 eval "$ossh_varname=yes"
15810else
15811 eval "$ossh_varname=no"
15812fi
15813rm -f conftest*
15814
15815fi
15816
15817 ossh_result=`eval 'echo $'"$ossh_varname"`
15818 if test -n "`echo $ossh_varname`"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15820$as_echo "$ossh_result" >&6; }
15821 if test "x$ossh_result" = "xyes"; then
15822
15823$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
15824
15825 fi
15826 else
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828$as_echo "no" >&6; }
15829 fi
15830
15831
15832# look for field 'ut_pid' in header 'utmp.h'
15833 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15834 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
15836$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
15837 if eval \${$ossh_varname+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839else
15840
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h. */
15843#include <utmp.h>
15844
15845_ACEOF
15846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15847 $EGREP "ut_pid" >/dev/null 2>&1; then :
15848 eval "$ossh_varname=yes"
15849else
15850 eval "$ossh_varname=no"
15851fi
15852rm -f conftest*
15853
15854fi
15855
15856 ossh_result=`eval 'echo $'"$ossh_varname"`
15857 if test -n "`echo $ossh_varname`"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15859$as_echo "$ossh_result" >&6; }
15860 if test "x$ossh_result" = "xyes"; then
15861
15862$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
15863
15864 fi
15865 else
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867$as_echo "no" >&6; }
15868 fi
15869
15870
15871# look for field 'ut_type' in header 'utmp.h'
15872 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15873 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
15875$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
15876 if eval \${$ossh_varname+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878else
15879
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h. */
15882#include <utmp.h>
15883
15884_ACEOF
15885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15886 $EGREP "ut_type" >/dev/null 2>&1; then :
15887 eval "$ossh_varname=yes"
15888else
15889 eval "$ossh_varname=no"
15890fi
15891rm -f conftest*
15892
15893fi
15894
15895 ossh_result=`eval 'echo $'"$ossh_varname"`
15896 if test -n "`echo $ossh_varname`"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15898$as_echo "$ossh_result" >&6; }
15899 if test "x$ossh_result" = "xyes"; then
15900
15901$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
15902
15903 fi
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906$as_echo "no" >&6; }
15907 fi
15908
15909
15910# look for field 'ut_type' in header 'utmpx.h'
15911 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15912 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
15914$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
15915 if eval \${$ossh_varname+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917else
15918
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h. */
15921#include <utmpx.h>
15922
15923_ACEOF
15924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 $EGREP "ut_type" >/dev/null 2>&1; then :
15926 eval "$ossh_varname=yes"
15927else
15928 eval "$ossh_varname=no"
15929fi
15930rm -f conftest*
15931
15932fi
15933
15934 ossh_result=`eval 'echo $'"$ossh_varname"`
15935 if test -n "`echo $ossh_varname`"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15937$as_echo "$ossh_result" >&6; }
15938 if test "x$ossh_result" = "xyes"; then
15939
15940$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
15941
15942 fi
15943 else
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945$as_echo "no" >&6; }
15946 fi
15947
15948
15949# look for field 'ut_tv' in header 'utmp.h'
15950 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15951 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
15953$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
15954 if eval \${$ossh_varname+:} false; then :
15955 $as_echo_n "(cached) " >&6
15956else
15957
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h. */
15960#include <utmp.h>
15961
15962_ACEOF
15963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 $EGREP "ut_tv" >/dev/null 2>&1; then :
15965 eval "$ossh_varname=yes"
15966else
15967 eval "$ossh_varname=no"
15968fi
15969rm -f conftest*
15970
15971fi
15972
15973 ossh_result=`eval 'echo $'"$ossh_varname"`
15974 if test -n "`echo $ossh_varname`"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
15976$as_echo "$ossh_result" >&6; }
15977 if test "x$ossh_result" = "xyes"; then
15978
15979$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
15980
15981 fi
15982 else
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984$as_echo "no" >&6; }
15985 fi
15986
15987
15988# look for field 'ut_id' in header 'utmp.h'
15989 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15990 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
15992$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
15993 if eval \${$ossh_varname+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995else
15996
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998/* end confdefs.h. */
15999#include <utmp.h>
16000
16001_ACEOF
16002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16003 $EGREP "ut_id" >/dev/null 2>&1; then :
16004 eval "$ossh_varname=yes"
16005else
16006 eval "$ossh_varname=no"
16007fi
16008rm -f conftest*
16009
16010fi
16011
16012 ossh_result=`eval 'echo $'"$ossh_varname"`
16013 if test -n "`echo $ossh_varname`"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16015$as_echo "$ossh_result" >&6; }
16016 if test "x$ossh_result" = "xyes"; then
16017
16018$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
16019
16020 fi
16021 else
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023$as_echo "no" >&6; }
16024 fi
16025
16026
16027# look for field 'ut_id' in header 'utmpx.h'
16028 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16029 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
16031$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
16032 if eval \${$ossh_varname+:} false; then :
16033 $as_echo_n "(cached) " >&6
16034else
16035
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037/* end confdefs.h. */
16038#include <utmpx.h>
16039
16040_ACEOF
16041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16042 $EGREP "ut_id" >/dev/null 2>&1; then :
16043 eval "$ossh_varname=yes"
16044else
16045 eval "$ossh_varname=no"
16046fi
16047rm -f conftest*
16048
16049fi
16050
16051 ossh_result=`eval 'echo $'"$ossh_varname"`
16052 if test -n "`echo $ossh_varname`"; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16054$as_echo "$ossh_result" >&6; }
16055 if test "x$ossh_result" = "xyes"; then
16056
16057$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
16058
16059 fi
16060 else
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16062$as_echo "no" >&6; }
16063 fi
16064
16065
16066# look for field 'ut_addr' in header 'utmp.h'
16067 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16068 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
16070$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
16071 if eval \${$ossh_varname+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073else
16074
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h. */
16077#include <utmp.h>
16078
16079_ACEOF
16080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16081 $EGREP "ut_addr" >/dev/null 2>&1; then :
16082 eval "$ossh_varname=yes"
16083else
16084 eval "$ossh_varname=no"
16085fi
16086rm -f conftest*
16087
16088fi
16089
16090 ossh_result=`eval 'echo $'"$ossh_varname"`
16091 if test -n "`echo $ossh_varname`"; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16093$as_echo "$ossh_result" >&6; }
16094 if test "x$ossh_result" = "xyes"; then
16095
16096$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
16097
16098 fi
16099 else
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101$as_echo "no" >&6; }
16102 fi
16103
16104
16105# look for field 'ut_addr' in header 'utmpx.h'
16106 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16107 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
16109$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
16110 if eval \${$ossh_varname+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112else
16113
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h. */
16116#include <utmpx.h>
16117
16118_ACEOF
16119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16120 $EGREP "ut_addr" >/dev/null 2>&1; then :
16121 eval "$ossh_varname=yes"
16122else
16123 eval "$ossh_varname=no"
16124fi
16125rm -f conftest*
16126
16127fi
16128
16129 ossh_result=`eval 'echo $'"$ossh_varname"`
16130 if test -n "`echo $ossh_varname`"; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16132$as_echo "$ossh_result" >&6; }
16133 if test "x$ossh_result" = "xyes"; then
16134
16135$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
16136
16137 fi
16138 else
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16140$as_echo "no" >&6; }
16141 fi
16142
16143
16144# look for field 'ut_addr_v6' in header 'utmp.h'
16145 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16146 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
16148$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
16149 if eval \${$ossh_varname+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151else
16152
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h. */
16155#include <utmp.h>
16156
16157_ACEOF
16158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16159 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16160 eval "$ossh_varname=yes"
16161else
16162 eval "$ossh_varname=no"
16163fi
16164rm -f conftest*
16165
16166fi
16167
16168 ossh_result=`eval 'echo $'"$ossh_varname"`
16169 if test -n "`echo $ossh_varname`"; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16171$as_echo "$ossh_result" >&6; }
16172 if test "x$ossh_result" = "xyes"; then
16173
16174$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
16175
16176 fi
16177 else
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179$as_echo "no" >&6; }
16180 fi
16181
16182
16183# look for field 'ut_addr_v6' in header 'utmpx.h'
16184 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16185 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
16187$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
16188 if eval \${$ossh_varname+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190else
16191
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193/* end confdefs.h. */
16194#include <utmpx.h>
16195
16196_ACEOF
16197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16198 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
16199 eval "$ossh_varname=yes"
16200else
16201 eval "$ossh_varname=no"
16202fi
16203rm -f conftest*
16204
16205fi
16206
16207 ossh_result=`eval 'echo $'"$ossh_varname"`
16208 if test -n "`echo $ossh_varname`"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16210$as_echo "$ossh_result" >&6; }
16211 if test "x$ossh_result" = "xyes"; then
16212
16213$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
16214
16215 fi
16216 else
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218$as_echo "no" >&6; }
16219 fi
16220
16221
16222# look for field 'ut_exit' in header 'utmp.h'
16223 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16224 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
16226$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
16227 if eval \${$ossh_varname+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229else
16230
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h. */
16233#include <utmp.h>
16234
16235_ACEOF
16236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16237 $EGREP "ut_exit" >/dev/null 2>&1; then :
16238 eval "$ossh_varname=yes"
16239else
16240 eval "$ossh_varname=no"
16241fi
16242rm -f conftest*
16243
16244fi
16245
16246 ossh_result=`eval 'echo $'"$ossh_varname"`
16247 if test -n "`echo $ossh_varname`"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16249$as_echo "$ossh_result" >&6; }
16250 if test "x$ossh_result" = "xyes"; then
16251
16252$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
16253
16254 fi
16255 else
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257$as_echo "no" >&6; }
16258 fi
16259
16260
16261# look for field 'ut_time' in header 'utmp.h'
16262 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
16263 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
16265$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
16266 if eval \${$ossh_varname+:} false; then :
16267 $as_echo_n "(cached) " >&6
16268else
16269
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h. */
16272#include <utmp.h>
16273
16274_ACEOF
16275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16276 $EGREP "ut_time" >/dev/null 2>&1; then :
16277 eval "$ossh_varname=yes"
16278else
16279 eval "$ossh_varname=no"
16280fi
16281rm -f conftest*
16282
16283fi
16284
16285 ossh_result=`eval 'echo $'"$ossh_varname"`
16286 if test -n "`echo $ossh_varname`"; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16288$as_echo "$ossh_result" >&6; }
16289 if test "x$ossh_result" = "xyes"; then
16290
16291$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
16292
16293 fi
16294 else
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296$as_echo "no" >&6; }
16297 fi
16298
16299
16300# look for field 'ut_time' in header 'utmpx.h'
16301 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16302 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
16304$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
16305 if eval \${$ossh_varname+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307else
16308
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h. */
16311#include <utmpx.h>
16312
16313_ACEOF
16314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "ut_time" >/dev/null 2>&1; then :
16316 eval "$ossh_varname=yes"
16317else
16318 eval "$ossh_varname=no"
16319fi
16320rm -f conftest*
16321
16322fi
16323
16324 ossh_result=`eval 'echo $'"$ossh_varname"`
16325 if test -n "`echo $ossh_varname`"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16327$as_echo "$ossh_result" >&6; }
16328 if test "x$ossh_result" = "xyes"; then
16329
16330$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
16331
16332 fi
16333 else
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16335$as_echo "no" >&6; }
16336 fi
16337
16338
16339# look for field 'ut_tv' in header 'utmpx.h'
16340 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
16341 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
16343$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
16344 if eval \${$ossh_varname+:} false; then :
16345 $as_echo_n "(cached) " >&6
16346else
16347
16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349/* end confdefs.h. */
16350#include <utmpx.h>
16351
16352_ACEOF
16353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354 $EGREP "ut_tv" >/dev/null 2>&1; then :
16355 eval "$ossh_varname=yes"
16356else
16357 eval "$ossh_varname=no"
16358fi
16359rm -f conftest*
16360
16361fi
16362
16363 ossh_result=`eval 'echo $'"$ossh_varname"`
16364 if test -n "`echo $ossh_varname`"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
16366$as_echo "$ossh_result" >&6; }
16367 if test "x$ossh_result" = "xyes"; then
16368
16369$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
16370
16371 fi
16372 else
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374$as_echo "no" >&6; }
16375 fi
16376
16377
16378ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16379if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16380
16381cat >>confdefs.h <<_ACEOF
16382#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16383_ACEOF
16384
16385
16386fi
16387
16388ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16389if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16390
16391cat >>confdefs.h <<_ACEOF
16392#define HAVE_STRUCT_STAT_ST_MTIM 1
16393_ACEOF
16394
16395
16396fi
16397
16398ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default"
16399if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
16400
16401cat >>confdefs.h <<_ACEOF
16402#define HAVE_STRUCT_STAT_ST_MTIME 1
16403_ACEOF
16404
16405
16406fi
16407
16408ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
16409#include <sys/types.h>
16410#include <pwd.h>
16411
16412"
16413if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
16414
16415cat >>confdefs.h <<_ACEOF
16416#define HAVE_STRUCT_PASSWD_PW_GECOS 1
16417_ACEOF
16418
16419
16420fi
16421ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
16422#include <sys/types.h>
16423#include <pwd.h>
16424
16425"
16426if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
16427
16428cat >>confdefs.h <<_ACEOF
16429#define HAVE_STRUCT_PASSWD_PW_CLASS 1
16430_ACEOF
16431
16432
16433fi
16434ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
16435#include <sys/types.h>
16436#include <pwd.h>
16437
16438"
16439if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
16440
16441cat >>confdefs.h <<_ACEOF
16442#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
16443_ACEOF
16444
16445
16446fi
16447ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
16448#include <sys/types.h>
16449#include <pwd.h>
16450
16451"
16452if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
16453
16454cat >>confdefs.h <<_ACEOF
16455#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
16456_ACEOF
16457
16458
16459fi
16460
16461
16462ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
16463#include <stdio.h>
16464#if HAVE_SYS_TYPES_H
16465# include <sys/types.h>
16466#endif
16467#include <netinet/in.h>
16468#include <arpa/nameser.h>
16469#include <resolv.h>
16470
16471"
16472if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
16473
16474else
16475
16476$as_echo "#define __res_state state" >>confdefs.h
16477
16478fi
16479
16480
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
16482$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
16483if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
16484 $as_echo_n "(cached) " >&6
16485else
16486
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488/* end confdefs.h. */
16489
16490#include <sys/types.h>
16491#include <sys/socket.h>
16492
16493int
16494main ()
16495{
16496 struct sockaddr_storage s; s.ss_family = 1;
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501if ac_fn_c_try_compile "$LINENO"; then :
16502 ac_cv_have_ss_family_in_struct_ss="yes"
16503else
16504 ac_cv_have_ss_family_in_struct_ss="no"
16505fi
16506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507
16508fi
16509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
16510$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
16511if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
16512
16513$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
16514
16515fi
16516
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
16518$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
16519if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
16520 $as_echo_n "(cached) " >&6
16521else
16522
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524/* end confdefs.h. */
16525
16526#include <sys/types.h>
16527#include <sys/socket.h>
16528
16529int
16530main ()
16531{
16532 struct sockaddr_storage s; s.__ss_family = 1;
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537if ac_fn_c_try_compile "$LINENO"; then :
16538 ac_cv_have___ss_family_in_struct_ss="yes"
16539else
16540 ac_cv_have___ss_family_in_struct_ss="no"
16541
16542fi
16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544
16545fi
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
16547$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
16548if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
16549
16550$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16551
16552fi
16553
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
16555$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
16556if ${ac_cv_have_accrights_in_msghdr+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558else
16559
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h. */
16562
16563#include <sys/types.h>
16564#include <sys/socket.h>
16565#include <sys/uio.h>
16566
16567int
16568main ()
16569{
16570
16571#ifdef msg_accrights
16572#error "msg_accrights is a macro"
16573exit(1);
16574#endif
16575struct msghdr m;
16576m.msg_accrights = 0;
16577exit(0);
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583if ac_fn_c_try_compile "$LINENO"; then :
16584 ac_cv_have_accrights_in_msghdr="yes"
16585else
16586 ac_cv_have_accrights_in_msghdr="no"
16587
16588fi
16589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590
16591fi
16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
16593$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
16594if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
16595
16596$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
16597
16598fi
16599
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
16601$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
16602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h. */
16604
16605#include <sys/param.h>
16606#include <sys/stat.h>
16607#ifdef HAVE_SYS_TIME_H
16608# include <sys/time.h>
16609#endif
16610#ifdef HAVE_SYS_MOUNT_H
16611#include <sys/mount.h>
16612#endif
16613#ifdef HAVE_SYS_STATVFS_H
16614#include <sys/statvfs.h>
16615#endif
16616
16617int
16618main ()
16619{
16620 struct statvfs s; s.f_fsid = 0;
16621 ;
16622 return 0;
16623}
16624_ACEOF
16625if ac_fn_c_try_compile "$LINENO"; then :
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16627$as_echo "yes" >&6; }
16628else
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630$as_echo "no" >&6; }
16631
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
16633$as_echo_n "checking if fsid_t has member val... " >&6; }
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635/* end confdefs.h. */
16636
16637#include <sys/types.h>
16638#include <sys/statvfs.h>
16639
16640int
16641main ()
16642{
16643 fsid_t t; t.val[0] = 0;
16644 ;
16645 return 0;
16646}
16647_ACEOF
16648if ac_fn_c_try_compile "$LINENO"; then :
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16650$as_echo "yes" >&6; }
16651
16652$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
16653
16654else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656$as_echo "no" >&6; }
16657fi
16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
16661$as_echo_n "checking if f_fsid has member __val... " >&6; }
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663/* end confdefs.h. */
16664
16665#include <sys/types.h>
16666#include <sys/statvfs.h>
16667
16668int
16669main ()
16670{
16671 fsid_t t; t.__val[0] = 0;
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then :
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16678$as_echo "yes" >&6; }
16679
16680$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
16681
16682else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684$as_echo "no" >&6; }
16685fi
16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687
16688fi
16689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
16692$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
16693if ${ac_cv_have_control_in_msghdr+:} false; then :
16694 $as_echo_n "(cached) " >&6
16695else
16696
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698/* end confdefs.h. */
16699
16700#include <sys/types.h>
16701#include <sys/socket.h>
16702#include <sys/uio.h>
16703
16704int
16705main ()
16706{
16707
16708#ifdef msg_control
16709#error "msg_control is a macro"
16710exit(1);
16711#endif
16712struct msghdr m;
16713m.msg_control = 0;
16714exit(0);
16715
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720if ac_fn_c_try_compile "$LINENO"; then :
16721 ac_cv_have_control_in_msghdr="yes"
16722else
16723 ac_cv_have_control_in_msghdr="no"
16724
16725fi
16726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727
16728fi
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
16730$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
16731if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
16732
16733$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
16734
16735fi
16736
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
16738$as_echo_n "checking if libc defines __progname... " >&6; }
16739if ${ac_cv_libc_defines___progname+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741else
16742
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744/* end confdefs.h. */
16745
16746int
16747main ()
16748{
16749 extern char *__progname; printf("%s", __progname);
16750 ;
16751 return 0;
16752}
16753_ACEOF
16754if ac_fn_c_try_link "$LINENO"; then :
16755 ac_cv_libc_defines___progname="yes"
16756else
16757 ac_cv_libc_defines___progname="no"
16758
16759fi
16760rm -f core conftest.err conftest.$ac_objext \
16761 conftest$ac_exeext conftest.$ac_ext
16762
16763fi
16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
16765$as_echo "$ac_cv_libc_defines___progname" >&6; }
16766if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
16767
16768$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
16769
16770fi
16771
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
16773$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
16774if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776else
16777
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h. */
16780 #include <stdio.h>
16781int
16782main ()
16783{
16784 printf("%s", __FUNCTION__);
16785 ;
16786 return 0;
16787}
16788_ACEOF
16789if ac_fn_c_try_link "$LINENO"; then :
16790 ac_cv_cc_implements___FUNCTION__="yes"
16791else
16792 ac_cv_cc_implements___FUNCTION__="no"
16793
16794fi
16795rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797
16798fi
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
16800$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
16801if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
16802
16803$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
16804
16805fi
16806
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
16808$as_echo_n "checking whether $CC implements __func__... " >&6; }
16809if ${ac_cv_cc_implements___func__+:} false; then :
16810 $as_echo_n "(cached) " >&6
16811else
16812
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h. */
16815 #include <stdio.h>
16816int
16817main ()
16818{
16819 printf("%s", __func__);
16820 ;
16821 return 0;
16822}
16823_ACEOF
16824if ac_fn_c_try_link "$LINENO"; then :
16825 ac_cv_cc_implements___func__="yes"
16826else
16827 ac_cv_cc_implements___func__="no"
16828
16829fi
16830rm -f core conftest.err conftest.$ac_objext \
16831 conftest$ac_exeext conftest.$ac_ext
16832
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
16835$as_echo "$ac_cv_cc_implements___func__" >&6; }
16836if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
16837
16838$as_echo "#define HAVE___func__ 1" >>confdefs.h
16839
16840fi
16841
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
16843$as_echo_n "checking whether va_copy exists... " >&6; }
16844if ${ac_cv_have_va_copy+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846else
16847
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849/* end confdefs.h. */
16850
16851#include <stdarg.h>
16852va_list x,y;
16853
16854int
16855main ()
16856{
16857 va_copy(x,y);
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862if ac_fn_c_try_link "$LINENO"; then :
16863 ac_cv_have_va_copy="yes"
16864else
16865 ac_cv_have_va_copy="no"
16866
16867fi
16868rm -f core conftest.err conftest.$ac_objext \
16869 conftest$ac_exeext conftest.$ac_ext
16870
16871fi
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
16873$as_echo "$ac_cv_have_va_copy" >&6; }
16874if test "x$ac_cv_have_va_copy" = "xyes" ; then
16875
16876$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
16877
16878fi
16879
16880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
16881$as_echo_n "checking whether __va_copy exists... " >&6; }
16882if ${ac_cv_have___va_copy+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884else
16885
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h. */
16888
16889#include <stdarg.h>
16890va_list x,y;
16891
16892int
16893main ()
16894{
16895 __va_copy(x,y);
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900if ac_fn_c_try_link "$LINENO"; then :
16901 ac_cv_have___va_copy="yes"
16902else
16903 ac_cv_have___va_copy="no"
16904
16905fi
16906rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908
16909fi
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
16911$as_echo "$ac_cv_have___va_copy" >&6; }
16912if test "x$ac_cv_have___va_copy" = "xyes" ; then
16913
16914$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
16915
16916fi
16917
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
16919$as_echo_n "checking whether getopt has optreset support... " >&6; }
16920if ${ac_cv_have_getopt_optreset+:} false; then :
16921 $as_echo_n "(cached) " >&6
16922else
16923
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h. */
16926 #include <getopt.h>
16927int
16928main ()
16929{
16930 extern int optreset; optreset = 0;
16931 ;
16932 return 0;
16933}
16934_ACEOF
16935if ac_fn_c_try_link "$LINENO"; then :
16936 ac_cv_have_getopt_optreset="yes"
16937else
16938 ac_cv_have_getopt_optreset="no"
16939
16940fi
16941rm -f core conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943
16944fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
16946$as_echo "$ac_cv_have_getopt_optreset" >&6; }
16947if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16948
16949$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
16950
16951fi
16952
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
16954$as_echo_n "checking if libc defines sys_errlist... " >&6; }
16955if ${ac_cv_libc_defines_sys_errlist+:} false; then :
16956 $as_echo_n "(cached) " >&6
16957else
16958
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960/* end confdefs.h. */
16961
16962int
16963main ()
16964{
16965 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970if ac_fn_c_try_link "$LINENO"; then :
16971 ac_cv_libc_defines_sys_errlist="yes"
16972else
16973 ac_cv_libc_defines_sys_errlist="no"
16974
16975fi
16976rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978
16979fi
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
16981$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
16982if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16983
16984$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16985
16986fi
16987
16988
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
16990$as_echo_n "checking if libc defines sys_nerr... " >&6; }
16991if ${ac_cv_libc_defines_sys_nerr+:} false; then :
16992 $as_echo_n "(cached) " >&6
16993else
16994
16995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996/* end confdefs.h. */
16997
16998int
16999main ()
17000{
17001 extern int sys_nerr; printf("%i", sys_nerr);
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006if ac_fn_c_try_link "$LINENO"; then :
17007 ac_cv_libc_defines_sys_nerr="yes"
17008else
17009 ac_cv_libc_defines_sys_nerr="no"
17010
17011fi
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
17017$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
17018if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
17019
17020$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
17021
17022fi
17023
17024# Check libraries needed by DNS fingerprint support
17025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
17026$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
17027if ${ac_cv_search_getrrsetbyname+:} false; then :
17028 $as_echo_n "(cached) " >&6
17029else
17030 ac_func_search_save_LIBS=$LIBS
17031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032/* end confdefs.h. */
17033
17034/* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037#ifdef __cplusplus
17038extern "C"
17039#endif
17040char getrrsetbyname ();
17041int
17042main ()
17043{
17044return getrrsetbyname ();
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049for ac_lib in '' resolv; do
17050 if test -z "$ac_lib"; then
17051 ac_res="none required"
17052 else
17053 ac_res=-l$ac_lib
17054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17055 fi
17056 if ac_fn_c_try_link "$LINENO"; then :
17057 ac_cv_search_getrrsetbyname=$ac_res
17058fi
17059rm -f core conftest.err conftest.$ac_objext \
17060 conftest$ac_exeext
17061 if ${ac_cv_search_getrrsetbyname+:} false; then :
17062 break
17063fi
17064done
17065if ${ac_cv_search_getrrsetbyname+:} false; then :
17066
17067else
17068 ac_cv_search_getrrsetbyname=no
17069fi
17070rm conftest.$ac_ext
17071LIBS=$ac_func_search_save_LIBS
17072fi
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
17074$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
17075ac_res=$ac_cv_search_getrrsetbyname
17076if test "$ac_res" != no; then :
17077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17078
17079$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
17080
17081else
17082
17083 # Needed by our getrrsetbyname()
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
17085$as_echo_n "checking for library containing res_query... " >&6; }
17086if ${ac_cv_search_res_query+:} false; then :
17087 $as_echo_n "(cached) " >&6
17088else
17089 ac_func_search_save_LIBS=$LIBS
17090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091/* end confdefs.h. */
17092
17093/* Override any GCC internal prototype to avoid an error.
17094 Use char because int might match the return type of a GCC
17095 builtin and then its argument prototype would still apply. */
17096#ifdef __cplusplus
17097extern "C"
17098#endif
17099char res_query ();
17100int
17101main ()
17102{
17103return res_query ();
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108for ac_lib in '' resolv; do
17109 if test -z "$ac_lib"; then
17110 ac_res="none required"
17111 else
17112 ac_res=-l$ac_lib
17113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17114 fi
17115 if ac_fn_c_try_link "$LINENO"; then :
17116 ac_cv_search_res_query=$ac_res
17117fi
17118rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext
17120 if ${ac_cv_search_res_query+:} false; then :
17121 break
17122fi
17123done
17124if ${ac_cv_search_res_query+:} false; then :
17125
17126else
17127 ac_cv_search_res_query=no
17128fi
17129rm conftest.$ac_ext
17130LIBS=$ac_func_search_save_LIBS
17131fi
17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
17133$as_echo "$ac_cv_search_res_query" >&6; }
17134ac_res=$ac_cv_search_res_query
17135if test "$ac_res" != no; then :
17136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17137
17138fi
17139
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17141$as_echo_n "checking for library containing dn_expand... " >&6; }
17142if ${ac_cv_search_dn_expand+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144else
17145 ac_func_search_save_LIBS=$LIBS
17146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147/* end confdefs.h. */
17148
17149/* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17152#ifdef __cplusplus
17153extern "C"
17154#endif
17155char dn_expand ();
17156int
17157main ()
17158{
17159return dn_expand ();
17160 ;
17161 return 0;
17162}
17163_ACEOF
17164for ac_lib in '' resolv; do
17165 if test -z "$ac_lib"; then
17166 ac_res="none required"
17167 else
17168 ac_res=-l$ac_lib
17169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17170 fi
17171 if ac_fn_c_try_link "$LINENO"; then :
17172 ac_cv_search_dn_expand=$ac_res
17173fi
17174rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext
17176 if ${ac_cv_search_dn_expand+:} false; then :
17177 break
17178fi
17179done
17180if ${ac_cv_search_dn_expand+:} false; then :
17181
17182else
17183 ac_cv_search_dn_expand=no
17184fi
17185rm conftest.$ac_ext
17186LIBS=$ac_func_search_save_LIBS
17187fi
17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17189$as_echo "$ac_cv_search_dn_expand" >&6; }
17190ac_res=$ac_cv_search_dn_expand
17191if test "$ac_res" != no; then :
17192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17193
17194fi
17195
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
17197$as_echo_n "checking if res_query will link... " >&6; }
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199/* end confdefs.h. */
17200
17201#include <sys/types.h>
17202#include <netinet/in.h>
17203#include <arpa/nameser.h>
17204#include <netdb.h>
17205#include <resolv.h>
17206
17207int
17208main ()
17209{
17210
17211 res_query (0, 0, 0, 0, 0);
17212
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217if ac_fn_c_try_link "$LINENO"; then :
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17219$as_echo "yes" >&6; }
17220else
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222$as_echo "no" >&6; }
17223 saved_LIBS="$LIBS"
17224 LIBS="$LIBS -lresolv"
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
17226$as_echo_n "checking for res_query in -lresolv... " >&6; }
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h. */
17229
17230#include <sys/types.h>
17231#include <netinet/in.h>
17232#include <arpa/nameser.h>
17233#include <netdb.h>
17234#include <resolv.h>
17235
17236int
17237main ()
17238{
17239
17240 res_query (0, 0, 0, 0, 0);
17241
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246if ac_fn_c_try_link "$LINENO"; then :
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17248$as_echo "yes" >&6; }
17249else
17250 LIBS="$saved_LIBS"
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17252$as_echo "no" >&6; }
17253fi
17254rm -f core conftest.err conftest.$ac_objext \
17255 conftest$ac_exeext conftest.$ac_ext
17256
17257fi
17258rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
17260 for ac_func in _getshort _getlong
17261do :
17262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17263ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17264if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17265 cat >>confdefs.h <<_ACEOF
17266#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267_ACEOF
17268
17269fi
17270done
17271
17272 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
17273 #include <arpa/nameser.h>
17274"
17275if test "x$ac_cv_have_decl__getshort" = xyes; then :
17276 ac_have_decl=1
17277else
17278 ac_have_decl=0
17279fi
17280
17281cat >>confdefs.h <<_ACEOF
17282#define HAVE_DECL__GETSHORT $ac_have_decl
17283_ACEOF
17284ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
17285 #include <arpa/nameser.h>
17286"
17287if test "x$ac_cv_have_decl__getlong" = xyes; then :
17288 ac_have_decl=1
17289else
17290 ac_have_decl=0
17291fi
17292
17293cat >>confdefs.h <<_ACEOF
17294#define HAVE_DECL__GETLONG $ac_have_decl
17295_ACEOF
17296
17297 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
17298"
17299if test "x$ac_cv_member_HEADER_ad" = xyes; then :
17300
17301$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
17302
17303fi
17304
17305
17306fi
17307
17308
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
17310$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
17311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h. */
17313
17314#include <stdio.h>
17315#if HAVE_SYS_TYPES_H
17316# include <sys/types.h>
17317#endif
17318#include <netinet/in.h>
17319#include <arpa/nameser.h>
17320#include <resolv.h>
17321extern struct __res_state _res;
17322
17323int
17324main ()
17325{
17326
17327struct __res_state *volatile p = &_res; /* force resolution of _res */
17328return 0;
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334if ac_fn_c_try_link "$LINENO"; then :
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17336$as_echo "yes" >&6; }
17337
17338$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
17339
17340
17341else
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343$as_echo "no" >&6; }
17344
17345fi
17346rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348
17349# Check whether user wants SELinux support
17350SELINUX_MSG="no"
17351LIBSELINUX=""
17352
17353# Check whether --with-selinux was given.
17354if test "${with_selinux+set}" = set; then :
17355 withval=$with_selinux; if test "x$withval" != "xno" ; then
17356 save_LIBS="$LIBS"
17357
17358$as_echo "#define WITH_SELINUX 1" >>confdefs.h
17359
17360 SELINUX_MSG="yes"
17361 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17362if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
17363
17364else
17365 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
17366fi
17367
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
17370$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
17371if ${ac_cv_lib_selinux_setexeccon+:} false; then :
17372 $as_echo_n "(cached) " >&6
17373else
17374 ac_check_lib_save_LIBS=$LIBS
17375LIBS="-lselinux $LIBS"
17376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377/* end confdefs.h. */
17378
17379/* Override any GCC internal prototype to avoid an error.
17380 Use char because int might match the return type of a GCC
17381 builtin and then its argument prototype would still apply. */
17382#ifdef __cplusplus
17383extern "C"
17384#endif
17385char setexeccon ();
17386int
17387main ()
17388{
17389return setexeccon ();
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394if ac_fn_c_try_link "$LINENO"; then :
17395 ac_cv_lib_selinux_setexeccon=yes
17396else
17397 ac_cv_lib_selinux_setexeccon=no
17398fi
17399rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17401LIBS=$ac_check_lib_save_LIBS
17402fi
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
17404$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
17405if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
17406 LIBSELINUX="-lselinux"
17407 LIBS="$LIBS -lselinux"
17408
17409else
17410 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
17411fi
17412
17413 SSHLIBS="$SSHLIBS $LIBSELINUX"
17414 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
17415 for ac_func in getseuserbyname get_default_context_with_level
17416do :
17417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17419if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17420 cat >>confdefs.h <<_ACEOF
17421#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422_ACEOF
17423
17424fi
17425done
17426
17427 LIBS="$save_LIBS"
17428 fi
17429
17430fi
17431
17432
17433
17434
17435# Check whether user wants Kerberos 5 support
17436KRB5_MSG="no"
17437
17438# Check whether --with-kerberos5 was given.
17439if test "${with_kerberos5+set}" = set; then :
17440 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
17441 if test "x$withval" = "xyes" ; then
17442 KRB5ROOT="/usr/local"
17443 else
17444 KRB5ROOT=${withval}
17445 fi
17446
17447
17448$as_echo "#define KRB5 1" >>confdefs.h
17449
17450 KRB5_MSG="yes"
17451
17452 if test -n "$ac_tool_prefix"; then
17453 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
17454set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
17455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17456$as_echo_n "checking for $ac_word... " >&6; }
17457if ${ac_cv_path_KRB5CONF+:} false; then :
17458 $as_echo_n "(cached) " >&6
17459else
17460 case $KRB5CONF in
17461 [\\/]* | ?:[\\/]*)
17462 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
17463 ;;
17464 *)
17465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17466as_dummy="$KRB5ROOT/bin:$PATH"
17467for as_dir in $as_dummy
17468do
17469 IFS=$as_save_IFS
17470 test -z "$as_dir" && as_dir=.
17471 for ac_exec_ext in '' $ac_executable_extensions; do
17472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17473 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17475 break 2
17476 fi
17477done
17478 done
17479IFS=$as_save_IFS
17480
17481 ;;
17482esac
17483fi
17484KRB5CONF=$ac_cv_path_KRB5CONF
17485if test -n "$KRB5CONF"; then
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
17487$as_echo "$KRB5CONF" >&6; }
17488else
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17490$as_echo "no" >&6; }
17491fi
17492
17493
17494fi
17495if test -z "$ac_cv_path_KRB5CONF"; then
17496 ac_pt_KRB5CONF=$KRB5CONF
17497 # Extract the first word of "krb5-config", so it can be a program name with args.
17498set dummy krb5-config; ac_word=$2
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17500$as_echo_n "checking for $ac_word... " >&6; }
17501if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then :
17502 $as_echo_n "(cached) " >&6
17503else
17504 case $ac_pt_KRB5CONF in
17505 [\\/]* | ?:[\\/]*)
17506 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path.
17507 ;;
17508 *)
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510as_dummy="$KRB5ROOT/bin:$PATH"
17511for as_dir in $as_dummy
17512do
17513 IFS=$as_save_IFS
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519 break 2
17520 fi
17521done
17522 done
17523IFS=$as_save_IFS
17524
17525 ;;
17526esac
17527fi
17528ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF
17529if test -n "$ac_pt_KRB5CONF"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5
17531$as_echo "$ac_pt_KRB5CONF" >&6; }
17532else
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534$as_echo "no" >&6; }
17535fi
17536
17537 if test "x$ac_pt_KRB5CONF" = x; then
17538 KRB5CONF="$KRB5ROOT/bin/krb5-config"
17539 else
17540 case $cross_compiling:$ac_tool_warned in
17541yes:)
17542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17544ac_tool_warned=yes ;;
17545esac
17546 KRB5CONF=$ac_pt_KRB5CONF
17547 fi
17548else
17549 KRB5CONF="$ac_cv_path_KRB5CONF"
17550fi
17551
17552 if test -x $KRB5CONF ; then
17553 K5CFLAGS="`$KRB5CONF --cflags`"
17554 K5LIBS="`$KRB5CONF --libs`"
17555 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
17558$as_echo_n "checking for gssapi support... " >&6; }
17559 if $KRB5CONF | grep gssapi >/dev/null ; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17561$as_echo "yes" >&6; }
17562
17563$as_echo "#define GSSAPI 1" >>confdefs.h
17564
17565 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
17566 GSSLIBS="`$KRB5CONF --libs gssapi`"
17567 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
17568 else
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17570$as_echo "no" >&6; }
17571 fi
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17573$as_echo_n "checking whether we are using Heimdal... " >&6; }
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575/* end confdefs.h. */
17576 #include <krb5.h>
17577
17578int
17579main ()
17580{
17581 char *tmp = heimdal_version;
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586if ac_fn_c_try_compile "$LINENO"; then :
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17588$as_echo "yes" >&6; }
17589
17590$as_echo "#define HEIMDAL 1" >>confdefs.h
17591
17592else
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17594$as_echo "no" >&6; }
17595
17596fi
17597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 else
17599 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
17600 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
17602$as_echo_n "checking whether we are using Heimdal... " >&6; }
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604/* end confdefs.h. */
17605 #include <krb5.h>
17606
17607int
17608main ()
17609{
17610 char *tmp = heimdal_version;
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615if ac_fn_c_try_compile "$LINENO"; then :
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17617$as_echo "yes" >&6; }
17618 $as_echo "#define HEIMDAL 1" >>confdefs.h
17619
17620 K5LIBS="-lkrb5"
17621 K5LIBS="$K5LIBS -lcom_err -lasn1"
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
17623$as_echo_n "checking for net_write in -lroken... " >&6; }
17624if ${ac_cv_lib_roken_net_write+:} false; then :
17625 $as_echo_n "(cached) " >&6
17626else
17627 ac_check_lib_save_LIBS=$LIBS
17628LIBS="-lroken $LIBS"
17629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630/* end confdefs.h. */
17631
17632/* Override any GCC internal prototype to avoid an error.
17633 Use char because int might match the return type of a GCC
17634 builtin and then its argument prototype would still apply. */
17635#ifdef __cplusplus
17636extern "C"
17637#endif
17638char net_write ();
17639int
17640main ()
17641{
17642return net_write ();
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647if ac_fn_c_try_link "$LINENO"; then :
17648 ac_cv_lib_roken_net_write=yes
17649else
17650 ac_cv_lib_roken_net_write=no
17651fi
17652rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654LIBS=$ac_check_lib_save_LIBS
17655fi
17656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
17657$as_echo "$ac_cv_lib_roken_net_write" >&6; }
17658if test "x$ac_cv_lib_roken_net_write" = xyes; then :
17659 K5LIBS="$K5LIBS -lroken"
17660fi
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17663$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17664if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
17665 $as_echo_n "(cached) " >&6
17666else
17667 ac_check_lib_save_LIBS=$LIBS
17668LIBS="-ldes $LIBS"
17669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670/* end confdefs.h. */
17671
17672/* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17675#ifdef __cplusplus
17676extern "C"
17677#endif
17678char des_cbc_encrypt ();
17679int
17680main ()
17681{
17682return des_cbc_encrypt ();
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687if ac_fn_c_try_link "$LINENO"; then :
17688 ac_cv_lib_des_des_cbc_encrypt=yes
17689else
17690 ac_cv_lib_des_des_cbc_encrypt=no
17691fi
17692rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694LIBS=$ac_check_lib_save_LIBS
17695fi
17696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17697$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17698if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
17699 K5LIBS="$K5LIBS -ldes"
17700fi
17701
17702
17703else
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17705$as_echo "no" >&6; }
17706 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
17707
17708fi
17709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
17711$as_echo_n "checking for library containing dn_expand... " >&6; }
17712if ${ac_cv_search_dn_expand+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714else
17715 ac_func_search_save_LIBS=$LIBS
17716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717/* end confdefs.h. */
17718
17719/* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17722#ifdef __cplusplus
17723extern "C"
17724#endif
17725char dn_expand ();
17726int
17727main ()
17728{
17729return dn_expand ();
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734for ac_lib in '' resolv; do
17735 if test -z "$ac_lib"; then
17736 ac_res="none required"
17737 else
17738 ac_res=-l$ac_lib
17739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17740 fi
17741 if ac_fn_c_try_link "$LINENO"; then :
17742 ac_cv_search_dn_expand=$ac_res
17743fi
17744rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext
17746 if ${ac_cv_search_dn_expand+:} false; then :
17747 break
17748fi
17749done
17750if ${ac_cv_search_dn_expand+:} false; then :
17751
17752else
17753 ac_cv_search_dn_expand=no
17754fi
17755rm conftest.$ac_ext
17756LIBS=$ac_func_search_save_LIBS
17757fi
17758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
17759$as_echo "$ac_cv_search_dn_expand" >&6; }
17760ac_res=$ac_cv_search_dn_expand
17761if test "$ac_res" != no; then :
17762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17763
17764fi
17765
17766
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
17768$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
17769if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
17770 $as_echo_n "(cached) " >&6
17771else
17772 ac_check_lib_save_LIBS=$LIBS
17773LIBS="-lgssapi_krb5 $LIBS"
17774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h. */
17776
17777/* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780#ifdef __cplusplus
17781extern "C"
17782#endif
17783char gss_init_sec_context ();
17784int
17785main ()
17786{
17787return gss_init_sec_context ();
17788 ;
17789 return 0;
17790}
17791_ACEOF
17792if ac_fn_c_try_link "$LINENO"; then :
17793 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
17794else
17795 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
17796fi
17797rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799LIBS=$ac_check_lib_save_LIBS
17800fi
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
17802$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
17803if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
17804 $as_echo "#define GSSAPI 1" >>confdefs.h
17805
17806 GSSLIBS="-lgssapi_krb5"
17807else
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
17809$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
17810if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812else
17813 ac_check_lib_save_LIBS=$LIBS
17814LIBS="-lgssapi $LIBS"
17815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816/* end confdefs.h. */
17817
17818/* Override any GCC internal prototype to avoid an error.
17819 Use char because int might match the return type of a GCC
17820 builtin and then its argument prototype would still apply. */
17821#ifdef __cplusplus
17822extern "C"
17823#endif
17824char gss_init_sec_context ();
17825int
17826main ()
17827{
17828return gss_init_sec_context ();
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833if ac_fn_c_try_link "$LINENO"; then :
17834 ac_cv_lib_gssapi_gss_init_sec_context=yes
17835else
17836 ac_cv_lib_gssapi_gss_init_sec_context=no
17837fi
17838rm -f core conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17840LIBS=$ac_check_lib_save_LIBS
17841fi
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
17843$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
17844if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
17845 $as_echo "#define GSSAPI 1" >>confdefs.h
17846
17847 GSSLIBS="-lgssapi"
17848else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5
17850$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; }
17851if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then :
17852 $as_echo_n "(cached) " >&6
17853else
17854 ac_check_lib_save_LIBS=$LIBS
17855LIBS="-lgss $LIBS"
17856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857/* end confdefs.h. */
17858
17859/* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862#ifdef __cplusplus
17863extern "C"
17864#endif
17865char gss_init_sec_context ();
17866int
17867main ()
17868{
17869return gss_init_sec_context ();
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_gss_gss_init_sec_context=yes
17876else
17877 ac_cv_lib_gss_gss_init_sec_context=no
17878fi
17879rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881LIBS=$ac_check_lib_save_LIBS
17882fi
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
17884$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; }
17885if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then :
17886 $as_echo "#define GSSAPI 1" >>confdefs.h
17887
17888 GSSLIBS="-lgss"
17889else
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
17891$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
17892fi
17893
17894
17895fi
17896
17897
17898fi
17899
17900
17901 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17902if test "x$ac_cv_header_gssapi_h" = xyes; then :
17903
17904else
17905 unset ac_cv_header_gssapi_h
17906 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17907 for ac_header in gssapi.h
17908do :
17909 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
17910if test "x$ac_cv_header_gssapi_h" = xyes; then :
17911 cat >>confdefs.h <<_ACEOF
17912#define HAVE_GSSAPI_H 1
17913_ACEOF
17914
17915else
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
17917$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
17918
17919fi
17920
17921done
17922
17923
17924
17925fi
17926
17927
17928
17929 oldCPP="$CPPFLAGS"
17930 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
17931 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
17932if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
17933
17934else
17935 CPPFLAGS="$oldCPP"
17936fi
17937
17938
17939
17940 fi
17941 if test ! -z "$need_dash_r" ; then
17942 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
17943 fi
17944 if test ! -z "$blibpath" ; then
17945 blibpath="$blibpath:${KRB5ROOT}/lib"
17946 fi
17947
17948 for ac_header in gssapi.h gssapi/gssapi.h
17949do :
17950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17953 cat >>confdefs.h <<_ACEOF
17954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17955_ACEOF
17956
17957fi
17958
17959done
17960
17961 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17962do :
17963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17966 cat >>confdefs.h <<_ACEOF
17967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17968_ACEOF
17969
17970fi
17971
17972done
17973
17974 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17975do :
17976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17978if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17979 cat >>confdefs.h <<_ACEOF
17980#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17981_ACEOF
17982
17983fi
17984
17985done
17986
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
17989$as_echo_n "checking for library containing k_hasafs... " >&6; }
17990if ${ac_cv_search_k_hasafs+:} false; then :
17991 $as_echo_n "(cached) " >&6
17992else
17993 ac_func_search_save_LIBS=$LIBS
17994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995/* end confdefs.h. */
17996
17997/* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18000#ifdef __cplusplus
18001extern "C"
18002#endif
18003char k_hasafs ();
18004int
18005main ()
18006{
18007return k_hasafs ();
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012for ac_lib in '' kafs; do
18013 if test -z "$ac_lib"; then
18014 ac_res="none required"
18015 else
18016 ac_res=-l$ac_lib
18017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18018 fi
18019 if ac_fn_c_try_link "$LINENO"; then :
18020 ac_cv_search_k_hasafs=$ac_res
18021fi
18022rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext
18024 if ${ac_cv_search_k_hasafs+:} false; then :
18025 break
18026fi
18027done
18028if ${ac_cv_search_k_hasafs+:} false; then :
18029
18030else
18031 ac_cv_search_k_hasafs=no
18032fi
18033rm conftest.$ac_ext
18034LIBS=$ac_func_search_save_LIBS
18035fi
18036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
18037$as_echo "$ac_cv_search_k_hasafs" >&6; }
18038ac_res=$ac_cv_search_k_hasafs
18039if test "$ac_res" != no; then :
18040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18041
18042$as_echo "#define USE_AFS 1" >>confdefs.h
18043
18044fi
18045
18046
18047 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" "
18048#ifdef HAVE_GSSAPI_H
18049# include <gssapi.h>
18050#elif defined(HAVE_GSSAPI_GSSAPI_H)
18051# include <gssapi/gssapi.h>
18052#endif
18053
18054#ifdef HAVE_GSSAPI_GENERIC_H
18055# include <gssapi_generic.h>
18056#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
18057# include <gssapi/gssapi_generic.h>
18058#endif
18059
18060"
18061if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
18062 ac_have_decl=1
18063else
18064 ac_have_decl=0
18065fi
18066
18067cat >>confdefs.h <<_ACEOF
18068#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
18069_ACEOF
18070
18071 saved_LIBS="$LIBS"
18072 LIBS="$LIBS $K5LIBS"
18073 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
18074do :
18075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18078 cat >>confdefs.h <<_ACEOF
18079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18080_ACEOF
18081
18082fi
18083done
18084
18085 LIBS="$saved_LIBS"
18086
18087 fi
18088
18089
18090fi
18091
18092
18093
18094
18095# Looking for programs, paths and files
18096
18097PRIVSEP_PATH=/var/empty
18098
18099# Check whether --with-privsep-path was given.
18100if test "${with_privsep_path+set}" = set; then :
18101 withval=$with_privsep_path;
18102 if test -n "$withval" && test "x$withval" != "xno" && \
18103 test "x${withval}" != "xyes"; then
18104 PRIVSEP_PATH=$withval
18105 fi
18106
18107
18108fi
18109
18110
18111
18112
18113# Check whether --with-xauth was given.
18114if test "${with_xauth+set}" = set; then :
18115 withval=$with_xauth;
18116 if test -n "$withval" && test "x$withval" != "xno" && \
18117 test "x${withval}" != "xyes"; then
18118 xauth_path=$withval
18119 fi
18120
18121else
18122
18123 TestPath="$PATH"
18124 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
18125 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
18126 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
18127 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
18128 # Extract the first word of "xauth", so it can be a program name with args.
18129set dummy xauth; ac_word=$2
18130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18131$as_echo_n "checking for $ac_word... " >&6; }
18132if ${ac_cv_path_xauth_path+:} false; then :
18133 $as_echo_n "(cached) " >&6
18134else
18135 case $xauth_path in
18136 [\\/]* | ?:[\\/]*)
18137 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
18138 ;;
18139 *)
18140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18141for as_dir in $TestPath
18142do
18143 IFS=$as_save_IFS
18144 test -z "$as_dir" && as_dir=.
18145 for ac_exec_ext in '' $ac_executable_extensions; do
18146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18147 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
18148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18149 break 2
18150 fi
18151done
18152 done
18153IFS=$as_save_IFS
18154
18155 ;;
18156esac
18157fi
18158xauth_path=$ac_cv_path_xauth_path
18159if test -n "$xauth_path"; then
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
18161$as_echo "$xauth_path" >&6; }
18162else
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164$as_echo "no" >&6; }
18165fi
18166
18167
18168 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
18169 xauth_path="/usr/openwin/bin/xauth"
18170 fi
18171
18172
18173fi
18174
18175
18176STRIP_OPT=-s
18177# Check whether --enable-strip was given.
18178if test "${enable_strip+set}" = set; then :
18179 enableval=$enable_strip;
18180 if test "x$enableval" = "xno" ; then
18181 STRIP_OPT=
18182 fi
18183
18184
18185fi
18186
18187
18188
18189if test -z "$xauth_path" ; then
18190 XAUTH_PATH="undefined"
18191
18192else
18193
18194cat >>confdefs.h <<_ACEOF
18195#define XAUTH_PATH "$xauth_path"
18196_ACEOF
18197
18198 XAUTH_PATH=$xauth_path
18199
18200fi
18201
18202# Check for mail directory
18203
18204# Check whether --with-maildir was given.
18205if test "${with_maildir+set}" = set; then :
18206 withval=$with_maildir;
18207 if test "X$withval" != X && test "x$withval" != xno && \
18208 test "x${withval}" != xyes; then
18209
18210cat >>confdefs.h <<_ACEOF
18211#define MAIL_DIRECTORY "$withval"
18212_ACEOF
18213
18214 fi
18215
18216else
18217
18218 if test "X$maildir" != "X"; then
18219 cat >>confdefs.h <<_ACEOF
18220#define MAIL_DIRECTORY "$maildir"
18221_ACEOF
18222
18223 else
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
18225$as_echo_n "checking Discovering system mail directory... " >&6; }
18226 if test "$cross_compiling" = yes; then :
18227
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
18229$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
18230
18231
18232else
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234/* end confdefs.h. */
18235
18236#include <stdio.h>
18237#include <string.h>
18238#ifdef HAVE_PATHS_H
18239#include <paths.h>
18240#endif
18241#ifdef HAVE_MAILLOCK_H
18242#include <maillock.h>
18243#endif
18244#define DATA "conftest.maildir"
18245
18246int
18247main ()
18248{
18249
18250 FILE *fd;
18251 int rc;
18252
18253 fd = fopen(DATA,"w");
18254 if(fd == NULL)
18255 exit(1);
18256
18257#if defined (_PATH_MAILDIR)
18258 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
18259 exit(1);
18260#elif defined (MAILDIR)
18261 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
18262 exit(1);
18263#elif defined (_PATH_MAIL)
18264 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
18265 exit(1);
18266#else
18267 exit (2);
18268#endif
18269
18270 exit(0);
18271
18272 ;
18273 return 0;
18274}
18275_ACEOF
18276if ac_fn_c_try_run "$LINENO"; then :
18277
18278 maildir_what=`awk -F: '{print $1}' conftest.maildir`
18279 maildir=`awk -F: '{print $2}' conftest.maildir \
18280 | sed 's|/$||'`
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
18282$as_echo "Using: $maildir from $maildir_what" >&6; }
18283 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
18284 cat >>confdefs.h <<_ACEOF
18285#define MAIL_DIRECTORY "$maildir"
18286_ACEOF
18287
18288 fi
18289
18290else
18291
18292 if test "X$ac_status" = "X2";then
18293# our test program didn't find it. Default to /var/spool/mail
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
18295$as_echo "Using: default value of /var/spool/mail" >&6; }
18296 cat >>confdefs.h <<_ACEOF
18297#define MAIL_DIRECTORY "/var/spool/mail"
18298_ACEOF
18299
18300 else
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
18302$as_echo "*** not found ***" >&6; }
18303 fi
18304
18305fi
18306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18307 conftest.$ac_objext conftest.beam conftest.$ac_ext
18308fi
18309
18310 fi
18311
18312
18313fi
18314 # maildir
18315
18316if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
18318$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
18319 disable_ptmx_check=yes
18320fi
18321if test -z "$no_dev_ptmx" ; then
18322 if test "x$disable_ptmx_check" != "xyes" ; then
18323 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
18324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
18325$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
18326if eval \${$as_ac_File+:} false; then :
18327 $as_echo_n "(cached) " >&6
18328else
18329 test "$cross_compiling" = yes &&
18330 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18331if test -r ""/dev/ptmx""; then
18332 eval "$as_ac_File=yes"
18333else
18334 eval "$as_ac_File=no"
18335fi
18336fi
18337eval ac_res=\$$as_ac_File
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18339$as_echo "$ac_res" >&6; }
18340if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18341
18342
18343cat >>confdefs.h <<_ACEOF
18344#define HAVE_DEV_PTMX 1
18345_ACEOF
18346
18347 have_dev_ptmx=1
18348
18349
18350fi
18351
18352 fi
18353fi
18354
18355if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
18356 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
18357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
18358$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
18359if eval \${$as_ac_File+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361else
18362 test "$cross_compiling" = yes &&
18363 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18364if test -r ""/dev/ptc""; then
18365 eval "$as_ac_File=yes"
18366else
18367 eval "$as_ac_File=no"
18368fi
18369fi
18370eval ac_res=\$$as_ac_File
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18372$as_echo "$ac_res" >&6; }
18373if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18374
18375
18376cat >>confdefs.h <<_ACEOF
18377#define HAVE_DEV_PTS_AND_PTC 1
18378_ACEOF
18379
18380 have_dev_ptc=1
18381
18382
18383fi
18384
18385else
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
18387$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
18388fi
18389
18390# Options from here on. Some of these are preset by platform above
18391
18392# Check whether --with-mantype was given.
18393if test "${with_mantype+set}" = set; then :
18394 withval=$with_mantype;
18395 case "$withval" in
18396 man|cat|doc)
18397 MANTYPE=$withval
18398 ;;
18399 *)
18400 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
18401 ;;
18402 esac
18403
18404
18405fi
18406
18407if test -z "$MANTYPE"; then
18408 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
18409 for ac_prog in nroff awf
18410do
18411 # Extract the first word of "$ac_prog", so it can be a program name with args.
18412set dummy $ac_prog; ac_word=$2
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18414$as_echo_n "checking for $ac_word... " >&6; }
18415if ${ac_cv_path_NROFF+:} false; then :
18416 $as_echo_n "(cached) " >&6
18417else
18418 case $NROFF in
18419 [\\/]* | ?:[\\/]*)
18420 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
18421 ;;
18422 *)
18423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18424for as_dir in $TestPath
18425do
18426 IFS=$as_save_IFS
18427 test -z "$as_dir" && as_dir=.
18428 for ac_exec_ext in '' $ac_executable_extensions; do
18429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18430 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
18431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18432 break 2
18433 fi
18434done
18435 done
18436IFS=$as_save_IFS
18437
18438 ;;
18439esac
18440fi
18441NROFF=$ac_cv_path_NROFF
18442if test -n "$NROFF"; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
18444$as_echo "$NROFF" >&6; }
18445else
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18447$as_echo "no" >&6; }
18448fi
18449
18450
18451 test -n "$NROFF" && break
18452done
18453test -n "$NROFF" || NROFF="/bin/false"
18454
18455 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
18456 MANTYPE=doc
18457 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
18458 MANTYPE=man
18459 else
18460 MANTYPE=cat
18461 fi
18462fi
18463
18464if test "$MANTYPE" = "doc"; then
18465 mansubdir=man;
18466else
18467 mansubdir=$MANTYPE;
18468fi
18469
18470
18471# Check whether to enable MD5 passwords
18472MD5_MSG="no"
18473
18474# Check whether --with-md5-passwords was given.
18475if test "${with_md5_passwords+set}" = set; then :
18476 withval=$with_md5_passwords;
18477 if test "x$withval" != "xno" ; then
18478
18479$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
18480
18481 MD5_MSG="yes"
18482 fi
18483
18484
18485fi
18486
18487
18488# Whether to disable shadow password support
18489
18490# Check whether --with-shadow was given.
18491if test "${with_shadow+set}" = set; then :
18492 withval=$with_shadow;
18493 if test "x$withval" = "xno" ; then
18494 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
18495
18496 disable_shadow=yes
18497 fi
18498
18499
18500fi
18501
18502
18503if test -z "$disable_shadow" ; then
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
18505$as_echo_n "checking if the systems has expire shadow information... " >&6; }
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507/* end confdefs.h. */
18508
18509#include <sys/types.h>
18510#include <shadow.h>
18511struct spwd sp;
18512
18513int
18514main ()
18515{
18516 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521if ac_fn_c_try_compile "$LINENO"; then :
18522 sp_expire_available=yes
18523fi
18524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525
18526 if test "x$sp_expire_available" = "xyes" ; then
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528$as_echo "yes" >&6; }
18529
18530$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
18531
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18534$as_echo "no" >&6; }
18535 fi
18536fi
18537
18538# Use ip address instead of hostname in $DISPLAY
18539if test ! -z "$IPADDR_IN_DISPLAY" ; then
18540 DISPLAY_HACK_MSG="yes"
18541
18542$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18543
18544else
18545 DISPLAY_HACK_MSG="no"
18546
18547# Check whether --with-ipaddr-display was given.
18548if test "${with_ipaddr_display+set}" = set; then :
18549 withval=$with_ipaddr_display;
18550 if test "x$withval" != "xno" ; then
18551 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
18552
18553 DISPLAY_HACK_MSG="yes"
18554 fi
18555
18556
18557fi
18558
18559fi
18560
18561# check for /etc/default/login and use it if present.
18562# Check whether --enable-etc-default-login was given.
18563if test "${enable_etc_default_login+set}" = set; then :
18564 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
18566$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
18567 etc_default_login=no
18568 else
18569 etc_default_login=yes
18570 fi
18571else
18572 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
18573 then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
18575$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
18576 etc_default_login=no
18577 else
18578 etc_default_login=yes
18579 fi
18580
18581fi
18582
18583
18584if test "x$etc_default_login" != "xno"; then
18585 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
18587$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
18588if eval \${$as_ac_File+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590else
18591 test "$cross_compiling" = yes &&
18592 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18593if test -r ""/etc/default/login""; then
18594 eval "$as_ac_File=yes"
18595else
18596 eval "$as_ac_File=no"
18597fi
18598fi
18599eval ac_res=\$$as_ac_File
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18601$as_echo "$ac_res" >&6; }
18602if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18603 external_path_file=/etc/default/login
18604fi
18605
18606 if test "x$external_path_file" = "x/etc/default/login"; then
18607
18608$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
18609
18610 fi
18611fi
18612
18613if test $ac_cv_func_login_getcapbool = "yes" && \
18614 test $ac_cv_header_login_cap_h = "yes" ; then
18615 external_path_file=/etc/login.conf
18616fi
18617
18618# Whether to mess with the default path
18619SERVER_PATH_MSG="(default)"
18620
18621# Check whether --with-default-path was given.
18622if test "${with_default_path+set}" = set; then :
18623 withval=$with_default_path;
18624 if test "x$external_path_file" = "x/etc/login.conf" ; then
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18626--with-default-path=PATH has no effect on this system.
18627Edit /etc/login.conf instead." >&5
18628$as_echo "$as_me: WARNING:
18629--with-default-path=PATH has no effect on this system.
18630Edit /etc/login.conf instead." >&2;}
18631 elif test "x$withval" != "xno" ; then
18632 if test ! -z "$external_path_file" ; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18634--with-default-path=PATH will only be used if PATH is not defined in
18635$external_path_file ." >&5
18636$as_echo "$as_me: WARNING:
18637--with-default-path=PATH will only be used if PATH is not defined in
18638$external_path_file ." >&2;}
18639 fi
18640 user_path="$withval"
18641 SERVER_PATH_MSG="$withval"
18642 fi
18643
18644else
18645 if test "x$external_path_file" = "x/etc/login.conf" ; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
18647$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
18648 else
18649 if test ! -z "$external_path_file" ; then
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18651If PATH is defined in $external_path_file, ensure the path to scp is included,
18652otherwise scp will not work." >&5
18653$as_echo "$as_me: WARNING:
18654If PATH is defined in $external_path_file, ensure the path to scp is included,
18655otherwise scp will not work." >&2;}
18656 fi
18657 if test "$cross_compiling" = yes; then :
18658 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
18659
18660else
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h. */
18663
18664/* find out what STDPATH is */
18665#include <stdio.h>
18666#ifdef HAVE_PATHS_H
18667# include <paths.h>
18668#endif
18669#ifndef _PATH_STDPATH
18670# ifdef _PATH_USERPATH /* Irix */
18671# define _PATH_STDPATH _PATH_USERPATH
18672# else
18673# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
18674# endif
18675#endif
18676#include <sys/types.h>
18677#include <sys/stat.h>
18678#include <fcntl.h>
18679#define DATA "conftest.stdpath"
18680
18681int
18682main ()
18683{
18684
18685 FILE *fd;
18686 int rc;
18687
18688 fd = fopen(DATA,"w");
18689 if(fd == NULL)
18690 exit(1);
18691
18692 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
18693 exit(1);
18694
18695 exit(0);
18696
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701if ac_fn_c_try_run "$LINENO"; then :
18702 user_path=`cat conftest.stdpath`
18703else
18704 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
18705fi
18706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18707 conftest.$ac_objext conftest.beam conftest.$ac_ext
18708fi
18709
18710# make sure $bindir is in USER_PATH so scp will work
18711 t_bindir="${bindir}"
18712 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
18713 t_bindir=`eval echo ${t_bindir}`
18714 case $t_bindir in
18715 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
18716 esac
18717 case $t_bindir in
18718 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
18719 esac
18720 done
18721 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
18722 if test $? -ne 0 ; then
18723 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
18724 if test $? -ne 0 ; then
18725 user_path=$user_path:$t_bindir
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
18727$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
18728 fi
18729 fi
18730 fi
18731
18732fi
18733
18734if test "x$external_path_file" != "x/etc/login.conf" ; then
18735
18736cat >>confdefs.h <<_ACEOF
18737#define USER_PATH "$user_path"
18738_ACEOF
18739
18740
18741fi
18742
18743# Set superuser path separately to user path
18744
18745# Check whether --with-superuser-path was given.
18746if test "${with_superuser_path+set}" = set; then :
18747 withval=$with_superuser_path;
18748 if test -n "$withval" && test "x$withval" != "xno" && \
18749 test "x${withval}" != "xyes"; then
18750
18751cat >>confdefs.h <<_ACEOF
18752#define SUPERUSER_PATH "$withval"
18753_ACEOF
18754
18755 superuser_path=$withval
18756 fi
18757
18758
18759fi
18760
18761
18762
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
18764$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
18765IPV4_IN6_HACK_MSG="no"
18766
18767# Check whether --with-4in6 was given.
18768if test "${with_4in6+set}" = set; then :
18769 withval=$with_4in6;
18770 if test "x$withval" != "xno" ; then
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18772$as_echo "yes" >&6; }
18773
18774$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
18775
18776 IPV4_IN6_HACK_MSG="yes"
18777 else
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779$as_echo "no" >&6; }
18780 fi
18781
18782else
18783
18784 if test "x$inet6_default_4in6" = "xyes"; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18786$as_echo "yes (default)" >&6; }
18787 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
18788
18789 IPV4_IN6_HACK_MSG="yes"
18790 else
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
18792$as_echo "no (default)" >&6; }
18793 fi
18794
18795
18796fi
18797
18798
18799# Whether to enable BSD auth support
18800BSD_AUTH_MSG=no
18801
18802# Check whether --with-bsd-auth was given.
18803if test "${with_bsd_auth+set}" = set; then :
18804 withval=$with_bsd_auth;
18805 if test "x$withval" != "xno" ; then
18806
18807$as_echo "#define BSD_AUTH 1" >>confdefs.h
18808
18809 BSD_AUTH_MSG=yes
18810 fi
18811
18812
18813fi
18814
18815
18816# Where to place sshd.pid
18817piddir=/var/run
18818# make sure the directory exists
18819if test ! -d $piddir ; then
18820 piddir=`eval echo ${sysconfdir}`
18821 case $piddir in
18822 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
18823 esac
18824fi
18825
18826
18827# Check whether --with-pid-dir was given.
18828if test "${with_pid_dir+set}" = set; then :
18829 withval=$with_pid_dir;
18830 if test -n "$withval" && test "x$withval" != "xno" && \
18831 test "x${withval}" != "xyes"; then
18832 piddir=$withval
18833 if test ! -d $piddir ; then
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
18835$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
18836 fi
18837 fi
18838
18839
18840fi
18841
18842
18843
18844cat >>confdefs.h <<_ACEOF
18845#define _PATH_SSH_PIDDIR "$piddir"
18846_ACEOF
18847
18848
18849
18850# Check whether --enable-lastlog was given.
18851if test "${enable_lastlog+set}" = set; then :
18852 enableval=$enable_lastlog;
18853 if test "x$enableval" = "xno" ; then
18854 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18855
18856 fi
18857
18858
18859fi
18860
18861# Check whether --enable-utmp was given.
18862if test "${enable_utmp+set}" = set; then :
18863 enableval=$enable_utmp;
18864 if test "x$enableval" = "xno" ; then
18865 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
18866
18867 fi
18868
18869
18870fi
18871
18872# Check whether --enable-utmpx was given.
18873if test "${enable_utmpx+set}" = set; then :
18874 enableval=$enable_utmpx;
18875 if test "x$enableval" = "xno" ; then
18876
18877$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
18878
18879 fi
18880
18881
18882fi
18883
18884# Check whether --enable-wtmp was given.
18885if test "${enable_wtmp+set}" = set; then :
18886 enableval=$enable_wtmp;
18887 if test "x$enableval" = "xno" ; then
18888 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
18889
18890 fi
18891
18892
18893fi
18894
18895# Check whether --enable-wtmpx was given.
18896if test "${enable_wtmpx+set}" = set; then :
18897 enableval=$enable_wtmpx;
18898 if test "x$enableval" = "xno" ; then
18899
18900$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
18901
18902 fi
18903
18904
18905fi
18906
18907# Check whether --enable-libutil was given.
18908if test "${enable_libutil+set}" = set; then :
18909 enableval=$enable_libutil;
18910 if test "x$enableval" = "xno" ; then
18911 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
18912
18913 fi
18914
18915
18916fi
18917
18918# Check whether --enable-pututline was given.
18919if test "${enable_pututline+set}" = set; then :
18920 enableval=$enable_pututline;
18921 if test "x$enableval" = "xno" ; then
18922
18923$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
18924
18925 fi
18926
18927
18928fi
18929
18930# Check whether --enable-pututxline was given.
18931if test "${enable_pututxline+set}" = set; then :
18932 enableval=$enable_pututxline;
18933 if test "x$enableval" = "xno" ; then
18934
18935$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
18936
18937 fi
18938
18939
18940fi
18941
18942
18943# Check whether --with-lastlog was given.
18944if test "${with_lastlog+set}" = set; then :
18945 withval=$with_lastlog;
18946 if test "x$withval" = "xno" ; then
18947 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
18948
18949 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18950 conf_lastlog_location=$withval
18951 fi
18952
18953
18954fi
18955
18956
18957
18958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
18959$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
18960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961/* end confdefs.h. */
18962
18963#include <sys/types.h>
18964#include <utmp.h>
18965#ifdef HAVE_LASTLOG_H
18966# include <lastlog.h>
18967#endif
18968#ifdef HAVE_PATHS_H
18969# include <paths.h>
18970#endif
18971#ifdef HAVE_LOGIN_H
18972# include <login.h>
18973#endif
18974
18975int
18976main ()
18977{
18978 char *lastlog = LASTLOG_FILE;
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983if ac_fn_c_try_compile "$LINENO"; then :
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18985$as_echo "yes" >&6; }
18986else
18987
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18989$as_echo "no" >&6; }
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
18991$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993/* end confdefs.h. */
18994
18995#include <sys/types.h>
18996#include <utmp.h>
18997#ifdef HAVE_LASTLOG_H
18998# include <lastlog.h>
18999#endif
19000#ifdef HAVE_PATHS_H
19001# include <paths.h>
19002#endif
19003
19004int
19005main ()
19006{
19007 char *lastlog = _PATH_LASTLOG;
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012if ac_fn_c_try_compile "$LINENO"; then :
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014$as_echo "yes" >&6; }
19015else
19016
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19018$as_echo "no" >&6; }
19019 system_lastlog_path=no
19020
19021fi
19022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023
19024fi
19025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19026
19027if test -z "$conf_lastlog_location"; then
19028 if test x"$system_lastlog_path" = x"no" ; then
19029 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
19030 if (test -d "$f" || test -f "$f") ; then
19031 conf_lastlog_location=$f
19032 fi
19033 done
19034 if test -z "$conf_lastlog_location"; then
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
19036$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
19037 fi
19038 fi
19039fi
19040
19041if test -n "$conf_lastlog_location"; then
19042
19043cat >>confdefs.h <<_ACEOF
19044#define CONF_LASTLOG_FILE "$conf_lastlog_location"
19045_ACEOF
19046
19047fi
19048
19049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
19050$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
19051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052/* end confdefs.h. */
19053
19054#include <sys/types.h>
19055#include <utmp.h>
19056#ifdef HAVE_PATHS_H
19057# include <paths.h>
19058#endif
19059
19060int
19061main ()
19062{
19063 char *utmp = UTMP_FILE;
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068if ac_fn_c_try_compile "$LINENO"; then :
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19070$as_echo "yes" >&6; }
19071else
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073$as_echo "no" >&6; }
19074 system_utmp_path=no
19075
19076fi
19077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19078if test -z "$conf_utmp_location"; then
19079 if test x"$system_utmp_path" = x"no" ; then
19080 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
19081 if test -f $f ; then
19082 conf_utmp_location=$f
19083 fi
19084 done
19085 if test -z "$conf_utmp_location"; then
19086 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19087
19088 fi
19089 fi
19090fi
19091if test -n "$conf_utmp_location"; then
19092
19093cat >>confdefs.h <<_ACEOF
19094#define CONF_UTMP_FILE "$conf_utmp_location"
19095_ACEOF
19096
19097fi
19098
19099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
19100$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
19101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h. */
19103
19104#include <sys/types.h>
19105#include <utmp.h>
19106#ifdef HAVE_PATHS_H
19107# include <paths.h>
19108#endif
19109
19110int
19111main ()
19112{
19113 char *wtmp = WTMP_FILE;
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118if ac_fn_c_try_compile "$LINENO"; then :
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19120$as_echo "yes" >&6; }
19121else
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19123$as_echo "no" >&6; }
19124 system_wtmp_path=no
19125
19126fi
19127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19128if test -z "$conf_wtmp_location"; then
19129 if test x"$system_wtmp_path" = x"no" ; then
19130 for f in /usr/adm/wtmp /var/log/wtmp; do
19131 if test -f $f ; then
19132 conf_wtmp_location=$f
19133 fi
19134 done
19135 if test -z "$conf_wtmp_location"; then
19136 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19137
19138 fi
19139 fi
19140fi
19141if test -n "$conf_wtmp_location"; then
19142
19143cat >>confdefs.h <<_ACEOF
19144#define CONF_WTMP_FILE "$conf_wtmp_location"
19145_ACEOF
19146
19147fi
19148
19149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
19150$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
19151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152/* end confdefs.h. */
19153
19154#include <sys/types.h>
19155#include <utmp.h>
19156#ifdef HAVE_UTMPX_H
19157#include <utmpx.h>
19158#endif
19159#ifdef HAVE_PATHS_H
19160# include <paths.h>
19161#endif
19162
19163int
19164main ()
19165{
19166 char *wtmpx = WTMPX_FILE;
19167 ;
19168 return 0;
19169}
19170_ACEOF
19171if ac_fn_c_try_compile "$LINENO"; then :
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19173$as_echo "yes" >&6; }
19174else
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176$as_echo "no" >&6; }
19177 system_wtmpx_path=no
19178
19179fi
19180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181if test -z "$conf_wtmpx_location"; then
19182 if test x"$system_wtmpx_path" = x"no" ; then
19183 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
19184
19185 fi
19186else
19187
19188cat >>confdefs.h <<_ACEOF
19189#define CONF_WTMPX_FILE "$conf_wtmpx_location"
19190_ACEOF
19191
19192fi
19193
19194
19195if test ! -z "$blibpath" ; then
19196 LDFLAGS="$LDFLAGS $blibflags$blibpath"
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
19198$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
19199fi
19200
19201ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" "
19202#ifdef HAVE_SYS_TYPES_H
19203#include <sys/types.h>
19204#endif
19205#ifdef HAVE_UTMP_H
19206#include <utmp.h>
19207#endif
19208#ifdef HAVE_UTMPX_H
19209#include <utmpx.h>
19210#endif
19211#ifdef HAVE_LASTLOG_H
19212#include <lastlog.h>
19213#endif
19214
19215"
19216if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
19217
19218else
19219
19220 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
19221 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
19222
19223 fi
19224
19225fi
19226
19227
19228ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" "
19229#ifdef HAVE_SYS_TYPES_H
19230#include <sys/types.h>
19231#endif
19232#ifdef HAVE_UTMP_H
19233#include <utmp.h>
19234#endif
19235#ifdef HAVE_UTMPX_H
19236#include <utmpx.h>
19237#endif
19238#ifdef HAVE_LASTLOG_H
19239#include <lastlog.h>
19240#endif
19241
19242"
19243if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
19244
19245else
19246
19247 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
19248
19249 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
19250
19251
19252fi
19253
19254
19255CFLAGS="$CFLAGS $werror_flags"
19256
19257if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
19258 TEST_SSH_IPV6=no
19259else
19260 TEST_SSH_IPV6=yes
19261fi
19262ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
19263if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
19264 TEST_SSH_IPV6=no
19265fi
19266
19267TEST_SSH_IPV6=$TEST_SSH_IPV6
19268
19269TEST_SSH_UTF8=$TEST_SSH_UTF8
19270
19271TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
19272
19273UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
19274
19275
19276CFLAGS="${CFLAGS} ${CFLAGS_AFTER}"
19277LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}"
19278
19279
19280ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
19281
19282cat >confcache <<\_ACEOF
19283# This file is a shell script that caches the results of configure
19284# tests run on this system so they can be shared between configure
19285# scripts and configure runs, see configure's option --config-cache.
19286# It is not useful on other systems. If it contains results you don't
19287# want to keep, you may remove or edit it.
19288#
19289# config.status only pays attention to the cache file if you give it
19290# the --recheck option to rerun configure.
19291#
19292# `ac_cv_env_foo' variables (set or unset) will be overridden when
19293# loading this file, other *unset* `ac_cv_foo' will be assigned the
19294# following values.
19295
19296_ACEOF
19297
19298# The following way of writing the cache mishandles newlines in values,
19299# but we know of no workaround that is simple, portable, and efficient.
19300# So, we kill variables containing newlines.
19301# Ultrix sh set writes to stderr and can't be redirected directly,
19302# and sets the high bit in the cache file unless we assign to the vars.
19303(
19304 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19305 eval ac_val=\$$ac_var
19306 case $ac_val in #(
19307 *${as_nl}*)
19308 case $ac_var in #(
19309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19310$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19311 esac
19312 case $ac_var in #(
19313 _ | IFS | as_nl) ;; #(
19314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19315 *) { eval $ac_var=; unset $ac_var;} ;;
19316 esac ;;
19317 esac
19318 done
19319
19320 (set) 2>&1 |
19321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19322 *${as_nl}ac_space=\ *)
19323 # `set' does not quote correctly, so add quotes: double-quote
19324 # substitution turns \\\\ into \\, and sed turns \\ into \.
19325 sed -n \
19326 "s/'/'\\\\''/g;
19327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19328 ;; #(
19329 *)
19330 # `set' quotes correctly as required by POSIX, so do not add quotes.
19331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19332 ;;
19333 esac |
19334 sort
19335) |
19336 sed '
19337 /^ac_cv_env_/b end
19338 t clear
19339 :clear
19340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19341 t end
19342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19343 :end' >>confcache
19344if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19345 if test -w "$cache_file"; then
19346 if test "x$cache_file" != "x/dev/null"; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19348$as_echo "$as_me: updating cache $cache_file" >&6;}
19349 if test ! -f "$cache_file" || test -h "$cache_file"; then
19350 cat confcache >"$cache_file"
19351 else
19352 case $cache_file in #(
19353 */* | ?:*)
19354 mv -f confcache "$cache_file"$$ &&
19355 mv -f "$cache_file"$$ "$cache_file" ;; #(
19356 *)
19357 mv -f confcache "$cache_file" ;;
19358 esac
19359 fi
19360 fi
19361 else
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19363$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19364 fi
19365fi
19366rm -f confcache
19367
19368test "x$prefix" = xNONE && prefix=$ac_default_prefix
19369# Let make expand exec_prefix.
19370test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19371
19372DEFS=-DHAVE_CONFIG_H
19373
19374ac_libobjs=
19375ac_ltlibobjs=
19376U=
19377for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19378 # 1. Remove the extension, and $U if already installed.
19379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19380 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19382 # will be set to the directory where LIBOBJS objects are built.
19383 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19384 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19385done
19386LIBOBJS=$ac_libobjs
19387
19388LTLIBOBJS=$ac_ltlibobjs
19389
19390
19391
19392
19393: "${CONFIG_STATUS=./config.status}"
19394ac_write_fail=0
19395ac_clean_files_save=$ac_clean_files
19396ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19398$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19399as_write_fail=0
19400cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19401#! $SHELL
19402# Generated by $as_me.
19403# Run this file to recreate the current configuration.
19404# Compiler output produced by configure, useful for debugging
19405# configure, is in config.log if it exists.
19406
19407debug=false
19408ac_cs_recheck=false
19409ac_cs_silent=false
19410
19411SHELL=\${CONFIG_SHELL-$SHELL}
19412export SHELL
19413_ASEOF
19414cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19415## -------------------- ##
19416## M4sh Initialization. ##
19417## -------------------- ##
19418
19419# Be more Bourne compatible
19420DUALCASE=1; export DUALCASE # for MKS sh
19421if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19422 emulate sh
19423 NULLCMD=:
19424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19425 # is contrary to our usage. Disable this feature.
19426 alias -g '${1+"$@"}'='"$@"'
19427 setopt NO_GLOB_SUBST
19428else
19429 case `(set -o) 2>/dev/null` in #(
19430 *posix*) :
19431 set -o posix ;; #(
19432 *) :
19433 ;;
19434esac
19435fi
19436
19437
19438as_nl='
19439'
19440export as_nl
19441# Printing a long string crashes Solaris 7 /usr/bin/printf.
19442as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19443as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19444as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19445# Prefer a ksh shell builtin over an external printf program on Solaris,
19446# but without wasting forks for bash or zsh.
19447if test -z "$BASH_VERSION$ZSH_VERSION" \
19448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19449 as_echo='print -r --'
19450 as_echo_n='print -rn --'
19451elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='printf %s\n'
19453 as_echo_n='printf %s'
19454else
19455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19456 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19457 as_echo_n='/usr/ucb/echo -n'
19458 else
19459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19460 as_echo_n_body='eval
19461 arg=$1;
19462 case $arg in #(
19463 *"$as_nl"*)
19464 expr "X$arg" : "X\\(.*\\)$as_nl";
19465 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19466 esac;
19467 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19468 '
19469 export as_echo_n_body
19470 as_echo_n='sh -c $as_echo_n_body as_echo'
19471 fi
19472 export as_echo_body
19473 as_echo='sh -c $as_echo_body as_echo'
19474fi
19475
19476# The user is always right.
19477if test "${PATH_SEPARATOR+set}" != set; then
19478 PATH_SEPARATOR=:
19479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19480 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19481 PATH_SEPARATOR=';'
19482 }
19483fi
19484
19485
19486# IFS
19487# We need space, tab and new line, in precisely that order. Quoting is
19488# there to prevent editors from complaining about space-tab.
19489# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19490# splitting by setting IFS to empty value.)
19491IFS=" "" $as_nl"
19492
19493# Find who we are. Look in the path if we contain no directory separator.
19494as_myself=
19495case $0 in #((
19496 *[\\/]* ) as_myself=$0 ;;
19497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19498for as_dir in $PATH
19499do
19500 IFS=$as_save_IFS
19501 test -z "$as_dir" && as_dir=.
19502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19503 done
19504IFS=$as_save_IFS
19505
19506 ;;
19507esac
19508# We did not find ourselves, most probably we were run as `sh COMMAND'
19509# in which case we are not to be found in the path.
19510if test "x$as_myself" = x; then
19511 as_myself=$0
19512fi
19513if test ! -f "$as_myself"; then
19514 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19515 exit 1
19516fi
19517
19518# Unset variables that we do not need and which cause bugs (e.g. in
19519# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19520# suppresses any "Segmentation fault" message there. '((' could
19521# trigger a bug in pdksh 5.2.14.
19522for as_var in BASH_ENV ENV MAIL MAILPATH
19523do eval test x\${$as_var+set} = xset \
19524 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19525done
19526PS1='$ '
19527PS2='> '
19528PS4='+ '
19529
19530# NLS nuisances.
19531LC_ALL=C
19532export LC_ALL
19533LANGUAGE=C
19534export LANGUAGE
19535
19536# CDPATH.
19537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19538
19539
19540# as_fn_error STATUS ERROR [LINENO LOG_FD]
19541# ----------------------------------------
19542# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19543# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19544# script with STATUS, using 1 if that was 0.
19545as_fn_error ()
19546{
19547 as_status=$1; test $as_status -eq 0 && as_status=1
19548 if test "$4"; then
19549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19550 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19551 fi
19552 $as_echo "$as_me: error: $2" >&2
19553 as_fn_exit $as_status
19554} # as_fn_error
19555
19556
19557# as_fn_set_status STATUS
19558# -----------------------
19559# Set $? to STATUS, without forking.
19560as_fn_set_status ()
19561{
19562 return $1
19563} # as_fn_set_status
19564
19565# as_fn_exit STATUS
19566# -----------------
19567# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19568as_fn_exit ()
19569{
19570 set +e
19571 as_fn_set_status $1
19572 exit $1
19573} # as_fn_exit
19574
19575# as_fn_unset VAR
19576# ---------------
19577# Portably unset VAR.
19578as_fn_unset ()
19579{
19580 { eval $1=; unset $1;}
19581}
19582as_unset=as_fn_unset
19583# as_fn_append VAR VALUE
19584# ----------------------
19585# Append the text in VALUE to the end of the definition contained in VAR. Take
19586# advantage of any shell optimizations that allow amortized linear growth over
19587# repeated appends, instead of the typical quadratic growth present in naive
19588# implementations.
19589if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19590 eval 'as_fn_append ()
19591 {
19592 eval $1+=\$2
19593 }'
19594else
19595 as_fn_append ()
19596 {
19597 eval $1=\$$1\$2
19598 }
19599fi # as_fn_append
19600
19601# as_fn_arith ARG...
19602# ------------------
19603# Perform arithmetic evaluation on the ARGs, and store the result in the
19604# global $as_val. Take advantage of shells that can avoid forks. The arguments
19605# must be portable across $(()) and expr.
19606if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19607 eval 'as_fn_arith ()
19608 {
19609 as_val=$(( $* ))
19610 }'
19611else
19612 as_fn_arith ()
19613 {
19614 as_val=`expr "$@" || test $? -eq 1`
19615 }
19616fi # as_fn_arith
19617
19618
19619if expr a : '\(a\)' >/dev/null 2>&1 &&
19620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19621 as_expr=expr
19622else
19623 as_expr=false
19624fi
19625
19626if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19627 as_basename=basename
19628else
19629 as_basename=false
19630fi
19631
19632if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19633 as_dirname=dirname
19634else
19635 as_dirname=false
19636fi
19637
19638as_me=`$as_basename -- "$0" ||
19639$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19640 X"$0" : 'X\(//\)$' \| \
19641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19642$as_echo X/"$0" |
19643 sed '/^.*\/\([^/][^/]*\)\/*$/{
19644 s//\1/
19645 q
19646 }
19647 /^X\/\(\/\/\)$/{
19648 s//\1/
19649 q
19650 }
19651 /^X\/\(\/\).*/{
19652 s//\1/
19653 q
19654 }
19655 s/.*/./; q'`
19656
19657# Avoid depending upon Character Ranges.
19658as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19659as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19660as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19661as_cr_digits='0123456789'
19662as_cr_alnum=$as_cr_Letters$as_cr_digits
19663
19664ECHO_C= ECHO_N= ECHO_T=
19665case `echo -n x` in #(((((
19666-n*)
19667 case `echo 'xy\c'` in
19668 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19669 xy) ECHO_C='\c';;
19670 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19671 ECHO_T=' ';;
19672 esac;;
19673*)
19674 ECHO_N='-n';;
19675esac
19676
19677rm -f conf$$ conf$$.exe conf$$.file
19678if test -d conf$$.dir; then
19679 rm -f conf$$.dir/conf$$.file
19680else
19681 rm -f conf$$.dir
19682 mkdir conf$$.dir 2>/dev/null
19683fi
19684if (echo >conf$$.file) 2>/dev/null; then
19685 if ln -s conf$$.file conf$$ 2>/dev/null; then
19686 as_ln_s='ln -s'
19687 # ... but there are two gotchas:
19688 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19689 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19690 # In both cases, we have to default to `cp -pR'.
19691 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19692 as_ln_s='cp -pR'
19693 elif ln conf$$.file conf$$ 2>/dev/null; then
19694 as_ln_s=ln
19695 else
19696 as_ln_s='cp -pR'
19697 fi
19698else
19699 as_ln_s='cp -pR'
19700fi
19701rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19702rmdir conf$$.dir 2>/dev/null
19703
19704
19705# as_fn_mkdir_p
19706# -------------
19707# Create "$as_dir" as a directory, including parents if necessary.
19708as_fn_mkdir_p ()
19709{
19710
19711 case $as_dir in #(
19712 -*) as_dir=./$as_dir;;
19713 esac
19714 test -d "$as_dir" || eval $as_mkdir_p || {
19715 as_dirs=
19716 while :; do
19717 case $as_dir in #(
19718 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19719 *) as_qdir=$as_dir;;
19720 esac
19721 as_dirs="'$as_qdir' $as_dirs"
19722 as_dir=`$as_dirname -- "$as_dir" ||
19723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19724 X"$as_dir" : 'X\(//\)[^/]' \| \
19725 X"$as_dir" : 'X\(//\)$' \| \
19726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19727$as_echo X"$as_dir" |
19728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19729 s//\1/
19730 q
19731 }
19732 /^X\(\/\/\)[^/].*/{
19733 s//\1/
19734 q
19735 }
19736 /^X\(\/\/\)$/{
19737 s//\1/
19738 q
19739 }
19740 /^X\(\/\).*/{
19741 s//\1/
19742 q
19743 }
19744 s/.*/./; q'`
19745 test -d "$as_dir" && break
19746 done
19747 test -z "$as_dirs" || eval "mkdir $as_dirs"
19748 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19749
19750
19751} # as_fn_mkdir_p
19752if mkdir -p . 2>/dev/null; then
19753 as_mkdir_p='mkdir -p "$as_dir"'
19754else
19755 test -d ./-p && rmdir ./-p
19756 as_mkdir_p=false
19757fi
19758
19759
19760# as_fn_executable_p FILE
19761# -----------------------
19762# Test if FILE is an executable regular file.
19763as_fn_executable_p ()
19764{
19765 test -f "$1" && test -x "$1"
19766} # as_fn_executable_p
19767as_test_x='test -x'
19768as_executable_p=as_fn_executable_p
19769
19770# Sed expression to map a string onto a valid CPP name.
19771as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19772
19773# Sed expression to map a string onto a valid variable name.
19774as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19775
19776
19777exec 6>&1
19778## ----------------------------------- ##
19779## Main body of $CONFIG_STATUS script. ##
19780## ----------------------------------- ##
19781_ASEOF
19782test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19783
19784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19785# Save the log message, to keep $0 and so on meaningful, and to
19786# report actual input values of CONFIG_FILES etc. instead of their
19787# values after options handling.
19788ac_log="
19789This file was extended by OpenSSH $as_me Portable, which was
19790generated by GNU Autoconf 2.69. Invocation command line was
19791
19792 CONFIG_FILES = $CONFIG_FILES
19793 CONFIG_HEADERS = $CONFIG_HEADERS
19794 CONFIG_LINKS = $CONFIG_LINKS
19795 CONFIG_COMMANDS = $CONFIG_COMMANDS
19796 $ $0 $@
19797
19798on `(hostname || uname -n) 2>/dev/null | sed 1q`
19799"
19800
19801_ACEOF
19802
19803case $ac_config_files in *"
19804"*) set x $ac_config_files; shift; ac_config_files=$*;;
19805esac
19806
19807case $ac_config_headers in *"
19808"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19809esac
19810
19811
19812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19813# Files that config.status was made for.
19814config_files="$ac_config_files"
19815config_headers="$ac_config_headers"
19816
19817_ACEOF
19818
19819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19820ac_cs_usage="\
19821\`$as_me' instantiates files and other configuration actions
19822from templates according to the current configuration. Unless the files
19823and actions are specified as TAGs, all are instantiated by default.
19824
19825Usage: $0 [OPTION]... [TAG]...
19826
19827 -h, --help print this help, then exit
19828 -V, --version print version number and configuration settings, then exit
19829 --config print configuration, then exit
19830 -q, --quiet, --silent
19831 do not print progress messages
19832 -d, --debug don't remove temporary files
19833 --recheck update $as_me by reconfiguring in the same conditions
19834 --file=FILE[:TEMPLATE]
19835 instantiate the configuration file FILE
19836 --header=FILE[:TEMPLATE]
19837 instantiate the configuration header FILE
19838
19839Configuration files:
19840$config_files
19841
19842Configuration headers:
19843$config_headers
19844
19845Report bugs to <openssh-unix-dev@mindrot.org>."
19846
19847_ACEOF
19848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19849ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19850ac_cs_version="\\
19851OpenSSH config.status Portable
19852configured by $0, generated by GNU Autoconf 2.69,
19853 with options \\"\$ac_cs_config\\"
19854
19855Copyright (C) 2012 Free Software Foundation, Inc.
19856This config.status script is free software; the Free Software Foundation
19857gives unlimited permission to copy, distribute and modify it."
19858
19859ac_pwd='$ac_pwd'
19860srcdir='$srcdir'
19861INSTALL='$INSTALL'
19862AWK='$AWK'
19863test -n "\$AWK" || AWK=awk
19864_ACEOF
19865
19866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19867# The default lists apply if the user does not specify any file.
19868ac_need_defaults=:
19869while test $# != 0
19870do
19871 case $1 in
19872 --*=?*)
19873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19874 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19875 ac_shift=:
19876 ;;
19877 --*=)
19878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19879 ac_optarg=
19880 ac_shift=:
19881 ;;
19882 *)
19883 ac_option=$1
19884 ac_optarg=$2
19885 ac_shift=shift
19886 ;;
19887 esac
19888
19889 case $ac_option in
19890 # Handling of the options.
19891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19892 ac_cs_recheck=: ;;
19893 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19894 $as_echo "$ac_cs_version"; exit ;;
19895 --config | --confi | --conf | --con | --co | --c )
19896 $as_echo "$ac_cs_config"; exit ;;
19897 --debug | --debu | --deb | --de | --d | -d )
19898 debug=: ;;
19899 --file | --fil | --fi | --f )
19900 $ac_shift
19901 case $ac_optarg in
19902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19903 '') as_fn_error $? "missing file argument" ;;
19904 esac
19905 as_fn_append CONFIG_FILES " '$ac_optarg'"
19906 ac_need_defaults=false;;
19907 --header | --heade | --head | --hea )
19908 $ac_shift
19909 case $ac_optarg in
19910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19911 esac
19912 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19913 ac_need_defaults=false;;
19914 --he | --h)
19915 # Conflict between --help and --header
19916 as_fn_error $? "ambiguous option: \`$1'
19917Try \`$0 --help' for more information.";;
19918 --help | --hel | -h )
19919 $as_echo "$ac_cs_usage"; exit ;;
19920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19922 ac_cs_silent=: ;;
19923
19924 # This is an error.
19925 -*) as_fn_error $? "unrecognized option: \`$1'
19926Try \`$0 --help' for more information." ;;
19927
19928 *) as_fn_append ac_config_targets " $1"
19929 ac_need_defaults=false ;;
19930
19931 esac
19932 shift
19933done
19934
19935ac_configure_extra_args=
19936
19937if $ac_cs_silent; then
19938 exec 6>/dev/null
19939 ac_configure_extra_args="$ac_configure_extra_args --silent"
19940fi
19941
19942_ACEOF
19943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19944if \$ac_cs_recheck; then
19945 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19946 shift
19947 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19948 CONFIG_SHELL='$SHELL'
19949 export CONFIG_SHELL
19950 exec "\$@"
19951fi
19952
19953_ACEOF
19954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19955exec 5>>config.log
19956{
19957 echo
19958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19959## Running $as_me. ##
19960_ASBOX
19961 $as_echo "$ac_log"
19962} >&5
19963
19964_ACEOF
19965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19966_ACEOF
19967
19968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19969
19970# Handling of arguments.
19971for ac_config_target in $ac_config_targets
19972do
19973 case $ac_config_target in
19974 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19975 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19976 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
19977 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
19978 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
19979 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
19980 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19981 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19982
19983 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19984 esac
19985done
19986
19987
19988# If the user did not use the arguments to specify the items to instantiate,
19989# then the envvar interface is used. Set only those that are not.
19990# We use the long form for the default assignment because of an extremely
19991# bizarre bug on SunOS 4.1.3.
19992if $ac_need_defaults; then
19993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19995fi
19996
19997# Have a temporary directory for convenience. Make it in the build tree
19998# simply because there is no reason against having it here, and in addition,
19999# creating and moving files from /tmp can sometimes cause problems.
20000# Hook for its removal unless debugging.
20001# Note that there is a small window in which the directory will not be cleaned:
20002# after its creation but before its name has been assigned to `$tmp'.
20003$debug ||
20004{
20005 tmp= ac_tmp=
20006 trap 'exit_status=$?
20007 : "${ac_tmp:=$tmp}"
20008 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20009' 0
20010 trap 'as_fn_exit 1' 1 2 13 15
20011}
20012# Create a (secure) tmp directory for tmp files.
20013
20014{
20015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20016 test -d "$tmp"
20017} ||
20018{
20019 tmp=./conf$$-$RANDOM
20020 (umask 077 && mkdir "$tmp")
20021} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20022ac_tmp=$tmp
20023
20024# Set up the scripts for CONFIG_FILES section.
20025# No need to generate them if there are no CONFIG_FILES.
20026# This happens for instance with `./config.status config.h'.
20027if test -n "$CONFIG_FILES"; then
20028
20029
20030ac_cr=`echo X | tr X '\015'`
20031# On cygwin, bash can eat \r inside `` if the user requested igncr.
20032# But we know of no other shell where ac_cr would be empty at this
20033# point, so we can use a bashism as a fallback.
20034if test "x$ac_cr" = x; then
20035 eval ac_cr=\$\'\\r\'
20036fi
20037ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20038if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20039 ac_cs_awk_cr='\\r'
20040else
20041 ac_cs_awk_cr=$ac_cr
20042fi
20043
20044echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20045_ACEOF
20046
20047
20048{
20049 echo "cat >conf$$subs.awk <<_ACEOF" &&
20050 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20051 echo "_ACEOF"
20052} >conf$$subs.sh ||
20053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20054ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20055ac_delim='%!_!# '
20056for ac_last_try in false false false false false :; do
20057 . ./conf$$subs.sh ||
20058 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20059
20060 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20061 if test $ac_delim_n = $ac_delim_num; then
20062 break
20063 elif $ac_last_try; then
20064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20065 else
20066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20067 fi
20068done
20069rm -f conf$$subs.sh
20070
20071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20072cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20073_ACEOF
20074sed -n '
20075h
20076s/^/S["/; s/!.*/"]=/
20077p
20078g
20079s/^[^!]*!//
20080:repl
20081t repl
20082s/'"$ac_delim"'$//
20083t delim
20084:nl
20085h
20086s/\(.\{148\}\)..*/\1/
20087t more1
20088s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20089p
20090n
20091b repl
20092:more1
20093s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20094p
20095g
20096s/.\{148\}//
20097t nl
20098:delim
20099h
20100s/\(.\{148\}\)..*/\1/
20101t more2
20102s/["\\]/\\&/g; s/^/"/; s/$/"/
20103p
20104b
20105:more2
20106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20107p
20108g
20109s/.\{148\}//
20110t delim
20111' <conf$$subs.awk | sed '
20112/^[^""]/{
20113 N
20114 s/\n//
20115}
20116' >>$CONFIG_STATUS || ac_write_fail=1
20117rm -f conf$$subs.awk
20118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20119_ACAWK
20120cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20121 for (key in S) S_is_set[key] = 1
20122 FS = ""
20123
20124}
20125{
20126 line = $ 0
20127 nfields = split(line, field, "@")
20128 substed = 0
20129 len = length(field[1])
20130 for (i = 2; i < nfields; i++) {
20131 key = field[i]
20132 keylen = length(key)
20133 if (S_is_set[key]) {
20134 value = S[key]
20135 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20136 len += length(value) + length(field[++i])
20137 substed = 1
20138 } else
20139 len += 1 + keylen
20140 }
20141
20142 print line
20143}
20144
20145_ACAWK
20146_ACEOF
20147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20148if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20149 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20150else
20151 cat
20152fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20153 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20154_ACEOF
20155
20156# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20157# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20158# trailing colons and then remove the whole line if VPATH becomes empty
20159# (actually we leave an empty line to preserve line numbers).
20160if test "x$srcdir" = x.; then
20161 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20162h
20163s///
20164s/^/:/
20165s/[ ]*$/:/
20166s/:\$(srcdir):/:/g
20167s/:\${srcdir}:/:/g
20168s/:@srcdir@:/:/g
20169s/^:*//
20170s/:*$//
20171x
20172s/\(=[ ]*\).*/\1/
20173G
20174s/\n//
20175s/^[^=]*=[ ]*$//
20176}'
20177fi
20178
20179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20180fi # test -n "$CONFIG_FILES"
20181
20182# Set up the scripts for CONFIG_HEADERS section.
20183# No need to generate them if there are no CONFIG_HEADERS.
20184# This happens for instance with `./config.status Makefile'.
20185if test -n "$CONFIG_HEADERS"; then
20186cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20187BEGIN {
20188_ACEOF
20189
20190# Transform confdefs.h into an awk script `defines.awk', embedded as
20191# here-document in config.status, that substitutes the proper values into
20192# config.h.in to produce config.h.
20193
20194# Create a delimiter string that does not exist in confdefs.h, to ease
20195# handling of long lines.
20196ac_delim='%!_!# '
20197for ac_last_try in false false :; do
20198 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20199 if test -z "$ac_tt"; then
20200 break
20201 elif $ac_last_try; then
20202 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20203 else
20204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20205 fi
20206done
20207
20208# For the awk script, D is an array of macro values keyed by name,
20209# likewise P contains macro parameters if any. Preserve backslash
20210# newline sequences.
20211
20212ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20213sed -n '
20214s/.\{148\}/&'"$ac_delim"'/g
20215t rset
20216:rset
20217s/^[ ]*#[ ]*define[ ][ ]*/ /
20218t def
20219d
20220:def
20221s/\\$//
20222t bsnl
20223s/["\\]/\\&/g
20224s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20225D["\1"]=" \3"/p
20226s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20227d
20228:bsnl
20229s/["\\]/\\&/g
20230s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20231D["\1"]=" \3\\\\\\n"\\/p
20232t cont
20233s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20234t cont
20235d
20236:cont
20237n
20238s/.\{148\}/&'"$ac_delim"'/g
20239t clear
20240:clear
20241s/\\$//
20242t bsnlc
20243s/["\\]/\\&/g; s/^/"/; s/$/"/p
20244d
20245:bsnlc
20246s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20247b cont
20248' <confdefs.h | sed '
20249s/'"$ac_delim"'/"\\\
20250"/g' >>$CONFIG_STATUS || ac_write_fail=1
20251
20252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20253 for (key in D) D_is_set[key] = 1
20254 FS = ""
20255}
20256/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20257 line = \$ 0
20258 split(line, arg, " ")
20259 if (arg[1] == "#") {
20260 defundef = arg[2]
20261 mac1 = arg[3]
20262 } else {
20263 defundef = substr(arg[1], 2)
20264 mac1 = arg[2]
20265 }
20266 split(mac1, mac2, "(") #)
20267 macro = mac2[1]
20268 prefix = substr(line, 1, index(line, defundef) - 1)
20269 if (D_is_set[macro]) {
20270 # Preserve the white space surrounding the "#".
20271 print prefix "define", macro P[macro] D[macro]
20272 next
20273 } else {
20274 # Replace #undef with comments. This is necessary, for example,
20275 # in the case of _POSIX_SOURCE, which is predefined and required
20276 # on some systems where configure will not decide to define it.
20277 if (defundef == "undef") {
20278 print "/*", prefix defundef, macro, "*/"
20279 next
20280 }
20281 }
20282}
20283{ print }
20284_ACAWK
20285_ACEOF
20286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20287 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20288fi # test -n "$CONFIG_HEADERS"
20289
20290
20291eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
20292shift
20293for ac_tag
20294do
20295 case $ac_tag in
20296 :[FHLC]) ac_mode=$ac_tag; continue;;
20297 esac
20298 case $ac_mode$ac_tag in
20299 :[FHL]*:*);;
20300 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20301 :[FH]-) ac_tag=-:-;;
20302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20303 esac
20304 ac_save_IFS=$IFS
20305 IFS=:
20306 set x $ac_tag
20307 IFS=$ac_save_IFS
20308 shift
20309 ac_file=$1
20310 shift
20311
20312 case $ac_mode in
20313 :L) ac_source=$1;;
20314 :[FH])
20315 ac_file_inputs=
20316 for ac_f
20317 do
20318 case $ac_f in
20319 -) ac_f="$ac_tmp/stdin";;
20320 *) # Look for the file first in the build tree, then in the source tree
20321 # (if the path is not absolute). The absolute path cannot be DOS-style,
20322 # because $ac_f cannot contain `:'.
20323 test -f "$ac_f" ||
20324 case $ac_f in
20325 [\\/$]*) false;;
20326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20327 esac ||
20328 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20329 esac
20330 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20331 as_fn_append ac_file_inputs " '$ac_f'"
20332 done
20333
20334 # Let's still pretend it is `configure' which instantiates (i.e., don't
20335 # use $as_me), people would be surprised to read:
20336 # /* config.h. Generated by config.status. */
20337 configure_input='Generated from '`
20338 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20339 `' by configure.'
20340 if test x"$ac_file" != x-; then
20341 configure_input="$ac_file. $configure_input"
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20343$as_echo "$as_me: creating $ac_file" >&6;}
20344 fi
20345 # Neutralize special characters interpreted by sed in replacement strings.
20346 case $configure_input in #(
20347 *\&* | *\|* | *\\* )
20348 ac_sed_conf_input=`$as_echo "$configure_input" |
20349 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20350 *) ac_sed_conf_input=$configure_input;;
20351 esac
20352
20353 case $ac_tag in
20354 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20356 esac
20357 ;;
20358 esac
20359
20360 ac_dir=`$as_dirname -- "$ac_file" ||
20361$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20362 X"$ac_file" : 'X\(//\)[^/]' \| \
20363 X"$ac_file" : 'X\(//\)$' \| \
20364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20365$as_echo X"$ac_file" |
20366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20367 s//\1/
20368 q
20369 }
20370 /^X\(\/\/\)[^/].*/{
20371 s//\1/
20372 q
20373 }
20374 /^X\(\/\/\)$/{
20375 s//\1/
20376 q
20377 }
20378 /^X\(\/\).*/{
20379 s//\1/
20380 q
20381 }
20382 s/.*/./; q'`
20383 as_dir="$ac_dir"; as_fn_mkdir_p
20384 ac_builddir=.
20385
20386case "$ac_dir" in
20387.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20388*)
20389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20390 # A ".." for each directory in $ac_dir_suffix.
20391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20392 case $ac_top_builddir_sub in
20393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20395 esac ;;
20396esac
20397ac_abs_top_builddir=$ac_pwd
20398ac_abs_builddir=$ac_pwd$ac_dir_suffix
20399# for backward compatibility:
20400ac_top_builddir=$ac_top_build_prefix
20401
20402case $srcdir in
20403 .) # We are building in place.
20404 ac_srcdir=.
20405 ac_top_srcdir=$ac_top_builddir_sub
20406 ac_abs_top_srcdir=$ac_pwd ;;
20407 [\\/]* | ?:[\\/]* ) # Absolute name.
20408 ac_srcdir=$srcdir$ac_dir_suffix;
20409 ac_top_srcdir=$srcdir
20410 ac_abs_top_srcdir=$srcdir ;;
20411 *) # Relative name.
20412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20413 ac_top_srcdir=$ac_top_build_prefix$srcdir
20414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20415esac
20416ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20417
20418
20419 case $ac_mode in
20420 :F)
20421 #
20422 # CONFIG_FILE
20423 #
20424
20425 case $INSTALL in
20426 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20427 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20428 esac
20429_ACEOF
20430
20431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20432# If the template does not know about datarootdir, expand it.
20433# FIXME: This hack should be removed a few years after 2.60.
20434ac_datarootdir_hack=; ac_datarootdir_seen=
20435ac_sed_dataroot='
20436/datarootdir/ {
20437 p
20438 q
20439}
20440/@datadir@/p
20441/@docdir@/p
20442/@infodir@/p
20443/@localedir@/p
20444/@mandir@/p'
20445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20446*datarootdir*) ac_datarootdir_seen=yes;;
20447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20449$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20450_ACEOF
20451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20452 ac_datarootdir_hack='
20453 s&@datadir@&$datadir&g
20454 s&@docdir@&$docdir&g
20455 s&@infodir@&$infodir&g
20456 s&@localedir@&$localedir&g
20457 s&@mandir@&$mandir&g
20458 s&\\\${datarootdir}&$datarootdir&g' ;;
20459esac
20460_ACEOF
20461
20462# Neutralize VPATH when `$srcdir' = `.'.
20463# Shell code in configure.ac might set extrasub.
20464# FIXME: do we really want to maintain this feature?
20465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20466ac_sed_extra="$ac_vpsub
20467$extrasub
20468_ACEOF
20469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20470:t
20471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20472s|@configure_input@|$ac_sed_conf_input|;t t
20473s&@top_builddir@&$ac_top_builddir_sub&;t t
20474s&@top_build_prefix@&$ac_top_build_prefix&;t t
20475s&@srcdir@&$ac_srcdir&;t t
20476s&@abs_srcdir@&$ac_abs_srcdir&;t t
20477s&@top_srcdir@&$ac_top_srcdir&;t t
20478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20479s&@builddir@&$ac_builddir&;t t
20480s&@abs_builddir@&$ac_abs_builddir&;t t
20481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20482s&@INSTALL@&$ac_INSTALL&;t t
20483$ac_datarootdir_hack
20484"
20485eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20486 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20487
20488test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20489 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20490 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20491 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20493which seems to be undefined. Please make sure it is defined" >&5
20494$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20495which seems to be undefined. Please make sure it is defined" >&2;}
20496
20497 rm -f "$ac_tmp/stdin"
20498 case $ac_file in
20499 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20500 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20501 esac \
20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20503 ;;
20504 :H)
20505 #
20506 # CONFIG_HEADER
20507 #
20508 if test x"$ac_file" != x-; then
20509 {
20510 $as_echo "/* $configure_input */" \
20511 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20512 } >"$ac_tmp/config.h" \
20513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20514 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20516$as_echo "$as_me: $ac_file is unchanged" >&6;}
20517 else
20518 rm -f "$ac_file"
20519 mv "$ac_tmp/config.h" "$ac_file" \
20520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20521 fi
20522 else
20523 $as_echo "/* $configure_input */" \
20524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20525 || as_fn_error $? "could not create -" "$LINENO" 5
20526 fi
20527 ;;
20528
20529
20530 esac
20531
20532done # for ac_tag
20533
20534
20535as_fn_exit 0
20536_ACEOF
20537ac_clean_files=$ac_clean_files_save
20538
20539test $ac_write_fail = 0 ||
20540 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20541
20542
20543# configure is writing to config.log, and then calls config.status.
20544# config.status does its own redirection, appending to config.log.
20545# Unfortunately, on DOS this fails, as config.log is still kept open
20546# by configure, so config.status won't be able to write to it; its
20547# output is simply discarded. So we exec the FD to /dev/null,
20548# effectively closing config.log, so it can be properly (re)opened and
20549# appended to by config.status. When coming back to configure, we
20550# need to make the FD available again.
20551if test "$no_create" != yes; then
20552 ac_cs_success=:
20553 ac_config_status_args=
20554 test "$silent" = yes &&
20555 ac_config_status_args="$ac_config_status_args --quiet"
20556 exec 5>/dev/null
20557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20558 exec 5>>config.log
20559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20560 # would make configure fail if this is the last instruction.
20561 $ac_cs_success || as_fn_exit 1
20562fi
20563if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20565$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20566fi
20567
20568
20569# Print summary of options
20570
20571# Someone please show me a better way :)
20572A=`eval echo ${prefix}` ; A=`eval echo ${A}`
20573B=`eval echo ${bindir}` ; B=`eval echo ${B}`
20574C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
20575D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
20576E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
20577F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
20578G=`eval echo ${piddir}` ; G=`eval echo ${G}`
20579H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
20580I=`eval echo ${user_path}` ; I=`eval echo ${I}`
20581J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
20582
20583echo ""
20584echo "OpenSSH has been configured with the following options:"
20585echo " User binaries: $B"
20586echo " System binaries: $C"
20587echo " Configuration files: $D"
20588echo " Askpass program: $E"
20589echo " Manual pages: $F"
20590echo " PID file: $G"
20591echo " Privilege separation chroot path: $H"
20592if test "x$external_path_file" = "x/etc/login.conf" ; then
20593echo " At runtime, sshd will use the path defined in $external_path_file"
20594echo " Make sure the path to scp is present, otherwise scp will not work"
20595else
20596echo " sshd default user PATH: $I"
20597 if test ! -z "$external_path_file"; then
20598echo " (If PATH is set in $external_path_file it will be used instead. If"
20599echo " used, ensure the path to scp is present, otherwise scp will not work.)"
20600 fi
20601fi
20602if test ! -z "$superuser_path" ; then
20603echo " sshd superuser user PATH: $J"
20604fi
20605echo " Manpage format: $MANTYPE"
20606echo " PAM support: $PAM_MSG"
20607echo " OSF SIA support: $SIA_MSG"
20608echo " KerberosV support: $KRB5_MSG"
20609echo " SELinux support: $SELINUX_MSG"
20610echo " Smartcard support: $SCARD_MSG"
20611echo " S/KEY support: $SKEY_MSG"
20612echo " MD5 password support: $MD5_MSG"
20613echo " libedit support: $LIBEDIT_MSG"
20614echo " libldns support: $LDNS_MSG"
20615echo " Solaris process contract support: $SPC_MSG"
20616echo " Solaris project support: $SP_MSG"
20617echo " Solaris privilege support: $SPP_MSG"
20618echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
20619echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
20620echo " BSD Auth support: $BSD_AUTH_MSG"
20621echo " Random number source: $RAND_MSG"
20622echo " Privsep sandbox style: $SANDBOX_STYLE"
20623
20624echo ""
20625
20626echo " Host: ${host}"
20627echo " Compiler: ${CC}"
20628echo " Compiler flags: ${CFLAGS}"
20629echo "Preprocessor flags: ${CPPFLAGS}"
20630echo " Linker flags: ${LDFLAGS}"
20631echo " Libraries: ${LIBS}"
20632if test ! -z "${SSHDLIBS}"; then
20633echo " +for sshd: ${SSHDLIBS}"
20634fi
20635if test ! -z "${SSHLIBS}"; then
20636echo " +for ssh: ${SSHLIBS}"
20637fi
20638
20639echo ""
20640
20641if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
20642 echo "SVR4 style packages are supported with \"make package\""
20643 echo ""
20644fi
20645
20646if test "x$PAM_MSG" = "xyes" ; then
20647 echo "PAM is enabled. You may need to install a PAM control file "
20648 echo "for sshd, otherwise password authentication may fail. "
20649 echo "Example PAM control files can be found in the contrib/ "
20650 echo "subdirectory"
20651 echo ""
20652fi
20653
20654if test ! -z "$NO_PEERCHECK" ; then
20655 echo "WARNING: the operating system that you are using does not"
20656 echo "appear to support getpeereid(), getpeerucred() or the"
20657 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
20658 echo "enforce security checks to prevent unauthorised connections to"
20659 echo "ssh-agent. Their absence increases the risk that a malicious"
20660 echo "user can connect to your agent."
20661 echo ""
20662fi
20663
20664if test "$AUDIT_MODULE" = "bsm" ; then
20665 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
20666 echo "See the Solaris section in README.platform for details."
20667fi