summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-03-31 00:43:52 +0100
committerColin Watson <cjwatson@debian.org>2010-03-31 00:43:52 +0100
commit004a7fb9c6a00b13dc98f56599918a54a3506d10 (patch)
treec8cb70b404e798f78982f06cd892ab82ecb1e03e /configure
parentd13d995a202c562c80d7e7a11c43504c505481d1 (diff)
parent1e4cfeee6c17b02af09418c5afe4a4d71aaaf0c8 (diff)
Import 5.4p1 tarball
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30848
1 files changed, 30848 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..7c19fc204
--- /dev/null
+++ b/configure
@@ -0,0 +1,30848 @@
1#! /bin/sh
2# From configure.ac Revision: 1.444 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696LIBEDIT
697INSTALL_SSH_RAND_HELPER
698SSH_PRIVSEP_USER
699PROG_LS
700PROG_NETSTAT
701PROG_ARP
702PROG_IFCONFIG
703PROG_JSTAT
704PROG_PS
705PROG_SAR
706PROG_W
707PROG_WHO
708PROG_LAST
709PROG_LASTLOG
710PROG_DF
711PROG_VMSTAT
712PROG_UPTIME
713PROG_IPCS
714PROG_TAIL
715INSTALL_SSH_PRNG_CMDS
716KRB5CONF
717PRIVSEP_PATH
718xauth_path
719STRIP_OPT
720XAUTH_PATH
721NROFF
722MANTYPE
723mansubdir
724user_path
725piddir
726TEST_SSH_IPV6
727LIBOBJS
728LTLIBOBJS'
729ac_subst_files=''
730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CPP'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
766# (The list follows the same order as the GNU Coding Standards.)
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
786
787ac_prev=
788ac_dashdash=
789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116done
1117
1118if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122fi
1123
1124# Be sure to have absolute directory names.
1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137done
1138
1139# There might be people who depend on the old broken behavior: `$host'
1140# used to hold the argument of --host etc.
1141# FIXME: To remove some day.
1142build=$build_alias
1143host=$host_alias
1144target=$target_alias
1145
1146# FIXME: To remove some day.
1147if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155fi
1156
1157ac_tool_prefix=
1158test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160test "$silent" = yes && exec 6>/dev/null
1161
1162
1163ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164ac_ls_di=`ls -di .` &&
1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173# Find the source files, if location was not specified.
1174if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204else
1205 ac_srcdir_defaulted=no
1206fi
1207if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211fi
1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217# When building in place, set srcdir=.
1218if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220fi
1221# Remove unnecessary trailing slashes from srcdir.
1222# Double slashes in file names in object file debugging info
1223# mess up M-x gdb in Emacs.
1224case $srcdir in
1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226esac
1227for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232done
1233
1234#
1235# Report the --help message.
1236#
1237if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1242
1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248Defaults for the options are specified in brackets.
1249
1250Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267By default, \`make install' will install all the files in
1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270for instance \`--prefix=\$HOME'.
1271
1272For better control, use the options below.
1273
1274Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294_ACEOF
1295
1296 cat <<\_ACEOF
1297
1298System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301_ACEOF
1302fi
1303
1304if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-largefile omit support for large files
1314 --disable-strip Disable calling strip(1) on install
1315 --disable-etc-default-login Disable using PATH from /etc/default/login no
1316 --disable-lastlog disable use of lastlog even if detected no
1317 --disable-utmp disable use of utmp even if detected no
1318 --disable-utmpx disable use of utmpx even if detected no
1319 --disable-wtmp disable use of wtmp even if detected no
1320 --disable-wtmpx disable use of wtmpx even if detected no
1321 --disable-libutil disable use of libutil (login() etc.) no
1322 --disable-pututline disable use of pututline() etc. (uwtmp) no
1323 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1324
1325Optional Packages:
1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328 --without-stackprotect Don't use compiler's stack protection
1329 --without-rpath Disable auto-added -R linker paths
1330 --with-cflags Specify additional flags to pass to compiler
1331 --with-cppflags Specify additional flags to pass to preprocessor
1332 --with-ldflags Specify additional flags to pass to linker
1333 --with-libs Specify additional libraries to link with
1334 --with-Werror Build main code with -Werror
1335 --with-solaris-contracts Enable Solaris process contracts (experimental)
1336 --with-osfsia Enable Digital Unix SIA
1337 --with-zlib=PATH Use zlib in PATH
1338 --without-zlib-version-check Disable zlib version check
1339 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1340 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1341 --with-libedit[=PATH] Enable libedit support for sftp
1342 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation
1344 --without-openssl-header-check Disable OpenSSL version consistency check
1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1346 --with-pam Enable PAM support
1347 --with-rand-helper Use subprocess to gather strong randomness
1348 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1349 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1350 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1351 --with-privsep-user=user Specify non-privileged user for privilege separation
1352 --with-selinux Enable SELinux support
1353 --with-kerberos5=PATH Enable Kerberos 5 support
1354 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1355 --with-xauth=PATH Specify path to xauth program
1356 --with-mantype=man|cat|doc Set man page type
1357 --with-md5-passwords Enable use of MD5 passwords
1358 --without-shadow Disable shadow password support
1359 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1360 --with-default-path= Specify default \$PATH environment for server
1361 --with-superuser-path= Specify different path for super-user
1362 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1363 --with-bsd-auth Enable BSD auth support
1364 --with-pid-dir=PATH Specify location of ssh.pid file
1365 --with-lastlog=FILE|DIR specify lastlog location common locations
1366
1367Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1376
1377Use these variables to override the choices made by `configure' or to help
1378it to find libraries and programs with nonstandard names/locations.
1379
1380Report bugs to <openssh-unix-dev@mindrot.org>.
1381_ACEOF
1382ac_status=$?
1383fi
1384
1385if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1389 ac_builddir=.
1390
1391case "$ac_dir" in
1392.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393*)
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401esac
1402ac_abs_top_builddir=$ac_pwd
1403ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404# for backward compatibility:
1405ac_top_builddir=$ac_top_build_prefix
1406
1407case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420esac
1421ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436fi
1437
1438test -n "$ac_init_help" && exit $ac_status
1439if $ac_init_version; then
1440 cat <<\_ACEOF
1441OpenSSH configure Portable
1442generated by GNU Autoconf 2.61
1443
1444Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446This configure script is free software; the Free Software Foundation
1447gives unlimited permission to copy, distribute and modify it.
1448_ACEOF
1449 exit
1450fi
1451cat >config.log <<_ACEOF
1452This file contains any messages produced by compilers while
1453running configure, to aid debugging if configure makes a mistake.
1454
1455It was created by OpenSSH $as_me Portable, which was
1456generated by GNU Autoconf 2.61. Invocation command line was
1457
1458 $ $0 $@
1459
1460_ACEOF
1461exec 5>>config.log
1462{
1463cat <<_ASUNAME
1464## --------- ##
1465## Platform. ##
1466## --------- ##
1467
1468hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473
1474/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476
1477/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484
1485_ASUNAME
1486
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1493done
1494IFS=$as_save_IFS
1495
1496} >&5
1497
1498cat >&5 <<_ACEOF
1499
1500
1501## ----------- ##
1502## Core tests. ##
1503## ----------- ##
1504
1505_ACEOF
1506
1507
1508# Keep a trace of the command line.
1509# Strip out --no-create and --no-recursion so they do not pile up.
1510# Strip out --silent because we don't want to record it for future runs.
1511# Also quote any args containing shell meta-characters.
1512# Make two passes to allow for proper duplicate-argument suppression.
1513ac_configure_args=
1514ac_configure_args0=
1515ac_configure_args1=
1516ac_must_keep_next=false
1517for ac_pass in 1 2
1518do
1519 for ac_arg
1520 do
1521 case $ac_arg in
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 continue ;;
1526 *\'*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 esac
1529 case $ac_pass in
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1531 2)
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1535 else
1536 case $ac_arg in
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 esac
1544 ;;
1545 -* ) ac_must_keep_next=true ;;
1546 esac
1547 fi
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 ;;
1550 esac
1551 done
1552done
1553$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555
1556# When interrupted or exit'd, cleanup temporary files, and complete
1557# config.log. We remove comments because anyway the quotes in there
1558# would cause problems or look ugly.
1559# WARNING: Use '\'' to represent an apostrophe within the trap.
1560# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1563 {
1564 echo
1565
1566 cat <<\_ASBOX
1567## ---------------- ##
1568## Cache variables. ##
1569## ---------------- ##
1570_ASBOX
1571 echo
1572 # The following way of writing the cache mishandles newlines in values,
1573(
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in #(
1577 *${as_nl}*)
1578 case $ac_var in #(
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 esac
1582 case $ac_var in #(
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1595 *)
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 ;;
1598 esac |
1599 sort
1600)
1601 echo
1602
1603 cat <<\_ASBOX
1604## ----------------- ##
1605## Output variables. ##
1606## ----------------- ##
1607_ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1610 do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1618
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621## ------------------- ##
1622## File substitutions. ##
1623## ------------------- ##
1624_ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1627 do
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1635 fi
1636
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639## ----------- ##
1640## confdefs.h. ##
1641## ----------- ##
1642_ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1646 fi
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1654' 0
1655for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657done
1658ac_signal=0
1659
1660# confdefs.h avoids OS command line length limits that DEFS can exceed.
1661rm -f -r conftest* confdefs.h
1662
1663# Predefined preprocessor variables.
1664
1665cat >>confdefs.h <<_ACEOF
1666#define PACKAGE_NAME "$PACKAGE_NAME"
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_STRING "$PACKAGE_STRING"
1682_ACEOF
1683
1684
1685cat >>confdefs.h <<_ACEOF
1686#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687_ACEOF
1688
1689
1690# Let the site file select an alternate cache file if it wants to.
1691# Prefer explicitly selected file to automatically selected ones.
1692if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1696else
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1699fi
1700shift
1701for ac_site_file
1702do
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1707 . "$ac_site_file"
1708 fi
1709done
1710
1711if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716echo "$as_me: loading cache $cache_file" >&6;}
1717 case $cache_file in
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1720 esac
1721 fi
1722else
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724echo "$as_me: creating cache $cache_file" >&6;}
1725 >$cache_file
1726fi
1727
1728# Check that the precious variables saved in the cache have kept the same
1729# value.
1730ac_cache_corrupted=false
1731for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1746 *)
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1767 fi
1768done
1769if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1775fi
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801ac_ext=c
1802ac_cpp='$CPP $CPPFLAGS'
1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806
1807
1808
1809
1810
1811ac_config_headers="$ac_config_headers config.h"
1812
1813ac_ext=c
1814ac_cpp='$CPP $CPPFLAGS'
1815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1820set dummy ${ac_tool_prefix}gcc; ac_word=$2
1821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1823if test "${ac_cv_prog_CC+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 break 2
1839 fi
1840done
1841done
1842IFS=$as_save_IFS
1843
1844fi
1845fi
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
1848 { echo "$as_me:$LINENO: result: $CC" >&5
1849echo "${ECHO_T}$CC" >&6; }
1850else
1851 { echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6; }
1853fi
1854
1855
1856fi
1857if test -z "$ac_cv_prog_CC"; then
1858 ac_ct_CC=$CC
1859 # Extract the first word of "gcc", so it can be a program name with args.
1860set dummy gcc; ac_word=$2
1861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_ac_ct_CC="gcc"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880done
1881done
1882IFS=$as_save_IFS
1883
1884fi
1885fi
1886ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887if test -n "$ac_ct_CC"; then
1888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889echo "${ECHO_T}$ac_ct_CC" >&6; }
1890else
1891 { echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6; }
1893fi
1894
1895 if test "x$ac_ct_CC" = x; then
1896 CC=""
1897 else
1898 case $cross_compiling:$ac_tool_warned in
1899yes:)
1900{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1901whose name does not start with the host triplet. If you think this
1902configuration is useful to you, please write to autoconf@gnu.org." >&5
1903echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1904whose name does not start with the host triplet. If you think this
1905configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1906ac_tool_warned=yes ;;
1907esac
1908 CC=$ac_ct_CC
1909 fi
1910else
1911 CC="$ac_cv_prog_CC"
1912fi
1913
1914if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917set dummy ${ac_tool_prefix}cc; ac_word=$2
1918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1925else
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1936 fi
1937done
1938done
1939IFS=$as_save_IFS
1940
1941fi
1942fi
1943CC=$ac_cv_prog_CC
1944if test -n "$CC"; then
1945 { echo "$as_me:$LINENO: result: $CC" >&5
1946echo "${ECHO_T}$CC" >&6; }
1947else
1948 { echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6; }
1950fi
1951
1952
1953 fi
1954fi
1955if test -z "$CC"; then
1956 # Extract the first word of "cc", so it can be a program name with args.
1957set dummy cc; ac_word=$2
1958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965else
1966 ac_prog_rejected=no
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975 ac_prog_rejected=yes
1976 continue
1977 fi
1978 ac_cv_prog_CC="cc"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 break 2
1981 fi
1982done
1983done
1984IFS=$as_save_IFS
1985
1986if test $ac_prog_rejected = yes; then
1987 # We found a bogon in the path, so make sure we never use it.
1988 set dummy $ac_cv_prog_CC
1989 shift
1990 if test $# != 0; then
1991 # We chose a different compiler from the bogus one.
1992 # However, it has the same basename, so the bogon will be chosen
1993 # first if we set CC to just the basename; use the full file name.
1994 shift
1995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996 fi
1997fi
1998fi
1999fi
2000CC=$ac_cv_prog_CC
2001if test -n "$CC"; then
2002 { echo "$as_me:$LINENO: result: $CC" >&5
2003echo "${ECHO_T}$CC" >&6; }
2004else
2005 { echo "$as_me:$LINENO: result: no" >&5
2006echo "${ECHO_T}no" >&6; }
2007fi
2008
2009
2010fi
2011if test -z "$CC"; then
2012 if test -n "$ac_tool_prefix"; then
2013 for ac_prog in cl.exe
2014 do
2015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024else
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2035 fi
2036done
2037done
2038IFS=$as_save_IFS
2039
2040fi
2041fi
2042CC=$ac_cv_prog_CC
2043if test -n "$CC"; then
2044 { echo "$as_me:$LINENO: result: $CC" >&5
2045echo "${ECHO_T}$CC" >&6; }
2046else
2047 { echo "$as_me:$LINENO: result: no" >&5
2048echo "${ECHO_T}no" >&6; }
2049fi
2050
2051
2052 test -n "$CC" && break
2053 done
2054fi
2055if test -z "$CC"; then
2056 ac_ct_CC=$CC
2057 for ac_prog in cl.exe
2058do
2059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2060set dummy $ac_prog; ac_word=$2
2061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068else
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2076 ac_cv_prog_ac_ct_CC="$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080done
2081done
2082IFS=$as_save_IFS
2083
2084fi
2085fi
2086ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087if test -n "$ac_ct_CC"; then
2088 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089echo "${ECHO_T}$ac_ct_CC" >&6; }
2090else
2091 { echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6; }
2093fi
2094
2095
2096 test -n "$ac_ct_CC" && break
2097done
2098
2099 if test "x$ac_ct_CC" = x; then
2100 CC=""
2101 else
2102 case $cross_compiling:$ac_tool_warned in
2103yes:)
2104{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2105whose name does not start with the host triplet. If you think this
2106configuration is useful to you, please write to autoconf@gnu.org." >&5
2107echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2108whose name does not start with the host triplet. If you think this
2109configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2110ac_tool_warned=yes ;;
2111esac
2112 CC=$ac_ct_CC
2113 fi
2114fi
2115
2116fi
2117
2118
2119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125# Provide some information about the compiler.
2126echo "$as_me:$LINENO: checking for C compiler version" >&5
2127ac_compiler=`set X $ac_compile; echo $2`
2128{ (ac_try="$ac_compiler --version >&5"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134 (eval "$ac_compiler --version >&5") 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138{ (ac_try="$ac_compiler -v >&5"
2139case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142esac
2143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144 (eval "$ac_compiler -v >&5") 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148{ (ac_try="$ac_compiler -V >&5"
2149case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152esac
2153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2154 (eval "$ac_compiler -V >&5") 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158
2159cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h. */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h. */
2165
2166int
2167main ()
2168{
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174ac_clean_files_save=$ac_clean_files
2175ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176# Try to create an executable without -o first, disregard a.out.
2177# It will help us diagnose broken compilers, and finding out an intuition
2178# of exeext.
2179{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2181ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182#
2183# List of possible output files, starting from the most likely.
2184# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2185# only as a last resort. b.out is created by i960 compilers.
2186ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2187#
2188# The IRIX 6 linker writes into existing files which may not be
2189# executable, retaining their permissions. Remove them first so a
2190# subsequent execution test works.
2191ac_rmfiles=
2192for ac_file in $ac_files
2193do
2194 case $ac_file in
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197 esac
2198done
2199rm -f $ac_rmfiles
2200
2201if { (ac_try="$ac_link_default"
2202case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2207 (eval "$ac_link_default") 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2212# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2213# in a Makefile. We should not override ac_cv_exeext if it was cached,
2214# so that the user can short-circuit this test for compilers unknown to
2215# Autoconf.
2216for ac_file in $ac_files ''
2217do
2218 test -f "$ac_file" || continue
2219 case $ac_file in
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2221 ;;
2222 [ab].out )
2223 # We found the default executable, but exeext='' is most
2224 # certainly right.
2225 break;;
2226 *.* )
2227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2228 then :; else
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 fi
2231 # We set ac_cv_exeext here because the later test for it is not
2232 # safe: cross compilers may not add the suffix if given an `-o'
2233 # argument, so we may need to know it at that point already.
2234 # Even if this section looks crufty: it has the advantage of
2235 # actually working.
2236 break;;
2237 * )
2238 break;;
2239 esac
2240done
2241test "$ac_cv_exeext" = no && ac_cv_exeext=
2242
2243else
2244 ac_file=''
2245fi
2246
2247{ echo "$as_me:$LINENO: result: $ac_file" >&5
2248echo "${ECHO_T}$ac_file" >&6; }
2249if test -z "$ac_file"; then
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: C compiler cannot create executables
2256See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2258fi
2259
2260ac_exeext=$ac_cv_exeext
2261
2262# Check that the compiler produces executables we can run. If not, either
2263# the compiler is broken, or we cross compile.
2264{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267# If not cross compiling, check that we can run a simple program.
2268if test "$cross_compiling" != yes; then
2269 if { ac_try='./$ac_file'
2270 { (case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_try") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 cross_compiling=no
2280 else
2281 if test "$cross_compiling" = maybe; then
2282 cross_compiling=yes
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285If you meant to cross compile, use \`--host'.
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2291 fi
2292 fi
2293fi
2294{ echo "$as_me:$LINENO: result: yes" >&5
2295echo "${ECHO_T}yes" >&6; }
2296
2297rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298ac_clean_files=$ac_clean_files_save
2299# Check that the compiler produces executables we can run. If not, either
2300# the compiler is broken, or we cross compile.
2301{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2303{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304echo "${ECHO_T}$cross_compiling" >&6; }
2305
2306{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2308if { (ac_try="$ac_link"
2309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
2313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_link") 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2319# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2320# work properly (i.e., refer to `conftest.exe'), while it won't with
2321# `rm'.
2322for ac_file in conftest.exe conftest conftest.*; do
2323 test -f "$ac_file" || continue
2324 case $ac_file in
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 break;;
2328 * ) break;;
2329 esac
2330done
2331else
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2337fi
2338
2339rm -f conftest$ac_cv_exeext
2340{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341echo "${ECHO_T}$ac_cv_exeext" >&6; }
2342
2343rm -f conftest.$ac_ext
2344EXEEXT=$ac_cv_exeext
2345ac_exeext=$EXEEXT
2346{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2348if test "${ac_cv_objext+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h. */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h. */
2357
2358int
2359main ()
2360{
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
2366rm -f conftest.o conftest.obj
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in conftest.o conftest.obj conftest.*; do
2378 test -f "$ac_file" || continue;
2379 case $ac_file in
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382 break;;
2383 esac
2384done
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2394fi
2395
2396rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397fi
2398{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399echo "${ECHO_T}$ac_cv_objext" >&6; }
2400OBJEXT=$ac_cv_objext
2401ac_objext=$OBJEXT
2402{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2404if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407 cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h. */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h. */
2413
2414int
2415main ()
2416{
2417#ifndef __GNUC__
2418 choke me
2419#endif
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (ac_try="$ac_compile"
2427case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430esac
2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compile") 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } && {
2439 test -z "$ac_c_werror_flag" ||
2440 test ! -s conftest.err
2441 } && test -s conftest.$ac_objext; then
2442 ac_compiler_gnu=yes
2443else
2444 echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 ac_compiler_gnu=no
2448fi
2449
2450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452
2453fi
2454{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2455echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2456GCC=`test $ac_compiler_gnu = yes && echo yes`
2457ac_test_CFLAGS=${CFLAGS+set}
2458ac_save_CFLAGS=$CFLAGS
2459{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2460echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2461if test "${ac_cv_prog_cc_g+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464 ac_save_c_werror_flag=$ac_c_werror_flag
2465 ac_c_werror_flag=yes
2466 ac_cv_prog_cc_g=no
2467 CFLAGS="-g"
2468 cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474
2475int
2476main ()
2477{
2478
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483rm -f conftest.$ac_objext
2484if { (ac_try="$ac_compile"
2485case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_compile") 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } && {
2497 test -z "$ac_c_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest.$ac_objext; then
2500 ac_cv_prog_cc_g=yes
2501else
2502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 CFLAGS=""
2506 cat >conftest.$ac_ext <<_ACEOF
2507/* confdefs.h. */
2508_ACEOF
2509cat confdefs.h >>conftest.$ac_ext
2510cat >>conftest.$ac_ext <<_ACEOF
2511/* end confdefs.h. */
2512
2513int
2514main ()
2515{
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521rm -f conftest.$ac_objext
2522if { (ac_try="$ac_compile"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } && {
2535 test -z "$ac_c_werror_flag" ||
2536 test ! -s conftest.err
2537 } && test -s conftest.$ac_objext; then
2538 :
2539else
2540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_c_werror_flag=$ac_save_c_werror_flag
2544 CFLAGS="-g"
2545 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
2551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (ac_try="$ac_compile"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2577 ac_cv_prog_cc_g=yes
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582
2583fi
2584
2585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586fi
2587
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589fi
2590
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_c_werror_flag=$ac_save_c_werror_flag
2593fi
2594{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2596if test "$ac_test_CFLAGS" = set; then
2597 CFLAGS=$ac_save_CFLAGS
2598elif test $ac_cv_prog_cc_g = yes; then
2599 if test "$GCC" = yes; then
2600 CFLAGS="-g -O2"
2601 else
2602 CFLAGS="-g"
2603 fi
2604else
2605 if test "$GCC" = yes; then
2606 CFLAGS="-O2"
2607 else
2608 CFLAGS=
2609 fi
2610fi
2611{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2612echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2613if test "${ac_cv_prog_cc_c89+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 ac_cv_prog_cc_c89=no
2617ac_save_CC=$CC
2618cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
2624#include <stdarg.h>
2625#include <stdio.h>
2626#include <sys/types.h>
2627#include <sys/stat.h>
2628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2629struct buf { int x; };
2630FILE * (*rcsopen) (struct buf *, struct stat *, int);
2631static char *e (p, i)
2632 char **p;
2633 int i;
2634{
2635 return p[i];
2636}
2637static char *f (char * (*g) (char **, int), char **p, ...)
2638{
2639 char *s;
2640 va_list v;
2641 va_start (v,p);
2642 s = g (p, va_arg (v,int));
2643 va_end (v);
2644 return s;
2645}
2646
2647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2648 function prototypes and stuff, but not '\xHH' hex character constants.
2649 These don't provoke an error unfortunately, instead are silently treated
2650 as 'x'. The following induces an error, until -std is added to get
2651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2652 array size at least. It's necessary to write '\x00'==0 to get something
2653 that's true only with -std. */
2654int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2655
2656/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2657 inside strings and character constants. */
2658#define FOO(x) 'x'
2659int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2660
2661int test (int i, double x);
2662struct s1 {int (*f) (int a);};
2663struct s2 {int (*f) (double a);};
2664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2665int argc;
2666char **argv;
2667int
2668main ()
2669{
2670return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677do
2678 CC="$ac_save_CC $ac_arg"
2679 rm -f conftest.$ac_objext
2680if { (ac_try="$ac_compile"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 ac_cv_prog_cc_c89=$ac_arg
2697else
2698 echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701
2702fi
2703
2704rm -f core conftest.err conftest.$ac_objext
2705 test "x$ac_cv_prog_cc_c89" != "xno" && break
2706done
2707rm -f conftest.$ac_ext
2708CC=$ac_save_CC
2709
2710fi
2711# AC_CACHE_VAL
2712case "x$ac_cv_prog_cc_c89" in
2713 x)
2714 { echo "$as_me:$LINENO: result: none needed" >&5
2715echo "${ECHO_T}none needed" >&6; } ;;
2716 xno)
2717 { echo "$as_me:$LINENO: result: unsupported" >&5
2718echo "${ECHO_T}unsupported" >&6; } ;;
2719 *)
2720 CC="$CC $ac_cv_prog_cc_c89"
2721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2722echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2723esac
2724
2725
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732ac_aux_dir=
2733for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2734 if test -f "$ac_dir/install-sh"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/install-sh -c"
2737 break
2738 elif test -f "$ac_dir/install.sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install.sh -c"
2741 break
2742 elif test -f "$ac_dir/shtool"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/shtool install -c"
2745 break
2746 fi
2747done
2748if test -z "$ac_aux_dir"; then
2749 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2750echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2751 { (exit 1); exit 1; }; }
2752fi
2753
2754# These three variables are undocumented and unsupported,
2755# and are intended to be withdrawn in a future Autoconf release.
2756# They can cause serious problems if a builder's source tree is in a directory
2757# whose full name contains unusual characters.
2758ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2761
2762
2763# Make sure we can run config.sub.
2764$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2766echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2767 { (exit 1); exit 1; }; }
2768
2769{ echo "$as_me:$LINENO: checking build system type" >&5
2770echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2771if test "${ac_cv_build+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 ac_build_alias=$build_alias
2775test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777test "x$ac_build_alias" = x &&
2778 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2779echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2780 { (exit 1); exit 1; }; }
2781ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2782 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2783echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2784 { (exit 1); exit 1; }; }
2785
2786fi
2787{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2788echo "${ECHO_T}$ac_cv_build" >&6; }
2789case $ac_cv_build in
2790*-*-*) ;;
2791*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2792echo "$as_me: error: invalid value of canonical build" >&2;}
2793 { (exit 1); exit 1; }; };;
2794esac
2795build=$ac_cv_build
2796ac_save_IFS=$IFS; IFS='-'
2797set x $ac_cv_build
2798shift
2799build_cpu=$1
2800build_vendor=$2
2801shift; shift
2802# Remember, the first character of IFS is used to create $*,
2803# except with old shells:
2804build_os=$*
2805IFS=$ac_save_IFS
2806case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2807
2808
2809{ echo "$as_me:$LINENO: checking host system type" >&5
2810echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2811if test "${ac_cv_host+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814 if test "x$host_alias" = x; then
2815 ac_cv_host=$ac_cv_build
2816else
2817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2819echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2820 { (exit 1); exit 1; }; }
2821fi
2822
2823fi
2824{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2825echo "${ECHO_T}$ac_cv_host" >&6; }
2826case $ac_cv_host in
2827*-*-*) ;;
2828*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2829echo "$as_me: error: invalid value of canonical host" >&2;}
2830 { (exit 1); exit 1; }; };;
2831esac
2832host=$ac_cv_host
2833ac_save_IFS=$IFS; IFS='-'
2834set x $ac_cv_host
2835shift
2836host_cpu=$1
2837host_vendor=$2
2838shift; shift
2839# Remember, the first character of IFS is used to create $*,
2840# except with old shells:
2841host_os=$*
2842IFS=$ac_save_IFS
2843case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2844
2845
2846
2847ac_ext=c
2848ac_cpp='$CPP $CPPFLAGS'
2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2853echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2854# On Suns, sometimes $CPP names a directory.
2855if test -n "$CPP" && test -d "$CPP"; then
2856 CPP=
2857fi
2858if test -z "$CPP"; then
2859 if test "${ac_cv_prog_CPP+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862 # Double quotes because CPP needs to be expanded
2863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2864 do
2865 ac_preproc_ok=false
2866for ac_c_preproc_warn_flag in '' yes
2867do
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 # <limits.h> exists even on freestanding compilers.
2872 # On the NeXT, cc -E runs the code through the compiler's parser,
2873 # not just through cpp. "Syntax error" is here to catch this case.
2874 cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
2880#ifdef __STDC__
2881# include <limits.h>
2882#else
2883# include <assert.h>
2884#endif
2885 Syntax error
2886_ACEOF
2887if { (ac_try="$ac_cpp conftest.$ac_ext"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null && {
2900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 }; then
2903 :
2904else
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 # Broken: fails on valid input.
2909continue
2910fi
2911
2912rm -f conftest.err conftest.$ac_ext
2913
2914 # OK, works on sane cases. Now check whether nonexistent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922#include <ac_nonexistent.h>
2923_ACEOF
2924if { (ac_try="$ac_cpp conftest.$ac_ext"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null && {
2937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 }; then
2940 # Broken: success on invalid input.
2941continue
2942else
2943 echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Passes both tests.
2947ac_preproc_ok=:
2948break
2949fi
2950
2951rm -f conftest.err conftest.$ac_ext
2952
2953done
2954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955rm -f conftest.err conftest.$ac_ext
2956if $ac_preproc_ok; then
2957 break
2958fi
2959
2960 done
2961 ac_cv_prog_CPP=$CPP
2962
2963fi
2964 CPP=$ac_cv_prog_CPP
2965else
2966 ac_cv_prog_CPP=$CPP
2967fi
2968{ echo "$as_me:$LINENO: result: $CPP" >&5
2969echo "${ECHO_T}$CPP" >&6; }
2970ac_preproc_ok=false
2971for ac_c_preproc_warn_flag in '' yes
2972do
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
2985#ifdef __STDC__
2986# include <limits.h>
2987#else
2988# include <assert.h>
2989#endif
2990 Syntax error
2991_ACEOF
2992if { (ac_try="$ac_cpp conftest.$ac_ext"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev/null && {
3005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3007 }; then
3008 :
3009else
3010 echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 # Broken: fails on valid input.
3014continue
3015fi
3016
3017rm -f conftest.err conftest.$ac_ext
3018
3019 # OK, works on sane cases. Now check whether nonexistent headers
3020 # can be detected and how.
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027#include <ac_nonexistent.h>
3028_ACEOF
3029if { (ac_try="$ac_cpp conftest.$ac_ext"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null && {
3042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 }; then
3045 # Broken: success on invalid input.
3046continue
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 # Passes both tests.
3052ac_preproc_ok=:
3053break
3054fi
3055
3056rm -f conftest.err conftest.$ac_ext
3057
3058done
3059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060rm -f conftest.err conftest.$ac_ext
3061if $ac_preproc_ok; then
3062 :
3063else
3064 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3065See \`config.log' for more details." >&5
3066echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3067See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3069fi
3070
3071ac_ext=c
3072ac_cpp='$CPP $CPPFLAGS'
3073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076
3077
3078{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3079echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3080if test "${ac_cv_path_GREP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 # Extract the first word of "grep ggrep" to use in msg output
3084if test -z "$GREP"; then
3085set dummy grep ggrep; ac_prog_name=$2
3086if test "${ac_cv_path_GREP+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 ac_path_GREP_found=false
3090# Loop through the user's path and test for each of PROGNAME-LIST
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_prog in grep ggrep; do
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3099 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3100 # Check for GNU ac_path_GREP and select it if it is found.
3101 # Check for GNU $ac_path_GREP
3102case `"$ac_path_GREP" --version 2>&1` in
3103*GNU*)
3104 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3105*)
3106 ac_count=0
3107 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3108 while :
3109 do
3110 cat "conftest.in" "conftest.in" >"conftest.tmp"
3111 mv "conftest.tmp" "conftest.in"
3112 cp "conftest.in" "conftest.nl"
3113 echo 'GREP' >> "conftest.nl"
3114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3116 ac_count=`expr $ac_count + 1`
3117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3118 # Best one so far, save it but keep looking for a better one
3119 ac_cv_path_GREP="$ac_path_GREP"
3120 ac_path_GREP_max=$ac_count
3121 fi
3122 # 10*(2^10) chars as input seems more than enough
3123 test $ac_count -gt 10 && break
3124 done
3125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3126esac
3127
3128
3129 $ac_path_GREP_found && break 3
3130 done
3131done
3132
3133done
3134IFS=$as_save_IFS
3135
3136
3137fi
3138
3139GREP="$ac_cv_path_GREP"
3140if test -z "$GREP"; then
3141 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3142echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3143 { (exit 1); exit 1; }; }
3144fi
3145
3146else
3147 ac_cv_path_GREP=$GREP
3148fi
3149
3150
3151fi
3152{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3153echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3154 GREP="$ac_cv_path_GREP"
3155
3156
3157{ echo "$as_me:$LINENO: checking for egrep" >&5
3158echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3159if test "${ac_cv_path_EGREP+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3163 then ac_cv_path_EGREP="$GREP -E"
3164 else
3165 # Extract the first word of "egrep" to use in msg output
3166if test -z "$EGREP"; then
3167set dummy egrep; ac_prog_name=$2
3168if test "${ac_cv_path_EGREP+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171 ac_path_EGREP_found=false
3172# Loop through the user's path and test for each of PROGNAME-LIST
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_prog in egrep; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3182 # Check for GNU ac_path_EGREP and select it if it is found.
3183 # Check for GNU $ac_path_EGREP
3184case `"$ac_path_EGREP" --version 2>&1` in
3185*GNU*)
3186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3187*)
3188 ac_count=0
3189 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3190 while :
3191 do
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 echo 'EGREP' >> "conftest.nl"
3196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3198 ac_count=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_EGREP="$ac_path_EGREP"
3202 ac_path_EGREP_max=$ac_count
3203 fi
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3206 done
3207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3208esac
3209
3210
3211 $ac_path_EGREP_found && break 3
3212 done
3213done
3214
3215done
3216IFS=$as_save_IFS
3217
3218
3219fi
3220
3221EGREP="$ac_cv_path_EGREP"
3222if test -z "$EGREP"; then
3223 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3224echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3225 { (exit 1); exit 1; }; }
3226fi
3227
3228else
3229 ac_cv_path_EGREP=$EGREP
3230fi
3231
3232
3233 fi
3234fi
3235{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3236echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3237 EGREP="$ac_cv_path_EGREP"
3238
3239
3240{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3241echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3242if test "${ac_cv_header_stdc+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245 cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
3251#include <stdlib.h>
3252#include <stdarg.h>
3253#include <string.h>
3254#include <float.h>
3255
3256int
3257main ()
3258{
3259
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3281 ac_cv_header_stdc=yes
3282else
3283 echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 ac_cv_header_stdc=no
3287fi
3288
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290
3291if test $ac_cv_header_stdc = yes; then
3292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
3299#include <string.h>
3300
3301_ACEOF
3302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 $EGREP "memchr" >/dev/null 2>&1; then
3304 :
3305else
3306 ac_cv_header_stdc=no
3307fi
3308rm -f conftest*
3309
3310fi
3311
3312if test $ac_cv_header_stdc = yes; then
3313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3314 cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320#include <stdlib.h>
3321
3322_ACEOF
3323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "free" >/dev/null 2>&1; then
3325 :
3326else
3327 ac_cv_header_stdc=no
3328fi
3329rm -f conftest*
3330
3331fi
3332
3333if test $ac_cv_header_stdc = yes; then
3334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3335 if test "$cross_compiling" = yes; then
3336 :
3337else
3338 cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h. */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h. */
3344#include <ctype.h>
3345#include <stdlib.h>
3346#if ((' ' & 0x0FF) == 0x020)
3347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3349#else
3350# define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355#endif
3356
3357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3358int
3359main ()
3360{
3361 int i;
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3365 return 2;
3366 return 0;
3367}
3368_ACEOF
3369rm -f conftest$ac_exeext
3370if { (ac_try="$ac_link"
3371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_link") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 :
3390else
3391 echo "$as_me: program exited with status $ac_status" >&5
3392echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395( exit $ac_status )
3396ac_cv_header_stdc=no
3397fi
3398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3399fi
3400
3401
3402fi
3403fi
3404{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3405echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3406if test $ac_cv_header_stdc = yes; then
3407
3408cat >>confdefs.h <<\_ACEOF
3409#define STDC_HEADERS 1
3410_ACEOF
3411
3412fi
3413
3414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3425 inttypes.h stdint.h unistd.h
3426do
3427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439$ac_includes_default
3440
3441#include <$ac_header>
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (ac_try="$ac_compile"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 eval "$as_ac_Header=yes"
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 eval "$as_ac_Header=no"
3466fi
3467
3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469fi
3470ac_res=`eval echo '${'$as_ac_Header'}'`
3471 { echo "$as_me:$LINENO: result: $ac_res" >&5
3472echo "${ECHO_T}$ac_res" >&6; }
3473if test `eval echo '${'$as_ac_Header'}'` = yes; then
3474 cat >>confdefs.h <<_ACEOF
3475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3476_ACEOF
3477
3478fi
3479
3480done
3481
3482
3483{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3484echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3485if test "${ac_cv_c_bigendian+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488 # See if sys/param.h defines the BYTE_ORDER macro.
3489cat >conftest.$ac_ext <<_ACEOF
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
3495#include <sys/types.h>
3496#include <sys/param.h>
3497
3498int
3499main ()
3500{
3501#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3502 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3503 bogus endian macros
3504#endif
3505
3506 ;
3507 return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (ac_try="$ac_compile"
3512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
3516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && {
3524 test -z "$ac_c_werror_flag" ||
3525 test ! -s conftest.err
3526 } && test -s conftest.$ac_objext; then
3527 # It does; now see whether it defined to BIG_ENDIAN or not.
3528cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h. */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h. */
3534#include <sys/types.h>
3535#include <sys/param.h>
3536
3537int
3538main ()
3539{
3540#if BYTE_ORDER != BIG_ENDIAN
3541 not big endian
3542#endif
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
3548rm -f conftest.$ac_objext
3549if { (ac_try="$ac_compile"
3550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_compile") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && {
3562 test -z "$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 } && test -s conftest.$ac_objext; then
3565 ac_cv_c_bigendian=yes
3566else
3567 echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 ac_cv_c_bigendian=no
3571fi
3572
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574else
3575 echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 # It does not; compile a test program.
3579if test "$cross_compiling" = yes; then
3580 # try to guess the endianness by grepping values into an object file
3581 ac_cv_c_bigendian=unknown
3582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h. */
3588short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3589short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3590void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3591short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3592short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3593void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3594int
3595main ()
3596{
3597 _ascii (); _ebcdic ();
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (ac_try="$ac_compile"
3604case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607esac
3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3619 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3620 ac_cv_c_bigendian=yes
3621fi
3622if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3623 if test "$ac_cv_c_bigendian" = unknown; then
3624 ac_cv_c_bigendian=no
3625 else
3626 # finding both strings is unlikely to happen, but who knows?
3627 ac_cv_c_bigendian=unknown
3628 fi
3629fi
3630else
3631 echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634
3635fi
3636
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638else
3639 cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
3645$ac_includes_default
3646int
3647main ()
3648{
3649
3650 /* Are we little or big endian? From Harbison&Steele. */
3651 union
3652 {
3653 long int l;
3654 char c[sizeof (long int)];
3655 } u;
3656 u.l = 1;
3657 return u.c[sizeof (long int) - 1] == 1;
3658
3659 ;
3660 return 0;
3661}
3662_ACEOF
3663rm -f conftest$ac_exeext
3664if { (ac_try="$ac_link"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_link") 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3674 { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677esac
3678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_c_bigendian=no
3684else
3685 echo "$as_me: program exited with status $ac_status" >&5
3686echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689( exit $ac_status )
3690ac_cv_c_bigendian=yes
3691fi
3692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3693fi
3694
3695
3696fi
3697
3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699fi
3700{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3701echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3702case $ac_cv_c_bigendian in
3703 yes)
3704
3705cat >>confdefs.h <<\_ACEOF
3706#define WORDS_BIGENDIAN 1
3707_ACEOF
3708 ;;
3709 no)
3710 ;;
3711 *)
3712 { { echo "$as_me:$LINENO: error: unknown endianness
3713presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3714echo "$as_me: error: unknown endianness
3715presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3716 { (exit 1); exit 1; }; } ;;
3717esac
3718
3719
3720# Checks for programs.
3721for ac_prog in gawk mawk nawk awk
3722do
3723 # Extract the first word of "$ac_prog", so it can be a program name with args.
3724set dummy $ac_prog; ac_word=$2
3725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3727if test "${ac_cv_prog_AWK+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 if test -n "$AWK"; then
3731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3732else
3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_AWK="$ac_prog"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744done
3745done
3746IFS=$as_save_IFS
3747
3748fi
3749fi
3750AWK=$ac_cv_prog_AWK
3751if test -n "$AWK"; then
3752 { echo "$as_me:$LINENO: result: $AWK" >&5
3753echo "${ECHO_T}$AWK" >&6; }
3754else
3755 { echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6; }
3757fi
3758
3759
3760 test -n "$AWK" && break
3761done
3762
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3770# On Suns, sometimes $CPP names a directory.
3771if test -n "$CPP" && test -d "$CPP"; then
3772 CPP=
3773fi
3774if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780 do
3781 ac_preproc_ok=false
3782for ac_c_preproc_warn_flag in '' yes
3783do
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
3796#ifdef __STDC__
3797# include <limits.h>
3798#else
3799# include <assert.h>
3800#endif
3801 Syntax error
3802_ACEOF
3803if { (ac_try="$ac_cpp conftest.$ac_ext"
3804case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 }; then
3819 :
3820else
3821 echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 # Broken: fails on valid input.
3825continue
3826fi
3827
3828rm -f conftest.err conftest.$ac_ext
3829
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
3838#include <ac_nonexistent.h>
3839_ACEOF
3840if { (ac_try="$ac_cpp conftest.$ac_ext"
3841case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 }; then
3856 # Broken: success on invalid input.
3857continue
3858else
3859 echo "$as_me: failed program was:" >&5
3860sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 # Passes both tests.
3863ac_preproc_ok=:
3864break
3865fi
3866
3867rm -f conftest.err conftest.$ac_ext
3868
3869done
3870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871rm -f conftest.err conftest.$ac_ext
3872if $ac_preproc_ok; then
3873 break
3874fi
3875
3876 done
3877 ac_cv_prog_CPP=$CPP
3878
3879fi
3880 CPP=$ac_cv_prog_CPP
3881else
3882 ac_cv_prog_CPP=$CPP
3883fi
3884{ echo "$as_me:$LINENO: result: $CPP" >&5
3885echo "${ECHO_T}$CPP" >&6; }
3886ac_preproc_ok=false
3887for ac_c_preproc_warn_flag in '' yes
3888do
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
3906 Syntax error
3907_ACEOF
3908if { (ac_try="$ac_cpp conftest.$ac_ext"
3909case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912esac
3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 }; then
3924 :
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 # Broken: fails on valid input.
3930continue
3931fi
3932
3933rm -f conftest.err conftest.$ac_ext
3934
3935 # OK, works on sane cases. Now check whether nonexistent headers
3936 # can be detected and how.
3937 cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943#include <ac_nonexistent.h>
3944_ACEOF
3945if { (ac_try="$ac_cpp conftest.$ac_ext"
3946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
3950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null && {
3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 }; then
3961 # Broken: success on invalid input.
3962continue
3963else
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 # Passes both tests.
3968ac_preproc_ok=:
3969break
3970fi
3971
3972rm -f conftest.err conftest.$ac_ext
3973
3974done
3975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976rm -f conftest.err conftest.$ac_ext
3977if $ac_preproc_ok; then
3978 :
3979else
3980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981See \`config.log' for more details." >&5
3982echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3985fi
3986
3987ac_ext=c
3988ac_cpp='$CPP $CPPFLAGS'
3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998if test "${ac_cv_prog_RANLIB+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 if test -n "$RANLIB"; then
4002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021RANLIB=$ac_cv_prog_RANLIB
4022if test -n "$RANLIB"; then
4023 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4024echo "${ECHO_T}$RANLIB" >&6; }
4025else
4026 { echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6; }
4028fi
4029
4030
4031fi
4032if test -z "$ac_cv_prog_RANLIB"; then
4033 ac_ct_RANLIB=$RANLIB
4034 # Extract the first word of "ranlib", so it can be a program name with args.
4035set dummy ranlib; ac_word=$2
4036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 if test -n "$ac_ct_RANLIB"; then
4042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_ac_ct_RANLIB="ranlib"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4062if test -n "$ac_ct_RANLIB"; then
4063 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4064echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4065else
4066 { echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6; }
4068fi
4069
4070 if test "x$ac_ct_RANLIB" = x; then
4071 RANLIB=":"
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074yes:)
4075{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4076whose name does not start with the host triplet. If you think this
4077configuration is useful to you, please write to autoconf@gnu.org." >&5
4078echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4079whose name does not start with the host triplet. If you think this
4080configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4081ac_tool_warned=yes ;;
4082esac
4083 RANLIB=$ac_ct_RANLIB
4084 fi
4085else
4086 RANLIB="$ac_cv_prog_RANLIB"
4087fi
4088
4089# Find a good install program. We prefer a C program (faster),
4090# so one script is as good as another. But avoid the broken or
4091# incompatible versions:
4092# SysV /etc/install, /usr/sbin/install
4093# SunOS /usr/etc/install
4094# IRIX /sbin/install
4095# AIX /bin/install
4096# AmigaOS /C/install, which installs bootblocks on floppy discs
4097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4100# OS/2's system install, which has a completely different semantic
4101# ./install, which can be erroneously created by make from ./install.sh.
4102{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4103echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4104if test -z "$INSTALL"; then
4105if test "${ac_cv_path_install+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 # Account for people who put trailing slashes in PATH elements.
4114case $as_dir/ in
4115 ./ | .// | /cC/* | \
4116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4117 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4118 /usr/ucb/* ) ;;
4119 *)
4120 # OSF1 and SCO ODT 3.0 have their own names for install.
4121 # Don't use installbsd from OSF since it installs stuff as root
4122 # by default.
4123 for ac_prog in ginstall scoinst install; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4126 if test $ac_prog = install &&
4127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # AIX install. It has an incompatible calling convention.
4129 :
4130 elif test $ac_prog = install &&
4131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4132 # program-specific install script used by HP pwplus--don't use.
4133 :
4134 else
4135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4136 break 3
4137 fi
4138 fi
4139 done
4140 done
4141 ;;
4142esac
4143done
4144IFS=$as_save_IFS
4145
4146
4147fi
4148 if test "${ac_cv_path_install+set}" = set; then
4149 INSTALL=$ac_cv_path_install
4150 else
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL=$ac_install_sh
4156 fi
4157fi
4158{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4159echo "${ECHO_T}$INSTALL" >&6; }
4160
4161# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162# It thinks the first close brace ends the variable substitution.
4163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4164
4165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4166
4167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4168
4169{ echo "$as_me:$LINENO: checking for egrep" >&5
4170echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4171if test "${ac_cv_path_EGREP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4175 then ac_cv_path_EGREP="$GREP -E"
4176 else
4177 # Extract the first word of "egrep" to use in msg output
4178if test -z "$EGREP"; then
4179set dummy egrep; ac_prog_name=$2
4180if test "${ac_cv_path_EGREP+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 ac_path_EGREP_found=false
4184# Loop through the user's path and test for each of PROGNAME-LIST
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194 # Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196case `"$ac_path_EGREP" --version 2>&1` in
4197*GNU*)
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4199*)
4200 ac_count=0
4201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4202 while :
4203 do
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 ac_count=`expr $ac_count + 1`
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4215 fi
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220esac
4221
4222
4223 $ac_path_EGREP_found && break 3
4224 done
4225done
4226
4227done
4228IFS=$as_save_IFS
4229
4230
4231fi
4232
4233EGREP="$ac_cv_path_EGREP"
4234if test -z "$EGREP"; then
4235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4236echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4237 { (exit 1); exit 1; }; }
4238fi
4239
4240else
4241 ac_cv_path_EGREP=$EGREP
4242fi
4243
4244
4245 fi
4246fi
4247{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4248echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252# Extract the first word of "ar", so it can be a program name with args.
4253set dummy ar; ac_word=$2
4254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4256if test "${ac_cv_path_AR+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259 case $AR in
4260 [\\/]* | ?:[\\/]*)
4261 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4262 ;;
4263 *)
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276done
4277IFS=$as_save_IFS
4278
4279 ;;
4280esac
4281fi
4282AR=$ac_cv_path_AR
4283if test -n "$AR"; then
4284 { echo "$as_me:$LINENO: result: $AR" >&5
4285echo "${ECHO_T}$AR" >&6; }
4286else
4287 { echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6; }
4289fi
4290
4291
4292# Extract the first word of "cat", so it can be a program name with args.
4293set dummy cat; ac_word=$2
4294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296if test "${ac_cv_path_CAT+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299 case $CAT in
4300 [\\/]* | ?:[\\/]*)
4301 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4302 ;;
4303 *)
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317IFS=$as_save_IFS
4318
4319 ;;
4320esac
4321fi
4322CAT=$ac_cv_path_CAT
4323if test -n "$CAT"; then
4324 { echo "$as_me:$LINENO: result: $CAT" >&5
4325echo "${ECHO_T}$CAT" >&6; }
4326else
4327 { echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6; }
4329fi
4330
4331
4332# Extract the first word of "kill", so it can be a program name with args.
4333set dummy kill; ac_word=$2
4334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4336if test "${ac_cv_path_KILL+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 case $KILL in
4340 [\\/]* | ?:[\\/]*)
4341 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4342 ;;
4343 *)
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355done
4356done
4357IFS=$as_save_IFS
4358
4359 ;;
4360esac
4361fi
4362KILL=$ac_cv_path_KILL
4363if test -n "$KILL"; then
4364 { echo "$as_me:$LINENO: result: $KILL" >&5
4365echo "${ECHO_T}$KILL" >&6; }
4366else
4367 { echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6; }
4369fi
4370
4371
4372for ac_prog in perl5 perl
4373do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375set dummy $ac_prog; ac_word=$2
4376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378if test "${ac_cv_path_PERL+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 case $PERL in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4384 ;;
4385 *)
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397done
4398done
4399IFS=$as_save_IFS
4400
4401 ;;
4402esac
4403fi
4404PERL=$ac_cv_path_PERL
4405if test -n "$PERL"; then
4406 { echo "$as_me:$LINENO: result: $PERL" >&5
4407echo "${ECHO_T}$PERL" >&6; }
4408else
4409 { echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6; }
4411fi
4412
4413
4414 test -n "$PERL" && break
4415done
4416
4417# Extract the first word of "sed", so it can be a program name with args.
4418set dummy sed; ac_word=$2
4419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421if test "${ac_cv_path_SED+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424 case $SED in
4425 [\\/]* | ?:[\\/]*)
4426 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4427 ;;
4428 *)
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440done
4441done
4442IFS=$as_save_IFS
4443
4444 ;;
4445esac
4446fi
4447SED=$ac_cv_path_SED
4448if test -n "$SED"; then
4449 { echo "$as_me:$LINENO: result: $SED" >&5
4450echo "${ECHO_T}$SED" >&6; }
4451else
4452 { echo "$as_me:$LINENO: result: no" >&5
4453echo "${ECHO_T}no" >&6; }
4454fi
4455
4456
4457
4458# Extract the first word of "ent", so it can be a program name with args.
4459set dummy ent; ac_word=$2
4460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462if test "${ac_cv_path_ENT+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 case $ENT in
4466 [\\/]* | ?:[\\/]*)
4467 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4468 ;;
4469 *)
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
4482done
4483IFS=$as_save_IFS
4484
4485 ;;
4486esac
4487fi
4488ENT=$ac_cv_path_ENT
4489if test -n "$ENT"; then
4490 { echo "$as_me:$LINENO: result: $ENT" >&5
4491echo "${ECHO_T}$ENT" >&6; }
4492else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
4495fi
4496
4497
4498
4499# Extract the first word of "bash", so it can be a program name with args.
4500set dummy bash; ac_word=$2
4501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 case $TEST_MINUS_S_SH in
4507 [\\/]* | ?:[\\/]*)
4508 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4509 ;;
4510 *)
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522done
4523done
4524IFS=$as_save_IFS
4525
4526 ;;
4527esac
4528fi
4529TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4530if test -n "$TEST_MINUS_S_SH"; then
4531 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4532echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4533else
4534 { echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6; }
4536fi
4537
4538
4539# Extract the first word of "ksh", so it can be a program name with args.
4540set dummy ksh; ac_word=$2
4541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 case $TEST_MINUS_S_SH in
4547 [\\/]* | ?:[\\/]*)
4548 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4549 ;;
4550 *)
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562done
4563done
4564IFS=$as_save_IFS
4565
4566 ;;
4567esac
4568fi
4569TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4570if test -n "$TEST_MINUS_S_SH"; then
4571 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4572echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4573else
4574 { echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6; }
4576fi
4577
4578
4579# Extract the first word of "sh", so it can be a program name with args.
4580set dummy sh; ac_word=$2
4581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586 case $TEST_MINUS_S_SH in
4587 [\\/]* | ?:[\\/]*)
4588 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4589 ;;
4590 *)
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603done
4604IFS=$as_save_IFS
4605
4606 ;;
4607esac
4608fi
4609TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4610if test -n "$TEST_MINUS_S_SH"; then
4611 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4612echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4613else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6; }
4616fi
4617
4618
4619# Extract the first word of "sh", so it can be a program name with args.
4620set dummy sh; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_path_SH+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 case $SH in
4627 [\\/]* | ?:[\\/]*)
4628 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4629 ;;
4630 *)
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642done
4643done
4644IFS=$as_save_IFS
4645
4646 ;;
4647esac
4648fi
4649SH=$ac_cv_path_SH
4650if test -n "$SH"; then
4651 { echo "$as_me:$LINENO: result: $SH" >&5
4652echo "${ECHO_T}$SH" >&6; }
4653else
4654 { echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6; }
4656fi
4657
4658
4659TEST_SHELL=sh
4660
4661
4662# Extract the first word of "groupadd", so it can be a program name with args.
4663set dummy groupadd; ac_word=$2
4664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669 case $PATH_GROUPADD_PROG in
4670 [\\/]* | ?:[\\/]*)
4671 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4672 ;;
4673 *)
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685done
4686done
4687IFS=$as_save_IFS
4688
4689 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4690 ;;
4691esac
4692fi
4693PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4694if test -n "$PATH_GROUPADD_PROG"; then
4695 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4696echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4697else
4698 { echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6; }
4700fi
4701
4702
4703# Extract the first word of "useradd", so it can be a program name with args.
4704set dummy useradd; ac_word=$2
4705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710 case $PATH_USERADD_PROG in
4711 [\\/]* | ?:[\\/]*)
4712 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4713 ;;
4714 *)
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726done
4727done
4728IFS=$as_save_IFS
4729
4730 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4731 ;;
4732esac
4733fi
4734PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4735if test -n "$PATH_USERADD_PROG"; then
4736 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4737echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4738else
4739 { echo "$as_me:$LINENO: result: no" >&5
4740echo "${ECHO_T}no" >&6; }
4741fi
4742
4743
4744# Extract the first word of "pkgmk", so it can be a program name with args.
4745set dummy pkgmk; ac_word=$2
4746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4752 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4753else
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765done
4766done
4767IFS=$as_save_IFS
4768
4769 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4770fi
4771fi
4772MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4773if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4774 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4775echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4776else
4777 { echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6; }
4779fi
4780
4781
4782if test -x /sbin/sh; then
4783 STARTUP_SCRIPT_SHELL=/sbin/sh
4784
4785else
4786 STARTUP_SCRIPT_SHELL=/bin/sh
4787
4788fi
4789
4790# System features
4791# Check whether --enable-largefile was given.
4792if test "${enable_largefile+set}" = set; then
4793 enableval=$enable_largefile;
4794fi
4795
4796if test "$enable_largefile" != no; then
4797
4798 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4799echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4800if test "${ac_cv_sys_largefile_CC+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 ac_cv_sys_largefile_CC=no
4804 if test "$GCC" != yes; then
4805 ac_save_CC=$CC
4806 while :; do
4807 # IRIX 6.2 and later do not support large files by default,
4808 # so use the C compiler's -n32 option if that helps.
4809 cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815#include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4823 ? 1 : -1];
4824int
4825main ()
4826{
4827
4828 ;
4829 return 0;
4830}
4831_ACEOF
4832 rm -f conftest.$ac_objext
4833if { (ac_try="$ac_compile"
4834case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837esac
4838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.$ac_objext; then
4849 break
4850else
4851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854
4855fi
4856
4857rm -f core conftest.err conftest.$ac_objext
4858 CC="$CC -n32"
4859 rm -f conftest.$ac_objext
4860if { (ac_try="$ac_compile"
4861case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864esac
4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_cv_sys_largefile_CC=' -n32'; break
4877else
4878 echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881
4882fi
4883
4884rm -f core conftest.err conftest.$ac_objext
4885 break
4886 done
4887 CC=$ac_save_CC
4888 rm -f conftest.$ac_ext
4889 fi
4890fi
4891{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4892echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4893 if test "$ac_cv_sys_largefile_CC" != no; then
4894 CC=$CC$ac_cv_sys_largefile_CC
4895 fi
4896
4897 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4898echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4899if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902 while :; do
4903 cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#include <sys/types.h>
4910 /* Check that off_t can represent 2**63 - 1 correctly.
4911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4912 since some C++ compilers masquerading as C compilers
4913 incorrectly reject 9223372036854775807. */
4914#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4916 && LARGE_OFF_T % 2147483647 == 1)
4917 ? 1 : -1];
4918int
4919main ()
4920{
4921
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (ac_try="$ac_compile"
4928case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_sys_file_offset_bits=no; break
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948
4949fi
4950
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
4958#define _FILE_OFFSET_BITS 64
4959#include <sys/types.h>
4960 /* Check that off_t can represent 2**63 - 1 correctly.
4961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4962 since some C++ compilers masquerading as C compilers
4963 incorrectly reject 9223372036854775807. */
4964#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4966 && LARGE_OFF_T % 2147483647 == 1)
4967 ? 1 : -1];
4968int
4969main ()
4970{
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext
4977if { (ac_try="$ac_compile"
4978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
4982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 ac_cv_sys_file_offset_bits=64; break
4994else
4995 echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998
4999fi
5000
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cv_sys_file_offset_bits=unknown
5003 break
5004done
5005fi
5006{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5007echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5008case $ac_cv_sys_file_offset_bits in #(
5009 no | unknown) ;;
5010 *)
5011cat >>confdefs.h <<_ACEOF
5012#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5013_ACEOF
5014;;
5015esac
5016rm -f conftest*
5017 if test $ac_cv_sys_file_offset_bits = unknown; then
5018 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5019echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5020if test "${ac_cv_sys_large_files+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 while :; do
5024 cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h. */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h. */
5030#include <sys/types.h>
5031 /* Check that off_t can represent 2**63 - 1 correctly.
5032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5033 since some C++ compilers masquerading as C compilers
5034 incorrectly reject 9223372036854775807. */
5035#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5037 && LARGE_OFF_T % 2147483647 == 1)
5038 ? 1 : -1];
5039int
5040main ()
5041{
5042
5043 ;
5044 return 0;
5045}
5046_ACEOF
5047rm -f conftest.$ac_objext
5048if { (ac_try="$ac_compile"
5049case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_compile") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest.$ac_objext; then
5064 ac_cv_sys_large_files=no; break
5065else
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069
5070fi
5071
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079#define _LARGE_FILES 1
5080#include <sys/types.h>
5081 /* Check that off_t can represent 2**63 - 1 correctly.
5082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5083 since some C++ compilers masquerading as C compilers
5084 incorrectly reject 9223372036854775807. */
5085#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5087 && LARGE_OFF_T % 2147483647 == 1)
5088 ? 1 : -1];
5089int
5090main ()
5091{
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (ac_try="$ac_compile"
5099case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102esac
5103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_cv_sys_large_files=1; break
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119
5120fi
5121
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_sys_large_files=unknown
5124 break
5125done
5126fi
5127{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5128echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5129case $ac_cv_sys_large_files in #(
5130 no | unknown) ;;
5131 *)
5132cat >>confdefs.h <<_ACEOF
5133#define _LARGE_FILES $ac_cv_sys_large_files
5134_ACEOF
5135;;
5136esac
5137rm -f conftest*
5138 fi
5139fi
5140
5141
5142if test -z "$AR" ; then
5143 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5144echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5145 { (exit 1); exit 1; }; }
5146fi
5147
5148# Use LOGIN_PROGRAM from environment if possible
5149if test ! -z "$LOGIN_PROGRAM" ; then
5150
5151cat >>confdefs.h <<_ACEOF
5152#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5153_ACEOF
5154
5155else
5156 # Search for login
5157 # Extract the first word of "login", so it can be a program name with args.
5158set dummy login; ac_word=$2
5159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 case $LOGIN_PROGRAM_FALLBACK in
5165 [\\/]* | ?:[\\/]*)
5166 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5167 ;;
5168 *)
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181done
5182IFS=$as_save_IFS
5183
5184 ;;
5185esac
5186fi
5187LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5188if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5189 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5190echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5191else
5192 { echo "$as_me:$LINENO: result: no" >&5
5193echo "${ECHO_T}no" >&6; }
5194fi
5195
5196
5197 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5198 cat >>confdefs.h <<_ACEOF
5199#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5200_ACEOF
5201
5202 fi
5203fi
5204
5205# Extract the first word of "passwd", so it can be a program name with args.
5206set dummy passwd; ac_word=$2
5207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212 case $PATH_PASSWD_PROG in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5215 ;;
5216 *)
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229done
5230IFS=$as_save_IFS
5231
5232 ;;
5233esac
5234fi
5235PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5236if test -n "$PATH_PASSWD_PROG"; then
5237 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5238echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5239else
5240 { echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6; }
5242fi
5243
5244
5245if test ! -z "$PATH_PASSWD_PROG" ; then
5246
5247cat >>confdefs.h <<_ACEOF
5248#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5249_ACEOF
5250
5251fi
5252
5253if test -z "$LD" ; then
5254 LD=$CC
5255fi
5256
5257
5258{ echo "$as_me:$LINENO: checking for inline" >&5
5259echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5260if test "${ac_cv_c_inline+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 ac_cv_c_inline=no
5264for ac_kw in inline __inline__ __inline; do
5265 cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
5271#ifndef __cplusplus
5272typedef int foo_t;
5273static $ac_kw foo_t static_foo () {return 0; }
5274$ac_kw foo_t foo () {return 0; }
5275#endif
5276
5277_ACEOF
5278rm -f conftest.$ac_objext
5279if { (ac_try="$ac_compile"
5280case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283esac
5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5295 ac_cv_c_inline=$ac_kw
5296else
5297 echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300
5301fi
5302
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 test "$ac_cv_c_inline" != no && break
5305done
5306
5307fi
5308{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5309echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5310
5311
5312case $ac_cv_c_inline in
5313 inline | yes) ;;
5314 *)
5315 case $ac_cv_c_inline in
5316 no) ac_val=;;
5317 *) ac_val=$ac_cv_c_inline;;
5318 esac
5319 cat >>confdefs.h <<_ACEOF
5320#ifndef __cplusplus
5321#define inline $ac_val
5322#endif
5323_ACEOF
5324 ;;
5325esac
5326
5327
5328{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5329echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5330if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h. */
5339#include <limits.h>
5340
5341int
5342main ()
5343{
5344#ifndef LLONG_MAX
5345 (void) LLONG_MAX;
5346#endif
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352rm -f conftest.$ac_objext
5353if { (ac_try="$ac_compile"
5354case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compile") 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } && {
5366 test -z "$ac_c_werror_flag" ||
5367 test ! -s conftest.err
5368 } && test -s conftest.$ac_objext; then
5369 ac_cv_have_decl_LLONG_MAX=yes
5370else
5371 echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 ac_cv_have_decl_LLONG_MAX=no
5375fi
5376
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378fi
5379{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5380echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5381if test $ac_cv_have_decl_LLONG_MAX = yes; then
5382 have_llong_max=1
5383fi
5384
5385
5386use_stack_protector=1
5387
5388# Check whether --with-stackprotect was given.
5389if test "${with_stackprotect+set}" = set; then
5390 withval=$with_stackprotect;
5391 if test "x$withval" = "xno"; then
5392 use_stack_protector=0
5393 fi
5394fi
5395
5396
5397if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5398 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5399 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5400 case $GCC_VER in
5401 1.*) no_attrib_nonnull=1 ;;
5402 2.8* | 2.9*)
5403 CFLAGS="$CFLAGS -Wsign-compare"
5404 no_attrib_nonnull=1
5405 ;;
5406 2.*) no_attrib_nonnull=1 ;;
5407 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5408 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
5409 *) ;;
5410 esac
5411
5412 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5413echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5414 saved_CFLAGS="$CFLAGS"
5415 CFLAGS="$CFLAGS -fno-builtin-memset"
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422
5423#include <string.h>
5424int main(void){char b[10]; memset(b, 0, sizeof(b));}
5425
5426_ACEOF
5427rm -f conftest.$ac_objext conftest$ac_exeext
5428if { (ac_try="$ac_link"
5429case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_link") 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest$ac_exeext &&
5444 $as_test_x conftest$ac_exeext; then
5445 { echo "$as_me:$LINENO: result: yes" >&5
5446echo "${ECHO_T}yes" >&6; }
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 { echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6; }
5453 CFLAGS="$saved_CFLAGS"
5454
5455fi
5456
5457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5458 conftest$ac_exeext conftest.$ac_ext
5459
5460 # -fstack-protector-all doesn't always work for some GCC versions
5461 # and/or platforms, so we test if we can. If it's not supported
5462 # on a given platform gcc will emit a warning so we use -Werror.
5463 if test "x$use_stack_protector" = "x1"; then
5464 for t in -fstack-protector-all -fstack-protector; do
5465 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5466echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5467 saved_CFLAGS="$CFLAGS"
5468 saved_LDFLAGS="$LDFLAGS"
5469 CFLAGS="$CFLAGS $t -Werror"
5470 LDFLAGS="$LDFLAGS $t -Werror"
5471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477
5478#include <stdio.h>
5479int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5480
5481_ACEOF
5482rm -f conftest.$ac_objext conftest$ac_exeext
5483if { (ac_try="$ac_link"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_link") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest$ac_exeext &&
5499 $as_test_x conftest$ac_exeext; then
5500 { echo "$as_me:$LINENO: result: yes" >&5
5501echo "${ECHO_T}yes" >&6; }
5502 CFLAGS="$saved_CFLAGS $t"
5503 LDFLAGS="$saved_LDFLAGS $t"
5504 { echo "$as_me:$LINENO: checking if $t works" >&5
5505echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5506 if test "$cross_compiling" = yes; then
5507 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5508echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5509 break
5510
5511else
5512 cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518
5519#include <stdio.h>
5520int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5521
5522_ACEOF
5523rm -f conftest$ac_exeext
5524if { (ac_try="$ac_link"
5525case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528esac
5529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_link") 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5534 { (case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_try") 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 { echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6; }
5545 break
5546else
5547 echo "$as_me: program exited with status $ac_status" >&5
5548echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551( exit $ac_status )
5552 { echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6; }
5554fi
5555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5556fi
5557
5558
5559
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 { echo "$as_me:$LINENO: result: no" >&5
5565echo "${ECHO_T}no" >&6; }
5566
5567fi
5568
5569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5570 conftest$ac_exeext conftest.$ac_ext
5571 CFLAGS="$saved_CFLAGS"
5572 LDFLAGS="$saved_LDFLAGS"
5573 done
5574 fi
5575
5576 if test -z "$have_llong_max"; then
5577 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5578 unset ac_cv_have_decl_LLONG_MAX
5579 saved_CFLAGS="$CFLAGS"
5580 CFLAGS="$CFLAGS -std=gnu99"
5581 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5582echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5583if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592#include <limits.h>
5593
5594
5595int
5596main ()
5597{
5598#ifndef LLONG_MAX
5599 (void) LLONG_MAX;
5600#endif
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (ac_try="$ac_compile"
5608case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611esac
5612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_have_decl_LLONG_MAX=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_cv_have_decl_LLONG_MAX=no
5629fi
5630
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632fi
5633{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5634echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5635if test $ac_cv_have_decl_LLONG_MAX = yes; then
5636 have_llong_max=1
5637else
5638 CFLAGS="$saved_CFLAGS"
5639fi
5640
5641 fi
5642fi
5643
5644if test "x$no_attrib_nonnull" != "x1" ; then
5645
5646cat >>confdefs.h <<\_ACEOF
5647#define HAVE_ATTRIBUTE__NONNULL__ 1
5648_ACEOF
5649
5650fi
5651
5652
5653# Check whether --with-rpath was given.
5654if test "${with_rpath+set}" = set; then
5655 withval=$with_rpath;
5656 if test "x$withval" = "xno" ; then
5657 need_dash_r=""
5658 fi
5659 if test "x$withval" = "xyes" ; then
5660 need_dash_r=1
5661 fi
5662
5663
5664fi
5665
5666
5667# Allow user to specify flags
5668
5669# Check whether --with-cflags was given.
5670if test "${with_cflags+set}" = set; then
5671 withval=$with_cflags;
5672 if test -n "$withval" && test "x$withval" != "xno" && \
5673 test "x${withval}" != "xyes"; then
5674 CFLAGS="$CFLAGS $withval"
5675 fi
5676
5677
5678fi
5679
5680
5681# Check whether --with-cppflags was given.
5682if test "${with_cppflags+set}" = set; then
5683 withval=$with_cppflags;
5684 if test -n "$withval" && test "x$withval" != "xno" && \
5685 test "x${withval}" != "xyes"; then
5686 CPPFLAGS="$CPPFLAGS $withval"
5687 fi
5688
5689
5690fi
5691
5692
5693# Check whether --with-ldflags was given.
5694if test "${with_ldflags+set}" = set; then
5695 withval=$with_ldflags;
5696 if test -n "$withval" && test "x$withval" != "xno" && \
5697 test "x${withval}" != "xyes"; then
5698 LDFLAGS="$LDFLAGS $withval"
5699 fi
5700
5701
5702fi
5703
5704
5705# Check whether --with-libs was given.
5706if test "${with_libs+set}" = set; then
5707 withval=$with_libs;
5708 if test -n "$withval" && test "x$withval" != "xno" && \
5709 test "x${withval}" != "xyes"; then
5710 LIBS="$LIBS $withval"
5711 fi
5712
5713
5714fi
5715
5716
5717# Check whether --with-Werror was given.
5718if test "${with_Werror+set}" = set; then
5719 withval=$with_Werror;
5720 if test -n "$withval" && test "x$withval" != "xno"; then
5721 werror_flags="-Werror"
5722 if test "x${withval}" != "xyes"; then
5723 werror_flags="$withval"
5724 fi
5725 fi
5726
5727
5728fi
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794for ac_header in \
5795 bstring.h \
5796 crypt.h \
5797 crypto/sha2.h \
5798 dirent.h \
5799 endian.h \
5800 features.h \
5801 fcntl.h \
5802 floatingpoint.h \
5803 getopt.h \
5804 glob.h \
5805 ia.h \
5806 iaf.h \
5807 limits.h \
5808 login.h \
5809 maillock.h \
5810 ndir.h \
5811 net/if_tun.h \
5812 netdb.h \
5813 netgroup.h \
5814 pam/pam_appl.h \
5815 paths.h \
5816 poll.h \
5817 pty.h \
5818 readpassphrase.h \
5819 rpc/types.h \
5820 security/pam_appl.h \
5821 sha2.h \
5822 shadow.h \
5823 stddef.h \
5824 stdint.h \
5825 string.h \
5826 strings.h \
5827 sys/audit.h \
5828 sys/bitypes.h \
5829 sys/bsdtty.h \
5830 sys/cdefs.h \
5831 sys/dir.h \
5832 sys/mman.h \
5833 sys/ndir.h \
5834 sys/poll.h \
5835 sys/prctl.h \
5836 sys/pstat.h \
5837 sys/select.h \
5838 sys/stat.h \
5839 sys/stream.h \
5840 sys/stropts.h \
5841 sys/strtio.h \
5842 sys/statvfs.h \
5843 sys/sysmacros.h \
5844 sys/time.h \
5845 sys/timers.h \
5846 sys/un.h \
5847 time.h \
5848 tmpdir.h \
5849 ttyent.h \
5850 ucred.h \
5851 unistd.h \
5852 usersec.h \
5853 util.h \
5854 utime.h \
5855 utmp.h \
5856 utmpx.h \
5857 vis.h \
5858
5859do
5860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866fi
5867ac_res=`eval echo '${'$as_ac_Header'}'`
5868 { echo "$as_me:$LINENO: result: $ac_res" >&5
5869echo "${ECHO_T}$ac_res" >&6; }
5870else
5871 # Is the header compilable?
5872{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5873echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5874cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h. */
5880$ac_includes_default
5881#include <$ac_header>
5882_ACEOF
5883rm -f conftest.$ac_objext
5884if { (ac_try="$ac_compile"
5885case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_compile") 2>conftest.er1
5891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } && {
5897 test -z "$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5899 } && test -s conftest.$ac_objext; then
5900 ac_header_compiler=yes
5901else
5902 echo "$as_me: failed program was:" >&5
5903sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 ac_header_compiler=no
5906fi
5907
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5910echo "${ECHO_T}$ac_header_compiler" >&6; }
5911
5912# Is the header present?
5913{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5915cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921#include <$ac_header>
5922_ACEOF
5923if { (ac_try="$ac_cpp conftest.$ac_ext"
5924case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } >/dev/null && {
5936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5937 test ! -s conftest.err
5938 }; then
5939 ac_header_preproc=yes
5940else
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_header_preproc=no
5945fi
5946
5947rm -f conftest.err conftest.$ac_ext
5948{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5949echo "${ECHO_T}$ac_header_preproc" >&6; }
5950
5951# So? What about this header?
5952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5953 yes:no: )
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5958 ac_header_preproc=yes
5959 ;;
5960 no:yes:* )
5961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5973 ( cat <<\_ASBOX
5974## ------------------------------------------- ##
5975## Report this to openssh-unix-dev@mindrot.org ##
5976## ------------------------------------------- ##
5977_ASBOX
5978 ) | sed "s/^/$as_me: WARNING: /" >&2
5979 ;;
5980esac
5981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 eval "$as_ac_Header=\$ac_header_preproc"
5987fi
5988ac_res=`eval echo '${'$as_ac_Header'}'`
5989 { echo "$as_me:$LINENO: result: $ac_res" >&5
5990echo "${ECHO_T}$ac_res" >&6; }
5991
5992fi
5993if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996_ACEOF
5997
5998fi
5999
6000done
6001
6002
6003# lastlog.h requires sys/time.h to be included first on Solaris
6004
6005for ac_header in lastlog.h
6006do
6007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019
6020#ifdef HAVE_SYS_TIME_H
6021# include <sys/time.h>
6022#endif
6023
6024
6025#include <$ac_header>
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (ac_try="$ac_compile"
6029case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 eval "$as_ac_Header=yes"
6045else
6046 echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 eval "$as_ac_Header=no"
6050fi
6051
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
6054ac_res=`eval echo '${'$as_ac_Header'}'`
6055 { echo "$as_me:$LINENO: result: $ac_res" >&5
6056echo "${ECHO_T}$ac_res" >&6; }
6057if test `eval echo '${'$as_ac_Header'}'` = yes; then
6058 cat >>confdefs.h <<_ACEOF
6059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6060_ACEOF
6061
6062fi
6063
6064done
6065
6066
6067# sys/ptms.h requires sys/stream.h to be included first on Solaris
6068
6069for ac_header in sys/ptms.h
6070do
6071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6072{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
6083
6084#ifdef HAVE_SYS_STREAM_H
6085# include <sys/stream.h>
6086#endif
6087
6088
6089#include <$ac_header>
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest.$ac_objext; then
6108 eval "$as_ac_Header=yes"
6109else
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 eval "$as_ac_Header=no"
6114fi
6115
6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117fi
6118ac_res=`eval echo '${'$as_ac_Header'}'`
6119 { echo "$as_me:$LINENO: result: $ac_res" >&5
6120echo "${ECHO_T}$ac_res" >&6; }
6121if test `eval echo '${'$as_ac_Header'}'` = yes; then
6122 cat >>confdefs.h <<_ACEOF
6123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124_ACEOF
6125
6126fi
6127
6128done
6129
6130
6131# login_cap.h requires sys/types.h on NetBSD
6132
6133for ac_header in login_cap.h
6134do
6135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147
6148#include <sys/types.h>
6149
6150
6151#include <$ac_header>
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (ac_try="$ac_compile"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.$ac_objext; then
6170 eval "$as_ac_Header=yes"
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 eval "$as_ac_Header=no"
6176fi
6177
6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179fi
6180ac_res=`eval echo '${'$as_ac_Header'}'`
6181 { echo "$as_me:$LINENO: result: $ac_res" >&5
6182echo "${ECHO_T}$ac_res" >&6; }
6183if test `eval echo '${'$as_ac_Header'}'` = yes; then
6184 cat >>confdefs.h <<_ACEOF
6185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6186_ACEOF
6187
6188fi
6189
6190done
6191
6192
6193# older BSDs need sys/param.h before sys/mount.h
6194
6195for ac_header in sys/mount.h
6196do
6197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
6209
6210#include <sys/param.h>
6211
6212
6213#include <$ac_header>
6214_ACEOF
6215rm -f conftest.$ac_objext
6216if { (ac_try="$ac_compile"
6217case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 eval "$as_ac_Header=yes"
6233else
6234 echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 eval "$as_ac_Header=no"
6238fi
6239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241fi
6242ac_res=`eval echo '${'$as_ac_Header'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244echo "${ECHO_T}$ac_res" >&6; }
6245if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248_ACEOF
6249
6250fi
6251
6252done
6253
6254
6255# Messages for features tested for in target-specific section
6256SIA_MSG="no"
6257SPC_MSG="no"
6258
6259# Check for some target-specific stuff
6260case "$host" in
6261*-*-aix*)
6262 # Some versions of VAC won't allow macro redefinitions at
6263 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6264 # particularly with older versions of vac or xlc.
6265 # It also throws errors about null macro argments, but these are
6266 # not fatal.
6267 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6268echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6269 cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275
6276#define testmacro foo
6277#define testmacro bar
6278int main(void) { exit(0); }
6279
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.$ac_objext; then
6298 { echo "$as_me:$LINENO: result: yes" >&5
6299echo "${ECHO_T}yes" >&6; }
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 { echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6; }
6306 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6307 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6308 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6309 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6310
6311
6312fi
6313
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315
6316 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6317echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6318 if (test -z "$blibpath"); then
6319 blibpath="/usr/lib:/lib"
6320 fi
6321 saved_LDFLAGS="$LDFLAGS"
6322 if test "$GCC" = "yes"; then
6323 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6324 else
6325 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6326 fi
6327 for tryflags in $flags ;do
6328 if (test -z "$blibflags"); then
6329 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6330 cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336
6337int
6338main ()
6339{
6340
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345rm -f conftest.$ac_objext conftest$ac_exeext
6346if { (ac_try="$ac_link"
6347case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_link") 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest$ac_exeext &&
6362 $as_test_x conftest$ac_exeext; then
6363 blibflags=$tryflags
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368
6369fi
6370
6371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6372 conftest$ac_exeext conftest.$ac_ext
6373 fi
6374 done
6375 if (test -z "$blibflags"); then
6376 { echo "$as_me:$LINENO: result: not found" >&5
6377echo "${ECHO_T}not found" >&6; }
6378 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6379echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6380 { (exit 1); exit 1; }; }
6381 else
6382 { echo "$as_me:$LINENO: result: $blibflags" >&5
6383echo "${ECHO_T}$blibflags" >&6; }
6384 fi
6385 LDFLAGS="$saved_LDFLAGS"
6386 { echo "$as_me:$LINENO: checking for authenticate" >&5
6387echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6388if test "${ac_cv_func_authenticate+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 cat >conftest.$ac_ext <<_ACEOF
6392/* confdefs.h. */
6393_ACEOF
6394cat confdefs.h >>conftest.$ac_ext
6395cat >>conftest.$ac_ext <<_ACEOF
6396/* end confdefs.h. */
6397/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6399#define authenticate innocuous_authenticate
6400
6401/* System header to define __stub macros and hopefully few prototypes,
6402 which can conflict with char authenticate (); below.
6403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404 <limits.h> exists even on freestanding compilers. */
6405
6406#ifdef __STDC__
6407# include <limits.h>
6408#else
6409# include <assert.h>
6410#endif
6411
6412#undef authenticate
6413
6414/* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417#ifdef __cplusplus
6418extern "C"
6419#endif
6420char authenticate ();
6421/* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424#if defined __stub_authenticate || defined __stub___authenticate
6425choke me
6426#endif
6427
6428int
6429main ()
6430{
6431return authenticate ();
6432 ;
6433 return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext conftest$ac_exeext
6437if { (ac_try="$ac_link"
6438case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_link") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest$ac_exeext &&
6453 $as_test_x conftest$ac_exeext; then
6454 ac_cv_func_authenticate=yes
6455else
6456 echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_cv_func_authenticate=no
6460fi
6461
6462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6463 conftest$ac_exeext conftest.$ac_ext
6464fi
6465{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6466echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6467if test $ac_cv_func_authenticate = yes; then
6468
6469cat >>confdefs.h <<\_ACEOF
6470#define WITH_AIXAUTHENTICATE 1
6471_ACEOF
6472
6473else
6474 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6475echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6476if test "${ac_cv_lib_s_authenticate+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 ac_check_lib_save_LIBS=$LIBS
6480LIBS="-ls $LIBS"
6481cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487
6488/* Override any GCC internal prototype to avoid an error.
6489 Use char because int might match the return type of a GCC
6490 builtin and then its argument prototype would still apply. */
6491#ifdef __cplusplus
6492extern "C"
6493#endif
6494char authenticate ();
6495int
6496main ()
6497{
6498return authenticate ();
6499 ;
6500 return 0;
6501}
6502_ACEOF
6503rm -f conftest.$ac_objext conftest$ac_exeext
6504if { (ac_try="$ac_link"
6505case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508esac
6509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_link") 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && {
6517 test -z "$ac_c_werror_flag" ||
6518 test ! -s conftest.err
6519 } && test -s conftest$ac_exeext &&
6520 $as_test_x conftest$ac_exeext; then
6521 ac_cv_lib_s_authenticate=yes
6522else
6523 echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 ac_cv_lib_s_authenticate=no
6527fi
6528
6529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6530 conftest$ac_exeext conftest.$ac_ext
6531LIBS=$ac_check_lib_save_LIBS
6532fi
6533{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6534echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6535if test $ac_cv_lib_s_authenticate = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537#define WITH_AIXAUTHENTICATE 1
6538_ACEOF
6539
6540 LIBS="$LIBS -ls"
6541
6542fi
6543
6544
6545fi
6546
6547 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6548echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6549if test "${ac_cv_have_decl_authenticate+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558#include <usersec.h>
6559
6560int
6561main ()
6562{
6563#ifndef authenticate
6564 (void) authenticate;
6565#endif
6566
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571rm -f conftest.$ac_objext
6572if { (ac_try="$ac_compile"
6573case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576esac
6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_cv_have_decl_authenticate=yes
6589else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_have_decl_authenticate=no
6594fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597fi
6598{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6599echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6600if test $ac_cv_have_decl_authenticate = yes; then
6601
6602cat >>confdefs.h <<_ACEOF
6603#define HAVE_DECL_AUTHENTICATE 1
6604_ACEOF
6605
6606
6607else
6608 cat >>confdefs.h <<_ACEOF
6609#define HAVE_DECL_AUTHENTICATE 0
6610_ACEOF
6611
6612
6613fi
6614{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6615echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6616if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625#include <usersec.h>
6626
6627int
6628main ()
6629{
6630#ifndef loginrestrictions
6631 (void) loginrestrictions;
6632#endif
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
6638rm -f conftest.$ac_objext
6639if { (ac_try="$ac_compile"
6640case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643esac
6644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest.$ac_objext; then
6655 ac_cv_have_decl_loginrestrictions=yes
6656else
6657 echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_cv_have_decl_loginrestrictions=no
6661fi
6662
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6666echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6667if test $ac_cv_have_decl_loginrestrictions = yes; then
6668
6669cat >>confdefs.h <<_ACEOF
6670#define HAVE_DECL_LOGINRESTRICTIONS 1
6671_ACEOF
6672
6673
6674else
6675 cat >>confdefs.h <<_ACEOF
6676#define HAVE_DECL_LOGINRESTRICTIONS 0
6677_ACEOF
6678
6679
6680fi
6681{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6682echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6683if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686 cat >conftest.$ac_ext <<_ACEOF
6687/* confdefs.h. */
6688_ACEOF
6689cat confdefs.h >>conftest.$ac_ext
6690cat >>conftest.$ac_ext <<_ACEOF
6691/* end confdefs.h. */
6692#include <usersec.h>
6693
6694int
6695main ()
6696{
6697#ifndef loginsuccess
6698 (void) loginsuccess;
6699#endif
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705rm -f conftest.$ac_objext
6706if { (ac_try="$ac_compile"
6707case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_have_decl_loginsuccess=yes
6723else
6724 echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 ac_cv_have_decl_loginsuccess=no
6728fi
6729
6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731fi
6732{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6733echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6734if test $ac_cv_have_decl_loginsuccess = yes; then
6735
6736cat >>confdefs.h <<_ACEOF
6737#define HAVE_DECL_LOGINSUCCESS 1
6738_ACEOF
6739
6740
6741else
6742 cat >>confdefs.h <<_ACEOF
6743#define HAVE_DECL_LOGINSUCCESS 0
6744_ACEOF
6745
6746
6747fi
6748{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6749echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6750if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759#include <usersec.h>
6760
6761int
6762main ()
6763{
6764#ifndef passwdexpired
6765 (void) passwdexpired;
6766#endif
6767
6768 ;
6769 return 0;
6770}
6771_ACEOF
6772rm -f conftest.$ac_objext
6773if { (ac_try="$ac_compile"
6774case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777esac
6778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6789 ac_cv_have_decl_passwdexpired=yes
6790else
6791 echo "$as_me: failed program was:" >&5
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_have_decl_passwdexpired=no
6795fi
6796
6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798fi
6799{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6800echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6801if test $ac_cv_have_decl_passwdexpired = yes; then
6802
6803cat >>confdefs.h <<_ACEOF
6804#define HAVE_DECL_PASSWDEXPIRED 1
6805_ACEOF
6806
6807
6808else
6809 cat >>confdefs.h <<_ACEOF
6810#define HAVE_DECL_PASSWDEXPIRED 0
6811_ACEOF
6812
6813
6814fi
6815{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6816echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6817if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h. */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h. */
6826#include <usersec.h>
6827
6828int
6829main ()
6830{
6831#ifndef setauthdb
6832 (void) setauthdb;
6833#endif
6834
6835 ;
6836 return 0;
6837}
6838_ACEOF
6839rm -f conftest.$ac_objext
6840if { (ac_try="$ac_compile"
6841case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844esac
6845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_compile") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
6856 ac_cv_have_decl_setauthdb=yes
6857else
6858 echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861 ac_cv_have_decl_setauthdb=no
6862fi
6863
6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865fi
6866{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6867echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6868if test $ac_cv_have_decl_setauthdb = yes; then
6869
6870cat >>confdefs.h <<_ACEOF
6871#define HAVE_DECL_SETAUTHDB 1
6872_ACEOF
6873
6874
6875else
6876 cat >>confdefs.h <<_ACEOF
6877#define HAVE_DECL_SETAUTHDB 0
6878_ACEOF
6879
6880
6881fi
6882
6883
6884 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6885echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6886if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 cat >conftest.$ac_ext <<_ACEOF
6890/* confdefs.h. */
6891_ACEOF
6892cat confdefs.h >>conftest.$ac_ext
6893cat >>conftest.$ac_ext <<_ACEOF
6894/* end confdefs.h. */
6895#include <usersec.h>
6896
6897
6898int
6899main ()
6900{
6901#ifndef loginfailed
6902 (void) loginfailed;
6903#endif
6904
6905 ;
6906 return 0;
6907}
6908_ACEOF
6909rm -f conftest.$ac_objext
6910if { (ac_try="$ac_compile"
6911case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914esac
6915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_compile") 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest.$ac_objext; then
6926 ac_cv_have_decl_loginfailed=yes
6927else
6928 echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ac_cv_have_decl_loginfailed=no
6932fi
6933
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6937echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6938if test $ac_cv_have_decl_loginfailed = yes; then
6939
6940cat >>confdefs.h <<_ACEOF
6941#define HAVE_DECL_LOGINFAILED 1
6942_ACEOF
6943
6944{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6945echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6946 cat >conftest.$ac_ext <<_ACEOF
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
6952#include <usersec.h>
6953int
6954main ()
6955{
6956(void)loginfailed("user","host","tty",0);
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext
6962if { (ac_try="$ac_compile"
6963case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966esac
6967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 { echo "$as_me:$LINENO: result: yes" >&5
6979echo "${ECHO_T}yes" >&6; }
6980
6981cat >>confdefs.h <<\_ACEOF
6982#define AIX_LOGINFAILED_4ARG 1
6983_ACEOF
6984
6985else
6986 echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991
6992fi
6993
6994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995else
6996 cat >>confdefs.h <<_ACEOF
6997#define HAVE_DECL_LOGINFAILED 0
6998_ACEOF
6999
7000
7001fi
7002
7003
7004
7005
7006for ac_func in getgrset setauthdb
7007do
7008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7009{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013else
7014 cat >conftest.$ac_ext <<_ACEOF
7015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
7020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7022#define $ac_func innocuous_$ac_func
7023
7024/* System header to define __stub macros and hopefully few prototypes,
7025 which can conflict with char $ac_func (); below.
7026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7027 <limits.h> exists even on freestanding compilers. */
7028
7029#ifdef __STDC__
7030# include <limits.h>
7031#else
7032# include <assert.h>
7033#endif
7034
7035#undef $ac_func
7036
7037/* Override any GCC internal prototype to avoid an error.
7038 Use char because int might match the return type of a GCC
7039 builtin and then its argument prototype would still apply. */
7040#ifdef __cplusplus
7041extern "C"
7042#endif
7043char $ac_func ();
7044/* The GNU C library defines this for functions which it implements
7045 to always fail with ENOSYS. Some functions are actually named
7046 something starting with __ and the normal name is an alias. */
7047#if defined __stub_$ac_func || defined __stub___$ac_func
7048choke me
7049#endif
7050
7051int
7052main ()
7053{
7054return $ac_func ();
7055 ;
7056 return 0;
7057}
7058_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext
7060if { (ac_try="$ac_link"
7061case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
7065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_link") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest$ac_exeext &&
7076 $as_test_x conftest$ac_exeext; then
7077 eval "$as_ac_var=yes"
7078else
7079 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 eval "$as_ac_var=no"
7083fi
7084
7085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7086 conftest$ac_exeext conftest.$ac_ext
7087fi
7088ac_res=`eval echo '${'$as_ac_var'}'`
7089 { echo "$as_me:$LINENO: result: $ac_res" >&5
7090echo "${ECHO_T}$ac_res" >&6; }
7091if test `eval echo '${'$as_ac_var'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094_ACEOF
7095
7096fi
7097done
7098
7099 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7100echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7101if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104 cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110 #include <limits.h>
7111 #include <fcntl.h>
7112
7113
7114int
7115main ()
7116{
7117#ifndef F_CLOSEM
7118 (void) F_CLOSEM;
7119#endif
7120
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (ac_try="$ac_compile"
7127case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130esac
7131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 ac_cv_have_decl_F_CLOSEM=yes
7143else
7144 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 ac_cv_have_decl_F_CLOSEM=no
7148fi
7149
7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151fi
7152{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7153echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7154if test $ac_cv_have_decl_F_CLOSEM = yes; then
7155
7156cat >>confdefs.h <<\_ACEOF
7157#define HAVE_FCNTL_CLOSEM 1
7158_ACEOF
7159
7160fi
7161
7162 check_for_aix_broken_getaddrinfo=1
7163
7164cat >>confdefs.h <<\_ACEOF
7165#define BROKEN_REALPATH 1
7166_ACEOF
7167
7168
7169cat >>confdefs.h <<\_ACEOF
7170#define SETEUID_BREAKS_SETUID 1
7171_ACEOF
7172
7173
7174cat >>confdefs.h <<\_ACEOF
7175#define BROKEN_SETREUID 1
7176_ACEOF
7177
7178
7179cat >>confdefs.h <<\_ACEOF
7180#define BROKEN_SETREGID 1
7181_ACEOF
7182
7183
7184cat >>confdefs.h <<\_ACEOF
7185#define DISABLE_LASTLOG 1
7186_ACEOF
7187
7188
7189cat >>confdefs.h <<\_ACEOF
7190#define LOGIN_NEEDS_UTMPX 1
7191_ACEOF
7192
7193
7194cat >>confdefs.h <<\_ACEOF
7195#define SPT_TYPE SPT_REUSEARGV
7196_ACEOF
7197
7198
7199cat >>confdefs.h <<\_ACEOF
7200#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7201_ACEOF
7202
7203
7204cat >>confdefs.h <<\_ACEOF
7205#define PTY_ZEROREAD 1
7206_ACEOF
7207
7208 ;;
7209*-*-cygwin*)
7210 check_for_libcrypt_later=1
7211 LIBS="$LIBS /usr/lib/textreadmode.o"
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_CYGWIN 1
7215_ACEOF
7216
7217
7218cat >>confdefs.h <<\_ACEOF
7219#define USE_PIPES 1
7220_ACEOF
7221
7222
7223cat >>confdefs.h <<\_ACEOF
7224#define DISABLE_SHADOW 1
7225_ACEOF
7226
7227
7228cat >>confdefs.h <<\_ACEOF
7229#define NO_X11_UNIX_SOCKETS 1
7230_ACEOF
7231
7232
7233cat >>confdefs.h <<\_ACEOF
7234#define NO_IPPORT_RESERVED_CONCEPT 1
7235_ACEOF
7236
7237
7238cat >>confdefs.h <<\_ACEOF
7239#define DISABLE_FD_PASSING 1
7240_ACEOF
7241
7242
7243cat >>confdefs.h <<\_ACEOF
7244#define SSH_IOBUFSZ 65535
7245_ACEOF
7246
7247 ;;
7248*-*-dgux*)
7249
7250cat >>confdefs.h <<\_ACEOF
7251#define IP_TOS_IS_BROKEN 1
7252_ACEOF
7253
7254 cat >>confdefs.h <<\_ACEOF
7255#define SETEUID_BREAKS_SETUID 1
7256_ACEOF
7257
7258 cat >>confdefs.h <<\_ACEOF
7259#define BROKEN_SETREUID 1
7260_ACEOF
7261
7262 cat >>confdefs.h <<\_ACEOF
7263#define BROKEN_SETREGID 1
7264_ACEOF
7265
7266 ;;
7267*-*-darwin*)
7268 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7269echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7270 if test "$cross_compiling" = yes; then
7271 { echo "$as_me:$LINENO: result: assume it is working" >&5
7272echo "${ECHO_T}assume it is working" >&6; }
7273else
7274 cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280#include <mach-o/dyld.h>
7281main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7282 exit(0);
7283 else
7284 exit(1);
7285}
7286_ACEOF
7287rm -f conftest$ac_exeext
7288if { (ac_try="$ac_link"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7298 { (case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
7302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_try") 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 { echo "$as_me:$LINENO: result: working" >&5
7308echo "${ECHO_T}working" >&6; }
7309else
7310 echo "$as_me: program exited with status $ac_status" >&5
7311echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314( exit $ac_status )
7315{ echo "$as_me:$LINENO: result: buggy" >&5
7316echo "${ECHO_T}buggy" >&6; }
7317
7318cat >>confdefs.h <<\_ACEOF
7319#define BROKEN_GETADDRINFO 1
7320_ACEOF
7321
7322fi
7323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324fi
7325
7326
7327 cat >>confdefs.h <<\_ACEOF
7328#define SETEUID_BREAKS_SETUID 1
7329_ACEOF
7330
7331 cat >>confdefs.h <<\_ACEOF
7332#define BROKEN_SETREUID 1
7333_ACEOF
7334
7335 cat >>confdefs.h <<\_ACEOF
7336#define BROKEN_SETREGID 1
7337_ACEOF
7338
7339
7340cat >>confdefs.h <<\_ACEOF
7341#define BROKEN_GLOB 1
7342_ACEOF
7343
7344
7345cat >>confdefs.h <<_ACEOF
7346#define BIND_8_COMPAT 1
7347_ACEOF
7348
7349
7350cat >>confdefs.h <<\_ACEOF
7351#define SSH_TUN_FREEBSD 1
7352_ACEOF
7353
7354
7355cat >>confdefs.h <<\_ACEOF
7356#define SSH_TUN_COMPAT_AF 1
7357_ACEOF
7358
7359
7360cat >>confdefs.h <<\_ACEOF
7361#define SSH_TUN_PREPEND_AF 1
7362_ACEOF
7363
7364
7365 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7366echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7367if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369else
7370 cat >conftest.$ac_ext <<_ACEOF
7371/* confdefs.h. */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h. */
7376$ac_includes_default
7377int
7378main ()
7379{
7380#ifndef AU_IPv4
7381 (void) AU_IPv4;
7382#endif
7383
7384 ;
7385 return 0;
7386}
7387_ACEOF
7388rm -f conftest.$ac_objext
7389if { (ac_try="$ac_compile"
7390case "(($ac_try" in
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7393esac
7394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest.$ac_objext; then
7405 ac_cv_have_decl_AU_IPv4=yes
7406else
7407 echo "$as_me: failed program was:" >&5
7408sed 's/^/| /' conftest.$ac_ext >&5
7409
7410 ac_cv_have_decl_AU_IPv4=no
7411fi
7412
7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414fi
7415{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7416echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7417if test $ac_cv_have_decl_AU_IPv4 = yes; then
7418 :
7419else
7420
7421cat >>confdefs.h <<\_ACEOF
7422#define AU_IPv4 0
7423_ACEOF
7424
7425 #include <bsm/audit.h>
7426
7427cat >>confdefs.h <<\_ACEOF
7428#define LASTLOG_WRITE_PUTUTXLINE 1
7429_ACEOF
7430
7431
7432fi
7433
7434 ;;
7435*-*-dragonfly*)
7436 SSHDLIBS="$SSHDLIBS -lcrypt"
7437 ;;
7438*-*-hpux*)
7439 # first we define all of the options common to all HP-UX releases
7440 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7441 IPADDR_IN_DISPLAY=yes
7442 cat >>confdefs.h <<\_ACEOF
7443#define USE_PIPES 1
7444_ACEOF
7445
7446
7447cat >>confdefs.h <<\_ACEOF
7448#define LOGIN_NO_ENDOPT 1
7449_ACEOF
7450
7451 cat >>confdefs.h <<\_ACEOF
7452#define LOGIN_NEEDS_UTMPX 1
7453_ACEOF
7454
7455
7456cat >>confdefs.h <<\_ACEOF
7457#define LOCKED_PASSWD_STRING "*"
7458_ACEOF
7459
7460 cat >>confdefs.h <<\_ACEOF
7461#define SPT_TYPE SPT_PSTAT
7462_ACEOF
7463
7464 MAIL="/var/mail/username"
7465 LIBS="$LIBS -lsec"
7466
7467{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7468echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7469if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472 ac_check_lib_save_LIBS=$LIBS
7473LIBS="-lxnet $LIBS"
7474cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h. */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h. */
7480
7481/* Override any GCC internal prototype to avoid an error.
7482 Use char because int might match the return type of a GCC
7483 builtin and then its argument prototype would still apply. */
7484#ifdef __cplusplus
7485extern "C"
7486#endif
7487char t_error ();
7488int
7489main ()
7490{
7491return t_error ();
7492 ;
7493 return 0;
7494}
7495_ACEOF
7496rm -f conftest.$ac_objext conftest$ac_exeext
7497if { (ac_try="$ac_link"
7498case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
7502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_link") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest$ac_exeext &&
7513 $as_test_x conftest$ac_exeext; then
7514 ac_cv_lib_xnet_t_error=yes
7515else
7516 echo "$as_me: failed program was:" >&5
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 ac_cv_lib_xnet_t_error=no
7520fi
7521
7522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7523 conftest$ac_exeext conftest.$ac_ext
7524LIBS=$ac_check_lib_save_LIBS
7525fi
7526{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7527echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7528if test $ac_cv_lib_xnet_t_error = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530#define HAVE_LIBXNET 1
7531_ACEOF
7532
7533 LIBS="-lxnet $LIBS"
7534
7535else
7536 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7537echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7538 { (exit 1); exit 1; }; }
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
7551cat >>confdefs.h <<\_ACEOF
7552#define PAM_SUN_CODEBASE 1
7553_ACEOF
7554
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define DISABLE_UTMP 1
7558_ACEOF
7559
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define USE_BTMP 1
7563_ACEOF
7564
7565 check_for_hpux_broken_getaddrinfo=1
7566 check_for_conflicting_getspnam=1
7567 ;;
7568 esac
7569
7570 # lastly, we define options specific to minor releases
7571 case "$host" in
7572 *-*-hpux10.26)
7573
7574cat >>confdefs.h <<\_ACEOF
7575#define HAVE_SECUREWARE 1
7576_ACEOF
7577
7578 disable_ptmx_check=yes
7579 LIBS="$LIBS -lsecpw"
7580 ;;
7581 esac
7582 ;;
7583*-*-irix5*)
7584 PATH="$PATH:/usr/etc"
7585
7586cat >>confdefs.h <<\_ACEOF
7587#define BROKEN_INET_NTOA 1
7588_ACEOF
7589
7590 cat >>confdefs.h <<\_ACEOF
7591#define SETEUID_BREAKS_SETUID 1
7592_ACEOF
7593
7594 cat >>confdefs.h <<\_ACEOF
7595#define BROKEN_SETREUID 1
7596_ACEOF
7597
7598 cat >>confdefs.h <<\_ACEOF
7599#define BROKEN_SETREGID 1
7600_ACEOF
7601
7602
7603cat >>confdefs.h <<\_ACEOF
7604#define WITH_ABBREV_NO_TTY 1
7605_ACEOF
7606
7607 cat >>confdefs.h <<\_ACEOF
7608#define LOCKED_PASSWD_STRING "*LK*"
7609_ACEOF
7610
7611 ;;
7612*-*-irix6*)
7613 PATH="$PATH:/usr/etc"
7614
7615cat >>confdefs.h <<\_ACEOF
7616#define WITH_IRIX_ARRAY 1
7617_ACEOF
7618
7619
7620cat >>confdefs.h <<\_ACEOF
7621#define WITH_IRIX_PROJECT 1
7622_ACEOF
7623
7624
7625cat >>confdefs.h <<\_ACEOF
7626#define WITH_IRIX_AUDIT 1
7627_ACEOF
7628
7629 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7630echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7631if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 cat >conftest.$ac_ext <<_ACEOF
7635/* confdefs.h. */
7636_ACEOF
7637cat confdefs.h >>conftest.$ac_ext
7638cat >>conftest.$ac_ext <<_ACEOF
7639/* end confdefs.h. */
7640/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7642#define jlimit_startjob innocuous_jlimit_startjob
7643
7644/* System header to define __stub macros and hopefully few prototypes,
7645 which can conflict with char jlimit_startjob (); below.
7646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647 <limits.h> exists even on freestanding compilers. */
7648
7649#ifdef __STDC__
7650# include <limits.h>
7651#else
7652# include <assert.h>
7653#endif
7654
7655#undef jlimit_startjob
7656
7657/* Override any GCC internal prototype to avoid an error.
7658 Use char because int might match the return type of a GCC
7659 builtin and then its argument prototype would still apply. */
7660#ifdef __cplusplus
7661extern "C"
7662#endif
7663char jlimit_startjob ();
7664/* The GNU C library defines this for functions which it implements
7665 to always fail with ENOSYS. Some functions are actually named
7666 something starting with __ and the normal name is an alias. */
7667#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7668choke me
7669#endif
7670
7671int
7672main ()
7673{
7674return jlimit_startjob ();
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (ac_try="$ac_link"
7681case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684esac
7685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_link") 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest$ac_exeext &&
7696 $as_test_x conftest$ac_exeext; then
7697 ac_cv_func_jlimit_startjob=yes
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 ac_cv_func_jlimit_startjob=no
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7706 conftest$ac_exeext conftest.$ac_ext
7707fi
7708{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7709echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7710if test $ac_cv_func_jlimit_startjob = yes; then
7711
7712cat >>confdefs.h <<\_ACEOF
7713#define WITH_IRIX_JOBS 1
7714_ACEOF
7715
7716fi
7717
7718 cat >>confdefs.h <<\_ACEOF
7719#define BROKEN_INET_NTOA 1
7720_ACEOF
7721
7722 cat >>confdefs.h <<\_ACEOF
7723#define SETEUID_BREAKS_SETUID 1
7724_ACEOF
7725
7726 cat >>confdefs.h <<\_ACEOF
7727#define BROKEN_SETREUID 1
7728_ACEOF
7729
7730 cat >>confdefs.h <<\_ACEOF
7731#define BROKEN_SETREGID 1
7732_ACEOF
7733
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define BROKEN_UPDWTMPX 1
7737_ACEOF
7738
7739 cat >>confdefs.h <<\_ACEOF
7740#define WITH_ABBREV_NO_TTY 1
7741_ACEOF
7742
7743 cat >>confdefs.h <<\_ACEOF
7744#define LOCKED_PASSWD_STRING "*LK*"
7745_ACEOF
7746
7747 ;;
7748*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7749 check_for_libcrypt_later=1
7750 cat >>confdefs.h <<\_ACEOF
7751#define PAM_TTY_KLUDGE 1
7752_ACEOF
7753
7754 cat >>confdefs.h <<\_ACEOF
7755#define LOCKED_PASSWD_PREFIX "!"
7756_ACEOF
7757
7758 cat >>confdefs.h <<\_ACEOF
7759#define SPT_TYPE SPT_REUSEARGV
7760_ACEOF
7761
7762
7763cat >>confdefs.h <<\_ACEOF
7764#define _PATH_BTMP "/var/log/btmp"
7765_ACEOF
7766
7767
7768cat >>confdefs.h <<\_ACEOF
7769#define USE_BTMP 1
7770_ACEOF
7771
7772 ;;
7773*-*-linux*)
7774 no_dev_ptmx=1
7775 check_for_libcrypt_later=1
7776 check_for_openpty_ctty_bug=1
7777
7778cat >>confdefs.h <<\_ACEOF
7779#define PAM_TTY_KLUDGE 1
7780_ACEOF
7781
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define LOCKED_PASSWD_PREFIX "!"
7785_ACEOF
7786
7787 cat >>confdefs.h <<\_ACEOF
7788#define SPT_TYPE SPT_REUSEARGV
7789_ACEOF
7790
7791
7792cat >>confdefs.h <<\_ACEOF
7793#define LINK_OPNOTSUPP_ERRNO EPERM
7794_ACEOF
7795
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define _PATH_BTMP "/var/log/btmp"
7799_ACEOF
7800
7801 cat >>confdefs.h <<\_ACEOF
7802#define USE_BTMP 1
7803_ACEOF
7804
7805
7806cat >>confdefs.h <<\_ACEOF
7807#define LINUX_OOM_ADJUST 1
7808_ACEOF
7809
7810 inet6_default_4in6=yes
7811 case `uname -r` in
7812 1.*|2.0.*)
7813
7814cat >>confdefs.h <<\_ACEOF
7815#define BROKEN_CMSG_TYPE 1
7816_ACEOF
7817
7818 ;;
7819 esac
7820 # tun(4) forwarding compat code
7821
7822for ac_header in linux/if_tun.h
7823do
7824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830fi
7831ac_res=`eval echo '${'$as_ac_Header'}'`
7832 { echo "$as_me:$LINENO: result: $ac_res" >&5
7833echo "${ECHO_T}$ac_res" >&6; }
7834else
7835 # Is the header compilable?
7836{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7838cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
7844$ac_includes_default
7845#include <$ac_header>
7846_ACEOF
7847rm -f conftest.$ac_objext
7848if { (ac_try="$ac_compile"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 ac_header_compiler=yes
7865else
7866 echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_header_compiler=no
7870fi
7871
7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7874echo "${ECHO_T}$ac_header_compiler" >&6; }
7875
7876# Is the header present?
7877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7879cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885#include <$ac_header>
7886_ACEOF
7887if { (ac_try="$ac_cpp conftest.$ac_ext"
7888case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } >/dev/null && {
7900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7901 test ! -s conftest.err
7902 }; then
7903 ac_header_preproc=yes
7904else
7905 echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_header_preproc=no
7909fi
7910
7911rm -f conftest.err conftest.$ac_ext
7912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7913echo "${ECHO_T}$ac_header_preproc" >&6; }
7914
7915# So? What about this header?
7916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7917 yes:no: )
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7922 ac_header_preproc=yes
7923 ;;
7924 no:yes:* )
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7937 ( cat <<\_ASBOX
7938## ------------------------------------------- ##
7939## Report this to openssh-unix-dev@mindrot.org ##
7940## ------------------------------------------- ##
7941_ASBOX
7942 ) | sed "s/^/$as_me: WARNING: /" >&2
7943 ;;
7944esac
7945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 eval "$as_ac_Header=\$ac_header_preproc"
7951fi
7952ac_res=`eval echo '${'$as_ac_Header'}'`
7953 { echo "$as_me:$LINENO: result: $ac_res" >&5
7954echo "${ECHO_T}$ac_res" >&6; }
7955
7956fi
7957if test `eval echo '${'$as_ac_Header'}'` = yes; then
7958 cat >>confdefs.h <<_ACEOF
7959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960_ACEOF
7961
7962fi
7963
7964done
7965
7966 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7967
7968cat >>confdefs.h <<\_ACEOF
7969#define SSH_TUN_LINUX 1
7970_ACEOF
7971
7972
7973cat >>confdefs.h <<\_ACEOF
7974#define SSH_TUN_COMPAT_AF 1
7975_ACEOF
7976
7977
7978cat >>confdefs.h <<\_ACEOF
7979#define SSH_TUN_PREPEND_AF 1
7980_ACEOF
7981
7982 fi
7983 ;;
7984mips-sony-bsd|mips-sony-newsos4)
7985
7986cat >>confdefs.h <<\_ACEOF
7987#define NEED_SETPGRP 1
7988_ACEOF
7989
7990 SONY=1
7991 ;;
7992*-*-netbsd*)
7993 check_for_libcrypt_before=1
7994 if test "x$withval" != "xno" ; then
7995 need_dash_r=1
7996 fi
7997
7998cat >>confdefs.h <<\_ACEOF
7999#define SSH_TUN_FREEBSD 1
8000_ACEOF
8001
8002 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8003 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8004echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8005if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007fi
8008{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8009echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8010else
8011 # Is the header compilable?
8012{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8013echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8014cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020$ac_includes_default
8021#include <net/if_tap.h>
8022_ACEOF
8023rm -f conftest.$ac_objext
8024if { (ac_try="$ac_compile"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest.$ac_objext; then
8040 ac_header_compiler=yes
8041else
8042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_header_compiler=no
8046fi
8047
8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8050echo "${ECHO_T}$ac_header_compiler" >&6; }
8051
8052# Is the header present?
8053{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8054echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8055cat >conftest.$ac_ext <<_ACEOF
8056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
8061#include <net/if_tap.h>
8062_ACEOF
8063if { (ac_try="$ac_cpp conftest.$ac_ext"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null && {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 }; then
8079 ac_header_preproc=yes
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_header_preproc=no
8085fi
8086
8087rm -f conftest.err conftest.$ac_ext
8088{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089echo "${ECHO_T}$ac_header_preproc" >&6; }
8090
8091# So? What about this header?
8092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093 yes:no: )
8094 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8095echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8097echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8099 ;;
8100 no:yes:* )
8101 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8102echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8104echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8106echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8108echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8110echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8111 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8112echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8113 ( cat <<\_ASBOX
8114## ------------------------------------------- ##
8115## Report this to openssh-unix-dev@mindrot.org ##
8116## ------------------------------------------- ##
8117_ASBOX
8118 ) | sed "s/^/$as_me: WARNING: /" >&2
8119 ;;
8120esac
8121{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8122echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8123if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 ac_cv_header_net_if_tap_h=$ac_header_preproc
8127fi
8128{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8129echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8130
8131fi
8132if test $ac_cv_header_net_if_tap_h = yes; then
8133 :
8134else
8135
8136cat >>confdefs.h <<\_ACEOF
8137#define SSH_TUN_NO_L2 1
8138_ACEOF
8139
8140fi
8141
8142
8143
8144cat >>confdefs.h <<\_ACEOF
8145#define SSH_TUN_PREPEND_AF 1
8146_ACEOF
8147
8148 ;;
8149*-*-freebsd*)
8150 check_for_libcrypt_later=1
8151
8152cat >>confdefs.h <<\_ACEOF
8153#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8154_ACEOF
8155
8156
8157cat >>confdefs.h <<\_ACEOF
8158#define SSH_TUN_FREEBSD 1
8159_ACEOF
8160
8161 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8162 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8163echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8164if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166fi
8167{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8168echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8169else
8170 # Is the header compilable?
8171{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8172echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8173cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179$ac_includes_default
8180#include <net/if_tap.h>
8181_ACEOF
8182rm -f conftest.$ac_objext
8183if { (ac_try="$ac_compile"
8184case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_compile") 2>conftest.er1
8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } && {
8196 test -z "$ac_c_werror_flag" ||
8197 test ! -s conftest.err
8198 } && test -s conftest.$ac_objext; then
8199 ac_header_compiler=yes
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_header_compiler=no
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209echo "${ECHO_T}$ac_header_compiler" >&6; }
8210
8211# Is the header present?
8212{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8213echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8214cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
8220#include <net/if_tap.h>
8221_ACEOF
8222if { (ac_try="$ac_cpp conftest.$ac_ext"
8223case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } >/dev/null && {
8235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 }; then
8238 ac_header_preproc=yes
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_header_preproc=no
8244fi
8245
8246rm -f conftest.err conftest.$ac_ext
8247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8248echo "${ECHO_T}$ac_header_preproc" >&6; }
8249
8250# So? What about this header?
8251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8252 yes:no: )
8253 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8254echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8256echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8257 ac_header_preproc=yes
8258 ;;
8259 no:yes:* )
8260 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8261echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8263echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8265echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8267echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8269echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8271echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8272 ( cat <<\_ASBOX
8273## ------------------------------------------- ##
8274## Report this to openssh-unix-dev@mindrot.org ##
8275## ------------------------------------------- ##
8276_ASBOX
8277 ) | sed "s/^/$as_me: WARNING: /" >&2
8278 ;;
8279esac
8280{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8281echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8282if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 ac_cv_header_net_if_tap_h=$ac_header_preproc
8286fi
8287{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8288echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8289
8290fi
8291if test $ac_cv_header_net_if_tap_h = yes; then
8292 :
8293else
8294
8295cat >>confdefs.h <<\_ACEOF
8296#define SSH_TUN_NO_L2 1
8297_ACEOF
8298
8299fi
8300
8301
8302
8303cat >>confdefs.h <<\_ACEOF
8304#define BROKEN_GLOB 1
8305_ACEOF
8306
8307 ;;
8308*-*-bsdi*)
8309 cat >>confdefs.h <<\_ACEOF
8310#define SETEUID_BREAKS_SETUID 1
8311_ACEOF
8312
8313 cat >>confdefs.h <<\_ACEOF
8314#define BROKEN_SETREUID 1
8315_ACEOF
8316
8317 cat >>confdefs.h <<\_ACEOF
8318#define BROKEN_SETREGID 1
8319_ACEOF
8320
8321 ;;
8322*-next-*)
8323 conf_lastlog_location="/usr/adm/lastlog"
8324 conf_utmp_location=/etc/utmp
8325 conf_wtmp_location=/usr/adm/wtmp
8326 MAIL=/usr/spool/mail
8327
8328cat >>confdefs.h <<\_ACEOF
8329#define HAVE_NEXT 1
8330_ACEOF
8331
8332 cat >>confdefs.h <<\_ACEOF
8333#define BROKEN_REALPATH 1
8334_ACEOF
8335
8336 cat >>confdefs.h <<\_ACEOF
8337#define USE_PIPES 1
8338_ACEOF
8339
8340
8341cat >>confdefs.h <<\_ACEOF
8342#define BROKEN_SAVED_UIDS 1
8343_ACEOF
8344
8345 ;;
8346*-*-openbsd*)
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_ATTRIBUTE__SENTINEL__ 1
8350_ACEOF
8351
8352
8353cat >>confdefs.h <<\_ACEOF
8354#define HAVE_ATTRIBUTE__BOUNDED__ 1
8355_ACEOF
8356
8357
8358cat >>confdefs.h <<\_ACEOF
8359#define SSH_TUN_OPENBSD 1
8360_ACEOF
8361
8362
8363cat >>confdefs.h <<\_ACEOF
8364#define SYSLOG_R_SAFE_IN_SIGHAND 1
8365_ACEOF
8366
8367 ;;
8368*-*-solaris*)
8369 if test "x$withval" != "xno" ; then
8370 need_dash_r=1
8371 fi
8372 cat >>confdefs.h <<\_ACEOF
8373#define PAM_SUN_CODEBASE 1
8374_ACEOF
8375
8376 cat >>confdefs.h <<\_ACEOF
8377#define LOGIN_NEEDS_UTMPX 1
8378_ACEOF
8379
8380
8381cat >>confdefs.h <<\_ACEOF
8382#define LOGIN_NEEDS_TERM 1
8383_ACEOF
8384
8385 cat >>confdefs.h <<\_ACEOF
8386#define PAM_TTY_KLUDGE 1
8387_ACEOF
8388
8389
8390cat >>confdefs.h <<\_ACEOF
8391#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8392_ACEOF
8393
8394 cat >>confdefs.h <<\_ACEOF
8395#define LOCKED_PASSWD_STRING "*LK*"
8396_ACEOF
8397
8398 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8399
8400cat >>confdefs.h <<\_ACEOF
8401#define SSHD_ACQUIRES_CTTY 1
8402_ACEOF
8403
8404
8405cat >>confdefs.h <<\_ACEOF
8406#define PASSWD_NEEDS_USERNAME 1
8407_ACEOF
8408
8409
8410cat >>confdefs.h <<\_ACEOF
8411#define BROKEN_TCGETATTR_ICANON 1
8412_ACEOF
8413
8414 external_path_file=/etc/default/login
8415 # hardwire lastlog location (can't detect it on some versions)
8416 conf_lastlog_location="/var/adm/lastlog"
8417 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8418echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8419 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8420 if test "$sol2ver" -ge 8; then
8421 { echo "$as_me:$LINENO: result: yes" >&5
8422echo "${ECHO_T}yes" >&6; }
8423 cat >>confdefs.h <<\_ACEOF
8424#define DISABLE_UTMP 1
8425_ACEOF
8426
8427
8428cat >>confdefs.h <<\_ACEOF
8429#define DISABLE_WTMP 1
8430_ACEOF
8431
8432 else
8433 { echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437# Check whether --with-solaris-contracts was given.
8438if test "${with_solaris_contracts+set}" = set; then
8439 withval=$with_solaris_contracts;
8440 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8441echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8442if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445 ac_check_lib_save_LIBS=$LIBS
8446LIBS="-lcontract $LIBS"
8447cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h. */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h. */
8453
8454/* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8457#ifdef __cplusplus
8458extern "C"
8459#endif
8460char ct_tmpl_activate ();
8461int
8462main ()
8463{
8464return ct_tmpl_activate ();
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext conftest$ac_exeext
8470if { (ac_try="$ac_link"
8471case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474esac
8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest$ac_exeext &&
8486 $as_test_x conftest$ac_exeext; then
8487 ac_cv_lib_contract_ct_tmpl_activate=yes
8488else
8489 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 ac_cv_lib_contract_ct_tmpl_activate=no
8493fi
8494
8495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8496 conftest$ac_exeext conftest.$ac_ext
8497LIBS=$ac_check_lib_save_LIBS
8498fi
8499{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8500echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8501if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8502
8503cat >>confdefs.h <<\_ACEOF
8504#define USE_SOLARIS_PROCESS_CONTRACTS 1
8505_ACEOF
8506
8507 SSHDLIBS="$SSHDLIBS -lcontract"
8508
8509 SPC_MSG="yes"
8510fi
8511
8512
8513fi
8514
8515 ;;
8516*-*-sunos4*)
8517 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8518
8519for ac_func in getpwanam
8520do
8521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8522{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8524if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8535#define $ac_func innocuous_$ac_func
8536
8537/* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char $ac_func (); below.
8539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8540 <limits.h> exists even on freestanding compilers. */
8541
8542#ifdef __STDC__
8543# include <limits.h>
8544#else
8545# include <assert.h>
8546#endif
8547
8548#undef $ac_func
8549
8550/* Override any GCC internal prototype to avoid an error.
8551 Use char because int might match the return type of a GCC
8552 builtin and then its argument prototype would still apply. */
8553#ifdef __cplusplus
8554extern "C"
8555#endif
8556char $ac_func ();
8557/* The GNU C library defines this for functions which it implements
8558 to always fail with ENOSYS. Some functions are actually named
8559 something starting with __ and the normal name is an alias. */
8560#if defined __stub_$ac_func || defined __stub___$ac_func
8561choke me
8562#endif
8563
8564int
8565main ()
8566{
8567return $ac_func ();
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext conftest$ac_exeext
8573if { (ac_try="$ac_link"
8574case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_link") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest$ac_exeext &&
8589 $as_test_x conftest$ac_exeext; then
8590 eval "$as_ac_var=yes"
8591else
8592 echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 eval "$as_ac_var=no"
8596fi
8597
8598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8599 conftest$ac_exeext conftest.$ac_ext
8600fi
8601ac_res=`eval echo '${'$as_ac_var'}'`
8602 { echo "$as_me:$LINENO: result: $ac_res" >&5
8603echo "${ECHO_T}$ac_res" >&6; }
8604if test `eval echo '${'$as_ac_var'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8607_ACEOF
8608
8609fi
8610done
8611
8612 cat >>confdefs.h <<\_ACEOF
8613#define PAM_SUN_CODEBASE 1
8614_ACEOF
8615
8616 conf_utmp_location=/etc/utmp
8617 conf_wtmp_location=/var/adm/wtmp
8618 conf_lastlog_location=/var/adm/lastlog
8619 cat >>confdefs.h <<\_ACEOF
8620#define USE_PIPES 1
8621_ACEOF
8622
8623 ;;
8624*-ncr-sysv*)
8625 LIBS="$LIBS -lc89"
8626 cat >>confdefs.h <<\_ACEOF
8627#define USE_PIPES 1
8628_ACEOF
8629
8630 cat >>confdefs.h <<\_ACEOF
8631#define SSHD_ACQUIRES_CTTY 1
8632_ACEOF
8633
8634 cat >>confdefs.h <<\_ACEOF
8635#define SETEUID_BREAKS_SETUID 1
8636_ACEOF
8637
8638 cat >>confdefs.h <<\_ACEOF
8639#define BROKEN_SETREUID 1
8640_ACEOF
8641
8642 cat >>confdefs.h <<\_ACEOF
8643#define BROKEN_SETREGID 1
8644_ACEOF
8645
8646 ;;
8647*-sni-sysv*)
8648 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8649
8650{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8651echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8652if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else
8655 ac_check_lib_save_LIBS=$LIBS
8656LIBS="-ldl $LIBS"
8657cat >conftest.$ac_ext <<_ACEOF
8658/* confdefs.h. */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h. */
8663
8664/* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8667#ifdef __cplusplus
8668extern "C"
8669#endif
8670char dlsym ();
8671int
8672main ()
8673{
8674return dlsym ();
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext conftest$ac_exeext
8680if { (ac_try="$ac_link"
8681case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684esac
8685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_link") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest$ac_exeext &&
8696 $as_test_x conftest$ac_exeext; then
8697 ac_cv_lib_dl_dlsym=yes
8698else
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_lib_dl_dlsym=no
8703fi
8704
8705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8706 conftest$ac_exeext conftest.$ac_ext
8707LIBS=$ac_check_lib_save_LIBS
8708fi
8709{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8710echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8711if test $ac_cv_lib_dl_dlsym = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713#define HAVE_LIBDL 1
8714_ACEOF
8715
8716 LIBS="-ldl $LIBS"
8717
8718fi
8719
8720 # -lresolv needs to be at the end of LIBS or DNS lookups break
8721 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8722echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8723if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else
8726 ac_check_lib_save_LIBS=$LIBS
8727LIBS="-lresolv $LIBS"
8728cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
8734
8735/* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8738#ifdef __cplusplus
8739extern "C"
8740#endif
8741char res_query ();
8742int
8743main ()
8744{
8745return res_query ();
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext conftest$ac_exeext
8751if { (ac_try="$ac_link"
8752case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755esac
8756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_link") 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest$ac_exeext &&
8767 $as_test_x conftest$ac_exeext; then
8768 ac_cv_lib_resolv_res_query=yes
8769else
8770 echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 ac_cv_lib_resolv_res_query=no
8774fi
8775
8776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8777 conftest$ac_exeext conftest.$ac_ext
8778LIBS=$ac_check_lib_save_LIBS
8779fi
8780{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8781echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8782if test $ac_cv_lib_resolv_res_query = yes; then
8783 LIBS="$LIBS -lresolv"
8784fi
8785
8786 IPADDR_IN_DISPLAY=yes
8787 cat >>confdefs.h <<\_ACEOF
8788#define USE_PIPES 1
8789_ACEOF
8790
8791 cat >>confdefs.h <<\_ACEOF
8792#define IP_TOS_IS_BROKEN 1
8793_ACEOF
8794
8795 cat >>confdefs.h <<\_ACEOF
8796#define SETEUID_BREAKS_SETUID 1
8797_ACEOF
8798
8799 cat >>confdefs.h <<\_ACEOF
8800#define BROKEN_SETREUID 1
8801_ACEOF
8802
8803 cat >>confdefs.h <<\_ACEOF
8804#define BROKEN_SETREGID 1
8805_ACEOF
8806
8807 cat >>confdefs.h <<\_ACEOF
8808#define SSHD_ACQUIRES_CTTY 1
8809_ACEOF
8810
8811 external_path_file=/etc/default/login
8812 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8813 # Attention: always take care to bind libsocket and libnsl before libc,
8814 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8815 ;;
8816# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8817*-*-sysv4.2*)
8818 cat >>confdefs.h <<\_ACEOF
8819#define USE_PIPES 1
8820_ACEOF
8821
8822 cat >>confdefs.h <<\_ACEOF
8823#define SETEUID_BREAKS_SETUID 1
8824_ACEOF
8825
8826 cat >>confdefs.h <<\_ACEOF
8827#define BROKEN_SETREUID 1
8828_ACEOF
8829
8830 cat >>confdefs.h <<\_ACEOF
8831#define BROKEN_SETREGID 1
8832_ACEOF
8833
8834
8835cat >>confdefs.h <<\_ACEOF
8836#define PASSWD_NEEDS_USERNAME 1
8837_ACEOF
8838
8839 cat >>confdefs.h <<\_ACEOF
8840#define LOCKED_PASSWD_STRING "*LK*"
8841_ACEOF
8842
8843 ;;
8844# UnixWare 7.x, OpenUNIX 8
8845*-*-sysv5*)
8846 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8847
8848cat >>confdefs.h <<\_ACEOF
8849#define UNIXWARE_LONG_PASSWORDS 1
8850_ACEOF
8851
8852 cat >>confdefs.h <<\_ACEOF
8853#define USE_PIPES 1
8854_ACEOF
8855
8856 cat >>confdefs.h <<\_ACEOF
8857#define SETEUID_BREAKS_SETUID 1
8858_ACEOF
8859
8860 cat >>confdefs.h <<\_ACEOF
8861#define BROKEN_GETADDRINFO 1
8862_ACEOF
8863
8864 cat >>confdefs.h <<\_ACEOF
8865#define BROKEN_SETREUID 1
8866_ACEOF
8867
8868 cat >>confdefs.h <<\_ACEOF
8869#define BROKEN_SETREGID 1
8870_ACEOF
8871
8872 cat >>confdefs.h <<\_ACEOF
8873#define PASSWD_NEEDS_USERNAME 1
8874_ACEOF
8875
8876 case "$host" in
8877 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8878 TEST_SHELL=/u95/bin/sh
8879
8880cat >>confdefs.h <<\_ACEOF
8881#define BROKEN_LIBIAF 1
8882_ACEOF
8883
8884 cat >>confdefs.h <<\_ACEOF
8885#define BROKEN_UPDWTMPX 1
8886_ACEOF
8887
8888 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
8889echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
8890if test "${ac_cv_lib_prot_getluid+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893 ac_check_lib_save_LIBS=$LIBS
8894LIBS="-lprot $LIBS"
8895cat >conftest.$ac_ext <<_ACEOF
8896/* confdefs.h. */
8897_ACEOF
8898cat confdefs.h >>conftest.$ac_ext
8899cat >>conftest.$ac_ext <<_ACEOF
8900/* end confdefs.h. */
8901
8902/* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8905#ifdef __cplusplus
8906extern "C"
8907#endif
8908char getluid ();
8909int
8910main ()
8911{
8912return getluid ();
8913 ;
8914 return 0;
8915}
8916_ACEOF
8917rm -f conftest.$ac_objext conftest$ac_exeext
8918if { (ac_try="$ac_link"
8919case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_link") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest$ac_exeext &&
8934 $as_test_x conftest$ac_exeext; then
8935 ac_cv_lib_prot_getluid=yes
8936else
8937 echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 ac_cv_lib_prot_getluid=no
8941fi
8942
8943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8944 conftest$ac_exeext conftest.$ac_ext
8945LIBS=$ac_check_lib_save_LIBS
8946fi
8947{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
8948echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
8949if test $ac_cv_lib_prot_getluid = yes; then
8950 LIBS="$LIBS -lprot"
8951
8952
8953for ac_func in getluid setluid
8954do
8955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8956{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 cat >conftest.$ac_ext <<_ACEOF
8962/* confdefs.h. */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h. */
8967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8969#define $ac_func innocuous_$ac_func
8970
8971/* System header to define __stub macros and hopefully few prototypes,
8972 which can conflict with char $ac_func (); below.
8973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8974 <limits.h> exists even on freestanding compilers. */
8975
8976#ifdef __STDC__
8977# include <limits.h>
8978#else
8979# include <assert.h>
8980#endif
8981
8982#undef $ac_func
8983
8984/* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char $ac_func ();
8991/* The GNU C library defines this for functions which it implements
8992 to always fail with ENOSYS. Some functions are actually named
8993 something starting with __ and the normal name is an alias. */
8994#if defined __stub_$ac_func || defined __stub___$ac_func
8995choke me
8996#endif
8997
8998int
8999main ()
9000{
9001return $ac_func ();
9002 ;
9003 return 0;
9004}
9005_ACEOF
9006rm -f conftest.$ac_objext conftest$ac_exeext
9007if { (ac_try="$ac_link"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>conftest.er1
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest$ac_exeext &&
9023 $as_test_x conftest$ac_exeext; then
9024 eval "$as_ac_var=yes"
9025else
9026 echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029 eval "$as_ac_var=no"
9030fi
9031
9032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9033 conftest$ac_exeext conftest.$ac_ext
9034fi
9035ac_res=`eval echo '${'$as_ac_var'}'`
9036 { echo "$as_me:$LINENO: result: $ac_res" >&5
9037echo "${ECHO_T}$ac_res" >&6; }
9038if test `eval echo '${'$as_ac_var'}'` = yes; then
9039 cat >>confdefs.h <<_ACEOF
9040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9041_ACEOF
9042
9043fi
9044done
9045
9046 cat >>confdefs.h <<\_ACEOF
9047#define HAVE_SECUREWARE 1
9048_ACEOF
9049
9050 cat >>confdefs.h <<\_ACEOF
9051#define DISABLE_SHADOW 1
9052_ACEOF
9053
9054
9055fi
9056
9057 ;;
9058 *) cat >>confdefs.h <<\_ACEOF
9059#define LOCKED_PASSWD_STRING "*LK*"
9060_ACEOF
9061
9062 check_for_libcrypt_later=1
9063 ;;
9064 esac
9065 ;;
9066*-*-sysv*)
9067 ;;
9068# SCO UNIX and OEM versions of SCO UNIX
9069*-*-sco3.2v4*)
9070 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9071echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9072 { (exit 1); exit 1; }; }
9073 ;;
9074# SCO OpenServer 5.x
9075*-*-sco3.2v5*)
9076 if test -z "$GCC"; then
9077 CFLAGS="$CFLAGS -belf"
9078 fi
9079 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9080 no_dev_ptmx=1
9081 cat >>confdefs.h <<\_ACEOF
9082#define USE_PIPES 1
9083_ACEOF
9084
9085 cat >>confdefs.h <<\_ACEOF
9086#define HAVE_SECUREWARE 1
9087_ACEOF
9088
9089 cat >>confdefs.h <<\_ACEOF
9090#define DISABLE_SHADOW 1
9091_ACEOF
9092
9093 cat >>confdefs.h <<\_ACEOF
9094#define DISABLE_FD_PASSING 1
9095_ACEOF
9096
9097 cat >>confdefs.h <<\_ACEOF
9098#define SETEUID_BREAKS_SETUID 1
9099_ACEOF
9100
9101 cat >>confdefs.h <<\_ACEOF
9102#define BROKEN_GETADDRINFO 1
9103_ACEOF
9104
9105 cat >>confdefs.h <<\_ACEOF
9106#define BROKEN_SETREUID 1
9107_ACEOF
9108
9109 cat >>confdefs.h <<\_ACEOF
9110#define BROKEN_SETREGID 1
9111_ACEOF
9112
9113 cat >>confdefs.h <<\_ACEOF
9114#define WITH_ABBREV_NO_TTY 1
9115_ACEOF
9116
9117 cat >>confdefs.h <<\_ACEOF
9118#define BROKEN_UPDWTMPX 1
9119_ACEOF
9120
9121 cat >>confdefs.h <<\_ACEOF
9122#define PASSWD_NEEDS_USERNAME 1
9123_ACEOF
9124
9125
9126
9127for ac_func in getluid setluid
9128do
9129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9132if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134else
9135 cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h. */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h. */
9141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143#define $ac_func innocuous_$ac_func
9144
9145/* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9149
9150#ifdef __STDC__
9151# include <limits.h>
9152#else
9153# include <assert.h>
9154#endif
9155
9156#undef $ac_func
9157
9158/* Override any GCC internal prototype to avoid an error.
9159 Use char because int might match the return type of a GCC
9160 builtin and then its argument prototype would still apply. */
9161#ifdef __cplusplus
9162extern "C"
9163#endif
9164char $ac_func ();
9165/* The GNU C library defines this for functions which it implements
9166 to always fail with ENOSYS. Some functions are actually named
9167 something starting with __ and the normal name is an alias. */
9168#if defined __stub_$ac_func || defined __stub___$ac_func
9169choke me
9170#endif
9171
9172int
9173main ()
9174{
9175return $ac_func ();
9176 ;
9177 return 0;
9178}
9179_ACEOF
9180rm -f conftest.$ac_objext conftest$ac_exeext
9181if { (ac_try="$ac_link"
9182case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_link") 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest$ac_exeext &&
9197 $as_test_x conftest$ac_exeext; then
9198 eval "$as_ac_var=yes"
9199else
9200 echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 eval "$as_ac_var=no"
9204fi
9205
9206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207 conftest$ac_exeext conftest.$ac_ext
9208fi
9209ac_res=`eval echo '${'$as_ac_var'}'`
9210 { echo "$as_me:$LINENO: result: $ac_res" >&5
9211echo "${ECHO_T}$ac_res" >&6; }
9212if test `eval echo '${'$as_ac_var'}'` = yes; then
9213 cat >>confdefs.h <<_ACEOF
9214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9215_ACEOF
9216
9217fi
9218done
9219
9220 MANTYPE=man
9221 TEST_SHELL=ksh
9222 ;;
9223*-*-unicosmk*)
9224
9225cat >>confdefs.h <<\_ACEOF
9226#define NO_SSH_LASTLOG 1
9227_ACEOF
9228
9229 cat >>confdefs.h <<\_ACEOF
9230#define SETEUID_BREAKS_SETUID 1
9231_ACEOF
9232
9233 cat >>confdefs.h <<\_ACEOF
9234#define BROKEN_SETREUID 1
9235_ACEOF
9236
9237 cat >>confdefs.h <<\_ACEOF
9238#define BROKEN_SETREGID 1
9239_ACEOF
9240
9241 cat >>confdefs.h <<\_ACEOF
9242#define USE_PIPES 1
9243_ACEOF
9244
9245 cat >>confdefs.h <<\_ACEOF
9246#define DISABLE_FD_PASSING 1
9247_ACEOF
9248
9249 LDFLAGS="$LDFLAGS"
9250 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9251 MANTYPE=cat
9252 ;;
9253*-*-unicosmp*)
9254 cat >>confdefs.h <<\_ACEOF
9255#define SETEUID_BREAKS_SETUID 1
9256_ACEOF
9257
9258 cat >>confdefs.h <<\_ACEOF
9259#define BROKEN_SETREUID 1
9260_ACEOF
9261
9262 cat >>confdefs.h <<\_ACEOF
9263#define BROKEN_SETREGID 1
9264_ACEOF
9265
9266 cat >>confdefs.h <<\_ACEOF
9267#define WITH_ABBREV_NO_TTY 1
9268_ACEOF
9269
9270 cat >>confdefs.h <<\_ACEOF
9271#define USE_PIPES 1
9272_ACEOF
9273
9274 cat >>confdefs.h <<\_ACEOF
9275#define DISABLE_FD_PASSING 1
9276_ACEOF
9277
9278 LDFLAGS="$LDFLAGS"
9279 LIBS="$LIBS -lgen -lacid -ldb"
9280 MANTYPE=cat
9281 ;;
9282*-*-unicos*)
9283 cat >>confdefs.h <<\_ACEOF
9284#define SETEUID_BREAKS_SETUID 1
9285_ACEOF
9286
9287 cat >>confdefs.h <<\_ACEOF
9288#define BROKEN_SETREUID 1
9289_ACEOF
9290
9291 cat >>confdefs.h <<\_ACEOF
9292#define BROKEN_SETREGID 1
9293_ACEOF
9294
9295 cat >>confdefs.h <<\_ACEOF
9296#define USE_PIPES 1
9297_ACEOF
9298
9299 cat >>confdefs.h <<\_ACEOF
9300#define DISABLE_FD_PASSING 1
9301_ACEOF
9302
9303 cat >>confdefs.h <<\_ACEOF
9304#define NO_SSH_LASTLOG 1
9305_ACEOF
9306
9307 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9308 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9309 MANTYPE=cat
9310 ;;
9311*-dec-osf*)
9312 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9313echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9314 no_osfsia=""
9315
9316# Check whether --with-osfsia was given.
9317if test "${with_osfsia+set}" = set; then
9318 withval=$with_osfsia;
9319 if test "x$withval" = "xno" ; then
9320 { echo "$as_me:$LINENO: result: disabled" >&5
9321echo "${ECHO_T}disabled" >&6; }
9322 no_osfsia=1
9323 fi
9324
9325fi
9326
9327 if test -z "$no_osfsia" ; then
9328 if test -f /etc/sia/matrix.conf; then
9329 { echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6; }
9331
9332cat >>confdefs.h <<\_ACEOF
9333#define HAVE_OSF_SIA 1
9334_ACEOF
9335
9336
9337cat >>confdefs.h <<\_ACEOF
9338#define DISABLE_LOGIN 1
9339_ACEOF
9340
9341 cat >>confdefs.h <<\_ACEOF
9342#define DISABLE_FD_PASSING 1
9343_ACEOF
9344
9345 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9346 SIA_MSG="yes"
9347 else
9348 { echo "$as_me:$LINENO: result: no" >&5
9349echo "${ECHO_T}no" >&6; }
9350
9351cat >>confdefs.h <<\_ACEOF
9352#define LOCKED_PASSWD_SUBSTR "Nologin"
9353_ACEOF
9354
9355 fi
9356 fi
9357 cat >>confdefs.h <<\_ACEOF
9358#define BROKEN_GETADDRINFO 1
9359_ACEOF
9360
9361 cat >>confdefs.h <<\_ACEOF
9362#define SETEUID_BREAKS_SETUID 1
9363_ACEOF
9364
9365 cat >>confdefs.h <<\_ACEOF
9366#define BROKEN_SETREUID 1
9367_ACEOF
9368
9369 cat >>confdefs.h <<\_ACEOF
9370#define BROKEN_SETREGID 1
9371_ACEOF
9372
9373
9374cat >>confdefs.h <<\_ACEOF
9375#define BROKEN_READV_COMPARISON 1
9376_ACEOF
9377
9378 ;;
9379
9380*-*-nto-qnx*)
9381 cat >>confdefs.h <<\_ACEOF
9382#define USE_PIPES 1
9383_ACEOF
9384
9385 cat >>confdefs.h <<\_ACEOF
9386#define NO_X11_UNIX_SOCKETS 1
9387_ACEOF
9388
9389
9390cat >>confdefs.h <<\_ACEOF
9391#define MISSING_NFDBITS 1
9392_ACEOF
9393
9394
9395cat >>confdefs.h <<\_ACEOF
9396#define MISSING_HOWMANY 1
9397_ACEOF
9398
9399
9400cat >>confdefs.h <<\_ACEOF
9401#define MISSING_FD_MASK 1
9402_ACEOF
9403
9404 cat >>confdefs.h <<\_ACEOF
9405#define DISABLE_LASTLOG 1
9406_ACEOF
9407
9408 cat >>confdefs.h <<\_ACEOF
9409#define SSHD_ACQUIRES_CTTY 1
9410_ACEOF
9411
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define BROKEN_SHADOW_EXPIRE 1
9415_ACEOF
9416
9417 enable_etc_default_login=no # has incompatible /etc/default/login
9418 case "$host" in
9419 *-*-nto-qnx6*)
9420 cat >>confdefs.h <<\_ACEOF
9421#define DISABLE_FD_PASSING 1
9422_ACEOF
9423
9424 ;;
9425 esac
9426 ;;
9427
9428*-*-ultrix*)
9429
9430cat >>confdefs.h <<\_ACEOF
9431#define BROKEN_GETGROUPS 1
9432_ACEOF
9433
9434
9435cat >>confdefs.h <<\_ACEOF
9436#define BROKEN_MMAP 1
9437_ACEOF
9438
9439 cat >>confdefs.h <<\_ACEOF
9440#define NEED_SETPGRP 1
9441_ACEOF
9442
9443
9444cat >>confdefs.h <<\_ACEOF
9445#define HAVE_SYS_SYSLOG_H 1
9446_ACEOF
9447
9448 ;;
9449
9450*-*-lynxos)
9451 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9452 cat >>confdefs.h <<\_ACEOF
9453#define MISSING_HOWMANY 1
9454_ACEOF
9455
9456
9457cat >>confdefs.h <<\_ACEOF
9458#define BROKEN_SETVBUF 1
9459_ACEOF
9460
9461 ;;
9462esac
9463
9464{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9465echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9466if test "$cross_compiling" = yes; then
9467 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9468echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9469
9470else
9471 cat >conftest.$ac_ext <<_ACEOF
9472/* confdefs.h. */
9473_ACEOF
9474cat confdefs.h >>conftest.$ac_ext
9475cat >>conftest.$ac_ext <<_ACEOF
9476/* end confdefs.h. */
9477
9478#include <stdio.h>
9479int main(){exit(0);}
9480
9481_ACEOF
9482rm -f conftest$ac_exeext
9483if { (ac_try="$ac_link"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_link") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496esac
9497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 { echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6; }
9504else
9505 echo "$as_me: program exited with status $ac_status" >&5
9506echo "$as_me: failed program was:" >&5
9507sed 's/^/| /' conftest.$ac_ext >&5
9508
9509( exit $ac_status )
9510
9511 { echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6; }
9513 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9514echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9515 { (exit 1); exit 1; }; }
9516
9517fi
9518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9519fi
9520
9521
9522
9523# Checks for libraries.
9524{ echo "$as_me:$LINENO: checking for yp_match" >&5
9525echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9526if test "${ac_cv_func_yp_match+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528else
9529 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537#define yp_match innocuous_yp_match
9538
9539/* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char yp_match (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9543
9544#ifdef __STDC__
9545# include <limits.h>
9546#else
9547# include <assert.h>
9548#endif
9549
9550#undef yp_match
9551
9552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555#ifdef __cplusplus
9556extern "C"
9557#endif
9558char yp_match ();
9559/* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562#if defined __stub_yp_match || defined __stub___yp_match
9563choke me
9564#endif
9565
9566int
9567main ()
9568{
9569return yp_match ();
9570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
9575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
9592 ac_cv_func_yp_match=yes
9593else
9594 echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_func_yp_match=no
9598fi
9599
9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601 conftest$ac_exeext conftest.$ac_ext
9602fi
9603{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9604echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9605if test $ac_cv_func_yp_match = yes; then
9606 :
9607else
9608
9609{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9610echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9611if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 ac_check_lib_save_LIBS=$LIBS
9615LIBS="-lnsl $LIBS"
9616cat >conftest.$ac_ext <<_ACEOF
9617/* confdefs.h. */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h. */
9622
9623/* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9626#ifdef __cplusplus
9627extern "C"
9628#endif
9629char yp_match ();
9630int
9631main ()
9632{
9633return yp_match ();
9634 ;
9635 return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (ac_try="$ac_link"
9640case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest$ac_exeext &&
9655 $as_test_x conftest$ac_exeext; then
9656 ac_cv_lib_nsl_yp_match=yes
9657else
9658 echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 ac_cv_lib_nsl_yp_match=no
9662fi
9663
9664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9666LIBS=$ac_check_lib_save_LIBS
9667fi
9668{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9669echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9670if test $ac_cv_lib_nsl_yp_match = yes; then
9671 cat >>confdefs.h <<_ACEOF
9672#define HAVE_LIBNSL 1
9673_ACEOF
9674
9675 LIBS="-lnsl $LIBS"
9676
9677fi
9678
9679fi
9680
9681{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9682echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9683if test "${ac_cv_func_setsockopt+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685else
9686 cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9694#define setsockopt innocuous_setsockopt
9695
9696/* System header to define __stub macros and hopefully few prototypes,
9697 which can conflict with char setsockopt (); below.
9698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699 <limits.h> exists even on freestanding compilers. */
9700
9701#ifdef __STDC__
9702# include <limits.h>
9703#else
9704# include <assert.h>
9705#endif
9706
9707#undef setsockopt
9708
9709/* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9712#ifdef __cplusplus
9713extern "C"
9714#endif
9715char setsockopt ();
9716/* The GNU C library defines this for functions which it implements
9717 to always fail with ENOSYS. Some functions are actually named
9718 something starting with __ and the normal name is an alias. */
9719#if defined __stub_setsockopt || defined __stub___setsockopt
9720choke me
9721#endif
9722
9723int
9724main ()
9725{
9726return setsockopt ();
9727 ;
9728 return 0;
9729}
9730_ACEOF
9731rm -f conftest.$ac_objext conftest$ac_exeext
9732if { (ac_try="$ac_link"
9733case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_link") 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext &&
9748 $as_test_x conftest$ac_exeext; then
9749 ac_cv_func_setsockopt=yes
9750else
9751 echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 ac_cv_func_setsockopt=no
9755fi
9756
9757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9758 conftest$ac_exeext conftest.$ac_ext
9759fi
9760{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9761echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9762if test $ac_cv_func_setsockopt = yes; then
9763 :
9764else
9765
9766{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9767echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9768if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771 ac_check_lib_save_LIBS=$LIBS
9772LIBS="-lsocket $LIBS"
9773cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779
9780/* Override any GCC internal prototype to avoid an error.
9781 Use char because int might match the return type of a GCC
9782 builtin and then its argument prototype would still apply. */
9783#ifdef __cplusplus
9784extern "C"
9785#endif
9786char setsockopt ();
9787int
9788main ()
9789{
9790return setsockopt ();
9791 ;
9792 return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
9796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest$ac_exeext &&
9812 $as_test_x conftest$ac_exeext; then
9813 ac_cv_lib_socket_setsockopt=yes
9814else
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_cv_lib_socket_setsockopt=no
9819fi
9820
9821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822 conftest$ac_exeext conftest.$ac_ext
9823LIBS=$ac_check_lib_save_LIBS
9824fi
9825{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9826echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9827if test $ac_cv_lib_socket_setsockopt = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829#define HAVE_LIBSOCKET 1
9830_ACEOF
9831
9832 LIBS="-lsocket $LIBS"
9833
9834fi
9835
9836fi
9837
9838
9839
9840for ac_func in dirname
9841do
9842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9843{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9845if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848 cat >conftest.$ac_ext <<_ACEOF
9849/* confdefs.h. */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h. */
9854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9856#define $ac_func innocuous_$ac_func
9857
9858/* System header to define __stub macros and hopefully few prototypes,
9859 which can conflict with char $ac_func (); below.
9860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9861 <limits.h> exists even on freestanding compilers. */
9862
9863#ifdef __STDC__
9864# include <limits.h>
9865#else
9866# include <assert.h>
9867#endif
9868
9869#undef $ac_func
9870
9871/* Override any GCC internal prototype to avoid an error.
9872 Use char because int might match the return type of a GCC
9873 builtin and then its argument prototype would still apply. */
9874#ifdef __cplusplus
9875extern "C"
9876#endif
9877char $ac_func ();
9878/* The GNU C library defines this for functions which it implements
9879 to always fail with ENOSYS. Some functions are actually named
9880 something starting with __ and the normal name is an alias. */
9881#if defined __stub_$ac_func || defined __stub___$ac_func
9882choke me
9883#endif
9884
9885int
9886main ()
9887{
9888return $ac_func ();
9889 ;
9890 return 0;
9891}
9892_ACEOF
9893rm -f conftest.$ac_objext conftest$ac_exeext
9894if { (ac_try="$ac_link"
9895case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898esac
9899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_link") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest$ac_exeext &&
9910 $as_test_x conftest$ac_exeext; then
9911 eval "$as_ac_var=yes"
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 eval "$as_ac_var=no"
9917fi
9918
9919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9920 conftest$ac_exeext conftest.$ac_ext
9921fi
9922ac_res=`eval echo '${'$as_ac_var'}'`
9923 { echo "$as_me:$LINENO: result: $ac_res" >&5
9924echo "${ECHO_T}$ac_res" >&6; }
9925if test `eval echo '${'$as_ac_var'}'` = yes; then
9926 cat >>confdefs.h <<_ACEOF
9927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9928_ACEOF
9929
9930for ac_header in libgen.h
9931do
9932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938fi
9939ac_res=`eval echo '${'$as_ac_Header'}'`
9940 { echo "$as_me:$LINENO: result: $ac_res" >&5
9941echo "${ECHO_T}$ac_res" >&6; }
9942else
9943 # Is the header compilable?
9944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9946cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
9952$ac_includes_default
9953#include <$ac_header>
9954_ACEOF
9955rm -f conftest.$ac_objext
9956if { (ac_try="$ac_compile"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_compile") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest.$ac_objext; then
9972 ac_header_compiler=yes
9973else
9974 echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_header_compiler=no
9978fi
9979
9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982echo "${ECHO_T}$ac_header_compiler" >&6; }
9983
9984# Is the header present?
9985{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
9993#include <$ac_header>
9994_ACEOF
9995if { (ac_try="$ac_cpp conftest.$ac_ext"
9996case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999esac
10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } >/dev/null && {
10008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 }; then
10011 ac_header_preproc=yes
10012else
10013 echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 ac_header_preproc=no
10017fi
10018
10019rm -f conftest.err conftest.$ac_ext
10020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10021echo "${ECHO_T}$ac_header_preproc" >&6; }
10022
10023# So? What about this header?
10024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10025 yes:no: )
10026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10030 ac_header_preproc=yes
10031 ;;
10032 no:yes:* )
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10045 ( cat <<\_ASBOX
10046## ------------------------------------------- ##
10047## Report this to openssh-unix-dev@mindrot.org ##
10048## ------------------------------------------- ##
10049_ASBOX
10050 ) | sed "s/^/$as_me: WARNING: /" >&2
10051 ;;
10052esac
10053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 eval "$as_ac_Header=\$ac_header_preproc"
10059fi
10060ac_res=`eval echo '${'$as_ac_Header'}'`
10061 { echo "$as_me:$LINENO: result: $ac_res" >&5
10062echo "${ECHO_T}$ac_res" >&6; }
10063
10064fi
10065if test `eval echo '${'$as_ac_Header'}'` = yes; then
10066 cat >>confdefs.h <<_ACEOF
10067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10068_ACEOF
10069
10070fi
10071
10072done
10073
10074else
10075
10076 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10077echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10078if test "${ac_cv_lib_gen_dirname+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081 ac_check_lib_save_LIBS=$LIBS
10082LIBS="-lgen $LIBS"
10083cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089
10090/* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10093#ifdef __cplusplus
10094extern "C"
10095#endif
10096char dirname ();
10097int
10098main ()
10099{
10100return dirname ();
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
10106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_gen_dirname=yes
10124else
10125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_lib_gen_dirname=no
10129fi
10130
10131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133LIBS=$ac_check_lib_save_LIBS
10134fi
10135{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10136echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10137if test $ac_cv_lib_gen_dirname = yes; then
10138
10139 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10140echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10141if test "${ac_cv_have_broken_dirname+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144
10145 save_LIBS="$LIBS"
10146 LIBS="$LIBS -lgen"
10147 if test "$cross_compiling" = yes; then
10148 ac_cv_have_broken_dirname="no"
10149else
10150 cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156
10157#include <libgen.h>
10158#include <string.h>
10159
10160int main(int argc, char **argv) {
10161 char *s, buf[32];
10162
10163 strncpy(buf,"/etc", 32);
10164 s = dirname(buf);
10165 if (!s || strncmp(s, "/", 32) != 0) {
10166 exit(1);
10167 } else {
10168 exit(0);
10169 }
10170}
10171
10172_ACEOF
10173rm -f conftest$ac_exeext
10174if { (ac_try="$ac_link"
10175case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 ac_cv_have_broken_dirname="no"
10194else
10195 echo "$as_me: program exited with status $ac_status" >&5
10196echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199( exit $ac_status )
10200 ac_cv_have_broken_dirname="yes"
10201fi
10202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10203fi
10204
10205
10206 LIBS="$save_LIBS"
10207
10208fi
10209{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10210echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10211 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10212 LIBS="$LIBS -lgen"
10213 cat >>confdefs.h <<\_ACEOF
10214#define HAVE_DIRNAME 1
10215_ACEOF
10216
10217
10218for ac_header in libgen.h
10219do
10220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226fi
10227ac_res=`eval echo '${'$as_ac_Header'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229echo "${ECHO_T}$ac_res" >&6; }
10230else
10231 # Is the header compilable?
10232{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10234cat >conftest.$ac_ext <<_ACEOF
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240$ac_includes_default
10241#include <$ac_header>
10242_ACEOF
10243rm -f conftest.$ac_objext
10244if { (ac_try="$ac_compile"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10261else
10262 echo "$as_me: failed program was:" >&5
10263sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_header_compiler=no
10266fi
10267
10268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270echo "${ECHO_T}$ac_header_compiler" >&6; }
10271
10272# Is the header present?
10273{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10275cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h. */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h. */
10281#include <$ac_header>
10282_ACEOF
10283if { (ac_try="$ac_cpp conftest.$ac_ext"
10284case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } >/dev/null && {
10296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 }; then
10299 ac_header_preproc=yes
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_header_preproc=no
10305fi
10306
10307rm -f conftest.err conftest.$ac_ext
10308{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309echo "${ECHO_T}$ac_header_preproc" >&6; }
10310
10311# So? What about this header?
10312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10313 yes:no: )
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10318 ac_header_preproc=yes
10319 ;;
10320 no:yes:* )
10321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10333 ( cat <<\_ASBOX
10334## ------------------------------------------- ##
10335## Report this to openssh-unix-dev@mindrot.org ##
10336## ------------------------------------------- ##
10337_ASBOX
10338 ) | sed "s/^/$as_me: WARNING: /" >&2
10339 ;;
10340esac
10341{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 eval "$as_ac_Header=\$ac_header_preproc"
10347fi
10348ac_res=`eval echo '${'$as_ac_Header'}'`
10349 { echo "$as_me:$LINENO: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; }
10351
10352fi
10353if test `eval echo '${'$as_ac_Header'}'` = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10356_ACEOF
10357
10358fi
10359
10360done
10361
10362 fi
10363
10364fi
10365
10366
10367fi
10368done
10369
10370
10371{ echo "$as_me:$LINENO: checking for getspnam" >&5
10372echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10373if test "${ac_cv_func_getspnam+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376 cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h. */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */
10382/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10384#define getspnam innocuous_getspnam
10385
10386/* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char getspnam (); below.
10388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389 <limits.h> exists even on freestanding compilers. */
10390
10391#ifdef __STDC__
10392# include <limits.h>
10393#else
10394# include <assert.h>
10395#endif
10396
10397#undef getspnam
10398
10399/* Override any GCC internal prototype to avoid an error.
10400 Use char because int might match the return type of a GCC
10401 builtin and then its argument prototype would still apply. */
10402#ifdef __cplusplus
10403extern "C"
10404#endif
10405char getspnam ();
10406/* The GNU C library defines this for functions which it implements
10407 to always fail with ENOSYS. Some functions are actually named
10408 something starting with __ and the normal name is an alias. */
10409#if defined __stub_getspnam || defined __stub___getspnam
10410choke me
10411#endif
10412
10413int
10414main ()
10415{
10416return getspnam ();
10417 ;
10418 return 0;
10419}
10420_ACEOF
10421rm -f conftest.$ac_objext conftest$ac_exeext
10422if { (ac_try="$ac_link"
10423case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426esac
10427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_link") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext &&
10438 $as_test_x conftest$ac_exeext; then
10439 ac_cv_func_getspnam=yes
10440else
10441 echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 ac_cv_func_getspnam=no
10445fi
10446
10447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10448 conftest$ac_exeext conftest.$ac_ext
10449fi
10450{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10451echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10452if test $ac_cv_func_getspnam = yes; then
10453 :
10454else
10455 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10456echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10457if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 ac_check_lib_save_LIBS=$LIBS
10461LIBS="-lgen $LIBS"
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468
10469/* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10472#ifdef __cplusplus
10473extern "C"
10474#endif
10475char getspnam ();
10476int
10477main ()
10478{
10479return getspnam ();
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
10485if { (ac_try="$ac_link"
10486case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 ac_cv_lib_gen_getspnam=yes
10503else
10504 echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 ac_cv_lib_gen_getspnam=no
10508fi
10509
10510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512LIBS=$ac_check_lib_save_LIBS
10513fi
10514{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10515echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10516if test $ac_cv_lib_gen_getspnam = yes; then
10517 LIBS="$LIBS -lgen"
10518fi
10519
10520fi
10521
10522{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10523echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10524if test "${ac_cv_search_basename+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 ac_func_search_save_LIBS=$LIBS
10528cat >conftest.$ac_ext <<_ACEOF
10529/* confdefs.h. */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */
10534
10535/* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10538#ifdef __cplusplus
10539extern "C"
10540#endif
10541char basename ();
10542int
10543main ()
10544{
10545return basename ();
10546 ;
10547 return 0;
10548}
10549_ACEOF
10550for ac_lib in '' gen; do
10551 if test -z "$ac_lib"; then
10552 ac_res="none required"
10553 else
10554 ac_res=-l$ac_lib
10555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10556 fi
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558if { (ac_try="$ac_link"
10559case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562esac
10563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 ac_cv_search_basename=$ac_res
10576else
10577 echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5
10579
10580
10581fi
10582
10583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext
10585 if test "${ac_cv_search_basename+set}" = set; then
10586 break
10587fi
10588done
10589if test "${ac_cv_search_basename+set}" = set; then
10590 :
10591else
10592 ac_cv_search_basename=no
10593fi
10594rm conftest.$ac_ext
10595LIBS=$ac_func_search_save_LIBS
10596fi
10597{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10598echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10599ac_res=$ac_cv_search_basename
10600if test "$ac_res" != no; then
10601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10602
10603cat >>confdefs.h <<\_ACEOF
10604#define HAVE_BASENAME 1
10605_ACEOF
10606
10607fi
10608
10609
10610
10611# Check whether --with-zlib was given.
10612if test "${with_zlib+set}" = set; then
10613 withval=$with_zlib; if test "x$withval" = "xno" ; then
10614 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10615echo "$as_me: error: *** zlib is required ***" >&2;}
10616 { (exit 1); exit 1; }; }
10617 elif test "x$withval" != "xyes"; then
10618 if test -d "$withval/lib"; then
10619 if test -n "${need_dash_r}"; then
10620 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10621 else
10622 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10623 fi
10624 else
10625 if test -n "${need_dash_r}"; then
10626 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10627 else
10628 LDFLAGS="-L${withval} ${LDFLAGS}"
10629 fi
10630 fi
10631 if test -d "$withval/include"; then
10632 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10633 else
10634 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10635 fi
10636 fi
10637
10638fi
10639
10640
10641if test "${ac_cv_header_zlib_h+set}" = set; then
10642 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10643echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10644if test "${ac_cv_header_zlib_h+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646fi
10647{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10648echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10649else
10650 # Is the header compilable?
10651{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10652echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10653cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h. */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
10658/* end confdefs.h. */
10659$ac_includes_default
10660#include <zlib.h>
10661_ACEOF
10662rm -f conftest.$ac_objext
10663if { (ac_try="$ac_compile"
10664case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_compile") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest.$ac_objext; then
10679 ac_header_compiler=yes
10680else
10681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 ac_header_compiler=no
10685fi
10686
10687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10689echo "${ECHO_T}$ac_header_compiler" >&6; }
10690
10691# Is the header present?
10692{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10693echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10694cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700#include <zlib.h>
10701_ACEOF
10702if { (ac_try="$ac_cpp conftest.$ac_ext"
10703case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } >/dev/null && {
10715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 }; then
10718 ac_header_preproc=yes
10719else
10720 echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 ac_header_preproc=no
10724fi
10725
10726rm -f conftest.err conftest.$ac_ext
10727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10728echo "${ECHO_T}$ac_header_preproc" >&6; }
10729
10730# So? What about this header?
10731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10732 yes:no: )
10733 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10734echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10736echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10737 ac_header_preproc=yes
10738 ;;
10739 no:yes:* )
10740 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10741echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10743echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10745echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10747echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10749echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10751echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10752 ( cat <<\_ASBOX
10753## ------------------------------------------- ##
10754## Report this to openssh-unix-dev@mindrot.org ##
10755## ------------------------------------------- ##
10756_ASBOX
10757 ) | sed "s/^/$as_me: WARNING: /" >&2
10758 ;;
10759esac
10760{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10761echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10762if test "${ac_cv_header_zlib_h+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 ac_cv_header_zlib_h=$ac_header_preproc
10766fi
10767{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10768echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10769
10770fi
10771if test $ac_cv_header_zlib_h = yes; then
10772 :
10773else
10774 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10775echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10776 { (exit 1); exit 1; }; }
10777fi
10778
10779
10780
10781{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10782echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10783if test "${ac_cv_lib_z_deflate+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 ac_check_lib_save_LIBS=$LIBS
10787LIBS="-lz $LIBS"
10788cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h. */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h. */
10794
10795/* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798#ifdef __cplusplus
10799extern "C"
10800#endif
10801char deflate ();
10802int
10803main ()
10804{
10805return deflate ();
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext conftest$ac_exeext
10811if { (ac_try="$ac_link"
10812case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_link") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && {
10824 test -z "$ac_c_werror_flag" ||
10825 test ! -s conftest.err
10826 } && test -s conftest$ac_exeext &&
10827 $as_test_x conftest$ac_exeext; then
10828 ac_cv_lib_z_deflate=yes
10829else
10830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ac_cv_lib_z_deflate=no
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10841echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10842if test $ac_cv_lib_z_deflate = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844#define HAVE_LIBZ 1
10845_ACEOF
10846
10847 LIBS="-lz $LIBS"
10848
10849else
10850
10851 saved_CPPFLAGS="$CPPFLAGS"
10852 saved_LDFLAGS="$LDFLAGS"
10853 save_LIBS="$LIBS"
10854 if test -n "${need_dash_r}"; then
10855 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10856 else
10857 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10858 fi
10859 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10860 LIBS="$LIBS -lz"
10861 cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
10867
10868/* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871#ifdef __cplusplus
10872extern "C"
10873#endif
10874char deflate ();
10875int
10876main ()
10877{
10878return deflate ();
10879 ;
10880 return 0;
10881}
10882_ACEOF
10883rm -f conftest.$ac_objext conftest$ac_exeext
10884if { (ac_try="$ac_link"
10885case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_link") 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext &&
10900 $as_test_x conftest$ac_exeext; then
10901 cat >>confdefs.h <<\_ACEOF
10902#define HAVE_LIBZ 1
10903_ACEOF
10904
10905else
10906 echo "$as_me: failed program was:" >&5
10907sed 's/^/| /' conftest.$ac_ext >&5
10908
10909
10910 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10911echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10912 { (exit 1); exit 1; }; }
10913
10914
10915fi
10916
10917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10919
10920
10921fi
10922
10923
10924
10925# Check whether --with-zlib-version-check was given.
10926if test "${with_zlib_version_check+set}" = set; then
10927 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
10928 zlib_check_nonfatal=1
10929 fi
10930
10931
10932fi
10933
10934
10935{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
10936echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
10937if test "$cross_compiling" = yes; then
10938 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
10939echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
10940
10941else
10942 cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948
10949#include <stdio.h>
10950#include <zlib.h>
10951int main()
10952{
10953 int a=0, b=0, c=0, d=0, n, v;
10954 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
10955 if (n != 3 && n != 4)
10956 exit(1);
10957 v = a*1000000 + b*10000 + c*100 + d;
10958 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
10959
10960 /* 1.1.4 is OK */
10961 if (a == 1 && b == 1 && c >= 4)
10962 exit(0);
10963
10964 /* 1.2.3 and up are OK */
10965 if (v >= 1020300)
10966 exit(0);
10967
10968 exit(2);
10969}
10970
10971_ACEOF
10972rm -f conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 { echo "$as_me:$LINENO: result: no" >&5
10993echo "${ECHO_T}no" >&6; }
10994else
10995 echo "$as_me: program exited with status $ac_status" >&5
10996echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
10999( exit $ac_status )
11000 { echo "$as_me:$LINENO: result: yes" >&5
11001echo "${ECHO_T}yes" >&6; }
11002 if test -z "$zlib_check_nonfatal" ; then
11003 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11004Your reported zlib version has known security problems. It's possible your
11005vendor has fixed these problems without changing the version number. If you
11006are sure this is the case, you can disable the check by running
11007\"./configure --without-zlib-version-check\".
11008If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11009See http://www.gzip.org/zlib/ for details." >&5
11010echo "$as_me: error: *** zlib too old - check config.log ***
11011Your reported zlib version has known security problems. It's possible your
11012vendor has fixed these problems without changing the version number. If you
11013are sure this is the case, you can disable the check by running
11014\"./configure --without-zlib-version-check\".
11015If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11016See http://www.gzip.org/zlib/ for details." >&2;}
11017 { (exit 1); exit 1; }; }
11018 else
11019 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11020echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11021 fi
11022
11023fi
11024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11025fi
11026
11027
11028
11029{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
11030echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11031if test "${ac_cv_func_strcasecmp+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034 cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11042#define strcasecmp innocuous_strcasecmp
11043
11044/* System header to define __stub macros and hopefully few prototypes,
11045 which can conflict with char strcasecmp (); below.
11046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11047 <limits.h> exists even on freestanding compilers. */
11048
11049#ifdef __STDC__
11050# include <limits.h>
11051#else
11052# include <assert.h>
11053#endif
11054
11055#undef strcasecmp
11056
11057/* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11060#ifdef __cplusplus
11061extern "C"
11062#endif
11063char strcasecmp ();
11064/* The GNU C library defines this for functions which it implements
11065 to always fail with ENOSYS. Some functions are actually named
11066 something starting with __ and the normal name is an alias. */
11067#if defined __stub_strcasecmp || defined __stub___strcasecmp
11068choke me
11069#endif
11070
11071int
11072main ()
11073{
11074return strcasecmp ();
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079rm -f conftest.$ac_objext conftest$ac_exeext
11080if { (ac_try="$ac_link"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_link") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest$ac_exeext &&
11096 $as_test_x conftest$ac_exeext; then
11097 ac_cv_func_strcasecmp=yes
11098else
11099 echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_func_strcasecmp=no
11103fi
11104
11105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11106 conftest$ac_exeext conftest.$ac_ext
11107fi
11108{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11109echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11110if test $ac_cv_func_strcasecmp = yes; then
11111 :
11112else
11113 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11114echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11115if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117else
11118 ac_check_lib_save_LIBS=$LIBS
11119LIBS="-lresolv $LIBS"
11120cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
11126
11127/* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130#ifdef __cplusplus
11131extern "C"
11132#endif
11133char strcasecmp ();
11134int
11135main ()
11136{
11137return strcasecmp ();
11138 ;
11139 return 0;
11140}
11141_ACEOF
11142rm -f conftest.$ac_objext conftest$ac_exeext
11143if { (ac_try="$ac_link"
11144case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_link") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest$ac_exeext &&
11159 $as_test_x conftest$ac_exeext; then
11160 ac_cv_lib_resolv_strcasecmp=yes
11161else
11162 echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_cv_lib_resolv_strcasecmp=no
11166fi
11167
11168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11169 conftest$ac_exeext conftest.$ac_ext
11170LIBS=$ac_check_lib_save_LIBS
11171fi
11172{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11173echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11174if test $ac_cv_lib_resolv_strcasecmp = yes; then
11175 LIBS="$LIBS -lresolv"
11176fi
11177
11178
11179fi
11180
11181
11182for ac_func in utimes
11183do
11184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11198#define $ac_func innocuous_$ac_func
11199
11200/* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func (); below.
11202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203 <limits.h> exists even on freestanding compilers. */
11204
11205#ifdef __STDC__
11206# include <limits.h>
11207#else
11208# include <assert.h>
11209#endif
11210
11211#undef $ac_func
11212
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216#ifdef __cplusplus
11217extern "C"
11218#endif
11219char $ac_func ();
11220/* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223#if defined __stub_$ac_func || defined __stub___$ac_func
11224choke me
11225#endif
11226
11227int
11228main ()
11229{
11230return $ac_func ();
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235rm -f conftest.$ac_objext conftest$ac_exeext
11236if { (ac_try="$ac_link"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_link") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext &&
11252 $as_test_x conftest$ac_exeext; then
11253 eval "$as_ac_var=yes"
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 eval "$as_ac_var=no"
11259fi
11260
11261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11262 conftest$ac_exeext conftest.$ac_ext
11263fi
11264ac_res=`eval echo '${'$as_ac_var'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266echo "${ECHO_T}$ac_res" >&6; }
11267if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270_ACEOF
11271
11272else
11273 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11274echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11275if test "${ac_cv_lib_c89_utimes+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277else
11278 ac_check_lib_save_LIBS=$LIBS
11279LIBS="-lc89 $LIBS"
11280cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286
11287/* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11290#ifdef __cplusplus
11291extern "C"
11292#endif
11293char utimes ();
11294int
11295main ()
11296{
11297return utimes ();
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext conftest$ac_exeext
11303if { (ac_try="$ac_link"
11304case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 ac_cv_lib_c89_utimes=yes
11321else
11322 echo "$as_me: failed program was:" >&5
11323sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_cv_lib_c89_utimes=no
11326fi
11327
11328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11330LIBS=$ac_check_lib_save_LIBS
11331fi
11332{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11333echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11334if test $ac_cv_lib_c89_utimes = yes; then
11335 cat >>confdefs.h <<\_ACEOF
11336#define HAVE_UTIMES 1
11337_ACEOF
11338
11339 LIBS="$LIBS -lc89"
11340fi
11341
11342
11343fi
11344done
11345
11346
11347
11348for ac_header in libutil.h
11349do
11350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356fi
11357ac_res=`eval echo '${'$as_ac_Header'}'`
11358 { echo "$as_me:$LINENO: result: $ac_res" >&5
11359echo "${ECHO_T}$ac_res" >&6; }
11360else
11361 # Is the header compilable?
11362{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11364cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
11370$ac_includes_default
11371#include <$ac_header>
11372_ACEOF
11373rm -f conftest.$ac_objext
11374if { (ac_try="$ac_compile"
11375case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378esac
11379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_compile") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest.$ac_objext; then
11390 ac_header_compiler=yes
11391else
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 ac_header_compiler=no
11396fi
11397
11398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11400echo "${ECHO_T}$ac_header_compiler" >&6; }
11401
11402# Is the header present?
11403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11405cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411#include <$ac_header>
11412_ACEOF
11413if { (ac_try="$ac_cpp conftest.$ac_ext"
11414case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null && {
11426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11427 test ! -s conftest.err
11428 }; then
11429 ac_header_preproc=yes
11430else
11431 echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 ac_header_preproc=no
11435fi
11436
11437rm -f conftest.err conftest.$ac_ext
11438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11439echo "${ECHO_T}$ac_header_preproc" >&6; }
11440
11441# So? What about this header?
11442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11443 yes:no: )
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11448 ac_header_preproc=yes
11449 ;;
11450 no:yes:* )
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 ( cat <<\_ASBOX
11464## ------------------------------------------- ##
11465## Report this to openssh-unix-dev@mindrot.org ##
11466## ------------------------------------------- ##
11467_ASBOX
11468 ) | sed "s/^/$as_me: WARNING: /" >&2
11469 ;;
11470esac
11471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475else
11476 eval "$as_ac_Header=\$ac_header_preproc"
11477fi
11478ac_res=`eval echo '${'$as_ac_Header'}'`
11479 { echo "$as_me:$LINENO: result: $ac_res" >&5
11480echo "${ECHO_T}$ac_res" >&6; }
11481
11482fi
11483if test `eval echo '${'$as_ac_Header'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486_ACEOF
11487
11488fi
11489
11490done
11491
11492{ echo "$as_me:$LINENO: checking for library containing login" >&5
11493echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11494if test "${ac_cv_search_login+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 ac_func_search_save_LIBS=$LIBS
11498cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h. */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h. */
11504
11505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508#ifdef __cplusplus
11509extern "C"
11510#endif
11511char login ();
11512int
11513main ()
11514{
11515return login ();
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520for ac_lib in '' util bsd; do
11521 if test -z "$ac_lib"; then
11522 ac_res="none required"
11523 else
11524 ac_res=-l$ac_lib
11525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11526 fi
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528if { (ac_try="$ac_link"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_link") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } && {
11541 test -z "$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 } && test -s conftest$ac_exeext &&
11544 $as_test_x conftest$ac_exeext; then
11545 ac_cv_search_login=$ac_res
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
11550
11551fi
11552
11553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554 conftest$ac_exeext
11555 if test "${ac_cv_search_login+set}" = set; then
11556 break
11557fi
11558done
11559if test "${ac_cv_search_login+set}" = set; then
11560 :
11561else
11562 ac_cv_search_login=no
11563fi
11564rm conftest.$ac_ext
11565LIBS=$ac_func_search_save_LIBS
11566fi
11567{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11568echo "${ECHO_T}$ac_cv_search_login" >&6; }
11569ac_res=$ac_cv_search_login
11570if test "$ac_res" != no; then
11571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11572
11573cat >>confdefs.h <<\_ACEOF
11574#define HAVE_LOGIN 1
11575_ACEOF
11576
11577fi
11578
11579
11580
11581
11582
11583for ac_func in fmt_scaled logout updwtmp logwtmp
11584do
11585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599#define $ac_func innocuous_$ac_func
11600
11601/* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11605
11606#ifdef __STDC__
11607# include <limits.h>
11608#else
11609# include <assert.h>
11610#endif
11611
11612#undef $ac_func
11613
11614/* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617#ifdef __cplusplus
11618extern "C"
11619#endif
11620char $ac_func ();
11621/* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624#if defined __stub_$ac_func || defined __stub___$ac_func
11625choke me
11626#endif
11627
11628int
11629main ()
11630{
11631return $ac_func ();
11632 ;
11633 return 0;
11634}
11635_ACEOF
11636rm -f conftest.$ac_objext conftest$ac_exeext
11637if { (ac_try="$ac_link"
11638case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest$ac_exeext &&
11653 $as_test_x conftest$ac_exeext; then
11654 eval "$as_ac_var=yes"
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 eval "$as_ac_var=no"
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11663 conftest$ac_exeext conftest.$ac_ext
11664fi
11665ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
11668if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671_ACEOF
11672
11673fi
11674done
11675
11676
11677
11678for ac_func in strftime
11679do
11680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686 cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
11692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694#define $ac_func innocuous_$ac_func
11695
11696/* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11700
11701#ifdef __STDC__
11702# include <limits.h>
11703#else
11704# include <assert.h>
11705#endif
11706
11707#undef $ac_func
11708
11709/* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char $ac_func ();
11716/* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719#if defined __stub_$ac_func || defined __stub___$ac_func
11720choke me
11721#endif
11722
11723int
11724main ()
11725{
11726return $ac_func ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (ac_try="$ac_link"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest$ac_exeext &&
11748 $as_test_x conftest$ac_exeext; then
11749 eval "$as_ac_var=yes"
11750else
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 eval "$as_ac_var=no"
11755fi
11756
11757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11758 conftest$ac_exeext conftest.$ac_ext
11759fi
11760ac_res=`eval echo '${'$as_ac_var'}'`
11761 { echo "$as_me:$LINENO: result: $ac_res" >&5
11762echo "${ECHO_T}$ac_res" >&6; }
11763if test `eval echo '${'$as_ac_var'}'` = yes; then
11764 cat >>confdefs.h <<_ACEOF
11765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766_ACEOF
11767
11768else
11769 # strftime is in -lintl on SCO UNIX.
11770{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11771echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11772if test "${ac_cv_lib_intl_strftime+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 ac_check_lib_save_LIBS=$LIBS
11776LIBS="-lintl $LIBS"
11777cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
11783
11784/* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11787#ifdef __cplusplus
11788extern "C"
11789#endif
11790char strftime ();
11791int
11792main ()
11793{
11794return strftime ();
11795 ;
11796 return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext conftest$ac_exeext
11800if { (ac_try="$ac_link"
11801case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest$ac_exeext &&
11816 $as_test_x conftest$ac_exeext; then
11817 ac_cv_lib_intl_strftime=yes
11818else
11819 echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 ac_cv_lib_intl_strftime=no
11823fi
11824
11825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11826 conftest$ac_exeext conftest.$ac_ext
11827LIBS=$ac_check_lib_save_LIBS
11828fi
11829{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11830echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11831if test $ac_cv_lib_intl_strftime = yes; then
11832 cat >>confdefs.h <<\_ACEOF
11833#define HAVE_STRFTIME 1
11834_ACEOF
11835
11836LIBS="-lintl $LIBS"
11837fi
11838
11839fi
11840done
11841
11842
11843# Check for ALTDIRFUNC glob() extension
11844{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11845echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11846cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852
11853 #include <glob.h>
11854 #ifdef GLOB_ALTDIRFUNC
11855 FOUNDIT
11856 #endif
11857
11858_ACEOF
11859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11860 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11861
11862
11863cat >>confdefs.h <<\_ACEOF
11864#define GLOB_HAS_ALTDIRFUNC 1
11865_ACEOF
11866
11867 { echo "$as_me:$LINENO: result: yes" >&5
11868echo "${ECHO_T}yes" >&6; }
11869
11870else
11871
11872 { echo "$as_me:$LINENO: result: no" >&5
11873echo "${ECHO_T}no" >&6; }
11874
11875
11876fi
11877rm -f conftest*
11878
11879
11880# Check for g.gl_matchc glob() extension
11881{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11882echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11883cat >conftest.$ac_ext <<_ACEOF
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889 #include <glob.h>
11890int
11891main ()
11892{
11893glob_t g; g.gl_matchc = 1;
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext
11899if { (ac_try="$ac_compile"
11900case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903esac
11904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_compile") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest.$ac_objext; then
11915
11916
11917cat >>confdefs.h <<\_ACEOF
11918#define GLOB_HAS_GL_MATCHC 1
11919_ACEOF
11920
11921 { echo "$as_me:$LINENO: result: yes" >&5
11922echo "${ECHO_T}yes" >&6; }
11923
11924else
11925 echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928
11929 { echo "$as_me:$LINENO: result: no" >&5
11930echo "${ECHO_T}no" >&6; }
11931
11932
11933fi
11934
11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936
11937{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11938echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11939if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948#include <glob.h>
11949
11950int
11951main ()
11952{
11953#ifndef GLOB_NOMATCH
11954 (void) GLOB_NOMATCH;
11955#endif
11956
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext
11962if { (ac_try="$ac_compile"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest.$ac_objext; then
11978 ac_cv_have_decl_GLOB_NOMATCH=yes
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 ac_cv_have_decl_GLOB_NOMATCH=no
11984fi
11985
11986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987fi
11988{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11989echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11990if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11991
11992cat >>confdefs.h <<_ACEOF
11993#define HAVE_DECL_GLOB_NOMATCH 1
11994_ACEOF
11995
11996
11997else
11998 cat >>confdefs.h <<_ACEOF
11999#define HAVE_DECL_GLOB_NOMATCH 0
12000_ACEOF
12001
12002
12003fi
12004
12005
12006
12007{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12008echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12009if test "$cross_compiling" = yes; then
12010
12011 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12012echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12013 cat >>confdefs.h <<\_ACEOF
12014#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12015_ACEOF
12016
12017
12018
12019else
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026
12027#include <sys/types.h>
12028#include <dirent.h>
12029int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12030
12031_ACEOF
12032rm -f conftest$ac_exeext
12033if { (ac_try="$ac_link"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 { echo "$as_me:$LINENO: result: yes" >&5
12053echo "${ECHO_T}yes" >&6; }
12054else
12055 echo "$as_me: program exited with status $ac_status" >&5
12056echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059( exit $ac_status )
12060
12061 { echo "$as_me:$LINENO: result: no" >&5
12062echo "${ECHO_T}no" >&6; }
12063
12064cat >>confdefs.h <<\_ACEOF
12065#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12066_ACEOF
12067
12068
12069fi
12070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12071fi
12072
12073
12074
12075{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12076echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12077if test -d "/proc/$$/fd" ; then
12078
12079cat >>confdefs.h <<\_ACEOF
12080#define HAVE_PROC_PID 1
12081_ACEOF
12082
12083 { echo "$as_me:$LINENO: result: yes" >&5
12084echo "${ECHO_T}yes" >&6; }
12085else
12086 { echo "$as_me:$LINENO: result: no" >&5
12087echo "${ECHO_T}no" >&6; }
12088fi
12089
12090# Check whether user wants S/Key support
12091SKEY_MSG="no"
12092
12093# Check whether --with-skey was given.
12094if test "${with_skey+set}" = set; then
12095 withval=$with_skey;
12096 if test "x$withval" != "xno" ; then
12097
12098 if test "x$withval" != "xyes" ; then
12099 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12100 LDFLAGS="$LDFLAGS -L${withval}/lib"
12101 fi
12102
12103
12104cat >>confdefs.h <<\_ACEOF
12105#define SKEY 1
12106_ACEOF
12107
12108 LIBS="-lskey $LIBS"
12109 SKEY_MSG="yes"
12110
12111 { echo "$as_me:$LINENO: checking for s/key support" >&5
12112echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119
12120#include <stdio.h>
12121#include <skey.h>
12122int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12123
12124_ACEOF
12125rm -f conftest.$ac_objext conftest$ac_exeext
12126if { (ac_try="$ac_link"
12127case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest$ac_exeext &&
12142 $as_test_x conftest$ac_exeext; then
12143 { echo "$as_me:$LINENO: result: yes" >&5
12144echo "${ECHO_T}yes" >&6; }
12145else
12146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149
12150 { echo "$as_me:$LINENO: result: no" >&5
12151echo "${ECHO_T}no" >&6; }
12152 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12153echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12154 { (exit 1); exit 1; }; }
12155
12156fi
12157
12158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12161echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168#include <stdio.h>
12169 #include <skey.h>
12170int
12171main ()
12172{
12173(void)skeychallenge(NULL,"name","",0);
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (ac_try="$ac_compile"
12180case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest.$ac_objext; then
12195 { echo "$as_me:$LINENO: result: yes" >&5
12196echo "${ECHO_T}yes" >&6; }
12197
12198cat >>confdefs.h <<\_ACEOF
12199#define SKEYCHALLENGE_4ARG 1
12200_ACEOF
12201
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 { echo "$as_me:$LINENO: result: no" >&5
12207echo "${ECHO_T}no" >&6; }
12208
12209fi
12210
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 fi
12213
12214
12215fi
12216
12217
12218# Check whether user wants TCP wrappers support
12219TCPW_MSG="no"
12220
12221# Check whether --with-tcp-wrappers was given.
12222if test "${with_tcp_wrappers+set}" = set; then
12223 withval=$with_tcp_wrappers;
12224 if test "x$withval" != "xno" ; then
12225 saved_LIBS="$LIBS"
12226 saved_LDFLAGS="$LDFLAGS"
12227 saved_CPPFLAGS="$CPPFLAGS"
12228 if test -n "${withval}" && \
12229 test "x${withval}" != "xyes"; then
12230 if test -d "${withval}/lib"; then
12231 if test -n "${need_dash_r}"; then
12232 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12233 else
12234 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12235 fi
12236 else
12237 if test -n "${need_dash_r}"; then
12238 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12239 else
12240 LDFLAGS="-L${withval} ${LDFLAGS}"
12241 fi
12242 fi
12243 if test -d "${withval}/include"; then
12244 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12245 else
12246 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12247 fi
12248 fi
12249 LIBS="-lwrap $LIBS"
12250 { echo "$as_me:$LINENO: checking for libwrap" >&5
12251echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12252 cat >conftest.$ac_ext <<_ACEOF
12253/* confdefs.h. */
12254_ACEOF
12255cat confdefs.h >>conftest.$ac_ext
12256cat >>conftest.$ac_ext <<_ACEOF
12257/* end confdefs.h. */
12258
12259#include <sys/types.h>
12260#include <sys/socket.h>
12261#include <netinet/in.h>
12262#include <tcpd.h>
12263 int deny_severity = 0, allow_severity = 0;
12264
12265int
12266main ()
12267{
12268hosts_access(0);
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273rm -f conftest.$ac_objext conftest$ac_exeext
12274if { (ac_try="$ac_link"
12275case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291
12292 { echo "$as_me:$LINENO: result: yes" >&5
12293echo "${ECHO_T}yes" >&6; }
12294
12295cat >>confdefs.h <<\_ACEOF
12296#define LIBWRAP 1
12297_ACEOF
12298
12299 SSHDLIBS="$SSHDLIBS -lwrap"
12300 TCPW_MSG="yes"
12301
12302else
12303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306
12307 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12308echo "$as_me: error: *** libwrap missing" >&2;}
12309 { (exit 1); exit 1; }; }
12310
12311
12312fi
12313
12314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS="$saved_LIBS"
12317 fi
12318
12319
12320fi
12321
12322
12323# Check whether user wants libedit support
12324LIBEDIT_MSG="no"
12325
12326# Check whether --with-libedit was given.
12327if test "${with_libedit+set}" = set; then
12328 withval=$with_libedit; if test "x$withval" != "xno" ; then
12329 if test "x$withval" != "xyes"; then
12330 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12331 if test -n "${need_dash_r}"; then
12332 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12333 else
12334 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12335 fi
12336 fi
12337 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12338echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12339if test "${ac_cv_lib_edit_el_init+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 ac_check_lib_save_LIBS=$LIBS
12343LIBS="-ledit -lcurses
12344 $LIBS"
12345cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char el_init ();
12359int
12360main ()
12361{
12362return el_init ();
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest$ac_exeext &&
12384 $as_test_x conftest$ac_exeext; then
12385 ac_cv_lib_edit_el_init=yes
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_edit_el_init=no
12391fi
12392
12393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12394 conftest$ac_exeext conftest.$ac_ext
12395LIBS=$ac_check_lib_save_LIBS
12396fi
12397{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12398echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12399if test $ac_cv_lib_edit_el_init = yes; then
12400
12401cat >>confdefs.h <<\_ACEOF
12402#define USE_LIBEDIT 1
12403_ACEOF
12404
12405 LIBEDIT="-ledit -lcurses"
12406 LIBEDIT_MSG="yes"
12407
12408
12409else
12410 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12411echo "$as_me: error: libedit not found" >&2;}
12412 { (exit 1); exit 1; }; }
12413fi
12414
12415 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12416echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12417 cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
12422/* end confdefs.h. */
12423
12424#include <histedit.h>
12425int main(void)
12426{
12427 int i = H_SETSIZE;
12428 el_init("", NULL, NULL, NULL);
12429 exit(0);
12430}
12431
12432_ACEOF
12433rm -f conftest.$ac_objext
12434if { (ac_try="$ac_compile"
12435case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438esac
12439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12450 { echo "$as_me:$LINENO: result: yes" >&5
12451echo "${ECHO_T}yes" >&6; }
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 { echo "$as_me:$LINENO: result: no" >&5
12457echo "${ECHO_T}no" >&6; }
12458 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12459echo "$as_me: error: libedit version is not compatible" >&2;}
12460 { (exit 1); exit 1; }; }
12461
12462fi
12463
12464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465 fi
12466
12467fi
12468
12469
12470AUDIT_MODULE=none
12471
12472# Check whether --with-audit was given.
12473if test "${with_audit+set}" = set; then
12474 withval=$with_audit;
12475 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12476echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12477 case "$withval" in
12478 bsm)
12479 { echo "$as_me:$LINENO: result: bsm" >&5
12480echo "${ECHO_T}bsm" >&6; }
12481 AUDIT_MODULE=bsm
12482
12483for ac_header in bsm/audit.h
12484do
12485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490else
12491 cat >conftest.$ac_ext <<_ACEOF
12492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497
12498#ifdef HAVE_TIME_H
12499# include <time.h>
12500#endif
12501
12502
12503
12504#include <$ac_header>
12505_ACEOF
12506rm -f conftest.$ac_objext
12507if { (ac_try="$ac_compile"
12508case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_compile") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest.$ac_objext; then
12523 eval "$as_ac_Header=yes"
12524else
12525 echo "$as_me: failed program was:" >&5
12526sed 's/^/| /' conftest.$ac_ext >&5
12527
12528 eval "$as_ac_Header=no"
12529fi
12530
12531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532fi
12533ac_res=`eval echo '${'$as_ac_Header'}'`
12534 { echo "$as_me:$LINENO: result: $ac_res" >&5
12535echo "${ECHO_T}$ac_res" >&6; }
12536if test `eval echo '${'$as_ac_Header'}'` = yes; then
12537 cat >>confdefs.h <<_ACEOF
12538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12539_ACEOF
12540
12541else
12542 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12543echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12544 { (exit 1); exit 1; }; }
12545fi
12546
12547done
12548
12549
12550{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12551echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12552if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 ac_check_lib_save_LIBS=$LIBS
12556LIBS="-lbsm $LIBS"
12557cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563
12564/* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
12567#ifdef __cplusplus
12568extern "C"
12569#endif
12570char getaudit ();
12571int
12572main ()
12573{
12574return getaudit ();
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext conftest$ac_exeext
12580if { (ac_try="$ac_link"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_link") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest$ac_exeext &&
12596 $as_test_x conftest$ac_exeext; then
12597 ac_cv_lib_bsm_getaudit=yes
12598else
12599 echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 ac_cv_lib_bsm_getaudit=no
12603fi
12604
12605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606 conftest$ac_exeext conftest.$ac_ext
12607LIBS=$ac_check_lib_save_LIBS
12608fi
12609{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12610echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12611if test $ac_cv_lib_bsm_getaudit = yes; then
12612 cat >>confdefs.h <<_ACEOF
12613#define HAVE_LIBBSM 1
12614_ACEOF
12615
12616 LIBS="-lbsm $LIBS"
12617
12618else
12619 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12620echo "$as_me: error: BSM enabled and required library not found" >&2;}
12621 { (exit 1); exit 1; }; }
12622fi
12623
12624
12625for ac_func in getaudit
12626do
12627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633 cat >conftest.$ac_ext <<_ACEOF
12634/* confdefs.h. */
12635_ACEOF
12636cat confdefs.h >>conftest.$ac_ext
12637cat >>conftest.$ac_ext <<_ACEOF
12638/* end confdefs.h. */
12639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12641#define $ac_func innocuous_$ac_func
12642
12643/* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func (); below.
12645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 <limits.h> exists even on freestanding compilers. */
12647
12648#ifdef __STDC__
12649# include <limits.h>
12650#else
12651# include <assert.h>
12652#endif
12653
12654#undef $ac_func
12655
12656/* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12659#ifdef __cplusplus
12660extern "C"
12661#endif
12662char $ac_func ();
12663/* The GNU C library defines this for functions which it implements
12664 to always fail with ENOSYS. Some functions are actually named
12665 something starting with __ and the normal name is an alias. */
12666#if defined __stub_$ac_func || defined __stub___$ac_func
12667choke me
12668#endif
12669
12670int
12671main ()
12672{
12673return $ac_func ();
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext conftest$ac_exeext
12679if { (ac_try="$ac_link"
12680case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 eval "$as_ac_var=yes"
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 eval "$as_ac_var=no"
12702fi
12703
12704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12706fi
12707ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709echo "${ECHO_T}$ac_res" >&6; }
12710if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713_ACEOF
12714
12715else
12716 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12717echo "$as_me: error: BSM enabled and required function not found" >&2;}
12718 { (exit 1); exit 1; }; }
12719fi
12720done
12721
12722 # These are optional
12723
12724
12725for ac_func in getaudit_addr aug_get_machine
12726do
12727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12741#define $ac_func innocuous_$ac_func
12742
12743/* System header to define __stub macros and hopefully few prototypes,
12744 which can conflict with char $ac_func (); below.
12745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12746 <limits.h> exists even on freestanding compilers. */
12747
12748#ifdef __STDC__
12749# include <limits.h>
12750#else
12751# include <assert.h>
12752#endif
12753
12754#undef $ac_func
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char $ac_func ();
12763/* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766#if defined __stub_$ac_func || defined __stub___$ac_func
12767choke me
12768#endif
12769
12770int
12771main ()
12772{
12773return $ac_func ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest$ac_exeext &&
12795 $as_test_x conftest$ac_exeext; then
12796 eval "$as_ac_var=yes"
12797else
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 eval "$as_ac_var=no"
12802fi
12803
12804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12805 conftest$ac_exeext conftest.$ac_ext
12806fi
12807ac_res=`eval echo '${'$as_ac_var'}'`
12808 { echo "$as_me:$LINENO: result: $ac_res" >&5
12809echo "${ECHO_T}$ac_res" >&6; }
12810if test `eval echo '${'$as_ac_var'}'` = yes; then
12811 cat >>confdefs.h <<_ACEOF
12812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12813_ACEOF
12814
12815fi
12816done
12817
12818
12819cat >>confdefs.h <<\_ACEOF
12820#define USE_BSM_AUDIT 1
12821_ACEOF
12822
12823 ;;
12824 debug)
12825 AUDIT_MODULE=debug
12826 { echo "$as_me:$LINENO: result: debug" >&5
12827echo "${ECHO_T}debug" >&6; }
12828
12829cat >>confdefs.h <<\_ACEOF
12830#define SSH_AUDIT_EVENTS 1
12831_ACEOF
12832
12833 ;;
12834 no)
12835 { echo "$as_me:$LINENO: result: no" >&5
12836echo "${ECHO_T}no" >&6; }
12837 ;;
12838 *)
12839 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12840echo "$as_me: error: Unknown audit module $withval" >&2;}
12841 { (exit 1); exit 1; }; }
12842 ;;
12843 esac
12844
12845fi
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941for ac_func in \
12942 arc4random \
12943 arc4random_buf \
12944 arc4random_uniform \
12945 asprintf \
12946 b64_ntop \
12947 __b64_ntop \
12948 b64_pton \
12949 __b64_pton \
12950 bcopy \
12951 bindresvport_sa \
12952 clock \
12953 closefrom \
12954 dirfd \
12955 fchmod \
12956 fchown \
12957 freeaddrinfo \
12958 fstatvfs \
12959 futimes \
12960 getaddrinfo \
12961 getcwd \
12962 getgrouplist \
12963 getnameinfo \
12964 getopt \
12965 getpeereid \
12966 getpeerucred \
12967 _getpty \
12968 getrlimit \
12969 getttyent \
12970 glob \
12971 group_from_gid \
12972 inet_aton \
12973 inet_ntoa \
12974 inet_ntop \
12975 innetgr \
12976 login_getcapbool \
12977 md5_crypt \
12978 memmove \
12979 mkdtemp \
12980 mmap \
12981 ngetaddrinfo \
12982 nsleep \
12983 ogetaddrinfo \
12984 openlog_r \
12985 openpty \
12986 poll \
12987 prctl \
12988 pstat \
12989 readpassphrase \
12990 realpath \
12991 recvmsg \
12992 rresvport_af \
12993 sendmsg \
12994 setdtablesize \
12995 setegid \
12996 setenv \
12997 seteuid \
12998 setgroupent \
12999 setgroups \
13000 setlogin \
13001 setpassent\
13002 setpcred \
13003 setproctitle \
13004 setregid \
13005 setreuid \
13006 setrlimit \
13007 setsid \
13008 setvbuf \
13009 sigaction \
13010 sigvec \
13011 snprintf \
13012 socketpair \
13013 statfs \
13014 statvfs \
13015 strdup \
13016 strerror \
13017 strlcat \
13018 strlcpy \
13019 strmode \
13020 strnvis \
13021 strtonum \
13022 strtoll \
13023 strtoul \
13024 swap32 \
13025 sysconf \
13026 tcgetpgrp \
13027 truncate \
13028 unsetenv \
13029 updwtmpx \
13030 user_from_uid \
13031 vasprintf \
13032 vhangup \
13033 vsnprintf \
13034 waitpid \
13035
13036do
13037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13038{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h. */
13049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13051#define $ac_func innocuous_$ac_func
13052
13053/* System header to define __stub macros and hopefully few prototypes,
13054 which can conflict with char $ac_func (); below.
13055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 <limits.h> exists even on freestanding compilers. */
13057
13058#ifdef __STDC__
13059# include <limits.h>
13060#else
13061# include <assert.h>
13062#endif
13063
13064#undef $ac_func
13065
13066/* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069#ifdef __cplusplus
13070extern "C"
13071#endif
13072char $ac_func ();
13073/* The GNU C library defines this for functions which it implements
13074 to always fail with ENOSYS. Some functions are actually named
13075 something starting with __ and the normal name is an alias. */
13076#if defined __stub_$ac_func || defined __stub___$ac_func
13077choke me
13078#endif
13079
13080int
13081main ()
13082{
13083return $ac_func ();
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext conftest$ac_exeext
13089if { (ac_try="$ac_link"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest$ac_exeext &&
13105 $as_test_x conftest$ac_exeext; then
13106 eval "$as_ac_var=yes"
13107else
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 eval "$as_ac_var=no"
13112fi
13113
13114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13115 conftest$ac_exeext conftest.$ac_ext
13116fi
13117ac_res=`eval echo '${'$as_ac_var'}'`
13118 { echo "$as_me:$LINENO: result: $ac_res" >&5
13119echo "${ECHO_T}$ac_res" >&6; }
13120if test `eval echo '${'$as_ac_var'}'` = yes; then
13121 cat >>confdefs.h <<_ACEOF
13122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13123_ACEOF
13124
13125fi
13126done
13127
13128
13129# PKCS#11 support requires dlopen() and co
13130{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13131echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13132if test "${ac_cv_search_dlopen+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135 ac_func_search_save_LIBS=$LIBS
13136cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h. */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h. */
13142
13143/* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13146#ifdef __cplusplus
13147extern "C"
13148#endif
13149char dlopen ();
13150int
13151main ()
13152{
13153return dlopen ();
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158for ac_lib in '' dl; do
13159 if test -z "$ac_lib"; then
13160 ac_res="none required"
13161 else
13162 ac_res=-l$ac_lib
13163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13164 fi
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166if { (ac_try="$ac_link"
13167case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_link") 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_c_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest$ac_exeext &&
13182 $as_test_x conftest$ac_exeext; then
13183 ac_cv_search_dlopen=$ac_res
13184else
13185 echo "$as_me: failed program was:" >&5
13186sed 's/^/| /' conftest.$ac_ext >&5
13187
13188
13189fi
13190
13191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13192 conftest$ac_exeext
13193 if test "${ac_cv_search_dlopen+set}" = set; then
13194 break
13195fi
13196done
13197if test "${ac_cv_search_dlopen+set}" = set; then
13198 :
13199else
13200 ac_cv_search_dlopen=no
13201fi
13202rm conftest.$ac_ext
13203LIBS=$ac_func_search_save_LIBS
13204fi
13205{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13206echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13207ac_res=$ac_cv_search_dlopen
13208if test "$ac_res" != no; then
13209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13210
13211cat >>confdefs.h <<\_ACEOF
13212#define ENABLE_PKCS11
13213_ACEOF
13214
13215
13216fi
13217
13218
13219# IRIX has a const char return value for gai_strerror()
13220
13221for ac_func in gai_strerror
13222do
13223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13224{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13237#define $ac_func innocuous_$ac_func
13238
13239/* System header to define __stub macros and hopefully few prototypes,
13240 which can conflict with char $ac_func (); below.
13241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242 <limits.h> exists even on freestanding compilers. */
13243
13244#ifdef __STDC__
13245# include <limits.h>
13246#else
13247# include <assert.h>
13248#endif
13249
13250#undef $ac_func
13251
13252/* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255#ifdef __cplusplus
13256extern "C"
13257#endif
13258char $ac_func ();
13259/* The GNU C library defines this for functions which it implements
13260 to always fail with ENOSYS. Some functions are actually named
13261 something starting with __ and the normal name is an alias. */
13262#if defined __stub_$ac_func || defined __stub___$ac_func
13263choke me
13264#endif
13265
13266int
13267main ()
13268{
13269return $ac_func ();
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext conftest$ac_exeext
13275if { (ac_try="$ac_link"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_link") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest$ac_exeext &&
13291 $as_test_x conftest$ac_exeext; then
13292 eval "$as_ac_var=yes"
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 eval "$as_ac_var=no"
13298fi
13299
13300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13301 conftest$ac_exeext conftest.$ac_ext
13302fi
13303ac_res=`eval echo '${'$as_ac_var'}'`
13304 { echo "$as_me:$LINENO: result: $ac_res" >&5
13305echo "${ECHO_T}$ac_res" >&6; }
13306if test `eval echo '${'$as_ac_var'}'` = yes; then
13307 cat >>confdefs.h <<_ACEOF
13308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13309_ACEOF
13310
13311 cat >>confdefs.h <<\_ACEOF
13312#define HAVE_GAI_STRERROR 1
13313_ACEOF
13314
13315 cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321
13322#include <sys/types.h>
13323#include <sys/socket.h>
13324#include <netdb.h>
13325
13326const char *gai_strerror(int);
13327int
13328main ()
13329{
13330
13331char *str;
13332
13333str = gai_strerror(0);
13334 ;
13335 return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext
13339if { (ac_try="$ac_compile"
13340case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_compile") 2>conftest.er1
13346 ac_status=$?
13347 grep -v '^ *+' conftest.er1 >conftest.err
13348 rm -f conftest.er1
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } && {
13352 test -z "$ac_c_werror_flag" ||
13353 test ! -s conftest.err
13354 } && test -s conftest.$ac_objext; then
13355
13356
13357cat >>confdefs.h <<\_ACEOF
13358#define HAVE_CONST_GAI_STRERROR_PROTO 1
13359_ACEOF
13360
13361else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365
13366fi
13367
13368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369fi
13370done
13371
13372
13373{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
13374echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13375if test "${ac_cv_search_nanosleep+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377else
13378 ac_func_search_save_LIBS=$LIBS
13379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
13384/* end confdefs.h. */
13385
13386/* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389#ifdef __cplusplus
13390extern "C"
13391#endif
13392char nanosleep ();
13393int
13394main ()
13395{
13396return nanosleep ();
13397 ;
13398 return 0;
13399}
13400_ACEOF
13401for ac_lib in '' rt posix4; do
13402 if test -z "$ac_lib"; then
13403 ac_res="none required"
13404 else
13405 ac_res=-l$ac_lib
13406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13407 fi
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409if { (ac_try="$ac_link"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_link") 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest$ac_exeext &&
13425 $as_test_x conftest$ac_exeext; then
13426 ac_cv_search_nanosleep=$ac_res
13427else
13428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431
13432fi
13433
13434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13435 conftest$ac_exeext
13436 if test "${ac_cv_search_nanosleep+set}" = set; then
13437 break
13438fi
13439done
13440if test "${ac_cv_search_nanosleep+set}" = set; then
13441 :
13442else
13443 ac_cv_search_nanosleep=no
13444fi
13445rm conftest.$ac_ext
13446LIBS=$ac_func_search_save_LIBS
13447fi
13448{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13449echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13450ac_res=$ac_cv_search_nanosleep
13451if test "$ac_res" != no; then
13452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454cat >>confdefs.h <<\_ACEOF
13455#define HAVE_NANOSLEEP 1
13456_ACEOF
13457
13458fi
13459
13460
13461{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13462echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13463if test "${ac_cv_have_decl_getrusage+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465else
13466 cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472$ac_includes_default
13473int
13474main ()
13475{
13476#ifndef getrusage
13477 (void) getrusage;
13478#endif
13479
13480 ;
13481 return 0;
13482}
13483_ACEOF
13484rm -f conftest.$ac_objext
13485if { (ac_try="$ac_compile"
13486case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489esac
13490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_compile") 2>conftest.er1
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest.$ac_objext; then
13501 ac_cv_have_decl_getrusage=yes
13502else
13503 echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506 ac_cv_have_decl_getrusage=no
13507fi
13508
13509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510fi
13511{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13512echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13513if test $ac_cv_have_decl_getrusage = yes; then
13514
13515for ac_func in getrusage
13516do
13517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 cat >conftest.$ac_ext <<_ACEOF
13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
13528/* end confdefs.h. */
13529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13531#define $ac_func innocuous_$ac_func
13532
13533/* System header to define __stub macros and hopefully few prototypes,
13534 which can conflict with char $ac_func (); below.
13535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13536 <limits.h> exists even on freestanding compilers. */
13537
13538#ifdef __STDC__
13539# include <limits.h>
13540#else
13541# include <assert.h>
13542#endif
13543
13544#undef $ac_func
13545
13546/* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13549#ifdef __cplusplus
13550extern "C"
13551#endif
13552char $ac_func ();
13553/* The GNU C library defines this for functions which it implements
13554 to always fail with ENOSYS. Some functions are actually named
13555 something starting with __ and the normal name is an alias. */
13556#if defined __stub_$ac_func || defined __stub___$ac_func
13557choke me
13558#endif
13559
13560int
13561main ()
13562{
13563return $ac_func ();
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext conftest$ac_exeext
13569if { (ac_try="$ac_link"
13570case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 eval "$as_ac_var=yes"
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 eval "$as_ac_var=no"
13592fi
13593
13594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596fi
13597ac_res=`eval echo '${'$as_ac_var'}'`
13598 { echo "$as_me:$LINENO: result: $ac_res" >&5
13599echo "${ECHO_T}$ac_res" >&6; }
13600if test `eval echo '${'$as_ac_var'}'` = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603_ACEOF
13604
13605fi
13606done
13607
13608fi
13609
13610{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13611echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13612if test "${ac_cv_have_decl_strsep+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615 cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621
13622#ifdef HAVE_STRING_H
13623# include <string.h>
13624#endif
13625
13626
13627int
13628main ()
13629{
13630#ifndef strsep
13631 (void) strsep;
13632#endif
13633
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext
13639if { (ac_try="$ac_compile"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compile") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest.$ac_objext; then
13655 ac_cv_have_decl_strsep=yes
13656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 ac_cv_have_decl_strsep=no
13661fi
13662
13663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664fi
13665{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13666echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13667if test $ac_cv_have_decl_strsep = yes; then
13668
13669for ac_func in strsep
13670do
13671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13676else
13677 cat >conftest.$ac_ext <<_ACEOF
13678/* confdefs.h. */
13679_ACEOF
13680cat confdefs.h >>conftest.$ac_ext
13681cat >>conftest.$ac_ext <<_ACEOF
13682/* end confdefs.h. */
13683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13685#define $ac_func innocuous_$ac_func
13686
13687/* System header to define __stub macros and hopefully few prototypes,
13688 which can conflict with char $ac_func (); below.
13689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13690 <limits.h> exists even on freestanding compilers. */
13691
13692#ifdef __STDC__
13693# include <limits.h>
13694#else
13695# include <assert.h>
13696#endif
13697
13698#undef $ac_func
13699
13700/* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13703#ifdef __cplusplus
13704extern "C"
13705#endif
13706char $ac_func ();
13707/* The GNU C library defines this for functions which it implements
13708 to always fail with ENOSYS. Some functions are actually named
13709 something starting with __ and the normal name is an alias. */
13710#if defined __stub_$ac_func || defined __stub___$ac_func
13711choke me
13712#endif
13713
13714int
13715main ()
13716{
13717return $ac_func ();
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (ac_try="$ac_link"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_link") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest$ac_exeext &&
13739 $as_test_x conftest$ac_exeext; then
13740 eval "$as_ac_var=yes"
13741else
13742 echo "$as_me: failed program was:" >&5
13743sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 eval "$as_ac_var=no"
13746fi
13747
13748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13749 conftest$ac_exeext conftest.$ac_ext
13750fi
13751ac_res=`eval echo '${'$as_ac_var'}'`
13752 { echo "$as_me:$LINENO: result: $ac_res" >&5
13753echo "${ECHO_T}$ac_res" >&6; }
13754if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757_ACEOF
13758
13759fi
13760done
13761
13762fi
13763
13764
13765{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13766echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13767if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
13776#include <termios.h>
13777
13778
13779int
13780main ()
13781{
13782#ifndef tcsendbreak
13783 (void) tcsendbreak;
13784#endif
13785
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext
13791if { (ac_try="$ac_compile"
13792case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest.$ac_objext; then
13807 ac_cv_have_decl_tcsendbreak=yes
13808else
13809 echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 ac_cv_have_decl_tcsendbreak=no
13813fi
13814
13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816fi
13817{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13818echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13819if test $ac_cv_have_decl_tcsendbreak = yes; then
13820 cat >>confdefs.h <<\_ACEOF
13821#define HAVE_TCSENDBREAK 1
13822_ACEOF
13823
13824else
13825
13826for ac_func in tcsendbreak
13827do
13828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13833else
13834 cat >conftest.$ac_ext <<_ACEOF
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13842#define $ac_func innocuous_$ac_func
13843
13844/* System header to define __stub macros and hopefully few prototypes,
13845 which can conflict with char $ac_func (); below.
13846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13847 <limits.h> exists even on freestanding compilers. */
13848
13849#ifdef __STDC__
13850# include <limits.h>
13851#else
13852# include <assert.h>
13853#endif
13854
13855#undef $ac_func
13856
13857/* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
13860#ifdef __cplusplus
13861extern "C"
13862#endif
13863char $ac_func ();
13864/* The GNU C library defines this for functions which it implements
13865 to always fail with ENOSYS. Some functions are actually named
13866 something starting with __ and the normal name is an alias. */
13867#if defined __stub_$ac_func || defined __stub___$ac_func
13868choke me
13869#endif
13870
13871int
13872main ()
13873{
13874return $ac_func ();
13875 ;
13876 return 0;
13877}
13878_ACEOF
13879rm -f conftest.$ac_objext conftest$ac_exeext
13880if { (ac_try="$ac_link"
13881case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest$ac_exeext &&
13896 $as_test_x conftest$ac_exeext; then
13897 eval "$as_ac_var=yes"
13898else
13899 echo "$as_me: failed program was:" >&5
13900sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 eval "$as_ac_var=no"
13903fi
13904
13905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13906 conftest$ac_exeext conftest.$ac_ext
13907fi
13908ac_res=`eval echo '${'$as_ac_var'}'`
13909 { echo "$as_me:$LINENO: result: $ac_res" >&5
13910echo "${ECHO_T}$ac_res" >&6; }
13911if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917done
13918
13919fi
13920
13921
13922{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
13923echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
13924if test "${ac_cv_have_decl_h_errno+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933#include <netdb.h>
13934
13935int
13936main ()
13937{
13938#ifndef h_errno
13939 (void) h_errno;
13940#endif
13941
13942 ;
13943 return 0;
13944}
13945_ACEOF
13946rm -f conftest.$ac_objext
13947if { (ac_try="$ac_compile"
13948case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_cv_have_decl_h_errno=yes
13964else
13965 echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_have_decl_h_errno=no
13969fi
13970
13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972fi
13973{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
13974echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
13975if test $ac_cv_have_decl_h_errno = yes; then
13976
13977cat >>confdefs.h <<_ACEOF
13978#define HAVE_DECL_H_ERRNO 1
13979_ACEOF
13980
13981
13982else
13983 cat >>confdefs.h <<_ACEOF
13984#define HAVE_DECL_H_ERRNO 0
13985_ACEOF
13986
13987
13988fi
13989
13990
13991
13992{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13993echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13994if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997 cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
14003
14004#include <sys/types.h>
14005#include <sys/socket.h>
14006
14007
14008int
14009main ()
14010{
14011#ifndef SHUT_RD
14012 (void) SHUT_RD;
14013#endif
14014
14015 ;
14016 return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (ac_try="$ac_compile"
14021case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_compile") 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest.$ac_objext; then
14036 ac_cv_have_decl_SHUT_RD=yes
14037else
14038 echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_cv_have_decl_SHUT_RD=no
14042fi
14043
14044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045fi
14046{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14047echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14048if test $ac_cv_have_decl_SHUT_RD = yes; then
14049
14050cat >>confdefs.h <<_ACEOF
14051#define HAVE_DECL_SHUT_RD 1
14052_ACEOF
14053
14054
14055else
14056 cat >>confdefs.h <<_ACEOF
14057#define HAVE_DECL_SHUT_RD 0
14058_ACEOF
14059
14060
14061fi
14062
14063
14064
14065{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
14066echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
14067if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069else
14070 cat >conftest.$ac_ext <<_ACEOF
14071/* confdefs.h. */
14072_ACEOF
14073cat confdefs.h >>conftest.$ac_ext
14074cat >>conftest.$ac_ext <<_ACEOF
14075/* end confdefs.h. */
14076
14077#include <sys/types.h>
14078#ifdef HAVE_SYS_STAT_H
14079# include <sys/stat.h>
14080#endif
14081#ifdef HAVE_FCNTL_H
14082# include <fcntl.h>
14083#endif
14084
14085
14086int
14087main ()
14088{
14089#ifndef O_NONBLOCK
14090 (void) O_NONBLOCK;
14091#endif
14092
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (ac_try="$ac_compile"
14099case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102esac
14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_compile") 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } && {
14111 test -z "$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14113 } && test -s conftest.$ac_objext; then
14114 ac_cv_have_decl_O_NONBLOCK=yes
14115else
14116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_cv_have_decl_O_NONBLOCK=no
14120fi
14121
14122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123fi
14124{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
14125echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
14126if test $ac_cv_have_decl_O_NONBLOCK = yes; then
14127
14128cat >>confdefs.h <<_ACEOF
14129#define HAVE_DECL_O_NONBLOCK 1
14130_ACEOF
14131
14132
14133else
14134 cat >>confdefs.h <<_ACEOF
14135#define HAVE_DECL_O_NONBLOCK 0
14136_ACEOF
14137
14138
14139fi
14140
14141
14142
14143{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
14144echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
14145if test "${ac_cv_have_decl_writev+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148 cat >conftest.$ac_ext <<_ACEOF
14149/* confdefs.h. */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
14153/* end confdefs.h. */
14154
14155#include <sys/types.h>
14156#include <sys/uio.h>
14157#include <unistd.h>
14158
14159
14160int
14161main ()
14162{
14163#ifndef writev
14164 (void) writev;
14165#endif
14166
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext
14172if { (ac_try="$ac_compile"
14173case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176esac
14177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_compile") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest.$ac_objext; then
14188 ac_cv_have_decl_writev=yes
14189else
14190 echo "$as_me: failed program was:" >&5
14191sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_cv_have_decl_writev=no
14194fi
14195
14196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197fi
14198{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
14199echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
14200if test $ac_cv_have_decl_writev = yes; then
14201
14202cat >>confdefs.h <<_ACEOF
14203#define HAVE_DECL_WRITEV 1
14204_ACEOF
14205
14206
14207else
14208 cat >>confdefs.h <<_ACEOF
14209#define HAVE_DECL_WRITEV 0
14210_ACEOF
14211
14212
14213fi
14214
14215
14216
14217{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
14218echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
14219if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221else
14222 cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228
14229#include <sys/param.h>
14230
14231
14232int
14233main ()
14234{
14235#ifndef MAXSYMLINKS
14236 (void) MAXSYMLINKS;
14237#endif
14238
14239 ;
14240 return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext
14244if { (ac_try="$ac_compile"
14245case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 ac_cv_have_decl_MAXSYMLINKS=yes
14261else
14262 echo "$as_me: failed program was:" >&5
14263sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 ac_cv_have_decl_MAXSYMLINKS=no
14266fi
14267
14268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269fi
14270{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
14271echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
14272if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
14273
14274cat >>confdefs.h <<_ACEOF
14275#define HAVE_DECL_MAXSYMLINKS 1
14276_ACEOF
14277
14278
14279else
14280 cat >>confdefs.h <<_ACEOF
14281#define HAVE_DECL_MAXSYMLINKS 0
14282_ACEOF
14283
14284
14285fi
14286
14287
14288
14289{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
14290echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
14291if test "${ac_cv_have_decl_offsetof+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
14299/* end confdefs.h. */
14300
14301#include <stddef.h>
14302
14303
14304int
14305main ()
14306{
14307#ifndef offsetof
14308 (void) offsetof;
14309#endif
14310
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext
14316if { (ac_try="$ac_compile"
14317case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.$ac_objext; then
14332 ac_cv_have_decl_offsetof=yes
14333else
14334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_cv_have_decl_offsetof=no
14338fi
14339
14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341fi
14342{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
14343echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
14344if test $ac_cv_have_decl_offsetof = yes; then
14345
14346cat >>confdefs.h <<_ACEOF
14347#define HAVE_DECL_OFFSETOF 1
14348_ACEOF
14349
14350
14351else
14352 cat >>confdefs.h <<_ACEOF
14353#define HAVE_DECL_OFFSETOF 0
14354_ACEOF
14355
14356
14357fi
14358
14359
14360
14361
14362for ac_func in setresuid
14363do
14364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369else
14370 cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
14375/* end confdefs.h. */
14376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14378#define $ac_func innocuous_$ac_func
14379
14380/* System header to define __stub macros and hopefully few prototypes,
14381 which can conflict with char $ac_func (); below.
14382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14383 <limits.h> exists even on freestanding compilers. */
14384
14385#ifdef __STDC__
14386# include <limits.h>
14387#else
14388# include <assert.h>
14389#endif
14390
14391#undef $ac_func
14392
14393/* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply. */
14396#ifdef __cplusplus
14397extern "C"
14398#endif
14399char $ac_func ();
14400/* The GNU C library defines this for functions which it implements
14401 to always fail with ENOSYS. Some functions are actually named
14402 something starting with __ and the normal name is an alias. */
14403#if defined __stub_$ac_func || defined __stub___$ac_func
14404choke me
14405#endif
14406
14407int
14408main ()
14409{
14410return $ac_func ();
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext conftest$ac_exeext
14416if { (ac_try="$ac_link"
14417case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14420esac
14421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_link") 2>conftest.er1
14423 ac_status=$?
14424 grep -v '^ *+' conftest.er1 >conftest.err
14425 rm -f conftest.er1
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } && {
14429 test -z "$ac_c_werror_flag" ||
14430 test ! -s conftest.err
14431 } && test -s conftest$ac_exeext &&
14432 $as_test_x conftest$ac_exeext; then
14433 eval "$as_ac_var=yes"
14434else
14435 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 eval "$as_ac_var=no"
14439fi
14440
14441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14442 conftest$ac_exeext conftest.$ac_ext
14443fi
14444ac_res=`eval echo '${'$as_ac_var'}'`
14445 { echo "$as_me:$LINENO: result: $ac_res" >&5
14446echo "${ECHO_T}$ac_res" >&6; }
14447if test `eval echo '${'$as_ac_var'}'` = yes; then
14448 cat >>confdefs.h <<_ACEOF
14449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14450_ACEOF
14451
14452 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14453echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14454 if test "$cross_compiling" = yes; then
14455 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14456echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14457
14458else
14459 cat >conftest.$ac_ext <<_ACEOF
14460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
14465
14466#include <stdlib.h>
14467#include <errno.h>
14468int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14469
14470_ACEOF
14471rm -f conftest$ac_exeext
14472if { (ac_try="$ac_link"
14473case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 { echo "$as_me:$LINENO: result: yes" >&5
14492echo "${ECHO_T}yes" >&6; }
14493else
14494 echo "$as_me: program exited with status $ac_status" >&5
14495echo "$as_me: failed program was:" >&5
14496sed 's/^/| /' conftest.$ac_ext >&5
14497
14498( exit $ac_status )
14499
14500cat >>confdefs.h <<\_ACEOF
14501#define BROKEN_SETRESUID 1
14502_ACEOF
14503
14504 { echo "$as_me:$LINENO: result: not implemented" >&5
14505echo "${ECHO_T}not implemented" >&6; }
14506fi
14507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14508fi
14509
14510
14511
14512fi
14513done
14514
14515
14516
14517for ac_func in setresgid
14518do
14519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524else
14525 cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
14531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14533#define $ac_func innocuous_$ac_func
14534
14535/* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char $ac_func (); below.
14537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14538 <limits.h> exists even on freestanding compilers. */
14539
14540#ifdef __STDC__
14541# include <limits.h>
14542#else
14543# include <assert.h>
14544#endif
14545
14546#undef $ac_func
14547
14548/* Override any GCC internal prototype to avoid an error.
14549 Use char because int might match the return type of a GCC
14550 builtin and then its argument prototype would still apply. */
14551#ifdef __cplusplus
14552extern "C"
14553#endif
14554char $ac_func ();
14555/* The GNU C library defines this for functions which it implements
14556 to always fail with ENOSYS. Some functions are actually named
14557 something starting with __ and the normal name is an alias. */
14558#if defined __stub_$ac_func || defined __stub___$ac_func
14559choke me
14560#endif
14561
14562int
14563main ()
14564{
14565return $ac_func ();
14566 ;
14567 return 0;
14568}
14569_ACEOF
14570rm -f conftest.$ac_objext conftest$ac_exeext
14571if { (ac_try="$ac_link"
14572case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575esac
14576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_link") 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext &&
14587 $as_test_x conftest$ac_exeext; then
14588 eval "$as_ac_var=yes"
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 eval "$as_ac_var=no"
14594fi
14595
14596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598fi
14599ac_res=`eval echo '${'$as_ac_var'}'`
14600 { echo "$as_me:$LINENO: result: $ac_res" >&5
14601echo "${ECHO_T}$ac_res" >&6; }
14602if test `eval echo '${'$as_ac_var'}'` = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605_ACEOF
14606
14607 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14608echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14609 if test "$cross_compiling" = yes; then
14610 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14611echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14612
14613else
14614 cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620
14621#include <stdlib.h>
14622#include <errno.h>
14623int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14624
14625_ACEOF
14626rm -f conftest$ac_exeext
14627if { (ac_try="$ac_link"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_link") 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14637 { (case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640esac
14641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_try") 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 { echo "$as_me:$LINENO: result: yes" >&5
14647echo "${ECHO_T}yes" >&6; }
14648else
14649 echo "$as_me: program exited with status $ac_status" >&5
14650echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653( exit $ac_status )
14654
14655cat >>confdefs.h <<\_ACEOF
14656#define BROKEN_SETRESGID 1
14657_ACEOF
14658
14659 { echo "$as_me:$LINENO: result: not implemented" >&5
14660echo "${ECHO_T}not implemented" >&6; }
14661fi
14662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14663fi
14664
14665
14666
14667fi
14668done
14669
14670
14671
14672
14673for ac_func in gettimeofday time
14674do
14675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14678if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680else
14681 cat >conftest.$ac_ext <<_ACEOF
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
14686/* end confdefs.h. */
14687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14689#define $ac_func innocuous_$ac_func
14690
14691/* System header to define __stub macros and hopefully few prototypes,
14692 which can conflict with char $ac_func (); below.
14693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14694 <limits.h> exists even on freestanding compilers. */
14695
14696#ifdef __STDC__
14697# include <limits.h>
14698#else
14699# include <assert.h>
14700#endif
14701
14702#undef $ac_func
14703
14704/* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14707#ifdef __cplusplus
14708extern "C"
14709#endif
14710char $ac_func ();
14711/* The GNU C library defines this for functions which it implements
14712 to always fail with ENOSYS. Some functions are actually named
14713 something starting with __ and the normal name is an alias. */
14714#if defined __stub_$ac_func || defined __stub___$ac_func
14715choke me
14716#endif
14717
14718int
14719main ()
14720{
14721return $ac_func ();
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext conftest$ac_exeext
14727if { (ac_try="$ac_link"
14728case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_link") 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest$ac_exeext &&
14743 $as_test_x conftest$ac_exeext; then
14744 eval "$as_ac_var=yes"
14745else
14746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 eval "$as_ac_var=no"
14750fi
14751
14752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14753 conftest$ac_exeext conftest.$ac_ext
14754fi
14755ac_res=`eval echo '${'$as_ac_var'}'`
14756 { echo "$as_me:$LINENO: result: $ac_res" >&5
14757echo "${ECHO_T}$ac_res" >&6; }
14758if test `eval echo '${'$as_ac_var'}'` = yes; then
14759 cat >>confdefs.h <<_ACEOF
14760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14761_ACEOF
14762
14763fi
14764done
14765
14766
14767
14768
14769
14770
14771
14772for ac_func in endutent getutent getutid getutline pututline setutent
14773do
14774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780 cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h. */
14786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14788#define $ac_func innocuous_$ac_func
14789
14790/* System header to define __stub macros and hopefully few prototypes,
14791 which can conflict with char $ac_func (); below.
14792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14793 <limits.h> exists even on freestanding compilers. */
14794
14795#ifdef __STDC__
14796# include <limits.h>
14797#else
14798# include <assert.h>
14799#endif
14800
14801#undef $ac_func
14802
14803/* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14806#ifdef __cplusplus
14807extern "C"
14808#endif
14809char $ac_func ();
14810/* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813#if defined __stub_$ac_func || defined __stub___$ac_func
14814choke me
14815#endif
14816
14817int
14818main ()
14819{
14820return $ac_func ();
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext conftest$ac_exeext
14826if { (ac_try="$ac_link"
14827case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_link") 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest$ac_exeext &&
14842 $as_test_x conftest$ac_exeext; then
14843 eval "$as_ac_var=yes"
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 eval "$as_ac_var=no"
14849fi
14850
14851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14852 conftest$ac_exeext conftest.$ac_ext
14853fi
14854ac_res=`eval echo '${'$as_ac_var'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856echo "${ECHO_T}$ac_res" >&6; }
14857if test `eval echo '${'$as_ac_var'}'` = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14860_ACEOF
14861
14862fi
14863done
14864
14865
14866for ac_func in utmpname
14867do
14868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14882#define $ac_func innocuous_$ac_func
14883
14884/* System header to define __stub macros and hopefully few prototypes,
14885 which can conflict with char $ac_func (); below.
14886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14887 <limits.h> exists even on freestanding compilers. */
14888
14889#ifdef __STDC__
14890# include <limits.h>
14891#else
14892# include <assert.h>
14893#endif
14894
14895#undef $ac_func
14896
14897/* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14900#ifdef __cplusplus
14901extern "C"
14902#endif
14903char $ac_func ();
14904/* The GNU C library defines this for functions which it implements
14905 to always fail with ENOSYS. Some functions are actually named
14906 something starting with __ and the normal name is an alias. */
14907#if defined __stub_$ac_func || defined __stub___$ac_func
14908choke me
14909#endif
14910
14911int
14912main ()
14913{
14914return $ac_func ();
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext conftest$ac_exeext
14920if { (ac_try="$ac_link"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_link") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } && {
14933 test -z "$ac_c_werror_flag" ||
14934 test ! -s conftest.err
14935 } && test -s conftest$ac_exeext &&
14936 $as_test_x conftest$ac_exeext; then
14937 eval "$as_ac_var=yes"
14938else
14939 echo "$as_me: failed program was:" >&5
14940sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 eval "$as_ac_var=no"
14943fi
14944
14945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14946 conftest$ac_exeext conftest.$ac_ext
14947fi
14948ac_res=`eval echo '${'$as_ac_var'}'`
14949 { echo "$as_me:$LINENO: result: $ac_res" >&5
14950echo "${ECHO_T}$ac_res" >&6; }
14951if test `eval echo '${'$as_ac_var'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14954_ACEOF
14955
14956fi
14957done
14958
14959
14960
14961
14962
14963
14964for ac_func in endutxent getutxent getutxid getutxline pututxline
14965do
14966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14980#define $ac_func innocuous_$ac_func
14981
14982/* System header to define __stub macros and hopefully few prototypes,
14983 which can conflict with char $ac_func (); below.
14984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14985 <limits.h> exists even on freestanding compilers. */
14986
14987#ifdef __STDC__
14988# include <limits.h>
14989#else
14990# include <assert.h>
14991#endif
14992
14993#undef $ac_func
14994
14995/* Override any GCC internal prototype to avoid an error.
14996 Use char because int might match the return type of a GCC
14997 builtin and then its argument prototype would still apply. */
14998#ifdef __cplusplus
14999extern "C"
15000#endif
15001char $ac_func ();
15002/* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005#if defined __stub_$ac_func || defined __stub___$ac_func
15006choke me
15007#endif
15008
15009int
15010main ()
15011{
15012return $ac_func ();
15013 ;
15014 return 0;
15015}
15016_ACEOF
15017rm -f conftest.$ac_objext conftest$ac_exeext
15018if { (ac_try="$ac_link"
15019case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15022esac
15023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_link") 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest$ac_exeext &&
15034 $as_test_x conftest$ac_exeext; then
15035 eval "$as_ac_var=yes"
15036else
15037 echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 eval "$as_ac_var=no"
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15044 conftest$ac_exeext conftest.$ac_ext
15045fi
15046ac_res=`eval echo '${'$as_ac_var'}'`
15047 { echo "$as_me:$LINENO: result: $ac_res" >&5
15048echo "${ECHO_T}$ac_res" >&6; }
15049if test `eval echo '${'$as_ac_var'}'` = yes; then
15050 cat >>confdefs.h <<_ACEOF
15051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15052_ACEOF
15053
15054fi
15055done
15056
15057
15058
15059for ac_func in setutxent utmpxname
15060do
15061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067 cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15075#define $ac_func innocuous_$ac_func
15076
15077/* System header to define __stub macros and hopefully few prototypes,
15078 which can conflict with char $ac_func (); below.
15079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15080 <limits.h> exists even on freestanding compilers. */
15081
15082#ifdef __STDC__
15083# include <limits.h>
15084#else
15085# include <assert.h>
15086#endif
15087
15088#undef $ac_func
15089
15090/* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15093#ifdef __cplusplus
15094extern "C"
15095#endif
15096char $ac_func ();
15097/* The GNU C library defines this for functions which it implements
15098 to always fail with ENOSYS. Some functions are actually named
15099 something starting with __ and the normal name is an alias. */
15100#if defined __stub_$ac_func || defined __stub___$ac_func
15101choke me
15102#endif
15103
15104int
15105main ()
15106{
15107return $ac_func ();
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest.$ac_objext conftest$ac_exeext
15113if { (ac_try="$ac_link"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest$ac_exeext &&
15129 $as_test_x conftest$ac_exeext; then
15130 eval "$as_ac_var=yes"
15131else
15132 echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 eval "$as_ac_var=no"
15136fi
15137
15138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15139 conftest$ac_exeext conftest.$ac_ext
15140fi
15141ac_res=`eval echo '${'$as_ac_var'}'`
15142 { echo "$as_me:$LINENO: result: $ac_res" >&5
15143echo "${ECHO_T}$ac_res" >&6; }
15144if test `eval echo '${'$as_ac_var'}'` = yes; then
15145 cat >>confdefs.h <<_ACEOF
15146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15147_ACEOF
15148
15149fi
15150done
15151
15152
15153for ac_func in getlastlogxbyname
15154do
15155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15156{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15160else
15161 cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
15167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15169#define $ac_func innocuous_$ac_func
15170
15171/* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char $ac_func (); below.
15173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15174 <limits.h> exists even on freestanding compilers. */
15175
15176#ifdef __STDC__
15177# include <limits.h>
15178#else
15179# include <assert.h>
15180#endif
15181
15182#undef $ac_func
15183
15184/* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187#ifdef __cplusplus
15188extern "C"
15189#endif
15190char $ac_func ();
15191/* The GNU C library defines this for functions which it implements
15192 to always fail with ENOSYS. Some functions are actually named
15193 something starting with __ and the normal name is an alias. */
15194#if defined __stub_$ac_func || defined __stub___$ac_func
15195choke me
15196#endif
15197
15198int
15199main ()
15200{
15201return $ac_func ();
15202 ;
15203 return 0;
15204}
15205_ACEOF
15206rm -f conftest.$ac_objext conftest$ac_exeext
15207if { (ac_try="$ac_link"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15224 eval "$as_ac_var=yes"
15225else
15226 echo "$as_me: failed program was:" >&5
15227sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 eval "$as_ac_var=no"
15230fi
15231
15232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15234fi
15235ac_res=`eval echo '${'$as_ac_var'}'`
15236 { echo "$as_me:$LINENO: result: $ac_res" >&5
15237echo "${ECHO_T}$ac_res" >&6; }
15238if test `eval echo '${'$as_ac_var'}'` = yes; then
15239 cat >>confdefs.h <<_ACEOF
15240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241_ACEOF
15242
15243fi
15244done
15245
15246
15247{ echo "$as_me:$LINENO: checking for daemon" >&5
15248echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
15249if test "${ac_cv_func_daemon+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
15259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15260#define daemon innocuous_daemon
15261
15262/* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char daemon (); below.
15264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15265 <limits.h> exists even on freestanding compilers. */
15266
15267#ifdef __STDC__
15268# include <limits.h>
15269#else
15270# include <assert.h>
15271#endif
15272
15273#undef daemon
15274
15275/* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15278#ifdef __cplusplus
15279extern "C"
15280#endif
15281char daemon ();
15282/* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285#if defined __stub_daemon || defined __stub___daemon
15286choke me
15287#endif
15288
15289int
15290main ()
15291{
15292return daemon ();
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297rm -f conftest.$ac_objext conftest$ac_exeext
15298if { (ac_try="$ac_link"
15299case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_link") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest$ac_exeext &&
15314 $as_test_x conftest$ac_exeext; then
15315 ac_cv_func_daemon=yes
15316else
15317 echo "$as_me: failed program was:" >&5
15318sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 ac_cv_func_daemon=no
15321fi
15322
15323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15324 conftest$ac_exeext conftest.$ac_ext
15325fi
15326{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
15327echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
15328if test $ac_cv_func_daemon = yes; then
15329
15330cat >>confdefs.h <<\_ACEOF
15331#define HAVE_DAEMON 1
15332_ACEOF
15333
15334else
15335 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
15336echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
15337if test "${ac_cv_lib_bsd_daemon+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339else
15340 ac_check_lib_save_LIBS=$LIBS
15341LIBS="-lbsd $LIBS"
15342cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h. */
15348
15349/* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15352#ifdef __cplusplus
15353extern "C"
15354#endif
15355char daemon ();
15356int
15357main ()
15358{
15359return daemon ();
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (ac_try="$ac_link"
15366case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 ac_cv_lib_bsd_daemon=yes
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_cv_lib_bsd_daemon=no
15388fi
15389
15390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15392LIBS=$ac_check_lib_save_LIBS
15393fi
15394{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
15395echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
15396if test $ac_cv_lib_bsd_daemon = yes; then
15397 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
15398#define HAVE_DAEMON 1
15399_ACEOF
15400
15401fi
15402
15403
15404fi
15405
15406
15407{ echo "$as_me:$LINENO: checking for getpagesize" >&5
15408echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15409if test "${ac_cv_func_getpagesize+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411else
15412 cat >conftest.$ac_ext <<_ACEOF
15413/* confdefs.h. */
15414_ACEOF
15415cat confdefs.h >>conftest.$ac_ext
15416cat >>conftest.$ac_ext <<_ACEOF
15417/* end confdefs.h. */
15418/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420#define getpagesize innocuous_getpagesize
15421
15422/* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char getpagesize (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15426
15427#ifdef __STDC__
15428# include <limits.h>
15429#else
15430# include <assert.h>
15431#endif
15432
15433#undef getpagesize
15434
15435/* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438#ifdef __cplusplus
15439extern "C"
15440#endif
15441char getpagesize ();
15442/* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445#if defined __stub_getpagesize || defined __stub___getpagesize
15446choke me
15447#endif
15448
15449int
15450main ()
15451{
15452return getpagesize ();
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext conftest$ac_exeext
15458if { (ac_try="$ac_link"
15459case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462esac
15463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 ac_cv_func_getpagesize=yes
15476else
15477 echo "$as_me: failed program was:" >&5
15478sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 ac_cv_func_getpagesize=no
15481fi
15482
15483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15485fi
15486{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15487echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15488if test $ac_cv_func_getpagesize = yes; then
15489
15490cat >>confdefs.h <<\_ACEOF
15491#define HAVE_GETPAGESIZE 1
15492_ACEOF
15493
15494else
15495 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15496echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15497if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499else
15500 ac_check_lib_save_LIBS=$LIBS
15501LIBS="-lucb $LIBS"
15502cat >conftest.$ac_ext <<_ACEOF
15503/* confdefs.h. */
15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */
15508
15509/* Override any GCC internal prototype to avoid an error.
15510 Use char because int might match the return type of a GCC
15511 builtin and then its argument prototype would still apply. */
15512#ifdef __cplusplus
15513extern "C"
15514#endif
15515char getpagesize ();
15516int
15517main ()
15518{
15519return getpagesize ();
15520 ;
15521 return 0;
15522}
15523_ACEOF
15524rm -f conftest.$ac_objext conftest$ac_exeext
15525if { (ac_try="$ac_link"
15526case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15529esac
15530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_link") 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && {
15538 test -z "$ac_c_werror_flag" ||
15539 test ! -s conftest.err
15540 } && test -s conftest$ac_exeext &&
15541 $as_test_x conftest$ac_exeext; then
15542 ac_cv_lib_ucb_getpagesize=yes
15543else
15544 echo "$as_me: failed program was:" >&5
15545sed 's/^/| /' conftest.$ac_ext >&5
15546
15547 ac_cv_lib_ucb_getpagesize=no
15548fi
15549
15550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551 conftest$ac_exeext conftest.$ac_ext
15552LIBS=$ac_check_lib_save_LIBS
15553fi
15554{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15555echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15556if test $ac_cv_lib_ucb_getpagesize = yes; then
15557 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15558#define HAVE_GETPAGESIZE 1
15559_ACEOF
15560
15561fi
15562
15563
15564fi
15565
15566
15567# Check for broken snprintf
15568if test "x$ac_cv_func_snprintf" = "xyes" ; then
15569 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15570echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15571 if test "$cross_compiling" = yes; then
15572 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15573echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15574
15575else
15576 cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582
15583#include <stdio.h>
15584int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15585
15586_ACEOF
15587rm -f conftest$ac_exeext
15588if { (ac_try="$ac_link"
15589case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592esac
15593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 { echo "$as_me:$LINENO: result: yes" >&5
15608echo "${ECHO_T}yes" >&6; }
15609else
15610 echo "$as_me: program exited with status $ac_status" >&5
15611echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614( exit $ac_status )
15615
15616 { echo "$as_me:$LINENO: result: no" >&5
15617echo "${ECHO_T}no" >&6; }
15618
15619cat >>confdefs.h <<\_ACEOF
15620#define BROKEN_SNPRINTF 1
15621_ACEOF
15622
15623 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15624echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15625
15626fi
15627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15628fi
15629
15630
15631fi
15632
15633# If we don't have a working asprintf, then we strongly depend on vsnprintf
15634# returning the right thing on overflow: the number of characters it tried to
15635# create (as per SUSv3)
15636if test "x$ac_cv_func_asprintf" != "xyes" && \
15637 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15638 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15639echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15640 if test "$cross_compiling" = yes; then
15641 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15642echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15643
15644else
15645 cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651
15652#include <sys/types.h>
15653#include <stdio.h>
15654#include <stdarg.h>
15655
15656int x_snprintf(char *str,size_t count,const char *fmt,...)
15657{
15658 size_t ret; va_list ap;
15659 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15660 return ret;
15661}
15662int main(void)
15663{
15664 char x[1];
15665 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15666}
15667_ACEOF
15668rm -f conftest$ac_exeext
15669if { (ac_try="$ac_link"
15670case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_link") 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682esac
15683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 { echo "$as_me:$LINENO: result: yes" >&5
15689echo "${ECHO_T}yes" >&6; }
15690else
15691 echo "$as_me: program exited with status $ac_status" >&5
15692echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695( exit $ac_status )
15696
15697 { echo "$as_me:$LINENO: result: no" >&5
15698echo "${ECHO_T}no" >&6; }
15699
15700cat >>confdefs.h <<\_ACEOF
15701#define BROKEN_SNPRINTF 1
15702_ACEOF
15703
15704 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15705echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15706
15707fi
15708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15709fi
15710
15711
15712fi
15713
15714# On systems where [v]snprintf is broken, but is declared in stdio,
15715# check that the fmt argument is const char * or just char *.
15716# This is only useful for when BROKEN_SNPRINTF
15717{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15718echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15719cat >conftest.$ac_ext <<_ACEOF
15720/* confdefs.h. */
15721_ACEOF
15722cat confdefs.h >>conftest.$ac_ext
15723cat >>conftest.$ac_ext <<_ACEOF
15724/* end confdefs.h. */
15725#include <stdio.h>
15726 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15727 int main(void) { snprintf(0, 0, 0); }
15728
15729_ACEOF
15730rm -f conftest.$ac_objext
15731if { (ac_try="$ac_compile"
15732case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735esac
15736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest.$ac_objext; then
15747 { echo "$as_me:$LINENO: result: yes" >&5
15748echo "${ECHO_T}yes" >&6; }
15749
15750cat >>confdefs.h <<\_ACEOF
15751#define SNPRINTF_CONST const
15752_ACEOF
15753
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 { echo "$as_me:$LINENO: result: no" >&5
15759echo "${ECHO_T}no" >&6; }
15760 cat >>confdefs.h <<\_ACEOF
15761#define SNPRINTF_CONST /* not const */
15762_ACEOF
15763
15764fi
15765
15766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767
15768# Check for missing getpeereid (or equiv) support
15769NO_PEERCHECK=""
15770if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15771 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15772echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779#include <sys/types.h>
15780 #include <sys/socket.h>
15781int
15782main ()
15783{
15784int i = SO_PEERCRED;
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (ac_try="$ac_compile"
15791case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_compile") 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && {
15803 test -z "$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15805 } && test -s conftest.$ac_objext; then
15806 { echo "$as_me:$LINENO: result: yes" >&5
15807echo "${ECHO_T}yes" >&6; }
15808
15809cat >>confdefs.h <<\_ACEOF
15810#define HAVE_SO_PEERCRED 1
15811_ACEOF
15812
15813
15814else
15815 echo "$as_me: failed program was:" >&5
15816sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 { echo "$as_me:$LINENO: result: no" >&5
15819echo "${ECHO_T}no" >&6; }
15820 NO_PEERCHECK=1
15821
15822fi
15823
15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825fi
15826
15827if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15828{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15829echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15830if test "$cross_compiling" = yes; then
15831
15832 { echo "$as_me:$LINENO: result: yes" >&5
15833echo "${ECHO_T}yes" >&6; }
15834 cat >>confdefs.h <<\_ACEOF
15835#define HAVE_STRICT_MKSTEMP 1
15836_ACEOF
15837
15838
15839
15840else
15841 cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847
15848#include <stdlib.h>
15849main() { char template[]="conftest.mkstemp-test";
15850if (mkstemp(template) == -1)
15851 exit(1);
15852unlink(template); exit(0);
15853}
15854
15855_ACEOF
15856rm -f conftest$ac_exeext
15857if { (ac_try="$ac_link"
15858case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_link") 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15867 { (case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_try") 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876
15877 { echo "$as_me:$LINENO: result: no" >&5
15878echo "${ECHO_T}no" >&6; }
15879
15880else
15881 echo "$as_me: program exited with status $ac_status" >&5
15882echo "$as_me: failed program was:" >&5
15883sed 's/^/| /' conftest.$ac_ext >&5
15884
15885( exit $ac_status )
15886
15887 { echo "$as_me:$LINENO: result: yes" >&5
15888echo "${ECHO_T}yes" >&6; }
15889
15890cat >>confdefs.h <<\_ACEOF
15891#define HAVE_STRICT_MKSTEMP 1
15892_ACEOF
15893
15894
15895fi
15896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15897fi
15898
15899
15900fi
15901
15902if test ! -z "$check_for_openpty_ctty_bug"; then
15903 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
15904echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
15905 if test "$cross_compiling" = yes; then
15906
15907 { echo "$as_me:$LINENO: result: cross-compiling" >&5
15908echo "${ECHO_T}cross-compiling" >&6; }
15909
15910
15911else
15912 cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918
15919#include <stdio.h>
15920#include <sys/fcntl.h>
15921#include <sys/types.h>
15922#include <sys/wait.h>
15923
15924int
15925main()
15926{
15927 pid_t pid;
15928 int fd, ptyfd, ttyfd, status;
15929
15930 pid = fork();
15931 if (pid < 0) { /* failed */
15932 exit(1);
15933 } else if (pid > 0) { /* parent */
15934 waitpid(pid, &status, 0);
15935 if (WIFEXITED(status))
15936 exit(WEXITSTATUS(status));
15937 else
15938 exit(2);
15939 } else { /* child */
15940 close(0); close(1); close(2);
15941 setsid();
15942 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
15943 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
15944 if (fd >= 0)
15945 exit(3); /* Acquired ctty: broken */
15946 else
15947 exit(0); /* Did not acquire ctty: OK */
15948 }
15949}
15950
15951_ACEOF
15952rm -f conftest$ac_exeext
15953if { (ac_try="$ac_link"
15954case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_link") 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974echo "${ECHO_T}yes" >&6; }
15975
15976else
15977 echo "$as_me: program exited with status $ac_status" >&5
15978echo "$as_me: failed program was:" >&5
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981( exit $ac_status )
15982
15983 { echo "$as_me:$LINENO: result: no" >&5
15984echo "${ECHO_T}no" >&6; }
15985 cat >>confdefs.h <<\_ACEOF
15986#define SSHD_ACQUIRES_CTTY 1
15987_ACEOF
15988
15989
15990fi
15991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15992fi
15993
15994
15995fi
15996
15997if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
15998 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
15999 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16000echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16001 if test "$cross_compiling" = yes; then
16002
16003 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16004echo "${ECHO_T}cross-compiling" >&6; }
16005
16006
16007else
16008 cat >conftest.$ac_ext <<_ACEOF
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
16014
16015#include <stdio.h>
16016#include <sys/socket.h>
16017#include <netdb.h>
16018#include <errno.h>
16019#include <netinet/in.h>
16020
16021#define TEST_PORT "2222"
16022
16023int
16024main(void)
16025{
16026 int err, sock;
16027 struct addrinfo *gai_ai, *ai, hints;
16028 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16029
16030 memset(&hints, 0, sizeof(hints));
16031 hints.ai_family = PF_UNSPEC;
16032 hints.ai_socktype = SOCK_STREAM;
16033 hints.ai_flags = AI_PASSIVE;
16034
16035 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16036 if (err != 0) {
16037 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16038 exit(1);
16039 }
16040
16041 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16042 if (ai->ai_family != AF_INET6)
16043 continue;
16044
16045 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16046 sizeof(ntop), strport, sizeof(strport),
16047 NI_NUMERICHOST|NI_NUMERICSERV);
16048
16049 if (err != 0) {
16050 if (err == EAI_SYSTEM)
16051 perror("getnameinfo EAI_SYSTEM");
16052 else
16053 fprintf(stderr, "getnameinfo failed: %s\n",
16054 gai_strerror(err));
16055 exit(2);
16056 }
16057
16058 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
16059 if (sock < 0)
16060 perror("socket");
16061 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
16062 if (errno == EBADF)
16063 exit(3);
16064 }
16065 }
16066 exit(0);
16067}
16068
16069_ACEOF
16070rm -f conftest$ac_exeext
16071if { (ac_try="$ac_link"
16072case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075esac
16076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_link") 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084esac
16085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090
16091 { echo "$as_me:$LINENO: result: yes" >&5
16092echo "${ECHO_T}yes" >&6; }
16093
16094else
16095 echo "$as_me: program exited with status $ac_status" >&5
16096echo "$as_me: failed program was:" >&5
16097sed 's/^/| /' conftest.$ac_ext >&5
16098
16099( exit $ac_status )
16100
16101 { echo "$as_me:$LINENO: result: no" >&5
16102echo "${ECHO_T}no" >&6; }
16103 cat >>confdefs.h <<\_ACEOF
16104#define BROKEN_GETADDRINFO 1
16105_ACEOF
16106
16107
16108fi
16109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16110fi
16111
16112
16113fi
16114
16115if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16116 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
16117 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16118echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16119 if test "$cross_compiling" = yes; then
16120
16121 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16122echo "${ECHO_T}cross-compiling" >&6; }
16123
16124
16125else
16126 cat >conftest.$ac_ext <<_ACEOF
16127/* confdefs.h. */
16128_ACEOF
16129cat confdefs.h >>conftest.$ac_ext
16130cat >>conftest.$ac_ext <<_ACEOF
16131/* end confdefs.h. */
16132
16133#include <stdio.h>
16134#include <sys/socket.h>
16135#include <netdb.h>
16136#include <errno.h>
16137#include <netinet/in.h>
16138
16139#define TEST_PORT "2222"
16140
16141int
16142main(void)
16143{
16144 int err, sock;
16145 struct addrinfo *gai_ai, *ai, hints;
16146 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16147
16148 memset(&hints, 0, sizeof(hints));
16149 hints.ai_family = PF_UNSPEC;
16150 hints.ai_socktype = SOCK_STREAM;
16151 hints.ai_flags = AI_PASSIVE;
16152
16153 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16154 if (err != 0) {
16155 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16156 exit(1);
16157 }
16158
16159 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16160 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
16161 continue;
16162
16163 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16164 sizeof(ntop), strport, sizeof(strport),
16165 NI_NUMERICHOST|NI_NUMERICSERV);
16166
16167 if (ai->ai_family == AF_INET && err != 0) {
16168 perror("getnameinfo");
16169 exit(2);
16170 }
16171 }
16172 exit(0);
16173}
16174
16175_ACEOF
16176rm -f conftest$ac_exeext
16177if { (ac_try="$ac_link"
16178case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181esac
16182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_link") 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196
16197 { echo "$as_me:$LINENO: result: yes" >&5
16198echo "${ECHO_T}yes" >&6; }
16199
16200cat >>confdefs.h <<\_ACEOF
16201#define AIX_GETNAMEINFO_HACK 1
16202_ACEOF
16203
16204
16205else
16206 echo "$as_me: program exited with status $ac_status" >&5
16207echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210( exit $ac_status )
16211
16212 { echo "$as_me:$LINENO: result: no" >&5
16213echo "${ECHO_T}no" >&6; }
16214 cat >>confdefs.h <<\_ACEOF
16215#define BROKEN_GETADDRINFO 1
16216_ACEOF
16217
16218
16219fi
16220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16221fi
16222
16223
16224fi
16225
16226if test "x$check_for_conflicting_getspnam" = "x1"; then
16227 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
16228echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16230
16231#include <shadow.h>
16232int main(void) {exit(0);}
16233
16234_ACEOF
16235rm -f conftest.$ac_objext
16236if { (ac_try="$ac_compile"
16237case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240esac
16241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_compile") 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest.$ac_objext; then
16252
16253 { echo "$as_me:$LINENO: result: no" >&5
16254echo "${ECHO_T}no" >&6; }
16255
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260
16261 { echo "$as_me:$LINENO: result: yes" >&5
16262echo "${ECHO_T}yes" >&6; }
16263
16264cat >>confdefs.h <<\_ACEOF
16265#define GETSPNAM_CONFLICTING_DEFS 1
16266_ACEOF
16267
16268
16269
16270fi
16271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273fi
16274
16275{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16276echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
16277if test "${ac_cv_func_getpgrp_void+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279else
16280 # Use it with a single arg.
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287$ac_includes_default
16288int
16289main ()
16290{
16291getpgrp (0);
16292 ;
16293 return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (ac_try="$ac_compile"
16298case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301esac
16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest.$ac_objext; then
16313 ac_cv_func_getpgrp_void=no
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_cv_func_getpgrp_void=yes
16319fi
16320
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322
16323fi
16324{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16325echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
16326if test $ac_cv_func_getpgrp_void = yes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define GETPGRP_VOID 1
16330_ACEOF
16331
16332fi
16333
16334
16335# Search for OpenSSL
16336saved_CPPFLAGS="$CPPFLAGS"
16337saved_LDFLAGS="$LDFLAGS"
16338
16339# Check whether --with-ssl-dir was given.
16340if test "${with_ssl_dir+set}" = set; then
16341 withval=$with_ssl_dir;
16342 if test "x$withval" != "xno" ; then
16343 case "$withval" in
16344 # Relative paths
16345 ./*|../*) withval="`pwd`/$withval"
16346 esac
16347 if test -d "$withval/lib"; then
16348 if test -n "${need_dash_r}"; then
16349 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
16350 else
16351 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
16352 fi
16353 else
16354 if test -n "${need_dash_r}"; then
16355 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
16356 else
16357 LDFLAGS="-L${withval} ${LDFLAGS}"
16358 fi
16359 fi
16360 if test -d "$withval/include"; then
16361 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
16362 else
16363 CPPFLAGS="-I${withval} ${CPPFLAGS}"
16364 fi
16365 fi
16366
16367
16368fi
16369
16370LIBS="-lcrypto $LIBS"
16371cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
16377
16378/* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16381#ifdef __cplusplus
16382extern "C"
16383#endif
16384char RAND_add ();
16385int
16386main ()
16387{
16388return RAND_add ();
16389 ;
16390 return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext conftest$ac_exeext
16394if { (ac_try="$ac_link"
16395case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398esac
16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_link") 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest$ac_exeext &&
16410 $as_test_x conftest$ac_exeext; then
16411
16412cat >>confdefs.h <<\_ACEOF
16413#define HAVE_OPENSSL 1
16414_ACEOF
16415
16416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420
16421 if test -n "${need_dash_r}"; then
16422 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
16423 else
16424 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
16425 fi
16426 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
16427 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16428 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16429echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16430if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432fi
16433{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16434echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16435else
16436 # Is the header compilable?
16437{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
16438echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
16439cat >conftest.$ac_ext <<_ACEOF
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h. */
16445$ac_includes_default
16446#include <openssl/opensslv.h>
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (ac_try="$ac_compile"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest.$ac_objext; then
16465 ac_header_compiler=yes
16466else
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 ac_header_compiler=no
16471fi
16472
16473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16475echo "${ECHO_T}$ac_header_compiler" >&6; }
16476
16477# Is the header present?
16478{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
16479echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
16480cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486#include <openssl/opensslv.h>
16487_ACEOF
16488if { (ac_try="$ac_cpp conftest.$ac_ext"
16489case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } >/dev/null && {
16501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16502 test ! -s conftest.err
16503 }; then
16504 ac_header_preproc=yes
16505else
16506 echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_header_preproc=no
16510fi
16511
16512rm -f conftest.err conftest.$ac_ext
16513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16514echo "${ECHO_T}$ac_header_preproc" >&6; }
16515
16516# So? What about this header?
16517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16518 yes:no: )
16519 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
16520echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
16522echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
16523 ac_header_preproc=yes
16524 ;;
16525 no:yes:* )
16526 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
16527echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
16529echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
16531echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
16532 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
16533echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
16534 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
16535echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
16536 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
16537echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
16538 ( cat <<\_ASBOX
16539## ------------------------------------------- ##
16540## Report this to openssh-unix-dev@mindrot.org ##
16541## ------------------------------------------- ##
16542_ASBOX
16543 ) | sed "s/^/$as_me: WARNING: /" >&2
16544 ;;
16545esac
16546{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16547echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16548if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550else
16551 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
16552fi
16553{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16554echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16555
16556fi
16557if test $ac_cv_header_openssl_opensslv_h = yes; then
16558 :
16559else
16560 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
16561echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
16562 { (exit 1); exit 1; }; }
16563fi
16564
16565
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572
16573/* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16576#ifdef __cplusplus
16577extern "C"
16578#endif
16579char RAND_add ();
16580int
16581main ()
16582{
16583return RAND_add ();
16584 ;
16585 return 0;
16586}
16587_ACEOF
16588rm -f conftest.$ac_objext conftest$ac_exeext
16589if { (ac_try="$ac_link"
16590case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest$ac_exeext &&
16605 $as_test_x conftest$ac_exeext; then
16606 cat >>confdefs.h <<\_ACEOF
16607#define HAVE_OPENSSL 1
16608_ACEOF
16609
16610else
16611 echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
16614
16615 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16616echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16617 { (exit 1); exit 1; }; }
16618
16619
16620fi
16621
16622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16623 conftest$ac_exeext conftest.$ac_ext
16624
16625
16626fi
16627
16628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16629 conftest$ac_exeext conftest.$ac_ext
16630
16631# Determine OpenSSL header version
16632{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16633echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16634if test "$cross_compiling" = yes; then
16635
16636 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16637echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16638
16639
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647
16648#include <stdio.h>
16649#include <string.h>
16650#include <openssl/opensslv.h>
16651#define DATA "conftest.sslincver"
16652int main(void) {
16653 FILE *fd;
16654 int rc;
16655
16656 fd = fopen(DATA,"w");
16657 if(fd == NULL)
16658 exit(1);
16659
16660 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16661 exit(1);
16662
16663 exit(0);
16664}
16665
16666_ACEOF
16667rm -f conftest$ac_exeext
16668if { (ac_try="$ac_link"
16669case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672esac
16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_link") 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16678 { (case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681esac
16682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_try") 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687
16688 ssl_header_ver=`cat conftest.sslincver`
16689 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16690echo "${ECHO_T}$ssl_header_ver" >&6; }
16691
16692else
16693 echo "$as_me: program exited with status $ac_status" >&5
16694echo "$as_me: failed program was:" >&5
16695sed 's/^/| /' conftest.$ac_ext >&5
16696
16697( exit $ac_status )
16698
16699 { echo "$as_me:$LINENO: result: not found" >&5
16700echo "${ECHO_T}not found" >&6; }
16701 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16702echo "$as_me: error: OpenSSL version header not found." >&2;}
16703 { (exit 1); exit 1; }; }
16704
16705fi
16706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16707fi
16708
16709
16710
16711# Determine OpenSSL library version
16712{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16713echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16714if test "$cross_compiling" = yes; then
16715
16716 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16717echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16718
16719
16720else
16721 cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
16727
16728#include <stdio.h>
16729#include <string.h>
16730#include <openssl/opensslv.h>
16731#include <openssl/crypto.h>
16732#define DATA "conftest.ssllibver"
16733int main(void) {
16734 FILE *fd;
16735 int rc;
16736
16737 fd = fopen(DATA,"w");
16738 if(fd == NULL)
16739 exit(1);
16740
16741 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16742 exit(1);
16743
16744 exit(0);
16745}
16746
16747_ACEOF
16748rm -f conftest$ac_exeext
16749if { (ac_try="$ac_link"
16750case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753esac
16754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_link") 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16759 { (case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16762esac
16763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_try") 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768
16769 ssl_library_ver=`cat conftest.ssllibver`
16770 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16771echo "${ECHO_T}$ssl_library_ver" >&6; }
16772
16773else
16774 echo "$as_me: program exited with status $ac_status" >&5
16775echo "$as_me: failed program was:" >&5
16776sed 's/^/| /' conftest.$ac_ext >&5
16777
16778( exit $ac_status )
16779
16780 { echo "$as_me:$LINENO: result: not found" >&5
16781echo "${ECHO_T}not found" >&6; }
16782 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16783echo "$as_me: error: OpenSSL library not found." >&2;}
16784 { (exit 1); exit 1; }; }
16785
16786fi
16787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16788fi
16789
16790
16791
16792
16793# Check whether --with-openssl-header-check was given.
16794if test "${with_openssl_header_check+set}" = set; then
16795 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16796 openssl_check_nonfatal=1
16797 fi
16798
16799
16800fi
16801
16802
16803# Sanity check OpenSSL headers
16804{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16805echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16806if test "$cross_compiling" = yes; then
16807
16808 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16809echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16810
16811
16812else
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819
16820#include <string.h>
16821#include <openssl/opensslv.h>
16822int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16823
16824_ACEOF
16825rm -f conftest$ac_exeext
16826if { (ac_try="$ac_link"
16827case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845
16846 { echo "$as_me:$LINENO: result: yes" >&5
16847echo "${ECHO_T}yes" >&6; }
16848
16849else
16850 echo "$as_me: program exited with status $ac_status" >&5
16851echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854( exit $ac_status )
16855
16856 { echo "$as_me:$LINENO: result: no" >&5
16857echo "${ECHO_T}no" >&6; }
16858 if test "x$openssl_check_nonfatal" = "x"; then
16859 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
16860library. Check config.log for details.
16861If you are sure your installation is consistent, you can disable the check
16862by running \"./configure --without-openssl-header-check\".
16863Also see contrib/findssl.sh for help identifying header/library mismatches.
16864" >&5
16865echo "$as_me: error: Your OpenSSL headers do not match your
16866library. Check config.log for details.
16867If you are sure your installation is consistent, you can disable the check
16868by running \"./configure --without-openssl-header-check\".
16869Also see contrib/findssl.sh for help identifying header/library mismatches.
16870" >&2;}
16871 { (exit 1); exit 1; }; }
16872 else
16873 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
16874library. Check config.log for details.
16875Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
16876echo "$as_me: WARNING: Your OpenSSL headers do not match your
16877library. Check config.log for details.
16878Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
16879 fi
16880
16881fi
16882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16883fi
16884
16885
16886
16887{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
16888echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895
16896#include <openssl/evp.h>
16897int main(void) { SSLeay_add_all_algorithms(); }
16898
16899_ACEOF
16900rm -f conftest.$ac_objext conftest$ac_exeext
16901if { (ac_try="$ac_link"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_link") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } && {
16914 test -z "$ac_c_werror_flag" ||
16915 test ! -s conftest.err
16916 } && test -s conftest$ac_exeext &&
16917 $as_test_x conftest$ac_exeext; then
16918
16919 { echo "$as_me:$LINENO: result: yes" >&5
16920echo "${ECHO_T}yes" >&6; }
16921
16922else
16923 echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926
16927 { echo "$as_me:$LINENO: result: no" >&5
16928echo "${ECHO_T}no" >&6; }
16929 saved_LIBS="$LIBS"
16930 LIBS="$LIBS -ldl"
16931 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16932echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16933 cat >conftest.$ac_ext <<_ACEOF
16934/* confdefs.h. */
16935_ACEOF
16936cat confdefs.h >>conftest.$ac_ext
16937cat >>conftest.$ac_ext <<_ACEOF
16938/* end confdefs.h. */
16939
16940#include <openssl/evp.h>
16941int main(void) { SSLeay_add_all_algorithms(); }
16942
16943_ACEOF
16944rm -f conftest.$ac_objext conftest$ac_exeext
16945if { (ac_try="$ac_link"
16946case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16962
16963 { echo "$as_me:$LINENO: result: yes" >&5
16964echo "${ECHO_T}yes" >&6; }
16965
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970
16971 { echo "$as_me:$LINENO: result: no" >&5
16972echo "${ECHO_T}no" >&6; }
16973 LIBS="$saved_LIBS"
16974
16975
16976fi
16977
16978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16980
16981
16982fi
16983
16984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16985 conftest$ac_exeext conftest.$ac_ext
16986
16987
16988# Check whether --with-ssl-engine was given.
16989if test "${with_ssl_engine+set}" = set; then
16990 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16991 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16992echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999 #include <openssl/engine.h>
17000int
17001main ()
17002{
17003
17004ENGINE_load_builtin_engines();ENGINE_register_all_complete();
17005
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext
17011if { (ac_try="$ac_compile"
17012case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_compile") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest.$ac_objext; then
17027 { echo "$as_me:$LINENO: result: yes" >&5
17028echo "${ECHO_T}yes" >&6; }
17029
17030cat >>confdefs.h <<\_ACEOF
17031#define USE_OPENSSL_ENGINE 1
17032_ACEOF
17033
17034
17035else
17036 echo "$as_me: failed program was:" >&5
17037sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17040echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17041 { (exit 1); exit 1; }; }
17042
17043fi
17044
17045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 fi
17047
17048fi
17049
17050
17051# Check for OpenSSL without EVP_aes_{192,256}_cbc
17052{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17053echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17054cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060
17061#include <string.h>
17062#include <openssl/evp.h>
17063int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17064
17065_ACEOF
17066rm -f conftest.$ac_objext conftest$ac_exeext
17067if { (ac_try="$ac_link"
17068case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071esac
17072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest$ac_exeext &&
17083 $as_test_x conftest$ac_exeext; then
17084
17085 { echo "$as_me:$LINENO: result: no" >&5
17086echo "${ECHO_T}no" >&6; }
17087
17088else
17089 echo "$as_me: failed program was:" >&5
17090sed 's/^/| /' conftest.$ac_ext >&5
17091
17092
17093 { echo "$as_me:$LINENO: result: yes" >&5
17094echo "${ECHO_T}yes" >&6; }
17095
17096cat >>confdefs.h <<\_ACEOF
17097#define OPENSSL_LOBOTOMISED_AES 1
17098_ACEOF
17099
17100
17101
17102fi
17103
17104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17105 conftest$ac_exeext conftest.$ac_ext
17106
17107{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
17108echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
17109cat >conftest.$ac_ext <<_ACEOF
17110/* confdefs.h. */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h. */
17115
17116#include <string.h>
17117#include <openssl/evp.h>
17118int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
17119
17120_ACEOF
17121rm -f conftest.$ac_objext conftest$ac_exeext
17122if { (ac_try="$ac_link"
17123case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } && {
17135 test -z "$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 } && test -s conftest$ac_exeext &&
17138 $as_test_x conftest$ac_exeext; then
17139
17140 { echo "$as_me:$LINENO: result: yes" >&5
17141echo "${ECHO_T}yes" >&6; }
17142
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147
17148 { echo "$as_me:$LINENO: result: no" >&5
17149echo "${ECHO_T}no" >&6; }
17150
17151cat >>confdefs.h <<\_ACEOF
17152#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
17153_ACEOF
17154
17155
17156
17157fi
17158
17159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17160 conftest$ac_exeext conftest.$ac_ext
17161
17162# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
17163# because the system crypt() is more featureful.
17164if test "x$check_for_libcrypt_before" = "x1"; then
17165
17166{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17167echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17168if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170else
17171 ac_check_lib_save_LIBS=$LIBS
17172LIBS="-lcrypt $LIBS"
17173cat >conftest.$ac_ext <<_ACEOF
17174/* confdefs.h. */
17175_ACEOF
17176cat confdefs.h >>conftest.$ac_ext
17177cat >>conftest.$ac_ext <<_ACEOF
17178/* end confdefs.h. */
17179
17180/* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183#ifdef __cplusplus
17184extern "C"
17185#endif
17186char crypt ();
17187int
17188main ()
17189{
17190return crypt ();
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195rm -f conftest.$ac_objext conftest$ac_exeext
17196if { (ac_try="$ac_link"
17197case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest$ac_exeext &&
17212 $as_test_x conftest$ac_exeext; then
17213 ac_cv_lib_crypt_crypt=yes
17214else
17215 echo "$as_me: failed program was:" >&5
17216sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_cv_lib_crypt_crypt=no
17219fi
17220
17221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17222 conftest$ac_exeext conftest.$ac_ext
17223LIBS=$ac_check_lib_save_LIBS
17224fi
17225{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17226echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17227if test $ac_cv_lib_crypt_crypt = yes; then
17228 cat >>confdefs.h <<_ACEOF
17229#define HAVE_LIBCRYPT 1
17230_ACEOF
17231
17232 LIBS="-lcrypt $LIBS"
17233
17234fi
17235
17236fi
17237
17238# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
17239# version in OpenSSL.
17240if test "x$check_for_libcrypt_later" = "x1"; then
17241 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17242echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17243if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245else
17246 ac_check_lib_save_LIBS=$LIBS
17247LIBS="-lcrypt $LIBS"
17248cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h. */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h. */
17254
17255/* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17258#ifdef __cplusplus
17259extern "C"
17260#endif
17261char crypt ();
17262int
17263main ()
17264{
17265return crypt ();
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext conftest$ac_exeext
17271if { (ac_try="$ac_link"
17272case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275esac
17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest$ac_exeext &&
17287 $as_test_x conftest$ac_exeext; then
17288 ac_cv_lib_crypt_crypt=yes
17289else
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 ac_cv_lib_crypt_crypt=no
17294fi
17295
17296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17298LIBS=$ac_check_lib_save_LIBS
17299fi
17300{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17301echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17302if test $ac_cv_lib_crypt_crypt = yes; then
17303 LIBS="$LIBS -lcrypt"
17304fi
17305
17306fi
17307
17308# Search for SHA256 support in libc and/or OpenSSL
17309
17310
17311for ac_func in SHA256_Update EVP_sha256
17312do
17313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17314{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319 cat >conftest.$ac_ext <<_ACEOF
17320/* confdefs.h. */
17321_ACEOF
17322cat confdefs.h >>conftest.$ac_ext
17323cat >>conftest.$ac_ext <<_ACEOF
17324/* end confdefs.h. */
17325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17327#define $ac_func innocuous_$ac_func
17328
17329/* System header to define __stub macros and hopefully few prototypes,
17330 which can conflict with char $ac_func (); below.
17331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17332 <limits.h> exists even on freestanding compilers. */
17333
17334#ifdef __STDC__
17335# include <limits.h>
17336#else
17337# include <assert.h>
17338#endif
17339
17340#undef $ac_func
17341
17342/* Override any GCC internal prototype to avoid an error.
17343 Use char because int might match the return type of a GCC
17344 builtin and then its argument prototype would still apply. */
17345#ifdef __cplusplus
17346extern "C"
17347#endif
17348char $ac_func ();
17349/* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352#if defined __stub_$ac_func || defined __stub___$ac_func
17353choke me
17354#endif
17355
17356int
17357main ()
17358{
17359return $ac_func ();
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364rm -f conftest.$ac_objext conftest$ac_exeext
17365if { (ac_try="$ac_link"
17366case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17382 eval "$as_ac_var=yes"
17383else
17384 echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387 eval "$as_ac_var=no"
17388fi
17389
17390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392fi
17393ac_res=`eval echo '${'$as_ac_var'}'`
17394 { echo "$as_me:$LINENO: result: $ac_res" >&5
17395echo "${ECHO_T}$ac_res" >&6; }
17396if test `eval echo '${'$as_ac_var'}'` = yes; then
17397 cat >>confdefs.h <<_ACEOF
17398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17399_ACEOF
17400
17401fi
17402done
17403
17404
17405saved_LIBS="$LIBS"
17406{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
17407echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
17408if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410else
17411 ac_check_lib_save_LIBS=$LIBS
17412LIBS="-liaf $LIBS"
17413cat >conftest.$ac_ext <<_ACEOF
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
17419
17420/* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17423#ifdef __cplusplus
17424extern "C"
17425#endif
17426char ia_openinfo ();
17427int
17428main ()
17429{
17430return ia_openinfo ();
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext conftest$ac_exeext
17436if { (ac_try="$ac_link"
17437case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext &&
17452 $as_test_x conftest$ac_exeext; then
17453 ac_cv_lib_iaf_ia_openinfo=yes
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458 ac_cv_lib_iaf_ia_openinfo=no
17459fi
17460
17461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17462 conftest$ac_exeext conftest.$ac_ext
17463LIBS=$ac_check_lib_save_LIBS
17464fi
17465{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
17466echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
17467if test $ac_cv_lib_iaf_ia_openinfo = yes; then
17468
17469 LIBS="$LIBS -liaf"
17470
17471for ac_func in set_id
17472do
17473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17474{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17476if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478else
17479 cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
17485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17487#define $ac_func innocuous_$ac_func
17488
17489/* System header to define __stub macros and hopefully few prototypes,
17490 which can conflict with char $ac_func (); below.
17491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492 <limits.h> exists even on freestanding compilers. */
17493
17494#ifdef __STDC__
17495# include <limits.h>
17496#else
17497# include <assert.h>
17498#endif
17499
17500#undef $ac_func
17501
17502/* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17505#ifdef __cplusplus
17506extern "C"
17507#endif
17508char $ac_func ();
17509/* The GNU C library defines this for functions which it implements
17510 to always fail with ENOSYS. Some functions are actually named
17511 something starting with __ and the normal name is an alias. */
17512#if defined __stub_$ac_func || defined __stub___$ac_func
17513choke me
17514#endif
17515
17516int
17517main ()
17518{
17519return $ac_func ();
17520 ;
17521 return 0;
17522}
17523_ACEOF
17524rm -f conftest.$ac_objext conftest$ac_exeext
17525if { (ac_try="$ac_link"
17526case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17529esac
17530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_link") 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext &&
17541 $as_test_x conftest$ac_exeext; then
17542 eval "$as_ac_var=yes"
17543else
17544 echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 eval "$as_ac_var=no"
17548fi
17549
17550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551 conftest$ac_exeext conftest.$ac_ext
17552fi
17553ac_res=`eval echo '${'$as_ac_var'}'`
17554 { echo "$as_me:$LINENO: result: $ac_res" >&5
17555echo "${ECHO_T}$ac_res" >&6; }
17556if test `eval echo '${'$as_ac_var'}'` = yes; then
17557 cat >>confdefs.h <<_ACEOF
17558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17559_ACEOF
17560 SSHDLIBS="$SSHDLIBS -liaf"
17561
17562cat >>confdefs.h <<\_ACEOF
17563#define HAVE_LIBIAF 1
17564_ACEOF
17565
17566
17567fi
17568done
17569
17570
17571fi
17572
17573LIBS="$saved_LIBS"
17574
17575### Configure cryptographic random number support
17576
17577# Check wheter OpenSSL seeds itself
17578{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
17579echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
17580if test "$cross_compiling" = yes; then
17581
17582 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
17583echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
17584 # This is safe, since all recent OpenSSL versions will
17585 # complain at runtime if not seeded correctly.
17586 OPENSSL_SEEDS_ITSELF=yes
17587
17588
17589else
17590 cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596
17597#include <string.h>
17598#include <openssl/rand.h>
17599int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
17600
17601_ACEOF
17602rm -f conftest$ac_exeext
17603if { (ac_try="$ac_link"
17604case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622
17623 OPENSSL_SEEDS_ITSELF=yes
17624 { echo "$as_me:$LINENO: result: yes" >&5
17625echo "${ECHO_T}yes" >&6; }
17626
17627else
17628 echo "$as_me: program exited with status $ac_status" >&5
17629echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632( exit $ac_status )
17633
17634 { echo "$as_me:$LINENO: result: no" >&5
17635echo "${ECHO_T}no" >&6; }
17636 # Default to use of the rand helper if OpenSSL doesn't
17637 # seed itself
17638 USE_RAND_HELPER=yes
17639
17640fi
17641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17642fi
17643
17644
17645
17646# Check for PAM libs
17647PAM_MSG="no"
17648
17649# Check whether --with-pam was given.
17650if test "${with_pam+set}" = set; then
17651 withval=$with_pam;
17652 if test "x$withval" != "xno" ; then
17653 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
17654 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
17655 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
17656echo "$as_me: error: PAM headers not found" >&2;}
17657 { (exit 1); exit 1; }; }
17658 fi
17659
17660 saved_LIBS="$LIBS"
17661
17662{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17663echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17664if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667 ac_check_lib_save_LIBS=$LIBS
17668LIBS="-ldl $LIBS"
17669cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675
17676/* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682char dlopen ();
17683int
17684main ()
17685{
17686return dlopen ();
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext conftest$ac_exeext
17692if { (ac_try="$ac_link"
17693case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17696esac
17697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest$ac_exeext &&
17708 $as_test_x conftest$ac_exeext; then
17709 ac_cv_lib_dl_dlopen=yes
17710else
17711 echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_cv_lib_dl_dlopen=no
17715fi
17716
17717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17718 conftest$ac_exeext conftest.$ac_ext
17719LIBS=$ac_check_lib_save_LIBS
17720fi
17721{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17722echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17723if test $ac_cv_lib_dl_dlopen = yes; then
17724 cat >>confdefs.h <<_ACEOF
17725#define HAVE_LIBDL 1
17726_ACEOF
17727
17728 LIBS="-ldl $LIBS"
17729
17730fi
17731
17732
17733{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17734echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17735if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737else
17738 ac_check_lib_save_LIBS=$LIBS
17739LIBS="-lpam $LIBS"
17740cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746
17747/* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17750#ifdef __cplusplus
17751extern "C"
17752#endif
17753char pam_set_item ();
17754int
17755main ()
17756{
17757return pam_set_item ();
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext conftest$ac_exeext
17763if { (ac_try="$ac_link"
17764case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767esac
17768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_link") 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && {
17776 test -z "$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 } && test -s conftest$ac_exeext &&
17779 $as_test_x conftest$ac_exeext; then
17780 ac_cv_lib_pam_pam_set_item=yes
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_cv_lib_pam_pam_set_item=no
17786fi
17787
17788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17789 conftest$ac_exeext conftest.$ac_ext
17790LIBS=$ac_check_lib_save_LIBS
17791fi
17792{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17793echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17794if test $ac_cv_lib_pam_pam_set_item = yes; then
17795 cat >>confdefs.h <<_ACEOF
17796#define HAVE_LIBPAM 1
17797_ACEOF
17798
17799 LIBS="-lpam $LIBS"
17800
17801else
17802 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17803echo "$as_me: error: *** libpam missing" >&2;}
17804 { (exit 1); exit 1; }; }
17805fi
17806
17807
17808for ac_func in pam_getenvlist
17809do
17810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17811{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
17822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824#define $ac_func innocuous_$ac_func
17825
17826/* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17830
17831#ifdef __STDC__
17832# include <limits.h>
17833#else
17834# include <assert.h>
17835#endif
17836
17837#undef $ac_func
17838
17839/* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842#ifdef __cplusplus
17843extern "C"
17844#endif
17845char $ac_func ();
17846/* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849#if defined __stub_$ac_func || defined __stub___$ac_func
17850choke me
17851#endif
17852
17853int
17854main ()
17855{
17856return $ac_func ();
17857 ;
17858 return 0;
17859}
17860_ACEOF
17861rm -f conftest.$ac_objext conftest$ac_exeext
17862if { (ac_try="$ac_link"
17863case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866esac
17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest$ac_exeext &&
17878 $as_test_x conftest$ac_exeext; then
17879 eval "$as_ac_var=yes"
17880else
17881 echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 eval "$as_ac_var=no"
17885fi
17886
17887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17889fi
17890ac_res=`eval echo '${'$as_ac_var'}'`
17891 { echo "$as_me:$LINENO: result: $ac_res" >&5
17892echo "${ECHO_T}$ac_res" >&6; }
17893if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896_ACEOF
17897
17898fi
17899done
17900
17901
17902for ac_func in pam_putenv
17903do
17904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918#define $ac_func innocuous_$ac_func
17919
17920/* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char $ac_func (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17924
17925#ifdef __STDC__
17926# include <limits.h>
17927#else
17928# include <assert.h>
17929#endif
17930
17931#undef $ac_func
17932
17933/* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939char $ac_func ();
17940/* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943#if defined __stub_$ac_func || defined __stub___$ac_func
17944choke me
17945#endif
17946
17947int
17948main ()
17949{
17950return $ac_func ();
17951 ;
17952 return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext conftest$ac_exeext
17956if { (ac_try="$ac_link"
17957case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960esac
17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest$ac_exeext &&
17972 $as_test_x conftest$ac_exeext; then
17973 eval "$as_ac_var=yes"
17974else
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 eval "$as_ac_var=no"
17979fi
17980
17981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17982 conftest$ac_exeext conftest.$ac_ext
17983fi
17984ac_res=`eval echo '${'$as_ac_var'}'`
17985 { echo "$as_me:$LINENO: result: $ac_res" >&5
17986echo "${ECHO_T}$ac_res" >&6; }
17987if test `eval echo '${'$as_ac_var'}'` = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17990_ACEOF
17991
17992fi
17993done
17994
17995 LIBS="$saved_LIBS"
17996
17997 PAM_MSG="yes"
17998
17999 SSHDLIBS="$SSHDLIBS -lpam"
18000
18001cat >>confdefs.h <<\_ACEOF
18002#define USE_PAM 1
18003_ACEOF
18004
18005
18006 if test $ac_cv_lib_dl_dlopen = yes; then
18007 case "$LIBS" in
18008 *-ldl*)
18009 # libdl already in LIBS
18010 ;;
18011 *)
18012 SSHDLIBS="$SSHDLIBS -ldl"
18013 ;;
18014 esac
18015 fi
18016 fi
18017
18018
18019fi
18020
18021
18022# Check for older PAM
18023if test "x$PAM_MSG" = "xyes" ; then
18024 # Check PAM strerror arguments (old PAM)
18025 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18026echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18027 cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
18033
18034#include <stdlib.h>
18035#if defined(HAVE_SECURITY_PAM_APPL_H)
18036#include <security/pam_appl.h>
18037#elif defined (HAVE_PAM_PAM_APPL_H)
18038#include <pam/pam_appl.h>
18039#endif
18040
18041int
18042main ()
18043{
18044(void)pam_strerror((pam_handle_t *)NULL, -1);
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext
18050if { (ac_try="$ac_compile"
18051case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 { echo "$as_me:$LINENO: result: no" >&5
18067echo "${ECHO_T}no" >&6; }
18068else
18069 echo "$as_me: failed program was:" >&5
18070sed 's/^/| /' conftest.$ac_ext >&5
18071
18072
18073
18074cat >>confdefs.h <<\_ACEOF
18075#define HAVE_OLD_PAM 1
18076_ACEOF
18077
18078 { echo "$as_me:$LINENO: result: yes" >&5
18079echo "${ECHO_T}yes" >&6; }
18080 PAM_MSG="yes (old library)"
18081
18082
18083fi
18084
18085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086fi
18087
18088# Do we want to force the use of the rand helper?
18089
18090# Check whether --with-rand-helper was given.
18091if test "${with_rand_helper+set}" = set; then
18092 withval=$with_rand_helper;
18093 if test "x$withval" = "xno" ; then
18094 # Force use of OpenSSL's internal RNG, even if
18095 # the previous test showed it to be unseeded.
18096 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
18097 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
18098echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
18099 OPENSSL_SEEDS_ITSELF=yes
18100 USE_RAND_HELPER=""
18101 fi
18102 else
18103 USE_RAND_HELPER=yes
18104 fi
18105
18106fi
18107
18108
18109# Which randomness source do we use?
18110if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
18111 # OpenSSL only
18112
18113cat >>confdefs.h <<\_ACEOF
18114#define OPENSSL_PRNG_ONLY 1
18115_ACEOF
18116
18117 RAND_MSG="OpenSSL internal ONLY"
18118 INSTALL_SSH_RAND_HELPER=""
18119elif test ! -z "$USE_RAND_HELPER" ; then
18120 # install rand helper
18121 RAND_MSG="ssh-rand-helper"
18122 INSTALL_SSH_RAND_HELPER="yes"
18123fi
18124
18125
18126### Configuration of ssh-rand-helper
18127
18128# PRNGD TCP socket
18129
18130# Check whether --with-prngd-port was given.
18131if test "${with_prngd_port+set}" = set; then
18132 withval=$with_prngd_port;
18133 case "$withval" in
18134 no)
18135 withval=""
18136 ;;
18137 [0-9]*)
18138 ;;
18139 *)
18140 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
18141echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
18142 { (exit 1); exit 1; }; }
18143 ;;
18144 esac
18145 if test ! -z "$withval" ; then
18146 PRNGD_PORT="$withval"
18147
18148cat >>confdefs.h <<_ACEOF
18149#define PRNGD_PORT $PRNGD_PORT
18150_ACEOF
18151
18152 fi
18153
18154
18155fi
18156
18157
18158# PRNGD Unix domain socket
18159
18160# Check whether --with-prngd-socket was given.
18161if test "${with_prngd_socket+set}" = set; then
18162 withval=$with_prngd_socket;
18163 case "$withval" in
18164 yes)
18165 withval="/var/run/egd-pool"
18166 ;;
18167 no)
18168 withval=""
18169 ;;
18170 /*)
18171 ;;
18172 *)
18173 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
18174echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
18175 { (exit 1); exit 1; }; }
18176 ;;
18177 esac
18178
18179 if test ! -z "$withval" ; then
18180 if test ! -z "$PRNGD_PORT" ; then
18181 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
18182echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
18183 { (exit 1); exit 1; }; }
18184 fi
18185 if test ! -r "$withval" ; then
18186 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
18187echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
18188 fi
18189 PRNGD_SOCKET="$withval"
18190
18191cat >>confdefs.h <<_ACEOF
18192#define PRNGD_SOCKET "$PRNGD_SOCKET"
18193_ACEOF
18194
18195 fi
18196
18197else
18198
18199 # Check for existing socket only if we don't have a random device already
18200 if test "$USE_RAND_HELPER" = yes ; then
18201 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
18202echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
18203 # Insert other locations here
18204 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
18205 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
18206 PRNGD_SOCKET="$sock"
18207 cat >>confdefs.h <<_ACEOF
18208#define PRNGD_SOCKET "$PRNGD_SOCKET"
18209_ACEOF
18210
18211 break;
18212 fi
18213 done
18214 if test ! -z "$PRNGD_SOCKET" ; then
18215 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
18216echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
18217 else
18218 { echo "$as_me:$LINENO: result: not found" >&5
18219echo "${ECHO_T}not found" >&6; }
18220 fi
18221 fi
18222
18223
18224fi
18225
18226
18227# Change default command timeout for hashing entropy source
18228entropy_timeout=200
18229
18230# Check whether --with-entropy-timeout was given.
18231if test "${with_entropy_timeout+set}" = set; then
18232 withval=$with_entropy_timeout;
18233 if test -n "$withval" && test "x$withval" != "xno" && \
18234 test "x${withval}" != "xyes"; then
18235 entropy_timeout=$withval
18236 fi
18237
18238
18239fi
18240
18241
18242cat >>confdefs.h <<_ACEOF
18243#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
18244_ACEOF
18245
18246
18247SSH_PRIVSEP_USER=sshd
18248
18249# Check whether --with-privsep-user was given.
18250if test "${with_privsep_user+set}" = set; then
18251 withval=$with_privsep_user;
18252 if test -n "$withval" && test "x$withval" != "xno" && \
18253 test "x${withval}" != "xyes"; then
18254 SSH_PRIVSEP_USER=$withval
18255 fi
18256
18257
18258fi
18259
18260
18261cat >>confdefs.h <<_ACEOF
18262#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
18263_ACEOF
18264
18265
18266
18267# We do this little dance with the search path to insure
18268# that programs that we select for use by installed programs
18269# (which may be run by the super-user) come from trusted
18270# locations before they come from the user's private area.
18271# This should help avoid accidentally configuring some
18272# random version of a program in someone's personal bin.
18273
18274OPATH=$PATH
18275PATH=/bin:/usr/bin
18276test -h /bin 2> /dev/null && PATH=/usr/bin
18277test -d /sbin && PATH=$PATH:/sbin
18278test -d /usr/sbin && PATH=$PATH:/usr/sbin
18279PATH=$PATH:/etc:$OPATH
18280
18281# These programs are used by the command hashing source to gather entropy
18282
18283 # Extract the first word of "ls", so it can be a program name with args.
18284set dummy ls; ac_word=$2
18285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18287if test "${ac_cv_path_PROG_LS+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290 case $PROG_LS in
18291 [\\/]* | ?:[\\/]*)
18292 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
18293 ;;
18294 *)
18295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18296for as_dir in $PATH
18297do
18298 IFS=$as_save_IFS
18299 test -z "$as_dir" && as_dir=.
18300 for ac_exec_ext in '' $ac_executable_extensions; do
18301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18302 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
18303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18304 break 2
18305 fi
18306done
18307done
18308IFS=$as_save_IFS
18309
18310 ;;
18311esac
18312fi
18313PROG_LS=$ac_cv_path_PROG_LS
18314if test -n "$PROG_LS"; then
18315 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
18316echo "${ECHO_T}$PROG_LS" >&6; }
18317else
18318 { echo "$as_me:$LINENO: result: no" >&5
18319echo "${ECHO_T}no" >&6; }
18320fi
18321
18322
18323 if test -z "$PROG_LS" ; then
18324 PROG_LS="undef"
18325 fi
18326
18327
18328
18329 # Extract the first word of "netstat", so it can be a program name with args.
18330set dummy netstat; ac_word=$2
18331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18333if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 case $PROG_NETSTAT in
18337 [\\/]* | ?:[\\/]*)
18338 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
18339 ;;
18340 *)
18341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18342for as_dir in $PATH
18343do
18344 IFS=$as_save_IFS
18345 test -z "$as_dir" && as_dir=.
18346 for ac_exec_ext in '' $ac_executable_extensions; do
18347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18348 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
18349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18350 break 2
18351 fi
18352done
18353done
18354IFS=$as_save_IFS
18355
18356 ;;
18357esac
18358fi
18359PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
18360if test -n "$PROG_NETSTAT"; then
18361 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
18362echo "${ECHO_T}$PROG_NETSTAT" >&6; }
18363else
18364 { echo "$as_me:$LINENO: result: no" >&5
18365echo "${ECHO_T}no" >&6; }
18366fi
18367
18368
18369 if test -z "$PROG_NETSTAT" ; then
18370 PROG_NETSTAT="undef"
18371 fi
18372
18373
18374
18375 # Extract the first word of "arp", so it can be a program name with args.
18376set dummy arp; ac_word=$2
18377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18379if test "${ac_cv_path_PROG_ARP+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381else
18382 case $PROG_ARP in
18383 [\\/]* | ?:[\\/]*)
18384 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
18385 ;;
18386 *)
18387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18388for as_dir in $PATH
18389do
18390 IFS=$as_save_IFS
18391 test -z "$as_dir" && as_dir=.
18392 for ac_exec_ext in '' $ac_executable_extensions; do
18393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18394 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
18395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18396 break 2
18397 fi
18398done
18399done
18400IFS=$as_save_IFS
18401
18402 ;;
18403esac
18404fi
18405PROG_ARP=$ac_cv_path_PROG_ARP
18406if test -n "$PROG_ARP"; then
18407 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
18408echo "${ECHO_T}$PROG_ARP" >&6; }
18409else
18410 { echo "$as_me:$LINENO: result: no" >&5
18411echo "${ECHO_T}no" >&6; }
18412fi
18413
18414
18415 if test -z "$PROG_ARP" ; then
18416 PROG_ARP="undef"
18417 fi
18418
18419
18420
18421 # Extract the first word of "ifconfig", so it can be a program name with args.
18422set dummy ifconfig; ac_word=$2
18423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18425if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427else
18428 case $PROG_IFCONFIG in
18429 [\\/]* | ?:[\\/]*)
18430 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
18431 ;;
18432 *)
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434for as_dir in $PATH
18435do
18436 IFS=$as_save_IFS
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18440 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
18441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 break 2
18443 fi
18444done
18445done
18446IFS=$as_save_IFS
18447
18448 ;;
18449esac
18450fi
18451PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
18452if test -n "$PROG_IFCONFIG"; then
18453 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
18454echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
18455else
18456 { echo "$as_me:$LINENO: result: no" >&5
18457echo "${ECHO_T}no" >&6; }
18458fi
18459
18460
18461 if test -z "$PROG_IFCONFIG" ; then
18462 PROG_IFCONFIG="undef"
18463 fi
18464
18465
18466
18467 # Extract the first word of "jstat", so it can be a program name with args.
18468set dummy jstat; ac_word=$2
18469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18471if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473else
18474 case $PROG_JSTAT in
18475 [\\/]* | ?:[\\/]*)
18476 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
18477 ;;
18478 *)
18479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18480for as_dir in $PATH
18481do
18482 IFS=$as_save_IFS
18483 test -z "$as_dir" && as_dir=.
18484 for ac_exec_ext in '' $ac_executable_extensions; do
18485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18486 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
18487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18488 break 2
18489 fi
18490done
18491done
18492IFS=$as_save_IFS
18493
18494 ;;
18495esac
18496fi
18497PROG_JSTAT=$ac_cv_path_PROG_JSTAT
18498if test -n "$PROG_JSTAT"; then
18499 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
18500echo "${ECHO_T}$PROG_JSTAT" >&6; }
18501else
18502 { echo "$as_me:$LINENO: result: no" >&5
18503echo "${ECHO_T}no" >&6; }
18504fi
18505
18506
18507 if test -z "$PROG_JSTAT" ; then
18508 PROG_JSTAT="undef"
18509 fi
18510
18511
18512
18513 # Extract the first word of "ps", so it can be a program name with args.
18514set dummy ps; ac_word=$2
18515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517if test "${ac_cv_path_PROG_PS+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 case $PROG_PS in
18521 [\\/]* | ?:[\\/]*)
18522 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
18523 ;;
18524 *)
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526for as_dir in $PATH
18527do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18532 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
18533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534 break 2
18535 fi
18536done
18537done
18538IFS=$as_save_IFS
18539
18540 ;;
18541esac
18542fi
18543PROG_PS=$ac_cv_path_PROG_PS
18544if test -n "$PROG_PS"; then
18545 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
18546echo "${ECHO_T}$PROG_PS" >&6; }
18547else
18548 { echo "$as_me:$LINENO: result: no" >&5
18549echo "${ECHO_T}no" >&6; }
18550fi
18551
18552
18553 if test -z "$PROG_PS" ; then
18554 PROG_PS="undef"
18555 fi
18556
18557
18558
18559 # Extract the first word of "sar", so it can be a program name with args.
18560set dummy sar; ac_word=$2
18561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18563if test "${ac_cv_path_PROG_SAR+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566 case $PROG_SAR in
18567 [\\/]* | ?:[\\/]*)
18568 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
18569 ;;
18570 *)
18571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572for as_dir in $PATH
18573do
18574 IFS=$as_save_IFS
18575 test -z "$as_dir" && as_dir=.
18576 for ac_exec_ext in '' $ac_executable_extensions; do
18577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18578 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
18579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18580 break 2
18581 fi
18582done
18583done
18584IFS=$as_save_IFS
18585
18586 ;;
18587esac
18588fi
18589PROG_SAR=$ac_cv_path_PROG_SAR
18590if test -n "$PROG_SAR"; then
18591 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
18592echo "${ECHO_T}$PROG_SAR" >&6; }
18593else
18594 { echo "$as_me:$LINENO: result: no" >&5
18595echo "${ECHO_T}no" >&6; }
18596fi
18597
18598
18599 if test -z "$PROG_SAR" ; then
18600 PROG_SAR="undef"
18601 fi
18602
18603
18604
18605 # Extract the first word of "w", so it can be a program name with args.
18606set dummy w; ac_word=$2
18607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18609if test "${ac_cv_path_PROG_W+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18611else
18612 case $PROG_W in
18613 [\\/]* | ?:[\\/]*)
18614 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
18615 ;;
18616 *)
18617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618for as_dir in $PATH
18619do
18620 IFS=$as_save_IFS
18621 test -z "$as_dir" && as_dir=.
18622 for ac_exec_ext in '' $ac_executable_extensions; do
18623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18624 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
18625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18626 break 2
18627 fi
18628done
18629done
18630IFS=$as_save_IFS
18631
18632 ;;
18633esac
18634fi
18635PROG_W=$ac_cv_path_PROG_W
18636if test -n "$PROG_W"; then
18637 { echo "$as_me:$LINENO: result: $PROG_W" >&5
18638echo "${ECHO_T}$PROG_W" >&6; }
18639else
18640 { echo "$as_me:$LINENO: result: no" >&5
18641echo "${ECHO_T}no" >&6; }
18642fi
18643
18644
18645 if test -z "$PROG_W" ; then
18646 PROG_W="undef"
18647 fi
18648
18649
18650
18651 # Extract the first word of "who", so it can be a program name with args.
18652set dummy who; ac_word=$2
18653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18655if test "${ac_cv_path_PROG_WHO+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658 case $PROG_WHO in
18659 [\\/]* | ?:[\\/]*)
18660 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
18661 ;;
18662 *)
18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18670 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18673 fi
18674done
18675done
18676IFS=$as_save_IFS
18677
18678 ;;
18679esac
18680fi
18681PROG_WHO=$ac_cv_path_PROG_WHO
18682if test -n "$PROG_WHO"; then
18683 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18684echo "${ECHO_T}$PROG_WHO" >&6; }
18685else
18686 { echo "$as_me:$LINENO: result: no" >&5
18687echo "${ECHO_T}no" >&6; }
18688fi
18689
18690
18691 if test -z "$PROG_WHO" ; then
18692 PROG_WHO="undef"
18693 fi
18694
18695
18696
18697 # Extract the first word of "last", so it can be a program name with args.
18698set dummy last; ac_word=$2
18699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18701if test "${ac_cv_path_PROG_LAST+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 case $PROG_LAST in
18705 [\\/]* | ?:[\\/]*)
18706 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18707 ;;
18708 *)
18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710for as_dir in $PATH
18711do
18712 IFS=$as_save_IFS
18713 test -z "$as_dir" && as_dir=.
18714 for ac_exec_ext in '' $ac_executable_extensions; do
18715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18716 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18718 break 2
18719 fi
18720done
18721done
18722IFS=$as_save_IFS
18723
18724 ;;
18725esac
18726fi
18727PROG_LAST=$ac_cv_path_PROG_LAST
18728if test -n "$PROG_LAST"; then
18729 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18730echo "${ECHO_T}$PROG_LAST" >&6; }
18731else
18732 { echo "$as_me:$LINENO: result: no" >&5
18733echo "${ECHO_T}no" >&6; }
18734fi
18735
18736
18737 if test -z "$PROG_LAST" ; then
18738 PROG_LAST="undef"
18739 fi
18740
18741
18742
18743 # Extract the first word of "lastlog", so it can be a program name with args.
18744set dummy lastlog; ac_word=$2
18745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18747if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18749else
18750 case $PROG_LASTLOG in
18751 [\\/]* | ?:[\\/]*)
18752 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18753 ;;
18754 *)
18755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18756for as_dir in $PATH
18757do
18758 IFS=$as_save_IFS
18759 test -z "$as_dir" && as_dir=.
18760 for ac_exec_ext in '' $ac_executable_extensions; do
18761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18762 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18764 break 2
18765 fi
18766done
18767done
18768IFS=$as_save_IFS
18769
18770 ;;
18771esac
18772fi
18773PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18774if test -n "$PROG_LASTLOG"; then
18775 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18776echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18777else
18778 { echo "$as_me:$LINENO: result: no" >&5
18779echo "${ECHO_T}no" >&6; }
18780fi
18781
18782
18783 if test -z "$PROG_LASTLOG" ; then
18784 PROG_LASTLOG="undef"
18785 fi
18786
18787
18788
18789 # Extract the first word of "df", so it can be a program name with args.
18790set dummy df; ac_word=$2
18791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18793if test "${ac_cv_path_PROG_DF+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 case $PROG_DF in
18797 [\\/]* | ?:[\\/]*)
18798 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18799 ;;
18800 *)
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_exec_ext in '' $ac_executable_extensions; do
18807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18808 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 break 2
18811 fi
18812done
18813done
18814IFS=$as_save_IFS
18815
18816 ;;
18817esac
18818fi
18819PROG_DF=$ac_cv_path_PROG_DF
18820if test -n "$PROG_DF"; then
18821 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18822echo "${ECHO_T}$PROG_DF" >&6; }
18823else
18824 { echo "$as_me:$LINENO: result: no" >&5
18825echo "${ECHO_T}no" >&6; }
18826fi
18827
18828
18829 if test -z "$PROG_DF" ; then
18830 PROG_DF="undef"
18831 fi
18832
18833
18834
18835 # Extract the first word of "vmstat", so it can be a program name with args.
18836set dummy vmstat; ac_word=$2
18837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18839if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841else
18842 case $PROG_VMSTAT in
18843 [\\/]* | ?:[\\/]*)
18844 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18845 ;;
18846 *)
18847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848for as_dir in $PATH
18849do
18850 IFS=$as_save_IFS
18851 test -z "$as_dir" && as_dir=.
18852 for ac_exec_ext in '' $ac_executable_extensions; do
18853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18854 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18856 break 2
18857 fi
18858done
18859done
18860IFS=$as_save_IFS
18861
18862 ;;
18863esac
18864fi
18865PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
18866if test -n "$PROG_VMSTAT"; then
18867 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
18868echo "${ECHO_T}$PROG_VMSTAT" >&6; }
18869else
18870 { echo "$as_me:$LINENO: result: no" >&5
18871echo "${ECHO_T}no" >&6; }
18872fi
18873
18874
18875 if test -z "$PROG_VMSTAT" ; then
18876 PROG_VMSTAT="undef"
18877 fi
18878
18879
18880
18881 # Extract the first word of "uptime", so it can be a program name with args.
18882set dummy uptime; ac_word=$2
18883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18885if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887else
18888 case $PROG_UPTIME in
18889 [\\/]* | ?:[\\/]*)
18890 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
18891 ;;
18892 *)
18893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18894for as_dir in $PATH
18895do
18896 IFS=$as_save_IFS
18897 test -z "$as_dir" && as_dir=.
18898 for ac_exec_ext in '' $ac_executable_extensions; do
18899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18900 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
18901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 break 2
18903 fi
18904done
18905done
18906IFS=$as_save_IFS
18907
18908 ;;
18909esac
18910fi
18911PROG_UPTIME=$ac_cv_path_PROG_UPTIME
18912if test -n "$PROG_UPTIME"; then
18913 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
18914echo "${ECHO_T}$PROG_UPTIME" >&6; }
18915else
18916 { echo "$as_me:$LINENO: result: no" >&5
18917echo "${ECHO_T}no" >&6; }
18918fi
18919
18920
18921 if test -z "$PROG_UPTIME" ; then
18922 PROG_UPTIME="undef"
18923 fi
18924
18925
18926
18927 # Extract the first word of "ipcs", so it can be a program name with args.
18928set dummy ipcs; ac_word=$2
18929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18931if test "${ac_cv_path_PROG_IPCS+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 case $PROG_IPCS in
18935 [\\/]* | ?:[\\/]*)
18936 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
18937 ;;
18938 *)
18939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18940for as_dir in $PATH
18941do
18942 IFS=$as_save_IFS
18943 test -z "$as_dir" && as_dir=.
18944 for ac_exec_ext in '' $ac_executable_extensions; do
18945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18946 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
18947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18948 break 2
18949 fi
18950done
18951done
18952IFS=$as_save_IFS
18953
18954 ;;
18955esac
18956fi
18957PROG_IPCS=$ac_cv_path_PROG_IPCS
18958if test -n "$PROG_IPCS"; then
18959 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
18960echo "${ECHO_T}$PROG_IPCS" >&6; }
18961else
18962 { echo "$as_me:$LINENO: result: no" >&5
18963echo "${ECHO_T}no" >&6; }
18964fi
18965
18966
18967 if test -z "$PROG_IPCS" ; then
18968 PROG_IPCS="undef"
18969 fi
18970
18971
18972
18973 # Extract the first word of "tail", so it can be a program name with args.
18974set dummy tail; ac_word=$2
18975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18977if test "${ac_cv_path_PROG_TAIL+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979else
18980 case $PROG_TAIL in
18981 [\\/]* | ?:[\\/]*)
18982 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
18983 ;;
18984 *)
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986for as_dir in $PATH
18987do
18988 IFS=$as_save_IFS
18989 test -z "$as_dir" && as_dir=.
18990 for ac_exec_ext in '' $ac_executable_extensions; do
18991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18992 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
18993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18994 break 2
18995 fi
18996done
18997done
18998IFS=$as_save_IFS
18999
19000 ;;
19001esac
19002fi
19003PROG_TAIL=$ac_cv_path_PROG_TAIL
19004if test -n "$PROG_TAIL"; then
19005 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19006echo "${ECHO_T}$PROG_TAIL" >&6; }
19007else
19008 { echo "$as_me:$LINENO: result: no" >&5
19009echo "${ECHO_T}no" >&6; }
19010fi
19011
19012
19013 if test -z "$PROG_TAIL" ; then
19014 PROG_TAIL="undef"
19015 fi
19016
19017
19018# restore PATH
19019PATH=$OPATH
19020
19021# Where does ssh-rand-helper get its randomness from?
19022INSTALL_SSH_PRNG_CMDS=""
19023if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19024 if test ! -z "$PRNGD_PORT" ; then
19025 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19026 elif test ! -z "$PRNGD_SOCKET" ; then
19027 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19028 else
19029 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19030 RAND_HELPER_CMDHASH=yes
19031 INSTALL_SSH_PRNG_CMDS="yes"
19032 fi
19033fi
19034
19035
19036
19037# Cheap hack to ensure NEWS-OS libraries are arranged right.
19038if test ! -z "$SONY" ; then
19039 LIBS="$LIBS -liberty";
19040fi
19041
19042# Check for long long datatypes
19043{ echo "$as_me:$LINENO: checking for long long" >&5
19044echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19045if test "${ac_cv_type_long_long+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 cat >conftest.$ac_ext <<_ACEOF
19049/* confdefs.h. */
19050_ACEOF
19051cat confdefs.h >>conftest.$ac_ext
19052cat >>conftest.$ac_ext <<_ACEOF
19053/* end confdefs.h. */
19054$ac_includes_default
19055typedef long long ac__type_new_;
19056int
19057main ()
19058{
19059if ((ac__type_new_ *) 0)
19060 return 0;
19061if (sizeof (ac__type_new_))
19062 return 0;
19063 ;
19064 return 0;
19065}
19066_ACEOF
19067rm -f conftest.$ac_objext
19068if { (ac_try="$ac_compile"
19069case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19072esac
19073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_compile") 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } && {
19081 test -z "$ac_c_werror_flag" ||
19082 test ! -s conftest.err
19083 } && test -s conftest.$ac_objext; then
19084 ac_cv_type_long_long=yes
19085else
19086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 ac_cv_type_long_long=no
19090fi
19091
19092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093fi
19094{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19095echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19096if test $ac_cv_type_long_long = yes; then
19097
19098cat >>confdefs.h <<_ACEOF
19099#define HAVE_LONG_LONG 1
19100_ACEOF
19101
19102
19103fi
19104{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
19105echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
19106if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108else
19109 cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115$ac_includes_default
19116typedef unsigned long long ac__type_new_;
19117int
19118main ()
19119{
19120if ((ac__type_new_ *) 0)
19121 return 0;
19122if (sizeof (ac__type_new_))
19123 return 0;
19124 ;
19125 return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext
19129if { (ac_try="$ac_compile"
19130case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133esac
19134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_cv_type_unsigned_long_long=yes
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_cv_type_unsigned_long_long=no
19151fi
19152
19153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154fi
19155{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19156echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
19157if test $ac_cv_type_unsigned_long_long = yes; then
19158
19159cat >>confdefs.h <<_ACEOF
19160#define HAVE_UNSIGNED_LONG_LONG 1
19161_ACEOF
19162
19163
19164fi
19165{ echo "$as_me:$LINENO: checking for long double" >&5
19166echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19167if test "${ac_cv_type_long_double+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19169else
19170 cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176$ac_includes_default
19177typedef long double ac__type_new_;
19178int
19179main ()
19180{
19181if ((ac__type_new_ *) 0)
19182 return 0;
19183if (sizeof (ac__type_new_))
19184 return 0;
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext
19190if { (ac_try="$ac_compile"
19191case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_compile") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest.$ac_objext; then
19206 ac_cv_type_long_double=yes
19207else
19208 echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_type_long_double=no
19212fi
19213
19214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215fi
19216{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
19217echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
19218if test $ac_cv_type_long_double = yes; then
19219
19220cat >>confdefs.h <<_ACEOF
19221#define HAVE_LONG_DOUBLE 1
19222_ACEOF
19223
19224
19225fi
19226
19227
19228# Check datatype sizes
19229{ echo "$as_me:$LINENO: checking for char" >&5
19230echo $ECHO_N "checking for char... $ECHO_C" >&6; }
19231if test "${ac_cv_type_char+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 cat >conftest.$ac_ext <<_ACEOF
19235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
19240$ac_includes_default
19241typedef char ac__type_new_;
19242int
19243main ()
19244{
19245if ((ac__type_new_ *) 0)
19246 return 0;
19247if (sizeof (ac__type_new_))
19248 return 0;
19249 ;
19250 return 0;
19251}
19252_ACEOF
19253rm -f conftest.$ac_objext
19254if { (ac_try="$ac_compile"
19255case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest.$ac_objext; then
19270 ac_cv_type_char=yes
19271else
19272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_cv_type_char=no
19276fi
19277
19278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279fi
19280{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19281echo "${ECHO_T}$ac_cv_type_char" >&6; }
19282
19283# The cast to long int works around a bug in the HP C Compiler
19284# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19285# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19286# This bug is HP SR number 8606223364.
19287{ echo "$as_me:$LINENO: checking size of char" >&5
19288echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
19289if test "${ac_cv_sizeof_char+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291else
19292 if test "$cross_compiling" = yes; then
19293 # Depending upon the size, compute the lo and hi bounds.
19294cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300$ac_includes_default
19301 typedef char ac__type_sizeof_;
19302int
19303main ()
19304{
19305static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19306test_array [0] = 0
19307
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312rm -f conftest.$ac_objext
19313if { (ac_try="$ac_compile"
19314case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_compile") 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest.$ac_objext; then
19329 ac_lo=0 ac_mid=0
19330 while :; do
19331 cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
19337$ac_includes_default
19338 typedef char ac__type_sizeof_;
19339int
19340main ()
19341{
19342static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19343test_array [0] = 0
19344
19345 ;
19346 return 0;
19347}
19348_ACEOF
19349rm -f conftest.$ac_objext
19350if { (ac_try="$ac_compile"
19351case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354esac
19355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19357 ac_status=$?
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19366 ac_hi=$ac_mid; break
19367else
19368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_lo=`expr $ac_mid + 1`
19372 if test $ac_lo -le $ac_mid; then
19373 ac_lo= ac_hi=
19374 break
19375 fi
19376 ac_mid=`expr 2 '*' $ac_mid + 1`
19377fi
19378
19379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380 done
19381else
19382 echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385 cat >conftest.$ac_ext <<_ACEOF
19386/* confdefs.h. */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
19390/* end confdefs.h. */
19391$ac_includes_default
19392 typedef char ac__type_sizeof_;
19393int
19394main ()
19395{
19396static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19397test_array [0] = 0
19398
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext
19404if { (ac_try="$ac_compile"
19405case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408esac
19409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_hi=-1 ac_mid=-1
19421 while :; do
19422 cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428$ac_includes_default
19429 typedef char ac__type_sizeof_;
19430int
19431main ()
19432{
19433static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19434test_array [0] = 0
19435
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (ac_try="$ac_compile"
19442case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest.$ac_objext; then
19457 ac_lo=$ac_mid; break
19458else
19459 echo "$as_me: failed program was:" >&5
19460sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_hi=`expr '(' $ac_mid ')' - 1`
19463 if test $ac_mid -le $ac_hi; then
19464 ac_lo= ac_hi=
19465 break
19466 fi
19467 ac_mid=`expr 2 '*' $ac_mid`
19468fi
19469
19470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471 done
19472else
19473 echo "$as_me: failed program was:" >&5
19474sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 ac_lo= ac_hi=
19477fi
19478
19479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480fi
19481
19482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483# Binary search between lo and hi bounds.
19484while test "x$ac_lo" != "x$ac_hi"; do
19485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19486 cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
19491/* end confdefs.h. */
19492$ac_includes_default
19493 typedef char ac__type_sizeof_;
19494int
19495main ()
19496{
19497static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19498test_array [0] = 0
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (ac_try="$ac_compile"
19506case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && {
19518 test -z "$ac_c_werror_flag" ||
19519 test ! -s conftest.err
19520 } && test -s conftest.$ac_objext; then
19521 ac_hi=$ac_mid
19522else
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_lo=`expr '(' $ac_mid ')' + 1`
19527fi
19528
19529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530done
19531case $ac_lo in
19532?*) ac_cv_sizeof_char=$ac_lo;;
19533'') if test "$ac_cv_type_char" = yes; then
19534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19535See \`config.log' for more details." >&5
19536echo "$as_me: error: cannot compute sizeof (char)
19537See \`config.log' for more details." >&2;}
19538 { (exit 77); exit 77; }; }
19539 else
19540 ac_cv_sizeof_char=0
19541 fi ;;
19542esac
19543else
19544 cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
19550$ac_includes_default
19551 typedef char ac__type_sizeof_;
19552static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19553static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19554#include <stdio.h>
19555#include <stdlib.h>
19556int
19557main ()
19558{
19559
19560 FILE *f = fopen ("conftest.val", "w");
19561 if (! f)
19562 return 1;
19563 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19564 {
19565 long int i = longval ();
19566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19567 return 1;
19568 fprintf (f, "%ld\n", i);
19569 }
19570 else
19571 {
19572 unsigned long int i = ulongval ();
19573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19574 return 1;
19575 fprintf (f, "%lu\n", i);
19576 }
19577 return ferror (f) || fclose (f) != 0;
19578
19579 ;
19580 return 0;
19581}
19582_ACEOF
19583rm -f conftest$ac_exeext
19584if { (ac_try="$ac_link"
19585case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597esac
19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_cv_sizeof_char=`cat conftest.val`
19604else
19605 echo "$as_me: program exited with status $ac_status" >&5
19606echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609( exit $ac_status )
19610if test "$ac_cv_type_char" = yes; then
19611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19612See \`config.log' for more details." >&5
19613echo "$as_me: error: cannot compute sizeof (char)
19614See \`config.log' for more details." >&2;}
19615 { (exit 77); exit 77; }; }
19616 else
19617 ac_cv_sizeof_char=0
19618 fi
19619fi
19620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19621fi
19622rm -f conftest.val
19623fi
19624{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19625echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
19626
19627
19628
19629cat >>confdefs.h <<_ACEOF
19630#define SIZEOF_CHAR $ac_cv_sizeof_char
19631_ACEOF
19632
19633
19634{ echo "$as_me:$LINENO: checking for short int" >&5
19635echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
19636if test "${ac_cv_type_short_int+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19638else
19639 cat >conftest.$ac_ext <<_ACEOF
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645$ac_includes_default
19646typedef short int ac__type_new_;
19647int
19648main ()
19649{
19650if ((ac__type_new_ *) 0)
19651 return 0;
19652if (sizeof (ac__type_new_))
19653 return 0;
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658rm -f conftest.$ac_objext
19659if { (ac_try="$ac_compile"
19660case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663esac
19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest.$ac_objext; then
19675 ac_cv_type_short_int=yes
19676else
19677 echo "$as_me: failed program was:" >&5
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ac_cv_type_short_int=no
19681fi
19682
19683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684fi
19685{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19686echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19687
19688# The cast to long int works around a bug in the HP C Compiler
19689# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19690# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19691# This bug is HP SR number 8606223364.
19692{ echo "$as_me:$LINENO: checking size of short int" >&5
19693echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19694if test "${ac_cv_sizeof_short_int+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696else
19697 if test "$cross_compiling" = yes; then
19698 # Depending upon the size, compute the lo and hi bounds.
19699cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
19705$ac_includes_default
19706 typedef short int ac__type_sizeof_;
19707int
19708main ()
19709{
19710static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19711test_array [0] = 0
19712
19713 ;
19714 return 0;
19715}
19716_ACEOF
19717rm -f conftest.$ac_objext
19718if { (ac_try="$ac_compile"
19719case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_compile") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19734 ac_lo=0 ac_mid=0
19735 while :; do
19736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742$ac_includes_default
19743 typedef short int ac__type_sizeof_;
19744int
19745main ()
19746{
19747static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19748test_array [0] = 0
19749
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (ac_try="$ac_compile"
19756case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_compile") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest.$ac_objext; then
19771 ac_hi=$ac_mid; break
19772else
19773 echo "$as_me: failed program was:" >&5
19774sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 ac_lo=`expr $ac_mid + 1`
19777 if test $ac_lo -le $ac_mid; then
19778 ac_lo= ac_hi=
19779 break
19780 fi
19781 ac_mid=`expr 2 '*' $ac_mid + 1`
19782fi
19783
19784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 done
19786else
19787 echo "$as_me: failed program was:" >&5
19788sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796$ac_includes_default
19797 typedef short int ac__type_sizeof_;
19798int
19799main ()
19800{
19801static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19802test_array [0] = 0
19803
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (ac_try="$ac_compile"
19810case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_compile") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest.$ac_objext; then
19825 ac_hi=-1 ac_mid=-1
19826 while :; do
19827 cat >conftest.$ac_ext <<_ACEOF
19828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
19833$ac_includes_default
19834 typedef short int ac__type_sizeof_;
19835int
19836main ()
19837{
19838static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19839test_array [0] = 0
19840
19841 ;
19842 return 0;
19843}
19844_ACEOF
19845rm -f conftest.$ac_objext
19846if { (ac_try="$ac_compile"
19847case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest.$ac_objext; then
19862 ac_lo=$ac_mid; break
19863else
19864 echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_hi=`expr '(' $ac_mid ')' - 1`
19868 if test $ac_mid -le $ac_hi; then
19869 ac_lo= ac_hi=
19870 break
19871 fi
19872 ac_mid=`expr 2 '*' $ac_mid`
19873fi
19874
19875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 done
19877else
19878 echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ac_lo= ac_hi=
19882fi
19883
19884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885fi
19886
19887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888# Binary search between lo and hi bounds.
19889while test "x$ac_lo" != "x$ac_hi"; do
19890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19891 cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
19897$ac_includes_default
19898 typedef short int ac__type_sizeof_;
19899int
19900main ()
19901{
19902static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19903test_array [0] = 0
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest.$ac_objext
19910if { (ac_try="$ac_compile"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_compile") 2>conftest.er1
19917 ac_status=$?
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && {
19923 test -z "$ac_c_werror_flag" ||
19924 test ! -s conftest.err
19925 } && test -s conftest.$ac_objext; then
19926 ac_hi=$ac_mid
19927else
19928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931 ac_lo=`expr '(' $ac_mid ')' + 1`
19932fi
19933
19934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935done
19936case $ac_lo in
19937?*) ac_cv_sizeof_short_int=$ac_lo;;
19938'') if test "$ac_cv_type_short_int" = yes; then
19939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
19940See \`config.log' for more details." >&5
19941echo "$as_me: error: cannot compute sizeof (short int)
19942See \`config.log' for more details." >&2;}
19943 { (exit 77); exit 77; }; }
19944 else
19945 ac_cv_sizeof_short_int=0
19946 fi ;;
19947esac
19948else
19949 cat >conftest.$ac_ext <<_ACEOF
19950/* confdefs.h. */
19951_ACEOF
19952cat confdefs.h >>conftest.$ac_ext
19953cat >>conftest.$ac_ext <<_ACEOF
19954/* end confdefs.h. */
19955$ac_includes_default
19956 typedef short int ac__type_sizeof_;
19957static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19958static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19959#include <stdio.h>
19960#include <stdlib.h>
19961int
19962main ()
19963{
19964
19965 FILE *f = fopen ("conftest.val", "w");
19966 if (! f)
19967 return 1;
19968 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19969 {
19970 long int i = longval ();
19971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19972 return 1;
19973 fprintf (f, "%ld\n", i);
19974 }
19975 else
19976 {
19977 unsigned long int i = ulongval ();
19978 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19979 return 1;
19980 fprintf (f, "%lu\n", i);
19981 }
19982 return ferror (f) || fclose (f) != 0;
19983
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest$ac_exeext
19989if { (ac_try="$ac_link"
19990case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993esac
19994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_link") 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19999 { (case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002esac
20003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_try") 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 ac_cv_sizeof_short_int=`cat conftest.val`
20009else
20010 echo "$as_me: program exited with status $ac_status" >&5
20011echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014( exit $ac_status )
20015if test "$ac_cv_type_short_int" = yes; then
20016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20017See \`config.log' for more details." >&5
20018echo "$as_me: error: cannot compute sizeof (short int)
20019See \`config.log' for more details." >&2;}
20020 { (exit 77); exit 77; }; }
20021 else
20022 ac_cv_sizeof_short_int=0
20023 fi
20024fi
20025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20026fi
20027rm -f conftest.val
20028fi
20029{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
20030echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
20031
20032
20033
20034cat >>confdefs.h <<_ACEOF
20035#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
20036_ACEOF
20037
20038
20039{ echo "$as_me:$LINENO: checking for int" >&5
20040echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20041if test "${ac_cv_type_int+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
20045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
20050$ac_includes_default
20051typedef int ac__type_new_;
20052int
20053main ()
20054{
20055if ((ac__type_new_ *) 0)
20056 return 0;
20057if (sizeof (ac__type_new_))
20058 return 0;
20059 ;
20060 return 0;
20061}
20062_ACEOF
20063rm -f conftest.$ac_objext
20064if { (ac_try="$ac_compile"
20065case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.$ac_objext; then
20080 ac_cv_type_int=yes
20081else
20082 echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_cv_type_int=no
20086fi
20087
20088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089fi
20090{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20091echo "${ECHO_T}$ac_cv_type_int" >&6; }
20092
20093# The cast to long int works around a bug in the HP C Compiler
20094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20096# This bug is HP SR number 8606223364.
20097{ echo "$as_me:$LINENO: checking size of int" >&5
20098echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20099if test "${ac_cv_sizeof_int+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101else
20102 if test "$cross_compiling" = yes; then
20103 # Depending upon the size, compute the lo and hi bounds.
20104cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h. */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h. */
20110$ac_includes_default
20111 typedef int ac__type_sizeof_;
20112int
20113main ()
20114{
20115static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20116test_array [0] = 0
20117
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext
20123if { (ac_try="$ac_compile"
20124case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20127esac
20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 ac_lo=0 ac_mid=0
20140 while :; do
20141 cat >conftest.$ac_ext <<_ACEOF
20142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
20147$ac_includes_default
20148 typedef int ac__type_sizeof_;
20149int
20150main ()
20151{
20152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20153test_array [0] = 0
20154
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (ac_try="$ac_compile"
20161case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164esac
20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest.$ac_objext; then
20176 ac_hi=$ac_mid; break
20177else
20178 echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181 ac_lo=`expr $ac_mid + 1`
20182 if test $ac_lo -le $ac_mid; then
20183 ac_lo= ac_hi=
20184 break
20185 fi
20186 ac_mid=`expr 2 '*' $ac_mid + 1`
20187fi
20188
20189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 done
20191else
20192 echo "$as_me: failed program was:" >&5
20193sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 cat >conftest.$ac_ext <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
20201$ac_includes_default
20202 typedef int ac__type_sizeof_;
20203int
20204main ()
20205{
20206static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20207test_array [0] = 0
20208
20209 ;
20210 return 0;
20211}
20212_ACEOF
20213rm -f conftest.$ac_objext
20214if { (ac_try="$ac_compile"
20215case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218esac
20219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_compile") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest.$ac_objext; then
20230 ac_hi=-1 ac_mid=-1
20231 while :; do
20232 cat >conftest.$ac_ext <<_ACEOF
20233/* confdefs.h. */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
20237/* end confdefs.h. */
20238$ac_includes_default
20239 typedef int ac__type_sizeof_;
20240int
20241main ()
20242{
20243static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20244test_array [0] = 0
20245
20246 ;
20247 return 0;
20248}
20249_ACEOF
20250rm -f conftest.$ac_objext
20251if { (ac_try="$ac_compile"
20252case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255esac
20256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_lo=$ac_mid; break
20268else
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ac_hi=`expr '(' $ac_mid ')' - 1`
20273 if test $ac_mid -le $ac_hi; then
20274 ac_lo= ac_hi=
20275 break
20276 fi
20277 ac_mid=`expr 2 '*' $ac_mid`
20278fi
20279
20280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 done
20282else
20283 echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286 ac_lo= ac_hi=
20287fi
20288
20289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20290fi
20291
20292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20293# Binary search between lo and hi bounds.
20294while test "x$ac_lo" != "x$ac_hi"; do
20295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20296 cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h. */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h. */
20302$ac_includes_default
20303 typedef int ac__type_sizeof_;
20304int
20305main ()
20306{
20307static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20308test_array [0] = 0
20309
20310 ;
20311 return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
20315if { (ac_try="$ac_compile"
20316case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319esac
20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_compile") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest.$ac_objext; then
20331 ac_hi=$ac_mid
20332else
20333 echo "$as_me: failed program was:" >&5
20334sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 ac_lo=`expr '(' $ac_mid ')' + 1`
20337fi
20338
20339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340done
20341case $ac_lo in
20342?*) ac_cv_sizeof_int=$ac_lo;;
20343'') if test "$ac_cv_type_int" = yes; then
20344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20345See \`config.log' for more details." >&5
20346echo "$as_me: error: cannot compute sizeof (int)
20347See \`config.log' for more details." >&2;}
20348 { (exit 77); exit 77; }; }
20349 else
20350 ac_cv_sizeof_int=0
20351 fi ;;
20352esac
20353else
20354 cat >conftest.$ac_ext <<_ACEOF
20355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
20360$ac_includes_default
20361 typedef int ac__type_sizeof_;
20362static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20363static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20364#include <stdio.h>
20365#include <stdlib.h>
20366int
20367main ()
20368{
20369
20370 FILE *f = fopen ("conftest.val", "w");
20371 if (! f)
20372 return 1;
20373 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20374 {
20375 long int i = longval ();
20376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20377 return 1;
20378 fprintf (f, "%ld\n", i);
20379 }
20380 else
20381 {
20382 unsigned long int i = ulongval ();
20383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20384 return 1;
20385 fprintf (f, "%lu\n", i);
20386 }
20387 return ferror (f) || fclose (f) != 0;
20388
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest$ac_exeext
20394if { (ac_try="$ac_link"
20395case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398esac
20399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_link") 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407esac
20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_try") 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_sizeof_int=`cat conftest.val`
20414else
20415 echo "$as_me: program exited with status $ac_status" >&5
20416echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419( exit $ac_status )
20420if test "$ac_cv_type_int" = yes; then
20421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20422See \`config.log' for more details." >&5
20423echo "$as_me: error: cannot compute sizeof (int)
20424See \`config.log' for more details." >&2;}
20425 { (exit 77); exit 77; }; }
20426 else
20427 ac_cv_sizeof_int=0
20428 fi
20429fi
20430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20431fi
20432rm -f conftest.val
20433fi
20434{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20435echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20436
20437
20438
20439cat >>confdefs.h <<_ACEOF
20440#define SIZEOF_INT $ac_cv_sizeof_int
20441_ACEOF
20442
20443
20444{ echo "$as_me:$LINENO: checking for long int" >&5
20445echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
20446if test "${ac_cv_type_long_int+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
20449 cat >conftest.$ac_ext <<_ACEOF
20450/* confdefs.h. */
20451_ACEOF
20452cat confdefs.h >>conftest.$ac_ext
20453cat >>conftest.$ac_ext <<_ACEOF
20454/* end confdefs.h. */
20455$ac_includes_default
20456typedef long int ac__type_new_;
20457int
20458main ()
20459{
20460if ((ac__type_new_ *) 0)
20461 return 0;
20462if (sizeof (ac__type_new_))
20463 return 0;
20464 ;
20465 return 0;
20466}
20467_ACEOF
20468rm -f conftest.$ac_objext
20469if { (ac_try="$ac_compile"
20470case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_compile") 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && {
20482 test -z "$ac_c_werror_flag" ||
20483 test ! -s conftest.err
20484 } && test -s conftest.$ac_objext; then
20485 ac_cv_type_long_int=yes
20486else
20487 echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_cv_type_long_int=no
20491fi
20492
20493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494fi
20495{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
20496echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
20497
20498# The cast to long int works around a bug in the HP C Compiler
20499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20501# This bug is HP SR number 8606223364.
20502{ echo "$as_me:$LINENO: checking size of long int" >&5
20503echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
20504if test "${ac_cv_sizeof_long_int+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506else
20507 if test "$cross_compiling" = yes; then
20508 # Depending upon the size, compute the lo and hi bounds.
20509cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
20515$ac_includes_default
20516 typedef long int ac__type_sizeof_;
20517int
20518main ()
20519{
20520static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20521test_array [0] = 0
20522
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (ac_try="$ac_compile"
20529case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532esac
20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 ac_lo=0 ac_mid=0
20545 while :; do
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552$ac_includes_default
20553 typedef long int ac__type_sizeof_;
20554int
20555main ()
20556{
20557static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20558test_array [0] = 0
20559
20560 ;
20561 return 0;
20562}
20563_ACEOF
20564rm -f conftest.$ac_objext
20565if { (ac_try="$ac_compile"
20566case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 ac_hi=$ac_mid; break
20582else
20583 echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586 ac_lo=`expr $ac_mid + 1`
20587 if test $ac_lo -le $ac_mid; then
20588 ac_lo= ac_hi=
20589 break
20590 fi
20591 ac_mid=`expr 2 '*' $ac_mid + 1`
20592fi
20593
20594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 done
20596else
20597 echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606$ac_includes_default
20607 typedef long int ac__type_sizeof_;
20608int
20609main ()
20610{
20611static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20612test_array [0] = 0
20613
20614 ;
20615 return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (ac_try="$ac_compile"
20620case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20635 ac_hi=-1 ac_mid=-1
20636 while :; do
20637 cat >conftest.$ac_ext <<_ACEOF
20638/* confdefs.h. */
20639_ACEOF
20640cat confdefs.h >>conftest.$ac_ext
20641cat >>conftest.$ac_ext <<_ACEOF
20642/* end confdefs.h. */
20643$ac_includes_default
20644 typedef long int ac__type_sizeof_;
20645int
20646main ()
20647{
20648static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20649test_array [0] = 0
20650
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655rm -f conftest.$ac_objext
20656if { (ac_try="$ac_compile"
20657case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660esac
20661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_compile") 2>conftest.er1
20663 ac_status=$?
20664 grep -v '^ *+' conftest.er1 >conftest.err
20665 rm -f conftest.er1
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && {
20669 test -z "$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20671 } && test -s conftest.$ac_objext; then
20672 ac_lo=$ac_mid; break
20673else
20674 echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_hi=`expr '(' $ac_mid ')' - 1`
20678 if test $ac_mid -le $ac_hi; then
20679 ac_lo= ac_hi=
20680 break
20681 fi
20682 ac_mid=`expr 2 '*' $ac_mid`
20683fi
20684
20685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 done
20687else
20688 echo "$as_me: failed program was:" >&5
20689sed 's/^/| /' conftest.$ac_ext >&5
20690
20691 ac_lo= ac_hi=
20692fi
20693
20694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695fi
20696
20697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698# Binary search between lo and hi bounds.
20699while test "x$ac_lo" != "x$ac_hi"; do
20700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20701 cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707$ac_includes_default
20708 typedef long int ac__type_sizeof_;
20709int
20710main ()
20711{
20712static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20713test_array [0] = 0
20714
20715 ;
20716 return 0;
20717}
20718_ACEOF
20719rm -f conftest.$ac_objext
20720if { (ac_try="$ac_compile"
20721case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.$ac_objext; then
20736 ac_hi=$ac_mid
20737else
20738 echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 ac_lo=`expr '(' $ac_mid ')' + 1`
20742fi
20743
20744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745done
20746case $ac_lo in
20747?*) ac_cv_sizeof_long_int=$ac_lo;;
20748'') if test "$ac_cv_type_long_int" = yes; then
20749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20750See \`config.log' for more details." >&5
20751echo "$as_me: error: cannot compute sizeof (long int)
20752See \`config.log' for more details." >&2;}
20753 { (exit 77); exit 77; }; }
20754 else
20755 ac_cv_sizeof_long_int=0
20756 fi ;;
20757esac
20758else
20759 cat >conftest.$ac_ext <<_ACEOF
20760/* confdefs.h. */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
20764/* end confdefs.h. */
20765$ac_includes_default
20766 typedef long int ac__type_sizeof_;
20767static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20768static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20769#include <stdio.h>
20770#include <stdlib.h>
20771int
20772main ()
20773{
20774
20775 FILE *f = fopen ("conftest.val", "w");
20776 if (! f)
20777 return 1;
20778 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20779 {
20780 long int i = longval ();
20781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20782 return 1;
20783 fprintf (f, "%ld\n", i);
20784 }
20785 else
20786 {
20787 unsigned long int i = ulongval ();
20788 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20789 return 1;
20790 fprintf (f, "%lu\n", i);
20791 }
20792 return ferror (f) || fclose (f) != 0;
20793
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest$ac_exeext
20799if { (ac_try="$ac_link"
20800case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_link") 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812esac
20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818 ac_cv_sizeof_long_int=`cat conftest.val`
20819else
20820 echo "$as_me: program exited with status $ac_status" >&5
20821echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824( exit $ac_status )
20825if test "$ac_cv_type_long_int" = yes; then
20826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20827See \`config.log' for more details." >&5
20828echo "$as_me: error: cannot compute sizeof (long int)
20829See \`config.log' for more details." >&2;}
20830 { (exit 77); exit 77; }; }
20831 else
20832 ac_cv_sizeof_long_int=0
20833 fi
20834fi
20835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836fi
20837rm -f conftest.val
20838fi
20839{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20840echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20841
20842
20843
20844cat >>confdefs.h <<_ACEOF
20845#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20846_ACEOF
20847
20848
20849{ echo "$as_me:$LINENO: checking for long long int" >&5
20850echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20851if test "${ac_cv_type_long_long_int+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 cat >conftest.$ac_ext <<_ACEOF
20855/* confdefs.h. */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h. */
20860$ac_includes_default
20861typedef long long int ac__type_new_;
20862int
20863main ()
20864{
20865if ((ac__type_new_ *) 0)
20866 return 0;
20867if (sizeof (ac__type_new_))
20868 return 0;
20869 ;
20870 return 0;
20871}
20872_ACEOF
20873rm -f conftest.$ac_objext
20874if { (ac_try="$ac_compile"
20875case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878esac
20879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_cv_type_long_long_int=yes
20891else
20892 echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_cv_type_long_long_int=no
20896fi
20897
20898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899fi
20900{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20901echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
20902
20903# The cast to long int works around a bug in the HP C Compiler
20904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20906# This bug is HP SR number 8606223364.
20907{ echo "$as_me:$LINENO: checking size of long long int" >&5
20908echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
20909if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 if test "$cross_compiling" = yes; then
20913 # Depending upon the size, compute the lo and hi bounds.
20914cat >conftest.$ac_ext <<_ACEOF
20915/* confdefs.h. */
20916_ACEOF
20917cat confdefs.h >>conftest.$ac_ext
20918cat >>conftest.$ac_ext <<_ACEOF
20919/* end confdefs.h. */
20920$ac_includes_default
20921 typedef long long int ac__type_sizeof_;
20922int
20923main ()
20924{
20925static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20926test_array [0] = 0
20927
20928 ;
20929 return 0;
20930}
20931_ACEOF
20932rm -f conftest.$ac_objext
20933if { (ac_try="$ac_compile"
20934case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20949 ac_lo=0 ac_mid=0
20950 while :; do
20951 cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h. */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h. */
20957$ac_includes_default
20958 typedef long long int ac__type_sizeof_;
20959int
20960main ()
20961{
20962static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20963test_array [0] = 0
20964
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest.$ac_objext
20970if { (ac_try="$ac_compile"
20971case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20974esac
20975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20986 ac_hi=$ac_mid; break
20987else
20988 echo "$as_me: failed program was:" >&5
20989sed 's/^/| /' conftest.$ac_ext >&5
20990
20991 ac_lo=`expr $ac_mid + 1`
20992 if test $ac_lo -le $ac_mid; then
20993 ac_lo= ac_hi=
20994 break
20995 fi
20996 ac_mid=`expr 2 '*' $ac_mid + 1`
20997fi
20998
20999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 done
21001else
21002 echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011$ac_includes_default
21012 typedef long long int ac__type_sizeof_;
21013int
21014main ()
21015{
21016static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21017test_array [0] = 0
21018
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext
21024if { (ac_try="$ac_compile"
21025case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028esac
21029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21040 ac_hi=-1 ac_mid=-1
21041 while :; do
21042 cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h. */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h. */
21048$ac_includes_default
21049 typedef long long int ac__type_sizeof_;
21050int
21051main ()
21052{
21053static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21054test_array [0] = 0
21055
21056 ;
21057 return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext
21061if { (ac_try="$ac_compile"
21062case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065esac
21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 ac_lo=$ac_mid; break
21078else
21079 echo "$as_me: failed program was:" >&5
21080sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_hi=`expr '(' $ac_mid ')' - 1`
21083 if test $ac_mid -le $ac_hi; then
21084 ac_lo= ac_hi=
21085 break
21086 fi
21087 ac_mid=`expr 2 '*' $ac_mid`
21088fi
21089
21090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 done
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 ac_lo= ac_hi=
21097fi
21098
21099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100fi
21101
21102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103# Binary search between lo and hi bounds.
21104while test "x$ac_lo" != "x$ac_hi"; do
21105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21106 cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h. */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h. */
21112$ac_includes_default
21113 typedef long long int ac__type_sizeof_;
21114int
21115main ()
21116{
21117static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21118test_array [0] = 0
21119
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124rm -f conftest.$ac_objext
21125if { (ac_try="$ac_compile"
21126case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129esac
21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest.$ac_objext; then
21141 ac_hi=$ac_mid
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 ac_lo=`expr '(' $ac_mid ')' + 1`
21147fi
21148
21149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150done
21151case $ac_lo in
21152?*) ac_cv_sizeof_long_long_int=$ac_lo;;
21153'') if test "$ac_cv_type_long_long_int" = yes; then
21154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21155See \`config.log' for more details." >&5
21156echo "$as_me: error: cannot compute sizeof (long long int)
21157See \`config.log' for more details." >&2;}
21158 { (exit 77); exit 77; }; }
21159 else
21160 ac_cv_sizeof_long_long_int=0
21161 fi ;;
21162esac
21163else
21164 cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h. */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h. */
21170$ac_includes_default
21171 typedef long long int ac__type_sizeof_;
21172static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21173static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21174#include <stdio.h>
21175#include <stdlib.h>
21176int
21177main ()
21178{
21179
21180 FILE *f = fopen ("conftest.val", "w");
21181 if (! f)
21182 return 1;
21183 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21184 {
21185 long int i = longval ();
21186 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21187 return 1;
21188 fprintf (f, "%ld\n", i);
21189 }
21190 else
21191 {
21192 unsigned long int i = ulongval ();
21193 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21194 return 1;
21195 fprintf (f, "%lu\n", i);
21196 }
21197 return ferror (f) || fclose (f) != 0;
21198
21199 ;
21200 return 0;
21201}
21202_ACEOF
21203rm -f conftest$ac_exeext
21204if { (ac_try="$ac_link"
21205case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208esac
21209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_link") 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21214 { (case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21217esac
21218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_try") 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_sizeof_long_long_int=`cat conftest.val`
21224else
21225 echo "$as_me: program exited with status $ac_status" >&5
21226echo "$as_me: failed program was:" >&5
21227sed 's/^/| /' conftest.$ac_ext >&5
21228
21229( exit $ac_status )
21230if test "$ac_cv_type_long_long_int" = yes; then
21231 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21232See \`config.log' for more details." >&5
21233echo "$as_me: error: cannot compute sizeof (long long int)
21234See \`config.log' for more details." >&2;}
21235 { (exit 77); exit 77; }; }
21236 else
21237 ac_cv_sizeof_long_long_int=0
21238 fi
21239fi
21240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21241fi
21242rm -f conftest.val
21243fi
21244{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
21245echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
21246
21247
21248
21249cat >>confdefs.h <<_ACEOF
21250#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
21251_ACEOF
21252
21253
21254
21255# Sanity check long long for some platforms (AIX)
21256if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
21257 ac_cv_sizeof_long_long_int=0
21258fi
21259
21260# compute LLONG_MIN and LLONG_MAX if we don't know them.
21261if test -z "$have_llong_max"; then
21262 { echo "$as_me:$LINENO: checking for max value of long long" >&5
21263echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
21264 if test "$cross_compiling" = yes; then
21265
21266 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21267echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21268
21269
21270else
21271 cat >conftest.$ac_ext <<_ACEOF
21272/* confdefs.h. */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h. */
21277
21278#include <stdio.h>
21279/* Why is this so damn hard? */
21280#ifdef __GNUC__
21281# undef __GNUC__
21282#endif
21283#define __USE_ISOC99
21284#include <limits.h>
21285#define DATA "conftest.llminmax"
21286#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
21287
21288/*
21289 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
21290 * we do this the hard way.
21291 */
21292static int
21293fprint_ll(FILE *f, long long n)
21294{
21295 unsigned int i;
21296 int l[sizeof(long long) * 8];
21297
21298 if (n < 0)
21299 if (fprintf(f, "-") < 0)
21300 return -1;
21301 for (i = 0; n != 0; i++) {
21302 l[i] = my_abs(n % 10);
21303 n /= 10;
21304 }
21305 do {
21306 if (fprintf(f, "%d", l[--i]) < 0)
21307 return -1;
21308 } while (i != 0);
21309 if (fprintf(f, " ") < 0)
21310 return -1;
21311 return 0;
21312}
21313
21314int main(void) {
21315 FILE *f;
21316 long long i, llmin, llmax = 0;
21317
21318 if((f = fopen(DATA,"w")) == NULL)
21319 exit(1);
21320
21321#if defined(LLONG_MIN) && defined(LLONG_MAX)
21322 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
21323 llmin = LLONG_MIN;
21324 llmax = LLONG_MAX;
21325#else
21326 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
21327 /* This will work on one's complement and two's complement */
21328 for (i = 1; i > llmax; i <<= 1, i++)
21329 llmax = i;
21330 llmin = llmax + 1LL; /* wrap */
21331#endif
21332
21333 /* Sanity check */
21334 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
21335 || llmax - 1 > llmax || llmin == llmax || llmin == 0
21336 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
21337 fprintf(f, "unknown unknown\n");
21338 exit(2);
21339 }
21340
21341 if (fprint_ll(f, llmin) < 0)
21342 exit(3);
21343 if (fprint_ll(f, llmax) < 0)
21344 exit(4);
21345 if (fclose(f) < 0)
21346 exit(5);
21347 exit(0);
21348}
21349
21350_ACEOF
21351rm -f conftest$ac_exeext
21352if { (ac_try="$ac_link"
21353case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356esac
21357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21362 { (case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21365esac
21366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_try") 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371
21372 llong_min=`$AWK '{print $1}' conftest.llminmax`
21373 llong_max=`$AWK '{print $2}' conftest.llminmax`
21374
21375 { echo "$as_me:$LINENO: result: $llong_max" >&5
21376echo "${ECHO_T}$llong_max" >&6; }
21377
21378cat >>confdefs.h <<_ACEOF
21379#define LLONG_MAX ${llong_max}LL
21380_ACEOF
21381
21382 { echo "$as_me:$LINENO: checking for min value of long long" >&5
21383echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
21384 { echo "$as_me:$LINENO: result: $llong_min" >&5
21385echo "${ECHO_T}$llong_min" >&6; }
21386
21387cat >>confdefs.h <<_ACEOF
21388#define LLONG_MIN ${llong_min}LL
21389_ACEOF
21390
21391
21392else
21393 echo "$as_me: program exited with status $ac_status" >&5
21394echo "$as_me: failed program was:" >&5
21395sed 's/^/| /' conftest.$ac_ext >&5
21396
21397( exit $ac_status )
21398
21399 { echo "$as_me:$LINENO: result: not found" >&5
21400echo "${ECHO_T}not found" >&6; }
21401
21402fi
21403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21404fi
21405
21406
21407fi
21408
21409
21410# More checks for data types
21411{ echo "$as_me:$LINENO: checking for u_int type" >&5
21412echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
21413if test "${ac_cv_have_u_int+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415else
21416
21417 cat >conftest.$ac_ext <<_ACEOF
21418/* confdefs.h. */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h. */
21423 #include <sys/types.h>
21424int
21425main ()
21426{
21427 u_int a; a = 1;
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (ac_try="$ac_compile"
21434case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437esac
21438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_compile") 2>conftest.er1
21440 ac_status=$?
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest.$ac_objext; then
21449 ac_cv_have_u_int="yes"
21450else
21451 echo "$as_me: failed program was:" >&5
21452sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 ac_cv_have_u_int="no"
21455
21456fi
21457
21458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21459
21460fi
21461{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
21462echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
21463if test "x$ac_cv_have_u_int" = "xyes" ; then
21464
21465cat >>confdefs.h <<\_ACEOF
21466#define HAVE_U_INT 1
21467_ACEOF
21468
21469 have_u_int=1
21470fi
21471
21472{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
21473echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
21474if test "${ac_cv_have_intxx_t+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476else
21477
21478 cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484 #include <sys/types.h>
21485int
21486main ()
21487{
21488 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21489 ;
21490 return 0;
21491}
21492_ACEOF
21493rm -f conftest.$ac_objext
21494if { (ac_try="$ac_compile"
21495case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498esac
21499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_compile") 2>conftest.er1
21501 ac_status=$?
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest.$ac_objext; then
21510 ac_cv_have_intxx_t="yes"
21511else
21512 echo "$as_me: failed program was:" >&5
21513sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 ac_cv_have_intxx_t="no"
21516
21517fi
21518
21519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520
21521fi
21522{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
21523echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
21524if test "x$ac_cv_have_intxx_t" = "xyes" ; then
21525
21526cat >>confdefs.h <<\_ACEOF
21527#define HAVE_INTXX_T 1
21528_ACEOF
21529
21530 have_intxx_t=1
21531fi
21532
21533if (test -z "$have_intxx_t" && \
21534 test "x$ac_cv_header_stdint_h" = "xyes")
21535then
21536 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
21537echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
21544 #include <stdint.h>
21545int
21546main ()
21547{
21548 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21549 ;
21550 return 0;
21551}
21552_ACEOF
21553rm -f conftest.$ac_objext
21554if { (ac_try="$ac_compile"
21555case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558esac
21559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_compile") 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest.$ac_objext; then
21570
21571 cat >>confdefs.h <<\_ACEOF
21572#define HAVE_INTXX_T 1
21573_ACEOF
21574
21575 { echo "$as_me:$LINENO: result: yes" >&5
21576echo "${ECHO_T}yes" >&6; }
21577
21578else
21579 echo "$as_me: failed program was:" >&5
21580sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 { echo "$as_me:$LINENO: result: no" >&5
21583echo "${ECHO_T}no" >&6; }
21584
21585fi
21586
21587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588fi
21589
21590{ echo "$as_me:$LINENO: checking for int64_t type" >&5
21591echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
21592if test "${ac_cv_have_int64_t+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595
21596 cat >conftest.$ac_ext <<_ACEOF
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
21602
21603#include <sys/types.h>
21604#ifdef HAVE_STDINT_H
21605# include <stdint.h>
21606#endif
21607#include <sys/socket.h>
21608#ifdef HAVE_SYS_BITYPES_H
21609# include <sys/bitypes.h>
21610#endif
21611
21612int
21613main ()
21614{
21615 int64_t a; a = 1;
21616 ;
21617 return 0;
21618}
21619_ACEOF
21620rm -f conftest.$ac_objext
21621if { (ac_try="$ac_compile"
21622case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625esac
21626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_compile") 2>conftest.er1
21628 ac_status=$?
21629 grep -v '^ *+' conftest.er1 >conftest.err
21630 rm -f conftest.er1
21631 cat conftest.err >&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); } && {
21634 test -z "$ac_c_werror_flag" ||
21635 test ! -s conftest.err
21636 } && test -s conftest.$ac_objext; then
21637 ac_cv_have_int64_t="yes"
21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 ac_cv_have_int64_t="no"
21643
21644fi
21645
21646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647
21648fi
21649{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
21650echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
21651if test "x$ac_cv_have_int64_t" = "xyes" ; then
21652
21653cat >>confdefs.h <<\_ACEOF
21654#define HAVE_INT64_T 1
21655_ACEOF
21656
21657fi
21658
21659{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
21660echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
21661if test "${ac_cv_have_u_intxx_t+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663else
21664
21665 cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
21671 #include <sys/types.h>
21672int
21673main ()
21674{
21675 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (ac_try="$ac_compile"
21682case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685esac
21686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_compile") 2>conftest.er1
21688 ac_status=$?
21689 grep -v '^ *+' conftest.er1 >conftest.err
21690 rm -f conftest.er1
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest.$ac_objext; then
21697 ac_cv_have_u_intxx_t="yes"
21698else
21699 echo "$as_me: failed program was:" >&5
21700sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ac_cv_have_u_intxx_t="no"
21703
21704fi
21705
21706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707
21708fi
21709{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21710echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21711if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21712
21713cat >>confdefs.h <<\_ACEOF
21714#define HAVE_U_INTXX_T 1
21715_ACEOF
21716
21717 have_u_intxx_t=1
21718fi
21719
21720if test -z "$have_u_intxx_t" ; then
21721 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21722echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h. */
21729 #include <sys/socket.h>
21730int
21731main ()
21732{
21733 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext
21739if { (ac_try="$ac_compile"
21740case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743esac
21744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_compile") 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && {
21752 test -z "$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21754 } && test -s conftest.$ac_objext; then
21755
21756 cat >>confdefs.h <<\_ACEOF
21757#define HAVE_U_INTXX_T 1
21758_ACEOF
21759
21760 { echo "$as_me:$LINENO: result: yes" >&5
21761echo "${ECHO_T}yes" >&6; }
21762
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 { echo "$as_me:$LINENO: result: no" >&5
21768echo "${ECHO_T}no" >&6; }
21769
21770fi
21771
21772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773fi
21774
21775{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21776echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21777if test "${ac_cv_have_u_int64_t+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780
21781 cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
21787 #include <sys/types.h>
21788int
21789main ()
21790{
21791 u_int64_t a; a = 1;
21792 ;
21793 return 0;
21794}
21795_ACEOF
21796rm -f conftest.$ac_objext
21797if { (ac_try="$ac_compile"
21798case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21813 ac_cv_have_u_int64_t="yes"
21814else
21815 echo "$as_me: failed program was:" >&5
21816sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 ac_cv_have_u_int64_t="no"
21819
21820fi
21821
21822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823
21824fi
21825{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21826echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21827if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21828
21829cat >>confdefs.h <<\_ACEOF
21830#define HAVE_U_INT64_T 1
21831_ACEOF
21832
21833 have_u_int64_t=1
21834fi
21835
21836if test -z "$have_u_int64_t" ; then
21837 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21838echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840/* confdefs.h. */
21841_ACEOF
21842cat confdefs.h >>conftest.$ac_ext
21843cat >>conftest.$ac_ext <<_ACEOF
21844/* end confdefs.h. */
21845 #include <sys/bitypes.h>
21846int
21847main ()
21848{
21849 u_int64_t a; a = 1
21850 ;
21851 return 0;
21852}
21853_ACEOF
21854rm -f conftest.$ac_objext
21855if { (ac_try="$ac_compile"
21856case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859esac
21860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871
21872 cat >>confdefs.h <<\_ACEOF
21873#define HAVE_U_INT64_T 1
21874_ACEOF
21875
21876 { echo "$as_me:$LINENO: result: yes" >&5
21877echo "${ECHO_T}yes" >&6; }
21878
21879else
21880 echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 { echo "$as_me:$LINENO: result: no" >&5
21884echo "${ECHO_T}no" >&6; }
21885
21886fi
21887
21888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889fi
21890
21891if test -z "$have_u_intxx_t" ; then
21892 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
21893echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
21894if test "${ac_cv_have_uintxx_t+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
21897
21898 cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904
21905#include <sys/types.h>
21906
21907int
21908main ()
21909{
21910 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21911 ;
21912 return 0;
21913}
21914_ACEOF
21915rm -f conftest.$ac_objext
21916if { (ac_try="$ac_compile"
21917case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920esac
21921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_compile") 2>conftest.er1
21923 ac_status=$?
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest.$ac_objext; then
21932 ac_cv_have_uintxx_t="yes"
21933else
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937 ac_cv_have_uintxx_t="no"
21938
21939fi
21940
21941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942
21943fi
21944{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
21945echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
21946 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
21947
21948cat >>confdefs.h <<\_ACEOF
21949#define HAVE_UINTXX_T 1
21950_ACEOF
21951
21952 fi
21953fi
21954
21955if test -z "$have_uintxx_t" ; then
21956 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
21957echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959/* confdefs.h. */
21960_ACEOF
21961cat confdefs.h >>conftest.$ac_ext
21962cat >>conftest.$ac_ext <<_ACEOF
21963/* end confdefs.h. */
21964 #include <stdint.h>
21965int
21966main ()
21967{
21968 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
21969 ;
21970 return 0;
21971}
21972_ACEOF
21973rm -f conftest.$ac_objext
21974if { (ac_try="$ac_compile"
21975case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21978esac
21979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21981 ac_status=$?
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21990
21991 cat >>confdefs.h <<\_ACEOF
21992#define HAVE_UINTXX_T 1
21993_ACEOF
21994
21995 { echo "$as_me:$LINENO: result: yes" >&5
21996echo "${ECHO_T}yes" >&6; }
21997
21998else
21999 echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 { echo "$as_me:$LINENO: result: no" >&5
22003echo "${ECHO_T}no" >&6; }
22004
22005fi
22006
22007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008fi
22009
22010if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
22011 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
22012then
22013 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
22014echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
22015 cat >conftest.$ac_ext <<_ACEOF
22016/* confdefs.h. */
22017_ACEOF
22018cat confdefs.h >>conftest.$ac_ext
22019cat >>conftest.$ac_ext <<_ACEOF
22020/* end confdefs.h. */
22021
22022#include <sys/bitypes.h>
22023
22024int
22025main ()
22026{
22027
22028 int8_t a; int16_t b; int32_t c;
22029 u_int8_t e; u_int16_t f; u_int32_t g;
22030 a = b = c = e = f = g = 1;
22031
22032 ;
22033 return 0;
22034}
22035_ACEOF
22036rm -f conftest.$ac_objext
22037if { (ac_try="$ac_compile"
22038case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22041esac
22042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_compile") 2>conftest.er1
22044 ac_status=$?
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest.$ac_objext; then
22053
22054 cat >>confdefs.h <<\_ACEOF
22055#define HAVE_U_INTXX_T 1
22056_ACEOF
22057
22058 cat >>confdefs.h <<\_ACEOF
22059#define HAVE_INTXX_T 1
22060_ACEOF
22061
22062 { echo "$as_me:$LINENO: result: yes" >&5
22063echo "${ECHO_T}yes" >&6; }
22064
22065else
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 { echo "$as_me:$LINENO: result: no" >&5
22070echo "${ECHO_T}no" >&6; }
22071
22072fi
22073
22074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075fi
22076
22077
22078{ echo "$as_me:$LINENO: checking for u_char" >&5
22079echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
22080if test "${ac_cv_have_u_char+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082else
22083
22084 cat >conftest.$ac_ext <<_ACEOF
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
22089/* end confdefs.h. */
22090
22091#include <sys/types.h>
22092
22093int
22094main ()
22095{
22096 u_char foo; foo = 125;
22097 ;
22098 return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext
22102if { (ac_try="$ac_compile"
22103case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_cv_have_u_char="yes"
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 ac_cv_have_u_char="no"
22124
22125fi
22126
22127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128
22129fi
22130{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
22131echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
22132if test "x$ac_cv_have_u_char" = "xyes" ; then
22133
22134cat >>confdefs.h <<\_ACEOF
22135#define HAVE_U_CHAR 1
22136_ACEOF
22137
22138fi
22139
22140
22141 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22142echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22143if test "${ac_cv_type_socklen_t+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22145else
22146 cat >conftest.$ac_ext <<_ACEOF
22147/* confdefs.h. */
22148_ACEOF
22149cat confdefs.h >>conftest.$ac_ext
22150cat >>conftest.$ac_ext <<_ACEOF
22151/* end confdefs.h. */
22152#include <sys/types.h>
22153#include <sys/socket.h>
22154
22155typedef socklen_t ac__type_new_;
22156int
22157main ()
22158{
22159if ((ac__type_new_ *) 0)
22160 return 0;
22161if (sizeof (ac__type_new_))
22162 return 0;
22163 ;
22164 return 0;
22165}
22166_ACEOF
22167rm -f conftest.$ac_objext
22168if { (ac_try="$ac_compile"
22169case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172esac
22173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22184 ac_cv_type_socklen_t=yes
22185else
22186 echo "$as_me: failed program was:" >&5
22187sed 's/^/| /' conftest.$ac_ext >&5
22188
22189 ac_cv_type_socklen_t=no
22190fi
22191
22192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193fi
22194{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22195echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22196if test $ac_cv_type_socklen_t = yes; then
22197 :
22198else
22199
22200 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22201echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22202 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204else
22205
22206 # Systems have either "struct sockaddr *" or
22207 # "void *" as the second argument to getpeername
22208 curl_cv_socklen_t_equiv=
22209 for arg2 in "struct sockaddr" void; do
22210 for t in int size_t unsigned long "unsigned long"; do
22211 cat >conftest.$ac_ext <<_ACEOF
22212/* confdefs.h. */
22213_ACEOF
22214cat confdefs.h >>conftest.$ac_ext
22215cat >>conftest.$ac_ext <<_ACEOF
22216/* end confdefs.h. */
22217
22218 #include <sys/types.h>
22219 #include <sys/socket.h>
22220
22221 int getpeername (int, $arg2 *, $t *);
22222
22223int
22224main ()
22225{
22226
22227 $t len;
22228 getpeername(0,0,&len);
22229
22230 ;
22231 return 0;
22232}
22233_ACEOF
22234rm -f conftest.$ac_objext
22235if { (ac_try="$ac_compile"
22236case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239esac
22240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_compile") 2>conftest.er1
22242 ac_status=$?
22243 grep -v '^ *+' conftest.er1 >conftest.err
22244 rm -f conftest.er1
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest.$ac_objext; then
22251
22252 curl_cv_socklen_t_equiv="$t"
22253 break
22254
22255else
22256 echo "$as_me: failed program was:" >&5
22257sed 's/^/| /' conftest.$ac_ext >&5
22258
22259
22260fi
22261
22262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 done
22264 done
22265
22266 if test "x$curl_cv_socklen_t_equiv" = x; then
22267 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22268echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22269 { (exit 1); exit 1; }; }
22270 fi
22271
22272fi
22273
22274 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22275echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
22276
22277cat >>confdefs.h <<_ACEOF
22278#define socklen_t $curl_cv_socklen_t_equiv
22279_ACEOF
22280
22281fi
22282
22283
22284
22285{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22286echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
22287if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290 cat >conftest.$ac_ext <<_ACEOF
22291/* confdefs.h. */
22292_ACEOF
22293cat confdefs.h >>conftest.$ac_ext
22294cat >>conftest.$ac_ext <<_ACEOF
22295/* end confdefs.h. */
22296#include <signal.h>
22297
22298typedef sig_atomic_t ac__type_new_;
22299int
22300main ()
22301{
22302if ((ac__type_new_ *) 0)
22303 return 0;
22304if (sizeof (ac__type_new_))
22305 return 0;
22306 ;
22307 return 0;
22308}
22309_ACEOF
22310rm -f conftest.$ac_objext
22311if { (ac_try="$ac_compile"
22312case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22315esac
22316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_compile") 2>conftest.er1
22318 ac_status=$?
22319 grep -v '^ *+' conftest.er1 >conftest.err
22320 rm -f conftest.er1
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && {
22324 test -z "$ac_c_werror_flag" ||
22325 test ! -s conftest.err
22326 } && test -s conftest.$ac_objext; then
22327 ac_cv_type_sig_atomic_t=yes
22328else
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332 ac_cv_type_sig_atomic_t=no
22333fi
22334
22335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336fi
22337{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22338echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
22339if test $ac_cv_type_sig_atomic_t = yes; then
22340
22341cat >>confdefs.h <<_ACEOF
22342#define HAVE_SIG_ATOMIC_T 1
22343_ACEOF
22344
22345
22346fi
22347
22348{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
22349echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
22350if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352else
22353 cat >conftest.$ac_ext <<_ACEOF
22354/* confdefs.h. */
22355_ACEOF
22356cat confdefs.h >>conftest.$ac_ext
22357cat >>conftest.$ac_ext <<_ACEOF
22358/* end confdefs.h. */
22359
22360#include <sys/types.h>
22361#ifdef HAVE_SYS_BITYPES_H
22362#include <sys/bitypes.h>
22363#endif
22364#ifdef HAVE_SYS_STATFS_H
22365#include <sys/statfs.h>
22366#endif
22367#ifdef HAVE_SYS_STATVFS_H
22368#include <sys/statvfs.h>
22369#endif
22370
22371
22372typedef fsblkcnt_t ac__type_new_;
22373int
22374main ()
22375{
22376if ((ac__type_new_ *) 0)
22377 return 0;
22378if (sizeof (ac__type_new_))
22379 return 0;
22380 ;
22381 return 0;
22382}
22383_ACEOF
22384rm -f conftest.$ac_objext
22385if { (ac_try="$ac_compile"
22386case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389esac
22390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_compile") 2>conftest.er1
22392 ac_status=$?
22393 grep -v '^ *+' conftest.er1 >conftest.err
22394 rm -f conftest.er1
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && {
22398 test -z "$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22400 } && test -s conftest.$ac_objext; then
22401 ac_cv_type_fsblkcnt_t=yes
22402else
22403 echo "$as_me: failed program was:" >&5
22404sed 's/^/| /' conftest.$ac_ext >&5
22405
22406 ac_cv_type_fsblkcnt_t=no
22407fi
22408
22409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410fi
22411{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
22412echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
22413if test $ac_cv_type_fsblkcnt_t = yes; then
22414
22415cat >>confdefs.h <<_ACEOF
22416#define HAVE_FSBLKCNT_T 1
22417_ACEOF
22418
22419
22420fi
22421{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
22422echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
22423if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425else
22426 cat >conftest.$ac_ext <<_ACEOF
22427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
22432
22433#include <sys/types.h>
22434#ifdef HAVE_SYS_BITYPES_H
22435#include <sys/bitypes.h>
22436#endif
22437#ifdef HAVE_SYS_STATFS_H
22438#include <sys/statfs.h>
22439#endif
22440#ifdef HAVE_SYS_STATVFS_H
22441#include <sys/statvfs.h>
22442#endif
22443
22444
22445typedef fsfilcnt_t ac__type_new_;
22446int
22447main ()
22448{
22449if ((ac__type_new_ *) 0)
22450 return 0;
22451if (sizeof (ac__type_new_))
22452 return 0;
22453 ;
22454 return 0;
22455}
22456_ACEOF
22457rm -f conftest.$ac_objext
22458if { (ac_try="$ac_compile"
22459case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22462esac
22463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_compile") 2>conftest.er1
22465 ac_status=$?
22466 grep -v '^ *+' conftest.er1 >conftest.err
22467 rm -f conftest.er1
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest.$ac_objext; then
22474 ac_cv_type_fsfilcnt_t=yes
22475else
22476 echo "$as_me: failed program was:" >&5
22477sed 's/^/| /' conftest.$ac_ext >&5
22478
22479 ac_cv_type_fsfilcnt_t=no
22480fi
22481
22482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483fi
22484{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
22485echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
22486if test $ac_cv_type_fsfilcnt_t = yes; then
22487
22488cat >>confdefs.h <<_ACEOF
22489#define HAVE_FSFILCNT_T 1
22490_ACEOF
22491
22492
22493fi
22494
22495
22496{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
22497echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
22498if test "${ac_cv_type_in_addr_t+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500else
22501 cat >conftest.$ac_ext <<_ACEOF
22502/* confdefs.h. */
22503_ACEOF
22504cat confdefs.h >>conftest.$ac_ext
22505cat >>conftest.$ac_ext <<_ACEOF
22506/* end confdefs.h. */
22507#include <sys/types.h>
22508#include <netinet/in.h>
22509
22510typedef in_addr_t ac__type_new_;
22511int
22512main ()
22513{
22514if ((ac__type_new_ *) 0)
22515 return 0;
22516if (sizeof (ac__type_new_))
22517 return 0;
22518 ;
22519 return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext
22523if { (ac_try="$ac_compile"
22524case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527esac
22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_cv_type_in_addr_t=yes
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544 ac_cv_type_in_addr_t=no
22545fi
22546
22547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548fi
22549{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
22550echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
22551if test $ac_cv_type_in_addr_t = yes; then
22552
22553cat >>confdefs.h <<_ACEOF
22554#define HAVE_IN_ADDR_T 1
22555_ACEOF
22556
22557
22558fi
22559{ echo "$as_me:$LINENO: checking for in_port_t" >&5
22560echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
22561if test "${ac_cv_type_in_port_t+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
22564 cat >conftest.$ac_ext <<_ACEOF
22565/* confdefs.h. */
22566_ACEOF
22567cat confdefs.h >>conftest.$ac_ext
22568cat >>conftest.$ac_ext <<_ACEOF
22569/* end confdefs.h. */
22570#include <sys/types.h>
22571#include <netinet/in.h>
22572
22573typedef in_port_t ac__type_new_;
22574int
22575main ()
22576{
22577if ((ac__type_new_ *) 0)
22578 return 0;
22579if (sizeof (ac__type_new_))
22580 return 0;
22581 ;
22582 return 0;
22583}
22584_ACEOF
22585rm -f conftest.$ac_objext
22586if { (ac_try="$ac_compile"
22587case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22590esac
22591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 ac_cv_type_in_port_t=yes
22603else
22604 echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 ac_cv_type_in_port_t=no
22608fi
22609
22610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611fi
22612{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
22613echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
22614if test $ac_cv_type_in_port_t = yes; then
22615
22616cat >>confdefs.h <<_ACEOF
22617#define HAVE_IN_PORT_T 1
22618_ACEOF
22619
22620
22621fi
22622
22623
22624{ echo "$as_me:$LINENO: checking for size_t" >&5
22625echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22626if test "${ac_cv_have_size_t+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22628else
22629
22630 cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h. */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h. */
22636
22637#include <sys/types.h>
22638
22639int
22640main ()
22641{
22642 size_t foo; foo = 1235;
22643 ;
22644 return 0;
22645}
22646_ACEOF
22647rm -f conftest.$ac_objext
22648if { (ac_try="$ac_compile"
22649case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652esac
22653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_compile") 2>conftest.er1
22655 ac_status=$?
22656 grep -v '^ *+' conftest.er1 >conftest.err
22657 rm -f conftest.er1
22658 cat conftest.err >&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest.$ac_objext; then
22664 ac_cv_have_size_t="yes"
22665else
22666 echo "$as_me: failed program was:" >&5
22667sed 's/^/| /' conftest.$ac_ext >&5
22668
22669 ac_cv_have_size_t="no"
22670
22671fi
22672
22673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674
22675fi
22676{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
22677echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
22678if test "x$ac_cv_have_size_t" = "xyes" ; then
22679
22680cat >>confdefs.h <<\_ACEOF
22681#define HAVE_SIZE_T 1
22682_ACEOF
22683
22684fi
22685
22686{ echo "$as_me:$LINENO: checking for ssize_t" >&5
22687echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22688if test "${ac_cv_have_ssize_t+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22690else
22691
22692 cat >conftest.$ac_ext <<_ACEOF
22693/* confdefs.h. */
22694_ACEOF
22695cat confdefs.h >>conftest.$ac_ext
22696cat >>conftest.$ac_ext <<_ACEOF
22697/* end confdefs.h. */
22698
22699#include <sys/types.h>
22700
22701int
22702main ()
22703{
22704 ssize_t foo; foo = 1235;
22705 ;
22706 return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext
22710if { (ac_try="$ac_compile"
22711case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714esac
22715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22726 ac_cv_have_ssize_t="yes"
22727else
22728 echo "$as_me: failed program was:" >&5
22729sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ac_cv_have_ssize_t="no"
22732
22733fi
22734
22735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736
22737fi
22738{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22739echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22740if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22741
22742cat >>confdefs.h <<\_ACEOF
22743#define HAVE_SSIZE_T 1
22744_ACEOF
22745
22746fi
22747
22748{ echo "$as_me:$LINENO: checking for clock_t" >&5
22749echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22750if test "${ac_cv_have_clock_t+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752else
22753
22754 cat >conftest.$ac_ext <<_ACEOF
22755/* confdefs.h. */
22756_ACEOF
22757cat confdefs.h >>conftest.$ac_ext
22758cat >>conftest.$ac_ext <<_ACEOF
22759/* end confdefs.h. */
22760
22761#include <time.h>
22762
22763int
22764main ()
22765{
22766 clock_t foo; foo = 1235;
22767 ;
22768 return 0;
22769}
22770_ACEOF
22771rm -f conftest.$ac_objext
22772if { (ac_try="$ac_compile"
22773case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776esac
22777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_compile") 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } && {
22785 test -z "$ac_c_werror_flag" ||
22786 test ! -s conftest.err
22787 } && test -s conftest.$ac_objext; then
22788 ac_cv_have_clock_t="yes"
22789else
22790 echo "$as_me: failed program was:" >&5
22791sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 ac_cv_have_clock_t="no"
22794
22795fi
22796
22797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798
22799fi
22800{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22801echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22802if test "x$ac_cv_have_clock_t" = "xyes" ; then
22803
22804cat >>confdefs.h <<\_ACEOF
22805#define HAVE_CLOCK_T 1
22806_ACEOF
22807
22808fi
22809
22810{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22811echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22812if test "${ac_cv_have_sa_family_t+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22814else
22815
22816 cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822
22823#include <sys/types.h>
22824#include <sys/socket.h>
22825
22826int
22827main ()
22828{
22829 sa_family_t foo; foo = 1235;
22830 ;
22831 return 0;
22832}
22833_ACEOF
22834rm -f conftest.$ac_objext
22835if { (ac_try="$ac_compile"
22836case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22839esac
22840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22842 ac_status=$?
22843 grep -v '^ *+' conftest.er1 >conftest.err
22844 rm -f conftest.er1
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && {
22848 test -z "$ac_c_werror_flag" ||
22849 test ! -s conftest.err
22850 } && test -s conftest.$ac_objext; then
22851 ac_cv_have_sa_family_t="yes"
22852else
22853 echo "$as_me: failed program was:" >&5
22854sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 cat >conftest.$ac_ext <<_ACEOF
22857/* confdefs.h. */
22858_ACEOF
22859cat confdefs.h >>conftest.$ac_ext
22860cat >>conftest.$ac_ext <<_ACEOF
22861/* end confdefs.h. */
22862
22863#include <sys/types.h>
22864#include <sys/socket.h>
22865#include <netinet/in.h>
22866
22867int
22868main ()
22869{
22870 sa_family_t foo; foo = 1235;
22871 ;
22872 return 0;
22873}
22874_ACEOF
22875rm -f conftest.$ac_objext
22876if { (ac_try="$ac_compile"
22877case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880esac
22881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_compile") 2>conftest.er1
22883 ac_status=$?
22884 grep -v '^ *+' conftest.er1 >conftest.err
22885 rm -f conftest.er1
22886 cat conftest.err >&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && {
22889 test -z "$ac_c_werror_flag" ||
22890 test ! -s conftest.err
22891 } && test -s conftest.$ac_objext; then
22892 ac_cv_have_sa_family_t="yes"
22893else
22894 echo "$as_me: failed program was:" >&5
22895sed 's/^/| /' conftest.$ac_ext >&5
22896
22897 ac_cv_have_sa_family_t="no"
22898
22899fi
22900
22901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902
22903fi
22904
22905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906
22907fi
22908{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
22909echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
22910if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
22911
22912cat >>confdefs.h <<\_ACEOF
22913#define HAVE_SA_FAMILY_T 1
22914_ACEOF
22915
22916fi
22917
22918{ echo "$as_me:$LINENO: checking for pid_t" >&5
22919echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22920if test "${ac_cv_have_pid_t+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923
22924 cat >conftest.$ac_ext <<_ACEOF
22925/* confdefs.h. */
22926_ACEOF
22927cat confdefs.h >>conftest.$ac_ext
22928cat >>conftest.$ac_ext <<_ACEOF
22929/* end confdefs.h. */
22930
22931#include <sys/types.h>
22932
22933int
22934main ()
22935{
22936 pid_t foo; foo = 1235;
22937 ;
22938 return 0;
22939}
22940_ACEOF
22941rm -f conftest.$ac_objext
22942if { (ac_try="$ac_compile"
22943case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22946esac
22947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22949 ac_status=$?
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_cv_have_pid_t="yes"
22959else
22960 echo "$as_me: failed program was:" >&5
22961sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 ac_cv_have_pid_t="no"
22964
22965fi
22966
22967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968
22969fi
22970{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
22971echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
22972if test "x$ac_cv_have_pid_t" = "xyes" ; then
22973
22974cat >>confdefs.h <<\_ACEOF
22975#define HAVE_PID_T 1
22976_ACEOF
22977
22978fi
22979
22980{ echo "$as_me:$LINENO: checking for mode_t" >&5
22981echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22982if test "${ac_cv_have_mode_t+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984else
22985
22986 cat >conftest.$ac_ext <<_ACEOF
22987/* confdefs.h. */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h. */
22992
22993#include <sys/types.h>
22994
22995int
22996main ()
22997{
22998 mode_t foo; foo = 1235;
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
23004if { (ac_try="$ac_compile"
23005case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008esac
23009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23010 (eval "$ac_compile") 2>conftest.er1
23011 ac_status=$?
23012 grep -v '^ *+' conftest.er1 >conftest.err
23013 rm -f conftest.er1
23014 cat conftest.err >&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); } && {
23017 test -z "$ac_c_werror_flag" ||
23018 test ! -s conftest.err
23019 } && test -s conftest.$ac_objext; then
23020 ac_cv_have_mode_t="yes"
23021else
23022 echo "$as_me: failed program was:" >&5
23023sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 ac_cv_have_mode_t="no"
23026
23027fi
23028
23029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030
23031fi
23032{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
23033echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
23034if test "x$ac_cv_have_mode_t" = "xyes" ; then
23035
23036cat >>confdefs.h <<\_ACEOF
23037#define HAVE_MODE_T 1
23038_ACEOF
23039
23040fi
23041
23042
23043{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23044echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23045if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047else
23048
23049 cat >conftest.$ac_ext <<_ACEOF
23050/* confdefs.h. */
23051_ACEOF
23052cat confdefs.h >>conftest.$ac_ext
23053cat >>conftest.$ac_ext <<_ACEOF
23054/* end confdefs.h. */
23055
23056#include <sys/types.h>
23057#include <sys/socket.h>
23058
23059int
23060main ()
23061{
23062 struct sockaddr_storage s;
23063 ;
23064 return 0;
23065}
23066_ACEOF
23067rm -f conftest.$ac_objext
23068if { (ac_try="$ac_compile"
23069case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072esac
23073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_compile") 2>conftest.er1
23075 ac_status=$?
23076 grep -v '^ *+' conftest.er1 >conftest.err
23077 rm -f conftest.er1
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest.$ac_objext; then
23084 ac_cv_have_struct_sockaddr_storage="yes"
23085else
23086 echo "$as_me: failed program was:" >&5
23087sed 's/^/| /' conftest.$ac_ext >&5
23088
23089 ac_cv_have_struct_sockaddr_storage="no"
23090
23091fi
23092
23093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094
23095fi
23096{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
23097echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
23098if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
23099
23100cat >>confdefs.h <<\_ACEOF
23101#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23102_ACEOF
23103
23104fi
23105
23106{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23107echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23108if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23110else
23111
23112 cat >conftest.$ac_ext <<_ACEOF
23113/* confdefs.h. */
23114_ACEOF
23115cat confdefs.h >>conftest.$ac_ext
23116cat >>conftest.$ac_ext <<_ACEOF
23117/* end confdefs.h. */
23118
23119#include <sys/types.h>
23120#include <netinet/in.h>
23121
23122int
23123main ()
23124{
23125 struct sockaddr_in6 s; s.sin6_family = 0;
23126 ;
23127 return 0;
23128}
23129_ACEOF
23130rm -f conftest.$ac_objext
23131if { (ac_try="$ac_compile"
23132case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135esac
23136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23147 ac_cv_have_struct_sockaddr_in6="yes"
23148else
23149 echo "$as_me: failed program was:" >&5
23150sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_cv_have_struct_sockaddr_in6="no"
23153
23154fi
23155
23156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157
23158fi
23159{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
23160echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
23161if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
23162
23163cat >>confdefs.h <<\_ACEOF
23164#define HAVE_STRUCT_SOCKADDR_IN6 1
23165_ACEOF
23166
23167fi
23168
23169{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23170echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23171if test "${ac_cv_have_struct_in6_addr+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174
23175 cat >conftest.$ac_ext <<_ACEOF
23176/* confdefs.h. */
23177_ACEOF
23178cat confdefs.h >>conftest.$ac_ext
23179cat >>conftest.$ac_ext <<_ACEOF
23180/* end confdefs.h. */
23181
23182#include <sys/types.h>
23183#include <netinet/in.h>
23184
23185int
23186main ()
23187{
23188 struct in6_addr s; s.s6_addr[0] = 0;
23189 ;
23190 return 0;
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext
23194if { (ac_try="$ac_compile"
23195case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198esac
23199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23201 ac_status=$?
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23210 ac_cv_have_struct_in6_addr="yes"
23211else
23212 echo "$as_me: failed program was:" >&5
23213sed 's/^/| /' conftest.$ac_ext >&5
23214
23215 ac_cv_have_struct_in6_addr="no"
23216
23217fi
23218
23219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220
23221fi
23222{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
23223echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
23224if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
23225
23226cat >>confdefs.h <<\_ACEOF
23227#define HAVE_STRUCT_IN6_ADDR 1
23228_ACEOF
23229
23230
23231 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23232echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23233if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236 cat >conftest.$ac_ext <<_ACEOF
23237/* confdefs.h. */
23238_ACEOF
23239cat confdefs.h >>conftest.$ac_ext
23240cat >>conftest.$ac_ext <<_ACEOF
23241/* end confdefs.h. */
23242
23243#ifdef HAVE_SYS_TYPES_H
23244#include <sys/types.h>
23245#endif
23246#include <netinet/in.h>
23247
23248
23249int
23250main ()
23251{
23252static struct sockaddr_in6 ac_aggr;
23253if (ac_aggr.sin6_scope_id)
23254return 0;
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext
23260if { (ac_try="$ac_compile"
23261case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264esac
23265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23277else
23278 echo "$as_me: failed program was:" >&5
23279sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 cat >conftest.$ac_ext <<_ACEOF
23282/* confdefs.h. */
23283_ACEOF
23284cat confdefs.h >>conftest.$ac_ext
23285cat >>conftest.$ac_ext <<_ACEOF
23286/* end confdefs.h. */
23287
23288#ifdef HAVE_SYS_TYPES_H
23289#include <sys/types.h>
23290#endif
23291#include <netinet/in.h>
23292
23293
23294int
23295main ()
23296{
23297static struct sockaddr_in6 ac_aggr;
23298if (sizeof ac_aggr.sin6_scope_id)
23299return 0;
23300 ;
23301 return 0;
23302}
23303_ACEOF
23304rm -f conftest.$ac_objext
23305if { (ac_try="$ac_compile"
23306case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309esac
23310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23312 ac_status=$?
23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.$ac_objext; then
23321 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23322else
23323 echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23327fi
23328
23329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330fi
23331
23332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333fi
23334{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23335echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23336if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23337
23338cat >>confdefs.h <<_ACEOF
23339#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23340_ACEOF
23341
23342
23343fi
23344
23345fi
23346
23347{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23348echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23349if test "${ac_cv_have_struct_addrinfo+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23351else
23352
23353 cat >conftest.$ac_ext <<_ACEOF
23354/* confdefs.h. */
23355_ACEOF
23356cat confdefs.h >>conftest.$ac_ext
23357cat >>conftest.$ac_ext <<_ACEOF
23358/* end confdefs.h. */
23359
23360#include <sys/types.h>
23361#include <sys/socket.h>
23362#include <netdb.h>
23363
23364int
23365main ()
23366{
23367 struct addrinfo s; s.ai_flags = AI_PASSIVE;
23368 ;
23369 return 0;
23370}
23371_ACEOF
23372rm -f conftest.$ac_objext
23373if { (ac_try="$ac_compile"
23374case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23377esac
23378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_compile") 2>conftest.er1
23380 ac_status=$?
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } && {
23386 test -z "$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23388 } && test -s conftest.$ac_objext; then
23389 ac_cv_have_struct_addrinfo="yes"
23390else
23391 echo "$as_me: failed program was:" >&5
23392sed 's/^/| /' conftest.$ac_ext >&5
23393
23394 ac_cv_have_struct_addrinfo="no"
23395
23396fi
23397
23398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399
23400fi
23401{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
23402echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
23403if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
23404
23405cat >>confdefs.h <<\_ACEOF
23406#define HAVE_STRUCT_ADDRINFO 1
23407_ACEOF
23408
23409fi
23410
23411{ echo "$as_me:$LINENO: checking for struct timeval" >&5
23412echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
23413if test "${ac_cv_have_struct_timeval+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415else
23416
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423 #include <sys/time.h>
23424int
23425main ()
23426{
23427 struct timeval tv; tv.tv_sec = 1;
23428 ;
23429 return 0;
23430}
23431_ACEOF
23432rm -f conftest.$ac_objext
23433if { (ac_try="$ac_compile"
23434case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23437esac
23438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_compile") 2>conftest.er1
23440 ac_status=$?
23441 grep -v '^ *+' conftest.er1 >conftest.err
23442 rm -f conftest.er1
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } && {
23446 test -z "$ac_c_werror_flag" ||
23447 test ! -s conftest.err
23448 } && test -s conftest.$ac_objext; then
23449 ac_cv_have_struct_timeval="yes"
23450else
23451 echo "$as_me: failed program was:" >&5
23452sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 ac_cv_have_struct_timeval="no"
23455
23456fi
23457
23458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459
23460fi
23461{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
23462echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
23463if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
23464
23465cat >>confdefs.h <<\_ACEOF
23466#define HAVE_STRUCT_TIMEVAL 1
23467_ACEOF
23468
23469 have_struct_timeval=1
23470fi
23471
23472{ echo "$as_me:$LINENO: checking for struct timespec" >&5
23473echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
23474if test "${ac_cv_type_struct_timespec+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23476else
23477 cat >conftest.$ac_ext <<_ACEOF
23478/* confdefs.h. */
23479_ACEOF
23480cat confdefs.h >>conftest.$ac_ext
23481cat >>conftest.$ac_ext <<_ACEOF
23482/* end confdefs.h. */
23483$ac_includes_default
23484typedef struct timespec ac__type_new_;
23485int
23486main ()
23487{
23488if ((ac__type_new_ *) 0)
23489 return 0;
23490if (sizeof (ac__type_new_))
23491 return 0;
23492 ;
23493 return 0;
23494}
23495_ACEOF
23496rm -f conftest.$ac_objext
23497if { (ac_try="$ac_compile"
23498case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23501esac
23502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_compile") 2>conftest.er1
23504 ac_status=$?
23505 grep -v '^ *+' conftest.er1 >conftest.err
23506 rm -f conftest.er1
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && {
23510 test -z "$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 } && test -s conftest.$ac_objext; then
23513 ac_cv_type_struct_timespec=yes
23514else
23515 echo "$as_me: failed program was:" >&5
23516sed 's/^/| /' conftest.$ac_ext >&5
23517
23518 ac_cv_type_struct_timespec=no
23519fi
23520
23521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522fi
23523{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
23524echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
23525if test $ac_cv_type_struct_timespec = yes; then
23526
23527cat >>confdefs.h <<_ACEOF
23528#define HAVE_STRUCT_TIMESPEC 1
23529_ACEOF
23530
23531
23532fi
23533
23534
23535# We need int64_t or else certian parts of the compile will fail.
23536if test "x$ac_cv_have_int64_t" = "xno" && \
23537 test "x$ac_cv_sizeof_long_int" != "x8" && \
23538 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
23539 echo "OpenSSH requires int64_t support. Contact your vendor or install"
23540 echo "an alternative compiler (I.E., GCC) before continuing."
23541 echo ""
23542 exit 1;
23543else
23544 if test "$cross_compiling" = yes; then
23545 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
23546echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
23547
23548else
23549 cat >conftest.$ac_ext <<_ACEOF
23550/* confdefs.h. */
23551_ACEOF
23552cat confdefs.h >>conftest.$ac_ext
23553cat >>conftest.$ac_ext <<_ACEOF
23554/* end confdefs.h. */
23555
23556#include <stdio.h>
23557#include <string.h>
23558#ifdef HAVE_SNPRINTF
23559main()
23560{
23561 char buf[50];
23562 char expected_out[50];
23563 int mazsize = 50 ;
23564#if (SIZEOF_LONG_INT == 8)
23565 long int num = 0x7fffffffffffffff;
23566#else
23567 long long num = 0x7fffffffffffffffll;
23568#endif
23569 strcpy(expected_out, "9223372036854775807");
23570 snprintf(buf, mazsize, "%lld", num);
23571 if(strcmp(buf, expected_out) != 0)
23572 exit(1);
23573 exit(0);
23574}
23575#else
23576main() { exit(0); }
23577#endif
23578
23579_ACEOF
23580rm -f conftest$ac_exeext
23581if { (ac_try="$ac_link"
23582case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585esac
23586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_link") 2>&5
23588 ac_status=$?
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23591 { (case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
23594esac
23595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596 (eval "$ac_try") 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 true
23601else
23602 echo "$as_me: program exited with status $ac_status" >&5
23603echo "$as_me: failed program was:" >&5
23604sed 's/^/| /' conftest.$ac_ext >&5
23605
23606( exit $ac_status )
23607 cat >>confdefs.h <<\_ACEOF
23608#define BROKEN_SNPRINTF 1
23609_ACEOF
23610
23611fi
23612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23613fi
23614
23615
23616fi
23617
23618
23619# look for field 'ut_host' in header 'utmp.h'
23620 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23621 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23622 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
23623echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
23624 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626else
23627
23628 cat >conftest.$ac_ext <<_ACEOF
23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
23634#include <utmp.h>
23635
23636_ACEOF
23637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23638 $EGREP "ut_host" >/dev/null 2>&1; then
23639 eval "$ossh_varname=yes"
23640else
23641 eval "$ossh_varname=no"
23642fi
23643rm -f conftest*
23644
23645fi
23646
23647 ossh_result=`eval 'echo $'"$ossh_varname"`
23648 if test -n "`echo $ossh_varname`"; then
23649 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23650echo "${ECHO_T}$ossh_result" >&6; }
23651 if test "x$ossh_result" = "xyes"; then
23652
23653cat >>confdefs.h <<\_ACEOF
23654#define HAVE_HOST_IN_UTMP 1
23655_ACEOF
23656
23657 fi
23658 else
23659 { echo "$as_me:$LINENO: result: no" >&5
23660echo "${ECHO_T}no" >&6; }
23661 fi
23662
23663
23664# look for field 'ut_host' in header 'utmpx.h'
23665 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23666 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23667 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
23668echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
23669 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23670 echo $ECHO_N "(cached) $ECHO_C" >&6
23671else
23672
23673 cat >conftest.$ac_ext <<_ACEOF
23674/* confdefs.h. */
23675_ACEOF
23676cat confdefs.h >>conftest.$ac_ext
23677cat >>conftest.$ac_ext <<_ACEOF
23678/* end confdefs.h. */
23679#include <utmpx.h>
23680
23681_ACEOF
23682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23683 $EGREP "ut_host" >/dev/null 2>&1; then
23684 eval "$ossh_varname=yes"
23685else
23686 eval "$ossh_varname=no"
23687fi
23688rm -f conftest*
23689
23690fi
23691
23692 ossh_result=`eval 'echo $'"$ossh_varname"`
23693 if test -n "`echo $ossh_varname`"; then
23694 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23695echo "${ECHO_T}$ossh_result" >&6; }
23696 if test "x$ossh_result" = "xyes"; then
23697
23698cat >>confdefs.h <<\_ACEOF
23699#define HAVE_HOST_IN_UTMPX 1
23700_ACEOF
23701
23702 fi
23703 else
23704 { echo "$as_me:$LINENO: result: no" >&5
23705echo "${ECHO_T}no" >&6; }
23706 fi
23707
23708
23709# look for field 'syslen' in header 'utmpx.h'
23710 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23711 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
23712 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
23713echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
23714 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23716else
23717
23718 cat >conftest.$ac_ext <<_ACEOF
23719/* confdefs.h. */
23720_ACEOF
23721cat confdefs.h >>conftest.$ac_ext
23722cat >>conftest.$ac_ext <<_ACEOF
23723/* end confdefs.h. */
23724#include <utmpx.h>
23725
23726_ACEOF
23727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23728 $EGREP "syslen" >/dev/null 2>&1; then
23729 eval "$ossh_varname=yes"
23730else
23731 eval "$ossh_varname=no"
23732fi
23733rm -f conftest*
23734
23735fi
23736
23737 ossh_result=`eval 'echo $'"$ossh_varname"`
23738 if test -n "`echo $ossh_varname`"; then
23739 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23740echo "${ECHO_T}$ossh_result" >&6; }
23741 if test "x$ossh_result" = "xyes"; then
23742
23743cat >>confdefs.h <<\_ACEOF
23744#define HAVE_SYSLEN_IN_UTMPX 1
23745_ACEOF
23746
23747 fi
23748 else
23749 { echo "$as_me:$LINENO: result: no" >&5
23750echo "${ECHO_T}no" >&6; }
23751 fi
23752
23753
23754# look for field 'ut_pid' in header 'utmp.h'
23755 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23756 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
23757 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
23758echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
23759 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23761else
23762
23763 cat >conftest.$ac_ext <<_ACEOF
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769#include <utmp.h>
23770
23771_ACEOF
23772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23773 $EGREP "ut_pid" >/dev/null 2>&1; then
23774 eval "$ossh_varname=yes"
23775else
23776 eval "$ossh_varname=no"
23777fi
23778rm -f conftest*
23779
23780fi
23781
23782 ossh_result=`eval 'echo $'"$ossh_varname"`
23783 if test -n "`echo $ossh_varname`"; then
23784 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23785echo "${ECHO_T}$ossh_result" >&6; }
23786 if test "x$ossh_result" = "xyes"; then
23787
23788cat >>confdefs.h <<\_ACEOF
23789#define HAVE_PID_IN_UTMP 1
23790_ACEOF
23791
23792 fi
23793 else
23794 { echo "$as_me:$LINENO: result: no" >&5
23795echo "${ECHO_T}no" >&6; }
23796 fi
23797
23798
23799# look for field 'ut_type' in header 'utmp.h'
23800 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23801 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23802 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
23803echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
23804 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806else
23807
23808 cat >conftest.$ac_ext <<_ACEOF
23809/* confdefs.h. */
23810_ACEOF
23811cat confdefs.h >>conftest.$ac_ext
23812cat >>conftest.$ac_ext <<_ACEOF
23813/* end confdefs.h. */
23814#include <utmp.h>
23815
23816_ACEOF
23817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23818 $EGREP "ut_type" >/dev/null 2>&1; then
23819 eval "$ossh_varname=yes"
23820else
23821 eval "$ossh_varname=no"
23822fi
23823rm -f conftest*
23824
23825fi
23826
23827 ossh_result=`eval 'echo $'"$ossh_varname"`
23828 if test -n "`echo $ossh_varname`"; then
23829 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23830echo "${ECHO_T}$ossh_result" >&6; }
23831 if test "x$ossh_result" = "xyes"; then
23832
23833cat >>confdefs.h <<\_ACEOF
23834#define HAVE_TYPE_IN_UTMP 1
23835_ACEOF
23836
23837 fi
23838 else
23839 { echo "$as_me:$LINENO: result: no" >&5
23840echo "${ECHO_T}no" >&6; }
23841 fi
23842
23843
23844# look for field 'ut_type' in header 'utmpx.h'
23845 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23846 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23847 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23848echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23849 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852
23853 cat >conftest.$ac_ext <<_ACEOF
23854/* confdefs.h. */
23855_ACEOF
23856cat confdefs.h >>conftest.$ac_ext
23857cat >>conftest.$ac_ext <<_ACEOF
23858/* end confdefs.h. */
23859#include <utmpx.h>
23860
23861_ACEOF
23862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23863 $EGREP "ut_type" >/dev/null 2>&1; then
23864 eval "$ossh_varname=yes"
23865else
23866 eval "$ossh_varname=no"
23867fi
23868rm -f conftest*
23869
23870fi
23871
23872 ossh_result=`eval 'echo $'"$ossh_varname"`
23873 if test -n "`echo $ossh_varname`"; then
23874 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23875echo "${ECHO_T}$ossh_result" >&6; }
23876 if test "x$ossh_result" = "xyes"; then
23877
23878cat >>confdefs.h <<\_ACEOF
23879#define HAVE_TYPE_IN_UTMPX 1
23880_ACEOF
23881
23882 fi
23883 else
23884 { echo "$as_me:$LINENO: result: no" >&5
23885echo "${ECHO_T}no" >&6; }
23886 fi
23887
23888
23889# look for field 'ut_tv' in header 'utmp.h'
23890 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23891 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
23892 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
23893echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
23894 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23895 echo $ECHO_N "(cached) $ECHO_C" >&6
23896else
23897
23898 cat >conftest.$ac_ext <<_ACEOF
23899/* confdefs.h. */
23900_ACEOF
23901cat confdefs.h >>conftest.$ac_ext
23902cat >>conftest.$ac_ext <<_ACEOF
23903/* end confdefs.h. */
23904#include <utmp.h>
23905
23906_ACEOF
23907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23908 $EGREP "ut_tv" >/dev/null 2>&1; then
23909 eval "$ossh_varname=yes"
23910else
23911 eval "$ossh_varname=no"
23912fi
23913rm -f conftest*
23914
23915fi
23916
23917 ossh_result=`eval 'echo $'"$ossh_varname"`
23918 if test -n "`echo $ossh_varname`"; then
23919 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23920echo "${ECHO_T}$ossh_result" >&6; }
23921 if test "x$ossh_result" = "xyes"; then
23922
23923cat >>confdefs.h <<\_ACEOF
23924#define HAVE_TV_IN_UTMP 1
23925_ACEOF
23926
23927 fi
23928 else
23929 { echo "$as_me:$LINENO: result: no" >&5
23930echo "${ECHO_T}no" >&6; }
23931 fi
23932
23933
23934# look for field 'ut_id' in header 'utmp.h'
23935 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23936 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23937 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
23938echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
23939 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23941else
23942
23943 cat >conftest.$ac_ext <<_ACEOF
23944/* confdefs.h. */
23945_ACEOF
23946cat confdefs.h >>conftest.$ac_ext
23947cat >>conftest.$ac_ext <<_ACEOF
23948/* end confdefs.h. */
23949#include <utmp.h>
23950
23951_ACEOF
23952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23953 $EGREP "ut_id" >/dev/null 2>&1; then
23954 eval "$ossh_varname=yes"
23955else
23956 eval "$ossh_varname=no"
23957fi
23958rm -f conftest*
23959
23960fi
23961
23962 ossh_result=`eval 'echo $'"$ossh_varname"`
23963 if test -n "`echo $ossh_varname`"; then
23964 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23965echo "${ECHO_T}$ossh_result" >&6; }
23966 if test "x$ossh_result" = "xyes"; then
23967
23968cat >>confdefs.h <<\_ACEOF
23969#define HAVE_ID_IN_UTMP 1
23970_ACEOF
23971
23972 fi
23973 else
23974 { echo "$as_me:$LINENO: result: no" >&5
23975echo "${ECHO_T}no" >&6; }
23976 fi
23977
23978
23979# look for field 'ut_id' in header 'utmpx.h'
23980 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23981 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
23982 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
23983echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
23984 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986else
23987
23988 cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h. */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h. */
23994#include <utmpx.h>
23995
23996_ACEOF
23997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23998 $EGREP "ut_id" >/dev/null 2>&1; then
23999 eval "$ossh_varname=yes"
24000else
24001 eval "$ossh_varname=no"
24002fi
24003rm -f conftest*
24004
24005fi
24006
24007 ossh_result=`eval 'echo $'"$ossh_varname"`
24008 if test -n "`echo $ossh_varname`"; then
24009 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24010echo "${ECHO_T}$ossh_result" >&6; }
24011 if test "x$ossh_result" = "xyes"; then
24012
24013cat >>confdefs.h <<\_ACEOF
24014#define HAVE_ID_IN_UTMPX 1
24015_ACEOF
24016
24017 fi
24018 else
24019 { echo "$as_me:$LINENO: result: no" >&5
24020echo "${ECHO_T}no" >&6; }
24021 fi
24022
24023
24024# look for field 'ut_addr' in header 'utmp.h'
24025 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24026 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24027 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
24028echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
24029 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031else
24032
24033 cat >conftest.$ac_ext <<_ACEOF
24034/* confdefs.h. */
24035_ACEOF
24036cat confdefs.h >>conftest.$ac_ext
24037cat >>conftest.$ac_ext <<_ACEOF
24038/* end confdefs.h. */
24039#include <utmp.h>
24040
24041_ACEOF
24042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24043 $EGREP "ut_addr" >/dev/null 2>&1; then
24044 eval "$ossh_varname=yes"
24045else
24046 eval "$ossh_varname=no"
24047fi
24048rm -f conftest*
24049
24050fi
24051
24052 ossh_result=`eval 'echo $'"$ossh_varname"`
24053 if test -n "`echo $ossh_varname`"; then
24054 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24055echo "${ECHO_T}$ossh_result" >&6; }
24056 if test "x$ossh_result" = "xyes"; then
24057
24058cat >>confdefs.h <<\_ACEOF
24059#define HAVE_ADDR_IN_UTMP 1
24060_ACEOF
24061
24062 fi
24063 else
24064 { echo "$as_me:$LINENO: result: no" >&5
24065echo "${ECHO_T}no" >&6; }
24066 fi
24067
24068
24069# look for field 'ut_addr' in header 'utmpx.h'
24070 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24071 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24072 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
24073echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
24074 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24076else
24077
24078 cat >conftest.$ac_ext <<_ACEOF
24079/* confdefs.h. */
24080_ACEOF
24081cat confdefs.h >>conftest.$ac_ext
24082cat >>conftest.$ac_ext <<_ACEOF
24083/* end confdefs.h. */
24084#include <utmpx.h>
24085
24086_ACEOF
24087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24088 $EGREP "ut_addr" >/dev/null 2>&1; then
24089 eval "$ossh_varname=yes"
24090else
24091 eval "$ossh_varname=no"
24092fi
24093rm -f conftest*
24094
24095fi
24096
24097 ossh_result=`eval 'echo $'"$ossh_varname"`
24098 if test -n "`echo $ossh_varname`"; then
24099 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24100echo "${ECHO_T}$ossh_result" >&6; }
24101 if test "x$ossh_result" = "xyes"; then
24102
24103cat >>confdefs.h <<\_ACEOF
24104#define HAVE_ADDR_IN_UTMPX 1
24105_ACEOF
24106
24107 fi
24108 else
24109 { echo "$as_me:$LINENO: result: no" >&5
24110echo "${ECHO_T}no" >&6; }
24111 fi
24112
24113
24114# look for field 'ut_addr_v6' in header 'utmp.h'
24115 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24116 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24117 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
24118echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
24119 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24121else
24122
24123 cat >conftest.$ac_ext <<_ACEOF
24124/* confdefs.h. */
24125_ACEOF
24126cat confdefs.h >>conftest.$ac_ext
24127cat >>conftest.$ac_ext <<_ACEOF
24128/* end confdefs.h. */
24129#include <utmp.h>
24130
24131_ACEOF
24132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24133 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24134 eval "$ossh_varname=yes"
24135else
24136 eval "$ossh_varname=no"
24137fi
24138rm -f conftest*
24139
24140fi
24141
24142 ossh_result=`eval 'echo $'"$ossh_varname"`
24143 if test -n "`echo $ossh_varname`"; then
24144 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24145echo "${ECHO_T}$ossh_result" >&6; }
24146 if test "x$ossh_result" = "xyes"; then
24147
24148cat >>confdefs.h <<\_ACEOF
24149#define HAVE_ADDR_V6_IN_UTMP 1
24150_ACEOF
24151
24152 fi
24153 else
24154 { echo "$as_me:$LINENO: result: no" >&5
24155echo "${ECHO_T}no" >&6; }
24156 fi
24157
24158
24159# look for field 'ut_addr_v6' in header 'utmpx.h'
24160 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24161 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24162 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
24163echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
24164 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166else
24167
24168 cat >conftest.$ac_ext <<_ACEOF
24169/* confdefs.h. */
24170_ACEOF
24171cat confdefs.h >>conftest.$ac_ext
24172cat >>conftest.$ac_ext <<_ACEOF
24173/* end confdefs.h. */
24174#include <utmpx.h>
24175
24176_ACEOF
24177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24178 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24179 eval "$ossh_varname=yes"
24180else
24181 eval "$ossh_varname=no"
24182fi
24183rm -f conftest*
24184
24185fi
24186
24187 ossh_result=`eval 'echo $'"$ossh_varname"`
24188 if test -n "`echo $ossh_varname`"; then
24189 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24190echo "${ECHO_T}$ossh_result" >&6; }
24191 if test "x$ossh_result" = "xyes"; then
24192
24193cat >>confdefs.h <<\_ACEOF
24194#define HAVE_ADDR_V6_IN_UTMPX 1
24195_ACEOF
24196
24197 fi
24198 else
24199 { echo "$as_me:$LINENO: result: no" >&5
24200echo "${ECHO_T}no" >&6; }
24201 fi
24202
24203
24204# look for field 'ut_exit' in header 'utmp.h'
24205 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24206 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
24207 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
24208echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
24209 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24211else
24212
24213 cat >conftest.$ac_ext <<_ACEOF
24214/* confdefs.h. */
24215_ACEOF
24216cat confdefs.h >>conftest.$ac_ext
24217cat >>conftest.$ac_ext <<_ACEOF
24218/* end confdefs.h. */
24219#include <utmp.h>
24220
24221_ACEOF
24222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24223 $EGREP "ut_exit" >/dev/null 2>&1; then
24224 eval "$ossh_varname=yes"
24225else
24226 eval "$ossh_varname=no"
24227fi
24228rm -f conftest*
24229
24230fi
24231
24232 ossh_result=`eval 'echo $'"$ossh_varname"`
24233 if test -n "`echo $ossh_varname`"; then
24234 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24235echo "${ECHO_T}$ossh_result" >&6; }
24236 if test "x$ossh_result" = "xyes"; then
24237
24238cat >>confdefs.h <<\_ACEOF
24239#define HAVE_EXIT_IN_UTMP 1
24240_ACEOF
24241
24242 fi
24243 else
24244 { echo "$as_me:$LINENO: result: no" >&5
24245echo "${ECHO_T}no" >&6; }
24246 fi
24247
24248
24249# look for field 'ut_time' in header 'utmp.h'
24250 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24251 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24252 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
24253echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
24254 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24255 echo $ECHO_N "(cached) $ECHO_C" >&6
24256else
24257
24258 cat >conftest.$ac_ext <<_ACEOF
24259/* confdefs.h. */
24260_ACEOF
24261cat confdefs.h >>conftest.$ac_ext
24262cat >>conftest.$ac_ext <<_ACEOF
24263/* end confdefs.h. */
24264#include <utmp.h>
24265
24266_ACEOF
24267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24268 $EGREP "ut_time" >/dev/null 2>&1; then
24269 eval "$ossh_varname=yes"
24270else
24271 eval "$ossh_varname=no"
24272fi
24273rm -f conftest*
24274
24275fi
24276
24277 ossh_result=`eval 'echo $'"$ossh_varname"`
24278 if test -n "`echo $ossh_varname`"; then
24279 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24280echo "${ECHO_T}$ossh_result" >&6; }
24281 if test "x$ossh_result" = "xyes"; then
24282
24283cat >>confdefs.h <<\_ACEOF
24284#define HAVE_TIME_IN_UTMP 1
24285_ACEOF
24286
24287 fi
24288 else
24289 { echo "$as_me:$LINENO: result: no" >&5
24290echo "${ECHO_T}no" >&6; }
24291 fi
24292
24293
24294# look for field 'ut_time' in header 'utmpx.h'
24295 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24296 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24297 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
24298echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
24299 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301else
24302
24303 cat >conftest.$ac_ext <<_ACEOF
24304/* confdefs.h. */
24305_ACEOF
24306cat confdefs.h >>conftest.$ac_ext
24307cat >>conftest.$ac_ext <<_ACEOF
24308/* end confdefs.h. */
24309#include <utmpx.h>
24310
24311_ACEOF
24312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24313 $EGREP "ut_time" >/dev/null 2>&1; then
24314 eval "$ossh_varname=yes"
24315else
24316 eval "$ossh_varname=no"
24317fi
24318rm -f conftest*
24319
24320fi
24321
24322 ossh_result=`eval 'echo $'"$ossh_varname"`
24323 if test -n "`echo $ossh_varname`"; then
24324 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24325echo "${ECHO_T}$ossh_result" >&6; }
24326 if test "x$ossh_result" = "xyes"; then
24327
24328cat >>confdefs.h <<\_ACEOF
24329#define HAVE_TIME_IN_UTMPX 1
24330_ACEOF
24331
24332 fi
24333 else
24334 { echo "$as_me:$LINENO: result: no" >&5
24335echo "${ECHO_T}no" >&6; }
24336 fi
24337
24338
24339# look for field 'ut_tv' in header 'utmpx.h'
24340 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24341 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24342 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
24343echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
24344 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24345 echo $ECHO_N "(cached) $ECHO_C" >&6
24346else
24347
24348 cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h. */
24350_ACEOF
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h. */
24354#include <utmpx.h>
24355
24356_ACEOF
24357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24358 $EGREP "ut_tv" >/dev/null 2>&1; then
24359 eval "$ossh_varname=yes"
24360else
24361 eval "$ossh_varname=no"
24362fi
24363rm -f conftest*
24364
24365fi
24366
24367 ossh_result=`eval 'echo $'"$ossh_varname"`
24368 if test -n "`echo $ossh_varname`"; then
24369 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24370echo "${ECHO_T}$ossh_result" >&6; }
24371 if test "x$ossh_result" = "xyes"; then
24372
24373cat >>confdefs.h <<\_ACEOF
24374#define HAVE_TV_IN_UTMPX 1
24375_ACEOF
24376
24377 fi
24378 else
24379 { echo "$as_me:$LINENO: result: no" >&5
24380echo "${ECHO_T}no" >&6; }
24381 fi
24382
24383
24384{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
24385echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
24386if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388else
24389 cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */
24395$ac_includes_default
24396int
24397main ()
24398{
24399static struct stat ac_aggr;
24400if (ac_aggr.st_blksize)
24401return 0;
24402 ;
24403 return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext
24407if { (ac_try="$ac_compile"
24408case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411esac
24412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_compile") 2>conftest.er1
24414 ac_status=$?
24415 grep -v '^ *+' conftest.er1 >conftest.err
24416 rm -f conftest.er1
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest.$ac_objext; then
24423 ac_cv_member_struct_stat_st_blksize=yes
24424else
24425 echo "$as_me: failed program was:" >&5
24426sed 's/^/| /' conftest.$ac_ext >&5
24427
24428 cat >conftest.$ac_ext <<_ACEOF
24429/* confdefs.h. */
24430_ACEOF
24431cat confdefs.h >>conftest.$ac_ext
24432cat >>conftest.$ac_ext <<_ACEOF
24433/* end confdefs.h. */
24434$ac_includes_default
24435int
24436main ()
24437{
24438static struct stat ac_aggr;
24439if (sizeof ac_aggr.st_blksize)
24440return 0;
24441 ;
24442 return 0;
24443}
24444_ACEOF
24445rm -f conftest.$ac_objext
24446if { (ac_try="$ac_compile"
24447case "(($ac_try" in
24448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24449 *) ac_try_echo=$ac_try;;
24450esac
24451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24452 (eval "$ac_compile") 2>conftest.er1
24453 ac_status=$?
24454 grep -v '^ *+' conftest.er1 >conftest.err
24455 rm -f conftest.er1
24456 cat conftest.err >&5
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); } && {
24459 test -z "$ac_c_werror_flag" ||
24460 test ! -s conftest.err
24461 } && test -s conftest.$ac_objext; then
24462 ac_cv_member_struct_stat_st_blksize=yes
24463else
24464 echo "$as_me: failed program was:" >&5
24465sed 's/^/| /' conftest.$ac_ext >&5
24466
24467 ac_cv_member_struct_stat_st_blksize=no
24468fi
24469
24470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471fi
24472
24473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474fi
24475{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
24476echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
24477if test $ac_cv_member_struct_stat_st_blksize = yes; then
24478
24479cat >>confdefs.h <<_ACEOF
24480#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24481_ACEOF
24482
24483
24484fi
24485
24486{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
24487echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
24488if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
24489 echo $ECHO_N "(cached) $ECHO_C" >&6
24490else
24491 cat >conftest.$ac_ext <<_ACEOF
24492/* confdefs.h. */
24493_ACEOF
24494cat confdefs.h >>conftest.$ac_ext
24495cat >>conftest.$ac_ext <<_ACEOF
24496/* end confdefs.h. */
24497
24498#include <stdio.h>
24499#if HAVE_SYS_TYPES_H
24500# include <sys/types.h>
24501#endif
24502#include <netinet/in.h>
24503#include <arpa/nameser.h>
24504#include <resolv.h>
24505
24506
24507int
24508main ()
24509{
24510static struct __res_state ac_aggr;
24511if (ac_aggr.retrans)
24512return 0;
24513 ;
24514 return 0;
24515}
24516_ACEOF
24517rm -f conftest.$ac_objext
24518if { (ac_try="$ac_compile"
24519case "(($ac_try" in
24520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521 *) ac_try_echo=$ac_try;;
24522esac
24523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 ac_cv_member_struct___res_state_retrans=yes
24535else
24536 echo "$as_me: failed program was:" >&5
24537sed 's/^/| /' conftest.$ac_ext >&5
24538
24539 cat >conftest.$ac_ext <<_ACEOF
24540/* confdefs.h. */
24541_ACEOF
24542cat confdefs.h >>conftest.$ac_ext
24543cat >>conftest.$ac_ext <<_ACEOF
24544/* end confdefs.h. */
24545
24546#include <stdio.h>
24547#if HAVE_SYS_TYPES_H
24548# include <sys/types.h>
24549#endif
24550#include <netinet/in.h>
24551#include <arpa/nameser.h>
24552#include <resolv.h>
24553
24554
24555int
24556main ()
24557{
24558static struct __res_state ac_aggr;
24559if (sizeof ac_aggr.retrans)
24560return 0;
24561 ;
24562 return 0;
24563}
24564_ACEOF
24565rm -f conftest.$ac_objext
24566if { (ac_try="$ac_compile"
24567case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570esac
24571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_compile") 2>conftest.er1
24573 ac_status=$?
24574 grep -v '^ *+' conftest.er1 >conftest.err
24575 rm -f conftest.er1
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest.$ac_objext; then
24582 ac_cv_member_struct___res_state_retrans=yes
24583else
24584 echo "$as_me: failed program was:" >&5
24585sed 's/^/| /' conftest.$ac_ext >&5
24586
24587 ac_cv_member_struct___res_state_retrans=no
24588fi
24589
24590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591fi
24592
24593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594fi
24595{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
24596echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
24597if test $ac_cv_member_struct___res_state_retrans = yes; then
24598 :
24599else
24600
24601cat >>confdefs.h <<\_ACEOF
24602#define __res_state state
24603_ACEOF
24604
24605fi
24606
24607
24608{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
24609echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24610if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24612else
24613
24614 cat >conftest.$ac_ext <<_ACEOF
24615/* confdefs.h. */
24616_ACEOF
24617cat confdefs.h >>conftest.$ac_ext
24618cat >>conftest.$ac_ext <<_ACEOF
24619/* end confdefs.h. */
24620
24621#include <sys/types.h>
24622#include <sys/socket.h>
24623
24624int
24625main ()
24626{
24627 struct sockaddr_storage s; s.ss_family = 1;
24628 ;
24629 return 0;
24630}
24631_ACEOF
24632rm -f conftest.$ac_objext
24633if { (ac_try="$ac_compile"
24634case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24637esac
24638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_compile") 2>conftest.er1
24640 ac_status=$?
24641 grep -v '^ *+' conftest.er1 >conftest.err
24642 rm -f conftest.er1
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest.$ac_objext; then
24649 ac_cv_have_ss_family_in_struct_ss="yes"
24650else
24651 echo "$as_me: failed program was:" >&5
24652sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ac_cv_have_ss_family_in_struct_ss="no"
24655fi
24656
24657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658
24659fi
24660{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
24661echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
24662if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
24663
24664cat >>confdefs.h <<\_ACEOF
24665#define HAVE_SS_FAMILY_IN_SS 1
24666_ACEOF
24667
24668fi
24669
24670{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
24671echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24672if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
24673 echo $ECHO_N "(cached) $ECHO_C" >&6
24674else
24675
24676 cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682
24683#include <sys/types.h>
24684#include <sys/socket.h>
24685
24686int
24687main ()
24688{
24689 struct sockaddr_storage s; s.__ss_family = 1;
24690 ;
24691 return 0;
24692}
24693_ACEOF
24694rm -f conftest.$ac_objext
24695if { (ac_try="$ac_compile"
24696case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699esac
24700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
24711 ac_cv_have___ss_family_in_struct_ss="yes"
24712else
24713 echo "$as_me: failed program was:" >&5
24714sed 's/^/| /' conftest.$ac_ext >&5
24715
24716 ac_cv_have___ss_family_in_struct_ss="no"
24717
24718fi
24719
24720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721
24722fi
24723{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
24724echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
24725if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
24726
24727cat >>confdefs.h <<\_ACEOF
24728#define HAVE___SS_FAMILY_IN_SS 1
24729_ACEOF
24730
24731fi
24732
24733{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
24734echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
24735if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737else
24738
24739 cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
24745
24746#include <pwd.h>
24747
24748int
24749main ()
24750{
24751 struct passwd p; p.pw_class = 0;
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (ac_try="$ac_compile"
24758case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761esac
24762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_compile") 2>conftest.er1
24764 ac_status=$?
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && {
24770 test -z "$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24772 } && test -s conftest.$ac_objext; then
24773 ac_cv_have_pw_class_in_struct_passwd="yes"
24774else
24775 echo "$as_me: failed program was:" >&5
24776sed 's/^/| /' conftest.$ac_ext >&5
24777
24778 ac_cv_have_pw_class_in_struct_passwd="no"
24779
24780fi
24781
24782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783
24784fi
24785{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
24786echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
24787if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
24788
24789cat >>confdefs.h <<\_ACEOF
24790#define HAVE_PW_CLASS_IN_PASSWD 1
24791_ACEOF
24792
24793fi
24794
24795{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
24796echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
24797if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24799else
24800
24801 cat >conftest.$ac_ext <<_ACEOF
24802/* confdefs.h. */
24803_ACEOF
24804cat confdefs.h >>conftest.$ac_ext
24805cat >>conftest.$ac_ext <<_ACEOF
24806/* end confdefs.h. */
24807
24808#include <pwd.h>
24809
24810int
24811main ()
24812{
24813 struct passwd p; p.pw_expire = 0;
24814 ;
24815 return 0;
24816}
24817_ACEOF
24818rm -f conftest.$ac_objext
24819if { (ac_try="$ac_compile"
24820case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24823esac
24824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_cv_have_pw_expire_in_struct_passwd="yes"
24836else
24837 echo "$as_me: failed program was:" >&5
24838sed 's/^/| /' conftest.$ac_ext >&5
24839
24840 ac_cv_have_pw_expire_in_struct_passwd="no"
24841
24842fi
24843
24844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24845
24846fi
24847{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24848echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24849if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
24850
24851cat >>confdefs.h <<\_ACEOF
24852#define HAVE_PW_EXPIRE_IN_PASSWD 1
24853_ACEOF
24854
24855fi
24856
24857{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
24858echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
24859if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24861else
24862
24863 cat >conftest.$ac_ext <<_ACEOF
24864/* confdefs.h. */
24865_ACEOF
24866cat confdefs.h >>conftest.$ac_ext
24867cat >>conftest.$ac_ext <<_ACEOF
24868/* end confdefs.h. */
24869
24870#include <pwd.h>
24871
24872int
24873main ()
24874{
24875 struct passwd p; p.pw_change = 0;
24876 ;
24877 return 0;
24878}
24879_ACEOF
24880rm -f conftest.$ac_objext
24881if { (ac_try="$ac_compile"
24882case "(($ac_try" in
24883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 *) ac_try_echo=$ac_try;;
24885esac
24886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24887 (eval "$ac_compile") 2>conftest.er1
24888 ac_status=$?
24889 grep -v '^ *+' conftest.er1 >conftest.err
24890 rm -f conftest.er1
24891 cat conftest.err >&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } && {
24894 test -z "$ac_c_werror_flag" ||
24895 test ! -s conftest.err
24896 } && test -s conftest.$ac_objext; then
24897 ac_cv_have_pw_change_in_struct_passwd="yes"
24898else
24899 echo "$as_me: failed program was:" >&5
24900sed 's/^/| /' conftest.$ac_ext >&5
24901
24902 ac_cv_have_pw_change_in_struct_passwd="no"
24903
24904fi
24905
24906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24907
24908fi
24909{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
24910echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
24911if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
24912
24913cat >>confdefs.h <<\_ACEOF
24914#define HAVE_PW_CHANGE_IN_PASSWD 1
24915_ACEOF
24916
24917fi
24918
24919{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
24920echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
24921if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24923else
24924
24925 cat >conftest.$ac_ext <<_ACEOF
24926
24927#include <sys/types.h>
24928#include <sys/socket.h>
24929#include <sys/uio.h>
24930int main() {
24931#ifdef msg_accrights
24932#error "msg_accrights is a macro"
24933exit(1);
24934#endif
24935struct msghdr m;
24936m.msg_accrights = 0;
24937exit(0);
24938}
24939
24940_ACEOF
24941rm -f conftest.$ac_objext
24942if { (ac_try="$ac_compile"
24943case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24946esac
24947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_compile") 2>conftest.er1
24949 ac_status=$?
24950 grep -v '^ *+' conftest.er1 >conftest.err
24951 rm -f conftest.er1
24952 cat conftest.err >&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } && {
24955 test -z "$ac_c_werror_flag" ||
24956 test ! -s conftest.err
24957 } && test -s conftest.$ac_objext; then
24958 ac_cv_have_accrights_in_msghdr="yes"
24959else
24960 echo "$as_me: failed program was:" >&5
24961sed 's/^/| /' conftest.$ac_ext >&5
24962
24963 ac_cv_have_accrights_in_msghdr="no"
24964
24965fi
24966
24967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24968
24969fi
24970{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
24971echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
24972if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
24973
24974cat >>confdefs.h <<\_ACEOF
24975#define HAVE_ACCRIGHTS_IN_MSGHDR 1
24976_ACEOF
24977
24978fi
24979
24980{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
24981echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
24982cat >conftest.$ac_ext <<_ACEOF
24983/* confdefs.h. */
24984_ACEOF
24985cat confdefs.h >>conftest.$ac_ext
24986cat >>conftest.$ac_ext <<_ACEOF
24987/* end confdefs.h. */
24988
24989#include <sys/types.h>
24990#include <sys/stat.h>
24991#ifdef HAVE_SYS_TIME_H
24992# include <sys/time.h>
24993#endif
24994#ifdef HAVE_SYS_MOUNT_H
24995#include <sys/mount.h>
24996#endif
24997#ifdef HAVE_SYS_STATVFS_H
24998#include <sys/statvfs.h>
24999#endif
25000
25001int
25002main ()
25003{
25004struct statvfs s; s.f_fsid = 0;
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009rm -f conftest.$ac_objext
25010if { (ac_try="$ac_compile"
25011case "(($ac_try" in
25012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013 *) ac_try_echo=$ac_try;;
25014esac
25015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_compile") 2>conftest.er1
25017 ac_status=$?
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } && {
25023 test -z "$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 } && test -s conftest.$ac_objext; then
25026 { echo "$as_me:$LINENO: result: yes" >&5
25027echo "${ECHO_T}yes" >&6; }
25028else
25029 echo "$as_me: failed program was:" >&5
25030sed 's/^/| /' conftest.$ac_ext >&5
25031
25032 { echo "$as_me:$LINENO: result: no" >&5
25033echo "${ECHO_T}no" >&6; }
25034
25035 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
25036echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
25037 cat >conftest.$ac_ext <<_ACEOF
25038/* confdefs.h. */
25039_ACEOF
25040cat confdefs.h >>conftest.$ac_ext
25041cat >>conftest.$ac_ext <<_ACEOF
25042/* end confdefs.h. */
25043
25044#include <sys/types.h>
25045#include <sys/statvfs.h>
25046int
25047main ()
25048{
25049fsid_t t; t.val[0] = 0;
25050 ;
25051 return 0;
25052}
25053_ACEOF
25054rm -f conftest.$ac_objext
25055if { (ac_try="$ac_compile"
25056case "(($ac_try" in
25057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058 *) ac_try_echo=$ac_try;;
25059esac
25060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061 (eval "$ac_compile") 2>conftest.er1
25062 ac_status=$?
25063 grep -v '^ *+' conftest.er1 >conftest.err
25064 rm -f conftest.er1
25065 cat conftest.err >&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } && {
25068 test -z "$ac_c_werror_flag" ||
25069 test ! -s conftest.err
25070 } && test -s conftest.$ac_objext; then
25071 { echo "$as_me:$LINENO: result: yes" >&5
25072echo "${ECHO_T}yes" >&6; }
25073
25074cat >>confdefs.h <<\_ACEOF
25075#define FSID_HAS_VAL 1
25076_ACEOF
25077
25078else
25079 echo "$as_me: failed program was:" >&5
25080sed 's/^/| /' conftest.$ac_ext >&5
25081
25082 { echo "$as_me:$LINENO: result: no" >&5
25083echo "${ECHO_T}no" >&6; }
25084fi
25085
25086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087
25088 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
25089echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
25090 cat >conftest.$ac_ext <<_ACEOF
25091/* confdefs.h. */
25092_ACEOF
25093cat confdefs.h >>conftest.$ac_ext
25094cat >>conftest.$ac_ext <<_ACEOF
25095/* end confdefs.h. */
25096
25097#include <sys/types.h>
25098#include <sys/statvfs.h>
25099int
25100main ()
25101{
25102fsid_t t; t.__val[0] = 0;
25103 ;
25104 return 0;
25105}
25106_ACEOF
25107rm -f conftest.$ac_objext
25108if { (ac_try="$ac_compile"
25109case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112esac
25113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_compile") 2>conftest.er1
25115 ac_status=$?
25116 grep -v '^ *+' conftest.er1 >conftest.err
25117 rm -f conftest.er1
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest.$ac_objext; then
25124 { echo "$as_me:$LINENO: result: yes" >&5
25125echo "${ECHO_T}yes" >&6; }
25126
25127cat >>confdefs.h <<\_ACEOF
25128#define FSID_HAS___VAL 1
25129_ACEOF
25130
25131else
25132 echo "$as_me: failed program was:" >&5
25133sed 's/^/| /' conftest.$ac_ext >&5
25134
25135 { echo "$as_me:$LINENO: result: no" >&5
25136echo "${ECHO_T}no" >&6; }
25137fi
25138
25139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25140
25141fi
25142
25143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25144
25145{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
25146echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
25147if test "${ac_cv_have_control_in_msghdr+set}" = set; then
25148 echo $ECHO_N "(cached) $ECHO_C" >&6
25149else
25150
25151 cat >conftest.$ac_ext <<_ACEOF
25152
25153#include <sys/types.h>
25154#include <sys/socket.h>
25155#include <sys/uio.h>
25156int main() {
25157#ifdef msg_control
25158#error "msg_control is a macro"
25159exit(1);
25160#endif
25161struct msghdr m;
25162m.msg_control = 0;
25163exit(0);
25164}
25165
25166_ACEOF
25167rm -f conftest.$ac_objext
25168if { (ac_try="$ac_compile"
25169case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172esac
25173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_compile") 2>conftest.er1
25175 ac_status=$?
25176 grep -v '^ *+' conftest.er1 >conftest.err
25177 rm -f conftest.er1
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } && {
25181 test -z "$ac_c_werror_flag" ||
25182 test ! -s conftest.err
25183 } && test -s conftest.$ac_objext; then
25184 ac_cv_have_control_in_msghdr="yes"
25185else
25186 echo "$as_me: failed program was:" >&5
25187sed 's/^/| /' conftest.$ac_ext >&5
25188
25189 ac_cv_have_control_in_msghdr="no"
25190
25191fi
25192
25193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25194
25195fi
25196{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
25197echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
25198if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
25199
25200cat >>confdefs.h <<\_ACEOF
25201#define HAVE_CONTROL_IN_MSGHDR 1
25202_ACEOF
25203
25204fi
25205
25206{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
25207echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
25208if test "${ac_cv_libc_defines___progname+set}" = set; then
25209 echo $ECHO_N "(cached) $ECHO_C" >&6
25210else
25211
25212 cat >conftest.$ac_ext <<_ACEOF
25213/* confdefs.h. */
25214_ACEOF
25215cat confdefs.h >>conftest.$ac_ext
25216cat >>conftest.$ac_ext <<_ACEOF
25217/* end confdefs.h. */
25218
25219int
25220main ()
25221{
25222 extern char *__progname; printf("%s", __progname);
25223 ;
25224 return 0;
25225}
25226_ACEOF
25227rm -f conftest.$ac_objext conftest$ac_exeext
25228if { (ac_try="$ac_link"
25229case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232esac
25233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_link") 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest$ac_exeext &&
25244 $as_test_x conftest$ac_exeext; then
25245 ac_cv_libc_defines___progname="yes"
25246else
25247 echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ac_cv_libc_defines___progname="no"
25251
25252fi
25253
25254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25255 conftest$ac_exeext conftest.$ac_ext
25256
25257fi
25258{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
25259echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
25260if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
25261
25262cat >>confdefs.h <<\_ACEOF
25263#define HAVE___PROGNAME 1
25264_ACEOF
25265
25266fi
25267
25268{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
25269echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
25270if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25272else
25273
25274 cat >conftest.$ac_ext <<_ACEOF
25275/* confdefs.h. */
25276_ACEOF
25277cat confdefs.h >>conftest.$ac_ext
25278cat >>conftest.$ac_ext <<_ACEOF
25279/* end confdefs.h. */
25280
25281#include <stdio.h>
25282
25283int
25284main ()
25285{
25286 printf("%s", __FUNCTION__);
25287 ;
25288 return 0;
25289}
25290_ACEOF
25291rm -f conftest.$ac_objext conftest$ac_exeext
25292if { (ac_try="$ac_link"
25293case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25296esac
25297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_link") 2>conftest.er1
25299 ac_status=$?
25300 grep -v '^ *+' conftest.er1 >conftest.err
25301 rm -f conftest.er1
25302 cat conftest.err >&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); } && {
25305 test -z "$ac_c_werror_flag" ||
25306 test ! -s conftest.err
25307 } && test -s conftest$ac_exeext &&
25308 $as_test_x conftest$ac_exeext; then
25309 ac_cv_cc_implements___FUNCTION__="yes"
25310else
25311 echo "$as_me: failed program was:" >&5
25312sed 's/^/| /' conftest.$ac_ext >&5
25313
25314 ac_cv_cc_implements___FUNCTION__="no"
25315
25316fi
25317
25318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25319 conftest$ac_exeext conftest.$ac_ext
25320
25321fi
25322{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
25323echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
25324if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
25325
25326cat >>confdefs.h <<\_ACEOF
25327#define HAVE___FUNCTION__ 1
25328_ACEOF
25329
25330fi
25331
25332{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
25333echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
25334if test "${ac_cv_cc_implements___func__+set}" = set; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25336else
25337
25338 cat >conftest.$ac_ext <<_ACEOF
25339/* confdefs.h. */
25340_ACEOF
25341cat confdefs.h >>conftest.$ac_ext
25342cat >>conftest.$ac_ext <<_ACEOF
25343/* end confdefs.h. */
25344
25345#include <stdio.h>
25346
25347int
25348main ()
25349{
25350 printf("%s", __func__);
25351 ;
25352 return 0;
25353}
25354_ACEOF
25355rm -f conftest.$ac_objext conftest$ac_exeext
25356if { (ac_try="$ac_link"
25357case "(($ac_try" in
25358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25360esac
25361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25362 (eval "$ac_link") 2>conftest.er1
25363 ac_status=$?
25364 grep -v '^ *+' conftest.er1 >conftest.err
25365 rm -f conftest.er1
25366 cat conftest.err >&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } && {
25369 test -z "$ac_c_werror_flag" ||
25370 test ! -s conftest.err
25371 } && test -s conftest$ac_exeext &&
25372 $as_test_x conftest$ac_exeext; then
25373 ac_cv_cc_implements___func__="yes"
25374else
25375 echo "$as_me: failed program was:" >&5
25376sed 's/^/| /' conftest.$ac_ext >&5
25377
25378 ac_cv_cc_implements___func__="no"
25379
25380fi
25381
25382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25383 conftest$ac_exeext conftest.$ac_ext
25384
25385fi
25386{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
25387echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
25388if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
25389
25390cat >>confdefs.h <<\_ACEOF
25391#define HAVE___func__ 1
25392_ACEOF
25393
25394fi
25395
25396{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
25397echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
25398if test "${ac_cv_have_va_copy+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
25400else
25401
25402 cat >conftest.$ac_ext <<_ACEOF
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408#include <stdarg.h>
25409 va_list x,y;
25410int
25411main ()
25412{
25413va_copy(x,y);
25414 ;
25415 return 0;
25416}
25417_ACEOF
25418rm -f conftest.$ac_objext conftest$ac_exeext
25419if { (ac_try="$ac_link"
25420case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25423esac
25424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>conftest.er1
25426 ac_status=$?
25427 grep -v '^ *+' conftest.er1 >conftest.err
25428 rm -f conftest.er1
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } && {
25432 test -z "$ac_c_werror_flag" ||
25433 test ! -s conftest.err
25434 } && test -s conftest$ac_exeext &&
25435 $as_test_x conftest$ac_exeext; then
25436 ac_cv_have_va_copy="yes"
25437else
25438 echo "$as_me: failed program was:" >&5
25439sed 's/^/| /' conftest.$ac_ext >&5
25440
25441 ac_cv_have_va_copy="no"
25442
25443fi
25444
25445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25446 conftest$ac_exeext conftest.$ac_ext
25447
25448fi
25449{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
25450echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
25451if test "x$ac_cv_have_va_copy" = "xyes" ; then
25452
25453cat >>confdefs.h <<\_ACEOF
25454#define HAVE_VA_COPY 1
25455_ACEOF
25456
25457fi
25458
25459{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
25460echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
25461if test "${ac_cv_have___va_copy+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464
25465 cat >conftest.$ac_ext <<_ACEOF
25466/* confdefs.h. */
25467_ACEOF
25468cat confdefs.h >>conftest.$ac_ext
25469cat >>conftest.$ac_ext <<_ACEOF
25470/* end confdefs.h. */
25471#include <stdarg.h>
25472 va_list x,y;
25473int
25474main ()
25475{
25476__va_copy(x,y);
25477 ;
25478 return 0;
25479}
25480_ACEOF
25481rm -f conftest.$ac_objext conftest$ac_exeext
25482if { (ac_try="$ac_link"
25483case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25486esac
25487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488 (eval "$ac_link") 2>conftest.er1
25489 ac_status=$?
25490 grep -v '^ *+' conftest.er1 >conftest.err
25491 rm -f conftest.er1
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && {
25495 test -z "$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25497 } && test -s conftest$ac_exeext &&
25498 $as_test_x conftest$ac_exeext; then
25499 ac_cv_have___va_copy="yes"
25500else
25501 echo "$as_me: failed program was:" >&5
25502sed 's/^/| /' conftest.$ac_ext >&5
25503
25504 ac_cv_have___va_copy="no"
25505
25506fi
25507
25508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25509 conftest$ac_exeext conftest.$ac_ext
25510
25511fi
25512{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
25513echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
25514if test "x$ac_cv_have___va_copy" = "xyes" ; then
25515
25516cat >>confdefs.h <<\_ACEOF
25517#define HAVE___VA_COPY 1
25518_ACEOF
25519
25520fi
25521
25522{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
25523echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
25524if test "${ac_cv_have_getopt_optreset+set}" = set; then
25525 echo $ECHO_N "(cached) $ECHO_C" >&6
25526else
25527
25528 cat >conftest.$ac_ext <<_ACEOF
25529/* confdefs.h. */
25530_ACEOF
25531cat confdefs.h >>conftest.$ac_ext
25532cat >>conftest.$ac_ext <<_ACEOF
25533/* end confdefs.h. */
25534
25535#include <getopt.h>
25536
25537int
25538main ()
25539{
25540 extern int optreset; optreset = 0;
25541 ;
25542 return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext conftest$ac_exeext
25546if { (ac_try="$ac_link"
25547case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25550esac
25551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552 (eval "$ac_link") 2>conftest.er1
25553 ac_status=$?
25554 grep -v '^ *+' conftest.er1 >conftest.err
25555 rm -f conftest.er1
25556 cat conftest.err >&5
25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && {
25559 test -z "$ac_c_werror_flag" ||
25560 test ! -s conftest.err
25561 } && test -s conftest$ac_exeext &&
25562 $as_test_x conftest$ac_exeext; then
25563 ac_cv_have_getopt_optreset="yes"
25564else
25565 echo "$as_me: failed program was:" >&5
25566sed 's/^/| /' conftest.$ac_ext >&5
25567
25568 ac_cv_have_getopt_optreset="no"
25569
25570fi
25571
25572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25573 conftest$ac_exeext conftest.$ac_ext
25574
25575fi
25576{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
25577echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
25578if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
25579
25580cat >>confdefs.h <<\_ACEOF
25581#define HAVE_GETOPT_OPTRESET 1
25582_ACEOF
25583
25584fi
25585
25586{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
25587echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
25588if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
25589 echo $ECHO_N "(cached) $ECHO_C" >&6
25590else
25591
25592 cat >conftest.$ac_ext <<_ACEOF
25593/* confdefs.h. */
25594_ACEOF
25595cat confdefs.h >>conftest.$ac_ext
25596cat >>conftest.$ac_ext <<_ACEOF
25597/* end confdefs.h. */
25598
25599int
25600main ()
25601{
25602 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
25603 ;
25604 return 0;
25605}
25606_ACEOF
25607rm -f conftest.$ac_objext conftest$ac_exeext
25608if { (ac_try="$ac_link"
25609case "(($ac_try" in
25610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611 *) ac_try_echo=$ac_try;;
25612esac
25613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614 (eval "$ac_link") 2>conftest.er1
25615 ac_status=$?
25616 grep -v '^ *+' conftest.er1 >conftest.err
25617 rm -f conftest.er1
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } && {
25621 test -z "$ac_c_werror_flag" ||
25622 test ! -s conftest.err
25623 } && test -s conftest$ac_exeext &&
25624 $as_test_x conftest$ac_exeext; then
25625 ac_cv_libc_defines_sys_errlist="yes"
25626else
25627 echo "$as_me: failed program was:" >&5
25628sed 's/^/| /' conftest.$ac_ext >&5
25629
25630 ac_cv_libc_defines_sys_errlist="no"
25631
25632fi
25633
25634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25635 conftest$ac_exeext conftest.$ac_ext
25636
25637fi
25638{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
25639echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
25640if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
25641
25642cat >>confdefs.h <<\_ACEOF
25643#define HAVE_SYS_ERRLIST 1
25644_ACEOF
25645
25646fi
25647
25648
25649{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
25650echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
25651if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
25652 echo $ECHO_N "(cached) $ECHO_C" >&6
25653else
25654
25655 cat >conftest.$ac_ext <<_ACEOF
25656/* confdefs.h. */
25657_ACEOF
25658cat confdefs.h >>conftest.$ac_ext
25659cat >>conftest.$ac_ext <<_ACEOF
25660/* end confdefs.h. */
25661
25662int
25663main ()
25664{
25665 extern int sys_nerr; printf("%i", sys_nerr);
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670rm -f conftest.$ac_objext conftest$ac_exeext
25671if { (ac_try="$ac_link"
25672case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25675esac
25676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677 (eval "$ac_link") 2>conftest.er1
25678 ac_status=$?
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest$ac_exeext &&
25687 $as_test_x conftest$ac_exeext; then
25688 ac_cv_libc_defines_sys_nerr="yes"
25689else
25690 echo "$as_me: failed program was:" >&5
25691sed 's/^/| /' conftest.$ac_ext >&5
25692
25693 ac_cv_libc_defines_sys_nerr="no"
25694
25695fi
25696
25697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25698 conftest$ac_exeext conftest.$ac_ext
25699
25700fi
25701{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
25702echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
25703if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
25704
25705cat >>confdefs.h <<\_ACEOF
25706#define HAVE_SYS_NERR 1
25707_ACEOF
25708
25709fi
25710
25711# Check libraries needed by DNS fingerprint support
25712{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25713echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25714if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25716else
25717 ac_func_search_save_LIBS=$LIBS
25718cat >conftest.$ac_ext <<_ACEOF
25719/* confdefs.h. */
25720_ACEOF
25721cat confdefs.h >>conftest.$ac_ext
25722cat >>conftest.$ac_ext <<_ACEOF
25723/* end confdefs.h. */
25724
25725/* Override any GCC internal prototype to avoid an error.
25726 Use char because int might match the return type of a GCC
25727 builtin and then its argument prototype would still apply. */
25728#ifdef __cplusplus
25729extern "C"
25730#endif
25731char getrrsetbyname ();
25732int
25733main ()
25734{
25735return getrrsetbyname ();
25736 ;
25737 return 0;
25738}
25739_ACEOF
25740for ac_lib in '' resolv; do
25741 if test -z "$ac_lib"; then
25742 ac_res="none required"
25743 else
25744 ac_res=-l$ac_lib
25745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25746 fi
25747 rm -f conftest.$ac_objext conftest$ac_exeext
25748if { (ac_try="$ac_link"
25749case "(($ac_try" in
25750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751 *) ac_try_echo=$ac_try;;
25752esac
25753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754 (eval "$ac_link") 2>conftest.er1
25755 ac_status=$?
25756 grep -v '^ *+' conftest.er1 >conftest.err
25757 rm -f conftest.er1
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } && {
25761 test -z "$ac_c_werror_flag" ||
25762 test ! -s conftest.err
25763 } && test -s conftest$ac_exeext &&
25764 $as_test_x conftest$ac_exeext; then
25765 ac_cv_search_getrrsetbyname=$ac_res
25766else
25767 echo "$as_me: failed program was:" >&5
25768sed 's/^/| /' conftest.$ac_ext >&5
25769
25770
25771fi
25772
25773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25774 conftest$ac_exeext
25775 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25776 break
25777fi
25778done
25779if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25780 :
25781else
25782 ac_cv_search_getrrsetbyname=no
25783fi
25784rm conftest.$ac_ext
25785LIBS=$ac_func_search_save_LIBS
25786fi
25787{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25788echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25789ac_res=$ac_cv_search_getrrsetbyname
25790if test "$ac_res" != no; then
25791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25792
25793cat >>confdefs.h <<\_ACEOF
25794#define HAVE_GETRRSETBYNAME 1
25795_ACEOF
25796
25797else
25798
25799 # Needed by our getrrsetbyname()
25800 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25801echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25802if test "${ac_cv_search_res_query+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25804else
25805 ac_func_search_save_LIBS=$LIBS
25806cat >conftest.$ac_ext <<_ACEOF
25807/* confdefs.h. */
25808_ACEOF
25809cat confdefs.h >>conftest.$ac_ext
25810cat >>conftest.$ac_ext <<_ACEOF
25811/* end confdefs.h. */
25812
25813/* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25816#ifdef __cplusplus
25817extern "C"
25818#endif
25819char res_query ();
25820int
25821main ()
25822{
25823return res_query ();
25824 ;
25825 return 0;
25826}
25827_ACEOF
25828for ac_lib in '' resolv; do
25829 if test -z "$ac_lib"; then
25830 ac_res="none required"
25831 else
25832 ac_res=-l$ac_lib
25833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25834 fi
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836if { (ac_try="$ac_link"
25837case "(($ac_try" in
25838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25840esac
25841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842 (eval "$ac_link") 2>conftest.er1
25843 ac_status=$?
25844 grep -v '^ *+' conftest.er1 >conftest.err
25845 rm -f conftest.er1
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } && {
25849 test -z "$ac_c_werror_flag" ||
25850 test ! -s conftest.err
25851 } && test -s conftest$ac_exeext &&
25852 $as_test_x conftest$ac_exeext; then
25853 ac_cv_search_res_query=$ac_res
25854else
25855 echo "$as_me: failed program was:" >&5
25856sed 's/^/| /' conftest.$ac_ext >&5
25857
25858
25859fi
25860
25861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862 conftest$ac_exeext
25863 if test "${ac_cv_search_res_query+set}" = set; then
25864 break
25865fi
25866done
25867if test "${ac_cv_search_res_query+set}" = set; then
25868 :
25869else
25870 ac_cv_search_res_query=no
25871fi
25872rm conftest.$ac_ext
25873LIBS=$ac_func_search_save_LIBS
25874fi
25875{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
25876echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
25877ac_res=$ac_cv_search_res_query
25878if test "$ac_res" != no; then
25879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25880
25881fi
25882
25883 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
25884echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
25885if test "${ac_cv_search_dn_expand+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25887else
25888 ac_func_search_save_LIBS=$LIBS
25889cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895
25896/* Override any GCC internal prototype to avoid an error.
25897 Use char because int might match the return type of a GCC
25898 builtin and then its argument prototype would still apply. */
25899#ifdef __cplusplus
25900extern "C"
25901#endif
25902char dn_expand ();
25903int
25904main ()
25905{
25906return dn_expand ();
25907 ;
25908 return 0;
25909}
25910_ACEOF
25911for ac_lib in '' resolv; do
25912 if test -z "$ac_lib"; then
25913 ac_res="none required"
25914 else
25915 ac_res=-l$ac_lib
25916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25917 fi
25918 rm -f conftest.$ac_objext conftest$ac_exeext
25919if { (ac_try="$ac_link"
25920case "(($ac_try" in
25921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922 *) ac_try_echo=$ac_try;;
25923esac
25924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925 (eval "$ac_link") 2>conftest.er1
25926 ac_status=$?
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } && {
25932 test -z "$ac_c_werror_flag" ||
25933 test ! -s conftest.err
25934 } && test -s conftest$ac_exeext &&
25935 $as_test_x conftest$ac_exeext; then
25936 ac_cv_search_dn_expand=$ac_res
25937else
25938 echo "$as_me: failed program was:" >&5
25939sed 's/^/| /' conftest.$ac_ext >&5
25940
25941
25942fi
25943
25944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25945 conftest$ac_exeext
25946 if test "${ac_cv_search_dn_expand+set}" = set; then
25947 break
25948fi
25949done
25950if test "${ac_cv_search_dn_expand+set}" = set; then
25951 :
25952else
25953 ac_cv_search_dn_expand=no
25954fi
25955rm conftest.$ac_ext
25956LIBS=$ac_func_search_save_LIBS
25957fi
25958{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
25959echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
25960ac_res=$ac_cv_search_dn_expand
25961if test "$ac_res" != no; then
25962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25963
25964fi
25965
25966 { echo "$as_me:$LINENO: checking if res_query will link" >&5
25967echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
25968 cat >conftest.$ac_ext <<_ACEOF
25969
25970#include "confdefs.h"
25971#include <sys/types.h>
25972#include <netinet/in.h>
25973#include <arpa/nameser.h>
25974#include <netdb.h>
25975#include <resolv.h>
25976int main()
25977{
25978 res_query (0, 0, 0, 0, 0);
25979 return 0;
25980}
25981
25982_ACEOF
25983rm -f conftest.$ac_objext conftest$ac_exeext
25984if { (ac_try="$ac_link"
25985case "(($ac_try" in
25986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987 *) ac_try_echo=$ac_try;;
25988esac
25989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25990 (eval "$ac_link") 2>conftest.er1
25991 ac_status=$?
25992 grep -v '^ *+' conftest.er1 >conftest.err
25993 rm -f conftest.er1
25994 cat conftest.err >&5
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } && {
25997 test -z "$ac_c_werror_flag" ||
25998 test ! -s conftest.err
25999 } && test -s conftest$ac_exeext &&
26000 $as_test_x conftest$ac_exeext; then
26001 { echo "$as_me:$LINENO: result: yes" >&5
26002echo "${ECHO_T}yes" >&6; }
26003else
26004 echo "$as_me: failed program was:" >&5
26005sed 's/^/| /' conftest.$ac_ext >&5
26006
26007 { echo "$as_me:$LINENO: result: no" >&5
26008echo "${ECHO_T}no" >&6; }
26009 saved_LIBS="$LIBS"
26010 LIBS="$LIBS -lresolv"
26011 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
26012echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
26013 cat >conftest.$ac_ext <<_ACEOF
26014
26015#include "confdefs.h"
26016#include <sys/types.h>
26017#include <netinet/in.h>
26018#include <arpa/nameser.h>
26019#include <netdb.h>
26020#include <resolv.h>
26021int main()
26022{
26023 res_query (0, 0, 0, 0, 0);
26024 return 0;
26025}
26026
26027_ACEOF
26028rm -f conftest.$ac_objext conftest$ac_exeext
26029if { (ac_try="$ac_link"
26030case "(($ac_try" in
26031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032 *) ac_try_echo=$ac_try;;
26033esac
26034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035 (eval "$ac_link") 2>conftest.er1
26036 ac_status=$?
26037 grep -v '^ *+' conftest.er1 >conftest.err
26038 rm -f conftest.er1
26039 cat conftest.err >&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && {
26042 test -z "$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26044 } && test -s conftest$ac_exeext &&
26045 $as_test_x conftest$ac_exeext; then
26046 { echo "$as_me:$LINENO: result: yes" >&5
26047echo "${ECHO_T}yes" >&6; }
26048else
26049 echo "$as_me: failed program was:" >&5
26050sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 LIBS="$saved_LIBS"
26053 { echo "$as_me:$LINENO: result: no" >&5
26054echo "${ECHO_T}no" >&6; }
26055fi
26056
26057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26058 conftest$ac_exeext conftest.$ac_ext
26059
26060fi
26061
26062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26063 conftest$ac_exeext conftest.$ac_ext
26064
26065
26066for ac_func in _getshort _getlong
26067do
26068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26069{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26072 echo $ECHO_N "(cached) $ECHO_C" >&6
26073else
26074 cat >conftest.$ac_ext <<_ACEOF
26075/* confdefs.h. */
26076_ACEOF
26077cat confdefs.h >>conftest.$ac_ext
26078cat >>conftest.$ac_ext <<_ACEOF
26079/* end confdefs.h. */
26080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26082#define $ac_func innocuous_$ac_func
26083
26084/* System header to define __stub macros and hopefully few prototypes,
26085 which can conflict with char $ac_func (); below.
26086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26087 <limits.h> exists even on freestanding compilers. */
26088
26089#ifdef __STDC__
26090# include <limits.h>
26091#else
26092# include <assert.h>
26093#endif
26094
26095#undef $ac_func
26096
26097/* Override any GCC internal prototype to avoid an error.
26098 Use char because int might match the return type of a GCC
26099 builtin and then its argument prototype would still apply. */
26100#ifdef __cplusplus
26101extern "C"
26102#endif
26103char $ac_func ();
26104/* The GNU C library defines this for functions which it implements
26105 to always fail with ENOSYS. Some functions are actually named
26106 something starting with __ and the normal name is an alias. */
26107#if defined __stub_$ac_func || defined __stub___$ac_func
26108choke me
26109#endif
26110
26111int
26112main ()
26113{
26114return $ac_func ();
26115 ;
26116 return 0;
26117}
26118_ACEOF
26119rm -f conftest.$ac_objext conftest$ac_exeext
26120if { (ac_try="$ac_link"
26121case "(($ac_try" in
26122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123 *) ac_try_echo=$ac_try;;
26124esac
26125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126 (eval "$ac_link") 2>conftest.er1
26127 ac_status=$?
26128 grep -v '^ *+' conftest.er1 >conftest.err
26129 rm -f conftest.er1
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest$ac_exeext &&
26136 $as_test_x conftest$ac_exeext; then
26137 eval "$as_ac_var=yes"
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142 eval "$as_ac_var=no"
26143fi
26144
26145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26146 conftest$ac_exeext conftest.$ac_ext
26147fi
26148ac_res=`eval echo '${'$as_ac_var'}'`
26149 { echo "$as_me:$LINENO: result: $ac_res" >&5
26150echo "${ECHO_T}$ac_res" >&6; }
26151if test `eval echo '${'$as_ac_var'}'` = yes; then
26152 cat >>confdefs.h <<_ACEOF
26153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26154_ACEOF
26155
26156fi
26157done
26158
26159 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
26160echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
26161if test "${ac_cv_have_decl__getshort+set}" = set; then
26162 echo $ECHO_N "(cached) $ECHO_C" >&6
26163else
26164 cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h. */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h. */
26170#include <sys/types.h>
26171 #include <arpa/nameser.h>
26172
26173int
26174main ()
26175{
26176#ifndef _getshort
26177 (void) _getshort;
26178#endif
26179
26180 ;
26181 return 0;
26182}
26183_ACEOF
26184rm -f conftest.$ac_objext
26185if { (ac_try="$ac_compile"
26186case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26189esac
26190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191 (eval "$ac_compile") 2>conftest.er1
26192 ac_status=$?
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_c_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest.$ac_objext; then
26201 ac_cv_have_decl__getshort=yes
26202else
26203 echo "$as_me: failed program was:" >&5
26204sed 's/^/| /' conftest.$ac_ext >&5
26205
26206 ac_cv_have_decl__getshort=no
26207fi
26208
26209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210fi
26211{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
26212echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
26213if test $ac_cv_have_decl__getshort = yes; then
26214
26215cat >>confdefs.h <<_ACEOF
26216#define HAVE_DECL__GETSHORT 1
26217_ACEOF
26218
26219
26220else
26221 cat >>confdefs.h <<_ACEOF
26222#define HAVE_DECL__GETSHORT 0
26223_ACEOF
26224
26225
26226fi
26227{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
26228echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
26229if test "${ac_cv_have_decl__getlong+set}" = set; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231else
26232 cat >conftest.$ac_ext <<_ACEOF
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
26238#include <sys/types.h>
26239 #include <arpa/nameser.h>
26240
26241int
26242main ()
26243{
26244#ifndef _getlong
26245 (void) _getlong;
26246#endif
26247
26248 ;
26249 return 0;
26250}
26251_ACEOF
26252rm -f conftest.$ac_objext
26253if { (ac_try="$ac_compile"
26254case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26257esac
26258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_compile") 2>conftest.er1
26260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest.$ac_objext; then
26269 ac_cv_have_decl__getlong=yes
26270else
26271 echo "$as_me: failed program was:" >&5
26272sed 's/^/| /' conftest.$ac_ext >&5
26273
26274 ac_cv_have_decl__getlong=no
26275fi
26276
26277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26278fi
26279{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
26280echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
26281if test $ac_cv_have_decl__getlong = yes; then
26282
26283cat >>confdefs.h <<_ACEOF
26284#define HAVE_DECL__GETLONG 1
26285_ACEOF
26286
26287
26288else
26289 cat >>confdefs.h <<_ACEOF
26290#define HAVE_DECL__GETLONG 0
26291_ACEOF
26292
26293
26294fi
26295
26296
26297 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
26298echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
26299if test "${ac_cv_member_HEADER_ad+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302 cat >conftest.$ac_ext <<_ACEOF
26303/* confdefs.h. */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
26307/* end confdefs.h. */
26308#include <arpa/nameser.h>
26309
26310int
26311main ()
26312{
26313static HEADER ac_aggr;
26314if (ac_aggr.ad)
26315return 0;
26316 ;
26317 return 0;
26318}
26319_ACEOF
26320rm -f conftest.$ac_objext
26321if { (ac_try="$ac_compile"
26322case "(($ac_try" in
26323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324 *) ac_try_echo=$ac_try;;
26325esac
26326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26327 (eval "$ac_compile") 2>conftest.er1
26328 ac_status=$?
26329 grep -v '^ *+' conftest.er1 >conftest.err
26330 rm -f conftest.er1
26331 cat conftest.err >&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } && {
26334 test -z "$ac_c_werror_flag" ||
26335 test ! -s conftest.err
26336 } && test -s conftest.$ac_objext; then
26337 ac_cv_member_HEADER_ad=yes
26338else
26339 echo "$as_me: failed program was:" >&5
26340sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 cat >conftest.$ac_ext <<_ACEOF
26343/* confdefs.h. */
26344_ACEOF
26345cat confdefs.h >>conftest.$ac_ext
26346cat >>conftest.$ac_ext <<_ACEOF
26347/* end confdefs.h. */
26348#include <arpa/nameser.h>
26349
26350int
26351main ()
26352{
26353static HEADER ac_aggr;
26354if (sizeof ac_aggr.ad)
26355return 0;
26356 ;
26357 return 0;
26358}
26359_ACEOF
26360rm -f conftest.$ac_objext
26361if { (ac_try="$ac_compile"
26362case "(($ac_try" in
26363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364 *) ac_try_echo=$ac_try;;
26365esac
26366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367 (eval "$ac_compile") 2>conftest.er1
26368 ac_status=$?
26369 grep -v '^ *+' conftest.er1 >conftest.err
26370 rm -f conftest.er1
26371 cat conftest.err >&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } && {
26374 test -z "$ac_c_werror_flag" ||
26375 test ! -s conftest.err
26376 } && test -s conftest.$ac_objext; then
26377 ac_cv_member_HEADER_ad=yes
26378else
26379 echo "$as_me: failed program was:" >&5
26380sed 's/^/| /' conftest.$ac_ext >&5
26381
26382 ac_cv_member_HEADER_ad=no
26383fi
26384
26385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26386fi
26387
26388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389fi
26390{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
26391echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
26392if test $ac_cv_member_HEADER_ad = yes; then
26393
26394cat >>confdefs.h <<\_ACEOF
26395#define HAVE_HEADER_AD 1
26396_ACEOF
26397
26398fi
26399
26400
26401fi
26402
26403
26404{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
26405echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
26406cat >conftest.$ac_ext <<_ACEOF
26407
26408#include <stdio.h>
26409#if HAVE_SYS_TYPES_H
26410# include <sys/types.h>
26411#endif
26412#include <netinet/in.h>
26413#include <arpa/nameser.h>
26414#include <resolv.h>
26415extern struct __res_state _res;
26416int main() { return 0; }
26417
26418_ACEOF
26419rm -f conftest.$ac_objext conftest$ac_exeext
26420if { (ac_try="$ac_link"
26421case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26424esac
26425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426 (eval "$ac_link") 2>conftest.er1
26427 ac_status=$?
26428 grep -v '^ *+' conftest.er1 >conftest.err
26429 rm -f conftest.er1
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest$ac_exeext &&
26436 $as_test_x conftest$ac_exeext; then
26437 { echo "$as_me:$LINENO: result: yes" >&5
26438echo "${ECHO_T}yes" >&6; }
26439
26440cat >>confdefs.h <<\_ACEOF
26441#define HAVE__RES_EXTERN 1
26442_ACEOF
26443
26444
26445else
26446 echo "$as_me: failed program was:" >&5
26447sed 's/^/| /' conftest.$ac_ext >&5
26448
26449 { echo "$as_me:$LINENO: result: no" >&5
26450echo "${ECHO_T}no" >&6; }
26451
26452fi
26453
26454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26455 conftest$ac_exeext conftest.$ac_ext
26456
26457# Check whether user wants SELinux support
26458SELINUX_MSG="no"
26459LIBSELINUX=""
26460
26461# Check whether --with-selinux was given.
26462if test "${with_selinux+set}" = set; then
26463 withval=$with_selinux; if test "x$withval" != "xno" ; then
26464 save_LIBS="$LIBS"
26465
26466cat >>confdefs.h <<\_ACEOF
26467#define WITH_SELINUX 1
26468_ACEOF
26469
26470 SELINUX_MSG="yes"
26471 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26472 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26473echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26474if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26476fi
26477{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26478echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26479else
26480 # Is the header compilable?
26481{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26482echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
26483cat >conftest.$ac_ext <<_ACEOF
26484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
26489$ac_includes_default
26490#include <selinux/selinux.h>
26491_ACEOF
26492rm -f conftest.$ac_objext
26493if { (ac_try="$ac_compile"
26494case "(($ac_try" in
26495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26496 *) ac_try_echo=$ac_try;;
26497esac
26498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26499 (eval "$ac_compile") 2>conftest.er1
26500 ac_status=$?
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } && {
26506 test -z "$ac_c_werror_flag" ||
26507 test ! -s conftest.err
26508 } && test -s conftest.$ac_objext; then
26509 ac_header_compiler=yes
26510else
26511 echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514 ac_header_compiler=no
26515fi
26516
26517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26518{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26519echo "${ECHO_T}$ac_header_compiler" >&6; }
26520
26521# Is the header present?
26522{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26523echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
26524cat >conftest.$ac_ext <<_ACEOF
26525/* confdefs.h. */
26526_ACEOF
26527cat confdefs.h >>conftest.$ac_ext
26528cat >>conftest.$ac_ext <<_ACEOF
26529/* end confdefs.h. */
26530#include <selinux/selinux.h>
26531_ACEOF
26532if { (ac_try="$ac_cpp conftest.$ac_ext"
26533case "(($ac_try" in
26534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535 *) ac_try_echo=$ac_try;;
26536esac
26537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26539 ac_status=$?
26540 grep -v '^ *+' conftest.er1 >conftest.err
26541 rm -f conftest.er1
26542 cat conftest.err >&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); } >/dev/null && {
26545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26546 test ! -s conftest.err
26547 }; then
26548 ac_header_preproc=yes
26549else
26550 echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
26553 ac_header_preproc=no
26554fi
26555
26556rm -f conftest.err conftest.$ac_ext
26557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26558echo "${ECHO_T}$ac_header_preproc" >&6; }
26559
26560# So? What about this header?
26561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26562 yes:no: )
26563 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26564echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26565 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26566echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26567 ac_header_preproc=yes
26568 ;;
26569 no:yes:* )
26570 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26571echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
26573echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26575echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
26577echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26579echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26580 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26581echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26582 ( cat <<\_ASBOX
26583## ------------------------------------------- ##
26584## Report this to openssh-unix-dev@mindrot.org ##
26585## ------------------------------------------- ##
26586_ASBOX
26587 ) | sed "s/^/$as_me: WARNING: /" >&2
26588 ;;
26589esac
26590{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26591echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26592if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595 ac_cv_header_selinux_selinux_h=$ac_header_preproc
26596fi
26597{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26598echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26599
26600fi
26601if test $ac_cv_header_selinux_selinux_h = yes; then
26602 :
26603else
26604 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
26605echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
26606 { (exit 1); exit 1; }; }
26607fi
26608
26609
26610 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
26611echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
26612if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26614else
26615 ac_check_lib_save_LIBS=$LIBS
26616LIBS="-lselinux $LIBS"
26617cat >conftest.$ac_ext <<_ACEOF
26618/* confdefs.h. */
26619_ACEOF
26620cat confdefs.h >>conftest.$ac_ext
26621cat >>conftest.$ac_ext <<_ACEOF
26622/* end confdefs.h. */
26623
26624/* Override any GCC internal prototype to avoid an error.
26625 Use char because int might match the return type of a GCC
26626 builtin and then its argument prototype would still apply. */
26627#ifdef __cplusplus
26628extern "C"
26629#endif
26630char setexeccon ();
26631int
26632main ()
26633{
26634return setexeccon ();
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639rm -f conftest.$ac_objext conftest$ac_exeext
26640if { (ac_try="$ac_link"
26641case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26644esac
26645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26646 (eval "$ac_link") 2>conftest.er1
26647 ac_status=$?
26648 grep -v '^ *+' conftest.er1 >conftest.err
26649 rm -f conftest.er1
26650 cat conftest.err >&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } && {
26653 test -z "$ac_c_werror_flag" ||
26654 test ! -s conftest.err
26655 } && test -s conftest$ac_exeext &&
26656 $as_test_x conftest$ac_exeext; then
26657 ac_cv_lib_selinux_setexeccon=yes
26658else
26659 echo "$as_me: failed program was:" >&5
26660sed 's/^/| /' conftest.$ac_ext >&5
26661
26662 ac_cv_lib_selinux_setexeccon=no
26663fi
26664
26665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26666 conftest$ac_exeext conftest.$ac_ext
26667LIBS=$ac_check_lib_save_LIBS
26668fi
26669{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26670echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26671if test $ac_cv_lib_selinux_setexeccon = yes; then
26672 LIBSELINUX="-lselinux"
26673 LIBS="$LIBS -lselinux"
26674
26675else
26676 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26677echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26678 { (exit 1); exit 1; }; }
26679fi
26680
26681 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26682
26683
26684for ac_func in getseuserbyname get_default_context_with_level
26685do
26686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26691else
26692 cat >conftest.$ac_ext <<_ACEOF
26693/* confdefs.h. */
26694_ACEOF
26695cat confdefs.h >>conftest.$ac_ext
26696cat >>conftest.$ac_ext <<_ACEOF
26697/* end confdefs.h. */
26698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26700#define $ac_func innocuous_$ac_func
26701
26702/* System header to define __stub macros and hopefully few prototypes,
26703 which can conflict with char $ac_func (); below.
26704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26705 <limits.h> exists even on freestanding compilers. */
26706
26707#ifdef __STDC__
26708# include <limits.h>
26709#else
26710# include <assert.h>
26711#endif
26712
26713#undef $ac_func
26714
26715/* Override any GCC internal prototype to avoid an error.
26716 Use char because int might match the return type of a GCC
26717 builtin and then its argument prototype would still apply. */
26718#ifdef __cplusplus
26719extern "C"
26720#endif
26721char $ac_func ();
26722/* The GNU C library defines this for functions which it implements
26723 to always fail with ENOSYS. Some functions are actually named
26724 something starting with __ and the normal name is an alias. */
26725#if defined __stub_$ac_func || defined __stub___$ac_func
26726choke me
26727#endif
26728
26729int
26730main ()
26731{
26732return $ac_func ();
26733 ;
26734 return 0;
26735}
26736_ACEOF
26737rm -f conftest.$ac_objext conftest$ac_exeext
26738if { (ac_try="$ac_link"
26739case "(($ac_try" in
26740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741 *) ac_try_echo=$ac_try;;
26742esac
26743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744 (eval "$ac_link") 2>conftest.er1
26745 ac_status=$?
26746 grep -v '^ *+' conftest.er1 >conftest.err
26747 rm -f conftest.er1
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } && {
26751 test -z "$ac_c_werror_flag" ||
26752 test ! -s conftest.err
26753 } && test -s conftest$ac_exeext &&
26754 $as_test_x conftest$ac_exeext; then
26755 eval "$as_ac_var=yes"
26756else
26757 echo "$as_me: failed program was:" >&5
26758sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 eval "$as_ac_var=no"
26761fi
26762
26763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26764 conftest$ac_exeext conftest.$ac_ext
26765fi
26766ac_res=`eval echo '${'$as_ac_var'}'`
26767 { echo "$as_me:$LINENO: result: $ac_res" >&5
26768echo "${ECHO_T}$ac_res" >&6; }
26769if test `eval echo '${'$as_ac_var'}'` = yes; then
26770 cat >>confdefs.h <<_ACEOF
26771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26772_ACEOF
26773
26774fi
26775done
26776
26777 LIBS="$save_LIBS"
26778 fi
26779
26780fi
26781
26782
26783# Check whether user wants Kerberos 5 support
26784KRB5_MSG="no"
26785
26786# Check whether --with-kerberos5 was given.
26787if test "${with_kerberos5+set}" = set; then
26788 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26789 if test "x$withval" = "xyes" ; then
26790 KRB5ROOT="/usr/local"
26791 else
26792 KRB5ROOT=${withval}
26793 fi
26794
26795
26796cat >>confdefs.h <<\_ACEOF
26797#define KRB5 1
26798_ACEOF
26799
26800 KRB5_MSG="yes"
26801
26802 # Extract the first word of "krb5-config", so it can be a program name with args.
26803set dummy krb5-config; ac_word=$2
26804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26806if test "${ac_cv_path_KRB5CONF+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26808else
26809 case $KRB5CONF in
26810 [\\/]* | ?:[\\/]*)
26811 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
26812 ;;
26813 *)
26814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26815as_dummy="$KRB5ROOT/bin:$PATH"
26816for as_dir in $as_dummy
26817do
26818 IFS=$as_save_IFS
26819 test -z "$as_dir" && as_dir=.
26820 for ac_exec_ext in '' $ac_executable_extensions; do
26821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26822 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
26823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26824 break 2
26825 fi
26826done
26827done
26828IFS=$as_save_IFS
26829
26830 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
26831 ;;
26832esac
26833fi
26834KRB5CONF=$ac_cv_path_KRB5CONF
26835if test -n "$KRB5CONF"; then
26836 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26837echo "${ECHO_T}$KRB5CONF" >&6; }
26838else
26839 { echo "$as_me:$LINENO: result: no" >&5
26840echo "${ECHO_T}no" >&6; }
26841fi
26842
26843
26844 if test -x $KRB5CONF ; then
26845
26846 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26847echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26848 if $KRB5CONF | grep gssapi >/dev/null ; then
26849 { echo "$as_me:$LINENO: result: yes" >&5
26850echo "${ECHO_T}yes" >&6; }
26851
26852cat >>confdefs.h <<\_ACEOF
26853#define GSSAPI 1
26854_ACEOF
26855
26856 k5confopts=gssapi
26857 else
26858 { echo "$as_me:$LINENO: result: no" >&5
26859echo "${ECHO_T}no" >&6; }
26860 k5confopts=""
26861 fi
26862 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
26863 K5LIBS="`$KRB5CONF --libs $k5confopts`"
26864 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
26865 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26866echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26867 cat >conftest.$ac_ext <<_ACEOF
26868/* confdefs.h. */
26869_ACEOF
26870cat confdefs.h >>conftest.$ac_ext
26871cat >>conftest.$ac_ext <<_ACEOF
26872/* end confdefs.h. */
26873 #include <krb5.h>
26874int
26875main ()
26876{
26877 char *tmp = heimdal_version;
26878 ;
26879 return 0;
26880}
26881_ACEOF
26882rm -f conftest.$ac_objext
26883if { (ac_try="$ac_compile"
26884case "(($ac_try" in
26885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886 *) ac_try_echo=$ac_try;;
26887esac
26888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26889 (eval "$ac_compile") 2>conftest.er1
26890 ac_status=$?
26891 grep -v '^ *+' conftest.er1 >conftest.err
26892 rm -f conftest.er1
26893 cat conftest.err >&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } && {
26896 test -z "$ac_c_werror_flag" ||
26897 test ! -s conftest.err
26898 } && test -s conftest.$ac_objext; then
26899 { echo "$as_me:$LINENO: result: yes" >&5
26900echo "${ECHO_T}yes" >&6; }
26901
26902cat >>confdefs.h <<\_ACEOF
26903#define HEIMDAL 1
26904_ACEOF
26905
26906else
26907 echo "$as_me: failed program was:" >&5
26908sed 's/^/| /' conftest.$ac_ext >&5
26909
26910 { echo "$as_me:$LINENO: result: no" >&5
26911echo "${ECHO_T}no" >&6; }
26912
26913fi
26914
26915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 else
26917 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
26918 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
26919 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
26920echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
26921 cat >conftest.$ac_ext <<_ACEOF
26922/* confdefs.h. */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h. */
26927 #include <krb5.h>
26928int
26929main ()
26930{
26931 char *tmp = heimdal_version;
26932 ;
26933 return 0;
26934}
26935_ACEOF
26936rm -f conftest.$ac_objext
26937if { (ac_try="$ac_compile"
26938case "(($ac_try" in
26939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26940 *) ac_try_echo=$ac_try;;
26941esac
26942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26943 (eval "$ac_compile") 2>conftest.er1
26944 ac_status=$?
26945 grep -v '^ *+' conftest.er1 >conftest.err
26946 rm -f conftest.er1
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } && {
26950 test -z "$ac_c_werror_flag" ||
26951 test ! -s conftest.err
26952 } && test -s conftest.$ac_objext; then
26953 { echo "$as_me:$LINENO: result: yes" >&5
26954echo "${ECHO_T}yes" >&6; }
26955 cat >>confdefs.h <<\_ACEOF
26956#define HEIMDAL 1
26957_ACEOF
26958
26959 K5LIBS="-lkrb5 -ldes"
26960 K5LIBS="$K5LIBS -lcom_err -lasn1"
26961 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
26962echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
26963if test "${ac_cv_lib_roken_net_write+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26965else
26966 ac_check_lib_save_LIBS=$LIBS
26967LIBS="-lroken $LIBS"
26968cat >conftest.$ac_ext <<_ACEOF
26969/* confdefs.h. */
26970_ACEOF
26971cat confdefs.h >>conftest.$ac_ext
26972cat >>conftest.$ac_ext <<_ACEOF
26973/* end confdefs.h. */
26974
26975/* Override any GCC internal prototype to avoid an error.
26976 Use char because int might match the return type of a GCC
26977 builtin and then its argument prototype would still apply. */
26978#ifdef __cplusplus
26979extern "C"
26980#endif
26981char net_write ();
26982int
26983main ()
26984{
26985return net_write ();
26986 ;
26987 return 0;
26988}
26989_ACEOF
26990rm -f conftest.$ac_objext conftest$ac_exeext
26991if { (ac_try="$ac_link"
26992case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_link") 2>conftest.er1
26998 ac_status=$?
26999 grep -v '^ *+' conftest.er1 >conftest.err
27000 rm -f conftest.er1
27001 cat conftest.err >&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && {
27004 test -z "$ac_c_werror_flag" ||
27005 test ! -s conftest.err
27006 } && test -s conftest$ac_exeext &&
27007 $as_test_x conftest$ac_exeext; then
27008 ac_cv_lib_roken_net_write=yes
27009else
27010 echo "$as_me: failed program was:" >&5
27011sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 ac_cv_lib_roken_net_write=no
27014fi
27015
27016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017 conftest$ac_exeext conftest.$ac_ext
27018LIBS=$ac_check_lib_save_LIBS
27019fi
27020{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
27021echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
27022if test $ac_cv_lib_roken_net_write = yes; then
27023 K5LIBS="$K5LIBS -lroken"
27024fi
27025
27026
27027else
27028 echo "$as_me: failed program was:" >&5
27029sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 { echo "$as_me:$LINENO: result: no" >&5
27032echo "${ECHO_T}no" >&6; }
27033 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
27034
27035
27036fi
27037
27038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27039 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27040echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
27041if test "${ac_cv_search_dn_expand+set}" = set; then
27042 echo $ECHO_N "(cached) $ECHO_C" >&6
27043else
27044 ac_func_search_save_LIBS=$LIBS
27045cat >conftest.$ac_ext <<_ACEOF
27046/* confdefs.h. */
27047_ACEOF
27048cat confdefs.h >>conftest.$ac_ext
27049cat >>conftest.$ac_ext <<_ACEOF
27050/* end confdefs.h. */
27051
27052/* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
27055#ifdef __cplusplus
27056extern "C"
27057#endif
27058char dn_expand ();
27059int
27060main ()
27061{
27062return dn_expand ();
27063 ;
27064 return 0;
27065}
27066_ACEOF
27067for ac_lib in '' resolv; do
27068 if test -z "$ac_lib"; then
27069 ac_res="none required"
27070 else
27071 ac_res=-l$ac_lib
27072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27073 fi
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075if { (ac_try="$ac_link"
27076case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27079esac
27080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_link") 2>conftest.er1
27082 ac_status=$?
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && {
27088 test -z "$ac_c_werror_flag" ||
27089 test ! -s conftest.err
27090 } && test -s conftest$ac_exeext &&
27091 $as_test_x conftest$ac_exeext; then
27092 ac_cv_search_dn_expand=$ac_res
27093else
27094 echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097
27098fi
27099
27100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27101 conftest$ac_exeext
27102 if test "${ac_cv_search_dn_expand+set}" = set; then
27103 break
27104fi
27105done
27106if test "${ac_cv_search_dn_expand+set}" = set; then
27107 :
27108else
27109 ac_cv_search_dn_expand=no
27110fi
27111rm conftest.$ac_ext
27112LIBS=$ac_func_search_save_LIBS
27113fi
27114{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27115echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
27116ac_res=$ac_cv_search_dn_expand
27117if test "$ac_res" != no; then
27118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27119
27120fi
27121
27122
27123 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
27124echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
27125if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27127else
27128 ac_check_lib_save_LIBS=$LIBS
27129LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
27130cat >conftest.$ac_ext <<_ACEOF
27131/* confdefs.h. */
27132_ACEOF
27133cat confdefs.h >>conftest.$ac_ext
27134cat >>conftest.$ac_ext <<_ACEOF
27135/* end confdefs.h. */
27136
27137/* Override any GCC internal prototype to avoid an error.
27138 Use char because int might match the return type of a GCC
27139 builtin and then its argument prototype would still apply. */
27140#ifdef __cplusplus
27141extern "C"
27142#endif
27143char gss_init_sec_context ();
27144int
27145main ()
27146{
27147return gss_init_sec_context ();
27148 ;
27149 return 0;
27150}
27151_ACEOF
27152rm -f conftest.$ac_objext conftest$ac_exeext
27153if { (ac_try="$ac_link"
27154case "(($ac_try" in
27155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156 *) ac_try_echo=$ac_try;;
27157esac
27158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159 (eval "$ac_link") 2>conftest.er1
27160 ac_status=$?
27161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } && {
27166 test -z "$ac_c_werror_flag" ||
27167 test ! -s conftest.err
27168 } && test -s conftest$ac_exeext &&
27169 $as_test_x conftest$ac_exeext; then
27170 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
27171else
27172 echo "$as_me: failed program was:" >&5
27173sed 's/^/| /' conftest.$ac_ext >&5
27174
27175 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
27176fi
27177
27178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179 conftest$ac_exeext conftest.$ac_ext
27180LIBS=$ac_check_lib_save_LIBS
27181fi
27182{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
27183echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
27184if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
27185 cat >>confdefs.h <<\_ACEOF
27186#define GSSAPI 1
27187_ACEOF
27188
27189 K5LIBS="-lgssapi_krb5 $K5LIBS"
27190else
27191 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
27192echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
27193if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27195else
27196 ac_check_lib_save_LIBS=$LIBS
27197LIBS="-lgssapi $K5LIBS $LIBS"
27198cat >conftest.$ac_ext <<_ACEOF
27199/* confdefs.h. */
27200_ACEOF
27201cat confdefs.h >>conftest.$ac_ext
27202cat >>conftest.$ac_ext <<_ACEOF
27203/* end confdefs.h. */
27204
27205/* Override any GCC internal prototype to avoid an error.
27206 Use char because int might match the return type of a GCC
27207 builtin and then its argument prototype would still apply. */
27208#ifdef __cplusplus
27209extern "C"
27210#endif
27211char gss_init_sec_context ();
27212int
27213main ()
27214{
27215return gss_init_sec_context ();
27216 ;
27217 return 0;
27218}
27219_ACEOF
27220rm -f conftest.$ac_objext conftest$ac_exeext
27221if { (ac_try="$ac_link"
27222case "(($ac_try" in
27223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224 *) ac_try_echo=$ac_try;;
27225esac
27226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27227 (eval "$ac_link") 2>conftest.er1
27228 ac_status=$?
27229 grep -v '^ *+' conftest.er1 >conftest.err
27230 rm -f conftest.er1
27231 cat conftest.err >&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); } && {
27234 test -z "$ac_c_werror_flag" ||
27235 test ! -s conftest.err
27236 } && test -s conftest$ac_exeext &&
27237 $as_test_x conftest$ac_exeext; then
27238 ac_cv_lib_gssapi_gss_init_sec_context=yes
27239else
27240 echo "$as_me: failed program was:" >&5
27241sed 's/^/| /' conftest.$ac_ext >&5
27242
27243 ac_cv_lib_gssapi_gss_init_sec_context=no
27244fi
27245
27246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27247 conftest$ac_exeext conftest.$ac_ext
27248LIBS=$ac_check_lib_save_LIBS
27249fi
27250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
27251echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
27252if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
27253 cat >>confdefs.h <<\_ACEOF
27254#define GSSAPI 1
27255_ACEOF
27256
27257 K5LIBS="-lgssapi $K5LIBS"
27258else
27259 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
27260echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
27261fi
27262
27263
27264fi
27265
27266
27267 if test "${ac_cv_header_gssapi_h+set}" = set; then
27268 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
27269echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27270if test "${ac_cv_header_gssapi_h+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27272fi
27273{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27274echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27275else
27276 # Is the header compilable?
27277{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
27278echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
27279cat >conftest.$ac_ext <<_ACEOF
27280/* confdefs.h. */
27281_ACEOF
27282cat confdefs.h >>conftest.$ac_ext
27283cat >>conftest.$ac_ext <<_ACEOF
27284/* end confdefs.h. */
27285$ac_includes_default
27286#include <gssapi.h>
27287_ACEOF
27288rm -f conftest.$ac_objext
27289if { (ac_try="$ac_compile"
27290case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27293esac
27294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_compile") 2>conftest.er1
27296 ac_status=$?
27297 grep -v '^ *+' conftest.er1 >conftest.err
27298 rm -f conftest.er1
27299 cat conftest.err >&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } && {
27302 test -z "$ac_c_werror_flag" ||
27303 test ! -s conftest.err
27304 } && test -s conftest.$ac_objext; then
27305 ac_header_compiler=yes
27306else
27307 echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310 ac_header_compiler=no
27311fi
27312
27313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27315echo "${ECHO_T}$ac_header_compiler" >&6; }
27316
27317# Is the header present?
27318{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
27319echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
27320cat >conftest.$ac_ext <<_ACEOF
27321/* confdefs.h. */
27322_ACEOF
27323cat confdefs.h >>conftest.$ac_ext
27324cat >>conftest.$ac_ext <<_ACEOF
27325/* end confdefs.h. */
27326#include <gssapi.h>
27327_ACEOF
27328if { (ac_try="$ac_cpp conftest.$ac_ext"
27329case "(($ac_try" in
27330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27332esac
27333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27335 ac_status=$?
27336 grep -v '^ *+' conftest.er1 >conftest.err
27337 rm -f conftest.er1
27338 cat conftest.err >&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } >/dev/null && {
27341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27342 test ! -s conftest.err
27343 }; then
27344 ac_header_preproc=yes
27345else
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349 ac_header_preproc=no
27350fi
27351
27352rm -f conftest.err conftest.$ac_ext
27353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27354echo "${ECHO_T}$ac_header_preproc" >&6; }
27355
27356# So? What about this header?
27357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27358 yes:no: )
27359 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
27360echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27361 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
27362echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
27363 ac_header_preproc=yes
27364 ;;
27365 no:yes:* )
27366 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
27367echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
27369echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
27371echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
27373echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
27374 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
27375echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
27377echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
27378 ( cat <<\_ASBOX
27379## ------------------------------------------- ##
27380## Report this to openssh-unix-dev@mindrot.org ##
27381## ------------------------------------------- ##
27382_ASBOX
27383 ) | sed "s/^/$as_me: WARNING: /" >&2
27384 ;;
27385esac
27386{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
27387echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27388if test "${ac_cv_header_gssapi_h+set}" = set; then
27389 echo $ECHO_N "(cached) $ECHO_C" >&6
27390else
27391 ac_cv_header_gssapi_h=$ac_header_preproc
27392fi
27393{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27394echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27395
27396fi
27397if test $ac_cv_header_gssapi_h = yes; then
27398 :
27399else
27400 unset ac_cv_header_gssapi_h
27401 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27402
27403for ac_header in gssapi.h
27404do
27405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27410 echo $ECHO_N "(cached) $ECHO_C" >&6
27411fi
27412ac_res=`eval echo '${'$as_ac_Header'}'`
27413 { echo "$as_me:$LINENO: result: $ac_res" >&5
27414echo "${ECHO_T}$ac_res" >&6; }
27415else
27416 # Is the header compilable?
27417{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27419cat >conftest.$ac_ext <<_ACEOF
27420/* confdefs.h. */
27421_ACEOF
27422cat confdefs.h >>conftest.$ac_ext
27423cat >>conftest.$ac_ext <<_ACEOF
27424/* end confdefs.h. */
27425$ac_includes_default
27426#include <$ac_header>
27427_ACEOF
27428rm -f conftest.$ac_objext
27429if { (ac_try="$ac_compile"
27430case "(($ac_try" in
27431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432 *) ac_try_echo=$ac_try;;
27433esac
27434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435 (eval "$ac_compile") 2>conftest.er1
27436 ac_status=$?
27437 grep -v '^ *+' conftest.er1 >conftest.err
27438 rm -f conftest.er1
27439 cat conftest.err >&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } && {
27442 test -z "$ac_c_werror_flag" ||
27443 test ! -s conftest.err
27444 } && test -s conftest.$ac_objext; then
27445 ac_header_compiler=yes
27446else
27447 echo "$as_me: failed program was:" >&5
27448sed 's/^/| /' conftest.$ac_ext >&5
27449
27450 ac_header_compiler=no
27451fi
27452
27453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27455echo "${ECHO_T}$ac_header_compiler" >&6; }
27456
27457# Is the header present?
27458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27460cat >conftest.$ac_ext <<_ACEOF
27461/* confdefs.h. */
27462_ACEOF
27463cat confdefs.h >>conftest.$ac_ext
27464cat >>conftest.$ac_ext <<_ACEOF
27465/* end confdefs.h. */
27466#include <$ac_header>
27467_ACEOF
27468if { (ac_try="$ac_cpp conftest.$ac_ext"
27469case "(($ac_try" in
27470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27472esac
27473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27475 ac_status=$?
27476 grep -v '^ *+' conftest.er1 >conftest.err
27477 rm -f conftest.er1
27478 cat conftest.err >&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); } >/dev/null && {
27481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27482 test ! -s conftest.err
27483 }; then
27484 ac_header_preproc=yes
27485else
27486 echo "$as_me: failed program was:" >&5
27487sed 's/^/| /' conftest.$ac_ext >&5
27488
27489 ac_header_preproc=no
27490fi
27491
27492rm -f conftest.err conftest.$ac_ext
27493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27494echo "${ECHO_T}$ac_header_preproc" >&6; }
27495
27496# So? What about this header?
27497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27498 yes:no: )
27499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27503 ac_header_preproc=yes
27504 ;;
27505 no:yes:* )
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27513echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27518 ( cat <<\_ASBOX
27519## ------------------------------------------- ##
27520## Report this to openssh-unix-dev@mindrot.org ##
27521## ------------------------------------------- ##
27522_ASBOX
27523 ) | sed "s/^/$as_me: WARNING: /" >&2
27524 ;;
27525esac
27526{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27529 echo $ECHO_N "(cached) $ECHO_C" >&6
27530else
27531 eval "$as_ac_Header=\$ac_header_preproc"
27532fi
27533ac_res=`eval echo '${'$as_ac_Header'}'`
27534 { echo "$as_me:$LINENO: result: $ac_res" >&5
27535echo "${ECHO_T}$ac_res" >&6; }
27536
27537fi
27538if test `eval echo '${'$as_ac_Header'}'` = yes; then
27539 cat >>confdefs.h <<_ACEOF
27540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27541_ACEOF
27542
27543else
27544 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
27545echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
27546
27547fi
27548
27549done
27550
27551
27552
27553fi
27554
27555
27556
27557 oldCPP="$CPPFLAGS"
27558 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27559 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27560 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27561echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27562if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564fi
27565{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27566echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27567else
27568 # Is the header compilable?
27569{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
27570echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
27571cat >conftest.$ac_ext <<_ACEOF
27572/* confdefs.h. */
27573_ACEOF
27574cat confdefs.h >>conftest.$ac_ext
27575cat >>conftest.$ac_ext <<_ACEOF
27576/* end confdefs.h. */
27577$ac_includes_default
27578#include <gssapi_krb5.h>
27579_ACEOF
27580rm -f conftest.$ac_objext
27581if { (ac_try="$ac_compile"
27582case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27585esac
27586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_compile") 2>conftest.er1
27588 ac_status=$?
27589 grep -v '^ *+' conftest.er1 >conftest.err
27590 rm -f conftest.er1
27591 cat conftest.err >&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); } && {
27594 test -z "$ac_c_werror_flag" ||
27595 test ! -s conftest.err
27596 } && test -s conftest.$ac_objext; then
27597 ac_header_compiler=yes
27598else
27599 echo "$as_me: failed program was:" >&5
27600sed 's/^/| /' conftest.$ac_ext >&5
27601
27602 ac_header_compiler=no
27603fi
27604
27605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27607echo "${ECHO_T}$ac_header_compiler" >&6; }
27608
27609# Is the header present?
27610{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
27611echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
27612cat >conftest.$ac_ext <<_ACEOF
27613/* confdefs.h. */
27614_ACEOF
27615cat confdefs.h >>conftest.$ac_ext
27616cat >>conftest.$ac_ext <<_ACEOF
27617/* end confdefs.h. */
27618#include <gssapi_krb5.h>
27619_ACEOF
27620if { (ac_try="$ac_cpp conftest.$ac_ext"
27621case "(($ac_try" in
27622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623 *) ac_try_echo=$ac_try;;
27624esac
27625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27627 ac_status=$?
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } >/dev/null && {
27633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27634 test ! -s conftest.err
27635 }; then
27636 ac_header_preproc=yes
27637else
27638 echo "$as_me: failed program was:" >&5
27639sed 's/^/| /' conftest.$ac_ext >&5
27640
27641 ac_header_preproc=no
27642fi
27643
27644rm -f conftest.err conftest.$ac_ext
27645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27646echo "${ECHO_T}$ac_header_preproc" >&6; }
27647
27648# So? What about this header?
27649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27650 yes:no: )
27651 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27652echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27654echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27655 ac_header_preproc=yes
27656 ;;
27657 no:yes:* )
27658 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27659echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27661echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27663echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27664 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27665echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27666 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27667echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27668 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27669echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27670 ( cat <<\_ASBOX
27671## ------------------------------------------- ##
27672## Report this to openssh-unix-dev@mindrot.org ##
27673## ------------------------------------------- ##
27674_ASBOX
27675 ) | sed "s/^/$as_me: WARNING: /" >&2
27676 ;;
27677esac
27678{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27679echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27680if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27681 echo $ECHO_N "(cached) $ECHO_C" >&6
27682else
27683 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27684fi
27685{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27686echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27687
27688fi
27689if test $ac_cv_header_gssapi_krb5_h = yes; then
27690 :
27691else
27692 CPPFLAGS="$oldCPP"
27693fi
27694
27695
27696
27697 fi
27698 if test ! -z "$need_dash_r" ; then
27699 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27700 fi
27701 if test ! -z "$blibpath" ; then
27702 blibpath="$blibpath:${KRB5ROOT}/lib"
27703 fi
27704
27705
27706
27707for ac_header in gssapi.h gssapi/gssapi.h
27708do
27709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27715fi
27716ac_res=`eval echo '${'$as_ac_Header'}'`
27717 { echo "$as_me:$LINENO: result: $ac_res" >&5
27718echo "${ECHO_T}$ac_res" >&6; }
27719else
27720 # Is the header compilable?
27721{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27723cat >conftest.$ac_ext <<_ACEOF
27724/* confdefs.h. */
27725_ACEOF
27726cat confdefs.h >>conftest.$ac_ext
27727cat >>conftest.$ac_ext <<_ACEOF
27728/* end confdefs.h. */
27729$ac_includes_default
27730#include <$ac_header>
27731_ACEOF
27732rm -f conftest.$ac_objext
27733if { (ac_try="$ac_compile"
27734case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737esac
27738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_compile") 2>conftest.er1
27740 ac_status=$?
27741 grep -v '^ *+' conftest.er1 >conftest.err
27742 rm -f conftest.er1
27743 cat conftest.err >&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } && {
27746 test -z "$ac_c_werror_flag" ||
27747 test ! -s conftest.err
27748 } && test -s conftest.$ac_objext; then
27749 ac_header_compiler=yes
27750else
27751 echo "$as_me: failed program was:" >&5
27752sed 's/^/| /' conftest.$ac_ext >&5
27753
27754 ac_header_compiler=no
27755fi
27756
27757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27759echo "${ECHO_T}$ac_header_compiler" >&6; }
27760
27761# Is the header present?
27762{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27764cat >conftest.$ac_ext <<_ACEOF
27765/* confdefs.h. */
27766_ACEOF
27767cat confdefs.h >>conftest.$ac_ext
27768cat >>conftest.$ac_ext <<_ACEOF
27769/* end confdefs.h. */
27770#include <$ac_header>
27771_ACEOF
27772if { (ac_try="$ac_cpp conftest.$ac_ext"
27773case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27779 ac_status=$?
27780 grep -v '^ *+' conftest.er1 >conftest.err
27781 rm -f conftest.er1
27782 cat conftest.err >&5
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); } >/dev/null && {
27785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27786 test ! -s conftest.err
27787 }; then
27788 ac_header_preproc=yes
27789else
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
27792
27793 ac_header_preproc=no
27794fi
27795
27796rm -f conftest.err conftest.$ac_ext
27797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27798echo "${ECHO_T}$ac_header_preproc" >&6; }
27799
27800# So? What about this header?
27801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27802 yes:no: )
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27807 ac_header_preproc=yes
27808 ;;
27809 no:yes:* )
27810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27822 ( cat <<\_ASBOX
27823## ------------------------------------------- ##
27824## Report this to openssh-unix-dev@mindrot.org ##
27825## ------------------------------------------- ##
27826_ASBOX
27827 ) | sed "s/^/$as_me: WARNING: /" >&2
27828 ;;
27829esac
27830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 eval "$as_ac_Header=\$ac_header_preproc"
27836fi
27837ac_res=`eval echo '${'$as_ac_Header'}'`
27838 { echo "$as_me:$LINENO: result: $ac_res" >&5
27839echo "${ECHO_T}$ac_res" >&6; }
27840
27841fi
27842if test `eval echo '${'$as_ac_Header'}'` = yes; then
27843 cat >>confdefs.h <<_ACEOF
27844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27845_ACEOF
27846
27847fi
27848
27849done
27850
27851
27852
27853for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
27854do
27855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27861fi
27862ac_res=`eval echo '${'$as_ac_Header'}'`
27863 { echo "$as_me:$LINENO: result: $ac_res" >&5
27864echo "${ECHO_T}$ac_res" >&6; }
27865else
27866 # Is the header compilable?
27867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27869cat >conftest.$ac_ext <<_ACEOF
27870/* confdefs.h. */
27871_ACEOF
27872cat confdefs.h >>conftest.$ac_ext
27873cat >>conftest.$ac_ext <<_ACEOF
27874/* end confdefs.h. */
27875$ac_includes_default
27876#include <$ac_header>
27877_ACEOF
27878rm -f conftest.$ac_objext
27879if { (ac_try="$ac_compile"
27880case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_compile") 2>conftest.er1
27886 ac_status=$?
27887 grep -v '^ *+' conftest.er1 >conftest.err
27888 rm -f conftest.er1
27889 cat conftest.err >&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } && {
27892 test -z "$ac_c_werror_flag" ||
27893 test ! -s conftest.err
27894 } && test -s conftest.$ac_objext; then
27895 ac_header_compiler=yes
27896else
27897 echo "$as_me: failed program was:" >&5
27898sed 's/^/| /' conftest.$ac_ext >&5
27899
27900 ac_header_compiler=no
27901fi
27902
27903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27904{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27905echo "${ECHO_T}$ac_header_compiler" >&6; }
27906
27907# Is the header present?
27908{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27910cat >conftest.$ac_ext <<_ACEOF
27911/* confdefs.h. */
27912_ACEOF
27913cat confdefs.h >>conftest.$ac_ext
27914cat >>conftest.$ac_ext <<_ACEOF
27915/* end confdefs.h. */
27916#include <$ac_header>
27917_ACEOF
27918if { (ac_try="$ac_cpp conftest.$ac_ext"
27919case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27922esac
27923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27925 ac_status=$?
27926 grep -v '^ *+' conftest.er1 >conftest.err
27927 rm -f conftest.er1
27928 cat conftest.err >&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } >/dev/null && {
27931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27932 test ! -s conftest.err
27933 }; then
27934 ac_header_preproc=yes
27935else
27936 echo "$as_me: failed program was:" >&5
27937sed 's/^/| /' conftest.$ac_ext >&5
27938
27939 ac_header_preproc=no
27940fi
27941
27942rm -f conftest.err conftest.$ac_ext
27943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27944echo "${ECHO_T}$ac_header_preproc" >&6; }
27945
27946# So? What about this header?
27947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27948 yes:no: )
27949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27953 ac_header_preproc=yes
27954 ;;
27955 no:yes:* )
27956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27968 ( cat <<\_ASBOX
27969## ------------------------------------------- ##
27970## Report this to openssh-unix-dev@mindrot.org ##
27971## ------------------------------------------- ##
27972_ASBOX
27973 ) | sed "s/^/$as_me: WARNING: /" >&2
27974 ;;
27975esac
27976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27980else
27981 eval "$as_ac_Header=\$ac_header_preproc"
27982fi
27983ac_res=`eval echo '${'$as_ac_Header'}'`
27984 { echo "$as_me:$LINENO: result: $ac_res" >&5
27985echo "${ECHO_T}$ac_res" >&6; }
27986
27987fi
27988if test `eval echo '${'$as_ac_Header'}'` = yes; then
27989 cat >>confdefs.h <<_ACEOF
27990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27991_ACEOF
27992
27993fi
27994
27995done
27996
27997
27998
27999for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
28000do
28001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28007fi
28008ac_res=`eval echo '${'$as_ac_Header'}'`
28009 { echo "$as_me:$LINENO: result: $ac_res" >&5
28010echo "${ECHO_T}$ac_res" >&6; }
28011else
28012 # Is the header compilable?
28013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28015cat >conftest.$ac_ext <<_ACEOF
28016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
28021$ac_includes_default
28022#include <$ac_header>
28023_ACEOF
28024rm -f conftest.$ac_objext
28025if { (ac_try="$ac_compile"
28026case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28029esac
28030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_compile") 2>conftest.er1
28032 ac_status=$?
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } && {
28038 test -z "$ac_c_werror_flag" ||
28039 test ! -s conftest.err
28040 } && test -s conftest.$ac_objext; then
28041 ac_header_compiler=yes
28042else
28043 echo "$as_me: failed program was:" >&5
28044sed 's/^/| /' conftest.$ac_ext >&5
28045
28046 ac_header_compiler=no
28047fi
28048
28049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28050{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28051echo "${ECHO_T}$ac_header_compiler" >&6; }
28052
28053# Is the header present?
28054{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28056cat >conftest.$ac_ext <<_ACEOF
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
28062#include <$ac_header>
28063_ACEOF
28064if { (ac_try="$ac_cpp conftest.$ac_ext"
28065case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28071 ac_status=$?
28072 grep -v '^ *+' conftest.er1 >conftest.err
28073 rm -f conftest.er1
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } >/dev/null && {
28077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28078 test ! -s conftest.err
28079 }; then
28080 ac_header_preproc=yes
28081else
28082 echo "$as_me: failed program was:" >&5
28083sed 's/^/| /' conftest.$ac_ext >&5
28084
28085 ac_header_preproc=no
28086fi
28087
28088rm -f conftest.err conftest.$ac_ext
28089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28090echo "${ECHO_T}$ac_header_preproc" >&6; }
28091
28092# So? What about this header?
28093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28094 yes:no: )
28095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28099 ac_header_preproc=yes
28100 ;;
28101 no:yes:* )
28102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28114 ( cat <<\_ASBOX
28115## ------------------------------------------- ##
28116## Report this to openssh-unix-dev@mindrot.org ##
28117## ------------------------------------------- ##
28118_ASBOX
28119 ) | sed "s/^/$as_me: WARNING: /" >&2
28120 ;;
28121esac
28122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28126else
28127 eval "$as_ac_Header=\$ac_header_preproc"
28128fi
28129ac_res=`eval echo '${'$as_ac_Header'}'`
28130 { echo "$as_me:$LINENO: result: $ac_res" >&5
28131echo "${ECHO_T}$ac_res" >&6; }
28132
28133fi
28134if test `eval echo '${'$as_ac_Header'}'` = yes; then
28135 cat >>confdefs.h <<_ACEOF
28136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28137_ACEOF
28138
28139fi
28140
28141done
28142
28143
28144 LIBS="$LIBS $K5LIBS"
28145 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
28146echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
28147if test "${ac_cv_search_k_hasafs+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149else
28150 ac_func_search_save_LIBS=$LIBS
28151cat >conftest.$ac_ext <<_ACEOF
28152/* confdefs.h. */
28153_ACEOF
28154cat confdefs.h >>conftest.$ac_ext
28155cat >>conftest.$ac_ext <<_ACEOF
28156/* end confdefs.h. */
28157
28158/* Override any GCC internal prototype to avoid an error.
28159 Use char because int might match the return type of a GCC
28160 builtin and then its argument prototype would still apply. */
28161#ifdef __cplusplus
28162extern "C"
28163#endif
28164char k_hasafs ();
28165int
28166main ()
28167{
28168return k_hasafs ();
28169 ;
28170 return 0;
28171}
28172_ACEOF
28173for ac_lib in '' kafs; do
28174 if test -z "$ac_lib"; then
28175 ac_res="none required"
28176 else
28177 ac_res=-l$ac_lib
28178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28179 fi
28180 rm -f conftest.$ac_objext conftest$ac_exeext
28181if { (ac_try="$ac_link"
28182case "(($ac_try" in
28183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28184 *) ac_try_echo=$ac_try;;
28185esac
28186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28187 (eval "$ac_link") 2>conftest.er1
28188 ac_status=$?
28189 grep -v '^ *+' conftest.er1 >conftest.err
28190 rm -f conftest.er1
28191 cat conftest.err >&5
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); } && {
28194 test -z "$ac_c_werror_flag" ||
28195 test ! -s conftest.err
28196 } && test -s conftest$ac_exeext &&
28197 $as_test_x conftest$ac_exeext; then
28198 ac_cv_search_k_hasafs=$ac_res
28199else
28200 echo "$as_me: failed program was:" >&5
28201sed 's/^/| /' conftest.$ac_ext >&5
28202
28203
28204fi
28205
28206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28207 conftest$ac_exeext
28208 if test "${ac_cv_search_k_hasafs+set}" = set; then
28209 break
28210fi
28211done
28212if test "${ac_cv_search_k_hasafs+set}" = set; then
28213 :
28214else
28215 ac_cv_search_k_hasafs=no
28216fi
28217rm conftest.$ac_ext
28218LIBS=$ac_func_search_save_LIBS
28219fi
28220{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
28221echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
28222ac_res=$ac_cv_search_k_hasafs
28223if test "$ac_res" != no; then
28224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28225
28226cat >>confdefs.h <<\_ACEOF
28227#define USE_AFS 1
28228_ACEOF
28229
28230fi
28231
28232 fi
28233
28234
28235fi
28236
28237
28238# Looking for programs, paths and files
28239
28240PRIVSEP_PATH=/var/empty
28241
28242# Check whether --with-privsep-path was given.
28243if test "${with_privsep_path+set}" = set; then
28244 withval=$with_privsep_path;
28245 if test -n "$withval" && test "x$withval" != "xno" && \
28246 test "x${withval}" != "xyes"; then
28247 PRIVSEP_PATH=$withval
28248 fi
28249
28250
28251fi
28252
28253
28254
28255
28256# Check whether --with-xauth was given.
28257if test "${with_xauth+set}" = set; then
28258 withval=$with_xauth;
28259 if test -n "$withval" && test "x$withval" != "xno" && \
28260 test "x${withval}" != "xyes"; then
28261 xauth_path=$withval
28262 fi
28263
28264else
28265
28266 TestPath="$PATH"
28267 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
28268 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
28269 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
28270 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
28271 # Extract the first word of "xauth", so it can be a program name with args.
28272set dummy xauth; ac_word=$2
28273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28275if test "${ac_cv_path_xauth_path+set}" = set; then
28276 echo $ECHO_N "(cached) $ECHO_C" >&6
28277else
28278 case $xauth_path in
28279 [\\/]* | ?:[\\/]*)
28280 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
28281 ;;
28282 *)
28283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28284for as_dir in $TestPath
28285do
28286 IFS=$as_save_IFS
28287 test -z "$as_dir" && as_dir=.
28288 for ac_exec_ext in '' $ac_executable_extensions; do
28289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28290 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
28291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28292 break 2
28293 fi
28294done
28295done
28296IFS=$as_save_IFS
28297
28298 ;;
28299esac
28300fi
28301xauth_path=$ac_cv_path_xauth_path
28302if test -n "$xauth_path"; then
28303 { echo "$as_me:$LINENO: result: $xauth_path" >&5
28304echo "${ECHO_T}$xauth_path" >&6; }
28305else
28306 { echo "$as_me:$LINENO: result: no" >&5
28307echo "${ECHO_T}no" >&6; }
28308fi
28309
28310
28311 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
28312 xauth_path="/usr/openwin/bin/xauth"
28313 fi
28314
28315
28316fi
28317
28318
28319STRIP_OPT=-s
28320# Check whether --enable-strip was given.
28321if test "${enable_strip+set}" = set; then
28322 enableval=$enable_strip;
28323 if test "x$enableval" = "xno" ; then
28324 STRIP_OPT=
28325 fi
28326
28327
28328fi
28329
28330
28331
28332if test -z "$xauth_path" ; then
28333 XAUTH_PATH="undefined"
28334
28335else
28336
28337cat >>confdefs.h <<_ACEOF
28338#define XAUTH_PATH "$xauth_path"
28339_ACEOF
28340
28341 XAUTH_PATH=$xauth_path
28342
28343fi
28344
28345# Check for mail directory (last resort if we cannot get it from headers)
28346if test ! -z "$MAIL" ; then
28347 maildir=`dirname $MAIL`
28348
28349cat >>confdefs.h <<_ACEOF
28350#define MAIL_DIRECTORY "$maildir"
28351_ACEOF
28352
28353fi
28354
28355if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
28356 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
28357echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
28358 disable_ptmx_check=yes
28359fi
28360if test -z "$no_dev_ptmx" ; then
28361 if test "x$disable_ptmx_check" != "xyes" ; then
28362 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
28363echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
28364if test "${ac_cv_file___dev_ptmx_+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28366else
28367 test "$cross_compiling" = yes &&
28368 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28369echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28370 { (exit 1); exit 1; }; }
28371if test -r ""/dev/ptmx""; then
28372 ac_cv_file___dev_ptmx_=yes
28373else
28374 ac_cv_file___dev_ptmx_=no
28375fi
28376fi
28377{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
28378echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
28379if test $ac_cv_file___dev_ptmx_ = yes; then
28380
28381
28382cat >>confdefs.h <<_ACEOF
28383#define HAVE_DEV_PTMX 1
28384_ACEOF
28385
28386 have_dev_ptmx=1
28387
28388
28389fi
28390
28391 fi
28392fi
28393
28394if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
28395 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
28396echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
28397if test "${ac_cv_file___dev_ptc_+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28399else
28400 test "$cross_compiling" = yes &&
28401 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28402echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28403 { (exit 1); exit 1; }; }
28404if test -r ""/dev/ptc""; then
28405 ac_cv_file___dev_ptc_=yes
28406else
28407 ac_cv_file___dev_ptc_=no
28408fi
28409fi
28410{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
28411echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
28412if test $ac_cv_file___dev_ptc_ = yes; then
28413
28414
28415cat >>confdefs.h <<_ACEOF
28416#define HAVE_DEV_PTS_AND_PTC 1
28417_ACEOF
28418
28419 have_dev_ptc=1
28420
28421
28422fi
28423
28424else
28425 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
28426echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
28427fi
28428
28429# Options from here on. Some of these are preset by platform above
28430
28431# Check whether --with-mantype was given.
28432if test "${with_mantype+set}" = set; then
28433 withval=$with_mantype;
28434 case "$withval" in
28435 man|cat|doc)
28436 MANTYPE=$withval
28437 ;;
28438 *)
28439 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
28440echo "$as_me: error: invalid man type: $withval" >&2;}
28441 { (exit 1); exit 1; }; }
28442 ;;
28443 esac
28444
28445
28446fi
28447
28448if test -z "$MANTYPE"; then
28449 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
28450 for ac_prog in nroff awf
28451do
28452 # Extract the first word of "$ac_prog", so it can be a program name with args.
28453set dummy $ac_prog; ac_word=$2
28454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28456if test "${ac_cv_path_NROFF+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28458else
28459 case $NROFF in
28460 [\\/]* | ?:[\\/]*)
28461 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
28462 ;;
28463 *)
28464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28465for as_dir in $TestPath
28466do
28467 IFS=$as_save_IFS
28468 test -z "$as_dir" && as_dir=.
28469 for ac_exec_ext in '' $ac_executable_extensions; do
28470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28471 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
28472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28473 break 2
28474 fi
28475done
28476done
28477IFS=$as_save_IFS
28478
28479 ;;
28480esac
28481fi
28482NROFF=$ac_cv_path_NROFF
28483if test -n "$NROFF"; then
28484 { echo "$as_me:$LINENO: result: $NROFF" >&5
28485echo "${ECHO_T}$NROFF" >&6; }
28486else
28487 { echo "$as_me:$LINENO: result: no" >&5
28488echo "${ECHO_T}no" >&6; }
28489fi
28490
28491
28492 test -n "$NROFF" && break
28493done
28494test -n "$NROFF" || NROFF="/bin/false"
28495
28496 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
28497 MANTYPE=doc
28498 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
28499 MANTYPE=man
28500 else
28501 MANTYPE=cat
28502 fi
28503fi
28504
28505if test "$MANTYPE" = "doc"; then
28506 mansubdir=man;
28507else
28508 mansubdir=$MANTYPE;
28509fi
28510
28511
28512# Check whether to enable MD5 passwords
28513MD5_MSG="no"
28514
28515# Check whether --with-md5-passwords was given.
28516if test "${with_md5_passwords+set}" = set; then
28517 withval=$with_md5_passwords;
28518 if test "x$withval" != "xno" ; then
28519
28520cat >>confdefs.h <<\_ACEOF
28521#define HAVE_MD5_PASSWORDS 1
28522_ACEOF
28523
28524 MD5_MSG="yes"
28525 fi
28526
28527
28528fi
28529
28530
28531# Whether to disable shadow password support
28532
28533# Check whether --with-shadow was given.
28534if test "${with_shadow+set}" = set; then
28535 withval=$with_shadow;
28536 if test "x$withval" = "xno" ; then
28537 cat >>confdefs.h <<\_ACEOF
28538#define DISABLE_SHADOW 1
28539_ACEOF
28540
28541 disable_shadow=yes
28542 fi
28543
28544
28545fi
28546
28547
28548if test -z "$disable_shadow" ; then
28549 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
28550echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
28551 cat >conftest.$ac_ext <<_ACEOF
28552/* confdefs.h. */
28553_ACEOF
28554cat confdefs.h >>conftest.$ac_ext
28555cat >>conftest.$ac_ext <<_ACEOF
28556/* end confdefs.h. */
28557
28558#include <sys/types.h>
28559#include <shadow.h>
28560 struct spwd sp;
28561
28562int
28563main ()
28564{
28565 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
28566 ;
28567 return 0;
28568}
28569_ACEOF
28570rm -f conftest.$ac_objext
28571if { (ac_try="$ac_compile"
28572case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28575esac
28576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577 (eval "$ac_compile") 2>conftest.er1
28578 ac_status=$?
28579 grep -v '^ *+' conftest.er1 >conftest.err
28580 rm -f conftest.er1
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } && {
28584 test -z "$ac_c_werror_flag" ||
28585 test ! -s conftest.err
28586 } && test -s conftest.$ac_objext; then
28587 sp_expire_available=yes
28588else
28589 echo "$as_me: failed program was:" >&5
28590sed 's/^/| /' conftest.$ac_ext >&5
28591
28592
28593
28594fi
28595
28596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597
28598 if test "x$sp_expire_available" = "xyes" ; then
28599 { echo "$as_me:$LINENO: result: yes" >&5
28600echo "${ECHO_T}yes" >&6; }
28601
28602cat >>confdefs.h <<\_ACEOF
28603#define HAS_SHADOW_EXPIRE 1
28604_ACEOF
28605
28606 else
28607 { echo "$as_me:$LINENO: result: no" >&5
28608echo "${ECHO_T}no" >&6; }
28609 fi
28610fi
28611
28612# Use ip address instead of hostname in $DISPLAY
28613if test ! -z "$IPADDR_IN_DISPLAY" ; then
28614 DISPLAY_HACK_MSG="yes"
28615
28616cat >>confdefs.h <<\_ACEOF
28617#define IPADDR_IN_DISPLAY 1
28618_ACEOF
28619
28620else
28621 DISPLAY_HACK_MSG="no"
28622
28623# Check whether --with-ipaddr-display was given.
28624if test "${with_ipaddr_display+set}" = set; then
28625 withval=$with_ipaddr_display;
28626 if test "x$withval" != "xno" ; then
28627 cat >>confdefs.h <<\_ACEOF
28628#define IPADDR_IN_DISPLAY 1
28629_ACEOF
28630
28631 DISPLAY_HACK_MSG="yes"
28632 fi
28633
28634
28635fi
28636
28637fi
28638
28639# check for /etc/default/login and use it if present.
28640# Check whether --enable-etc-default-login was given.
28641if test "${enable_etc_default_login+set}" = set; then
28642 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
28643 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
28644echo "$as_me: /etc/default/login handling disabled" >&6;}
28645 etc_default_login=no
28646 else
28647 etc_default_login=yes
28648 fi
28649else
28650 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
28651 then
28652 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28653echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28654 etc_default_login=no
28655 else
28656 etc_default_login=yes
28657 fi
28658
28659fi
28660
28661
28662if test "x$etc_default_login" != "xno"; then
28663 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28664echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28665if test "${ac_cv_file___etc_default_login_+set}" = set; then
28666 echo $ECHO_N "(cached) $ECHO_C" >&6
28667else
28668 test "$cross_compiling" = yes &&
28669 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28670echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28671 { (exit 1); exit 1; }; }
28672if test -r ""/etc/default/login""; then
28673 ac_cv_file___etc_default_login_=yes
28674else
28675 ac_cv_file___etc_default_login_=no
28676fi
28677fi
28678{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28679echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28680if test $ac_cv_file___etc_default_login_ = yes; then
28681 external_path_file=/etc/default/login
28682fi
28683
28684 if test "x$external_path_file" = "x/etc/default/login"; then
28685
28686cat >>confdefs.h <<\_ACEOF
28687#define HAVE_ETC_DEFAULT_LOGIN 1
28688_ACEOF
28689
28690 fi
28691fi
28692
28693if test $ac_cv_func_login_getcapbool = "yes" && \
28694 test $ac_cv_header_login_cap_h = "yes" ; then
28695 external_path_file=/etc/login.conf
28696fi
28697
28698# Whether to mess with the default path
28699SERVER_PATH_MSG="(default)"
28700
28701# Check whether --with-default-path was given.
28702if test "${with_default_path+set}" = set; then
28703 withval=$with_default_path;
28704 if test "x$external_path_file" = "x/etc/login.conf" ; then
28705 { echo "$as_me:$LINENO: WARNING:
28706--with-default-path=PATH has no effect on this system.
28707Edit /etc/login.conf instead." >&5
28708echo "$as_me: WARNING:
28709--with-default-path=PATH has no effect on this system.
28710Edit /etc/login.conf instead." >&2;}
28711 elif test "x$withval" != "xno" ; then
28712 if test ! -z "$external_path_file" ; then
28713 { echo "$as_me:$LINENO: WARNING:
28714--with-default-path=PATH will only be used if PATH is not defined in
28715$external_path_file ." >&5
28716echo "$as_me: WARNING:
28717--with-default-path=PATH will only be used if PATH is not defined in
28718$external_path_file ." >&2;}
28719 fi
28720 user_path="$withval"
28721 SERVER_PATH_MSG="$withval"
28722 fi
28723
28724else
28725 if test "x$external_path_file" = "x/etc/login.conf" ; then
28726 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28727echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28728 else
28729 if test ! -z "$external_path_file" ; then
28730 { echo "$as_me:$LINENO: WARNING:
28731If PATH is defined in $external_path_file, ensure the path to scp is included,
28732otherwise scp will not work." >&5
28733echo "$as_me: WARNING:
28734If PATH is defined in $external_path_file, ensure the path to scp is included,
28735otherwise scp will not work." >&2;}
28736 fi
28737 if test "$cross_compiling" = yes; then
28738 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28739
28740else
28741 cat >conftest.$ac_ext <<_ACEOF
28742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
28747
28748/* find out what STDPATH is */
28749#include <stdio.h>
28750#ifdef HAVE_PATHS_H
28751# include <paths.h>
28752#endif
28753#ifndef _PATH_STDPATH
28754# ifdef _PATH_USERPATH /* Irix */
28755# define _PATH_STDPATH _PATH_USERPATH
28756# else
28757# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28758# endif
28759#endif
28760#include <sys/types.h>
28761#include <sys/stat.h>
28762#include <fcntl.h>
28763#define DATA "conftest.stdpath"
28764
28765main()
28766{
28767 FILE *fd;
28768 int rc;
28769
28770 fd = fopen(DATA,"w");
28771 if(fd == NULL)
28772 exit(1);
28773
28774 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28775 exit(1);
28776
28777 exit(0);
28778}
28779
28780_ACEOF
28781rm -f conftest$ac_exeext
28782if { (ac_try="$ac_link"
28783case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28786esac
28787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_link") 2>&5
28789 ac_status=$?
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28792 { (case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_try") 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 user_path=`cat conftest.stdpath`
28802else
28803 echo "$as_me: program exited with status $ac_status" >&5
28804echo "$as_me: failed program was:" >&5
28805sed 's/^/| /' conftest.$ac_ext >&5
28806
28807( exit $ac_status )
28808 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28809fi
28810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28811fi
28812
28813
28814# make sure $bindir is in USER_PATH so scp will work
28815 t_bindir=`eval echo ${bindir}`
28816 case $t_bindir in
28817 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28818 esac
28819 case $t_bindir in
28820 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28821 esac
28822 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28823 if test $? -ne 0 ; then
28824 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28825 if test $? -ne 0 ; then
28826 user_path=$user_path:$t_bindir
28827 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28828echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28829 fi
28830 fi
28831 fi
28832
28833fi
28834
28835if test "x$external_path_file" != "x/etc/login.conf" ; then
28836
28837cat >>confdefs.h <<_ACEOF
28838#define USER_PATH "$user_path"
28839_ACEOF
28840
28841
28842fi
28843
28844# Set superuser path separately to user path
28845
28846# Check whether --with-superuser-path was given.
28847if test "${with_superuser_path+set}" = set; then
28848 withval=$with_superuser_path;
28849 if test -n "$withval" && test "x$withval" != "xno" && \
28850 test "x${withval}" != "xyes"; then
28851
28852cat >>confdefs.h <<_ACEOF
28853#define SUPERUSER_PATH "$withval"
28854_ACEOF
28855
28856 superuser_path=$withval
28857 fi
28858
28859
28860fi
28861
28862
28863
28864{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
28865echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
28866IPV4_IN6_HACK_MSG="no"
28867
28868# Check whether --with-4in6 was given.
28869if test "${with_4in6+set}" = set; then
28870 withval=$with_4in6;
28871 if test "x$withval" != "xno" ; then
28872 { echo "$as_me:$LINENO: result: yes" >&5
28873echo "${ECHO_T}yes" >&6; }
28874
28875cat >>confdefs.h <<\_ACEOF
28876#define IPV4_IN_IPV6 1
28877_ACEOF
28878
28879 IPV4_IN6_HACK_MSG="yes"
28880 else
28881 { echo "$as_me:$LINENO: result: no" >&5
28882echo "${ECHO_T}no" >&6; }
28883 fi
28884
28885else
28886
28887 if test "x$inet6_default_4in6" = "xyes"; then
28888 { echo "$as_me:$LINENO: result: yes (default)" >&5
28889echo "${ECHO_T}yes (default)" >&6; }
28890 cat >>confdefs.h <<\_ACEOF
28891#define IPV4_IN_IPV6 1
28892_ACEOF
28893
28894 IPV4_IN6_HACK_MSG="yes"
28895 else
28896 { echo "$as_me:$LINENO: result: no (default)" >&5
28897echo "${ECHO_T}no (default)" >&6; }
28898 fi
28899
28900
28901fi
28902
28903
28904# Whether to enable BSD auth support
28905BSD_AUTH_MSG=no
28906
28907# Check whether --with-bsd-auth was given.
28908if test "${with_bsd_auth+set}" = set; then
28909 withval=$with_bsd_auth;
28910 if test "x$withval" != "xno" ; then
28911
28912cat >>confdefs.h <<\_ACEOF
28913#define BSD_AUTH 1
28914_ACEOF
28915
28916 BSD_AUTH_MSG=yes
28917 fi
28918
28919
28920fi
28921
28922
28923# Where to place sshd.pid
28924piddir=/var/run
28925# make sure the directory exists
28926if test ! -d $piddir ; then
28927 piddir=`eval echo ${sysconfdir}`
28928 case $piddir in
28929 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
28930 esac
28931fi
28932
28933
28934# Check whether --with-pid-dir was given.
28935if test "${with_pid_dir+set}" = set; then
28936 withval=$with_pid_dir;
28937 if test -n "$withval" && test "x$withval" != "xno" && \
28938 test "x${withval}" != "xyes"; then
28939 piddir=$withval
28940 if test ! -d $piddir ; then
28941 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
28942echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
28943 fi
28944 fi
28945
28946
28947fi
28948
28949
28950
28951cat >>confdefs.h <<_ACEOF
28952#define _PATH_SSH_PIDDIR "$piddir"
28953_ACEOF
28954
28955
28956
28957# Check whether --enable-lastlog was given.
28958if test "${enable_lastlog+set}" = set; then
28959 enableval=$enable_lastlog;
28960 if test "x$enableval" = "xno" ; then
28961 cat >>confdefs.h <<\_ACEOF
28962#define DISABLE_LASTLOG 1
28963_ACEOF
28964
28965 fi
28966
28967
28968fi
28969
28970# Check whether --enable-utmp was given.
28971if test "${enable_utmp+set}" = set; then
28972 enableval=$enable_utmp;
28973 if test "x$enableval" = "xno" ; then
28974 cat >>confdefs.h <<\_ACEOF
28975#define DISABLE_UTMP 1
28976_ACEOF
28977
28978 fi
28979
28980
28981fi
28982
28983# Check whether --enable-utmpx was given.
28984if test "${enable_utmpx+set}" = set; then
28985 enableval=$enable_utmpx;
28986 if test "x$enableval" = "xno" ; then
28987
28988cat >>confdefs.h <<\_ACEOF
28989#define DISABLE_UTMPX 1
28990_ACEOF
28991
28992 fi
28993
28994
28995fi
28996
28997# Check whether --enable-wtmp was given.
28998if test "${enable_wtmp+set}" = set; then
28999 enableval=$enable_wtmp;
29000 if test "x$enableval" = "xno" ; then
29001 cat >>confdefs.h <<\_ACEOF
29002#define DISABLE_WTMP 1
29003_ACEOF
29004
29005 fi
29006
29007
29008fi
29009
29010# Check whether --enable-wtmpx was given.
29011if test "${enable_wtmpx+set}" = set; then
29012 enableval=$enable_wtmpx;
29013 if test "x$enableval" = "xno" ; then
29014
29015cat >>confdefs.h <<\_ACEOF
29016#define DISABLE_WTMPX 1
29017_ACEOF
29018
29019 fi
29020
29021
29022fi
29023
29024# Check whether --enable-libutil was given.
29025if test "${enable_libutil+set}" = set; then
29026 enableval=$enable_libutil;
29027 if test "x$enableval" = "xno" ; then
29028 cat >>confdefs.h <<\_ACEOF
29029#define DISABLE_LOGIN 1
29030_ACEOF
29031
29032 fi
29033
29034
29035fi
29036
29037# Check whether --enable-pututline was given.
29038if test "${enable_pututline+set}" = set; then
29039 enableval=$enable_pututline;
29040 if test "x$enableval" = "xno" ; then
29041
29042cat >>confdefs.h <<\_ACEOF
29043#define DISABLE_PUTUTLINE 1
29044_ACEOF
29045
29046 fi
29047
29048
29049fi
29050
29051# Check whether --enable-pututxline was given.
29052if test "${enable_pututxline+set}" = set; then
29053 enableval=$enable_pututxline;
29054 if test "x$enableval" = "xno" ; then
29055
29056cat >>confdefs.h <<\_ACEOF
29057#define DISABLE_PUTUTXLINE 1
29058_ACEOF
29059
29060 fi
29061
29062
29063fi
29064
29065
29066# Check whether --with-lastlog was given.
29067if test "${with_lastlog+set}" = set; then
29068 withval=$with_lastlog;
29069 if test "x$withval" = "xno" ; then
29070 cat >>confdefs.h <<\_ACEOF
29071#define DISABLE_LASTLOG 1
29072_ACEOF
29073
29074 elif test -n "$withval" && test "x${withval}" != "xyes"; then
29075 conf_lastlog_location=$withval
29076 fi
29077
29078
29079fi
29080
29081
29082
29083{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
29084echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
29085cat >conftest.$ac_ext <<_ACEOF
29086/* confdefs.h. */
29087_ACEOF
29088cat confdefs.h >>conftest.$ac_ext
29089cat >>conftest.$ac_ext <<_ACEOF
29090/* end confdefs.h. */
29091
29092#include <sys/types.h>
29093#include <utmp.h>
29094#ifdef HAVE_LASTLOG_H
29095# include <lastlog.h>
29096#endif
29097#ifdef HAVE_PATHS_H
29098# include <paths.h>
29099#endif
29100#ifdef HAVE_LOGIN_H
29101# include <login.h>
29102#endif
29103
29104int
29105main ()
29106{
29107 char *lastlog = LASTLOG_FILE;
29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext
29113if { (ac_try="$ac_compile"
29114case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117esac
29118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_compile") 2>conftest.er1
29120 ac_status=$?
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } && {
29126 test -z "$ac_c_werror_flag" ||
29127 test ! -s conftest.err
29128 } && test -s conftest.$ac_objext; then
29129 { echo "$as_me:$LINENO: result: yes" >&5
29130echo "${ECHO_T}yes" >&6; }
29131else
29132 echo "$as_me: failed program was:" >&5
29133sed 's/^/| /' conftest.$ac_ext >&5
29134
29135
29136 { echo "$as_me:$LINENO: result: no" >&5
29137echo "${ECHO_T}no" >&6; }
29138 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
29139echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
29140 cat >conftest.$ac_ext <<_ACEOF
29141/* confdefs.h. */
29142_ACEOF
29143cat confdefs.h >>conftest.$ac_ext
29144cat >>conftest.$ac_ext <<_ACEOF
29145/* end confdefs.h. */
29146
29147#include <sys/types.h>
29148#include <utmp.h>
29149#ifdef HAVE_LASTLOG_H
29150# include <lastlog.h>
29151#endif
29152#ifdef HAVE_PATHS_H
29153# include <paths.h>
29154#endif
29155
29156int
29157main ()
29158{
29159 char *lastlog = _PATH_LASTLOG;
29160 ;
29161 return 0;
29162}
29163_ACEOF
29164rm -f conftest.$ac_objext
29165if { (ac_try="$ac_compile"
29166case "(($ac_try" in
29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168 *) ac_try_echo=$ac_try;;
29169esac
29170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171 (eval "$ac_compile") 2>conftest.er1
29172 ac_status=$?
29173 grep -v '^ *+' conftest.er1 >conftest.err
29174 rm -f conftest.er1
29175 cat conftest.err >&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } && {
29178 test -z "$ac_c_werror_flag" ||
29179 test ! -s conftest.err
29180 } && test -s conftest.$ac_objext; then
29181 { echo "$as_me:$LINENO: result: yes" >&5
29182echo "${ECHO_T}yes" >&6; }
29183else
29184 echo "$as_me: failed program was:" >&5
29185sed 's/^/| /' conftest.$ac_ext >&5
29186
29187
29188 { echo "$as_me:$LINENO: result: no" >&5
29189echo "${ECHO_T}no" >&6; }
29190 system_lastlog_path=no
29191
29192fi
29193
29194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195
29196
29197fi
29198
29199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29200
29201if test -z "$conf_lastlog_location"; then
29202 if test x"$system_lastlog_path" = x"no" ; then
29203 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
29204 if (test -d "$f" || test -f "$f") ; then
29205 conf_lastlog_location=$f
29206 fi
29207 done
29208 if test -z "$conf_lastlog_location"; then
29209 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
29210echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
29211 fi
29212 fi
29213fi
29214
29215if test -n "$conf_lastlog_location"; then
29216
29217cat >>confdefs.h <<_ACEOF
29218#define CONF_LASTLOG_FILE "$conf_lastlog_location"
29219_ACEOF
29220
29221fi
29222
29223{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
29224echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
29225cat >conftest.$ac_ext <<_ACEOF
29226/* confdefs.h. */
29227_ACEOF
29228cat confdefs.h >>conftest.$ac_ext
29229cat >>conftest.$ac_ext <<_ACEOF
29230/* end confdefs.h. */
29231
29232#include <sys/types.h>
29233#include <utmp.h>
29234#ifdef HAVE_PATHS_H
29235# include <paths.h>
29236#endif
29237
29238int
29239main ()
29240{
29241 char *utmp = UTMP_FILE;
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext
29247if { (ac_try="$ac_compile"
29248case "(($ac_try" in
29249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250 *) ac_try_echo=$ac_try;;
29251esac
29252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29253 (eval "$ac_compile") 2>conftest.er1
29254 ac_status=$?
29255 grep -v '^ *+' conftest.er1 >conftest.err
29256 rm -f conftest.er1
29257 cat conftest.err >&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } && {
29260 test -z "$ac_c_werror_flag" ||
29261 test ! -s conftest.err
29262 } && test -s conftest.$ac_objext; then
29263 { echo "$as_me:$LINENO: result: yes" >&5
29264echo "${ECHO_T}yes" >&6; }
29265else
29266 echo "$as_me: failed program was:" >&5
29267sed 's/^/| /' conftest.$ac_ext >&5
29268
29269 { echo "$as_me:$LINENO: result: no" >&5
29270echo "${ECHO_T}no" >&6; }
29271 system_utmp_path=no
29272
29273fi
29274
29275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276if test -z "$conf_utmp_location"; then
29277 if test x"$system_utmp_path" = x"no" ; then
29278 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
29279 if test -f $f ; then
29280 conf_utmp_location=$f
29281 fi
29282 done
29283 if test -z "$conf_utmp_location"; then
29284 cat >>confdefs.h <<\_ACEOF
29285#define DISABLE_UTMP 1
29286_ACEOF
29287
29288 fi
29289 fi
29290fi
29291if test -n "$conf_utmp_location"; then
29292
29293cat >>confdefs.h <<_ACEOF
29294#define CONF_UTMP_FILE "$conf_utmp_location"
29295_ACEOF
29296
29297fi
29298
29299{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
29300echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
29301cat >conftest.$ac_ext <<_ACEOF
29302/* confdefs.h. */
29303_ACEOF
29304cat confdefs.h >>conftest.$ac_ext
29305cat >>conftest.$ac_ext <<_ACEOF
29306/* end confdefs.h. */
29307
29308#include <sys/types.h>
29309#include <utmp.h>
29310#ifdef HAVE_PATHS_H
29311# include <paths.h>
29312#endif
29313
29314int
29315main ()
29316{
29317 char *wtmp = WTMP_FILE;
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext
29323if { (ac_try="$ac_compile"
29324case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29327esac
29328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_compile") 2>conftest.er1
29330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } && {
29336 test -z "$ac_c_werror_flag" ||
29337 test ! -s conftest.err
29338 } && test -s conftest.$ac_objext; then
29339 { echo "$as_me:$LINENO: result: yes" >&5
29340echo "${ECHO_T}yes" >&6; }
29341else
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 { echo "$as_me:$LINENO: result: no" >&5
29346echo "${ECHO_T}no" >&6; }
29347 system_wtmp_path=no
29348
29349fi
29350
29351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29352if test -z "$conf_wtmp_location"; then
29353 if test x"$system_wtmp_path" = x"no" ; then
29354 for f in /usr/adm/wtmp /var/log/wtmp; do
29355 if test -f $f ; then
29356 conf_wtmp_location=$f
29357 fi
29358 done
29359 if test -z "$conf_wtmp_location"; then
29360 cat >>confdefs.h <<\_ACEOF
29361#define DISABLE_WTMP 1
29362_ACEOF
29363
29364 fi
29365 fi
29366fi
29367if test -n "$conf_wtmp_location"; then
29368
29369cat >>confdefs.h <<_ACEOF
29370#define CONF_WTMP_FILE "$conf_wtmp_location"
29371_ACEOF
29372
29373fi
29374
29375
29376{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
29377echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
29378cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h. */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h. */
29384
29385#include <sys/types.h>
29386#include <utmp.h>
29387#ifdef HAVE_UTMPX_H
29388#include <utmpx.h>
29389#endif
29390#ifdef HAVE_PATHS_H
29391# include <paths.h>
29392#endif
29393
29394int
29395main ()
29396{
29397 char *utmpx = UTMPX_FILE;
29398 ;
29399 return 0;
29400}
29401_ACEOF
29402rm -f conftest.$ac_objext
29403if { (ac_try="$ac_compile"
29404case "(($ac_try" in
29405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406 *) ac_try_echo=$ac_try;;
29407esac
29408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409 (eval "$ac_compile") 2>conftest.er1
29410 ac_status=$?
29411 grep -v '^ *+' conftest.er1 >conftest.err
29412 rm -f conftest.er1
29413 cat conftest.err >&5
29414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); } && {
29416 test -z "$ac_c_werror_flag" ||
29417 test ! -s conftest.err
29418 } && test -s conftest.$ac_objext; then
29419 { echo "$as_me:$LINENO: result: yes" >&5
29420echo "${ECHO_T}yes" >&6; }
29421else
29422 echo "$as_me: failed program was:" >&5
29423sed 's/^/| /' conftest.$ac_ext >&5
29424
29425 { echo "$as_me:$LINENO: result: no" >&5
29426echo "${ECHO_T}no" >&6; }
29427 system_utmpx_path=no
29428
29429fi
29430
29431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432if test -z "$conf_utmpx_location"; then
29433 if test x"$system_utmpx_path" = x"no" ; then
29434 cat >>confdefs.h <<\_ACEOF
29435#define DISABLE_UTMPX 1
29436_ACEOF
29437
29438 fi
29439else
29440
29441cat >>confdefs.h <<_ACEOF
29442#define CONF_UTMPX_FILE "$conf_utmpx_location"
29443_ACEOF
29444
29445fi
29446
29447{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
29448echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
29449cat >conftest.$ac_ext <<_ACEOF
29450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
29455
29456#include <sys/types.h>
29457#include <utmp.h>
29458#ifdef HAVE_UTMPX_H
29459#include <utmpx.h>
29460#endif
29461#ifdef HAVE_PATHS_H
29462# include <paths.h>
29463#endif
29464
29465int
29466main ()
29467{
29468 char *wtmpx = WTMPX_FILE;
29469 ;
29470 return 0;
29471}
29472_ACEOF
29473rm -f conftest.$ac_objext
29474if { (ac_try="$ac_compile"
29475case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478esac
29479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
29481 ac_status=$?
29482 grep -v '^ *+' conftest.er1 >conftest.err
29483 rm -f conftest.er1
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } && {
29487 test -z "$ac_c_werror_flag" ||
29488 test ! -s conftest.err
29489 } && test -s conftest.$ac_objext; then
29490 { echo "$as_me:$LINENO: result: yes" >&5
29491echo "${ECHO_T}yes" >&6; }
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496 { echo "$as_me:$LINENO: result: no" >&5
29497echo "${ECHO_T}no" >&6; }
29498 system_wtmpx_path=no
29499
29500fi
29501
29502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29503if test -z "$conf_wtmpx_location"; then
29504 if test x"$system_wtmpx_path" = x"no" ; then
29505 cat >>confdefs.h <<\_ACEOF
29506#define DISABLE_WTMPX 1
29507_ACEOF
29508
29509 fi
29510else
29511
29512cat >>confdefs.h <<_ACEOF
29513#define CONF_WTMPX_FILE "$conf_wtmpx_location"
29514_ACEOF
29515
29516fi
29517
29518
29519if test ! -z "$blibpath" ; then
29520 LDFLAGS="$LDFLAGS $blibflags$blibpath"
29521 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
29522echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
29523fi
29524
29525CFLAGS="$CFLAGS $werror_flags"
29526
29527if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
29528 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
29529 TEST_SSH_IPV6=no
29530
29531else
29532 TEST_SSH_IPV6=yes
29533
29534fi
29535
29536
29537ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
29538
29539cat >confcache <<\_ACEOF
29540# This file is a shell script that caches the results of configure
29541# tests run on this system so they can be shared between configure
29542# scripts and configure runs, see configure's option --config-cache.
29543# It is not useful on other systems. If it contains results you don't
29544# want to keep, you may remove or edit it.
29545#
29546# config.status only pays attention to the cache file if you give it
29547# the --recheck option to rerun configure.
29548#
29549# `ac_cv_env_foo' variables (set or unset) will be overridden when
29550# loading this file, other *unset* `ac_cv_foo' will be assigned the
29551# following values.
29552
29553_ACEOF
29554
29555# The following way of writing the cache mishandles newlines in values,
29556# but we know of no workaround that is simple, portable, and efficient.
29557# So, we kill variables containing newlines.
29558# Ultrix sh set writes to stderr and can't be redirected directly,
29559# and sets the high bit in the cache file unless we assign to the vars.
29560(
29561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29562 eval ac_val=\$$ac_var
29563 case $ac_val in #(
29564 *${as_nl}*)
29565 case $ac_var in #(
29566 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29567echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29568 esac
29569 case $ac_var in #(
29570 _ | IFS | as_nl) ;; #(
29571 *) $as_unset $ac_var ;;
29572 esac ;;
29573 esac
29574 done
29575
29576 (set) 2>&1 |
29577 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29578 *${as_nl}ac_space=\ *)
29579 # `set' does not quote correctly, so add quotes (double-quote
29580 # substitution turns \\\\ into \\, and sed turns \\ into \).
29581 sed -n \
29582 "s/'/'\\\\''/g;
29583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29584 ;; #(
29585 *)
29586 # `set' quotes correctly as required by POSIX, so do not add quotes.
29587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29588 ;;
29589 esac |
29590 sort
29591) |
29592 sed '
29593 /^ac_cv_env_/b end
29594 t clear
29595 :clear
29596 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29597 t end
29598 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29599 :end' >>confcache
29600if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29601 if test -w "$cache_file"; then
29602 test "x$cache_file" != "x/dev/null" &&
29603 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29604echo "$as_me: updating cache $cache_file" >&6;}
29605 cat confcache >$cache_file
29606 else
29607 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29608echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29609 fi
29610fi
29611rm -f confcache
29612
29613test "x$prefix" = xNONE && prefix=$ac_default_prefix
29614# Let make expand exec_prefix.
29615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29616
29617DEFS=-DHAVE_CONFIG_H
29618
29619ac_libobjs=
29620ac_ltlibobjs=
29621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29622 # 1. Remove the extension, and $U if already installed.
29623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29624 ac_i=`echo "$ac_i" | sed "$ac_script"`
29625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29626 # will be set to the directory where LIBOBJS objects are built.
29627 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29628 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29629done
29630LIBOBJS=$ac_libobjs
29631
29632LTLIBOBJS=$ac_ltlibobjs
29633
29634
29635
29636: ${CONFIG_STATUS=./config.status}
29637ac_clean_files_save=$ac_clean_files
29638ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29639{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29640echo "$as_me: creating $CONFIG_STATUS" >&6;}
29641cat >$CONFIG_STATUS <<_ACEOF
29642#! $SHELL
29643# Generated by $as_me.
29644# Run this file to recreate the current configuration.
29645# Compiler output produced by configure, useful for debugging
29646# configure, is in config.log if it exists.
29647
29648debug=false
29649ac_cs_recheck=false
29650ac_cs_silent=false
29651SHELL=\${CONFIG_SHELL-$SHELL}
29652_ACEOF
29653
29654cat >>$CONFIG_STATUS <<\_ACEOF
29655## --------------------- ##
29656## M4sh Initialization. ##
29657## --------------------- ##
29658
29659# Be more Bourne compatible
29660DUALCASE=1; export DUALCASE # for MKS sh
29661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29662 emulate sh
29663 NULLCMD=:
29664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29665 # is contrary to our usage. Disable this feature.
29666 alias -g '${1+"$@"}'='"$@"'
29667 setopt NO_GLOB_SUBST
29668else
29669 case `(set -o) 2>/dev/null` in
29670 *posix*) set -o posix ;;
29671esac
29672
29673fi
29674
29675
29676
29677
29678# PATH needs CR
29679# Avoid depending upon Character Ranges.
29680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29683as_cr_digits='0123456789'
29684as_cr_alnum=$as_cr_Letters$as_cr_digits
29685
29686# The user is always right.
29687if test "${PATH_SEPARATOR+set}" != set; then
29688 echo "#! /bin/sh" >conf$$.sh
29689 echo "exit 0" >>conf$$.sh
29690 chmod +x conf$$.sh
29691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29692 PATH_SEPARATOR=';'
29693 else
29694 PATH_SEPARATOR=:
29695 fi
29696 rm -f conf$$.sh
29697fi
29698
29699# Support unset when possible.
29700if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29701 as_unset=unset
29702else
29703 as_unset=false
29704fi
29705
29706
29707# IFS
29708# We need space, tab and new line, in precisely that order. Quoting is
29709# there to prevent editors from complaining about space-tab.
29710# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29711# splitting by setting IFS to empty value.)
29712as_nl='
29713'
29714IFS=" "" $as_nl"
29715
29716# Find who we are. Look in the path if we contain no directory separator.
29717case $0 in
29718 *[\\/]* ) as_myself=$0 ;;
29719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29720for as_dir in $PATH
29721do
29722 IFS=$as_save_IFS
29723 test -z "$as_dir" && as_dir=.
29724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29725done
29726IFS=$as_save_IFS
29727
29728 ;;
29729esac
29730# We did not find ourselves, most probably we were run as `sh COMMAND'
29731# in which case we are not to be found in the path.
29732if test "x$as_myself" = x; then
29733 as_myself=$0
29734fi
29735if test ! -f "$as_myself"; then
29736 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29737 { (exit 1); exit 1; }
29738fi
29739
29740# Work around bugs in pre-3.0 UWIN ksh.
29741for as_var in ENV MAIL MAILPATH
29742do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29743done
29744PS1='$ '
29745PS2='> '
29746PS4='+ '
29747
29748# NLS nuisances.
29749for as_var in \
29750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29752 LC_TELEPHONE LC_TIME
29753do
29754 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29755 eval $as_var=C; export $as_var
29756 else
29757 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29758 fi
29759done
29760
29761# Required to use basename.
29762if expr a : '\(a\)' >/dev/null 2>&1 &&
29763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29764 as_expr=expr
29765else
29766 as_expr=false
29767fi
29768
29769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29770 as_basename=basename
29771else
29772 as_basename=false
29773fi
29774
29775
29776# Name of the executable.
29777as_me=`$as_basename -- "$0" ||
29778$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29779 X"$0" : 'X\(//\)$' \| \
29780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29781echo X/"$0" |
29782 sed '/^.*\/\([^/][^/]*\)\/*$/{
29783 s//\1/
29784 q
29785 }
29786 /^X\/\(\/\/\)$/{
29787 s//\1/
29788 q
29789 }
29790 /^X\/\(\/\).*/{
29791 s//\1/
29792 q
29793 }
29794 s/.*/./; q'`
29795
29796# CDPATH.
29797$as_unset CDPATH
29798
29799
29800
29801 as_lineno_1=$LINENO
29802 as_lineno_2=$LINENO
29803 test "x$as_lineno_1" != "x$as_lineno_2" &&
29804 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29805
29806 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29807 # uniformly replaced by the line number. The first 'sed' inserts a
29808 # line-number line after each line using $LINENO; the second 'sed'
29809 # does the real work. The second script uses 'N' to pair each
29810 # line-number line with the line containing $LINENO, and appends
29811 # trailing '-' during substitution so that $LINENO is not a special
29812 # case at line end.
29813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29814 # scripts with optimization help from Paolo Bonzini. Blame Lee
29815 # E. McMahon (1931-1989) for sed's syntax. :-)
29816 sed -n '
29817 p
29818 /[$]LINENO/=
29819 ' <$as_myself |
29820 sed '
29821 s/[$]LINENO.*/&-/
29822 t lineno
29823 b
29824 :lineno
29825 N
29826 :loop
29827 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29828 t loop
29829 s/-\n.*//
29830 ' >$as_me.lineno &&
29831 chmod +x "$as_me.lineno" ||
29832 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29833 { (exit 1); exit 1; }; }
29834
29835 # Don't try to exec as it changes $[0], causing all sort of problems
29836 # (the dirname of $[0] is not the place where we might find the
29837 # original and so on. Autoconf is especially sensitive to this).
29838 . "./$as_me.lineno"
29839 # Exit status is that of the last command.
29840 exit
29841}
29842
29843
29844if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29845 as_dirname=dirname
29846else
29847 as_dirname=false
29848fi
29849
29850ECHO_C= ECHO_N= ECHO_T=
29851case `echo -n x` in
29852-n*)
29853 case `echo 'x\c'` in
29854 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29855 *) ECHO_C='\c';;
29856 esac;;
29857*)
29858 ECHO_N='-n';;
29859esac
29860
29861if expr a : '\(a\)' >/dev/null 2>&1 &&
29862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29863 as_expr=expr
29864else
29865 as_expr=false
29866fi
29867
29868rm -f conf$$ conf$$.exe conf$$.file
29869if test -d conf$$.dir; then
29870 rm -f conf$$.dir/conf$$.file
29871else
29872 rm -f conf$$.dir
29873 mkdir conf$$.dir
29874fi
29875echo >conf$$.file
29876if ln -s conf$$.file conf$$ 2>/dev/null; then
29877 as_ln_s='ln -s'
29878 # ... but there are two gotchas:
29879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29881 # In both cases, we have to default to `cp -p'.
29882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29883 as_ln_s='cp -p'
29884elif ln conf$$.file conf$$ 2>/dev/null; then
29885 as_ln_s=ln
29886else
29887 as_ln_s='cp -p'
29888fi
29889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29890rmdir conf$$.dir 2>/dev/null
29891
29892if mkdir -p . 2>/dev/null; then
29893 as_mkdir_p=:
29894else
29895 test -d ./-p && rmdir ./-p
29896 as_mkdir_p=false
29897fi
29898
29899if test -x / >/dev/null 2>&1; then
29900 as_test_x='test -x'
29901else
29902 if ls -dL / >/dev/null 2>&1; then
29903 as_ls_L_option=L
29904 else
29905 as_ls_L_option=
29906 fi
29907 as_test_x='
29908 eval sh -c '\''
29909 if test -d "$1"; then
29910 test -d "$1/.";
29911 else
29912 case $1 in
29913 -*)set "./$1";;
29914 esac;
29915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29916 ???[sx]*):;;*)false;;esac;fi
29917 '\'' sh
29918 '
29919fi
29920as_executable_p=$as_test_x
29921
29922# Sed expression to map a string onto a valid CPP name.
29923as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29924
29925# Sed expression to map a string onto a valid variable name.
29926as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29927
29928
29929exec 6>&1
29930
29931# Save the log message, to keep $[0] and so on meaningful, and to
29932# report actual input values of CONFIG_FILES etc. instead of their
29933# values after options handling.
29934ac_log="
29935This file was extended by OpenSSH $as_me Portable, which was
29936generated by GNU Autoconf 2.61. Invocation command line was
29937
29938 CONFIG_FILES = $CONFIG_FILES
29939 CONFIG_HEADERS = $CONFIG_HEADERS
29940 CONFIG_LINKS = $CONFIG_LINKS
29941 CONFIG_COMMANDS = $CONFIG_COMMANDS
29942 $ $0 $@
29943
29944on `(hostname || uname -n) 2>/dev/null | sed 1q`
29945"
29946
29947_ACEOF
29948
29949cat >>$CONFIG_STATUS <<_ACEOF
29950# Files that config.status was made for.
29951config_files="$ac_config_files"
29952config_headers="$ac_config_headers"
29953
29954_ACEOF
29955
29956cat >>$CONFIG_STATUS <<\_ACEOF
29957ac_cs_usage="\
29958\`$as_me' instantiates files from templates according to the
29959current configuration.
29960
29961Usage: $0 [OPTIONS] [FILE]...
29962
29963 -h, --help print this help, then exit
29964 -V, --version print version number and configuration settings, then exit
29965 -q, --quiet do not print progress messages
29966 -d, --debug don't remove temporary files
29967 --recheck update $as_me by reconfiguring in the same conditions
29968 --file=FILE[:TEMPLATE]
29969 instantiate the configuration file FILE
29970 --header=FILE[:TEMPLATE]
29971 instantiate the configuration header FILE
29972
29973Configuration files:
29974$config_files
29975
29976Configuration headers:
29977$config_headers
29978
29979Report bugs to <bug-autoconf@gnu.org>."
29980
29981_ACEOF
29982cat >>$CONFIG_STATUS <<_ACEOF
29983ac_cs_version="\\
29984OpenSSH config.status Portable
29985configured by $0, generated by GNU Autoconf 2.61,
29986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29987
29988Copyright (C) 2006 Free Software Foundation, Inc.
29989This config.status script is free software; the Free Software Foundation
29990gives unlimited permission to copy, distribute and modify it."
29991
29992ac_pwd='$ac_pwd'
29993srcdir='$srcdir'
29994INSTALL='$INSTALL'
29995_ACEOF
29996
29997cat >>$CONFIG_STATUS <<\_ACEOF
29998# If no file are specified by the user, then we need to provide default
29999# value. By we need to know if files were specified by the user.
30000ac_need_defaults=:
30001while test $# != 0
30002do
30003 case $1 in
30004 --*=*)
30005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30007 ac_shift=:
30008 ;;
30009 *)
30010 ac_option=$1
30011 ac_optarg=$2
30012 ac_shift=shift
30013 ;;
30014 esac
30015
30016 case $ac_option in
30017 # Handling of the options.
30018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30019 ac_cs_recheck=: ;;
30020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30021 echo "$ac_cs_version"; exit ;;
30022 --debug | --debu | --deb | --de | --d | -d )
30023 debug=: ;;
30024 --file | --fil | --fi | --f )
30025 $ac_shift
30026 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30027 ac_need_defaults=false;;
30028 --header | --heade | --head | --hea )
30029 $ac_shift
30030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30031 ac_need_defaults=false;;
30032 --he | --h)
30033 # Conflict between --help and --header
30034 { echo "$as_me: error: ambiguous option: $1
30035Try \`$0 --help' for more information." >&2
30036 { (exit 1); exit 1; }; };;
30037 --help | --hel | -h )
30038 echo "$ac_cs_usage"; exit ;;
30039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30041 ac_cs_silent=: ;;
30042
30043 # This is an error.
30044 -*) { echo "$as_me: error: unrecognized option: $1
30045Try \`$0 --help' for more information." >&2
30046 { (exit 1); exit 1; }; } ;;
30047
30048 *) ac_config_targets="$ac_config_targets $1"
30049 ac_need_defaults=false ;;
30050
30051 esac
30052 shift
30053done
30054
30055ac_configure_extra_args=
30056
30057if $ac_cs_silent; then
30058 exec 6>/dev/null
30059 ac_configure_extra_args="$ac_configure_extra_args --silent"
30060fi
30061
30062_ACEOF
30063cat >>$CONFIG_STATUS <<_ACEOF
30064if \$ac_cs_recheck; then
30065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30066 CONFIG_SHELL=$SHELL
30067 export CONFIG_SHELL
30068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30069fi
30070
30071_ACEOF
30072cat >>$CONFIG_STATUS <<\_ACEOF
30073exec 5>>config.log
30074{
30075 echo
30076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30077## Running $as_me. ##
30078_ASBOX
30079 echo "$ac_log"
30080} >&5
30081
30082_ACEOF
30083cat >>$CONFIG_STATUS <<_ACEOF
30084_ACEOF
30085
30086cat >>$CONFIG_STATUS <<\_ACEOF
30087
30088# Handling of arguments.
30089for ac_config_target in $ac_config_targets
30090do
30091 case $ac_config_target in
30092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30094 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
30095 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
30096 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
30097 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
30098 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
30099 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
30100 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
30101
30102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30103echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30104 { (exit 1); exit 1; }; };;
30105 esac
30106done
30107
30108
30109# If the user did not use the arguments to specify the items to instantiate,
30110# then the envvar interface is used. Set only those that are not.
30111# We use the long form for the default assignment because of an extremely
30112# bizarre bug on SunOS 4.1.3.
30113if $ac_need_defaults; then
30114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30116fi
30117
30118# Have a temporary directory for convenience. Make it in the build tree
30119# simply because there is no reason against having it here, and in addition,
30120# creating and moving files from /tmp can sometimes cause problems.
30121# Hook for its removal unless debugging.
30122# Note that there is a small window in which the directory will not be cleaned:
30123# after its creation but before its name has been assigned to `$tmp'.
30124$debug ||
30125{
30126 tmp=
30127 trap 'exit_status=$?
30128 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30129' 0
30130 trap '{ (exit 1); exit 1; }' 1 2 13 15
30131}
30132# Create a (secure) tmp directory for tmp files.
30133
30134{
30135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30136 test -n "$tmp" && test -d "$tmp"
30137} ||
30138{
30139 tmp=./conf$$-$RANDOM
30140 (umask 077 && mkdir "$tmp")
30141} ||
30142{
30143 echo "$me: cannot create a temporary directory in ." >&2
30144 { (exit 1); exit 1; }
30145}
30146
30147#
30148# Set up the sed scripts for CONFIG_FILES section.
30149#
30150
30151# No need to generate the scripts if there are no CONFIG_FILES.
30152# This happens for instance when ./config.status config.h
30153if test -n "$CONFIG_FILES"; then
30154
30155_ACEOF
30156
30157
30158
30159ac_delim='%!_!# '
30160for ac_last_try in false false false false false :; do
30161 cat >conf$$subs.sed <<_ACEOF
30162SHELL!$SHELL$ac_delim
30163PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30164PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30165PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30166PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30167PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30168PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30169exec_prefix!$exec_prefix$ac_delim
30170prefix!$prefix$ac_delim
30171program_transform_name!$program_transform_name$ac_delim
30172bindir!$bindir$ac_delim
30173sbindir!$sbindir$ac_delim
30174libexecdir!$libexecdir$ac_delim
30175datarootdir!$datarootdir$ac_delim
30176datadir!$datadir$ac_delim
30177sysconfdir!$sysconfdir$ac_delim
30178sharedstatedir!$sharedstatedir$ac_delim
30179localstatedir!$localstatedir$ac_delim
30180includedir!$includedir$ac_delim
30181oldincludedir!$oldincludedir$ac_delim
30182docdir!$docdir$ac_delim
30183infodir!$infodir$ac_delim
30184htmldir!$htmldir$ac_delim
30185dvidir!$dvidir$ac_delim
30186pdfdir!$pdfdir$ac_delim
30187psdir!$psdir$ac_delim
30188libdir!$libdir$ac_delim
30189localedir!$localedir$ac_delim
30190mandir!$mandir$ac_delim
30191DEFS!$DEFS$ac_delim
30192ECHO_C!$ECHO_C$ac_delim
30193ECHO_N!$ECHO_N$ac_delim
30194ECHO_T!$ECHO_T$ac_delim
30195LIBS!$LIBS$ac_delim
30196build_alias!$build_alias$ac_delim
30197host_alias!$host_alias$ac_delim
30198target_alias!$target_alias$ac_delim
30199CC!$CC$ac_delim
30200CFLAGS!$CFLAGS$ac_delim
30201LDFLAGS!$LDFLAGS$ac_delim
30202CPPFLAGS!$CPPFLAGS$ac_delim
30203ac_ct_CC!$ac_ct_CC$ac_delim
30204EXEEXT!$EXEEXT$ac_delim
30205OBJEXT!$OBJEXT$ac_delim
30206build!$build$ac_delim
30207build_cpu!$build_cpu$ac_delim
30208build_vendor!$build_vendor$ac_delim
30209build_os!$build_os$ac_delim
30210host!$host$ac_delim
30211host_cpu!$host_cpu$ac_delim
30212host_vendor!$host_vendor$ac_delim
30213host_os!$host_os$ac_delim
30214CPP!$CPP$ac_delim
30215GREP!$GREP$ac_delim
30216EGREP!$EGREP$ac_delim
30217AWK!$AWK$ac_delim
30218RANLIB!$RANLIB$ac_delim
30219INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30220INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30221INSTALL_DATA!$INSTALL_DATA$ac_delim
30222AR!$AR$ac_delim
30223CAT!$CAT$ac_delim
30224KILL!$KILL$ac_delim
30225PERL!$PERL$ac_delim
30226SED!$SED$ac_delim
30227ENT!$ENT$ac_delim
30228TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
30229SH!$SH$ac_delim
30230TEST_SHELL!$TEST_SHELL$ac_delim
30231PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
30232PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
30233MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
30234STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
30235LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
30236PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
30237LD!$LD$ac_delim
30238SSHDLIBS!$SSHDLIBS$ac_delim
30239LIBEDIT!$LIBEDIT$ac_delim
30240INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
30241SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
30242PROG_LS!$PROG_LS$ac_delim
30243PROG_NETSTAT!$PROG_NETSTAT$ac_delim
30244PROG_ARP!$PROG_ARP$ac_delim
30245PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
30246PROG_JSTAT!$PROG_JSTAT$ac_delim
30247PROG_PS!$PROG_PS$ac_delim
30248PROG_SAR!$PROG_SAR$ac_delim
30249PROG_W!$PROG_W$ac_delim
30250PROG_WHO!$PROG_WHO$ac_delim
30251PROG_LAST!$PROG_LAST$ac_delim
30252PROG_LASTLOG!$PROG_LASTLOG$ac_delim
30253PROG_DF!$PROG_DF$ac_delim
30254PROG_VMSTAT!$PROG_VMSTAT$ac_delim
30255PROG_UPTIME!$PROG_UPTIME$ac_delim
30256PROG_IPCS!$PROG_IPCS$ac_delim
30257PROG_TAIL!$PROG_TAIL$ac_delim
30258INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
30259_ACEOF
30260
30261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30262 break
30263 elif $ac_last_try; then
30264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30265echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30266 { (exit 1); exit 1; }; }
30267 else
30268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30269 fi
30270done
30271
30272ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30273if test -n "$ac_eof"; then
30274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30275 ac_eof=`expr $ac_eof + 1`
30276fi
30277
30278cat >>$CONFIG_STATUS <<_ACEOF
30279cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30281_ACEOF
30282sed '
30283s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30284s/^/s,@/; s/!/@,|#_!!_#|/
30285:n
30286t n
30287s/'"$ac_delim"'$/,g/; t
30288s/$/\\/; p
30289N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30290' >>$CONFIG_STATUS <conf$$subs.sed
30291rm -f conf$$subs.sed
30292cat >>$CONFIG_STATUS <<_ACEOF
30293CEOF$ac_eof
30294_ACEOF
30295
30296
30297ac_delim='%!_!# '
30298for ac_last_try in false false false false false :; do
30299 cat >conf$$subs.sed <<_ACEOF
30300KRB5CONF!$KRB5CONF$ac_delim
30301PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
30302xauth_path!$xauth_path$ac_delim
30303STRIP_OPT!$STRIP_OPT$ac_delim
30304XAUTH_PATH!$XAUTH_PATH$ac_delim
30305NROFF!$NROFF$ac_delim
30306MANTYPE!$MANTYPE$ac_delim
30307mansubdir!$mansubdir$ac_delim
30308user_path!$user_path$ac_delim
30309piddir!$piddir$ac_delim
30310TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
30311LIBOBJS!$LIBOBJS$ac_delim
30312LTLIBOBJS!$LTLIBOBJS$ac_delim
30313_ACEOF
30314
30315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
30316 break
30317 elif $ac_last_try; then
30318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30319echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30320 { (exit 1); exit 1; }; }
30321 else
30322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30323 fi
30324done
30325
30326ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30327if test -n "$ac_eof"; then
30328 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30329 ac_eof=`expr $ac_eof + 1`
30330fi
30331
30332cat >>$CONFIG_STATUS <<_ACEOF
30333cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30335_ACEOF
30336sed '
30337s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30338s/^/s,@/; s/!/@,|#_!!_#|/
30339:n
30340t n
30341s/'"$ac_delim"'$/,g/; t
30342s/$/\\/; p
30343N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30344' >>$CONFIG_STATUS <conf$$subs.sed
30345rm -f conf$$subs.sed
30346cat >>$CONFIG_STATUS <<_ACEOF
30347:end
30348s/|#_!!_#|//g
30349CEOF$ac_eof
30350_ACEOF
30351
30352
30353# VPATH may cause trouble with some makes, so we remove $(srcdir),
30354# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30355# trailing colons and then remove the whole line if VPATH becomes empty
30356# (actually we leave an empty line to preserve line numbers).
30357if test "x$srcdir" = x.; then
30358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30359s/:*\$(srcdir):*/:/
30360s/:*\${srcdir}:*/:/
30361s/:*@srcdir@:*/:/
30362s/^\([^=]*=[ ]*\):*/\1/
30363s/:*$//
30364s/^[^=]*=[ ]*$//
30365}'
30366fi
30367
30368cat >>$CONFIG_STATUS <<\_ACEOF
30369fi # test -n "$CONFIG_FILES"
30370
30371
30372for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30373do
30374 case $ac_tag in
30375 :[FHLC]) ac_mode=$ac_tag; continue;;
30376 esac
30377 case $ac_mode$ac_tag in
30378 :[FHL]*:*);;
30379 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30380echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30381 { (exit 1); exit 1; }; };;
30382 :[FH]-) ac_tag=-:-;;
30383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30384 esac
30385 ac_save_IFS=$IFS
30386 IFS=:
30387 set x $ac_tag
30388 IFS=$ac_save_IFS
30389 shift
30390 ac_file=$1
30391 shift
30392
30393 case $ac_mode in
30394 :L) ac_source=$1;;
30395 :[FH])
30396 ac_file_inputs=
30397 for ac_f
30398 do
30399 case $ac_f in
30400 -) ac_f="$tmp/stdin";;
30401 *) # Look for the file first in the build tree, then in the source tree
30402 # (if the path is not absolute). The absolute path cannot be DOS-style,
30403 # because $ac_f cannot contain `:'.
30404 test -f "$ac_f" ||
30405 case $ac_f in
30406 [\\/$]*) false;;
30407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30408 esac ||
30409 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30410echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30411 { (exit 1); exit 1; }; };;
30412 esac
30413 ac_file_inputs="$ac_file_inputs $ac_f"
30414 done
30415
30416 # Let's still pretend it is `configure' which instantiates (i.e., don't
30417 # use $as_me), people would be surprised to read:
30418 # /* config.h. Generated by config.status. */
30419 configure_input="Generated from "`IFS=:
30420 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30421 if test x"$ac_file" != x-; then
30422 configure_input="$ac_file. $configure_input"
30423 { echo "$as_me:$LINENO: creating $ac_file" >&5
30424echo "$as_me: creating $ac_file" >&6;}
30425 fi
30426
30427 case $ac_tag in
30428 *:-:* | *:-) cat >"$tmp/stdin";;
30429 esac
30430 ;;
30431 esac
30432
30433 ac_dir=`$as_dirname -- "$ac_file" ||
30434$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30435 X"$ac_file" : 'X\(//\)[^/]' \| \
30436 X"$ac_file" : 'X\(//\)$' \| \
30437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30438echo X"$ac_file" |
30439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30440 s//\1/
30441 q
30442 }
30443 /^X\(\/\/\)[^/].*/{
30444 s//\1/
30445 q
30446 }
30447 /^X\(\/\/\)$/{
30448 s//\1/
30449 q
30450 }
30451 /^X\(\/\).*/{
30452 s//\1/
30453 q
30454 }
30455 s/.*/./; q'`
30456 { as_dir="$ac_dir"
30457 case $as_dir in #(
30458 -*) as_dir=./$as_dir;;
30459 esac
30460 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30461 as_dirs=
30462 while :; do
30463 case $as_dir in #(
30464 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30465 *) as_qdir=$as_dir;;
30466 esac
30467 as_dirs="'$as_qdir' $as_dirs"
30468 as_dir=`$as_dirname -- "$as_dir" ||
30469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30470 X"$as_dir" : 'X\(//\)[^/]' \| \
30471 X"$as_dir" : 'X\(//\)$' \| \
30472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30473echo X"$as_dir" |
30474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30475 s//\1/
30476 q
30477 }
30478 /^X\(\/\/\)[^/].*/{
30479 s//\1/
30480 q
30481 }
30482 /^X\(\/\/\)$/{
30483 s//\1/
30484 q
30485 }
30486 /^X\(\/\).*/{
30487 s//\1/
30488 q
30489 }
30490 s/.*/./; q'`
30491 test -d "$as_dir" && break
30492 done
30493 test -z "$as_dirs" || eval "mkdir $as_dirs"
30494 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30495echo "$as_me: error: cannot create directory $as_dir" >&2;}
30496 { (exit 1); exit 1; }; }; }
30497 ac_builddir=.
30498
30499case "$ac_dir" in
30500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30501*)
30502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30503 # A ".." for each directory in $ac_dir_suffix.
30504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30505 case $ac_top_builddir_sub in
30506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30508 esac ;;
30509esac
30510ac_abs_top_builddir=$ac_pwd
30511ac_abs_builddir=$ac_pwd$ac_dir_suffix
30512# for backward compatibility:
30513ac_top_builddir=$ac_top_build_prefix
30514
30515case $srcdir in
30516 .) # We are building in place.
30517 ac_srcdir=.
30518 ac_top_srcdir=$ac_top_builddir_sub
30519 ac_abs_top_srcdir=$ac_pwd ;;
30520 [\\/]* | ?:[\\/]* ) # Absolute name.
30521 ac_srcdir=$srcdir$ac_dir_suffix;
30522 ac_top_srcdir=$srcdir
30523 ac_abs_top_srcdir=$srcdir ;;
30524 *) # Relative name.
30525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30526 ac_top_srcdir=$ac_top_build_prefix$srcdir
30527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30528esac
30529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30530
30531
30532 case $ac_mode in
30533 :F)
30534 #
30535 # CONFIG_FILE
30536 #
30537
30538 case $INSTALL in
30539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30541 esac
30542_ACEOF
30543
30544cat >>$CONFIG_STATUS <<\_ACEOF
30545# If the template does not know about datarootdir, expand it.
30546# FIXME: This hack should be removed a few years after 2.60.
30547ac_datarootdir_hack=; ac_datarootdir_seen=
30548
30549case `sed -n '/datarootdir/ {
30550 p
30551 q
30552}
30553/@datadir@/p
30554/@docdir@/p
30555/@infodir@/p
30556/@localedir@/p
30557/@mandir@/p
30558' $ac_file_inputs` in
30559*datarootdir*) ac_datarootdir_seen=yes;;
30560*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30561 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30562echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30563_ACEOF
30564cat >>$CONFIG_STATUS <<_ACEOF
30565 ac_datarootdir_hack='
30566 s&@datadir@&$datadir&g
30567 s&@docdir@&$docdir&g
30568 s&@infodir@&$infodir&g
30569 s&@localedir@&$localedir&g
30570 s&@mandir@&$mandir&g
30571 s&\\\${datarootdir}&$datarootdir&g' ;;
30572esac
30573_ACEOF
30574
30575# Neutralize VPATH when `$srcdir' = `.'.
30576# Shell code in configure.ac might set extrasub.
30577# FIXME: do we really want to maintain this feature?
30578cat >>$CONFIG_STATUS <<_ACEOF
30579 sed "$ac_vpsub
30580$extrasub
30581_ACEOF
30582cat >>$CONFIG_STATUS <<\_ACEOF
30583:t
30584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30585s&@configure_input@&$configure_input&;t t
30586s&@top_builddir@&$ac_top_builddir_sub&;t t
30587s&@srcdir@&$ac_srcdir&;t t
30588s&@abs_srcdir@&$ac_abs_srcdir&;t t
30589s&@top_srcdir@&$ac_top_srcdir&;t t
30590s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30591s&@builddir@&$ac_builddir&;t t
30592s&@abs_builddir@&$ac_abs_builddir&;t t
30593s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30594s&@INSTALL@&$ac_INSTALL&;t t
30595$ac_datarootdir_hack
30596" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30597
30598test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30599 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30601 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30602which seems to be undefined. Please make sure it is defined." >&5
30603echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30604which seems to be undefined. Please make sure it is defined." >&2;}
30605
30606 rm -f "$tmp/stdin"
30607 case $ac_file in
30608 -) cat "$tmp/out"; rm -f "$tmp/out";;
30609 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30610 esac
30611 ;;
30612 :H)
30613 #
30614 # CONFIG_HEADER
30615 #
30616_ACEOF
30617
30618# Transform confdefs.h into a sed script `conftest.defines', that
30619# substitutes the proper values into config.h.in to produce config.h.
30620rm -f conftest.defines conftest.tail
30621# First, append a space to every undef/define line, to ease matching.
30622echo 's/$/ /' >conftest.defines
30623# Then, protect against being on the right side of a sed subst, or in
30624# an unquoted here document, in config.status. If some macros were
30625# called several times there might be several #defines for the same
30626# symbol, which is useless. But do not sort them, since the last
30627# AC_DEFINE must be honored.
30628ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30629# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30630# NAME is the cpp macro being defined, VALUE is the value it is being given.
30631# PARAMS is the parameter list in the macro definition--in most cases, it's
30632# just an empty string.
30633ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30634ac_dB='\\)[ (].*,\\1define\\2'
30635ac_dC=' '
30636ac_dD=' ,'
30637
30638uniq confdefs.h |
30639 sed -n '
30640 t rset
30641 :rset
30642 s/^[ ]*#[ ]*define[ ][ ]*//
30643 t ok
30644 d
30645 :ok
30646 s/[\\&,]/\\&/g
30647 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30648 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30649 ' >>conftest.defines
30650
30651# Remove the space that was appended to ease matching.
30652# Then replace #undef with comments. This is necessary, for
30653# example, in the case of _POSIX_SOURCE, which is predefined and required
30654# on some systems where configure will not decide to define it.
30655# (The regexp can be short, since the line contains either #define or #undef.)
30656echo 's/ $//
30657s,^[ #]*u.*,/* & */,' >>conftest.defines
30658
30659# Break up conftest.defines:
30660ac_max_sed_lines=50
30661
30662# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30663# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30664# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30665# et cetera.
30666ac_in='$ac_file_inputs'
30667ac_out='"$tmp/out1"'
30668ac_nxt='"$tmp/out2"'
30669
30670while :
30671do
30672 # Write a here document:
30673 cat >>$CONFIG_STATUS <<_ACEOF
30674 # First, check the format of the line:
30675 cat >"\$tmp/defines.sed" <<\\CEOF
30676/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30677/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30678b
30679:def
30680_ACEOF
30681 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30682 echo 'CEOF
30683 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30684 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30685 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30686 grep . conftest.tail >/dev/null || break
30687 rm -f conftest.defines
30688 mv conftest.tail conftest.defines
30689done
30690rm -f conftest.defines conftest.tail
30691
30692echo "ac_result=$ac_in" >>$CONFIG_STATUS
30693cat >>$CONFIG_STATUS <<\_ACEOF
30694 if test x"$ac_file" != x-; then
30695 echo "/* $configure_input */" >"$tmp/config.h"
30696 cat "$ac_result" >>"$tmp/config.h"
30697 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30699echo "$as_me: $ac_file is unchanged" >&6;}
30700 else
30701 rm -f $ac_file
30702 mv "$tmp/config.h" $ac_file
30703 fi
30704 else
30705 echo "/* $configure_input */"
30706 cat "$ac_result"
30707 fi
30708 rm -f "$tmp/out12"
30709 ;;
30710
30711
30712 esac
30713
30714done # for ac_tag
30715
30716
30717{ (exit 0); exit 0; }
30718_ACEOF
30719chmod +x $CONFIG_STATUS
30720ac_clean_files=$ac_clean_files_save
30721
30722
30723# configure is writing to config.log, and then calls config.status.
30724# config.status does its own redirection, appending to config.log.
30725# Unfortunately, on DOS this fails, as config.log is still kept open
30726# by configure, so config.status won't be able to write to it; its
30727# output is simply discarded. So we exec the FD to /dev/null,
30728# effectively closing config.log, so it can be properly (re)opened and
30729# appended to by config.status. When coming back to configure, we
30730# need to make the FD available again.
30731if test "$no_create" != yes; then
30732 ac_cs_success=:
30733 ac_config_status_args=
30734 test "$silent" = yes &&
30735 ac_config_status_args="$ac_config_status_args --quiet"
30736 exec 5>/dev/null
30737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30738 exec 5>>config.log
30739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30740 # would make configure fail if this is the last instruction.
30741 $ac_cs_success || { (exit 1); exit 1; }
30742fi
30743
30744
30745# Print summary of options
30746
30747# Someone please show me a better way :)
30748A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30749B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30750C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30751D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30752E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30753F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30754G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30755H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30756I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30757J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30758
30759echo ""
30760echo "OpenSSH has been configured with the following options:"
30761echo " User binaries: $B"
30762echo " System binaries: $C"
30763echo " Configuration files: $D"
30764echo " Askpass program: $E"
30765echo " Manual pages: $F"
30766echo " PID file: $G"
30767echo " Privilege separation chroot path: $H"
30768if test "x$external_path_file" = "x/etc/login.conf" ; then
30769echo " At runtime, sshd will use the path defined in $external_path_file"
30770echo " Make sure the path to scp is present, otherwise scp will not work"
30771else
30772echo " sshd default user PATH: $I"
30773 if test ! -z "$external_path_file"; then
30774echo " (If PATH is set in $external_path_file it will be used instead. If"
30775echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30776 fi
30777fi
30778if test ! -z "$superuser_path" ; then
30779echo " sshd superuser user PATH: $J"
30780fi
30781echo " Manpage format: $MANTYPE"
30782echo " PAM support: $PAM_MSG"
30783echo " OSF SIA support: $SIA_MSG"
30784echo " KerberosV support: $KRB5_MSG"
30785echo " SELinux support: $SELINUX_MSG"
30786echo " Smartcard support: $SCARD_MSG"
30787echo " S/KEY support: $SKEY_MSG"
30788echo " TCP Wrappers support: $TCPW_MSG"
30789echo " MD5 password support: $MD5_MSG"
30790echo " libedit support: $LIBEDIT_MSG"
30791echo " Solaris process contract support: $SPC_MSG"
30792echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30793echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30794echo " BSD Auth support: $BSD_AUTH_MSG"
30795echo " Random number source: $RAND_MSG"
30796if test ! -z "$USE_RAND_HELPER" ; then
30797echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30798fi
30799
30800echo ""
30801
30802echo " Host: ${host}"
30803echo " Compiler: ${CC}"
30804echo " Compiler flags: ${CFLAGS}"
30805echo "Preprocessor flags: ${CPPFLAGS}"
30806echo " Linker flags: ${LDFLAGS}"
30807echo " Libraries: ${LIBS}"
30808if test ! -z "${SSHDLIBS}"; then
30809echo " +for sshd: ${SSHDLIBS}"
30810fi
30811
30812echo ""
30813
30814if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30815 echo "SVR4 style packages are supported with \"make package\""
30816 echo ""
30817fi
30818
30819if test "x$PAM_MSG" = "xyes" ; then
30820 echo "PAM is enabled. You may need to install a PAM control file "
30821 echo "for sshd, otherwise password authentication may fail. "
30822 echo "Example PAM control files can be found in the contrib/ "
30823 echo "subdirectory"
30824 echo ""
30825fi
30826
30827if test ! -z "$RAND_HELPER_CMDHASH" ; then
30828 echo "WARNING: you are using the builtin random number collection "
30829 echo "service. Please read WARNING.RNG and request that your OS "
30830 echo "vendor includes kernel-based random number collection in "
30831 echo "future versions of your OS."
30832 echo ""
30833fi
30834
30835if test ! -z "$NO_PEERCHECK" ; then
30836 echo "WARNING: the operating system that you are using does not"
30837 echo "appear to support getpeereid(), getpeerucred() or the"
30838 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30839 echo "enforce security checks to prevent unauthorised connections to"
30840 echo "ssh-agent. Their absence increases the risk that a malicious"
30841 echo "user can connect to your agent."
30842 echo ""
30843fi
30844
30845if test "$AUDIT_MODULE" = "bsm" ; then
30846 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30847 echo "See the Solaris section in README.platform for details."
30848fi