summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2006-05-12 07:53:24 +0000
committerColin Watson <cjwatson@debian.org>2006-05-12 07:53:24 +0000
commit3e2e0ac10674d77618c4c7339e18b83ced247492 (patch)
tree8c7fd1c2333a75d57aa1cb5dfaee2310b1f3d37a /configure
parent56cf3dc50961bcc871a2d86984049e80c24d6456 (diff)
parent16704d57999d987fb8d9ba53379841a79f016d67 (diff)
Import OpenSSH 4.3p2.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28150
1 files changed, 28150 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..5a5e162bd
--- /dev/null
+++ b/configure
@@ -0,0 +1,28150 @@
1#! /bin/sh
2# From configure.ac Revision: 1.322.2.6 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='OpenSSH'
272PACKAGE_TARNAME='openssh'
273PACKAGE_VERSION='Portable'
274PACKAGE_STRING='OpenSSH Portable'
275PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
276
277ac_unique_file="ssh.c"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os AWK CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED STARTUP_SCRIPT_SHELL LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD LIBWRAP LIBEDIT LIBPAM INSTALL_SSH_RAND_HELPER SSH_PRIVSEP_USER PROG_LS PROG_NETSTAT PROG_ARP PROG_IFCONFIG PROG_JSTAT PROG_PS PROG_SAR PROG_W PROG_WHO PROG_LAST PROG_LASTLOG PROG_DF PROG_VMSTAT PROG_UPTIME PROG_IPCS PROG_TAIL INSTALL_SSH_PRNG_CMDS OPENSC_CONFIG PRIVSEP_PATH xauth_path STRIP_OPT XAUTH_PATH NROFF MANTYPE mansubdir user_path piddir LIBOBJS LTLIBOBJS'
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of OpenSSH Portable:";;
846 esac
847 cat <<\_ACEOF
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-largefile omit support for large files
853 --disable-strip Disable calling strip(1) on install
854 --disable-etc-default-login Disable using PATH from /etc/default/login no
855 --disable-lastlog disable use of lastlog even if detected no
856 --disable-utmp disable use of utmp even if detected no
857 --disable-utmpx disable use of utmpx even if detected no
858 --disable-wtmp disable use of wtmp even if detected no
859 --disable-wtmpx disable use of wtmpx even if detected no
860 --disable-libutil disable use of libutil (login() etc.) no
861 --disable-pututline disable use of pututline() etc. (uwtmp) no
862 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-rpath Disable auto-added -R linker paths
868 --with-osfsia Enable Digital Unix SIA
869 --with-cflags Specify additional flags to pass to compiler
870 --with-cppflags Specify additional flags to pass to preprocessor
871 --with-ldflags Specify additional flags to pass to linker
872 --with-libs Specify additional libraries to link with
873 --with-Werror Build main code with -Werror
874 --with-zlib=PATH Use zlib in PATH
875 --without-zlib-version-check Disable zlib version check
876 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
877 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
878 --with-libedit[=PATH] Enable libedit support for sftp
879 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
880 --with-pam Enable PAM support
881 --with-ssl-dir=PATH Specify path to OpenSSL installation
882 --with-rand-helper Use subprocess to gather strong randomness
883 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
884 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
885 --with-entropy-timeout Specify entropy gathering command timeout (msec)
886 --with-privsep-user=user Specify non-privileged user for privilege separation
887 --with-sectok Enable smartcard support using libsectok
888 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
889 --with-kerberos5=PATH Enable Kerberos 5 support
890 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
891 --with-xauth=PATH Specify path to xauth program
892 --with-mantype=man|cat|doc Set man page type
893 --with-md5-passwords Enable use of MD5 passwords
894 --without-shadow Disable shadow password support
895 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
896 --with-default-path= Specify default \$PATH environment for server
897 --with-superuser-path= Specify different path for super-user
898 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
899 --with-bsd-auth Enable BSD auth support
900 --with-pid-dir=PATH Specify location of ssh.pid file
901 --with-lastlog=FILE|DIR specify lastlog location common locations
902
903Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912Use these variables to override the choices made by `configure' or to help
913it to find libraries and programs with nonstandard names/locations.
914
915Report bugs to <openssh-unix-dev@mindrot.org>.
916_ACEOF
917fi
918
919if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
925
926if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930else
931 ac_dir_suffix= ac_top_builddir=
932fi
933
934case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948esac
949
950# Do not use `cd foo && pwd` to compute absolute paths, because
951# the directories may not exist.
952case `pwd` in
953.) ac_abs_builddir="$ac_dir";;
954*)
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_builddir=${ac_top_builddir}.;;
963*)
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_srcdir=$ac_srcdir;;
972*)
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978esac
979case $ac_abs_builddir in
980.) ac_abs_top_srcdir=$ac_top_srcdir;;
981*)
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987esac
988
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 fi
1004 cd $ac_popdir
1005 done
1006fi
1007
1008test -n "$ac_init_help" && exit 0
1009if $ac_init_version; then
1010 cat <<\_ACEOF
1011OpenSSH configure Portable
1012generated by GNU Autoconf 2.59
1013
1014Copyright (C) 2003 Free Software Foundation, Inc.
1015This configure script is free software; the Free Software Foundation
1016gives unlimited permission to copy, distribute and modify it.
1017_ACEOF
1018 exit 0
1019fi
1020exec 5>config.log
1021cat >&5 <<_ACEOF
1022This file contains any messages produced by compilers while
1023running configure, to aid debugging if configure makes a mistake.
1024
1025It was created by OpenSSH $as_me Portable, which was
1026generated by GNU Autoconf 2.59. Invocation command line was
1027
1028 $ $0 $@
1029
1030_ACEOF
1031{
1032cat <<_ASUNAME
1033## --------- ##
1034## Platform. ##
1035## --------- ##
1036
1037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054_ASUNAME
1055
1056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057for as_dir in $PATH
1058do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062done
1063
1064} >&5
1065
1066cat >&5 <<_ACEOF
1067
1068
1069## ----------- ##
1070## Core tests. ##
1071## ----------- ##
1072
1073_ACEOF
1074
1075
1076# Keep a trace of the command line.
1077# Strip out --no-create and --no-recursion so they do not pile up.
1078# Strip out --silent because we don't want to record it for future runs.
1079# Also quote any args containing shell meta-characters.
1080# Make two passes to allow for proper duplicate-argument suppression.
1081ac_configure_args=
1082ac_configure_args0=
1083ac_configure_args1=
1084ac_sep=
1085ac_must_keep_next=false
1086for ac_pass in 1 2
1087do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123done
1124$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127# When interrupted or exit'd, cleanup temporary files, and complete
1128# config.log. We remove comments because anyway the quotes in there
1129# would cause problems or look ugly.
1130# WARNING: Be sure not to use single quotes in there, as some shells,
1131# such as our DU 5.0 friend, will then `close' the trap.
1132trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138## ---------------- ##
1139## Cache variables. ##
1140## ---------------- ##
1141_ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1144{
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
1152 *)
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ;;
1156 esac;
1157}
1158 echo
1159
1160 cat <<\_ASBOX
1161## ----------------- ##
1162## Output variables. ##
1163## ----------------- ##
1164_ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175## ------------- ##
1176## Output files. ##
1177## ------------- ##
1178_ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190## ----------- ##
1191## confdefs.h. ##
1192## ----------- ##
1193_ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1197 fi
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1205 ' 0
1206for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208done
1209ac_signal=0
1210
1211# confdefs.h avoids OS command line length limits that DEFS can exceed.
1212rm -rf conftest* confdefs.h
1213# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214echo >confdefs.h
1215
1216# Predefined preprocessor variables.
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_NAME "$PACKAGE_NAME"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_VERSION "$PACKAGE_VERSION"
1230_ACEOF
1231
1232
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_STRING "$PACKAGE_STRING"
1235_ACEOF
1236
1237
1238cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240_ACEOF
1241
1242
1243# Let the site file select an alternate cache file if it wants to.
1244# Prefer explicitly selected file to automatically selected ones.
1245if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 fi
1251fi
1252for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1257 . "$ac_site_file"
1258 fi
1259done
1260
1261if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
1272else
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276fi
1277
1278# Check that the precious variables saved in the cache have kept the same
1279# value.
1280ac_cache_corrupted=false
1281for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1306 fi;;
1307 esac
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1310 case $ac_new_val in
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1314 esac
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 esac
1319 fi
1320done
1321if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1327fi
1328
1329ac_ext=c
1330ac_cpp='$CPP $CPPFLAGS'
1331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 ac_config_headers="$ac_config_headers config.h"
1365
1366ac_ext=c
1367ac_cpp='$CPP $CPPFLAGS'
1368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371if test -n "$ac_tool_prefix"; then
1372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1373set dummy ${ac_tool_prefix}gcc; ac_word=$2
1374echo "$as_me:$LINENO: checking for $ac_word" >&5
1375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376if test "${ac_cv_prog_CC+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1381else
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 break 2
1392 fi
1393done
1394done
1395
1396fi
1397fi
1398CC=$ac_cv_prog_CC
1399if test -n "$CC"; then
1400 echo "$as_me:$LINENO: result: $CC" >&5
1401echo "${ECHO_T}$CC" >&6
1402else
1403 echo "$as_me:$LINENO: result: no" >&5
1404echo "${ECHO_T}no" >&6
1405fi
1406
1407fi
1408if test -z "$ac_cv_prog_CC"; then
1409 ac_ct_CC=$CC
1410 # Extract the first word of "gcc", so it can be a program name with args.
1411set dummy gcc; ac_word=$2
1412echo "$as_me:$LINENO: checking for $ac_word" >&5
1413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416else
1417 if test -n "$ac_ct_CC"; then
1418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419else
1420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_ac_ct_CC="gcc"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431done
1432done
1433
1434fi
1435fi
1436ac_ct_CC=$ac_cv_prog_ac_ct_CC
1437if test -n "$ac_ct_CC"; then
1438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1439echo "${ECHO_T}$ac_ct_CC" >&6
1440else
1441 echo "$as_me:$LINENO: result: no" >&5
1442echo "${ECHO_T}no" >&6
1443fi
1444
1445 CC=$ac_ct_CC
1446else
1447 CC="$ac_cv_prog_CC"
1448fi
1449
1450if test -z "$CC"; then
1451 if test -n "$ac_tool_prefix"; then
1452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1453set dummy ${ac_tool_prefix}cc; ac_word=$2
1454echo "$as_me:$LINENO: checking for $ac_word" >&5
1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456if test "${ac_cv_prog_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461else
1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
1465 IFS=$as_save_IFS
1466 test -z "$as_dir" && as_dir=.
1467 for ac_exec_ext in '' $ac_executable_extensions; do
1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469 ac_cv_prog_CC="${ac_tool_prefix}cc"
1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471 break 2
1472 fi
1473done
1474done
1475
1476fi
1477fi
1478CC=$ac_cv_prog_CC
1479if test -n "$CC"; then
1480 echo "$as_me:$LINENO: result: $CC" >&5
1481echo "${ECHO_T}$CC" >&6
1482else
1483 echo "$as_me:$LINENO: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487fi
1488if test -z "$ac_cv_prog_CC"; then
1489 ac_ct_CC=$CC
1490 # Extract the first word of "cc", so it can be a program name with args.
1491set dummy cc; ac_word=$2
1492echo "$as_me:$LINENO: checking for $ac_word" >&5
1493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496else
1497 if test -n "$ac_ct_CC"; then
1498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499else
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_ac_ct_CC="cc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 break 2
1510 fi
1511done
1512done
1513
1514fi
1515fi
1516ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517if test -n "$ac_ct_CC"; then
1518 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1519echo "${ECHO_T}$ac_ct_CC" >&6
1520else
1521 echo "$as_me:$LINENO: result: no" >&5
1522echo "${ECHO_T}no" >&6
1523fi
1524
1525 CC=$ac_ct_CC
1526else
1527 CC="$ac_cv_prog_CC"
1528fi
1529
1530fi
1531if test -z "$CC"; then
1532 # Extract the first word of "cc", so it can be a program name with args.
1533set dummy cc; ac_word=$2
1534echo "$as_me:$LINENO: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541else
1542 ac_prog_rejected=no
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1551 ac_prog_rejected=yes
1552 continue
1553 fi
1554 ac_cv_prog_CC="cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1557 fi
1558done
1559done
1560
1561if test $ac_prog_rejected = yes; then
1562 # We found a bogon in the path, so make sure we never use it.
1563 set dummy $ac_cv_prog_CC
1564 shift
1565 if test $# != 0; then
1566 # We chose a different compiler from the bogus one.
1567 # However, it has the same basename, so the bogon will be chosen
1568 # first if we set CC to just the basename; use the full file name.
1569 shift
1570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1571 fi
1572fi
1573fi
1574fi
1575CC=$ac_cv_prog_CC
1576if test -n "$CC"; then
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578echo "${ECHO_T}$CC" >&6
1579else
1580 echo "$as_me:$LINENO: result: no" >&5
1581echo "${ECHO_T}no" >&6
1582fi
1583
1584fi
1585if test -z "$CC"; then
1586 if test -n "$ac_tool_prefix"; then
1587 for ac_prog in cl
1588 do
1589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613fi
1614fi
1615CC=$ac_cv_prog_CC
1616if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
1619else
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624 test -n "$CC" && break
1625 done
1626fi
1627if test -z "$CC"; then
1628 ac_ct_CC=$CC
1629 for ac_prog in cl
1630do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
1653done
1654
1655fi
1656fi
1657ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660echo "${ECHO_T}$ac_ct_CC" >&6
1661else
1662 echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666 test -n "$ac_ct_CC" && break
1667done
1668
1669 CC=$ac_ct_CC
1670fi
1671
1672fi
1673
1674
1675test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1676See \`config.log' for more details." >&5
1677echo "$as_me: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&2;}
1679 { (exit 1); exit 1; }; }
1680
1681# Provide some information about the compiler.
1682echo "$as_me:$LINENO:" \
1683 "checking for C compiler version" >&5
1684ac_compiler=`set X $ac_compile; echo $2`
1685{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1687 ac_status=$?
1688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1692 ac_status=$?
1693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700
1701cat >conftest.$ac_ext <<_ACEOF
1702/* confdefs.h. */
1703_ACEOF
1704cat confdefs.h >>conftest.$ac_ext
1705cat >>conftest.$ac_ext <<_ACEOF
1706/* end confdefs.h. */
1707
1708int
1709main ()
1710{
1711
1712 ;
1713 return 0;
1714}
1715_ACEOF
1716ac_clean_files_save=$ac_clean_files
1717ac_clean_files="$ac_clean_files a.out a.exe b.out"
1718# Try to create an executable without -o first, disregard a.out.
1719# It will help us diagnose broken compilers, and finding out an intuition
1720# of exeext.
1721echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1722echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1723ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1724if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1725 (eval $ac_link_default) 2>&5
1726 ac_status=$?
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # Find the output, starting from the most likely. This scheme is
1730# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1731# resort.
1732
1733# Be careful to initialize this variable, since it used to be cached.
1734# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1735ac_cv_exeext=
1736# b.out is created by i960 compilers.
1737for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1738do
1739 test -f "$ac_file" || continue
1740 case $ac_file in
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1742 ;;
1743 conftest.$ac_ext )
1744 # This is the source file.
1745 ;;
1746 [ab].out )
1747 # We found the default executable, but exeext='' is most
1748 # certainly right.
1749 break;;
1750 *.* )
1751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1752 # FIXME: I believe we export ac_cv_exeext for Libtool,
1753 # but it would be cool to find out if it's true. Does anybody
1754 # maintain Libtool? --akim.
1755 export ac_cv_exeext
1756 break;;
1757 * )
1758 break;;
1759 esac
1760done
1761else
1762 echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: C compiler cannot create executables
1768See \`config.log' for more details." >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
1773echo "$as_me:$LINENO: result: $ac_file" >&5
1774echo "${ECHO_T}$ac_file" >&6
1775
1776# Check the compiler produces executables we can run. If not, either
1777# the compiler is broken, or we cross compile.
1778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781# If not cross compiling, check that we can run a simple program.
1782if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
1790 else
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795If you meant to cross compile, use \`--host'.
1796See \`config.log' for more details." >&5
1797echo "$as_me: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&2;}
1800 { (exit 1); exit 1; }; }
1801 fi
1802 fi
1803fi
1804echo "$as_me:$LINENO: result: yes" >&5
1805echo "${ECHO_T}yes" >&6
1806
1807rm -f a.out a.exe conftest$ac_cv_exeext b.out
1808ac_clean_files=$ac_clean_files_save
1809# Check the compiler produces executables we can run. If not, either
1810# the compiler is broken, or we cross compile.
1811echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814echo "${ECHO_T}$cross_compiling" >&6
1815
1816echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825# work properly (i.e., refer to `conftest.exe'), while it won't with
1826# `rm'.
1827for ac_file in conftest.exe conftest conftest.*; do
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 export ac_cv_exeext
1833 break;;
1834 * ) break;;
1835 esac
1836done
1837else
1838 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1839See \`config.log' for more details." >&5
1840echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&2;}
1842 { (exit 1); exit 1; }; }
1843fi
1844
1845rm -f conftest$ac_cv_exeext
1846echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1847echo "${ECHO_T}$ac_cv_exeext" >&6
1848
1849rm -f conftest.$ac_ext
1850EXEEXT=$ac_cv_exeext
1851ac_exeext=$EXEEXT
1852echo "$as_me:$LINENO: checking for suffix of object files" >&5
1853echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1854if test "${ac_cv_objext+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 cat >conftest.$ac_ext <<_ACEOF
1858/* confdefs.h. */
1859_ACEOF
1860cat confdefs.h >>conftest.$ac_ext
1861cat >>conftest.$ac_ext <<_ACEOF
1862/* end confdefs.h. */
1863
1864int
1865main ()
1866{
1867
1868 ;
1869 return 0;
1870}
1871_ACEOF
1872rm -f conftest.o conftest.obj
1873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 case $ac_file in
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 break;;
1883 esac
1884done
1885else
1886 echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1890See \`config.log' for more details." >&5
1891echo "$as_me: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1894fi
1895
1896rm -f conftest.$ac_cv_objext conftest.$ac_ext
1897fi
1898echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1899echo "${ECHO_T}$ac_cv_objext" >&6
1900OBJEXT=$ac_cv_objext
1901ac_objext=$OBJEXT
1902echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1903echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1904if test "${ac_cv_c_compiler_gnu+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 cat >conftest.$ac_ext <<_ACEOF
1908/* confdefs.h. */
1909_ACEOF
1910cat confdefs.h >>conftest.$ac_ext
1911cat >>conftest.$ac_ext <<_ACEOF
1912/* end confdefs.h. */
1913
1914int
1915main ()
1916{
1917#ifndef __GNUC__
1918 choke me
1919#endif
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>conftest.er1
1928 ac_status=$?
1929 grep -v '^ *+' conftest.er1 >conftest.err
1930 rm -f conftest.er1
1931 cat conftest.err >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); } &&
1934 { ac_try='test -z "$ac_c_werror_flag"
1935 || test ! -s conftest.err'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 ac_compiler_gnu=yes
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952ac_compiler_gnu=no
1953fi
1954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1955ac_cv_c_compiler_gnu=$ac_compiler_gnu
1956
1957fi
1958echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1959echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1960GCC=`test $ac_compiler_gnu = yes && echo yes`
1961ac_test_CFLAGS=${CFLAGS+set}
1962ac_save_CFLAGS=$CFLAGS
1963CFLAGS="-g"
1964echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1965echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1966if test "${ac_cv_prog_cc_g+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 cat >conftest.$ac_ext <<_ACEOF
1970/* confdefs.h. */
1971_ACEOF
1972cat confdefs.h >>conftest.$ac_ext
1973cat >>conftest.$ac_ext <<_ACEOF
1974/* end confdefs.h. */
1975
1976int
1977main ()
1978{
1979
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984rm -f conftest.$ac_objext
1985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
1987 ac_status=$?
1988 grep -v '^ *+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag"
1994 || test ! -s conftest.err'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 ac_cv_prog_cc_g=yes
2007else
2008 echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011ac_cv_prog_cc_g=no
2012fi
2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2017if test "$ac_test_CFLAGS" = set; then
2018 CFLAGS=$ac_save_CFLAGS
2019elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2021 CFLAGS="-g -O2"
2022 else
2023 CFLAGS="-g"
2024 fi
2025else
2026 if test "$GCC" = yes; then
2027 CFLAGS="-O2"
2028 else
2029 CFLAGS=
2030 fi
2031fi
2032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 ac_cv_prog_cc_stdc=no
2038ac_save_CC=$CC
2039cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h. */
2045#include <stdarg.h>
2046#include <stdio.h>
2047#include <sys/types.h>
2048#include <sys/stat.h>
2049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050struct buf { int x; };
2051FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052static char *e (p, i)
2053 char **p;
2054 int i;
2055{
2056 return p[i];
2057}
2058static char *f (char * (*g) (char **, int), char **p, ...)
2059{
2060 char *s;
2061 va_list v;
2062 va_start (v,p);
2063 s = g (p, va_arg (v,int));
2064 va_end (v);
2065 return s;
2066}
2067
2068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2069 function prototypes and stuff, but not '\xHH' hex character constants.
2070 These don't provoke an error unfortunately, instead are silently treated
2071 as 'x'. The following induces an error, until -std1 is added to get
2072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2073 array size at least. It's necessary to write '\x00'==0 to get something
2074 that's true only with -std1. */
2075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
2077int test (int i, double x);
2078struct s1 {int (*f) (int a);};
2079struct s2 {int (*f) (double a);};
2080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081int argc;
2082char **argv;
2083int
2084main ()
2085{
2086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091# Don't try gcc -ansi; that turns off useful extensions and
2092# breaks some systems' header files.
2093# AIX -qlanglvl=ansi
2094# Ultrix and OSF/1 -std1
2095# HP-UX 10.20 and later -Ae
2096# HP-UX older versions -Aa -D_HPUX_SOURCE
2097# SVR4 -Xc -D__EXTENSIONS__
2098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_prog_cc_stdc=$ac_arg
2124break
2125else
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129fi
2130rm -f conftest.err conftest.$ac_objext
2131done
2132rm -f conftest.$ac_ext conftest.$ac_objext
2133CC=$ac_save_CC
2134
2135fi
2136
2137case "x$ac_cv_prog_cc_stdc" in
2138 x|xno)
2139 echo "$as_me:$LINENO: result: none needed" >&5
2140echo "${ECHO_T}none needed" >&6 ;;
2141 *)
2142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144 CC="$CC $ac_cv_prog_cc_stdc" ;;
2145esac
2146
2147# Some people use a C++ compiler to compile C. Since we use `exit',
2148# in C++ we need to declare it. In case someone uses the same compiler
2149# for both compiling C and C++ we need to have the C++ compiler decide
2150# the declaration of exit, since it's the most demanding environment.
2151cat >conftest.$ac_ext <<_ACEOF
2152#ifndef __cplusplus
2153 choke me
2154#endif
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 for ac_declaration in \
2179 '' \
2180 'extern "C" void std::exit (int) throw (); using std::exit;' \
2181 'extern "C" void std::exit (int); using std::exit;' \
2182 'extern "C" void exit (int) throw ();' \
2183 'extern "C" void exit (int);' \
2184 'void exit (int);'
2185do
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192$ac_declaration
2193#include <stdlib.h>
2194int
2195main ()
2196{
2197exit (42);
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>conftest.er1
2205 ac_status=$?
2206 grep -v '^ *+' conftest.er1 >conftest.err
2207 rm -f conftest.er1
2208 cat conftest.err >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -z "$ac_c_werror_flag"
2212 || test ! -s conftest.err'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 :
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229continue
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat >conftest.$ac_ext <<_ACEOF
2233/* confdefs.h. */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h. */
2238$ac_declaration
2239int
2240main ()
2241{
2242exit (42);
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2250 ac_status=$?
2251 grep -v '^ *+' conftest.er1 >conftest.err
2252 rm -f conftest.er1
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 break
2270else
2271 echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274fi
2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276done
2277rm -f conftest*
2278if test -n "$ac_declaration"; then
2279 echo '#ifdef __cplusplus' >>confdefs.h
2280 echo $ac_declaration >>confdefs.h
2281 echo '#endif' >>confdefs.h
2282fi
2283
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296ac_aux_dir=
2297for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2298 if test -f $ac_dir/install-sh; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install-sh -c"
2301 break
2302 elif test -f $ac_dir/install.sh; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/install.sh -c"
2305 break
2306 elif test -f $ac_dir/shtool; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/shtool install -c"
2309 break
2310 fi
2311done
2312if test -z "$ac_aux_dir"; then
2313 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2314echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2315 { (exit 1); exit 1; }; }
2316fi
2317ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2318ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2319ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2320
2321# Make sure we can run config.sub.
2322$ac_config_sub sun4 >/dev/null 2>&1 ||
2323 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2324echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2325 { (exit 1); exit 1; }; }
2326
2327echo "$as_me:$LINENO: checking build system type" >&5
2328echo $ECHO_N "checking build system type... $ECHO_C" >&6
2329if test "${ac_cv_build+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 ac_cv_build_alias=$build_alias
2333test -z "$ac_cv_build_alias" &&
2334 ac_cv_build_alias=`$ac_config_guess`
2335test -z "$ac_cv_build_alias" &&
2336 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2337echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2338 { (exit 1); exit 1; }; }
2339ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2341echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2342 { (exit 1); exit 1; }; }
2343
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2346echo "${ECHO_T}$ac_cv_build" >&6
2347build=$ac_cv_build
2348build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2349build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2350build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2351
2352
2353echo "$as_me:$LINENO: checking host system type" >&5
2354echo $ECHO_N "checking host system type... $ECHO_C" >&6
2355if test "${ac_cv_host+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 ac_cv_host_alias=$host_alias
2359test -z "$ac_cv_host_alias" &&
2360 ac_cv_host_alias=$ac_cv_build_alias
2361ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2363echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2364 { (exit 1); exit 1; }; }
2365
2366fi
2367echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2368echo "${ECHO_T}$ac_cv_host" >&6
2369host=$ac_cv_host
2370host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2371host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2372host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2373
2374
2375
2376echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2377echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2378if test "${ac_cv_c_bigendian+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 # See if sys/param.h defines the BYTE_ORDER macro.
2382cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
2388#include <sys/types.h>
2389#include <sys/param.h>
2390
2391int
2392main ()
2393{
2394#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2395 bogus endian macros
2396#endif
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402rm -f conftest.$ac_objext
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 # It does; now see whether it defined to BIG_ENDIAN or not.
2425cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
2431#include <sys/types.h>
2432#include <sys/param.h>
2433
2434int
2435main ()
2436{
2437#if BYTE_ORDER != BIG_ENDIAN
2438 not big endian
2439#endif
2440
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_c_bigendian=yes
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472ac_cv_c_bigendian=no
2473fi
2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479# It does not; compile a test program.
2480if test "$cross_compiling" = yes; then
2481 # try to guess the endianness by grepping values into an object file
2482 ac_cv_c_bigendian=unknown
2483 cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2490short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2491void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2492short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2493short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2494void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2495int
2496main ()
2497{
2498 _ascii (); _ebcdic ();
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2526 ac_cv_c_bigendian=yes
2527fi
2528if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2529 if test "$ac_cv_c_bigendian" = unknown; then
2530 ac_cv_c_bigendian=no
2531 else
2532 # finding both strings is unlikely to happen, but who knows?
2533 ac_cv_c_bigendian=unknown
2534 fi
2535fi
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542else
2543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
2549int
2550main ()
2551{
2552 /* Are we little or big endian? From Harbison&Steele. */
2553 union
2554 {
2555 long l;
2556 char c[sizeof (long)];
2557 } u;
2558 u.l = 1;
2559 exit (u.c[sizeof (long) - 1] == 1);
2560}
2561_ACEOF
2562rm -f conftest$ac_exeext
2563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2564 (eval $ac_link) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_c_bigendian=no
2574else
2575 echo "$as_me: program exited with status $ac_status" >&5
2576echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579( exit $ac_status )
2580ac_cv_c_bigendian=yes
2581fi
2582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2583fi
2584fi
2585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586fi
2587echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2588echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2589case $ac_cv_c_bigendian in
2590 yes)
2591
2592cat >>confdefs.h <<\_ACEOF
2593#define WORDS_BIGENDIAN 1
2594_ACEOF
2595 ;;
2596 no)
2597 ;;
2598 *)
2599 { { echo "$as_me:$LINENO: error: unknown endianness
2600presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2601echo "$as_me: error: unknown endianness
2602presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2603 { (exit 1); exit 1; }; } ;;
2604esac
2605
2606
2607# Checks for programs.
2608for ac_prog in gawk mawk nawk awk
2609do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611set dummy $ac_prog; ac_word=$2
2612echo "$as_me:$LINENO: checking for $ac_word" >&5
2613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614if test "${ac_cv_prog_AWK+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631done
2632done
2633
2634fi
2635fi
2636AWK=$ac_cv_prog_AWK
2637if test -n "$AWK"; then
2638 echo "$as_me:$LINENO: result: $AWK" >&5
2639echo "${ECHO_T}$AWK" >&6
2640else
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
2643fi
2644
2645 test -n "$AWK" && break
2646done
2647
2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2654echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2655# On Suns, sometimes $CPP names a directory.
2656if test -n "$CPP" && test -d "$CPP"; then
2657 CPP=
2658fi
2659if test -z "$CPP"; then
2660 if test "${ac_cv_prog_CPP+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663 # Double quotes because CPP needs to be expanded
2664 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2665 do
2666 ac_preproc_ok=false
2667for ac_c_preproc_warn_flag in '' yes
2668do
2669 # Use a header file that comes with gcc, so configuring glibc
2670 # with a fresh cross-compiler works.
2671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2672 # <limits.h> exists even on freestanding compilers.
2673 # On the NeXT, cc -E runs the code through the compiler's parser,
2674 # not just through cpp. "Syntax error" is here to catch this case.
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
2681#ifdef __STDC__
2682# include <limits.h>
2683#else
2684# include <assert.h>
2685#endif
2686 Syntax error
2687_ACEOF
2688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } >/dev/null; then
2696 if test -s conftest.err; then
2697 ac_cpp_err=$ac_c_preproc_warn_flag
2698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2699 else
2700 ac_cpp_err=
2701 fi
2702else
2703 ac_cpp_err=yes
2704fi
2705if test -z "$ac_cpp_err"; then
2706 :
2707else
2708 echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 # Broken: fails on valid input.
2712continue
2713fi
2714rm -f conftest.err conftest.$ac_ext
2715
2716 # OK, works on sane cases. Now check whether non-existent headers
2717 # can be detected and how.
2718 cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h. */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h. */
2724#include <ac_nonexistent.h>
2725_ACEOF
2726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } >/dev/null; then
2734 if test -s conftest.err; then
2735 ac_cpp_err=$ac_c_preproc_warn_flag
2736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2737 else
2738 ac_cpp_err=
2739 fi
2740else
2741 ac_cpp_err=yes
2742fi
2743if test -z "$ac_cpp_err"; then
2744 # Broken: success on invalid input.
2745continue
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 # Passes both tests.
2751ac_preproc_ok=:
2752break
2753fi
2754rm -f conftest.err conftest.$ac_ext
2755
2756done
2757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2758rm -f conftest.err conftest.$ac_ext
2759if $ac_preproc_ok; then
2760 break
2761fi
2762
2763 done
2764 ac_cv_prog_CPP=$CPP
2765
2766fi
2767 CPP=$ac_cv_prog_CPP
2768else
2769 ac_cv_prog_CPP=$CPP
2770fi
2771echo "$as_me:$LINENO: result: $CPP" >&5
2772echo "${ECHO_T}$CPP" >&6
2773ac_preproc_ok=false
2774for ac_c_preproc_warn_flag in '' yes
2775do
2776 # Use a header file that comes with gcc, so configuring glibc
2777 # with a fresh cross-compiler works.
2778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 # <limits.h> exists even on freestanding compilers.
2780 # On the NeXT, cc -E runs the code through the compiler's parser,
2781 # not just through cpp. "Syntax error" is here to catch this case.
2782 cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788#ifdef __STDC__
2789# include <limits.h>
2790#else
2791# include <assert.h>
2792#endif
2793 Syntax error
2794_ACEOF
2795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null; then
2803 if test -s conftest.err; then
2804 ac_cpp_err=$ac_c_preproc_warn_flag
2805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2806 else
2807 ac_cpp_err=
2808 fi
2809else
2810 ac_cpp_err=yes
2811fi
2812if test -z "$ac_cpp_err"; then
2813 :
2814else
2815 echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 # Broken: fails on valid input.
2819continue
2820fi
2821rm -f conftest.err conftest.$ac_ext
2822
2823 # OK, works on sane cases. Now check whether non-existent headers
2824 # can be detected and how.
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831#include <ac_nonexistent.h>
2832_ACEOF
2833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 ac_status=$?
2836 grep -v '^ *+' conftest.er1 >conftest.err
2837 rm -f conftest.er1
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } >/dev/null; then
2841 if test -s conftest.err; then
2842 ac_cpp_err=$ac_c_preproc_warn_flag
2843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2844 else
2845 ac_cpp_err=
2846 fi
2847else
2848 ac_cpp_err=yes
2849fi
2850if test -z "$ac_cpp_err"; then
2851 # Broken: success on invalid input.
2852continue
2853else
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 # Passes both tests.
2858ac_preproc_ok=:
2859break
2860fi
2861rm -f conftest.err conftest.$ac_ext
2862
2863done
2864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2865rm -f conftest.err conftest.$ac_ext
2866if $ac_preproc_ok; then
2867 :
2868else
2869 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2872See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2874fi
2875
2876ac_ext=c
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881
2882if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2885echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887if test "${ac_cv_prog_RANLIB+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test -n "$RANLIB"; then
2891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907fi
2908fi
2909RANLIB=$ac_cv_prog_RANLIB
2910if test -n "$RANLIB"; then
2911 echo "$as_me:$LINENO: result: $RANLIB" >&5
2912echo "${ECHO_T}$RANLIB" >&6
2913else
2914 echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
2916fi
2917
2918fi
2919if test -z "$ac_cv_prog_RANLIB"; then
2920 ac_ct_RANLIB=$RANLIB
2921 # Extract the first word of "ranlib", so it can be a program name with args.
2922set dummy ranlib; ac_word=$2
2923echo "$as_me:$LINENO: checking for $ac_word" >&5
2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 if test -n "$ac_ct_RANLIB"; then
2929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_RANLIB="ranlib"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942done
2943done
2944
2945 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2946fi
2947fi
2948ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2949if test -n "$ac_ct_RANLIB"; then
2950 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2951echo "${ECHO_T}$ac_ct_RANLIB" >&6
2952else
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
2955fi
2956
2957 RANLIB=$ac_ct_RANLIB
2958else
2959 RANLIB="$ac_cv_prog_RANLIB"
2960fi
2961
2962# Find a good install program. We prefer a C program (faster),
2963# so one script is as good as another. But avoid the broken or
2964# incompatible versions:
2965# SysV /etc/install, /usr/sbin/install
2966# SunOS /usr/etc/install
2967# IRIX /sbin/install
2968# AIX /bin/install
2969# AmigaOS /C/install, which installs bootblocks on floppy discs
2970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2973# OS/2's system install, which has a completely different semantic
2974# ./install, which can be erroneously created by make from ./install.sh.
2975echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2977if test -z "$INSTALL"; then
2978if test "${ac_cv_path_install+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 # Account for people who put trailing slashes in PATH elements.
2987case $as_dir/ in
2988 ./ | .// | /cC/* | \
2989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2991 /usr/ucb/* ) ;;
2992 *)
2993 # OSF1 and SCO ODT 3.0 have their own names for install.
2994 # Don't use installbsd from OSF since it installs stuff as root
2995 # by default.
2996 for ac_prog in ginstall scoinst install; do
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2999 if test $ac_prog = install &&
3000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3001 # AIX install. It has an incompatible calling convention.
3002 :
3003 elif test $ac_prog = install &&
3004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3005 # program-specific install script used by HP pwplus--don't use.
3006 :
3007 else
3008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3009 break 3
3010 fi
3011 fi
3012 done
3013 done
3014 ;;
3015esac
3016done
3017
3018
3019fi
3020 if test "${ac_cv_path_install+set}" = set; then
3021 INSTALL=$ac_cv_path_install
3022 else
3023 # As a last resort, use the slow shell script. We don't cache a
3024 # path for INSTALL within a source directory, because that will
3025 # break other packages using the cache if that directory is
3026 # removed, or if the path is relative.
3027 INSTALL=$ac_install_sh
3028 fi
3029fi
3030echo "$as_me:$LINENO: result: $INSTALL" >&5
3031echo "${ECHO_T}$INSTALL" >&6
3032
3033# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3034# It thinks the first close brace ends the variable substitution.
3035test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3036
3037test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3038
3039test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3040
3041echo "$as_me:$LINENO: checking for egrep" >&5
3042echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3043if test "${ac_cv_prog_egrep+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3047 then ac_cv_prog_egrep='grep -E'
3048 else ac_cv_prog_egrep='egrep'
3049 fi
3050fi
3051echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3052echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3053 EGREP=$ac_cv_prog_egrep
3054
3055
3056# Extract the first word of "ar", so it can be a program name with args.
3057set dummy ar; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_path_AR+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 case $AR in
3064 [\\/]* | ?:[\\/]*)
3065 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3066 ;;
3067 *)
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079done
3080done
3081
3082 ;;
3083esac
3084fi
3085AR=$ac_cv_path_AR
3086
3087if test -n "$AR"; then
3088 echo "$as_me:$LINENO: result: $AR" >&5
3089echo "${ECHO_T}$AR" >&6
3090else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093fi
3094
3095# Extract the first word of "cat", so it can be a program name with args.
3096set dummy cat; ac_word=$2
3097echo "$as_me:$LINENO: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_path_CAT+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102 case $CAT in
3103 [\\/]* | ?:[\\/]*)
3104 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3105 ;;
3106 *)
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
3119done
3120
3121 ;;
3122esac
3123fi
3124CAT=$ac_cv_path_CAT
3125
3126if test -n "$CAT"; then
3127 echo "$as_me:$LINENO: result: $CAT" >&5
3128echo "${ECHO_T}$CAT" >&6
3129else
3130 echo "$as_me:$LINENO: result: no" >&5
3131echo "${ECHO_T}no" >&6
3132fi
3133
3134# Extract the first word of "kill", so it can be a program name with args.
3135set dummy kill; ac_word=$2
3136echo "$as_me:$LINENO: checking for $ac_word" >&5
3137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138if test "${ac_cv_path_KILL+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141 case $KILL in
3142 [\\/]* | ?:[\\/]*)
3143 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
3144 ;;
3145 *)
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157done
3158done
3159
3160 ;;
3161esac
3162fi
3163KILL=$ac_cv_path_KILL
3164
3165if test -n "$KILL"; then
3166 echo "$as_me:$LINENO: result: $KILL" >&5
3167echo "${ECHO_T}$KILL" >&6
3168else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173for ac_prog in perl5 perl
3174do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_path_PERL+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182 case $PERL in
3183 [\\/]* | ?:[\\/]*)
3184 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3185 ;;
3186 *)
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198done
3199done
3200
3201 ;;
3202esac
3203fi
3204PERL=$ac_cv_path_PERL
3205
3206if test -n "$PERL"; then
3207 echo "$as_me:$LINENO: result: $PERL" >&5
3208echo "${ECHO_T}$PERL" >&6
3209else
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
3212fi
3213
3214 test -n "$PERL" && break
3215done
3216
3217# Extract the first word of "sed", so it can be a program name with args.
3218set dummy sed; ac_word=$2
3219echo "$as_me:$LINENO: checking for $ac_word" >&5
3220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221if test "${ac_cv_path_SED+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 case $SED in
3225 [\\/]* | ?:[\\/]*)
3226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3227 ;;
3228 *)
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241done
3242
3243 ;;
3244esac
3245fi
3246SED=$ac_cv_path_SED
3247
3248if test -n "$SED"; then
3249 echo "$as_me:$LINENO: result: $SED" >&5
3250echo "${ECHO_T}$SED" >&6
3251else
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254fi
3255
3256
3257# Extract the first word of "ent", so it can be a program name with args.
3258set dummy ent; ac_word=$2
3259echo "$as_me:$LINENO: checking for $ac_word" >&5
3260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261if test "${ac_cv_path_ENT+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264 case $ENT in
3265 [\\/]* | ?:[\\/]*)
3266 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
3267 ;;
3268 *)
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
3277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281done
3282
3283 ;;
3284esac
3285fi
3286ENT=$ac_cv_path_ENT
3287
3288if test -n "$ENT"; then
3289 echo "$as_me:$LINENO: result: $ENT" >&5
3290echo "${ECHO_T}$ENT" >&6
3291else
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294fi
3295
3296
3297# Extract the first word of "bash", so it can be a program name with args.
3298set dummy bash; ac_word=$2
3299echo "$as_me:$LINENO: checking for $ac_word" >&5
3300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 case $TEST_MINUS_S_SH in
3305 [\\/]* | ?:[\\/]*)
3306 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3307 ;;
3308 *)
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321done
3322
3323 ;;
3324esac
3325fi
3326TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3327
3328if test -n "$TEST_MINUS_S_SH"; then
3329 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3330echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3331else
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334fi
3335
3336# Extract the first word of "ksh", so it can be a program name with args.
3337set dummy ksh; ac_word=$2
3338echo "$as_me:$LINENO: checking for $ac_word" >&5
3339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343 case $TEST_MINUS_S_SH in
3344 [\\/]* | ?:[\\/]*)
3345 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3346 ;;
3347 *)
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360done
3361
3362 ;;
3363esac
3364fi
3365TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3366
3367if test -n "$TEST_MINUS_S_SH"; then
3368 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3369echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3370else
3371 echo "$as_me:$LINENO: result: no" >&5
3372echo "${ECHO_T}no" >&6
3373fi
3374
3375# Extract the first word of "sh", so it can be a program name with args.
3376set dummy sh; ac_word=$2
3377echo "$as_me:$LINENO: checking for $ac_word" >&5
3378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 case $TEST_MINUS_S_SH in
3383 [\\/]* | ?:[\\/]*)
3384 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3385 ;;
3386 *)
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398done
3399done
3400
3401 ;;
3402esac
3403fi
3404TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3405
3406if test -n "$TEST_MINUS_S_SH"; then
3407 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3408echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3409else
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
3412fi
3413
3414# Extract the first word of "sh", so it can be a program name with args.
3415set dummy sh; ac_word=$2
3416echo "$as_me:$LINENO: checking for $ac_word" >&5
3417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418if test "${ac_cv_path_SH+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 case $SH in
3422 [\\/]* | ?:[\\/]*)
3423 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3424 ;;
3425 *)
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437done
3438done
3439
3440 ;;
3441esac
3442fi
3443SH=$ac_cv_path_SH
3444
3445if test -n "$SH"; then
3446 echo "$as_me:$LINENO: result: $SH" >&5
3447echo "${ECHO_T}$SH" >&6
3448else
3449 echo "$as_me:$LINENO: result: no" >&5
3450echo "${ECHO_T}no" >&6
3451fi
3452
3453TEST_SHELL=sh
3454
3455
3456# Extract the first word of "groupadd", so it can be a program name with args.
3457set dummy groupadd; ac_word=$2
3458echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 case $PATH_GROUPADD_PROG in
3464 [\\/]* | ?:[\\/]*)
3465 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
3466 ;;
3467 *)
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3470do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479done
3480done
3481
3482 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
3483 ;;
3484esac
3485fi
3486PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
3487
3488if test -n "$PATH_GROUPADD_PROG"; then
3489 echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
3490echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6
3491else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494fi
3495
3496# Extract the first word of "useradd", so it can be a program name with args.
3497set dummy useradd; ac_word=$2
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 case $PATH_USERADD_PROG in
3504 [\\/]* | ?:[\\/]*)
3505 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
3506 ;;
3507 *)
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519done
3520done
3521
3522 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
3523 ;;
3524esac
3525fi
3526PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
3527
3528if test -n "$PATH_USERADD_PROG"; then
3529 echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
3530echo "${ECHO_T}$PATH_USERADD_PROG" >&6
3531else
3532 echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
3534fi
3535
3536# Extract the first word of "pkgmk", so it can be a program name with args.
3537set dummy pkgmk; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3544 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557done
3558done
3559
3560 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
3561fi
3562fi
3563MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
3564if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3565 echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
3566echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6
3567else
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570fi
3571
3572if test -x /sbin/sh; then
3573 STARTUP_SCRIPT_SHELL=/sbin/sh
3574
3575else
3576 STARTUP_SCRIPT_SHELL=/bin/sh
3577
3578fi
3579
3580# System features
3581# Check whether --enable-largefile or --disable-largefile was given.
3582if test "${enable_largefile+set}" = set; then
3583 enableval="$enable_largefile"
3584
3585fi;
3586if test "$enable_largefile" != no; then
3587
3588 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3589echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3590if test "${ac_cv_sys_largefile_CC+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592else
3593 ac_cv_sys_largefile_CC=no
3594 if test "$GCC" != yes; then
3595 ac_save_CC=$CC
3596 while :; do
3597 # IRIX 6.2 and later do not support large files by default,
3598 # so use the C compiler's -n32 option if that helps.
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605#include <sys/types.h>
3606 /* Check that off_t can represent 2**63 - 1 correctly.
3607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3608 since some C++ compilers masquerading as C compilers
3609 incorrectly reject 9223372036854775807. */
3610#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3612 && LARGE_OFF_T % 2147483647 == 1)
3613 ? 1 : -1];
3614int
3615main ()
3616{
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622 rm -f conftest.$ac_objext
3623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 break
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649fi
3650rm -f conftest.err conftest.$ac_objext
3651 CC="$CC -n32"
3652 rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_sys_largefile_CC=' -n32'; break
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679fi
3680rm -f conftest.err conftest.$ac_objext
3681 break
3682 done
3683 CC=$ac_save_CC
3684 rm -f conftest.$ac_ext
3685 fi
3686fi
3687echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3688echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3689 if test "$ac_cv_sys_largefile_CC" != no; then
3690 CC=$CC$ac_cv_sys_largefile_CC
3691 fi
3692
3693 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3694echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3695if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 while :; do
3699 ac_cv_sys_file_offset_bits=no
3700 cat >conftest.$ac_ext <<_ACEOF
3701/* confdefs.h. */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */
3706#include <sys/types.h>
3707 /* Check that off_t can represent 2**63 - 1 correctly.
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3709 since some C++ compilers masquerading as C compilers
3710 incorrectly reject 9223372036854775807. */
3711#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3713 && LARGE_OFF_T % 2147483647 == 1)
3714 ? 1 : -1];
3715int
3716main ()
3717{
3718
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723rm -f conftest.$ac_objext
3724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 break
3746else
3747 echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750fi
3751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758#define _FILE_OFFSET_BITS 64
3759#include <sys/types.h>
3760 /* Check that off_t can represent 2**63 - 1 correctly.
3761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3762 since some C++ compilers masquerading as C compilers
3763 incorrectly reject 9223372036854775807. */
3764#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3766 && LARGE_OFF_T % 2147483647 == 1)
3767 ? 1 : -1];
3768int
3769main ()
3770{
3771
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776rm -f conftest.$ac_objext
3777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest.$ac_objext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_sys_file_offset_bits=64; break
3799else
3800 echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803fi
3804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 break
3806done
3807fi
3808echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3809echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3810if test "$ac_cv_sys_file_offset_bits" != no; then
3811
3812cat >>confdefs.h <<_ACEOF
3813#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3814_ACEOF
3815
3816fi
3817rm -f conftest*
3818 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3819echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3820if test "${ac_cv_sys_large_files+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 while :; do
3824 ac_cv_sys_large_files=no
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831#include <sys/types.h>
3832 /* Check that off_t can represent 2**63 - 1 correctly.
3833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3834 since some C++ compilers masquerading as C compilers
3835 incorrectly reject 9223372036854775807. */
3836#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3838 && LARGE_OFF_T % 2147483647 == 1)
3839 ? 1 : -1];
3840int
3841main ()
3842{
3843
3844 ;
3845 return 0;
3846}
3847_ACEOF
3848rm -f conftest.$ac_objext
3849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 break
3871else
3872 echo "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875fi
3876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h. */
3883#define _LARGE_FILES 1
3884#include <sys/types.h>
3885 /* Check that off_t can represent 2**63 - 1 correctly.
3886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3887 since some C++ compilers masquerading as C compilers
3888 incorrectly reject 9223372036854775807. */
3889#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3891 && LARGE_OFF_T % 2147483647 == 1)
3892 ? 1 : -1];
3893int
3894main ()
3895{
3896
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext
3902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_c_werror_flag"
3911 || test ! -s conftest.err'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; } &&
3917 { ac_try='test -s conftest.$ac_objext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
3923 ac_cv_sys_large_files=1; break
3924else
3925 echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928fi
3929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3930 break
3931done
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3934echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3935if test "$ac_cv_sys_large_files" != no; then
3936
3937cat >>confdefs.h <<_ACEOF
3938#define _LARGE_FILES $ac_cv_sys_large_files
3939_ACEOF
3940
3941fi
3942rm -f conftest*
3943fi
3944
3945
3946if test -z "$AR" ; then
3947 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3948echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3949 { (exit 1); exit 1; }; }
3950fi
3951
3952# Use LOGIN_PROGRAM from environment if possible
3953if test ! -z "$LOGIN_PROGRAM" ; then
3954
3955cat >>confdefs.h <<_ACEOF
3956#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3957_ACEOF
3958
3959else
3960 # Search for login
3961 # Extract the first word of "login", so it can be a program name with args.
3962set dummy login; ac_word=$2
3963echo "$as_me:$LINENO: checking for $ac_word" >&5
3964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 case $LOGIN_PROGRAM_FALLBACK in
3969 [\\/]* | ?:[\\/]*)
3970 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3971 ;;
3972 *)
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985done
3986
3987 ;;
3988esac
3989fi
3990LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3991
3992if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3993 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3994echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3995else
3996 echo "$as_me:$LINENO: result: no" >&5
3997echo "${ECHO_T}no" >&6
3998fi
3999
4000 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
4001 cat >>confdefs.h <<_ACEOF
4002#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
4003_ACEOF
4004
4005 fi
4006fi
4007
4008# Extract the first word of "passwd", so it can be a program name with args.
4009set dummy passwd; ac_word=$2
4010echo "$as_me:$LINENO: checking for $ac_word" >&5
4011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 case $PATH_PASSWD_PROG in
4016 [\\/]* | ?:[\\/]*)
4017 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
4018 ;;
4019 *)
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031done
4032done
4033
4034 ;;
4035esac
4036fi
4037PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
4038
4039if test -n "$PATH_PASSWD_PROG"; then
4040 echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
4041echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
4042else
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
4045fi
4046
4047if test ! -z "$PATH_PASSWD_PROG" ; then
4048
4049cat >>confdefs.h <<_ACEOF
4050#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
4051_ACEOF
4052
4053fi
4054
4055if test -z "$LD" ; then
4056 LD=$CC
4057fi
4058
4059
4060echo "$as_me:$LINENO: checking for inline" >&5
4061echo $ECHO_N "checking for inline... $ECHO_C" >&6
4062if test "${ac_cv_c_inline+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 ac_cv_c_inline=no
4066for ac_kw in inline __inline__ __inline; do
4067 cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h. */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h. */
4073#ifndef __cplusplus
4074typedef int foo_t;
4075static $ac_kw foo_t static_foo () {return 0; }
4076$ac_kw foo_t foo () {return 0; }
4077#endif
4078
4079_ACEOF
4080rm -f conftest.$ac_objext
4081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try='test -z "$ac_c_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_c_inline=$ac_kw; break
4103else
4104 echo "$as_me: failed program was:" >&5
4105sed 's/^/| /' conftest.$ac_ext >&5
4106
4107fi
4108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109done
4110
4111fi
4112echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4113echo "${ECHO_T}$ac_cv_c_inline" >&6
4114
4115
4116case $ac_cv_c_inline in
4117 inline | yes) ;;
4118 *)
4119 case $ac_cv_c_inline in
4120 no) ac_val=;;
4121 *) ac_val=$ac_cv_c_inline;;
4122 esac
4123 cat >>confdefs.h <<_ACEOF
4124#ifndef __cplusplus
4125#define inline $ac_val
4126#endif
4127_ACEOF
4128 ;;
4129esac
4130
4131
4132echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4133echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4134if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
4143#include <limits.h>
4144
4145int
4146main ()
4147{
4148#ifndef LLONG_MAX
4149 char *p = (char *) LLONG_MAX;
4150#endif
4151
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext
4157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_have_decl_LLONG_MAX=yes
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183ac_cv_have_decl_LLONG_MAX=no
4184fi
4185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186fi
4187echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4188echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4189if test $ac_cv_have_decl_LLONG_MAX = yes; then
4190 have_llong_max=1
4191fi
4192
4193
4194if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4195 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
4196 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
4197 case $GCC_VER in
4198 1.*) ;;
4199 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
4200 2.*) ;;
4201 3.*) CFLAGS="$CFLAGS -Wsign-compare" ;;
4202 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign" ;;
4203 *) ;;
4204 esac
4205
4206 if test -z "$have_llong_max"; then
4207 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
4208 unset ac_cv_have_decl_LLONG_MAX
4209 saved_CFLAGS="$CFLAGS"
4210 CFLAGS="$CFLAGS -std=gnu99"
4211 echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4212echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4213if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222#include <limits.h>
4223
4224
4225int
4226main ()
4227{
4228#ifndef LLONG_MAX
4229 char *p = (char *) LLONG_MAX;
4230#endif
4231
4232 ;
4233 return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext
4237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 ac_cv_have_decl_LLONG_MAX=yes
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263ac_cv_have_decl_LLONG_MAX=no
4264fi
4265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4266fi
4267echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4268echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4269if test $ac_cv_have_decl_LLONG_MAX = yes; then
4270 have_llong_max=1
4271else
4272 CFLAGS="$saved_CFLAGS"
4273fi
4274
4275 fi
4276fi
4277
4278
4279# Check whether --with-rpath or --without-rpath was given.
4280if test "${with_rpath+set}" = set; then
4281 withval="$with_rpath"
4282
4283 if test "x$withval" = "xno" ; then
4284 need_dash_r=""
4285 fi
4286 if test "x$withval" = "xyes" ; then
4287 need_dash_r=1
4288 fi
4289
4290
4291fi;
4292
4293# Check for some target-specific stuff
4294case "$host" in
4295*-*-aix*)
4296 echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
4297echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
4298 if (test -z "$blibpath"); then
4299 blibpath="/usr/lib:/lib"
4300 fi
4301 saved_LDFLAGS="$LDFLAGS"
4302 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
4303 if (test -z "$blibflags"); then
4304 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
4305 cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311
4312int
4313main ()
4314{
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest.$ac_objext conftest$ac_exeext
4321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322 (eval $ac_link) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag"
4330 || test ! -s conftest.err'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; } &&
4336 { ac_try='test -s conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 blibflags=$tryflags
4343else
4344 echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347fi
4348rm -f conftest.err conftest.$ac_objext \
4349 conftest$ac_exeext conftest.$ac_ext
4350 fi
4351 done
4352 if (test -z "$blibflags"); then
4353 echo "$as_me:$LINENO: result: not found" >&5
4354echo "${ECHO_T}not found" >&6
4355 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
4356echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
4357 { (exit 1); exit 1; }; }
4358 else
4359 echo "$as_me:$LINENO: result: $blibflags" >&5
4360echo "${ECHO_T}$blibflags" >&6
4361 fi
4362 LDFLAGS="$saved_LDFLAGS"
4363 echo "$as_me:$LINENO: checking for authenticate" >&5
4364echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
4365if test "${ac_cv_func_authenticate+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h. */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h. */
4374/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
4375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4376#define authenticate innocuous_authenticate
4377
4378/* System header to define __stub macros and hopefully few prototypes,
4379 which can conflict with char authenticate (); below.
4380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 <limits.h> exists even on freestanding compilers. */
4382
4383#ifdef __STDC__
4384# include <limits.h>
4385#else
4386# include <assert.h>
4387#endif
4388
4389#undef authenticate
4390
4391/* Override any gcc2 internal prototype to avoid an error. */
4392#ifdef __cplusplus
4393extern "C"
4394{
4395#endif
4396/* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4398char authenticate ();
4399/* The GNU C library defines this for functions which it implements
4400 to always fail with ENOSYS. Some functions are actually named
4401 something starting with __ and the normal name is an alias. */
4402#if defined (__stub_authenticate) || defined (__stub___authenticate)
4403choke me
4404#else
4405char (*f) () = authenticate;
4406#endif
4407#ifdef __cplusplus
4408}
4409#endif
4410
4411int
4412main ()
4413{
4414return f != authenticate;
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext conftest$ac_exeext
4420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4421 (eval $ac_link) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest$ac_exeext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_cv_func_authenticate=yes
4442else
4443 echo "$as_me: failed program was:" >&5
4444sed 's/^/| /' conftest.$ac_ext >&5
4445
4446ac_cv_func_authenticate=no
4447fi
4448rm -f conftest.err conftest.$ac_objext \
4449 conftest$ac_exeext conftest.$ac_ext
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
4452echo "${ECHO_T}$ac_cv_func_authenticate" >&6
4453if test $ac_cv_func_authenticate = yes; then
4454
4455cat >>confdefs.h <<\_ACEOF
4456#define WITH_AIXAUTHENTICATE 1
4457_ACEOF
4458
4459else
4460 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
4461echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
4462if test "${ac_cv_lib_s_authenticate+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 ac_check_lib_save_LIBS=$LIBS
4466LIBS="-ls $LIBS"
4467cat >conftest.$ac_ext <<_ACEOF
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
4473
4474/* Override any gcc2 internal prototype to avoid an error. */
4475#ifdef __cplusplus
4476extern "C"
4477#endif
4478/* We use char because int might match the return type of a gcc2
4479 builtin and then its argument prototype would still apply. */
4480char authenticate ();
4481int
4482main ()
4483{
4484authenticate ();
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest$ac_exeext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_lib_s_authenticate=yes
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516ac_cv_lib_s_authenticate=no
4517fi
4518rm -f conftest.err conftest.$ac_objext \
4519 conftest$ac_exeext conftest.$ac_ext
4520LIBS=$ac_check_lib_save_LIBS
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
4523echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
4524if test $ac_cv_lib_s_authenticate = yes; then
4525 cat >>confdefs.h <<\_ACEOF
4526#define WITH_AIXAUTHENTICATE 1
4527_ACEOF
4528
4529 LIBS="$LIBS -ls"
4530
4531fi
4532
4533
4534fi
4535
4536 echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
4537echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6
4538if test "${ac_cv_have_decl_authenticate+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547#include <usersec.h>
4548
4549int
4550main ()
4551{
4552#ifndef authenticate
4553 char *p = (char *) authenticate;
4554#endif
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560rm -f conftest.$ac_objext
4561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -z "$ac_c_werror_flag"
4570 || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_cv_have_decl_authenticate=yes
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587ac_cv_have_decl_authenticate=no
4588fi
4589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590fi
4591echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
4592echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6
4593if test $ac_cv_have_decl_authenticate = yes; then
4594
4595cat >>confdefs.h <<_ACEOF
4596#define HAVE_DECL_AUTHENTICATE 1
4597_ACEOF
4598
4599
4600else
4601 cat >>confdefs.h <<_ACEOF
4602#define HAVE_DECL_AUTHENTICATE 0
4603_ACEOF
4604
4605
4606fi
4607echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
4608echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6
4609if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612 cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
4618#include <usersec.h>
4619
4620int
4621main ()
4622{
4623#ifndef loginrestrictions
4624 char *p = (char *) loginrestrictions;
4625#endif
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631rm -f conftest.$ac_objext
4632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_have_decl_loginrestrictions=yes
4654else
4655 echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658ac_cv_have_decl_loginrestrictions=no
4659fi
4660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661fi
4662echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
4663echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6
4664if test $ac_cv_have_decl_loginrestrictions = yes; then
4665
4666cat >>confdefs.h <<_ACEOF
4667#define HAVE_DECL_LOGINRESTRICTIONS 1
4668_ACEOF
4669
4670
4671else
4672 cat >>confdefs.h <<_ACEOF
4673#define HAVE_DECL_LOGINRESTRICTIONS 0
4674_ACEOF
4675
4676
4677fi
4678echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
4679echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6
4680if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h. */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h. */
4689#include <usersec.h>
4690
4691int
4692main ()
4693{
4694#ifndef loginsuccess
4695 char *p = (char *) loginsuccess;
4696#endif
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag"
4712 || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_have_decl_loginsuccess=yes
4725else
4726 echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729ac_cv_have_decl_loginsuccess=no
4730fi
4731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
4734echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6
4735if test $ac_cv_have_decl_loginsuccess = yes; then
4736
4737cat >>confdefs.h <<_ACEOF
4738#define HAVE_DECL_LOGINSUCCESS 1
4739_ACEOF
4740
4741
4742else
4743 cat >>confdefs.h <<_ACEOF
4744#define HAVE_DECL_LOGINSUCCESS 0
4745_ACEOF
4746
4747
4748fi
4749echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
4750echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6
4751if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760#include <usersec.h>
4761
4762int
4763main ()
4764{
4765#ifndef passwdexpired
4766 char *p = (char *) passwdexpired;
4767#endif
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_cv_have_decl_passwdexpired=yes
4796else
4797 echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
4800ac_cv_have_decl_passwdexpired=no
4801fi
4802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
4805echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6
4806if test $ac_cv_have_decl_passwdexpired = yes; then
4807
4808cat >>confdefs.h <<_ACEOF
4809#define HAVE_DECL_PASSWDEXPIRED 1
4810_ACEOF
4811
4812
4813else
4814 cat >>confdefs.h <<_ACEOF
4815#define HAVE_DECL_PASSWDEXPIRED 0
4816_ACEOF
4817
4818
4819fi
4820echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
4821echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6
4822if test "${ac_cv_have_decl_setauthdb+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831#include <usersec.h>
4832
4833int
4834main ()
4835{
4836#ifndef setauthdb
4837 char *p = (char *) setauthdb;
4838#endif
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844rm -f conftest.$ac_objext
4845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_have_decl_setauthdb=yes
4867else
4868 echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871ac_cv_have_decl_setauthdb=no
4872fi
4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
4876echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6
4877if test $ac_cv_have_decl_setauthdb = yes; then
4878
4879cat >>confdefs.h <<_ACEOF
4880#define HAVE_DECL_SETAUTHDB 1
4881_ACEOF
4882
4883
4884else
4885 cat >>confdefs.h <<_ACEOF
4886#define HAVE_DECL_SETAUTHDB 0
4887_ACEOF
4888
4889
4890fi
4891
4892
4893 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
4894echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
4895if test "${ac_cv_have_decl_loginfailed+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include <usersec.h>
4905
4906
4907int
4908main ()
4909{
4910#ifndef loginfailed
4911 char *p = (char *) loginfailed;
4912#endif
4913
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918rm -f conftest.$ac_objext
4919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_have_decl_loginfailed=yes
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945ac_cv_have_decl_loginfailed=no
4946fi
4947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
4949echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
4950echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
4951if test $ac_cv_have_decl_loginfailed = yes; then
4952
4953cat >>confdefs.h <<_ACEOF
4954#define HAVE_DECL_LOGINFAILED 1
4955_ACEOF
4956
4957echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
4958echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
4959 cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
4965#include <usersec.h>
4966int
4967main ()
4968{
4969(void)loginfailed("user","host","tty",0);
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest.$ac_objext
4975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 echo "$as_me:$LINENO: result: yes" >&5
4997echo "${ECHO_T}yes" >&6
4998
4999cat >>confdefs.h <<\_ACEOF
5000#define AIX_LOGINFAILED_4ARG 1
5001_ACEOF
5002
5003else
5004 echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
5009
5010fi
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012else
5013 cat >>confdefs.h <<_ACEOF
5014#define HAVE_DECL_LOGINFAILED 0
5015_ACEOF
5016
5017
5018fi
5019
5020
5021
5022for ac_func in setauthdb
5023do
5024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5025echo "$as_me:$LINENO: checking for $ac_func" >&5
5026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5027if eval "test \"\${$as_ac_var+set}\" = set"; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5038#define $ac_func innocuous_$ac_func
5039
5040/* System header to define __stub macros and hopefully few prototypes,
5041 which can conflict with char $ac_func (); below.
5042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 <limits.h> exists even on freestanding compilers. */
5044
5045#ifdef __STDC__
5046# include <limits.h>
5047#else
5048# include <assert.h>
5049#endif
5050
5051#undef $ac_func
5052
5053/* Override any gcc2 internal prototype to avoid an error. */
5054#ifdef __cplusplus
5055extern "C"
5056{
5057#endif
5058/* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5060char $ac_func ();
5061/* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065choke me
5066#else
5067char (*f) () = $ac_func;
5068#endif
5069#ifdef __cplusplus
5070}
5071#endif
5072
5073int
5074main ()
5075{
5076return f != $ac_func;
5077 ;
5078 return 0;
5079}
5080_ACEOF
5081rm -f conftest.$ac_objext conftest$ac_exeext
5082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 eval "$as_ac_var=yes"
5104else
5105 echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108eval "$as_ac_var=no"
5109fi
5110rm -f conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112fi
5113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5115if test `eval echo '${'$as_ac_var'}'` = yes; then
5116 cat >>confdefs.h <<_ACEOF
5117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5118_ACEOF
5119
5120fi
5121done
5122
5123 check_for_aix_broken_getaddrinfo=1
5124
5125cat >>confdefs.h <<\_ACEOF
5126#define BROKEN_REALPATH 1
5127_ACEOF
5128
5129
5130cat >>confdefs.h <<\_ACEOF
5131#define SETEUID_BREAKS_SETUID 1
5132_ACEOF
5133
5134
5135cat >>confdefs.h <<\_ACEOF
5136#define BROKEN_SETREUID 1
5137_ACEOF
5138
5139
5140cat >>confdefs.h <<\_ACEOF
5141#define BROKEN_SETREGID 1
5142_ACEOF
5143
5144
5145cat >>confdefs.h <<\_ACEOF
5146#define DISABLE_LASTLOG 1
5147_ACEOF
5148
5149
5150cat >>confdefs.h <<\_ACEOF
5151#define LOGIN_NEEDS_UTMPX 1
5152_ACEOF
5153
5154
5155cat >>confdefs.h <<\_ACEOF
5156#define SPT_TYPE SPT_REUSEARGV
5157_ACEOF
5158
5159
5160cat >>confdefs.h <<\_ACEOF
5161#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
5162_ACEOF
5163
5164 ;;
5165*-*-cygwin*)
5166 check_for_libcrypt_later=1
5167 LIBS="$LIBS /usr/lib/textmode.o"
5168
5169cat >>confdefs.h <<\_ACEOF
5170#define HAVE_CYGWIN 1
5171_ACEOF
5172
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define USE_PIPES 1
5176_ACEOF
5177
5178
5179cat >>confdefs.h <<\_ACEOF
5180#define DISABLE_SHADOW 1
5181_ACEOF
5182
5183
5184cat >>confdefs.h <<\_ACEOF
5185#define IP_TOS_IS_BROKEN 1
5186_ACEOF
5187
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define NO_X11_UNIX_SOCKETS 1
5191_ACEOF
5192
5193
5194cat >>confdefs.h <<\_ACEOF
5195#define NO_IPPORT_RESERVED_CONCEPT 1
5196_ACEOF
5197
5198
5199cat >>confdefs.h <<\_ACEOF
5200#define DISABLE_FD_PASSING 1
5201_ACEOF
5202
5203 ;;
5204*-*-dgux*)
5205 cat >>confdefs.h <<\_ACEOF
5206#define IP_TOS_IS_BROKEN 1
5207_ACEOF
5208
5209 cat >>confdefs.h <<\_ACEOF
5210#define SETEUID_BREAKS_SETUID 1
5211_ACEOF
5212
5213 cat >>confdefs.h <<\_ACEOF
5214#define BROKEN_SETREUID 1
5215_ACEOF
5216
5217 cat >>confdefs.h <<\_ACEOF
5218#define BROKEN_SETREGID 1
5219_ACEOF
5220
5221 ;;
5222*-*-darwin*)
5223 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
5224echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
5225 if test "$cross_compiling" = yes; then
5226 echo "$as_me:$LINENO: result: assume it is working" >&5
5227echo "${ECHO_T}assume it is working" >&6
5228else
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
5235#include <mach-o/dyld.h>
5236main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
5237 exit(0);
5238 else
5239 exit(1);
5240}
5241_ACEOF
5242rm -f conftest$ac_exeext
5243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244 (eval $ac_link) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 echo "$as_me:$LINENO: result: working" >&5
5254echo "${ECHO_T}working" >&6
5255else
5256 echo "$as_me: program exited with status $ac_status" >&5
5257echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260( exit $ac_status )
5261echo "$as_me:$LINENO: result: buggy" >&5
5262echo "${ECHO_T}buggy" >&6
5263
5264cat >>confdefs.h <<\_ACEOF
5265#define BROKEN_GETADDRINFO 1
5266_ACEOF
5267
5268fi
5269rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5270fi
5271 cat >>confdefs.h <<\_ACEOF
5272#define SETEUID_BREAKS_SETUID 1
5273_ACEOF
5274
5275 cat >>confdefs.h <<\_ACEOF
5276#define BROKEN_SETREUID 1
5277_ACEOF
5278
5279 cat >>confdefs.h <<\_ACEOF
5280#define BROKEN_SETREGID 1
5281_ACEOF
5282
5283
5284cat >>confdefs.h <<_ACEOF
5285#define BIND_8_COMPAT 1
5286_ACEOF
5287
5288 ;;
5289*-*-hpux*)
5290 # first we define all of the options common to all HP-UX releases
5291 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5292 IPADDR_IN_DISPLAY=yes
5293 cat >>confdefs.h <<\_ACEOF
5294#define USE_PIPES 1
5295_ACEOF
5296
5297
5298cat >>confdefs.h <<\_ACEOF
5299#define LOGIN_NO_ENDOPT 1
5300_ACEOF
5301
5302 cat >>confdefs.h <<\_ACEOF
5303#define LOGIN_NEEDS_UTMPX 1
5304_ACEOF
5305
5306
5307cat >>confdefs.h <<\_ACEOF
5308#define LOCKED_PASSWD_STRING "*"
5309_ACEOF
5310
5311 cat >>confdefs.h <<\_ACEOF
5312#define SPT_TYPE SPT_PSTAT
5313_ACEOF
5314
5315 MAIL="/var/mail/username"
5316 LIBS="$LIBS -lsec"
5317
5318echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5319echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5320if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323 ac_check_lib_save_LIBS=$LIBS
5324LIBS="-lxnet $LIBS"
5325cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331
5332/* Override any gcc2 internal prototype to avoid an error. */
5333#ifdef __cplusplus
5334extern "C"
5335#endif
5336/* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5338char t_error ();
5339int
5340main ()
5341{
5342t_error ();
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347rm -f conftest.$ac_objext conftest$ac_exeext
5348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349 (eval $ac_link) 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest$ac_exeext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_cv_lib_xnet_t_error=yes
5370else
5371 echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374ac_cv_lib_xnet_t_error=no
5375fi
5376rm -f conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378LIBS=$ac_check_lib_save_LIBS
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5381echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5382if test $ac_cv_lib_xnet_t_error = yes; then
5383 cat >>confdefs.h <<_ACEOF
5384#define HAVE_LIBXNET 1
5385_ACEOF
5386
5387 LIBS="-lxnet $LIBS"
5388
5389else
5390 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5391echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5392 { (exit 1); exit 1; }; }
5393fi
5394
5395
5396 # next, we define all of the options specific to major releases
5397 case "$host" in
5398 *-*-hpux10*)
5399 if test -z "$GCC"; then
5400 CFLAGS="$CFLAGS -Ae"
5401 fi
5402 ;;
5403 *-*-hpux11*)
5404
5405cat >>confdefs.h <<\_ACEOF
5406#define PAM_SUN_CODEBASE 1
5407_ACEOF
5408
5409
5410cat >>confdefs.h <<\_ACEOF
5411#define DISABLE_UTMP 1
5412_ACEOF
5413
5414
5415cat >>confdefs.h <<\_ACEOF
5416#define USE_BTMP 1
5417_ACEOF
5418
5419 check_for_hpux_broken_getaddrinfo=1
5420 check_for_conflicting_getspnam=1
5421 ;;
5422 esac
5423
5424 # lastly, we define options specific to minor releases
5425 case "$host" in
5426 *-*-hpux10.26)
5427
5428cat >>confdefs.h <<\_ACEOF
5429#define HAVE_SECUREWARE 1
5430_ACEOF
5431
5432 disable_ptmx_check=yes
5433 LIBS="$LIBS -lsecpw"
5434 ;;
5435 esac
5436 ;;
5437*-*-irix5*)
5438 PATH="$PATH:/usr/etc"
5439
5440cat >>confdefs.h <<\_ACEOF
5441#define BROKEN_INET_NTOA 1
5442_ACEOF
5443
5444 cat >>confdefs.h <<\_ACEOF
5445#define SETEUID_BREAKS_SETUID 1
5446_ACEOF
5447
5448 cat >>confdefs.h <<\_ACEOF
5449#define BROKEN_SETREUID 1
5450_ACEOF
5451
5452 cat >>confdefs.h <<\_ACEOF
5453#define BROKEN_SETREGID 1
5454_ACEOF
5455
5456
5457cat >>confdefs.h <<\_ACEOF
5458#define WITH_ABBREV_NO_TTY 1
5459_ACEOF
5460
5461 cat >>confdefs.h <<\_ACEOF
5462#define LOCKED_PASSWD_STRING "*LK*"
5463_ACEOF
5464
5465 ;;
5466*-*-irix6*)
5467 PATH="$PATH:/usr/etc"
5468
5469cat >>confdefs.h <<\_ACEOF
5470#define WITH_IRIX_ARRAY 1
5471_ACEOF
5472
5473
5474cat >>confdefs.h <<\_ACEOF
5475#define WITH_IRIX_PROJECT 1
5476_ACEOF
5477
5478
5479cat >>confdefs.h <<\_ACEOF
5480#define WITH_IRIX_AUDIT 1
5481_ACEOF
5482
5483 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
5484echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
5485if test "${ac_cv_func_jlimit_startjob+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
5495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5496#define jlimit_startjob innocuous_jlimit_startjob
5497
5498/* System header to define __stub macros and hopefully few prototypes,
5499 which can conflict with char jlimit_startjob (); below.
5500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5501 <limits.h> exists even on freestanding compilers. */
5502
5503#ifdef __STDC__
5504# include <limits.h>
5505#else
5506# include <assert.h>
5507#endif
5508
5509#undef jlimit_startjob
5510
5511/* Override any gcc2 internal prototype to avoid an error. */
5512#ifdef __cplusplus
5513extern "C"
5514{
5515#endif
5516/* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5518char jlimit_startjob ();
5519/* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
5523choke me
5524#else
5525char (*f) () = jlimit_startjob;
5526#endif
5527#ifdef __cplusplus
5528}
5529#endif
5530
5531int
5532main ()
5533{
5534return f != jlimit_startjob;
5535 ;
5536 return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext conftest$ac_exeext
5540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_func_jlimit_startjob=yes
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566ac_cv_func_jlimit_startjob=no
5567fi
5568rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570fi
5571echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
5572echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
5573if test $ac_cv_func_jlimit_startjob = yes; then
5574
5575cat >>confdefs.h <<\_ACEOF
5576#define WITH_IRIX_JOBS 1
5577_ACEOF
5578
5579fi
5580
5581 cat >>confdefs.h <<\_ACEOF
5582#define BROKEN_INET_NTOA 1
5583_ACEOF
5584
5585 cat >>confdefs.h <<\_ACEOF
5586#define SETEUID_BREAKS_SETUID 1
5587_ACEOF
5588
5589 cat >>confdefs.h <<\_ACEOF
5590#define BROKEN_SETREUID 1
5591_ACEOF
5592
5593 cat >>confdefs.h <<\_ACEOF
5594#define BROKEN_SETREGID 1
5595_ACEOF
5596
5597
5598cat >>confdefs.h <<\_ACEOF
5599#define BROKEN_UPDWTMPX 1
5600_ACEOF
5601
5602 cat >>confdefs.h <<\_ACEOF
5603#define WITH_ABBREV_NO_TTY 1
5604_ACEOF
5605
5606 cat >>confdefs.h <<\_ACEOF
5607#define LOCKED_PASSWD_STRING "*LK*"
5608_ACEOF
5609
5610 ;;
5611*-*-linux*)
5612 no_dev_ptmx=1
5613 check_for_libcrypt_later=1
5614 check_for_openpty_ctty_bug=1
5615
5616cat >>confdefs.h <<\_ACEOF
5617#define DONT_TRY_OTHER_AF 1
5618_ACEOF
5619
5620
5621cat >>confdefs.h <<\_ACEOF
5622#define PAM_TTY_KLUDGE 1
5623_ACEOF
5624
5625
5626cat >>confdefs.h <<\_ACEOF
5627#define LOCKED_PASSWD_PREFIX "!"
5628_ACEOF
5629
5630 cat >>confdefs.h <<\_ACEOF
5631#define SPT_TYPE SPT_REUSEARGV
5632_ACEOF
5633
5634
5635cat >>confdefs.h <<\_ACEOF
5636#define LINK_OPNOTSUPP_ERRNO EPERM
5637_ACEOF
5638
5639
5640cat >>confdefs.h <<\_ACEOF
5641#define _PATH_BTMP "/var/log/btmp"
5642_ACEOF
5643
5644 cat >>confdefs.h <<\_ACEOF
5645#define USE_BTMP 1
5646_ACEOF
5647
5648 inet6_default_4in6=yes
5649 case `uname -r` in
5650 1.*|2.0.*)
5651
5652cat >>confdefs.h <<\_ACEOF
5653#define BROKEN_CMSG_TYPE 1
5654_ACEOF
5655
5656 ;;
5657 esac
5658 # tun(4) forwarding compat code
5659
5660echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5661echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5662if test "${ac_cv_header_stdc+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h. */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h. */
5671#include <stdlib.h>
5672#include <stdarg.h>
5673#include <string.h>
5674#include <float.h>
5675
5676int
5677main ()
5678{
5679
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_header_stdc=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711ac_cv_header_stdc=no
5712fi
5713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714
5715if test $ac_cv_header_stdc = yes; then
5716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723#include <string.h>
5724
5725_ACEOF
5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "memchr" >/dev/null 2>&1; then
5728 :
5729else
5730 ac_cv_header_stdc=no
5731fi
5732rm -f conftest*
5733
5734fi
5735
5736if test $ac_cv_header_stdc = yes; then
5737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5738 cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h. */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h. */
5744#include <stdlib.h>
5745
5746_ACEOF
5747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748 $EGREP "free" >/dev/null 2>&1; then
5749 :
5750else
5751 ac_cv_header_stdc=no
5752fi
5753rm -f conftest*
5754
5755fi
5756
5757if test $ac_cv_header_stdc = yes; then
5758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5759 if test "$cross_compiling" = yes; then
5760 :
5761else
5762 cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768#include <ctype.h>
5769#if ((' ' & 0x0FF) == 0x020)
5770# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5771# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5772#else
5773# define ISLOWER(c) \
5774 (('a' <= (c) && (c) <= 'i') \
5775 || ('j' <= (c) && (c) <= 'r') \
5776 || ('s' <= (c) && (c) <= 'z'))
5777# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5778#endif
5779
5780#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5781int
5782main ()
5783{
5784 int i;
5785 for (i = 0; i < 256; i++)
5786 if (XOR (islower (i), ISLOWER (i))
5787 || toupper (i) != TOUPPER (i))
5788 exit(2);
5789 exit (0);
5790}
5791_ACEOF
5792rm -f conftest$ac_exeext
5793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5794 (eval $ac_link) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 :
5804else
5805 echo "$as_me: program exited with status $ac_status" >&5
5806echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809( exit $ac_status )
5810ac_cv_header_stdc=no
5811fi
5812rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5813fi
5814fi
5815fi
5816echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5817echo "${ECHO_T}$ac_cv_header_stdc" >&6
5818if test $ac_cv_header_stdc = yes; then
5819
5820cat >>confdefs.h <<\_ACEOF
5821#define STDC_HEADERS 1
5822_ACEOF
5823
5824fi
5825
5826# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5837 inttypes.h stdint.h unistd.h
5838do
5839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5840echo "$as_me:$LINENO: checking for $ac_header" >&5
5841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5842if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851$ac_includes_default
5852
5853#include <$ac_header>
5854_ACEOF
5855rm -f conftest.$ac_objext
5856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5858 ac_status=$?
5859 grep -v '^ *+' conftest.er1 >conftest.err
5860 rm -f conftest.er1
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 eval "$as_ac_Header=yes"
5878else
5879 echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882eval "$as_ac_Header=no"
5883fi
5884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885fi
5886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5888if test `eval echo '${'$as_ac_Header'}'` = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5891_ACEOF
5892
5893fi
5894
5895done
5896
5897
5898
5899for ac_header in linux/if_tun.h
5900do
5901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903 echo "$as_me:$LINENO: checking for $ac_header" >&5
5904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907fi
5908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5910else
5911 # Is the header compilable?
5912echo "$as_me:$LINENO: checking $ac_header usability" >&5
5913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5914cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920$ac_includes_default
5921#include <$ac_header>
5922_ACEOF
5923rm -f conftest.$ac_objext
5924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_header_compiler=yes
5946else
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950ac_header_compiler=no
5951fi
5952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5954echo "${ECHO_T}$ac_header_compiler" >&6
5955
5956# Is the header present?
5957echo "$as_me:$LINENO: checking $ac_header presence" >&5
5958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5959cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965#include <$ac_header>
5966_ACEOF
5967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } >/dev/null; then
5975 if test -s conftest.err; then
5976 ac_cpp_err=$ac_c_preproc_warn_flag
5977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5978 else
5979 ac_cpp_err=
5980 fi
5981else
5982 ac_cpp_err=yes
5983fi
5984if test -z "$ac_cpp_err"; then
5985 ac_header_preproc=yes
5986else
5987 echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 ac_header_preproc=no
5991fi
5992rm -f conftest.err conftest.$ac_ext
5993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5994echo "${ECHO_T}$ac_header_preproc" >&6
5995
5996# So? What about this header?
5997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5998 yes:no: )
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6003 ac_header_preproc=yes
6004 ;;
6005 no:yes:* )
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6018 (
6019 cat <<\_ASBOX
6020## ------------------------------------------- ##
6021## Report this to openssh-unix-dev@mindrot.org ##
6022## ------------------------------------------- ##
6023_ASBOX
6024 ) |
6025 sed "s/^/$as_me: WARNING: /" >&2
6026 ;;
6027esac
6028echo "$as_me:$LINENO: checking for $ac_header" >&5
6029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6030if eval "test \"\${$as_ac_Header+set}\" = set"; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 eval "$as_ac_Header=\$ac_header_preproc"
6034fi
6035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037
6038fi
6039if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042_ACEOF
6043
6044fi
6045
6046done
6047
6048 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6049
6050cat >>confdefs.h <<\_ACEOF
6051#define SSH_TUN_LINUX 1
6052_ACEOF
6053
6054
6055cat >>confdefs.h <<\_ACEOF
6056#define SSH_TUN_COMPAT_AF 1
6057_ACEOF
6058
6059
6060cat >>confdefs.h <<\_ACEOF
6061#define SSH_TUN_PREPEND_AF 1
6062_ACEOF
6063
6064 fi
6065 ;;
6066mips-sony-bsd|mips-sony-newsos4)
6067
6068cat >>confdefs.h <<\_ACEOF
6069#define NEED_SETPGRP 1
6070_ACEOF
6071
6072 SONY=1
6073 ;;
6074*-*-netbsd*)
6075 check_for_libcrypt_before=1
6076 if test "x$withval" != "xno" ; then
6077 need_dash_r=1
6078 fi
6079
6080cat >>confdefs.h <<\_ACEOF
6081#define SSH_TUN_FREEBSD 1
6082_ACEOF
6083
6084 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6085 echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
6086echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6
6087if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089fi
6090echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
6091echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6
6092else
6093 # Is the header compilable?
6094echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
6095echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102$ac_includes_default
6103#include <net/if_tap.h>
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6128else
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132ac_header_compiler=no
6133fi
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136echo "${ECHO_T}$ac_header_compiler" >&6
6137
6138# Is the header present?
6139echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
6140echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6
6141cat >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#include <net/if_tap.h>
6148_ACEOF
6149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160 else
6161 ac_cpp_err=
6162 fi
6163else
6164 ac_cpp_err=yes
6165fi
6166if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
6173fi
6174rm -f conftest.err conftest.$ac_ext
6175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176echo "${ECHO_T}$ac_header_preproc" >&6
6177
6178# So? What about this header?
6179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180 yes:no: )
6181 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
6182echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
6184echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6186 ;;
6187 no:yes:* )
6188 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
6189echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
6191echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
6193echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
6195echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
6197echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
6199echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
6200 (
6201 cat <<\_ASBOX
6202## ------------------------------------------- ##
6203## Report this to openssh-unix-dev@mindrot.org ##
6204## ------------------------------------------- ##
6205_ASBOX
6206 ) |
6207 sed "s/^/$as_me: WARNING: /" >&2
6208 ;;
6209esac
6210echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
6211echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6
6212if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 ac_cv_header_net_if_tap_h=$ac_header_preproc
6216fi
6217echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
6218echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6
6219
6220fi
6221if test $ac_cv_header_net_if_tap_h = yes; then
6222 :
6223else
6224
6225cat >>confdefs.h <<\_ACEOF
6226#define SSH_TUN_NO_L2 1
6227_ACEOF
6228
6229fi
6230
6231
6232
6233cat >>confdefs.h <<\_ACEOF
6234#define SSH_TUN_PREPEND_AF 1
6235_ACEOF
6236
6237 ;;
6238*-*-freebsd*)
6239 check_for_libcrypt_later=1
6240
6241cat >>confdefs.h <<\_ACEOF
6242#define LOCKED_PASSWD_PREFIX "*LOCKED*"
6243_ACEOF
6244
6245
6246cat >>confdefs.h <<\_ACEOF
6247#define SSH_TUN_FREEBSD 1
6248_ACEOF
6249
6250 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6251 echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
6252echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6
6253if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255fi
6256echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
6257echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6
6258else
6259 # Is the header compilable?
6260echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
6261echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6
6262cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268$ac_includes_default
6269#include <net/if_tap.h>
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_header_compiler=yes
6294else
6295 echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298ac_header_compiler=no
6299fi
6300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302echo "${ECHO_T}$ac_header_compiler" >&6
6303
6304# Is the header present?
6305echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
6306echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6
6307cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
6312/* end confdefs.h. */
6313#include <net/if_tap.h>
6314_ACEOF
6315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326 else
6327 ac_cpp_err=
6328 fi
6329else
6330 ac_cpp_err=yes
6331fi
6332if test -z "$ac_cpp_err"; then
6333 ac_header_preproc=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_preproc=no
6339fi
6340rm -f conftest.err conftest.$ac_ext
6341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342echo "${ECHO_T}$ac_header_preproc" >&6
6343
6344# So? What about this header?
6345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 yes:no: )
6347 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
6348echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
6350echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
6351 ac_header_preproc=yes
6352 ;;
6353 no:yes:* )
6354 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
6355echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
6357echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
6359echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
6361echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
6363echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
6365echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
6366 (
6367 cat <<\_ASBOX
6368## ------------------------------------------- ##
6369## Report this to openssh-unix-dev@mindrot.org ##
6370## ------------------------------------------- ##
6371_ASBOX
6372 ) |
6373 sed "s/^/$as_me: WARNING: /" >&2
6374 ;;
6375esac
6376echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
6377echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6
6378if test "${ac_cv_header_net_if_tap_h+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 ac_cv_header_net_if_tap_h=$ac_header_preproc
6382fi
6383echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
6384echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6
6385
6386fi
6387if test $ac_cv_header_net_if_tap_h = yes; then
6388 :
6389else
6390
6391cat >>confdefs.h <<\_ACEOF
6392#define SSH_TUN_NO_L2 1
6393_ACEOF
6394
6395fi
6396
6397
6398 ;;
6399*-*-bsdi*)
6400 cat >>confdefs.h <<\_ACEOF
6401#define SETEUID_BREAKS_SETUID 1
6402_ACEOF
6403
6404 cat >>confdefs.h <<\_ACEOF
6405#define BROKEN_SETREUID 1
6406_ACEOF
6407
6408 cat >>confdefs.h <<\_ACEOF
6409#define BROKEN_SETREGID 1
6410_ACEOF
6411
6412 ;;
6413*-next-*)
6414 conf_lastlog_location="/usr/adm/lastlog"
6415 conf_utmp_location=/etc/utmp
6416 conf_wtmp_location=/usr/adm/wtmp
6417 MAIL=/usr/spool/mail
6418
6419cat >>confdefs.h <<\_ACEOF
6420#define HAVE_NEXT 1
6421_ACEOF
6422
6423 cat >>confdefs.h <<\_ACEOF
6424#define BROKEN_REALPATH 1
6425_ACEOF
6426
6427 cat >>confdefs.h <<\_ACEOF
6428#define USE_PIPES 1
6429_ACEOF
6430
6431
6432cat >>confdefs.h <<\_ACEOF
6433#define BROKEN_SAVED_UIDS 1
6434_ACEOF
6435
6436 ;;
6437*-*-openbsd*)
6438
6439cat >>confdefs.h <<\_ACEOF
6440#define HAVE_ATTRIBUTE__SENTINEL__ 1
6441_ACEOF
6442
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define HAVE_ATTRIBUTE__BOUNDED__ 1
6446_ACEOF
6447
6448
6449cat >>confdefs.h <<\_ACEOF
6450#define SSH_TUN_OPENBSD 1
6451_ACEOF
6452
6453 ;;
6454*-*-solaris*)
6455 if test "x$withval" != "xno" ; then
6456 need_dash_r=1
6457 fi
6458 cat >>confdefs.h <<\_ACEOF
6459#define PAM_SUN_CODEBASE 1
6460_ACEOF
6461
6462 cat >>confdefs.h <<\_ACEOF
6463#define LOGIN_NEEDS_UTMPX 1
6464_ACEOF
6465
6466
6467cat >>confdefs.h <<\_ACEOF
6468#define LOGIN_NEEDS_TERM 1
6469_ACEOF
6470
6471 cat >>confdefs.h <<\_ACEOF
6472#define PAM_TTY_KLUDGE 1
6473_ACEOF
6474
6475
6476cat >>confdefs.h <<\_ACEOF
6477#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
6478_ACEOF
6479
6480 cat >>confdefs.h <<\_ACEOF
6481#define LOCKED_PASSWD_STRING "*LK*"
6482_ACEOF
6483
6484 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6485
6486cat >>confdefs.h <<\_ACEOF
6487#define SSHD_ACQUIRES_CTTY 1
6488_ACEOF
6489
6490 external_path_file=/etc/default/login
6491 # hardwire lastlog location (can't detect it on some versions)
6492 conf_lastlog_location="/var/adm/lastlog"
6493 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
6494echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
6495 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6496 if test "$sol2ver" -ge 8; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 cat >>confdefs.h <<\_ACEOF
6500#define DISABLE_UTMP 1
6501_ACEOF
6502
6503
6504cat >>confdefs.h <<\_ACEOF
6505#define DISABLE_WTMP 1
6506_ACEOF
6507
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511 fi
6512 ;;
6513*-*-sunos4*)
6514 CPPFLAGS="$CPPFLAGS -DSUNOS4"
6515
6516for ac_func in getpwanam
6517do
6518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6519echo "$as_me:$LINENO: checking for $ac_func" >&5
6520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6521if eval "test \"\${$as_ac_var+set}\" = set"; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6532#define $ac_func innocuous_$ac_func
6533
6534/* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func (); below.
6536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6537 <limits.h> exists even on freestanding compilers. */
6538
6539#ifdef __STDC__
6540# include <limits.h>
6541#else
6542# include <assert.h>
6543#endif
6544
6545#undef $ac_func
6546
6547/* Override any gcc2 internal prototype to avoid an error. */
6548#ifdef __cplusplus
6549extern "C"
6550{
6551#endif
6552/* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6554char $ac_func ();
6555/* The GNU C library defines this for functions which it implements
6556 to always fail with ENOSYS. Some functions are actually named
6557 something starting with __ and the normal name is an alias. */
6558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6559choke me
6560#else
6561char (*f) () = $ac_func;
6562#endif
6563#ifdef __cplusplus
6564}
6565#endif
6566
6567int
6568main ()
6569{
6570return f != $ac_func;
6571 ;
6572 return 0;
6573}
6574_ACEOF
6575rm -f conftest.$ac_objext conftest$ac_exeext
6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag"
6585 || test ! -s conftest.err'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; } &&
6591 { ac_try='test -s conftest$ac_exeext'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; }; then
6597 eval "$as_ac_var=yes"
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602eval "$as_ac_var=no"
6603fi
6604rm -f conftest.err conftest.$ac_objext \
6605 conftest$ac_exeext conftest.$ac_ext
6606fi
6607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6609if test `eval echo '${'$as_ac_var'}'` = yes; then
6610 cat >>confdefs.h <<_ACEOF
6611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6612_ACEOF
6613
6614fi
6615done
6616
6617 cat >>confdefs.h <<\_ACEOF
6618#define PAM_SUN_CODEBASE 1
6619_ACEOF
6620
6621 conf_utmp_location=/etc/utmp
6622 conf_wtmp_location=/var/adm/wtmp
6623 conf_lastlog_location=/var/adm/lastlog
6624 cat >>confdefs.h <<\_ACEOF
6625#define USE_PIPES 1
6626_ACEOF
6627
6628 ;;
6629*-ncr-sysv*)
6630 LIBS="$LIBS -lc89"
6631 cat >>confdefs.h <<\_ACEOF
6632#define USE_PIPES 1
6633_ACEOF
6634
6635 cat >>confdefs.h <<\_ACEOF
6636#define SSHD_ACQUIRES_CTTY 1
6637_ACEOF
6638
6639 cat >>confdefs.h <<\_ACEOF
6640#define SETEUID_BREAKS_SETUID 1
6641_ACEOF
6642
6643 cat >>confdefs.h <<\_ACEOF
6644#define BROKEN_SETREUID 1
6645_ACEOF
6646
6647 cat >>confdefs.h <<\_ACEOF
6648#define BROKEN_SETREGID 1
6649_ACEOF
6650
6651 ;;
6652*-sni-sysv*)
6653 # /usr/ucblib MUST NOT be searched on ReliantUNIX
6654
6655echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
6656echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6657if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660 ac_check_lib_save_LIBS=$LIBS
6661LIBS="-ldl $LIBS"
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h. */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h. */
6668
6669/* Override any gcc2 internal prototype to avoid an error. */
6670#ifdef __cplusplus
6671extern "C"
6672#endif
6673/* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6675char dlsym ();
6676int
6677main ()
6678{
6679dlsym ();
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684rm -f conftest.$ac_objext conftest$ac_exeext
6685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686 (eval $ac_link) 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_lib_dl_dlsym=yes
6707else
6708 echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711ac_cv_lib_dl_dlsym=no
6712fi
6713rm -f conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715LIBS=$ac_check_lib_save_LIBS
6716fi
6717echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
6718echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6719if test $ac_cv_lib_dl_dlsym = yes; then
6720 cat >>confdefs.h <<_ACEOF
6721#define HAVE_LIBDL 1
6722_ACEOF
6723
6724 LIBS="-ldl $LIBS"
6725
6726fi
6727
6728 # -lresolv needs to be at the end of LIBS or DNS lookups break
6729 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
6730echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
6731if test "${ac_cv_lib_resolv_res_query+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 ac_check_lib_save_LIBS=$LIBS
6735LIBS="-lresolv $LIBS"
6736cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742
6743/* Override any gcc2 internal prototype to avoid an error. */
6744#ifdef __cplusplus
6745extern "C"
6746#endif
6747/* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6749char res_query ();
6750int
6751main ()
6752{
6753res_query ();
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext conftest$ac_exeext
6759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_resolv_res_query=yes
6781else
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785ac_cv_lib_resolv_res_query=no
6786fi
6787rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789LIBS=$ac_check_lib_save_LIBS
6790fi
6791echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
6792echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
6793if test $ac_cv_lib_resolv_res_query = yes; then
6794 LIBS="$LIBS -lresolv"
6795fi
6796
6797 IPADDR_IN_DISPLAY=yes
6798 cat >>confdefs.h <<\_ACEOF
6799#define USE_PIPES 1
6800_ACEOF
6801
6802 cat >>confdefs.h <<\_ACEOF
6803#define IP_TOS_IS_BROKEN 1
6804_ACEOF
6805
6806 cat >>confdefs.h <<\_ACEOF
6807#define SETEUID_BREAKS_SETUID 1
6808_ACEOF
6809
6810 cat >>confdefs.h <<\_ACEOF
6811#define BROKEN_SETREUID 1
6812_ACEOF
6813
6814 cat >>confdefs.h <<\_ACEOF
6815#define BROKEN_SETREGID 1
6816_ACEOF
6817
6818 cat >>confdefs.h <<\_ACEOF
6819#define SSHD_ACQUIRES_CTTY 1
6820_ACEOF
6821
6822 external_path_file=/etc/default/login
6823 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
6824 # Attention: always take care to bind libsocket and libnsl before libc,
6825 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
6826 ;;
6827# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
6828*-*-sysv4.2*)
6829 CFLAGS="$CFLAGS -Dva_list=_VA_LIST"
6830 cat >>confdefs.h <<\_ACEOF
6831#define USE_PIPES 1
6832_ACEOF
6833
6834 cat >>confdefs.h <<\_ACEOF
6835#define SETEUID_BREAKS_SETUID 1
6836_ACEOF
6837
6838 cat >>confdefs.h <<\_ACEOF
6839#define BROKEN_SETREUID 1
6840_ACEOF
6841
6842 cat >>confdefs.h <<\_ACEOF
6843#define BROKEN_SETREGID 1
6844_ACEOF
6845
6846
6847cat >>confdefs.h <<\_ACEOF
6848#define PASSWD_NEEDS_USERNAME 1
6849_ACEOF
6850
6851 cat >>confdefs.h <<\_ACEOF
6852#define LOCKED_PASSWD_STRING "*LK*"
6853_ACEOF
6854
6855 ;;
6856# UnixWare 7.x, OpenUNIX 8
6857*-*-sysv5*)
6858 check_for_libcrypt_later=1
6859
6860cat >>confdefs.h <<\_ACEOF
6861#define UNIXWARE_LONG_PASSWORDS 1
6862_ACEOF
6863
6864 cat >>confdefs.h <<\_ACEOF
6865#define USE_PIPES 1
6866_ACEOF
6867
6868 cat >>confdefs.h <<\_ACEOF
6869#define SETEUID_BREAKS_SETUID 1
6870_ACEOF
6871
6872 cat >>confdefs.h <<\_ACEOF
6873#define BROKEN_SETREUID 1
6874_ACEOF
6875
6876 cat >>confdefs.h <<\_ACEOF
6877#define BROKEN_SETREGID 1
6878_ACEOF
6879
6880 cat >>confdefs.h <<\_ACEOF
6881#define PASSWD_NEEDS_USERNAME 1
6882_ACEOF
6883
6884 case "$host" in
6885 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
6886 TEST_SHELL=/u95/bin/sh
6887
6888cat >>confdefs.h <<\_ACEOF
6889#define BROKEN_LIBIAF 1
6890_ACEOF
6891
6892 ;;
6893 *) cat >>confdefs.h <<\_ACEOF
6894#define LOCKED_PASSWD_STRING "*LK*"
6895_ACEOF
6896
6897 ;;
6898 esac
6899 ;;
6900*-*-sysv*)
6901 ;;
6902# SCO UNIX and OEM versions of SCO UNIX
6903*-*-sco3.2v4*)
6904 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
6905echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
6906 { (exit 1); exit 1; }; }
6907 ;;
6908# SCO OpenServer 5.x
6909*-*-sco3.2v5*)
6910 if test -z "$GCC"; then
6911 CFLAGS="$CFLAGS -belf"
6912 fi
6913 LIBS="$LIBS -lprot -lx -ltinfo -lm"
6914 no_dev_ptmx=1
6915 cat >>confdefs.h <<\_ACEOF
6916#define USE_PIPES 1
6917_ACEOF
6918
6919 cat >>confdefs.h <<\_ACEOF
6920#define HAVE_SECUREWARE 1
6921_ACEOF
6922
6923 cat >>confdefs.h <<\_ACEOF
6924#define DISABLE_SHADOW 1
6925_ACEOF
6926
6927 cat >>confdefs.h <<\_ACEOF
6928#define DISABLE_FD_PASSING 1
6929_ACEOF
6930
6931 cat >>confdefs.h <<\_ACEOF
6932#define SETEUID_BREAKS_SETUID 1
6933_ACEOF
6934
6935 cat >>confdefs.h <<\_ACEOF
6936#define BROKEN_SETREUID 1
6937_ACEOF
6938
6939 cat >>confdefs.h <<\_ACEOF
6940#define BROKEN_SETREGID 1
6941_ACEOF
6942
6943 cat >>confdefs.h <<\_ACEOF
6944#define WITH_ABBREV_NO_TTY 1
6945_ACEOF
6946
6947 cat >>confdefs.h <<\_ACEOF
6948#define BROKEN_UPDWTMPX 1
6949_ACEOF
6950
6951 cat >>confdefs.h <<\_ACEOF
6952#define PASSWD_NEEDS_USERNAME 1
6953_ACEOF
6954
6955
6956
6957for ac_func in getluid setluid
6958do
6959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6960echo "$as_me:$LINENO: checking for $ac_func" >&5
6961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6962if eval "test \"\${$as_ac_var+set}\" = set"; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 cat >conftest.$ac_ext <<_ACEOF
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
6970/* end confdefs.h. */
6971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6973#define $ac_func innocuous_$ac_func
6974
6975/* System header to define __stub macros and hopefully few prototypes,
6976 which can conflict with char $ac_func (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6979
6980#ifdef __STDC__
6981# include <limits.h>
6982#else
6983# include <assert.h>
6984#endif
6985
6986#undef $ac_func
6987
6988/* Override any gcc2 internal prototype to avoid an error. */
6989#ifdef __cplusplus
6990extern "C"
6991{
6992#endif
6993/* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6995char $ac_func ();
6996/* The GNU C library defines this for functions which it implements
6997 to always fail with ENOSYS. Some functions are actually named
6998 something starting with __ and the normal name is an alias. */
6999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7000choke me
7001#else
7002char (*f) () = $ac_func;
7003#endif
7004#ifdef __cplusplus
7005}
7006#endif
7007
7008int
7009main ()
7010{
7011return f != $ac_func;
7012 ;
7013 return 0;
7014}
7015_ACEOF
7016rm -f conftest.$ac_objext conftest$ac_exeext
7017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 eval "$as_ac_var=yes"
7039else
7040 echo "$as_me: failed program was:" >&5
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043eval "$as_ac_var=no"
7044fi
7045rm -f conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047fi
7048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7050if test `eval echo '${'$as_ac_var'}'` = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7053_ACEOF
7054
7055fi
7056done
7057
7058 MANTYPE=man
7059 TEST_SHELL=ksh
7060 ;;
7061*-*-unicosmk*)
7062
7063cat >>confdefs.h <<\_ACEOF
7064#define NO_SSH_LASTLOG 1
7065_ACEOF
7066
7067 cat >>confdefs.h <<\_ACEOF
7068#define SETEUID_BREAKS_SETUID 1
7069_ACEOF
7070
7071 cat >>confdefs.h <<\_ACEOF
7072#define BROKEN_SETREUID 1
7073_ACEOF
7074
7075 cat >>confdefs.h <<\_ACEOF
7076#define BROKEN_SETREGID 1
7077_ACEOF
7078
7079 cat >>confdefs.h <<\_ACEOF
7080#define USE_PIPES 1
7081_ACEOF
7082
7083 cat >>confdefs.h <<\_ACEOF
7084#define DISABLE_FD_PASSING 1
7085_ACEOF
7086
7087 LDFLAGS="$LDFLAGS"
7088 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7089 MANTYPE=cat
7090 ;;
7091*-*-unicosmp*)
7092 cat >>confdefs.h <<\_ACEOF
7093#define SETEUID_BREAKS_SETUID 1
7094_ACEOF
7095
7096 cat >>confdefs.h <<\_ACEOF
7097#define BROKEN_SETREUID 1
7098_ACEOF
7099
7100 cat >>confdefs.h <<\_ACEOF
7101#define BROKEN_SETREGID 1
7102_ACEOF
7103
7104 cat >>confdefs.h <<\_ACEOF
7105#define WITH_ABBREV_NO_TTY 1
7106_ACEOF
7107
7108 cat >>confdefs.h <<\_ACEOF
7109#define USE_PIPES 1
7110_ACEOF
7111
7112 cat >>confdefs.h <<\_ACEOF
7113#define DISABLE_FD_PASSING 1
7114_ACEOF
7115
7116 LDFLAGS="$LDFLAGS"
7117 LIBS="$LIBS -lgen -lacid -ldb"
7118 MANTYPE=cat
7119 ;;
7120*-*-unicos*)
7121 cat >>confdefs.h <<\_ACEOF
7122#define SETEUID_BREAKS_SETUID 1
7123_ACEOF
7124
7125 cat >>confdefs.h <<\_ACEOF
7126#define BROKEN_SETREUID 1
7127_ACEOF
7128
7129 cat >>confdefs.h <<\_ACEOF
7130#define BROKEN_SETREGID 1
7131_ACEOF
7132
7133 cat >>confdefs.h <<\_ACEOF
7134#define USE_PIPES 1
7135_ACEOF
7136
7137 cat >>confdefs.h <<\_ACEOF
7138#define DISABLE_FD_PASSING 1
7139_ACEOF
7140
7141 cat >>confdefs.h <<\_ACEOF
7142#define NO_SSH_LASTLOG 1
7143_ACEOF
7144
7145 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7146 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7147 MANTYPE=cat
7148 ;;
7149*-dec-osf*)
7150 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
7151echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
7152 no_osfsia=""
7153
7154# Check whether --with-osfsia or --without-osfsia was given.
7155if test "${with_osfsia+set}" = set; then
7156 withval="$with_osfsia"
7157
7158 if test "x$withval" = "xno" ; then
7159 echo "$as_me:$LINENO: result: disabled" >&5
7160echo "${ECHO_T}disabled" >&6
7161 no_osfsia=1
7162 fi
7163
7164fi;
7165 if test -z "$no_osfsia" ; then
7166 if test -f /etc/sia/matrix.conf; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define HAVE_OSF_SIA 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define DISABLE_LOGIN 1
7177_ACEOF
7178
7179 cat >>confdefs.h <<\_ACEOF
7180#define DISABLE_FD_PASSING 1
7181_ACEOF
7182
7183 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7184 else
7185 echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6
7187
7188cat >>confdefs.h <<\_ACEOF
7189#define LOCKED_PASSWD_SUBSTR "Nologin"
7190_ACEOF
7191
7192 fi
7193 fi
7194 cat >>confdefs.h <<\_ACEOF
7195#define BROKEN_GETADDRINFO 1
7196_ACEOF
7197
7198 cat >>confdefs.h <<\_ACEOF
7199#define SETEUID_BREAKS_SETUID 1
7200_ACEOF
7201
7202 cat >>confdefs.h <<\_ACEOF
7203#define BROKEN_SETREUID 1
7204_ACEOF
7205
7206 cat >>confdefs.h <<\_ACEOF
7207#define BROKEN_SETREGID 1
7208_ACEOF
7209
7210 ;;
7211
7212*-*-nto-qnx*)
7213 cat >>confdefs.h <<\_ACEOF
7214#define USE_PIPES 1
7215_ACEOF
7216
7217 cat >>confdefs.h <<\_ACEOF
7218#define NO_X11_UNIX_SOCKETS 1
7219_ACEOF
7220
7221
7222cat >>confdefs.h <<\_ACEOF
7223#define MISSING_NFDBITS 1
7224_ACEOF
7225
7226
7227cat >>confdefs.h <<\_ACEOF
7228#define MISSING_HOWMANY 1
7229_ACEOF
7230
7231
7232cat >>confdefs.h <<\_ACEOF
7233#define MISSING_FD_MASK 1
7234_ACEOF
7235
7236 cat >>confdefs.h <<\_ACEOF
7237#define DISABLE_LASTLOG 1
7238_ACEOF
7239
7240 ;;
7241
7242*-*-ultrix*)
7243
7244cat >>confdefs.h <<\_ACEOF
7245#define BROKEN_GETGROUPS 1
7246_ACEOF
7247
7248
7249cat >>confdefs.h <<\_ACEOF
7250#define BROKEN_MMAP 1
7251_ACEOF
7252
7253 cat >>confdefs.h <<\_ACEOF
7254#define NEED_SETPGRP 1
7255_ACEOF
7256
7257
7258cat >>confdefs.h <<\_ACEOF
7259#define HAVE_SYS_SYSLOG_H 1
7260_ACEOF
7261
7262 ;;
7263
7264*-*-lynxos)
7265 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7266 cat >>confdefs.h <<\_ACEOF
7267#define MISSING_HOWMANY 1
7268_ACEOF
7269
7270
7271cat >>confdefs.h <<\_ACEOF
7272#define BROKEN_SETVBUF 1
7273_ACEOF
7274
7275 ;;
7276esac
7277
7278# Allow user to specify flags
7279
7280# Check whether --with-cflags or --without-cflags was given.
7281if test "${with_cflags+set}" = set; then
7282 withval="$with_cflags"
7283
7284 if test -n "$withval" && test "x$withval" != "xno" && \
7285 test "x${withval}" != "xyes"; then
7286 CFLAGS="$CFLAGS $withval"
7287 fi
7288
7289
7290fi;
7291
7292# Check whether --with-cppflags or --without-cppflags was given.
7293if test "${with_cppflags+set}" = set; then
7294 withval="$with_cppflags"
7295
7296 if test -n "$withval" && test "x$withval" != "xno" && \
7297 test "x${withval}" != "xyes"; then
7298 CPPFLAGS="$CPPFLAGS $withval"
7299 fi
7300
7301
7302fi;
7303
7304# Check whether --with-ldflags or --without-ldflags was given.
7305if test "${with_ldflags+set}" = set; then
7306 withval="$with_ldflags"
7307
7308 if test -n "$withval" && test "x$withval" != "xno" && \
7309 test "x${withval}" != "xyes"; then
7310 LDFLAGS="$LDFLAGS $withval"
7311 fi
7312
7313
7314fi;
7315
7316# Check whether --with-libs or --without-libs was given.
7317if test "${with_libs+set}" = set; then
7318 withval="$with_libs"
7319
7320 if test -n "$withval" && test "x$withval" != "xno" && \
7321 test "x${withval}" != "xyes"; then
7322 LIBS="$LIBS $withval"
7323 fi
7324
7325
7326fi;
7327
7328# Check whether --with-Werror or --without-Werror was given.
7329if test "${with_Werror+set}" = set; then
7330 withval="$with_Werror"
7331
7332 if test -n "$withval" && test "x$withval" != "xno"; then
7333 werror_flags="-Werror"
7334 if test "x${withval}" != "xyes"; then
7335 werror_flags="$withval"
7336 fi
7337 fi
7338
7339
7340fi;
7341
7342echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
7343echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
7344if test "$cross_compiling" = yes; then
7345 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
7346echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7347
7348else
7349 cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
7355
7356#include <stdio.h>
7357int main(){exit(0);}
7358
7359_ACEOF
7360rm -f conftest$ac_exeext
7361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373else
7374 echo "$as_me: program exited with status $ac_status" >&5
7375echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378( exit $ac_status )
7379
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
7383echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
7384 { (exit 1); exit 1; }; }
7385
7386fi
7387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7388fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446for ac_header in \
7447 bstring.h \
7448 crypt.h \
7449 dirent.h \
7450 endian.h \
7451 features.h \
7452 floatingpoint.h \
7453 getopt.h \
7454 glob.h \
7455 ia.h \
7456 iaf.h \
7457 limits.h \
7458 login.h \
7459 login_cap.h \
7460 maillock.h \
7461 ndir.h \
7462 netdb.h \
7463 netgroup.h \
7464 pam/pam_appl.h \
7465 paths.h \
7466 pty.h \
7467 readpassphrase.h \
7468 rpc/types.h \
7469 security/pam_appl.h \
7470 shadow.h \
7471 stddef.h \
7472 stdint.h \
7473 string.h \
7474 strings.h \
7475 sys/audit.h \
7476 sys/bitypes.h \
7477 sys/bsdtty.h \
7478 sys/cdefs.h \
7479 sys/dir.h \
7480 sys/mman.h \
7481 sys/ndir.h \
7482 sys/prctl.h \
7483 sys/pstat.h \
7484 sys/select.h \
7485 sys/stat.h \
7486 sys/stream.h \
7487 sys/stropts.h \
7488 sys/strtio.h \
7489 sys/sysmacros.h \
7490 sys/time.h \
7491 sys/timers.h \
7492 sys/un.h \
7493 time.h \
7494 tmpdir.h \
7495 ttyent.h \
7496 unistd.h \
7497 usersec.h \
7498 util.h \
7499 utime.h \
7500 utmp.h \
7501 utmpx.h \
7502 vis.h \
7503
7504do
7505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506if eval "test \"\${$as_ac_Header+set}\" = set"; then
7507 echo "$as_me:$LINENO: checking for $ac_header" >&5
7508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7509if eval "test \"\${$as_ac_Header+set}\" = set"; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511fi
7512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7514else
7515 # Is the header compilable?
7516echo "$as_me:$LINENO: checking $ac_header usability" >&5
7517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7518cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
7524$ac_includes_default
7525#include <$ac_header>
7526_ACEOF
7527rm -f conftest.$ac_objext
7528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 (eval $ac_try) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_header_compiler=yes
7550else
7551 echo "$as_me: failed program was:" >&5
7552sed 's/^/| /' conftest.$ac_ext >&5
7553
7554ac_header_compiler=no
7555fi
7556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7558echo "${ECHO_T}$ac_header_compiler" >&6
7559
7560# Is the header present?
7561echo "$as_me:$LINENO: checking $ac_header presence" >&5
7562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7563cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h. */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h. */
7569#include <$ac_header>
7570_ACEOF
7571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev/null; then
7579 if test -s conftest.err; then
7580 ac_cpp_err=$ac_c_preproc_warn_flag
7581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7582 else
7583 ac_cpp_err=
7584 fi
7585else
7586 ac_cpp_err=yes
7587fi
7588if test -z "$ac_cpp_err"; then
7589 ac_header_preproc=yes
7590else
7591 echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_header_preproc=no
7595fi
7596rm -f conftest.err conftest.$ac_ext
7597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7598echo "${ECHO_T}$ac_header_preproc" >&6
7599
7600# So? What about this header?
7601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7602 yes:no: )
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7607 ac_header_preproc=yes
7608 ;;
7609 no:yes:* )
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7622 (
7623 cat <<\_ASBOX
7624## ------------------------------------------- ##
7625## Report this to openssh-unix-dev@mindrot.org ##
7626## ------------------------------------------- ##
7627_ASBOX
7628 ) |
7629 sed "s/^/$as_me: WARNING: /" >&2
7630 ;;
7631esac
7632echo "$as_me:$LINENO: checking for $ac_header" >&5
7633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7634if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 eval "$as_ac_Header=\$ac_header_preproc"
7638fi
7639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7641
7642fi
7643if test `eval echo '${'$as_ac_Header'}'` = yes; then
7644 cat >>confdefs.h <<_ACEOF
7645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7646_ACEOF
7647
7648fi
7649
7650done
7651
7652
7653# lastlog.h requires sys/time.h to be included first on Solaris
7654
7655for ac_header in lastlog.h
7656do
7657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7658echo "$as_me:$LINENO: checking for $ac_header" >&5
7659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7660if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
7669
7670#ifdef HAVE_SYS_TIME_H
7671# include <sys/time.h>
7672#endif
7673
7674
7675#include <$ac_header>
7676_ACEOF
7677rm -f conftest.$ac_objext
7678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest.$ac_objext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 eval "$as_ac_Header=yes"
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704eval "$as_ac_Header=no"
7705fi
7706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7707fi
7708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7710if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720# sys/ptms.h requires sys/stream.h to be included first on Solaris
7721
7722for ac_header in sys/ptms.h
7723do
7724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7727if eval "test \"\${$as_ac_Header+set}\" = set"; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737#ifdef HAVE_SYS_STREAM_H
7738# include <sys/stream.h>
7739#endif
7740
7741
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 eval "$as_ac_Header=yes"
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771eval "$as_ac_Header=no"
7772fi
7773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774fi
7775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777if test `eval echo '${'$as_ac_Header'}'` = yes; then
7778 cat >>confdefs.h <<_ACEOF
7779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7780_ACEOF
7781
7782fi
7783
7784done
7785
7786
7787# Checks for libraries.
7788echo "$as_me:$LINENO: checking for yp_match" >&5
7789echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
7790if test "${ac_cv_func_yp_match+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
7799/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
7800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7801#define yp_match innocuous_yp_match
7802
7803/* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char yp_match (); below.
7805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7806 <limits.h> exists even on freestanding compilers. */
7807
7808#ifdef __STDC__
7809# include <limits.h>
7810#else
7811# include <assert.h>
7812#endif
7813
7814#undef yp_match
7815
7816/* Override any gcc2 internal prototype to avoid an error. */
7817#ifdef __cplusplus
7818extern "C"
7819{
7820#endif
7821/* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7823char yp_match ();
7824/* The GNU C library defines this for functions which it implements
7825 to always fail with ENOSYS. Some functions are actually named
7826 something starting with __ and the normal name is an alias. */
7827#if defined (__stub_yp_match) || defined (__stub___yp_match)
7828choke me
7829#else
7830char (*f) () = yp_match;
7831#endif
7832#ifdef __cplusplus
7833}
7834#endif
7835
7836int
7837main ()
7838{
7839return f != yp_match;
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext conftest$ac_exeext
7845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_func_yp_match=yes
7867else
7868 echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
7871ac_cv_func_yp_match=no
7872fi
7873rm -f conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875fi
7876echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
7877echo "${ECHO_T}$ac_cv_func_yp_match" >&6
7878if test $ac_cv_func_yp_match = yes; then
7879 :
7880else
7881
7882echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
7883echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
7884if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887 ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lnsl $LIBS"
7889cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895
7896/* Override any gcc2 internal prototype to avoid an error. */
7897#ifdef __cplusplus
7898extern "C"
7899#endif
7900/* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902char yp_match ();
7903int
7904main ()
7905{
7906yp_match ();
7907 ;
7908 return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913 (eval $ac_link) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag"
7921 || test ! -s conftest.err'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; } &&
7927 { ac_try='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_lib_nsl_yp_match=yes
7934else
7935 echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938ac_cv_lib_nsl_yp_match=no
7939fi
7940rm -f conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942LIBS=$ac_check_lib_save_LIBS
7943fi
7944echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
7945echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
7946if test $ac_cv_lib_nsl_yp_match = yes; then
7947 cat >>confdefs.h <<_ACEOF
7948#define HAVE_LIBNSL 1
7949_ACEOF
7950
7951 LIBS="-lnsl $LIBS"
7952
7953fi
7954
7955fi
7956
7957echo "$as_me:$LINENO: checking for setsockopt" >&5
7958echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
7959if test "${ac_cv_func_setsockopt+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962 cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h. */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h. */
7968/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
7969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7970#define setsockopt innocuous_setsockopt
7971
7972/* System header to define __stub macros and hopefully few prototypes,
7973 which can conflict with char setsockopt (); below.
7974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7975 <limits.h> exists even on freestanding compilers. */
7976
7977#ifdef __STDC__
7978# include <limits.h>
7979#else
7980# include <assert.h>
7981#endif
7982
7983#undef setsockopt
7984
7985/* Override any gcc2 internal prototype to avoid an error. */
7986#ifdef __cplusplus
7987extern "C"
7988{
7989#endif
7990/* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992char setsockopt ();
7993/* The GNU C library defines this for functions which it implements
7994 to always fail with ENOSYS. Some functions are actually named
7995 something starting with __ and the normal name is an alias. */
7996#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
7997choke me
7998#else
7999char (*f) () = setsockopt;
8000#endif
8001#ifdef __cplusplus
8002}
8003#endif
8004
8005int
8006main ()
8007{
8008return f != setsockopt;
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext conftest$ac_exeext
8014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_func_setsockopt=yes
8036else
8037 echo "$as_me: failed program was:" >&5
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
8040ac_cv_func_setsockopt=no
8041fi
8042rm -f conftest.err conftest.$ac_objext \
8043 conftest$ac_exeext conftest.$ac_ext
8044fi
8045echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
8046echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
8047if test $ac_cv_func_setsockopt = yes; then
8048 :
8049else
8050
8051echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
8052echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
8053if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 ac_check_lib_save_LIBS=$LIBS
8057LIBS="-lsocket $LIBS"
8058cat >conftest.$ac_ext <<_ACEOF
8059/* confdefs.h. */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h. */
8064
8065/* Override any gcc2 internal prototype to avoid an error. */
8066#ifdef __cplusplus
8067extern "C"
8068#endif
8069/* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8071char setsockopt ();
8072int
8073main ()
8074{
8075setsockopt ();
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080rm -f conftest.$ac_objext conftest$ac_exeext
8081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -z "$ac_c_werror_flag"
8090 || test ! -s conftest.err'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; } &&
8096 { ac_try='test -s conftest$ac_exeext'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 (eval $ac_try) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 ac_cv_lib_socket_setsockopt=yes
8103else
8104 echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107ac_cv_lib_socket_setsockopt=no
8108fi
8109rm -f conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111LIBS=$ac_check_lib_save_LIBS
8112fi
8113echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
8114echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
8115if test $ac_cv_lib_socket_setsockopt = yes; then
8116 cat >>confdefs.h <<_ACEOF
8117#define HAVE_LIBSOCKET 1
8118_ACEOF
8119
8120 LIBS="-lsocket $LIBS"
8121
8122fi
8123
8124fi
8125
8126
8127
8128for ac_func in dirname
8129do
8130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8131echo "$as_me:$LINENO: checking for $ac_func" >&5
8132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8133if eval "test \"\${$as_ac_var+set}\" = set"; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135else
8136 cat >conftest.$ac_ext <<_ACEOF
8137/* confdefs.h. */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
8141/* end confdefs.h. */
8142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8144#define $ac_func innocuous_$ac_func
8145
8146/* System header to define __stub macros and hopefully few prototypes,
8147 which can conflict with char $ac_func (); below.
8148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8149 <limits.h> exists even on freestanding compilers. */
8150
8151#ifdef __STDC__
8152# include <limits.h>
8153#else
8154# include <assert.h>
8155#endif
8156
8157#undef $ac_func
8158
8159/* Override any gcc2 internal prototype to avoid an error. */
8160#ifdef __cplusplus
8161extern "C"
8162{
8163#endif
8164/* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166char $ac_func ();
8167/* The GNU C library defines this for functions which it implements
8168 to always fail with ENOSYS. Some functions are actually named
8169 something starting with __ and the normal name is an alias. */
8170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8171choke me
8172#else
8173char (*f) () = $ac_func;
8174#endif
8175#ifdef __cplusplus
8176}
8177#endif
8178
8179int
8180main ()
8181{
8182return f != $ac_func;
8183 ;
8184 return 0;
8185}
8186_ACEOF
8187rm -f conftest.$ac_objext conftest$ac_exeext
8188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189 (eval $ac_link) 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 { ac_try='test -z "$ac_c_werror_flag"
8197 || test ! -s conftest.err'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 eval "$as_ac_var=yes"
8210else
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214eval "$as_ac_var=no"
8215fi
8216rm -f conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8218fi
8219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8221if test `eval echo '${'$as_ac_var'}'` = yes; then
8222 cat >>confdefs.h <<_ACEOF
8223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8224_ACEOF
8225
8226for ac_header in libgen.h
8227do
8228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo "$as_me:$LINENO: checking for $ac_header" >&5
8231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234fi
8235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8237else
8238 # Is the header compilable?
8239echo "$as_me:$LINENO: checking $ac_header usability" >&5
8240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8241cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h. */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h. */
8247$ac_includes_default
8248#include <$ac_header>
8249_ACEOF
8250rm -f conftest.$ac_objext
8251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252 (eval $ac_compile) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_header_compiler=yes
8273else
8274 echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277ac_header_compiler=no
8278fi
8279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8281echo "${ECHO_T}$ac_header_compiler" >&6
8282
8283# Is the header present?
8284echo "$as_me:$LINENO: checking $ac_header presence" >&5
8285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8286cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h. */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */
8292#include <$ac_header>
8293_ACEOF
8294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } >/dev/null; then
8302 if test -s conftest.err; then
8303 ac_cpp_err=$ac_c_preproc_warn_flag
8304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8305 else
8306 ac_cpp_err=
8307 fi
8308else
8309 ac_cpp_err=yes
8310fi
8311if test -z "$ac_cpp_err"; then
8312 ac_header_preproc=yes
8313else
8314 echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 ac_header_preproc=no
8318fi
8319rm -f conftest.err conftest.$ac_ext
8320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8321echo "${ECHO_T}$ac_header_preproc" >&6
8322
8323# So? What about this header?
8324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8325 yes:no: )
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8330 ac_header_preproc=yes
8331 ;;
8332 no:yes:* )
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8345 (
8346 cat <<\_ASBOX
8347## ------------------------------------------- ##
8348## Report this to openssh-unix-dev@mindrot.org ##
8349## ------------------------------------------- ##
8350_ASBOX
8351 ) |
8352 sed "s/^/$as_me: WARNING: /" >&2
8353 ;;
8354esac
8355echo "$as_me:$LINENO: checking for $ac_header" >&5
8356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8357if eval "test \"\${$as_ac_Header+set}\" = set"; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360 eval "$as_ac_Header=\$ac_header_preproc"
8361fi
8362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8364
8365fi
8366if test `eval echo '${'$as_ac_Header'}'` = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8369_ACEOF
8370
8371fi
8372
8373done
8374
8375else
8376
8377 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
8378echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
8379if test "${ac_cv_lib_gen_dirname+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382 ac_check_lib_save_LIBS=$LIBS
8383LIBS="-lgen $LIBS"
8384cat >conftest.$ac_ext <<_ACEOF
8385/* confdefs.h. */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h. */
8390
8391/* Override any gcc2 internal prototype to avoid an error. */
8392#ifdef __cplusplus
8393extern "C"
8394#endif
8395/* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8397char dirname ();
8398int
8399main ()
8400{
8401dirname ();
8402 ;
8403 return 0;
8404}
8405_ACEOF
8406rm -f conftest.$ac_objext conftest$ac_exeext
8407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag"
8416 || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_lib_gen_dirname=yes
8429else
8430 echo "$as_me: failed program was:" >&5
8431sed 's/^/| /' conftest.$ac_ext >&5
8432
8433ac_cv_lib_gen_dirname=no
8434fi
8435rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437LIBS=$ac_check_lib_save_LIBS
8438fi
8439echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
8440echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
8441if test $ac_cv_lib_gen_dirname = yes; then
8442
8443 echo "$as_me:$LINENO: checking for broken dirname" >&5
8444echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
8445if test "${ac_cv_have_broken_dirname+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448
8449 save_LIBS="$LIBS"
8450 LIBS="$LIBS -lgen"
8451 if test "$cross_compiling" = yes; then
8452 ac_cv_have_broken_dirname="no"
8453else
8454 cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460
8461#include <libgen.h>
8462#include <string.h>
8463
8464int main(int argc, char **argv) {
8465 char *s, buf[32];
8466
8467 strncpy(buf,"/etc", 32);
8468 s = dirname(buf);
8469 if (!s || strncmp(s, "/", 32) != 0) {
8470 exit(1);
8471 } else {
8472 exit(0);
8473 }
8474}
8475
8476_ACEOF
8477rm -f conftest$ac_exeext
8478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_broken_dirname="no"
8489else
8490 echo "$as_me: program exited with status $ac_status" >&5
8491echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494( exit $ac_status )
8495 ac_cv_have_broken_dirname="yes"
8496fi
8497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8498fi
8499 LIBS="$save_LIBS"
8500
8501fi
8502echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
8503echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
8504 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8505 LIBS="$LIBS -lgen"
8506 cat >>confdefs.h <<\_ACEOF
8507#define HAVE_DIRNAME 1
8508_ACEOF
8509
8510
8511for ac_header in libgen.h
8512do
8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519fi
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522else
8523 # Is the header compilable?
8524echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532$ac_includes_default
8533#include <$ac_header>
8534_ACEOF
8535rm -f conftest.$ac_objext
8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_header_compiler=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_header_compiler=no
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566echo "${ECHO_T}$ac_header_compiler" >&6
8567
8568# Is the header present?
8569echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h. */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h. */
8577#include <$ac_header>
8578_ACEOF
8579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } >/dev/null; then
8587 if test -s conftest.err; then
8588 ac_cpp_err=$ac_c_preproc_warn_flag
8589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8590 else
8591 ac_cpp_err=
8592 fi
8593else
8594 ac_cpp_err=yes
8595fi
8596if test -z "$ac_cpp_err"; then
8597 ac_header_preproc=yes
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_header_preproc=no
8603fi
8604rm -f conftest.err conftest.$ac_ext
8605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606echo "${ECHO_T}$ac_header_preproc" >&6
8607
8608# So? What about this header?
8609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8610 yes:no: )
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8615 ac_header_preproc=yes
8616 ;;
8617 no:yes:* )
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8630 (
8631 cat <<\_ASBOX
8632## ------------------------------------------- ##
8633## Report this to openssh-unix-dev@mindrot.org ##
8634## ------------------------------------------- ##
8635_ASBOX
8636 ) |
8637 sed "s/^/$as_me: WARNING: /" >&2
8638 ;;
8639esac
8640echo "$as_me:$LINENO: checking for $ac_header" >&5
8641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 eval "$as_ac_Header=\$ac_header_preproc"
8646fi
8647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8649
8650fi
8651if test `eval echo '${'$as_ac_Header'}'` = yes; then
8652 cat >>confdefs.h <<_ACEOF
8653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8654_ACEOF
8655
8656fi
8657
8658done
8659
8660 fi
8661
8662fi
8663
8664
8665fi
8666done
8667
8668
8669echo "$as_me:$LINENO: checking for getspnam" >&5
8670echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
8671if test "${ac_cv_func_getspnam+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
8681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8682#define getspnam innocuous_getspnam
8683
8684/* System header to define __stub macros and hopefully few prototypes,
8685 which can conflict with char getspnam (); below.
8686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8687 <limits.h> exists even on freestanding compilers. */
8688
8689#ifdef __STDC__
8690# include <limits.h>
8691#else
8692# include <assert.h>
8693#endif
8694
8695#undef getspnam
8696
8697/* Override any gcc2 internal prototype to avoid an error. */
8698#ifdef __cplusplus
8699extern "C"
8700{
8701#endif
8702/* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704char getspnam ();
8705/* The GNU C library defines this for functions which it implements
8706 to always fail with ENOSYS. Some functions are actually named
8707 something starting with __ and the normal name is an alias. */
8708#if defined (__stub_getspnam) || defined (__stub___getspnam)
8709choke me
8710#else
8711char (*f) () = getspnam;
8712#endif
8713#ifdef __cplusplus
8714}
8715#endif
8716
8717int
8718main ()
8719{
8720return f != getspnam;
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725rm -f conftest.$ac_objext conftest$ac_exeext
8726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_func_getspnam=yes
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752ac_cv_func_getspnam=no
8753fi
8754rm -f conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756fi
8757echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8758echo "${ECHO_T}$ac_cv_func_getspnam" >&6
8759if test $ac_cv_func_getspnam = yes; then
8760 :
8761else
8762 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
8763echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
8764if test "${ac_cv_lib_gen_getspnam+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767 ac_check_lib_save_LIBS=$LIBS
8768LIBS="-lgen $LIBS"
8769cat >conftest.$ac_ext <<_ACEOF
8770/* confdefs.h. */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h. */
8775
8776/* Override any gcc2 internal prototype to avoid an error. */
8777#ifdef __cplusplus
8778extern "C"
8779#endif
8780/* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8782char getspnam ();
8783int
8784main ()
8785{
8786getspnam ();
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791rm -f conftest.$ac_objext conftest$ac_exeext
8792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793 (eval $ac_link) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_lib_gen_getspnam=yes
8814else
8815 echo "$as_me: failed program was:" >&5
8816sed 's/^/| /' conftest.$ac_ext >&5
8817
8818ac_cv_lib_gen_getspnam=no
8819fi
8820rm -f conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822LIBS=$ac_check_lib_save_LIBS
8823fi
8824echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
8825echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
8826if test $ac_cv_lib_gen_getspnam = yes; then
8827 LIBS="$LIBS -lgen"
8828fi
8829
8830fi
8831
8832echo "$as_me:$LINENO: checking for library containing basename" >&5
8833echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
8834if test "${ac_cv_search_basename+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836else
8837 ac_func_search_save_LIBS=$LIBS
8838ac_cv_search_basename=no
8839cat >conftest.$ac_ext <<_ACEOF
8840/* confdefs.h. */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h. */
8845
8846/* Override any gcc2 internal prototype to avoid an error. */
8847#ifdef __cplusplus
8848extern "C"
8849#endif
8850/* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8852char basename ();
8853int
8854main ()
8855{
8856basename ();
8857 ;
8858 return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext conftest$ac_exeext
8862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest$ac_exeext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_cv_search_basename="none required"
8884else
8885 echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
8887
8888fi
8889rm -f conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891if test "$ac_cv_search_basename" = no; then
8892 for ac_lib in gen; do
8893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895/* confdefs.h. */
8896_ACEOF
8897cat confdefs.h >>conftest.$ac_ext
8898cat >>conftest.$ac_ext <<_ACEOF
8899/* end confdefs.h. */
8900
8901/* Override any gcc2 internal prototype to avoid an error. */
8902#ifdef __cplusplus
8903extern "C"
8904#endif
8905/* We use char because int might match the return type of a gcc2
8906 builtin and then its argument prototype would still apply. */
8907char basename ();
8908int
8909main ()
8910{
8911basename ();
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916rm -f conftest.$ac_objext conftest$ac_exeext
8917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_search_basename="-l$ac_lib"
8939break
8940else
8941 echo "$as_me: failed program was:" >&5
8942sed 's/^/| /' conftest.$ac_ext >&5
8943
8944fi
8945rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 done
8948fi
8949LIBS=$ac_func_search_save_LIBS
8950fi
8951echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
8952echo "${ECHO_T}$ac_cv_search_basename" >&6
8953if test "$ac_cv_search_basename" != no; then
8954 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
8955
8956cat >>confdefs.h <<\_ACEOF
8957#define HAVE_BASENAME 1
8958_ACEOF
8959
8960fi
8961
8962
8963
8964# Check whether --with-zlib or --without-zlib was given.
8965if test "${with_zlib+set}" = set; then
8966 withval="$with_zlib"
8967 if test "x$withval" = "xno" ; then
8968 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8969echo "$as_me: error: *** zlib is required ***" >&2;}
8970 { (exit 1); exit 1; }; }
8971 elif test "x$withval" != "xyes"; then
8972 if test -d "$withval/lib"; then
8973 if test -n "${need_dash_r}"; then
8974 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8975 else
8976 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8977 fi
8978 else
8979 if test -n "${need_dash_r}"; then
8980 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8981 else
8982 LDFLAGS="-L${withval} ${LDFLAGS}"
8983 fi
8984 fi
8985 if test -d "$withval/include"; then
8986 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8987 else
8988 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8989 fi
8990 fi
8991
8992fi;
8993
8994
8995echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8996echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8997if test "${ac_cv_lib_z_deflate+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000 ac_check_lib_save_LIBS=$LIBS
9001LIBS="-lz $LIBS"
9002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
9008
9009/* Override any gcc2 internal prototype to avoid an error. */
9010#ifdef __cplusplus
9011extern "C"
9012#endif
9013/* We use char because int might match the return type of a gcc2
9014 builtin and then its argument prototype would still apply. */
9015char deflate ();
9016int
9017main ()
9018{
9019deflate ();
9020 ;
9021 return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026 (eval $ac_link) 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag"
9034 || test ! -s conftest.err'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 ac_cv_lib_z_deflate=yes
9047else
9048 echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051ac_cv_lib_z_deflate=no
9052fi
9053rm -f conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9055LIBS=$ac_check_lib_save_LIBS
9056fi
9057echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
9058echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
9059if test $ac_cv_lib_z_deflate = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061#define HAVE_LIBZ 1
9062_ACEOF
9063
9064 LIBS="-lz $LIBS"
9065
9066else
9067
9068 saved_CPPFLAGS="$CPPFLAGS"
9069 saved_LDFLAGS="$LDFLAGS"
9070 save_LIBS="$LIBS"
9071 if test -n "${need_dash_r}"; then
9072 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
9073 else
9074 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
9075 fi
9076 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
9077 LIBS="$LIBS -lz"
9078 cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084
9085/* Override any gcc2 internal prototype to avoid an error. */
9086#ifdef __cplusplus
9087extern "C"
9088#endif
9089/* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9091char deflate ();
9092int
9093main ()
9094{
9095deflate ();
9096 ;
9097 return 0;
9098}
9099_ACEOF
9100rm -f conftest.$ac_objext conftest$ac_exeext
9101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag"
9110 || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 cat >>confdefs.h <<\_ACEOF
9123#define HAVE_LIBZ 1
9124_ACEOF
9125
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130
9131 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
9132echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
9133 { (exit 1); exit 1; }; }
9134
9135
9136fi
9137rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139
9140
9141fi
9142
9143if test "${ac_cv_header_zlib_h+set}" = set; then
9144 echo "$as_me:$LINENO: checking for zlib.h" >&5
9145echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9146if test "${ac_cv_header_zlib_h+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9150echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9151else
9152 # Is the header compilable?
9153echo "$as_me:$LINENO: checking zlib.h usability" >&5
9154echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9155cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162#include <zlib.h>
9163_ACEOF
9164rm -f conftest.$ac_objext
9165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9166 (eval $ac_compile) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag"
9174 || test ! -s conftest.err'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 (eval $ac_try) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_header_compiler=yes
9187else
9188 echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191ac_header_compiler=no
9192fi
9193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9195echo "${ECHO_T}$ac_header_compiler" >&6
9196
9197# Is the header present?
9198echo "$as_me:$LINENO: checking zlib.h presence" >&5
9199echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9200cat >conftest.$ac_ext <<_ACEOF
9201/* confdefs.h. */
9202_ACEOF
9203cat confdefs.h >>conftest.$ac_ext
9204cat >>conftest.$ac_ext <<_ACEOF
9205/* end confdefs.h. */
9206#include <zlib.h>
9207_ACEOF
9208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } >/dev/null; then
9216 if test -s conftest.err; then
9217 ac_cpp_err=$ac_c_preproc_warn_flag
9218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9219 else
9220 ac_cpp_err=
9221 fi
9222else
9223 ac_cpp_err=yes
9224fi
9225if test -z "$ac_cpp_err"; then
9226 ac_header_preproc=yes
9227else
9228 echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_header_preproc=no
9232fi
9233rm -f conftest.err conftest.$ac_ext
9234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9235echo "${ECHO_T}$ac_header_preproc" >&6
9236
9237# So? What about this header?
9238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9239 yes:no: )
9240 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9241echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9243echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9244 ac_header_preproc=yes
9245 ;;
9246 no:yes:* )
9247 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9248echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9250echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9252echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9254echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9256echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9258echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9259 (
9260 cat <<\_ASBOX
9261## ------------------------------------------- ##
9262## Report this to openssh-unix-dev@mindrot.org ##
9263## ------------------------------------------- ##
9264_ASBOX
9265 ) |
9266 sed "s/^/$as_me: WARNING: /" >&2
9267 ;;
9268esac
9269echo "$as_me:$LINENO: checking for zlib.h" >&5
9270echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9271if test "${ac_cv_header_zlib_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274 ac_cv_header_zlib_h=$ac_header_preproc
9275fi
9276echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9277echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9278
9279fi
9280if test $ac_cv_header_zlib_h = yes; then
9281 :
9282else
9283 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
9284echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
9285 { (exit 1); exit 1; }; }
9286fi
9287
9288
9289
9290
9291# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
9292if test "${with_zlib_version_check+set}" = set; then
9293 withval="$with_zlib_version_check"
9294 if test "x$withval" = "xno" ; then
9295 zlib_check_nonfatal=1
9296 fi
9297
9298
9299fi;
9300
9301echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
9302echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6
9303if test "$cross_compiling" = yes; then
9304 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
9305echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
9306
9307else
9308 cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h. */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h. */
9314
9315#include <stdio.h>
9316#include <zlib.h>
9317int main()
9318{
9319 int a=0, b=0, c=0, d=0, n, v;
9320 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
9321 if (n != 3 && n != 4)
9322 exit(1);
9323 v = a*1000000 + b*10000 + c*100 + d;
9324 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
9325
9326 /* 1.1.4 is OK */
9327 if (a == 1 && b == 1 && c >= 4)
9328 exit(0);
9329
9330 /* 1.2.3 and up are OK */
9331 if (v >= 1020300)
9332 exit(0);
9333
9334 exit(2);
9335}
9336
9337_ACEOF
9338rm -f conftest$ac_exeext
9339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9340 (eval $ac_link) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
9351else
9352 echo "$as_me: program exited with status $ac_status" >&5
9353echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
9356( exit $ac_status )
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 if test -z "$zlib_check_nonfatal" ; then
9360 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
9361Your reported zlib version has known security problems. It's possible your
9362vendor has fixed these problems without changing the version number. If you
9363are sure this is the case, you can disable the check by running
9364\"./configure --without-zlib-version-check\".
9365If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9366See http://www.gzip.org/zlib/ for details." >&5
9367echo "$as_me: error: *** zlib too old - check config.log ***
9368Your reported zlib version has known security problems. It's possible your
9369vendor has fixed these problems without changing the version number. If you
9370are sure this is the case, you can disable the check by running
9371\"./configure --without-zlib-version-check\".
9372If you are in doubt, upgrade zlib to version 1.2.3 or greater.
9373See http://www.gzip.org/zlib/ for details." >&2;}
9374 { (exit 1); exit 1; }; }
9375 else
9376 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
9377echo "$as_me: WARNING: zlib version may have security problems" >&2;}
9378 fi
9379
9380fi
9381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9382fi
9383
9384echo "$as_me:$LINENO: checking for strcasecmp" >&5
9385echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
9386if test "${ac_cv_func_strcasecmp+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388else
9389 cat >conftest.$ac_ext <<_ACEOF
9390/* confdefs.h. */
9391_ACEOF
9392cat confdefs.h >>conftest.$ac_ext
9393cat >>conftest.$ac_ext <<_ACEOF
9394/* end confdefs.h. */
9395/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
9396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9397#define strcasecmp innocuous_strcasecmp
9398
9399/* System header to define __stub macros and hopefully few prototypes,
9400 which can conflict with char strcasecmp (); below.
9401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9402 <limits.h> exists even on freestanding compilers. */
9403
9404#ifdef __STDC__
9405# include <limits.h>
9406#else
9407# include <assert.h>
9408#endif
9409
9410#undef strcasecmp
9411
9412/* Override any gcc2 internal prototype to avoid an error. */
9413#ifdef __cplusplus
9414extern "C"
9415{
9416#endif
9417/* We use char because int might match the return type of a gcc2
9418 builtin and then its argument prototype would still apply. */
9419char strcasecmp ();
9420/* The GNU C library defines this for functions which it implements
9421 to always fail with ENOSYS. Some functions are actually named
9422 something starting with __ and the normal name is an alias. */
9423#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
9424choke me
9425#else
9426char (*f) () = strcasecmp;
9427#endif
9428#ifdef __cplusplus
9429}
9430#endif
9431
9432int
9433main ()
9434{
9435return f != strcasecmp;
9436 ;
9437 return 0;
9438}
9439_ACEOF
9440rm -f conftest.$ac_objext conftest$ac_exeext
9441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_func_strcasecmp=yes
9463else
9464 echo "$as_me: failed program was:" >&5
9465sed 's/^/| /' conftest.$ac_ext >&5
9466
9467ac_cv_func_strcasecmp=no
9468fi
9469rm -f conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471fi
9472echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
9473echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
9474if test $ac_cv_func_strcasecmp = yes; then
9475 :
9476else
9477 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
9478echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
9479if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 ac_check_lib_save_LIBS=$LIBS
9483LIBS="-lresolv $LIBS"
9484cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h. */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h. */
9490
9491/* Override any gcc2 internal prototype to avoid an error. */
9492#ifdef __cplusplus
9493extern "C"
9494#endif
9495/* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9497char strcasecmp ();
9498int
9499main ()
9500{
9501strcasecmp ();
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext conftest$ac_exeext
9507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag"
9516 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_lib_resolv_strcasecmp=yes
9529else
9530 echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533ac_cv_lib_resolv_strcasecmp=no
9534fi
9535rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537LIBS=$ac_check_lib_save_LIBS
9538fi
9539echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
9540echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
9541if test $ac_cv_lib_resolv_strcasecmp = yes; then
9542 LIBS="$LIBS -lresolv"
9543fi
9544
9545
9546fi
9547
9548
9549for ac_func in utimes
9550do
9551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9552echo "$as_me:$LINENO: checking for $ac_func" >&5
9553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9554if eval "test \"\${$as_ac_var+set}\" = set"; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556else
9557 cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h. */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h. */
9563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9565#define $ac_func innocuous_$ac_func
9566
9567/* System header to define __stub macros and hopefully few prototypes,
9568 which can conflict with char $ac_func (); below.
9569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9570 <limits.h> exists even on freestanding compilers. */
9571
9572#ifdef __STDC__
9573# include <limits.h>
9574#else
9575# include <assert.h>
9576#endif
9577
9578#undef $ac_func
9579
9580/* Override any gcc2 internal prototype to avoid an error. */
9581#ifdef __cplusplus
9582extern "C"
9583{
9584#endif
9585/* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9587char $ac_func ();
9588/* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9592choke me
9593#else
9594char (*f) () = $ac_func;
9595#endif
9596#ifdef __cplusplus
9597}
9598#endif
9599
9600int
9601main ()
9602{
9603return f != $ac_func;
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608rm -f conftest.$ac_objext conftest$ac_exeext
9609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag"
9618 || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 eval "$as_ac_var=yes"
9631else
9632 echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
9634
9635eval "$as_ac_var=no"
9636fi
9637rm -f conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9639fi
9640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9642if test `eval echo '${'$as_ac_var'}'` = yes; then
9643 cat >>confdefs.h <<_ACEOF
9644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9645_ACEOF
9646
9647else
9648 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
9649echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
9650if test "${ac_cv_lib_c89_utimes+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 ac_check_lib_save_LIBS=$LIBS
9654LIBS="-lc89 $LIBS"
9655cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661
9662/* Override any gcc2 internal prototype to avoid an error. */
9663#ifdef __cplusplus
9664extern "C"
9665#endif
9666/* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9668char utimes ();
9669int
9670main ()
9671{
9672utimes ();
9673 ;
9674 return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext conftest$ac_exeext
9678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_c89_utimes=yes
9700else
9701 echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704ac_cv_lib_c89_utimes=no
9705fi
9706rm -f conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708LIBS=$ac_check_lib_save_LIBS
9709fi
9710echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
9711echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
9712if test $ac_cv_lib_c89_utimes = yes; then
9713 cat >>confdefs.h <<\_ACEOF
9714#define HAVE_UTIMES 1
9715_ACEOF
9716
9717 LIBS="$LIBS -lc89"
9718fi
9719
9720
9721fi
9722done
9723
9724
9725
9726for ac_header in libutil.h
9727do
9728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9729if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo "$as_me:$LINENO: checking for $ac_header" >&5
9731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9732if eval "test \"\${$as_ac_Header+set}\" = set"; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734fi
9735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9737else
9738 # Is the header compilable?
9739echo "$as_me:$LINENO: checking $ac_header usability" >&5
9740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9741cat >conftest.$ac_ext <<_ACEOF
9742/* confdefs.h. */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h. */
9747$ac_includes_default
9748#include <$ac_header>
9749_ACEOF
9750rm -f conftest.$ac_objext
9751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag"
9760 || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_header_compiler=yes
9773else
9774 echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
9777ac_header_compiler=no
9778fi
9779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781echo "${ECHO_T}$ac_header_compiler" >&6
9782
9783# Is the header present?
9784echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792#include <$ac_header>
9793_ACEOF
9794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null; then
9802 if test -s conftest.err; then
9803 ac_cpp_err=$ac_c_preproc_warn_flag
9804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9805 else
9806 ac_cpp_err=
9807 fi
9808else
9809 ac_cpp_err=yes
9810fi
9811if test -z "$ac_cpp_err"; then
9812 ac_header_preproc=yes
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 ac_header_preproc=no
9818fi
9819rm -f conftest.err conftest.$ac_ext
9820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821echo "${ECHO_T}$ac_header_preproc" >&6
9822
9823# So? What about this header?
9824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825 yes:no: )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9831 ;;
9832 no:yes:* )
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845 (
9846 cat <<\_ASBOX
9847## ------------------------------------------- ##
9848## Report this to openssh-unix-dev@mindrot.org ##
9849## ------------------------------------------- ##
9850_ASBOX
9851 ) |
9852 sed "s/^/$as_me: WARNING: /" >&2
9853 ;;
9854esac
9855echo "$as_me:$LINENO: checking for $ac_header" >&5
9856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859else
9860 eval "$as_ac_Header=\$ac_header_preproc"
9861fi
9862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9864
9865fi
9866if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869_ACEOF
9870
9871fi
9872
9873done
9874
9875echo "$as_me:$LINENO: checking for library containing login" >&5
9876echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
9877if test "${ac_cv_search_login+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 ac_func_search_save_LIBS=$LIBS
9881ac_cv_search_login=no
9882cat >conftest.$ac_ext <<_ACEOF
9883/* confdefs.h. */
9884_ACEOF
9885cat confdefs.h >>conftest.$ac_ext
9886cat >>conftest.$ac_ext <<_ACEOF
9887/* end confdefs.h. */
9888
9889/* Override any gcc2 internal prototype to avoid an error. */
9890#ifdef __cplusplus
9891extern "C"
9892#endif
9893/* We use char because int might match the return type of a gcc2
9894 builtin and then its argument prototype would still apply. */
9895char login ();
9896int
9897main ()
9898{
9899login ();
9900 ;
9901 return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_search_login="none required"
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931fi
9932rm -f conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934if test "$ac_cv_search_login" = no; then
9935 for ac_lib in util bsd; do
9936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9937 cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
9944/* Override any gcc2 internal prototype to avoid an error. */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
9948/* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950char login ();
9951int
9952main ()
9953{
9954login ();
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag"
9969 || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_search_login="-l$ac_lib"
9982break
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
9987fi
9988rm -f conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 done
9991fi
9992LIBS=$ac_func_search_save_LIBS
9993fi
9994echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9995echo "${ECHO_T}$ac_cv_search_login" >&6
9996if test "$ac_cv_search_login" != no; then
9997 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
9998
9999cat >>confdefs.h <<\_ACEOF
10000#define HAVE_LOGIN 1
10001_ACEOF
10002
10003fi
10004
10005
10006
10007
10008for ac_func in logout updwtmp logwtmp
10009do
10010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011echo "$as_me:$LINENO: checking for $ac_func" >&5
10012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10013if eval "test \"\${$as_ac_var+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015else
10016 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
10022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10024#define $ac_func innocuous_$ac_func
10025
10026/* System header to define __stub macros and hopefully few prototypes,
10027 which can conflict with char $ac_func (); below.
10028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10029 <limits.h> exists even on freestanding compilers. */
10030
10031#ifdef __STDC__
10032# include <limits.h>
10033#else
10034# include <assert.h>
10035#endif
10036
10037#undef $ac_func
10038
10039/* Override any gcc2 internal prototype to avoid an error. */
10040#ifdef __cplusplus
10041extern "C"
10042{
10043#endif
10044/* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046char $ac_func ();
10047/* The GNU C library defines this for functions which it implements
10048 to always fail with ENOSYS. Some functions are actually named
10049 something starting with __ and the normal name is an alias. */
10050#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10051choke me
10052#else
10053char (*f) () = $ac_func;
10054#endif
10055#ifdef __cplusplus
10056}
10057#endif
10058
10059int
10060main ()
10061{
10062return f != $ac_func;
10063 ;
10064 return 0;
10065}
10066_ACEOF
10067rm -f conftest.$ac_objext conftest$ac_exeext
10068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 eval "$as_ac_var=yes"
10090else
10091 echo "$as_me: failed program was:" >&5
10092sed 's/^/| /' conftest.$ac_ext >&5
10093
10094eval "$as_ac_var=no"
10095fi
10096rm -f conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098fi
10099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10101if test `eval echo '${'$as_ac_var'}'` = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10104_ACEOF
10105
10106fi
10107done
10108
10109
10110
10111for ac_func in strftime
10112do
10113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10114echo "$as_me:$LINENO: checking for $ac_func" >&5
10115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10116if eval "test \"\${$as_ac_var+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127#define $ac_func innocuous_$ac_func
10128
10129/* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10133
10134#ifdef __STDC__
10135# include <limits.h>
10136#else
10137# include <assert.h>
10138#endif
10139
10140#undef $ac_func
10141
10142/* Override any gcc2 internal prototype to avoid an error. */
10143#ifdef __cplusplus
10144extern "C"
10145{
10146#endif
10147/* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149char $ac_func ();
10150/* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10154choke me
10155#else
10156char (*f) () = $ac_func;
10157#endif
10158#ifdef __cplusplus
10159}
10160#endif
10161
10162int
10163main ()
10164{
10165return f != $ac_func;
10166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 eval "$as_ac_var=yes"
10193else
10194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197eval "$as_ac_var=no"
10198fi
10199rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201fi
10202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10204if test `eval echo '${'$as_ac_var'}'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207_ACEOF
10208
10209else
10210 # strftime is in -lintl on SCO UNIX.
10211echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10212echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10213if test "${ac_cv_lib_intl_strftime+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 ac_check_lib_save_LIBS=$LIBS
10217LIBS="-lintl $LIBS"
10218cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */
10224
10225/* Override any gcc2 internal prototype to avoid an error. */
10226#ifdef __cplusplus
10227extern "C"
10228#endif
10229/* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10231char strftime ();
10232int
10233main ()
10234{
10235strftime ();
10236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_intl_strftime=yes
10263else
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267ac_cv_lib_intl_strftime=no
10268fi
10269rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10274echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10275if test $ac_cv_lib_intl_strftime = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277#define HAVE_STRFTIME 1
10278_ACEOF
10279
10280LIBS="-lintl $LIBS"
10281fi
10282
10283fi
10284done
10285
10286
10287# Check for ALTDIRFUNC glob() extension
10288echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
10289echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
10290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296
10297 #include <glob.h>
10298 #ifdef GLOB_ALTDIRFUNC
10299 FOUNDIT
10300 #endif
10301
10302_ACEOF
10303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10304 $EGREP "FOUNDIT" >/dev/null 2>&1; then
10305
10306
10307cat >>confdefs.h <<\_ACEOF
10308#define GLOB_HAS_ALTDIRFUNC 1
10309_ACEOF
10310
10311 echo "$as_me:$LINENO: result: yes" >&5
10312echo "${ECHO_T}yes" >&6
10313
10314else
10315
10316 echo "$as_me:$LINENO: result: no" >&5
10317echo "${ECHO_T}no" >&6
10318
10319
10320fi
10321rm -f conftest*
10322
10323
10324# Check for g.gl_matchc glob() extension
10325echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
10326echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
10327cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333
10334 #include <glob.h>
10335 int main(void){glob_t g; g.gl_matchc = 1;}
10336
10337_ACEOF
10338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10339 $EGREP "FOUNDIT" >/dev/null 2>&1; then
10340
10341
10342cat >>confdefs.h <<\_ACEOF
10343#define GLOB_HAS_GL_MATCHC 1
10344_ACEOF
10345
10346 echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
10348
10349else
10350
10351 echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6
10353
10354
10355fi
10356rm -f conftest*
10357
10358
10359echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
10360echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
10361if test "$cross_compiling" = yes; then
10362
10363 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
10364echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
10365 cat >>confdefs.h <<\_ACEOF
10366#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
10367_ACEOF
10368
10369
10370
10371else
10372 cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379#include <sys/types.h>
10380#include <dirent.h>
10381int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
10382
10383_ACEOF
10384rm -f conftest$ac_exeext
10385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 echo "$as_me:$LINENO: result: yes" >&5
10396echo "${ECHO_T}yes" >&6
10397else
10398 echo "$as_me: program exited with status $ac_status" >&5
10399echo "$as_me: failed program was:" >&5
10400sed 's/^/| /' conftest.$ac_ext >&5
10401
10402( exit $ac_status )
10403
10404 echo "$as_me:$LINENO: result: no" >&5
10405echo "${ECHO_T}no" >&6
10406
10407cat >>confdefs.h <<\_ACEOF
10408#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
10409_ACEOF
10410
10411
10412fi
10413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414fi
10415
10416echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
10417echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6
10418if test -d "/proc/$$/fd" ; then
10419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_PROC_PID 1
10422_ACEOF
10423
10424 echo "$as_me:$LINENO: result: yes" >&5
10425echo "${ECHO_T}yes" >&6
10426else
10427 echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6
10429fi
10430
10431# Check whether user wants S/Key support
10432SKEY_MSG="no"
10433
10434# Check whether --with-skey or --without-skey was given.
10435if test "${with_skey+set}" = set; then
10436 withval="$with_skey"
10437
10438 if test "x$withval" != "xno" ; then
10439
10440 if test "x$withval" != "xyes" ; then
10441 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10442 LDFLAGS="$LDFLAGS -L${withval}/lib"
10443 fi
10444
10445
10446cat >>confdefs.h <<\_ACEOF
10447#define SKEY 1
10448_ACEOF
10449
10450 LIBS="-lskey $LIBS"
10451 SKEY_MSG="yes"
10452
10453 echo "$as_me:$LINENO: checking for s/key support" >&5
10454echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
10455 cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461
10462#include <stdio.h>
10463#include <skey.h>
10464int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
10465
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469 (eval $ac_link) 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag"
10477 || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } &&
10483 { ac_try='test -s conftest$ac_exeext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 echo "$as_me:$LINENO: result: yes" >&5
10490echo "${ECHO_T}yes" >&6
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
10495
10496 echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
10499echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
10500 { (exit 1); exit 1; }; }
10501
10502fi
10503rm -f conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
10506echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
10513#include <stdio.h>
10514 #include <skey.h>
10515int
10516main ()
10517{
10518(void)skeychallenge(NULL,"name","",0);
10519 ;
10520 return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext
10524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 echo "$as_me:$LINENO: result: yes" >&5
10546echo "${ECHO_T}yes" >&6
10547
10548cat >>confdefs.h <<\_ACEOF
10549#define SKEYCHALLENGE_4ARG 1
10550_ACEOF
10551
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
10558
10559fi
10560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10561 fi
10562
10563
10564fi;
10565
10566# Check whether user wants TCP wrappers support
10567TCPW_MSG="no"
10568
10569# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
10570if test "${with_tcp_wrappers+set}" = set; then
10571 withval="$with_tcp_wrappers"
10572
10573 if test "x$withval" != "xno" ; then
10574 saved_LIBS="$LIBS"
10575 saved_LDFLAGS="$LDFLAGS"
10576 saved_CPPFLAGS="$CPPFLAGS"
10577 if test -n "${withval}" && \
10578 test "x${withval}" != "xyes"; then
10579 if test -d "${withval}/lib"; then
10580 if test -n "${need_dash_r}"; then
10581 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10582 else
10583 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10584 fi
10585 else
10586 if test -n "${need_dash_r}"; then
10587 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10588 else
10589 LDFLAGS="-L${withval} ${LDFLAGS}"
10590 fi
10591 fi
10592 if test -d "${withval}/include"; then
10593 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10594 else
10595 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10596 fi
10597 fi
10598 LIBWRAP="-lwrap"
10599 LIBS="$LIBWRAP $LIBS"
10600 echo "$as_me:$LINENO: checking for libwrap" >&5
10601echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608
10609#include <sys/types.h>
10610#include <sys/socket.h>
10611#include <netinet/in.h>
10612#include <tcpd.h>
10613 int deny_severity = 0, allow_severity = 0;
10614
10615int
10616main ()
10617{
10618hosts_access(0);
10619 ;
10620 return 0;
10621}
10622_ACEOF
10623rm -f conftest.$ac_objext conftest$ac_exeext
10624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645
10646 echo "$as_me:$LINENO: result: yes" >&5
10647echo "${ECHO_T}yes" >&6
10648
10649cat >>confdefs.h <<\_ACEOF
10650#define LIBWRAP 1
10651_ACEOF
10652
10653
10654 TCPW_MSG="yes"
10655
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660
10661 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
10662echo "$as_me: error: *** libwrap missing" >&2;}
10663 { (exit 1); exit 1; }; }
10664
10665
10666fi
10667rm -f conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS="$saved_LIBS"
10670 fi
10671
10672
10673fi;
10674
10675# Check whether user wants libedit support
10676LIBEDIT_MSG="no"
10677
10678# Check whether --with-libedit or --without-libedit was given.
10679if test "${with_libedit+set}" = set; then
10680 withval="$with_libedit"
10681 if test "x$withval" != "xno" ; then
10682 if test "x$withval" != "xyes"; then
10683 CPPFLAGS="$CPPFLAGS -I${withval}/include"
10684 if test -n "${need_dash_r}"; then
10685 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10686 else
10687 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10688 fi
10689 fi
10690 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
10691echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6
10692if test "${ac_cv_lib_edit_el_init+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695 ac_check_lib_save_LIBS=$LIBS
10696LIBS="-ledit -lcurses
10697 $LIBS"
10698cat >conftest.$ac_ext <<_ACEOF
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704
10705/* Override any gcc2 internal prototype to avoid an error. */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709/* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10711char el_init ();
10712int
10713main ()
10714{
10715el_init ();
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720rm -f conftest.$ac_objext conftest$ac_exeext
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_lib_edit_el_init=yes
10743else
10744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747ac_cv_lib_edit_el_init=no
10748fi
10749rm -f conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751LIBS=$ac_check_lib_save_LIBS
10752fi
10753echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
10754echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6
10755if test $ac_cv_lib_edit_el_init = yes; then
10756
10757cat >>confdefs.h <<\_ACEOF
10758#define USE_LIBEDIT 1
10759_ACEOF
10760
10761 LIBEDIT="-ledit -lcurses"
10762 LIBEDIT_MSG="yes"
10763
10764
10765else
10766 { { echo "$as_me:$LINENO: error: libedit not found" >&5
10767echo "$as_me: error: libedit not found" >&2;}
10768 { (exit 1); exit 1; }; }
10769fi
10770
10771 echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
10772echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10774/* confdefs.h. */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h. */
10779
10780#include <histedit.h>
10781int main(void)
10782{
10783 int i = H_SETSIZE;
10784 el_init("", NULL, NULL, NULL);
10785 exit(0);
10786}
10787
10788_ACEOF
10789rm -f conftest.$ac_objext
10790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791 (eval $ac_compile) 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag"
10799 || test ! -s conftest.err'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest.$ac_objext'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 echo "$as_me:$LINENO: result: yes" >&5
10812echo "${ECHO_T}yes" >&6
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
10819 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
10820echo "$as_me: error: libedit version is not compatible" >&2;}
10821 { (exit 1); exit 1; }; }
10822
10823fi
10824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 fi
10826
10827fi;
10828
10829AUDIT_MODULE=none
10830
10831# Check whether --with-audit or --without-audit was given.
10832if test "${with_audit+set}" = set; then
10833 withval="$with_audit"
10834
10835 echo "$as_me:$LINENO: checking for supported audit module" >&5
10836echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6
10837 case "$withval" in
10838 bsm)
10839 echo "$as_me:$LINENO: result: bsm" >&5
10840echo "${ECHO_T}bsm" >&6
10841 AUDIT_MODULE=bsm
10842
10843for ac_header in bsm/audit.h
10844do
10845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10846if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo "$as_me:$LINENO: checking for $ac_header" >&5
10848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10849if eval "test \"\${$as_ac_Header+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851fi
10852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854else
10855 # Is the header compilable?
10856echo "$as_me:$LINENO: checking $ac_header usability" >&5
10857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864$ac_includes_default
10865#include <$ac_header>
10866_ACEOF
10867rm -f conftest.$ac_objext
10868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag"
10877 || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 ac_header_compiler=yes
10890else
10891 echo "$as_me: failed program was:" >&5
10892sed 's/^/| /' conftest.$ac_ext >&5
10893
10894ac_header_compiler=no
10895fi
10896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10898echo "${ECHO_T}$ac_header_compiler" >&6
10899
10900# Is the header present?
10901echo "$as_me:$LINENO: checking $ac_header presence" >&5
10902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10903cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
10909#include <$ac_header>
10910_ACEOF
10911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } >/dev/null; then
10919 if test -s conftest.err; then
10920 ac_cpp_err=$ac_c_preproc_warn_flag
10921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10922 else
10923 ac_cpp_err=
10924 fi
10925else
10926 ac_cpp_err=yes
10927fi
10928if test -z "$ac_cpp_err"; then
10929 ac_header_preproc=yes
10930else
10931 echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 ac_header_preproc=no
10935fi
10936rm -f conftest.err conftest.$ac_ext
10937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938echo "${ECHO_T}$ac_header_preproc" >&6
10939
10940# So? What about this header?
10941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10942 yes:no: )
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10947 ac_header_preproc=yes
10948 ;;
10949 no:yes:* )
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10962 (
10963 cat <<\_ASBOX
10964## ------------------------------------------- ##
10965## Report this to openssh-unix-dev@mindrot.org ##
10966## ------------------------------------------- ##
10967_ASBOX
10968 ) |
10969 sed "s/^/$as_me: WARNING: /" >&2
10970 ;;
10971esac
10972echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 eval "$as_ac_Header=\$ac_header_preproc"
10978fi
10979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10981
10982fi
10983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
10987
10988else
10989 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
10990echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
10991 { (exit 1); exit 1; }; }
10992fi
10993
10994done
10995
10996
10997echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
10998echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6
10999if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002 ac_check_lib_save_LIBS=$LIBS
11003LIBS="-lbsm $LIBS"
11004cat >conftest.$ac_ext <<_ACEOF
11005/* confdefs.h. */
11006_ACEOF
11007cat confdefs.h >>conftest.$ac_ext
11008cat >>conftest.$ac_ext <<_ACEOF
11009/* end confdefs.h. */
11010
11011/* Override any gcc2 internal prototype to avoid an error. */
11012#ifdef __cplusplus
11013extern "C"
11014#endif
11015/* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017char getaudit ();
11018int
11019main ()
11020{
11021getaudit ();
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026rm -f conftest.$ac_objext conftest$ac_exeext
11027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_lib_bsm_getaudit=yes
11049else
11050 echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053ac_cv_lib_bsm_getaudit=no
11054fi
11055rm -f conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057LIBS=$ac_check_lib_save_LIBS
11058fi
11059echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
11060echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6
11061if test $ac_cv_lib_bsm_getaudit = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063#define HAVE_LIBBSM 1
11064_ACEOF
11065
11066 LIBS="-lbsm $LIBS"
11067
11068else
11069 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
11070echo "$as_me: error: BSM enabled and required library not found" >&2;}
11071 { (exit 1); exit 1; }; }
11072fi
11073
11074
11075for ac_func in getaudit
11076do
11077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11078echo "$as_me:$LINENO: checking for $ac_func" >&5
11079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11080if eval "test \"\${$as_ac_var+set}\" = set"; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091#define $ac_func innocuous_$ac_func
11092
11093/* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11097
11098#ifdef __STDC__
11099# include <limits.h>
11100#else
11101# include <assert.h>
11102#endif
11103
11104#undef $ac_func
11105
11106/* Override any gcc2 internal prototype to avoid an error. */
11107#ifdef __cplusplus
11108extern "C"
11109{
11110#endif
11111/* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113char $ac_func ();
11114/* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11118choke me
11119#else
11120char (*f) () = $ac_func;
11121#endif
11122#ifdef __cplusplus
11123}
11124#endif
11125
11126int
11127main ()
11128{
11129return f != $ac_func;
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134rm -f conftest.$ac_objext conftest$ac_exeext
11135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag"
11144 || test ! -s conftest.err'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 eval "$as_ac_var=yes"
11157else
11158 echo "$as_me: failed program was:" >&5
11159sed 's/^/| /' conftest.$ac_ext >&5
11160
11161eval "$as_ac_var=no"
11162fi
11163rm -f conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165fi
11166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11168if test `eval echo '${'$as_ac_var'}'` = yes; then
11169 cat >>confdefs.h <<_ACEOF
11170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11171_ACEOF
11172
11173else
11174 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
11175echo "$as_me: error: BSM enabled and required function not found" >&2;}
11176 { (exit 1); exit 1; }; }
11177fi
11178done
11179
11180 # These are optional
11181
11182for ac_func in getaudit_addr
11183do
11184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185echo "$as_me:$LINENO: checking for $ac_func" >&5
11186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11187if eval "test \"\${$as_ac_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 gcc2 internal prototype to avoid an error. */
11214#ifdef __cplusplus
11215extern "C"
11216{
11217#endif
11218/* We use char because int might match the return type of a gcc2
11219 builtin and then its argument prototype would still apply. */
11220char $ac_func ();
11221/* The GNU C library defines this for functions which it implements
11222 to always fail with ENOSYS. Some functions are actually named
11223 something starting with __ and the normal name is an alias. */
11224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225choke me
11226#else
11227char (*f) () = $ac_func;
11228#endif
11229#ifdef __cplusplus
11230}
11231#endif
11232
11233int
11234main ()
11235{
11236return f != $ac_func;
11237 ;
11238 return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext conftest$ac_exeext
11242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag"
11251 || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 eval "$as_ac_var=yes"
11264else
11265 echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
11268eval "$as_ac_var=no"
11269fi
11270rm -f conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272fi
11273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11275if test `eval echo '${'$as_ac_var'}'` = yes; then
11276 cat >>confdefs.h <<_ACEOF
11277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11278_ACEOF
11279
11280fi
11281done
11282
11283
11284cat >>confdefs.h <<\_ACEOF
11285#define USE_BSM_AUDIT 1
11286_ACEOF
11287
11288 ;;
11289 debug)
11290 AUDIT_MODULE=debug
11291 echo "$as_me:$LINENO: result: debug" >&5
11292echo "${ECHO_T}debug" >&6
11293
11294cat >>confdefs.h <<\_ACEOF
11295#define SSH_AUDIT_EVENTS 1
11296_ACEOF
11297
11298 ;;
11299 no)
11300 echo "$as_me:$LINENO: result: no" >&5
11301echo "${ECHO_T}no" >&6
11302 ;;
11303 *)
11304 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
11305echo "$as_me: error: Unknown audit module $withval" >&2;}
11306 { (exit 1); exit 1; }; }
11307 ;;
11308 esac
11309
11310fi;
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393for ac_func in \
11394 arc4random \
11395 asprintf \
11396 b64_ntop \
11397 __b64_ntop \
11398 b64_pton \
11399 __b64_pton \
11400 bcopy \
11401 bindresvport_sa \
11402 clock \
11403 closefrom \
11404 dirfd \
11405 fchmod \
11406 fchown \
11407 freeaddrinfo \
11408 futimes \
11409 getaddrinfo \
11410 getcwd \
11411 getgrouplist \
11412 getnameinfo \
11413 getopt \
11414 getpeereid \
11415 _getpty \
11416 getrlimit \
11417 getttyent \
11418 glob \
11419 inet_aton \
11420 inet_ntoa \
11421 inet_ntop \
11422 innetgr \
11423 login_getcapbool \
11424 md5_crypt \
11425 memmove \
11426 mkdtemp \
11427 mmap \
11428 ngetaddrinfo \
11429 nsleep \
11430 ogetaddrinfo \
11431 openlog_r \
11432 openpty \
11433 prctl \
11434 pstat \
11435 readpassphrase \
11436 realpath \
11437 recvmsg \
11438 rresvport_af \
11439 sendmsg \
11440 setdtablesize \
11441 setegid \
11442 setenv \
11443 seteuid \
11444 setgroups \
11445 setlogin \
11446 setpcred \
11447 setproctitle \
11448 setregid \
11449 setreuid \
11450 setrlimit \
11451 setsid \
11452 setvbuf \
11453 sigaction \
11454 sigvec \
11455 snprintf \
11456 socketpair \
11457 strdup \
11458 strerror \
11459 strlcat \
11460 strlcpy \
11461 strmode \
11462 strnvis \
11463 strtonum \
11464 strtoll \
11465 strtoul \
11466 sysconf \
11467 tcgetpgrp \
11468 truncate \
11469 unsetenv \
11470 updwtmpx \
11471 vasprintf \
11472 vhangup \
11473 vsnprintf \
11474 waitpid \
11475
11476do
11477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11478echo "$as_me:$LINENO: checking for $ac_func" >&5
11479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11480if eval "test \"\${$as_ac_var+set}\" = set"; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483 cat >conftest.$ac_ext <<_ACEOF
11484/* confdefs.h. */
11485_ACEOF
11486cat confdefs.h >>conftest.$ac_ext
11487cat >>conftest.$ac_ext <<_ACEOF
11488/* end confdefs.h. */
11489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11491#define $ac_func innocuous_$ac_func
11492
11493/* System header to define __stub macros and hopefully few prototypes,
11494 which can conflict with char $ac_func (); below.
11495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11496 <limits.h> exists even on freestanding compilers. */
11497
11498#ifdef __STDC__
11499# include <limits.h>
11500#else
11501# include <assert.h>
11502#endif
11503
11504#undef $ac_func
11505
11506/* Override any gcc2 internal prototype to avoid an error. */
11507#ifdef __cplusplus
11508extern "C"
11509{
11510#endif
11511/* We use char because int might match the return type of a gcc2
11512 builtin and then its argument prototype would still apply. */
11513char $ac_func ();
11514/* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
11517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518choke me
11519#else
11520char (*f) () = $ac_func;
11521#endif
11522#ifdef __cplusplus
11523}
11524#endif
11525
11526int
11527main ()
11528{
11529return f != $ac_func;
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext conftest$ac_exeext
11535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536 (eval $ac_link) 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -z "$ac_c_werror_flag"
11544 || test ! -s conftest.err'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 eval "$as_ac_var=yes"
11557else
11558 echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561eval "$as_ac_var=no"
11562fi
11563rm -f conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565fi
11566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11568if test `eval echo '${'$as_ac_var'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571_ACEOF
11572
11573fi
11574done
11575
11576
11577# IRIX has a const char return value for gai_strerror()
11578
11579for ac_func in gai_strerror
11580do
11581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582echo "$as_me:$LINENO: checking for $ac_func" >&5
11583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584if eval "test \"\${$as_ac_var+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11595#define $ac_func innocuous_$ac_func
11596
11597/* System header to define __stub macros and hopefully few prototypes,
11598 which can conflict with char $ac_func (); below.
11599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11600 <limits.h> exists even on freestanding compilers. */
11601
11602#ifdef __STDC__
11603# include <limits.h>
11604#else
11605# include <assert.h>
11606#endif
11607
11608#undef $ac_func
11609
11610/* Override any gcc2 internal prototype to avoid an error. */
11611#ifdef __cplusplus
11612extern "C"
11613{
11614#endif
11615/* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11617char $ac_func ();
11618/* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11622choke me
11623#else
11624char (*f) () = $ac_func;
11625#endif
11626#ifdef __cplusplus
11627}
11628#endif
11629
11630int
11631main ()
11632{
11633return f != $ac_func;
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext conftest$ac_exeext
11639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 eval "$as_ac_var=yes"
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665eval "$as_ac_var=no"
11666fi
11667rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669fi
11670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675_ACEOF
11676
11677 cat >>confdefs.h <<\_ACEOF
11678#define HAVE_GAI_STRERROR 1
11679_ACEOF
11680
11681 cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687
11688#include <sys/types.h>
11689#include <sys/socket.h>
11690#include <netdb.h>
11691
11692const char *gai_strerror(int);
11693int
11694main ()
11695{
11696
11697char *str;
11698
11699str = gai_strerror(0);
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext
11705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726
11727
11728cat >>confdefs.h <<\_ACEOF
11729#define HAVE_CONST_GAI_STRERROR_PROTO 1
11730_ACEOF
11731
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736fi
11737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738fi
11739done
11740
11741
11742echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
11743echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
11744if test "${ac_cv_search_nanosleep+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 ac_func_search_save_LIBS=$LIBS
11748ac_cv_search_nanosleep=no
11749cat >conftest.$ac_ext <<_ACEOF
11750/* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
11755
11756/* Override any gcc2 internal prototype to avoid an error. */
11757#ifdef __cplusplus
11758extern "C"
11759#endif
11760/* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11762char nanosleep ();
11763int
11764main ()
11765{
11766nanosleep ();
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext conftest$ac_exeext
11772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_cv_search_nanosleep="none required"
11794else
11795 echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
11798fi
11799rm -f conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801if test "$ac_cv_search_nanosleep" = no; then
11802 for ac_lib in rt posix4; do
11803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810
11811/* Override any gcc2 internal prototype to avoid an error. */
11812#ifdef __cplusplus
11813extern "C"
11814#endif
11815/* We use char because int might match the return type of a gcc2
11816 builtin and then its argument prototype would still apply. */
11817char nanosleep ();
11818int
11819main ()
11820{
11821nanosleep ();
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826rm -f conftest.$ac_objext conftest$ac_exeext
11827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828 (eval $ac_link) 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest$ac_exeext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_search_nanosleep="-l$ac_lib"
11849break
11850else
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854fi
11855rm -f conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 done
11858fi
11859LIBS=$ac_func_search_save_LIBS
11860fi
11861echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
11862echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
11863if test "$ac_cv_search_nanosleep" != no; then
11864 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define HAVE_NANOSLEEP 1
11868_ACEOF
11869
11870fi
11871
11872
11873echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
11874echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
11875if test "${ac_cv_have_decl_getrusage+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 cat >conftest.$ac_ext <<_ACEOF
11879/* confdefs.h. */
11880_ACEOF
11881cat confdefs.h >>conftest.$ac_ext
11882cat >>conftest.$ac_ext <<_ACEOF
11883/* end confdefs.h. */
11884$ac_includes_default
11885int
11886main ()
11887{
11888#ifndef getrusage
11889 char *p = (char *) getrusage;
11890#endif
11891
11892 ;
11893 return 0;
11894}
11895_ACEOF
11896rm -f conftest.$ac_objext
11897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11898 (eval $ac_compile) 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag"
11906 || test ! -s conftest.err'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 ac_cv_have_decl_getrusage=yes
11919else
11920 echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923ac_cv_have_decl_getrusage=no
11924fi
11925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926fi
11927echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
11928echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
11929if test $ac_cv_have_decl_getrusage = yes; then
11930
11931for ac_func in getrusage
11932do
11933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934echo "$as_me:$LINENO: checking for $ac_func" >&5
11935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11936if eval "test \"\${$as_ac_var+set}\" = set"; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11947#define $ac_func innocuous_$ac_func
11948
11949/* System header to define __stub macros and hopefully few prototypes,
11950 which can conflict with char $ac_func (); below.
11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952 <limits.h> exists even on freestanding compilers. */
11953
11954#ifdef __STDC__
11955# include <limits.h>
11956#else
11957# include <assert.h>
11958#endif
11959
11960#undef $ac_func
11961
11962/* Override any gcc2 internal prototype to avoid an error. */
11963#ifdef __cplusplus
11964extern "C"
11965{
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969char $ac_func ();
11970/* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974choke me
11975#else
11976char (*f) () = $ac_func;
11977#endif
11978#ifdef __cplusplus
11979}
11980#endif
11981
11982int
11983main ()
11984{
11985return f != $ac_func;
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992 (eval $ac_link) 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -z "$ac_c_werror_flag"
12000 || test ! -s conftest.err'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017eval "$as_ac_var=no"
12018fi
12019rm -f conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021fi
12022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12024if test `eval echo '${'$as_ac_var'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027_ACEOF
12028
12029fi
12030done
12031
12032fi
12033
12034echo "$as_me:$LINENO: checking whether strsep is declared" >&5
12035echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
12036if test "${ac_cv_have_decl_strsep+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 cat >conftest.$ac_ext <<_ACEOF
12040/* confdefs.h. */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h. */
12045
12046#ifdef HAVE_STRING_H
12047# include <string.h>
12048#endif
12049
12050
12051int
12052main ()
12053{
12054#ifndef strsep
12055 char *p = (char *) strsep;
12056#endif
12057
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext
12063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag"
12072 || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_have_decl_strsep=yes
12085else
12086 echo "$as_me: failed program was:" >&5
12087sed 's/^/| /' conftest.$ac_ext >&5
12088
12089ac_cv_have_decl_strsep=no
12090fi
12091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
12094echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
12095if test $ac_cv_have_decl_strsep = yes; then
12096
12097for ac_func in strsep
12098do
12099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100echo "$as_me:$LINENO: checking for $ac_func" >&5
12101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12102if eval "test \"\${$as_ac_var+set}\" = set"; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113#define $ac_func innocuous_$ac_func
12114
12115/* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12119
12120#ifdef __STDC__
12121# include <limits.h>
12122#else
12123# include <assert.h>
12124#endif
12125
12126#undef $ac_func
12127
12128/* Override any gcc2 internal prototype to avoid an error. */
12129#ifdef __cplusplus
12130extern "C"
12131{
12132#endif
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char $ac_func ();
12136/* The GNU C library defines this for functions which it implements
12137 to always fail with ENOSYS. Some functions are actually named
12138 something starting with __ and the normal name is an alias. */
12139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12140choke me
12141#else
12142char (*f) () = $ac_func;
12143#endif
12144#ifdef __cplusplus
12145}
12146#endif
12147
12148int
12149main ()
12150{
12151return f != $ac_func;
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext conftest$ac_exeext
12157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 eval "$as_ac_var=yes"
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183eval "$as_ac_var=no"
12184fi
12185rm -f conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187fi
12188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12190if test `eval echo '${'$as_ac_var'}'` = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193_ACEOF
12194
12195fi
12196done
12197
12198fi
12199
12200
12201echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
12202echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
12203if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212#include <termios.h>
12213
12214
12215int
12216main ()
12217{
12218#ifndef tcsendbreak
12219 char *p = (char *) tcsendbreak;
12220#endif
12221
12222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext
12227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_have_decl_tcsendbreak=yes
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253ac_cv_have_decl_tcsendbreak=no
12254fi
12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256fi
12257echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
12258echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
12259if test $ac_cv_have_decl_tcsendbreak = yes; then
12260 cat >>confdefs.h <<\_ACEOF
12261#define HAVE_TCSENDBREAK 1
12262_ACEOF
12263
12264else
12265
12266for ac_func in tcsendbreak
12267do
12268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12269echo "$as_me:$LINENO: checking for $ac_func" >&5
12270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12271if eval "test \"\${$as_ac_var+set}\" = set"; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h. */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h. */
12280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12282#define $ac_func innocuous_$ac_func
12283
12284/* System header to define __stub macros and hopefully few prototypes,
12285 which can conflict with char $ac_func (); below.
12286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12287 <limits.h> exists even on freestanding compilers. */
12288
12289#ifdef __STDC__
12290# include <limits.h>
12291#else
12292# include <assert.h>
12293#endif
12294
12295#undef $ac_func
12296
12297/* Override any gcc2 internal prototype to avoid an error. */
12298#ifdef __cplusplus
12299extern "C"
12300{
12301#endif
12302/* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304char $ac_func ();
12305/* The GNU C library defines this for functions which it implements
12306 to always fail with ENOSYS. Some functions are actually named
12307 something starting with __ and the normal name is an alias. */
12308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12309choke me
12310#else
12311char (*f) () = $ac_func;
12312#endif
12313#ifdef __cplusplus
12314}
12315#endif
12316
12317int
12318main ()
12319{
12320return f != $ac_func;
12321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
12326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327 (eval $ac_link) 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_c_werror_flag"
12335 || test ! -s conftest.err'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; } &&
12341 { ac_try='test -s conftest$ac_exeext'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 eval "$as_ac_var=yes"
12348else
12349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352eval "$as_ac_var=no"
12353fi
12354rm -f conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356fi
12357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12359if test `eval echo '${'$as_ac_var'}'` = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362_ACEOF
12363
12364fi
12365done
12366
12367fi
12368
12369
12370echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
12371echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
12372if test "${ac_cv_have_decl_h_errno+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
12381#include <netdb.h>
12382
12383int
12384main ()
12385{
12386#ifndef h_errno
12387 char *p = (char *) h_errno;
12388#endif
12389
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext
12395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396 (eval $ac_compile) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest.$ac_objext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_have_decl_h_errno=yes
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421ac_cv_have_decl_h_errno=no
12422fi
12423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12424fi
12425echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
12426echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
12427if test $ac_cv_have_decl_h_errno = yes; then
12428
12429cat >>confdefs.h <<_ACEOF
12430#define HAVE_DECL_H_ERRNO 1
12431_ACEOF
12432
12433
12434else
12435 cat >>confdefs.h <<_ACEOF
12436#define HAVE_DECL_H_ERRNO 0
12437_ACEOF
12438
12439
12440fi
12441
12442
12443
12444
12445for ac_func in setresuid
12446do
12447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12448echo "$as_me:$LINENO: checking for $ac_func" >&5
12449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12450if eval "test \"\${$as_ac_var+set}\" = set"; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453 cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
12459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12461#define $ac_func innocuous_$ac_func
12462
12463/* System header to define __stub macros and hopefully few prototypes,
12464 which can conflict with char $ac_func (); below.
12465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12466 <limits.h> exists even on freestanding compilers. */
12467
12468#ifdef __STDC__
12469# include <limits.h>
12470#else
12471# include <assert.h>
12472#endif
12473
12474#undef $ac_func
12475
12476/* Override any gcc2 internal prototype to avoid an error. */
12477#ifdef __cplusplus
12478extern "C"
12479{
12480#endif
12481/* We use char because int might match the return type of a gcc2
12482 builtin and then its argument prototype would still apply. */
12483char $ac_func ();
12484/* The GNU C library defines this for functions which it implements
12485 to always fail with ENOSYS. Some functions are actually named
12486 something starting with __ and the normal name is an alias. */
12487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12488choke me
12489#else
12490char (*f) () = $ac_func;
12491#endif
12492#ifdef __cplusplus
12493}
12494#endif
12495
12496int
12497main ()
12498{
12499return f != $ac_func;
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext conftest$ac_exeext
12505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506 (eval $ac_link) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 eval "$as_ac_var=yes"
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531eval "$as_ac_var=no"
12532fi
12533rm -f conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535fi
12536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12538if test `eval echo '${'$as_ac_var'}'` = yes; then
12539 cat >>confdefs.h <<_ACEOF
12540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12541_ACEOF
12542
12543 echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
12544echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
12545 if test "$cross_compiling" = yes; then
12546 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
12547echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
12548
12549else
12550 cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
12556
12557#include <stdlib.h>
12558#include <errno.h>
12559int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
12560
12561_ACEOF
12562rm -f conftest$ac_exeext
12563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 echo "$as_me:$LINENO: result: yes" >&5
12574echo "${ECHO_T}yes" >&6
12575else
12576 echo "$as_me: program exited with status $ac_status" >&5
12577echo "$as_me: failed program was:" >&5
12578sed 's/^/| /' conftest.$ac_ext >&5
12579
12580( exit $ac_status )
12581
12582cat >>confdefs.h <<\_ACEOF
12583#define BROKEN_SETRESUID 1
12584_ACEOF
12585
12586 echo "$as_me:$LINENO: result: not implemented" >&5
12587echo "${ECHO_T}not implemented" >&6
12588fi
12589rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12590fi
12591
12592fi
12593done
12594
12595
12596
12597for ac_func in setresgid
12598do
12599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600echo "$as_me:$LINENO: checking for $ac_func" >&5
12601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12602if eval "test \"\${$as_ac_var+set}\" = set"; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604else
12605 cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12613#define $ac_func innocuous_$ac_func
12614
12615/* System header to define __stub macros and hopefully few prototypes,
12616 which can conflict with char $ac_func (); below.
12617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12618 <limits.h> exists even on freestanding compilers. */
12619
12620#ifdef __STDC__
12621# include <limits.h>
12622#else
12623# include <assert.h>
12624#endif
12625
12626#undef $ac_func
12627
12628/* Override any gcc2 internal prototype to avoid an error. */
12629#ifdef __cplusplus
12630extern "C"
12631{
12632#endif
12633/* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12635char $ac_func ();
12636/* The GNU C library defines this for functions which it implements
12637 to always fail with ENOSYS. Some functions are actually named
12638 something starting with __ and the normal name is an alias. */
12639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640choke me
12641#else
12642char (*f) () = $ac_func;
12643#endif
12644#ifdef __cplusplus
12645}
12646#endif
12647
12648int
12649main ()
12650{
12651return f != $ac_func;
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12658 (eval $ac_link) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 eval "$as_ac_var=yes"
12679else
12680 echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683eval "$as_ac_var=no"
12684fi
12685rm -f conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687fi
12688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12690if test `eval echo '${'$as_ac_var'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12693_ACEOF
12694
12695 echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
12696echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
12697 if test "$cross_compiling" = yes; then
12698 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
12699echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
12700
12701else
12702 cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708
12709#include <stdlib.h>
12710#include <errno.h>
12711int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
12712
12713_ACEOF
12714rm -f conftest$ac_exeext
12715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 echo "$as_me:$LINENO: result: yes" >&5
12726echo "${ECHO_T}yes" >&6
12727else
12728 echo "$as_me: program exited with status $ac_status" >&5
12729echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732( exit $ac_status )
12733
12734cat >>confdefs.h <<\_ACEOF
12735#define BROKEN_SETRESGID 1
12736_ACEOF
12737
12738 echo "$as_me:$LINENO: result: not implemented" >&5
12739echo "${ECHO_T}not implemented" >&6
12740fi
12741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12742fi
12743
12744fi
12745done
12746
12747
12748
12749
12750for ac_func in gettimeofday time
12751do
12752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12753echo "$as_me:$LINENO: checking for $ac_func" >&5
12754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12755if eval "test \"\${$as_ac_var+set}\" = set"; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758 cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12766#define $ac_func innocuous_$ac_func
12767
12768/* System header to define __stub macros and hopefully few prototypes,
12769 which can conflict with char $ac_func (); below.
12770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 <limits.h> exists even on freestanding compilers. */
12772
12773#ifdef __STDC__
12774# include <limits.h>
12775#else
12776# include <assert.h>
12777#endif
12778
12779#undef $ac_func
12780
12781/* Override any gcc2 internal prototype to avoid an error. */
12782#ifdef __cplusplus
12783extern "C"
12784{
12785#endif
12786/* We use char because int might match the return type of a gcc2
12787 builtin and then its argument prototype would still apply. */
12788char $ac_func ();
12789/* The GNU C library defines this for functions which it implements
12790 to always fail with ENOSYS. Some functions are actually named
12791 something starting with __ and the normal name is an alias. */
12792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12793choke me
12794#else
12795char (*f) () = $ac_func;
12796#endif
12797#ifdef __cplusplus
12798}
12799#endif
12800
12801int
12802main ()
12803{
12804return f != $ac_func;
12805 ;
12806 return 0;
12807}
12808_ACEOF
12809rm -f conftest.$ac_objext conftest$ac_exeext
12810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag"
12819 || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 eval "$as_ac_var=yes"
12832else
12833 echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836eval "$as_ac_var=no"
12837fi
12838rm -f conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840fi
12841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12843if test `eval echo '${'$as_ac_var'}'` = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12846_ACEOF
12847
12848fi
12849done
12850
12851
12852
12853
12854
12855
12856
12857for ac_func in endutent getutent getutid getutline pututline setutent
12858do
12859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860echo "$as_me:$LINENO: checking for $ac_func" >&5
12861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862if eval "test \"\${$as_ac_var+set}\" = set"; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864else
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12873#define $ac_func innocuous_$ac_func
12874
12875/* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char $ac_func (); below.
12877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12878 <limits.h> exists even on freestanding compilers. */
12879
12880#ifdef __STDC__
12881# include <limits.h>
12882#else
12883# include <assert.h>
12884#endif
12885
12886#undef $ac_func
12887
12888/* Override any gcc2 internal prototype to avoid an error. */
12889#ifdef __cplusplus
12890extern "C"
12891{
12892#endif
12893/* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895char $ac_func ();
12896/* The GNU C library defines this for functions which it implements
12897 to always fail with ENOSYS. Some functions are actually named
12898 something starting with __ and the normal name is an alias. */
12899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12900choke me
12901#else
12902char (*f) () = $ac_func;
12903#endif
12904#ifdef __cplusplus
12905}
12906#endif
12907
12908int
12909main ()
12910{
12911return f != $ac_func;
12912 ;
12913 return 0;
12914}
12915_ACEOF
12916rm -f conftest.$ac_objext conftest$ac_exeext
12917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest$ac_exeext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 eval "$as_ac_var=yes"
12939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
12943eval "$as_ac_var=no"
12944fi
12945rm -f conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947fi
12948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12950if test `eval echo '${'$as_ac_var'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956done
12957
12958
12959for ac_func in utmpname
12960do
12961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12962echo "$as_me:$LINENO: checking for $ac_func" >&5
12963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12964if eval "test \"\${$as_ac_var+set}\" = set"; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966else
12967 cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12975#define $ac_func innocuous_$ac_func
12976
12977/* System header to define __stub macros and hopefully few prototypes,
12978 which can conflict with char $ac_func (); below.
12979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12980 <limits.h> exists even on freestanding compilers. */
12981
12982#ifdef __STDC__
12983# include <limits.h>
12984#else
12985# include <assert.h>
12986#endif
12987
12988#undef $ac_func
12989
12990/* Override any gcc2 internal prototype to avoid an error. */
12991#ifdef __cplusplus
12992extern "C"
12993{
12994#endif
12995/* We use char because int might match the return type of a gcc2
12996 builtin and then its argument prototype would still apply. */
12997char $ac_func ();
12998/* The GNU C library defines this for functions which it implements
12999 to always fail with ENOSYS. Some functions are actually named
13000 something starting with __ and the normal name is an alias. */
13001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002choke me
13003#else
13004char (*f) () = $ac_func;
13005#endif
13006#ifdef __cplusplus
13007}
13008#endif
13009
13010int
13011main ()
13012{
13013return f != $ac_func;
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018rm -f conftest.$ac_objext conftest$ac_exeext
13019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020 (eval $ac_link) 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag"
13028 || test ! -s conftest.err'
13029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030 (eval $ac_try) 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; } &&
13034 { ac_try='test -s conftest$ac_exeext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 eval "$as_ac_var=yes"
13041else
13042 echo "$as_me: failed program was:" >&5
13043sed 's/^/| /' conftest.$ac_ext >&5
13044
13045eval "$as_ac_var=no"
13046fi
13047rm -f conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049fi
13050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13052if test `eval echo '${'$as_ac_var'}'` = yes; then
13053 cat >>confdefs.h <<_ACEOF
13054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13055_ACEOF
13056
13057fi
13058done
13059
13060
13061
13062
13063
13064
13065for ac_func in endutxent getutxent getutxid getutxline pututxline
13066do
13067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13068echo "$as_me:$LINENO: checking for $ac_func" >&5
13069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13070if eval "test \"\${$as_ac_var+set}\" = set"; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13081#define $ac_func innocuous_$ac_func
13082
13083/* System header to define __stub macros and hopefully few prototypes,
13084 which can conflict with char $ac_func (); below.
13085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13086 <limits.h> exists even on freestanding compilers. */
13087
13088#ifdef __STDC__
13089# include <limits.h>
13090#else
13091# include <assert.h>
13092#endif
13093
13094#undef $ac_func
13095
13096/* Override any gcc2 internal prototype to avoid an error. */
13097#ifdef __cplusplus
13098extern "C"
13099{
13100#endif
13101/* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */
13103char $ac_func ();
13104/* The GNU C library defines this for functions which it implements
13105 to always fail with ENOSYS. Some functions are actually named
13106 something starting with __ and the normal name is an alias. */
13107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13108choke me
13109#else
13110char (*f) () = $ac_func;
13111#endif
13112#ifdef __cplusplus
13113}
13114#endif
13115
13116int
13117main ()
13118{
13119return f != $ac_func;
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124rm -f conftest.$ac_objext conftest$ac_exeext
13125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126 (eval $ac_link) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag"
13134 || test ! -s conftest.err'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest$ac_exeext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 eval "$as_ac_var=yes"
13147else
13148 echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151eval "$as_ac_var=no"
13152fi
13153rm -f conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155fi
13156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13158if test `eval echo '${'$as_ac_var'}'` = yes; then
13159 cat >>confdefs.h <<_ACEOF
13160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161_ACEOF
13162
13163fi
13164done
13165
13166
13167
13168for ac_func in setutxent utmpxname
13169do
13170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13171echo "$as_me:$LINENO: checking for $ac_func" >&5
13172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13173if eval "test \"\${$as_ac_var+set}\" = set"; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175else
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13184#define $ac_func innocuous_$ac_func
13185
13186/* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char $ac_func (); below.
13188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189 <limits.h> exists even on freestanding compilers. */
13190
13191#ifdef __STDC__
13192# include <limits.h>
13193#else
13194# include <assert.h>
13195#endif
13196
13197#undef $ac_func
13198
13199/* Override any gcc2 internal prototype to avoid an error. */
13200#ifdef __cplusplus
13201extern "C"
13202{
13203#endif
13204/* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13206char $ac_func ();
13207/* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13211choke me
13212#else
13213char (*f) () = $ac_func;
13214#endif
13215#ifdef __cplusplus
13216}
13217#endif
13218
13219int
13220main ()
13221{
13222return f != $ac_func;
13223 ;
13224 return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext conftest$ac_exeext
13228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 eval "$as_ac_var=yes"
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254eval "$as_ac_var=no"
13255fi
13256rm -f conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258fi
13259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13261if test `eval echo '${'$as_ac_var'}'` = yes; then
13262 cat >>confdefs.h <<_ACEOF
13263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13264_ACEOF
13265
13266fi
13267done
13268
13269
13270echo "$as_me:$LINENO: checking for daemon" >&5
13271echo $ECHO_N "checking for daemon... $ECHO_C" >&6
13272if test "${ac_cv_func_daemon+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274else
13275 cat >conftest.$ac_ext <<_ACEOF
13276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
13280/* end confdefs.h. */
13281/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
13282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13283#define daemon innocuous_daemon
13284
13285/* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char daemon (); below.
13287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13288 <limits.h> exists even on freestanding compilers. */
13289
13290#ifdef __STDC__
13291# include <limits.h>
13292#else
13293# include <assert.h>
13294#endif
13295
13296#undef daemon
13297
13298/* Override any gcc2 internal prototype to avoid an error. */
13299#ifdef __cplusplus
13300extern "C"
13301{
13302#endif
13303/* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13305char daemon ();
13306/* The GNU C library defines this for functions which it implements
13307 to always fail with ENOSYS. Some functions are actually named
13308 something starting with __ and the normal name is an alias. */
13309#if defined (__stub_daemon) || defined (__stub___daemon)
13310choke me
13311#else
13312char (*f) () = daemon;
13313#endif
13314#ifdef __cplusplus
13315}
13316#endif
13317
13318int
13319main ()
13320{
13321return f != daemon;
13322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext conftest$ac_exeext
13327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_func_daemon=yes
13349else
13350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353ac_cv_func_daemon=no
13354fi
13355rm -f conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13357fi
13358echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
13359echo "${ECHO_T}$ac_cv_func_daemon" >&6
13360if test $ac_cv_func_daemon = yes; then
13361
13362cat >>confdefs.h <<\_ACEOF
13363#define HAVE_DAEMON 1
13364_ACEOF
13365
13366else
13367 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
13368echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
13369if test "${ac_cv_lib_bsd_daemon+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372 ac_check_lib_save_LIBS=$LIBS
13373LIBS="-lbsd $LIBS"
13374cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380
13381/* Override any gcc2 internal prototype to avoid an error. */
13382#ifdef __cplusplus
13383extern "C"
13384#endif
13385/* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13387char daemon ();
13388int
13389main ()
13390{
13391daemon ();
13392 ;
13393 return 0;
13394}
13395_ACEOF
13396rm -f conftest.$ac_objext conftest$ac_exeext
13397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_lib_bsd_daemon=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423ac_cv_lib_bsd_daemon=no
13424fi
13425rm -f conftest.err conftest.$ac_objext \
13426 conftest$ac_exeext conftest.$ac_ext
13427LIBS=$ac_check_lib_save_LIBS
13428fi
13429echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
13430echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
13431if test $ac_cv_lib_bsd_daemon = yes; then
13432 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
13433#define HAVE_DAEMON 1
13434_ACEOF
13435
13436fi
13437
13438
13439fi
13440
13441
13442echo "$as_me:$LINENO: checking for getpagesize" >&5
13443echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
13444if test "${ac_cv_func_getpagesize+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447 cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
13454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13455#define getpagesize innocuous_getpagesize
13456
13457/* System header to define __stub macros and hopefully few prototypes,
13458 which can conflict with char getpagesize (); below.
13459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460 <limits.h> exists even on freestanding compilers. */
13461
13462#ifdef __STDC__
13463# include <limits.h>
13464#else
13465# include <assert.h>
13466#endif
13467
13468#undef getpagesize
13469
13470/* Override any gcc2 internal prototype to avoid an error. */
13471#ifdef __cplusplus
13472extern "C"
13473{
13474#endif
13475/* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13477char getpagesize ();
13478/* The GNU C library defines this for functions which it implements
13479 to always fail with ENOSYS. Some functions are actually named
13480 something starting with __ and the normal name is an alias. */
13481#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
13482choke me
13483#else
13484char (*f) () = getpagesize;
13485#endif
13486#ifdef __cplusplus
13487}
13488#endif
13489
13490int
13491main ()
13492{
13493return f != getpagesize;
13494 ;
13495 return 0;
13496}
13497_ACEOF
13498rm -f conftest.$ac_objext conftest$ac_exeext
13499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13500 (eval $ac_link) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_func_getpagesize=yes
13521else
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525ac_cv_func_getpagesize=no
13526fi
13527rm -f conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529fi
13530echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
13531echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
13532if test $ac_cv_func_getpagesize = yes; then
13533
13534cat >>confdefs.h <<\_ACEOF
13535#define HAVE_GETPAGESIZE 1
13536_ACEOF
13537
13538else
13539 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
13540echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
13541if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543else
13544 ac_check_lib_save_LIBS=$LIBS
13545LIBS="-lucb $LIBS"
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552
13553/* Override any gcc2 internal prototype to avoid an error. */
13554#ifdef __cplusplus
13555extern "C"
13556#endif
13557/* We use char because int might match the return type of a gcc2
13558 builtin and then its argument prototype would still apply. */
13559char getpagesize ();
13560int
13561main ()
13562{
13563getpagesize ();
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext conftest$ac_exeext
13569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570 (eval $ac_link) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest$ac_exeext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_cv_lib_ucb_getpagesize=yes
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
13595ac_cv_lib_ucb_getpagesize=no
13596fi
13597rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599LIBS=$ac_check_lib_save_LIBS
13600fi
13601echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
13602echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
13603if test $ac_cv_lib_ucb_getpagesize = yes; then
13604 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
13605#define HAVE_GETPAGESIZE 1
13606_ACEOF
13607
13608fi
13609
13610
13611fi
13612
13613
13614# Check for broken snprintf
13615if test "x$ac_cv_func_snprintf" = "xyes" ; then
13616 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
13617echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
13618 if test "$cross_compiling" = yes; then
13619 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
13620echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13621
13622else
13623 cat >conftest.$ac_ext <<_ACEOF
13624/* confdefs.h. */
13625_ACEOF
13626cat confdefs.h >>conftest.$ac_ext
13627cat >>conftest.$ac_ext <<_ACEOF
13628/* end confdefs.h. */
13629
13630#include <stdio.h>
13631int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
13632
13633_ACEOF
13634rm -f conftest$ac_exeext
13635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636 (eval $ac_link) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 echo "$as_me:$LINENO: result: yes" >&5
13646echo "${ECHO_T}yes" >&6
13647else
13648 echo "$as_me: program exited with status $ac_status" >&5
13649echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652( exit $ac_status )
13653
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656
13657cat >>confdefs.h <<\_ACEOF
13658#define BROKEN_SNPRINTF 1
13659_ACEOF
13660
13661 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
13662echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
13663
13664fi
13665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13666fi
13667fi
13668
13669# If we don't have a working asprintf, then we strongly depend on vsnprintf
13670# returning the right thing on overflow: the number of characters it tried to
13671# create (as per SUSv3)
13672if test "x$ac_cv_func_asprintf" != "xyes" && \
13673 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
13674 echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
13675echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6
13676 if test "$cross_compiling" = yes; then
13677 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
13678echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
13679
13680else
13681 cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687
13688#include <sys/types.h>
13689#include <stdio.h>
13690#include <stdarg.h>
13691
13692int x_snprintf(char *str,size_t count,const char *fmt,...)
13693{
13694 size_t ret; va_list ap;
13695 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
13696 return ret;
13697}
13698int main(void)
13699{
13700 char x[1];
13701 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
13702}
13703_ACEOF
13704rm -f conftest$ac_exeext
13705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706 (eval $ac_link) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 echo "$as_me:$LINENO: result: yes" >&5
13716echo "${ECHO_T}yes" >&6
13717else
13718 echo "$as_me: program exited with status $ac_status" >&5
13719echo "$as_me: failed program was:" >&5
13720sed 's/^/| /' conftest.$ac_ext >&5
13721
13722( exit $ac_status )
13723
13724 echo "$as_me:$LINENO: result: no" >&5
13725echo "${ECHO_T}no" >&6
13726
13727cat >>confdefs.h <<\_ACEOF
13728#define BROKEN_SNPRINTF 1
13729_ACEOF
13730
13731 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
13732echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
13733
13734fi
13735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13736fi
13737fi
13738
13739# On systems where [v]snprintf is broken, but is declared in stdio,
13740# check that the fmt argument is const char * or just char *.
13741# This is only useful for when BROKEN_SNPRINTF
13742echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
13743echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6
13744cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750#include <stdio.h>
13751 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
13752 int main(void) { snprintf(0, 0, 0); }
13753
13754_ACEOF
13755rm -f conftest.$ac_objext
13756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest.$ac_objext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 echo "$as_me:$LINENO: result: yes" >&5
13778echo "${ECHO_T}yes" >&6
13779
13780cat >>confdefs.h <<\_ACEOF
13781#define SNPRINTF_CONST const
13782_ACEOF
13783
13784else
13785 echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788echo "$as_me:$LINENO: result: no" >&5
13789echo "${ECHO_T}no" >&6
13790 cat >>confdefs.h <<\_ACEOF
13791#define SNPRINTF_CONST /* not const */
13792_ACEOF
13793
13794fi
13795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13796
13797# Check for missing getpeereid (or equiv) support
13798NO_PEERCHECK=""
13799if test "x$ac_cv_func_getpeereid" != "xyes" ; then
13800 echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
13801echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6
13802 cat >conftest.$ac_ext <<_ACEOF
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
13807/* end confdefs.h. */
13808#include <sys/types.h>
13809 #include <sys/socket.h>
13810int
13811main ()
13812{
13813int i = SO_PEERCRED;
13814 ;
13815 return 0;
13816}
13817_ACEOF
13818rm -f conftest.$ac_objext
13819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820 (eval $ac_compile) 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_c_werror_flag"
13828 || test ! -s conftest.err'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 echo "$as_me:$LINENO: result: yes" >&5
13841echo "${ECHO_T}yes" >&6
13842
13843cat >>confdefs.h <<\_ACEOF
13844#define HAVE_SO_PEERCRED 1
13845_ACEOF
13846
13847
13848else
13849 echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852echo "$as_me:$LINENO: result: no" >&5
13853echo "${ECHO_T}no" >&6
13854 NO_PEERCHECK=1
13855
13856fi
13857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858fi
13859
13860if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
13861echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
13862echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
13863if test "$cross_compiling" = yes; then
13864
13865 echo "$as_me:$LINENO: result: yes" >&5
13866echo "${ECHO_T}yes" >&6
13867 cat >>confdefs.h <<\_ACEOF
13868#define HAVE_STRICT_MKSTEMP 1
13869_ACEOF
13870
13871
13872
13873else
13874 cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
13880
13881#include <stdlib.h>
13882main() { char template[]="conftest.mkstemp-test";
13883if (mkstemp(template) == -1)
13884 exit(1);
13885unlink(template); exit(0);
13886}
13887
13888_ACEOF
13889rm -f conftest$ac_exeext
13890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900
13901 echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6
13903
13904else
13905 echo "$as_me: program exited with status $ac_status" >&5
13906echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909( exit $ac_status )
13910
13911 echo "$as_me:$LINENO: result: yes" >&5
13912echo "${ECHO_T}yes" >&6
13913
13914cat >>confdefs.h <<\_ACEOF
13915#define HAVE_STRICT_MKSTEMP 1
13916_ACEOF
13917
13918
13919fi
13920rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13921fi
13922fi
13923
13924if test ! -z "$check_for_openpty_ctty_bug"; then
13925 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
13926echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
13927 if test "$cross_compiling" = yes; then
13928
13929 echo "$as_me:$LINENO: result: cross-compiling" >&5
13930echo "${ECHO_T}cross-compiling" >&6
13931
13932
13933else
13934 cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940
13941#include <stdio.h>
13942#include <sys/fcntl.h>
13943#include <sys/types.h>
13944#include <sys/wait.h>
13945
13946int
13947main()
13948{
13949 pid_t pid;
13950 int fd, ptyfd, ttyfd, status;
13951
13952 pid = fork();
13953 if (pid < 0) { /* failed */
13954 exit(1);
13955 } else if (pid > 0) { /* parent */
13956 waitpid(pid, &status, 0);
13957 if (WIFEXITED(status))
13958 exit(WEXITSTATUS(status));
13959 else
13960 exit(2);
13961 } else { /* child */
13962 close(0); close(1); close(2);
13963 setsid();
13964 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
13965 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
13966 if (fd >= 0)
13967 exit(3); /* Acquired ctty: broken */
13968 else
13969 exit(0); /* Did not acquire ctty: OK */
13970 }
13971}
13972
13973_ACEOF
13974rm -f conftest$ac_exeext
13975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985
13986 echo "$as_me:$LINENO: result: yes" >&5
13987echo "${ECHO_T}yes" >&6
13988
13989else
13990 echo "$as_me: program exited with status $ac_status" >&5
13991echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994( exit $ac_status )
13995
13996 echo "$as_me:$LINENO: result: no" >&5
13997echo "${ECHO_T}no" >&6
13998 cat >>confdefs.h <<\_ACEOF
13999#define SSHD_ACQUIRES_CTTY 1
14000_ACEOF
14001
14002
14003fi
14004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14005fi
14006fi
14007
14008if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
14009 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
14010 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
14011echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
14012 if test "$cross_compiling" = yes; then
14013
14014 echo "$as_me:$LINENO: result: cross-compiling" >&5
14015echo "${ECHO_T}cross-compiling" >&6
14016
14017
14018else
14019 cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h. */
14025
14026#include <stdio.h>
14027#include <sys/socket.h>
14028#include <netdb.h>
14029#include <errno.h>
14030#include <netinet/in.h>
14031
14032#define TEST_PORT "2222"
14033
14034int
14035main(void)
14036{
14037 int err, sock;
14038 struct addrinfo *gai_ai, *ai, hints;
14039 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
14040
14041 memset(&hints, 0, sizeof(hints));
14042 hints.ai_family = PF_UNSPEC;
14043 hints.ai_socktype = SOCK_STREAM;
14044 hints.ai_flags = AI_PASSIVE;
14045
14046 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
14047 if (err != 0) {
14048 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
14049 exit(1);
14050 }
14051
14052 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
14053 if (ai->ai_family != AF_INET6)
14054 continue;
14055
14056 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
14057 sizeof(ntop), strport, sizeof(strport),
14058 NI_NUMERICHOST|NI_NUMERICSERV);
14059
14060 if (err != 0) {
14061 if (err == EAI_SYSTEM)
14062 perror("getnameinfo EAI_SYSTEM");
14063 else
14064 fprintf(stderr, "getnameinfo failed: %s\n",
14065 gai_strerror(err));
14066 exit(2);
14067 }
14068
14069 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
14070 if (sock < 0)
14071 perror("socket");
14072 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
14073 if (errno == EBADF)
14074 exit(3);
14075 }
14076 }
14077 exit(0);
14078}
14079
14080_ACEOF
14081rm -f conftest$ac_exeext
14082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092
14093 echo "$as_me:$LINENO: result: yes" >&5
14094echo "${ECHO_T}yes" >&6
14095
14096else
14097 echo "$as_me: program exited with status $ac_status" >&5
14098echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
14101( exit $ac_status )
14102
14103 echo "$as_me:$LINENO: result: no" >&5
14104echo "${ECHO_T}no" >&6
14105 cat >>confdefs.h <<\_ACEOF
14106#define BROKEN_GETADDRINFO 1
14107_ACEOF
14108
14109
14110fi
14111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14112fi
14113fi
14114
14115if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
14116 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
14117 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
14118echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
14119 if test "$cross_compiling" = yes; then
14120 echo "$as_me:$LINENO: result: cross-compiling" >&5
14121echo "${ECHO_T}cross-compiling" >&6
14122
14123 ]
14124else
14125 cat >conftest.$ac_ext <<_ACEOF
14126/* confdefs.h. */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h. */
14131
14132#include <stdio.h>
14133#include <sys/socket.h>
14134#include <netdb.h>
14135#include <errno.h>
14136#include <netinet/in.h>
14137
14138#define TEST_PORT "2222"
14139
14140int
14141main(void)
14142{
14143 int err, sock;
14144 struct addrinfo *gai_ai, *ai, hints;
14145 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
14146
14147 memset(&hints, 0, sizeof(hints));
14148 hints.ai_family = PF_UNSPEC;
14149 hints.ai_socktype = SOCK_STREAM;
14150 hints.ai_flags = AI_PASSIVE;
14151
14152 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
14153 if (err != 0) {
14154 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
14155 exit(1);
14156 }
14157
14158 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
14159 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
14160 continue;
14161
14162 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
14163 sizeof(ntop), strport, sizeof(strport),
14164 NI_NUMERICHOST|NI_NUMERICSERV);
14165
14166 if (ai->ai_family == AF_INET && err != 0) {
14167 perror("getnameinfo");
14168 exit(2);
14169 }
14170 }
14171 exit(0);
14172}
14173
14174_ACEOF
14175rm -f conftest$ac_exeext
14176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177 (eval $ac_link) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186
14187 echo "$as_me:$LINENO: result: yes" >&5
14188echo "${ECHO_T}yes" >&6
14189
14190cat >>confdefs.h <<\_ACEOF
14191#define AIX_GETNAMEINFO_HACK 1
14192_ACEOF
14193
14194
14195else
14196 echo "$as_me: program exited with status $ac_status" >&5
14197echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200( exit $ac_status )
14201
14202 echo "$as_me:$LINENO: result: no" >&5
14203echo "${ECHO_T}no" >&6
14204 cat >>confdefs.h <<\_ACEOF
14205#define BROKEN_GETADDRINFO 1
14206_ACEOF
14207
14208
14209fi
14210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14211fi
14212fi
14213
14214if test "x$check_for_conflicting_getspnam" = "x1"; then
14215 echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
14216echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6
14217 cat >conftest.$ac_ext <<_ACEOF
14218
14219#include <shadow.h>
14220int main(void) {exit(0);}
14221
14222_ACEOF
14223rm -f conftest.$ac_objext
14224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>conftest.er1
14226 ac_status=$?
14227 grep -v '^ *+' conftest.er1 >conftest.err
14228 rm -f conftest.er1
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -z "$ac_c_werror_flag"
14233 || test ! -s conftest.err'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245
14246 echo "$as_me:$LINENO: result: no" >&5
14247echo "${ECHO_T}no" >&6
14248
14249else
14250 echo "$as_me: failed program was:" >&5
14251sed 's/^/| /' conftest.$ac_ext >&5
14252
14253
14254 echo "$as_me:$LINENO: result: yes" >&5
14255echo "${ECHO_T}yes" >&6
14256
14257cat >>confdefs.h <<\_ACEOF
14258#define GETSPNAM_CONFLICTING_DEFS 1
14259_ACEOF
14260
14261
14262
14263fi
14264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14265fi
14266
14267echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14268echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14269if test "${ac_cv_func_getpgrp_void+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14271else
14272 # Use it with a single arg.
14273cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
14279$ac_includes_default
14280int
14281main ()
14282{
14283getpgrp (0);
14284 ;
14285 return 0;
14286}
14287_ACEOF
14288rm -f conftest.$ac_objext
14289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_func_getpgrp_void=no
14311else
14312 echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
14315ac_cv_func_getpgrp_void=yes
14316fi
14317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14318
14319fi
14320echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14321echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14322if test $ac_cv_func_getpgrp_void = yes; then
14323
14324cat >>confdefs.h <<\_ACEOF
14325#define GETPGRP_VOID 1
14326_ACEOF
14327
14328fi
14329
14330
14331# Check for PAM libs
14332PAM_MSG="no"
14333
14334# Check whether --with-pam or --without-pam was given.
14335if test "${with_pam+set}" = set; then
14336 withval="$with_pam"
14337
14338 if test "x$withval" != "xno" ; then
14339 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
14340 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
14341 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
14342echo "$as_me: error: PAM headers not found" >&2;}
14343 { (exit 1); exit 1; }; }
14344 fi
14345
14346
14347echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351else
14352 ac_check_lib_save_LIBS=$LIBS
14353LIBS="-ldl $LIBS"
14354cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
14360
14361/* Override any gcc2 internal prototype to avoid an error. */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365/* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14367char dlopen ();
14368int
14369main ()
14370{
14371dlopen ();
14372 ;
14373 return 0;
14374}
14375_ACEOF
14376rm -f conftest.$ac_objext conftest$ac_exeext
14377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_dl_dlopen=yes
14399else
14400 echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
14403ac_cv_lib_dl_dlopen=no
14404fi
14405rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14407LIBS=$ac_check_lib_save_LIBS
14408fi
14409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14411if test $ac_cv_lib_dl_dlopen = yes; then
14412 cat >>confdefs.h <<_ACEOF
14413#define HAVE_LIBDL 1
14414_ACEOF
14415
14416 LIBS="-ldl $LIBS"
14417
14418fi
14419
14420
14421echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
14422echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
14423if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_check_lib_save_LIBS=$LIBS
14427LIBS="-lpam $LIBS"
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434
14435/* Override any gcc2 internal prototype to avoid an error. */
14436#ifdef __cplusplus
14437extern "C"
14438#endif
14439/* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14441char pam_set_item ();
14442int
14443main ()
14444{
14445pam_set_item ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14452 (eval $ac_link) 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest$ac_exeext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_lib_pam_pam_set_item=yes
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477ac_cv_lib_pam_pam_set_item=no
14478fi
14479rm -f conftest.err conftest.$ac_objext \
14480 conftest$ac_exeext conftest.$ac_ext
14481LIBS=$ac_check_lib_save_LIBS
14482fi
14483echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
14484echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
14485if test $ac_cv_lib_pam_pam_set_item = yes; then
14486 cat >>confdefs.h <<_ACEOF
14487#define HAVE_LIBPAM 1
14488_ACEOF
14489
14490 LIBS="-lpam $LIBS"
14491
14492else
14493 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
14494echo "$as_me: error: *** libpam missing" >&2;}
14495 { (exit 1); exit 1; }; }
14496fi
14497
14498
14499for ac_func in pam_getenvlist
14500do
14501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14502echo "$as_me:$LINENO: checking for $ac_func" >&5
14503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14504if eval "test \"\${$as_ac_var+set}\" = set"; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506else
14507 cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14515#define $ac_func innocuous_$ac_func
14516
14517/* System header to define __stub macros and hopefully few prototypes,
14518 which can conflict with char $ac_func (); below.
14519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14520 <limits.h> exists even on freestanding compilers. */
14521
14522#ifdef __STDC__
14523# include <limits.h>
14524#else
14525# include <assert.h>
14526#endif
14527
14528#undef $ac_func
14529
14530/* Override any gcc2 internal prototype to avoid an error. */
14531#ifdef __cplusplus
14532extern "C"
14533{
14534#endif
14535/* We use char because int might match the return type of a gcc2
14536 builtin and then its argument prototype would still apply. */
14537char $ac_func ();
14538/* The GNU C library defines this for functions which it implements
14539 to always fail with ENOSYS. Some functions are actually named
14540 something starting with __ and the normal name is an alias. */
14541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14542choke me
14543#else
14544char (*f) () = $ac_func;
14545#endif
14546#ifdef __cplusplus
14547}
14548#endif
14549
14550int
14551main ()
14552{
14553return f != $ac_func;
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext conftest$ac_exeext
14559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 eval "$as_ac_var=yes"
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585eval "$as_ac_var=no"
14586fi
14587rm -f conftest.err conftest.$ac_objext \
14588 conftest$ac_exeext conftest.$ac_ext
14589fi
14590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14592if test `eval echo '${'$as_ac_var'}'` = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14595_ACEOF
14596
14597fi
14598done
14599
14600
14601for ac_func in pam_putenv
14602do
14603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14604echo "$as_me:$LINENO: checking for $ac_func" >&5
14605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14606if eval "test \"\${$as_ac_var+set}\" = set"; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608else
14609 cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14617#define $ac_func innocuous_$ac_func
14618
14619/* System header to define __stub macros and hopefully few prototypes,
14620 which can conflict with char $ac_func (); below.
14621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14622 <limits.h> exists even on freestanding compilers. */
14623
14624#ifdef __STDC__
14625# include <limits.h>
14626#else
14627# include <assert.h>
14628#endif
14629
14630#undef $ac_func
14631
14632/* Override any gcc2 internal prototype to avoid an error. */
14633#ifdef __cplusplus
14634extern "C"
14635{
14636#endif
14637/* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14639char $ac_func ();
14640/* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14644choke me
14645#else
14646char (*f) () = $ac_func;
14647#endif
14648#ifdef __cplusplus
14649}
14650#endif
14651
14652int
14653main ()
14654{
14655return f != $ac_func;
14656 ;
14657 return 0;
14658}
14659_ACEOF
14660rm -f conftest.$ac_objext conftest$ac_exeext
14661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 eval "$as_ac_var=yes"
14683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687eval "$as_ac_var=no"
14688fi
14689rm -f conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14691fi
14692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14694if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14697_ACEOF
14698
14699fi
14700done
14701
14702
14703 PAM_MSG="yes"
14704
14705
14706cat >>confdefs.h <<\_ACEOF
14707#define USE_PAM 1
14708_ACEOF
14709
14710 if test $ac_cv_lib_dl_dlopen = yes; then
14711 LIBPAM="-lpam -ldl"
14712 else
14713 LIBPAM="-lpam"
14714 fi
14715
14716 fi
14717
14718
14719fi;
14720
14721# Check for older PAM
14722if test "x$PAM_MSG" = "xyes" ; then
14723 # Check PAM strerror arguments (old PAM)
14724 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
14725echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14727/* confdefs.h. */
14728_ACEOF
14729cat confdefs.h >>conftest.$ac_ext
14730cat >>conftest.$ac_ext <<_ACEOF
14731/* end confdefs.h. */
14732
14733#include <stdlib.h>
14734#if defined(HAVE_SECURITY_PAM_APPL_H)
14735#include <security/pam_appl.h>
14736#elif defined (HAVE_PAM_PAM_APPL_H)
14737#include <pam/pam_appl.h>
14738#endif
14739
14740int
14741main ()
14742{
14743(void)pam_strerror((pam_handle_t *)NULL, -1);
14744 ;
14745 return 0;
14746}
14747_ACEOF
14748rm -f conftest.$ac_objext
14749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14750 (eval $ac_compile) 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
14757 { ac_try='test -z "$ac_c_werror_flag"
14758 || test ! -s conftest.err'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 echo "$as_me:$LINENO: result: no" >&5
14771echo "${ECHO_T}no" >&6
14772else
14773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
14776
14777
14778cat >>confdefs.h <<\_ACEOF
14779#define HAVE_OLD_PAM 1
14780_ACEOF
14781
14782 echo "$as_me:$LINENO: result: yes" >&5
14783echo "${ECHO_T}yes" >&6
14784 PAM_MSG="yes (old library)"
14785
14786
14787fi
14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789fi
14790
14791# Search for OpenSSL
14792saved_CPPFLAGS="$CPPFLAGS"
14793saved_LDFLAGS="$LDFLAGS"
14794
14795# Check whether --with-ssl-dir or --without-ssl-dir was given.
14796if test "${with_ssl_dir+set}" = set; then
14797 withval="$with_ssl_dir"
14798
14799 if test "x$withval" != "xno" ; then
14800 case "$withval" in
14801 # Relative paths
14802 ./*|../*) withval="`pwd`/$withval"
14803 esac
14804 if test -d "$withval/lib"; then
14805 if test -n "${need_dash_r}"; then
14806 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
14807 else
14808 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
14809 fi
14810 else
14811 if test -n "${need_dash_r}"; then
14812 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
14813 else
14814 LDFLAGS="-L${withval} ${LDFLAGS}"
14815 fi
14816 fi
14817 if test -d "$withval/include"; then
14818 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
14819 else
14820 CPPFLAGS="-I${withval} ${CPPFLAGS}"
14821 fi
14822 fi
14823
14824
14825fi;
14826LIBS="-lcrypto $LIBS"
14827cat >conftest.$ac_ext <<_ACEOF
14828/* confdefs.h. */
14829_ACEOF
14830cat confdefs.h >>conftest.$ac_ext
14831cat >>conftest.$ac_ext <<_ACEOF
14832/* end confdefs.h. */
14833
14834/* Override any gcc2 internal prototype to avoid an error. */
14835#ifdef __cplusplus
14836extern "C"
14837#endif
14838/* We use char because int might match the return type of a gcc2
14839 builtin and then its argument prototype would still apply. */
14840char RAND_add ();
14841int
14842main ()
14843{
14844RAND_add ();
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext conftest$ac_exeext
14850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14851 (eval $ac_link) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag"
14859 || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest$ac_exeext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871
14872cat >>confdefs.h <<\_ACEOF
14873#define HAVE_OPENSSL 1
14874_ACEOF
14875
14876else
14877 echo "$as_me: failed program was:" >&5
14878sed 's/^/| /' conftest.$ac_ext >&5
14879
14880
14881 if test -n "${need_dash_r}"; then
14882 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
14883 else
14884 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
14885 fi
14886 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
14887 cat >conftest.$ac_ext <<_ACEOF
14888/* confdefs.h. */
14889_ACEOF
14890cat confdefs.h >>conftest.$ac_ext
14891cat >>conftest.$ac_ext <<_ACEOF
14892/* end confdefs.h. */
14893
14894/* Override any gcc2 internal prototype to avoid an error. */
14895#ifdef __cplusplus
14896extern "C"
14897#endif
14898/* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14900char RAND_add ();
14901int
14902main ()
14903{
14904RAND_add ();
14905 ;
14906 return 0;
14907}
14908_ACEOF
14909rm -f conftest.$ac_objext conftest$ac_exeext
14910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>conftest.er1
14912 ac_status=$?
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag"
14919 || test ! -s conftest.err'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest$ac_exeext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 cat >>confdefs.h <<\_ACEOF
14932#define HAVE_OPENSSL 1
14933_ACEOF
14934
14935else
14936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939
14940 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
14941echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
14942 { (exit 1); exit 1; }; }
14943
14944
14945fi
14946rm -f conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14948
14949
14950fi
14951rm -f conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953
14954# Determine OpenSSL header version
14955echo "$as_me:$LINENO: checking OpenSSL header version" >&5
14956echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
14957if test "$cross_compiling" = yes; then
14958
14959 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14960echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14961
14962
14963else
14964 cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970
14971#include <stdio.h>
14972#include <string.h>
14973#include <openssl/opensslv.h>
14974#define DATA "conftest.sslincver"
14975int main(void) {
14976 FILE *fd;
14977 int rc;
14978
14979 fd = fopen(DATA,"w");
14980 if(fd == NULL)
14981 exit(1);
14982
14983 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
14984 exit(1);
14985
14986 exit(0);
14987}
14988
14989_ACEOF
14990rm -f conftest$ac_exeext
14991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001
15002 ssl_header_ver=`cat conftest.sslincver`
15003 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
15004echo "${ECHO_T}$ssl_header_ver" >&6
15005
15006else
15007 echo "$as_me: program exited with status $ac_status" >&5
15008echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011( exit $ac_status )
15012
15013 echo "$as_me:$LINENO: result: not found" >&5
15014echo "${ECHO_T}not found" >&6
15015 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
15016echo "$as_me: error: OpenSSL version header not found." >&2;}
15017 { (exit 1); exit 1; }; }
15018
15019fi
15020rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15021fi
15022
15023# Determine OpenSSL library version
15024echo "$as_me:$LINENO: checking OpenSSL library version" >&5
15025echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
15026if test "$cross_compiling" = yes; then
15027
15028 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15029echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15030
15031
15032else
15033 cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039
15040#include <stdio.h>
15041#include <string.h>
15042#include <openssl/opensslv.h>
15043#include <openssl/crypto.h>
15044#define DATA "conftest.ssllibver"
15045int main(void) {
15046 FILE *fd;
15047 int rc;
15048
15049 fd = fopen(DATA,"w");
15050 if(fd == NULL)
15051 exit(1);
15052
15053 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
15054 exit(1);
15055
15056 exit(0);
15057}
15058
15059_ACEOF
15060rm -f conftest$ac_exeext
15061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15062 (eval $ac_link) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071
15072 ssl_library_ver=`cat conftest.ssllibver`
15073 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
15074echo "${ECHO_T}$ssl_library_ver" >&6
15075
15076else
15077 echo "$as_me: program exited with status $ac_status" >&5
15078echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081( exit $ac_status )
15082
15083 echo "$as_me:$LINENO: result: not found" >&5
15084echo "${ECHO_T}not found" >&6
15085 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
15086echo "$as_me: error: OpenSSL library not found." >&2;}
15087 { (exit 1); exit 1; }; }
15088
15089fi
15090rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15091fi
15092
15093# Sanity check OpenSSL headers
15094echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
15095echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
15096if test "$cross_compiling" = yes; then
15097
15098 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
15099echo "$as_me: WARNING: cross compiling: not checking" >&2;}
15100
15101
15102else
15103 cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109
15110#include <string.h>
15111#include <openssl/opensslv.h>
15112int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
15113
15114_ACEOF
15115rm -f conftest$ac_exeext
15116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126
15127 echo "$as_me:$LINENO: result: yes" >&5
15128echo "${ECHO_T}yes" >&6
15129
15130else
15131 echo "$as_me: program exited with status $ac_status" >&5
15132echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135( exit $ac_status )
15136
15137 echo "$as_me:$LINENO: result: no" >&5
15138echo "${ECHO_T}no" >&6
15139 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
15140Check config.log for details.
15141Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
15142echo "$as_me: error: Your OpenSSL headers do not match your library.
15143Check config.log for details.
15144Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
15145 { (exit 1); exit 1; }; }
15146
15147fi
15148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15149fi
15150
15151# Check for OpenSSL without EVP_aes_{192,256}_cbc
15152echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
15153echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160
15161#include <string.h>
15162#include <openssl/evp.h>
15163int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
15164
15165_ACEOF
15166rm -f conftest.$ac_objext
15167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168 (eval $ac_compile) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188
15189 echo "$as_me:$LINENO: result: no" >&5
15190echo "${ECHO_T}no" >&6
15191
15192else
15193 echo "$as_me: failed program was:" >&5
15194sed 's/^/| /' conftest.$ac_ext >&5
15195
15196
15197 echo "$as_me:$LINENO: result: yes" >&5
15198echo "${ECHO_T}yes" >&6
15199
15200cat >>confdefs.h <<\_ACEOF
15201#define OPENSSL_LOBOTOMISED_AES 1
15202_ACEOF
15203
15204
15205
15206fi
15207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15208
15209# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
15210# because the system crypt() is more featureful.
15211if test "x$check_for_libcrypt_before" = "x1"; then
15212
15213echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
15214echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
15215if test "${ac_cv_lib_crypt_crypt+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217else
15218 ac_check_lib_save_LIBS=$LIBS
15219LIBS="-lcrypt $LIBS"
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226
15227/* Override any gcc2 internal prototype to avoid an error. */
15228#ifdef __cplusplus
15229extern "C"
15230#endif
15231/* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15233char crypt ();
15234int
15235main ()
15236{
15237crypt ();
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242rm -f conftest.$ac_objext conftest$ac_exeext
15243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244 (eval $ac_link) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_lib_crypt_crypt=yes
15265else
15266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269ac_cv_lib_crypt_crypt=no
15270fi
15271rm -f conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273LIBS=$ac_check_lib_save_LIBS
15274fi
15275echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
15276echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
15277if test $ac_cv_lib_crypt_crypt = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279#define HAVE_LIBCRYPT 1
15280_ACEOF
15281
15282 LIBS="-lcrypt $LIBS"
15283
15284fi
15285
15286fi
15287
15288# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
15289# version in OpenSSL.
15290if test "x$check_for_libcrypt_later" = "x1"; then
15291 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
15292echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
15293if test "${ac_cv_lib_crypt_crypt+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295else
15296 ac_check_lib_save_LIBS=$LIBS
15297LIBS="-lcrypt $LIBS"
15298cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
15304
15305/* Override any gcc2 internal prototype to avoid an error. */
15306#ifdef __cplusplus
15307extern "C"
15308#endif
15309/* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15311char crypt ();
15312int
15313main ()
15314{
15315crypt ();
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext conftest$ac_exeext
15321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322 (eval $ac_link) 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest$ac_exeext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_lib_crypt_crypt=yes
15343else
15344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347ac_cv_lib_crypt_crypt=no
15348fi
15349rm -f conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351LIBS=$ac_check_lib_save_LIBS
15352fi
15353echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
15354echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
15355if test $ac_cv_lib_crypt_crypt = yes; then
15356 LIBS="$LIBS -lcrypt"
15357fi
15358
15359fi
15360
15361
15362echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
15363echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6
15364if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366else
15367 ac_check_lib_save_LIBS=$LIBS
15368LIBS="-liaf $LIBS"
15369cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375
15376/* Override any gcc2 internal prototype to avoid an error. */
15377#ifdef __cplusplus
15378extern "C"
15379#endif
15380/* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15382char ia_openinfo ();
15383int
15384main ()
15385{
15386ia_openinfo ();
15387 ;
15388 return 0;
15389}
15390_ACEOF
15391rm -f conftest.$ac_objext conftest$ac_exeext
15392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest$ac_exeext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 ac_cv_lib_iaf_ia_openinfo=yes
15414else
15415 echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418ac_cv_lib_iaf_ia_openinfo=no
15419fi
15420rm -f conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
15422LIBS=$ac_check_lib_save_LIBS
15423fi
15424echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
15425echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6
15426if test $ac_cv_lib_iaf_ia_openinfo = yes; then
15427 cat >>confdefs.h <<_ACEOF
15428#define HAVE_LIBIAF 1
15429_ACEOF
15430
15431 LIBS="-liaf $LIBS"
15432
15433fi
15434
15435
15436### Configure cryptographic random number support
15437
15438# Check wheter OpenSSL seeds itself
15439echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
15440echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
15441if test "$cross_compiling" = yes; then
15442
15443 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
15444echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
15445 # This is safe, since all recent OpenSSL versions will
15446 # complain at runtime if not seeded correctly.
15447 OPENSSL_SEEDS_ITSELF=yes
15448
15449
15450else
15451 cat >conftest.$ac_ext <<_ACEOF
15452/* confdefs.h. */
15453_ACEOF
15454cat confdefs.h >>conftest.$ac_ext
15455cat >>conftest.$ac_ext <<_ACEOF
15456/* end confdefs.h. */
15457
15458#include <string.h>
15459#include <openssl/rand.h>
15460int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
15461
15462_ACEOF
15463rm -f conftest$ac_exeext
15464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465 (eval $ac_link) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474
15475 OPENSSL_SEEDS_ITSELF=yes
15476 echo "$as_me:$LINENO: result: yes" >&5
15477echo "${ECHO_T}yes" >&6
15478
15479else
15480 echo "$as_me: program exited with status $ac_status" >&5
15481echo "$as_me: failed program was:" >&5
15482sed 's/^/| /' conftest.$ac_ext >&5
15483
15484( exit $ac_status )
15485
15486 echo "$as_me:$LINENO: result: no" >&5
15487echo "${ECHO_T}no" >&6
15488 # Default to use of the rand helper if OpenSSL doesn't
15489 # seed itself
15490 USE_RAND_HELPER=yes
15491
15492fi
15493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15494fi
15495
15496
15497# Do we want to force the use of the rand helper?
15498
15499# Check whether --with-rand-helper or --without-rand-helper was given.
15500if test "${with_rand_helper+set}" = set; then
15501 withval="$with_rand_helper"
15502
15503 if test "x$withval" = "xno" ; then
15504 # Force use of OpenSSL's internal RNG, even if
15505 # the previous test showed it to be unseeded.
15506 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
15507 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
15508echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
15509 OPENSSL_SEEDS_ITSELF=yes
15510 USE_RAND_HELPER=""
15511 fi
15512 else
15513 USE_RAND_HELPER=yes
15514 fi
15515
15516fi;
15517
15518# Which randomness source do we use?
15519if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
15520 # OpenSSL only
15521
15522cat >>confdefs.h <<\_ACEOF
15523#define OPENSSL_PRNG_ONLY 1
15524_ACEOF
15525
15526 RAND_MSG="OpenSSL internal ONLY"
15527 INSTALL_SSH_RAND_HELPER=""
15528elif test ! -z "$USE_RAND_HELPER" ; then
15529 # install rand helper
15530 RAND_MSG="ssh-rand-helper"
15531 INSTALL_SSH_RAND_HELPER="yes"
15532fi
15533
15534
15535### Configuration of ssh-rand-helper
15536
15537# PRNGD TCP socket
15538
15539# Check whether --with-prngd-port or --without-prngd-port was given.
15540if test "${with_prngd_port+set}" = set; then
15541 withval="$with_prngd_port"
15542
15543 case "$withval" in
15544 no)
15545 withval=""
15546 ;;
15547 [0-9]*)
15548 ;;
15549 *)
15550 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
15551echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
15552 { (exit 1); exit 1; }; }
15553 ;;
15554 esac
15555 if test ! -z "$withval" ; then
15556 PRNGD_PORT="$withval"
15557
15558cat >>confdefs.h <<_ACEOF
15559#define PRNGD_PORT $PRNGD_PORT
15560_ACEOF
15561
15562 fi
15563
15564
15565fi;
15566
15567# PRNGD Unix domain socket
15568
15569# Check whether --with-prngd-socket or --without-prngd-socket was given.
15570if test "${with_prngd_socket+set}" = set; then
15571 withval="$with_prngd_socket"
15572
15573 case "$withval" in
15574 yes)
15575 withval="/var/run/egd-pool"
15576 ;;
15577 no)
15578 withval=""
15579 ;;
15580 /*)
15581 ;;
15582 *)
15583 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
15584echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
15585 { (exit 1); exit 1; }; }
15586 ;;
15587 esac
15588
15589 if test ! -z "$withval" ; then
15590 if test ! -z "$PRNGD_PORT" ; then
15591 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
15592echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
15593 { (exit 1); exit 1; }; }
15594 fi
15595 if test ! -r "$withval" ; then
15596 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
15597echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
15598 fi
15599 PRNGD_SOCKET="$withval"
15600
15601cat >>confdefs.h <<_ACEOF
15602#define PRNGD_SOCKET "$PRNGD_SOCKET"
15603_ACEOF
15604
15605 fi
15606
15607else
15608
15609 # Check for existing socket only if we don't have a random device already
15610 if test "$USE_RAND_HELPER" = yes ; then
15611 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
15612echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
15613 # Insert other locations here
15614 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
15615 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
15616 PRNGD_SOCKET="$sock"
15617 cat >>confdefs.h <<_ACEOF
15618#define PRNGD_SOCKET "$PRNGD_SOCKET"
15619_ACEOF
15620
15621 break;
15622 fi
15623 done
15624 if test ! -z "$PRNGD_SOCKET" ; then
15625 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
15626echo "${ECHO_T}$PRNGD_SOCKET" >&6
15627 else
15628 echo "$as_me:$LINENO: result: not found" >&5
15629echo "${ECHO_T}not found" >&6
15630 fi
15631 fi
15632
15633
15634fi;
15635
15636# Change default command timeout for hashing entropy source
15637entropy_timeout=200
15638
15639# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
15640if test "${with_entropy_timeout+set}" = set; then
15641 withval="$with_entropy_timeout"
15642
15643 if test -n "$withval" && test "x$withval" != "xno" && \
15644 test "x${withval}" != "xyes"; then
15645 entropy_timeout=$withval
15646 fi
15647
15648
15649fi;
15650
15651cat >>confdefs.h <<_ACEOF
15652#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
15653_ACEOF
15654
15655
15656SSH_PRIVSEP_USER=sshd
15657
15658# Check whether --with-privsep-user or --without-privsep-user was given.
15659if test "${with_privsep_user+set}" = set; then
15660 withval="$with_privsep_user"
15661
15662 if test -n "$withval" && test "x$withval" != "xno" && \
15663 test "x${withval}" != "xyes"; then
15664 SSH_PRIVSEP_USER=$withval
15665 fi
15666
15667
15668fi;
15669
15670cat >>confdefs.h <<_ACEOF
15671#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
15672_ACEOF
15673
15674
15675
15676# We do this little dance with the search path to insure
15677# that programs that we select for use by installed programs
15678# (which may be run by the super-user) come from trusted
15679# locations before they come from the user's private area.
15680# This should help avoid accidentally configuring some
15681# random version of a program in someone's personal bin.
15682
15683OPATH=$PATH
15684PATH=/bin:/usr/bin
15685test -h /bin 2> /dev/null && PATH=/usr/bin
15686test -d /sbin && PATH=$PATH:/sbin
15687test -d /usr/sbin && PATH=$PATH:/usr/sbin
15688PATH=$PATH:/etc:$OPATH
15689
15690# These programs are used by the command hashing source to gather entropy
15691
15692 # Extract the first word of "ls", so it can be a program name with args.
15693set dummy ls; ac_word=$2
15694echo "$as_me:$LINENO: checking for $ac_word" >&5
15695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15696if test "${ac_cv_path_PROG_LS+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698else
15699 case $PROG_LS in
15700 [\\/]* | ?:[\\/]*)
15701 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
15702 ;;
15703 *)
15704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705for as_dir in $PATH
15706do
15707 IFS=$as_save_IFS
15708 test -z "$as_dir" && as_dir=.
15709 for ac_exec_ext in '' $ac_executable_extensions; do
15710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15711 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
15712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15713 break 2
15714 fi
15715done
15716done
15717
15718 ;;
15719esac
15720fi
15721PROG_LS=$ac_cv_path_PROG_LS
15722
15723if test -n "$PROG_LS"; then
15724 echo "$as_me:$LINENO: result: $PROG_LS" >&5
15725echo "${ECHO_T}$PROG_LS" >&6
15726else
15727 echo "$as_me:$LINENO: result: no" >&5
15728echo "${ECHO_T}no" >&6
15729fi
15730
15731 if test -z "$PROG_LS" ; then
15732 PROG_LS="undef"
15733 fi
15734
15735
15736
15737 # Extract the first word of "netstat", so it can be a program name with args.
15738set dummy netstat; ac_word=$2
15739echo "$as_me:$LINENO: checking for $ac_word" >&5
15740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15741if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
15744 case $PROG_NETSTAT in
15745 [\\/]* | ?:[\\/]*)
15746 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
15747 ;;
15748 *)
15749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15750for as_dir in $PATH
15751do
15752 IFS=$as_save_IFS
15753 test -z "$as_dir" && as_dir=.
15754 for ac_exec_ext in '' $ac_executable_extensions; do
15755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15756 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
15757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15758 break 2
15759 fi
15760done
15761done
15762
15763 ;;
15764esac
15765fi
15766PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
15767
15768if test -n "$PROG_NETSTAT"; then
15769 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
15770echo "${ECHO_T}$PROG_NETSTAT" >&6
15771else
15772 echo "$as_me:$LINENO: result: no" >&5
15773echo "${ECHO_T}no" >&6
15774fi
15775
15776 if test -z "$PROG_NETSTAT" ; then
15777 PROG_NETSTAT="undef"
15778 fi
15779
15780
15781
15782 # Extract the first word of "arp", so it can be a program name with args.
15783set dummy arp; ac_word=$2
15784echo "$as_me:$LINENO: checking for $ac_word" >&5
15785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15786if test "${ac_cv_path_PROG_ARP+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788else
15789 case $PROG_ARP in
15790 [\\/]* | ?:[\\/]*)
15791 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
15792 ;;
15793 *)
15794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795for as_dir in $PATH
15796do
15797 IFS=$as_save_IFS
15798 test -z "$as_dir" && as_dir=.
15799 for ac_exec_ext in '' $ac_executable_extensions; do
15800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15801 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
15802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15803 break 2
15804 fi
15805done
15806done
15807
15808 ;;
15809esac
15810fi
15811PROG_ARP=$ac_cv_path_PROG_ARP
15812
15813if test -n "$PROG_ARP"; then
15814 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
15815echo "${ECHO_T}$PROG_ARP" >&6
15816else
15817 echo "$as_me:$LINENO: result: no" >&5
15818echo "${ECHO_T}no" >&6
15819fi
15820
15821 if test -z "$PROG_ARP" ; then
15822 PROG_ARP="undef"
15823 fi
15824
15825
15826
15827 # Extract the first word of "ifconfig", so it can be a program name with args.
15828set dummy ifconfig; ac_word=$2
15829echo "$as_me:$LINENO: checking for $ac_word" >&5
15830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15831if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833else
15834 case $PROG_IFCONFIG in
15835 [\\/]* | ?:[\\/]*)
15836 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
15837 ;;
15838 *)
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840for as_dir in $PATH
15841do
15842 IFS=$as_save_IFS
15843 test -z "$as_dir" && as_dir=.
15844 for ac_exec_ext in '' $ac_executable_extensions; do
15845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15846 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
15847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15848 break 2
15849 fi
15850done
15851done
15852
15853 ;;
15854esac
15855fi
15856PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
15857
15858if test -n "$PROG_IFCONFIG"; then
15859 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
15860echo "${ECHO_T}$PROG_IFCONFIG" >&6
15861else
15862 echo "$as_me:$LINENO: result: no" >&5
15863echo "${ECHO_T}no" >&6
15864fi
15865
15866 if test -z "$PROG_IFCONFIG" ; then
15867 PROG_IFCONFIG="undef"
15868 fi
15869
15870
15871
15872 # Extract the first word of "jstat", so it can be a program name with args.
15873set dummy jstat; ac_word=$2
15874echo "$as_me:$LINENO: checking for $ac_word" >&5
15875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15876if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
15879 case $PROG_JSTAT in
15880 [\\/]* | ?:[\\/]*)
15881 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
15882 ;;
15883 *)
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885for as_dir in $PATH
15886do
15887 IFS=$as_save_IFS
15888 test -z "$as_dir" && as_dir=.
15889 for ac_exec_ext in '' $ac_executable_extensions; do
15890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
15892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 break 2
15894 fi
15895done
15896done
15897
15898 ;;
15899esac
15900fi
15901PROG_JSTAT=$ac_cv_path_PROG_JSTAT
15902
15903if test -n "$PROG_JSTAT"; then
15904 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
15905echo "${ECHO_T}$PROG_JSTAT" >&6
15906else
15907 echo "$as_me:$LINENO: result: no" >&5
15908echo "${ECHO_T}no" >&6
15909fi
15910
15911 if test -z "$PROG_JSTAT" ; then
15912 PROG_JSTAT="undef"
15913 fi
15914
15915
15916
15917 # Extract the first word of "ps", so it can be a program name with args.
15918set dummy ps; ac_word=$2
15919echo "$as_me:$LINENO: checking for $ac_word" >&5
15920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15921if test "${ac_cv_path_PROG_PS+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923else
15924 case $PROG_PS in
15925 [\\/]* | ?:[\\/]*)
15926 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
15927 ;;
15928 *)
15929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15930for as_dir in $PATH
15931do
15932 IFS=$as_save_IFS
15933 test -z "$as_dir" && as_dir=.
15934 for ac_exec_ext in '' $ac_executable_extensions; do
15935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15936 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
15937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15938 break 2
15939 fi
15940done
15941done
15942
15943 ;;
15944esac
15945fi
15946PROG_PS=$ac_cv_path_PROG_PS
15947
15948if test -n "$PROG_PS"; then
15949 echo "$as_me:$LINENO: result: $PROG_PS" >&5
15950echo "${ECHO_T}$PROG_PS" >&6
15951else
15952 echo "$as_me:$LINENO: result: no" >&5
15953echo "${ECHO_T}no" >&6
15954fi
15955
15956 if test -z "$PROG_PS" ; then
15957 PROG_PS="undef"
15958 fi
15959
15960
15961
15962 # Extract the first word of "sar", so it can be a program name with args.
15963set dummy sar; ac_word=$2
15964echo "$as_me:$LINENO: checking for $ac_word" >&5
15965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15966if test "${ac_cv_path_PROG_SAR+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968else
15969 case $PROG_SAR in
15970 [\\/]* | ?:[\\/]*)
15971 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
15972 ;;
15973 *)
15974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15975for as_dir in $PATH
15976do
15977 IFS=$as_save_IFS
15978 test -z "$as_dir" && as_dir=.
15979 for ac_exec_ext in '' $ac_executable_extensions; do
15980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15981 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
15982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15983 break 2
15984 fi
15985done
15986done
15987
15988 ;;
15989esac
15990fi
15991PROG_SAR=$ac_cv_path_PROG_SAR
15992
15993if test -n "$PROG_SAR"; then
15994 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
15995echo "${ECHO_T}$PROG_SAR" >&6
15996else
15997 echo "$as_me:$LINENO: result: no" >&5
15998echo "${ECHO_T}no" >&6
15999fi
16000
16001 if test -z "$PROG_SAR" ; then
16002 PROG_SAR="undef"
16003 fi
16004
16005
16006
16007 # Extract the first word of "w", so it can be a program name with args.
16008set dummy w; ac_word=$2
16009echo "$as_me:$LINENO: checking for $ac_word" >&5
16010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16011if test "${ac_cv_path_PROG_W+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013else
16014 case $PROG_W in
16015 [\\/]* | ?:[\\/]*)
16016 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
16017 ;;
16018 *)
16019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16020for as_dir in $PATH
16021do
16022 IFS=$as_save_IFS
16023 test -z "$as_dir" && as_dir=.
16024 for ac_exec_ext in '' $ac_executable_extensions; do
16025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16026 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
16027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16028 break 2
16029 fi
16030done
16031done
16032
16033 ;;
16034esac
16035fi
16036PROG_W=$ac_cv_path_PROG_W
16037
16038if test -n "$PROG_W"; then
16039 echo "$as_me:$LINENO: result: $PROG_W" >&5
16040echo "${ECHO_T}$PROG_W" >&6
16041else
16042 echo "$as_me:$LINENO: result: no" >&5
16043echo "${ECHO_T}no" >&6
16044fi
16045
16046 if test -z "$PROG_W" ; then
16047 PROG_W="undef"
16048 fi
16049
16050
16051
16052 # Extract the first word of "who", so it can be a program name with args.
16053set dummy who; ac_word=$2
16054echo "$as_me:$LINENO: checking for $ac_word" >&5
16055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16056if test "${ac_cv_path_PROG_WHO+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059 case $PROG_WHO in
16060 [\\/]* | ?:[\\/]*)
16061 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
16062 ;;
16063 *)
16064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065for as_dir in $PATH
16066do
16067 IFS=$as_save_IFS
16068 test -z "$as_dir" && as_dir=.
16069 for ac_exec_ext in '' $ac_executable_extensions; do
16070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16071 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
16072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16073 break 2
16074 fi
16075done
16076done
16077
16078 ;;
16079esac
16080fi
16081PROG_WHO=$ac_cv_path_PROG_WHO
16082
16083if test -n "$PROG_WHO"; then
16084 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
16085echo "${ECHO_T}$PROG_WHO" >&6
16086else
16087 echo "$as_me:$LINENO: result: no" >&5
16088echo "${ECHO_T}no" >&6
16089fi
16090
16091 if test -z "$PROG_WHO" ; then
16092 PROG_WHO="undef"
16093 fi
16094
16095
16096
16097 # Extract the first word of "last", so it can be a program name with args.
16098set dummy last; ac_word=$2
16099echo "$as_me:$LINENO: checking for $ac_word" >&5
16100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16101if test "${ac_cv_path_PROG_LAST+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104 case $PROG_LAST in
16105 [\\/]* | ?:[\\/]*)
16106 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
16107 ;;
16108 *)
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110for as_dir in $PATH
16111do
16112 IFS=$as_save_IFS
16113 test -z "$as_dir" && as_dir=.
16114 for ac_exec_ext in '' $ac_executable_extensions; do
16115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16116 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
16117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16118 break 2
16119 fi
16120done
16121done
16122
16123 ;;
16124esac
16125fi
16126PROG_LAST=$ac_cv_path_PROG_LAST
16127
16128if test -n "$PROG_LAST"; then
16129 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
16130echo "${ECHO_T}$PROG_LAST" >&6
16131else
16132 echo "$as_me:$LINENO: result: no" >&5
16133echo "${ECHO_T}no" >&6
16134fi
16135
16136 if test -z "$PROG_LAST" ; then
16137 PROG_LAST="undef"
16138 fi
16139
16140
16141
16142 # Extract the first word of "lastlog", so it can be a program name with args.
16143set dummy lastlog; ac_word=$2
16144echo "$as_me:$LINENO: checking for $ac_word" >&5
16145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16146if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148else
16149 case $PROG_LASTLOG in
16150 [\\/]* | ?:[\\/]*)
16151 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
16152 ;;
16153 *)
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155for as_dir in $PATH
16156do
16157 IFS=$as_save_IFS
16158 test -z "$as_dir" && as_dir=.
16159 for ac_exec_ext in '' $ac_executable_extensions; do
16160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16161 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
16162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16163 break 2
16164 fi
16165done
16166done
16167
16168 ;;
16169esac
16170fi
16171PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
16172
16173if test -n "$PROG_LASTLOG"; then
16174 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
16175echo "${ECHO_T}$PROG_LASTLOG" >&6
16176else
16177 echo "$as_me:$LINENO: result: no" >&5
16178echo "${ECHO_T}no" >&6
16179fi
16180
16181 if test -z "$PROG_LASTLOG" ; then
16182 PROG_LASTLOG="undef"
16183 fi
16184
16185
16186
16187 # Extract the first word of "df", so it can be a program name with args.
16188set dummy df; ac_word=$2
16189echo "$as_me:$LINENO: checking for $ac_word" >&5
16190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16191if test "${ac_cv_path_PROG_DF+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194 case $PROG_DF in
16195 [\\/]* | ?:[\\/]*)
16196 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
16197 ;;
16198 *)
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200for as_dir in $PATH
16201do
16202 IFS=$as_save_IFS
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
16207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 break 2
16209 fi
16210done
16211done
16212
16213 ;;
16214esac
16215fi
16216PROG_DF=$ac_cv_path_PROG_DF
16217
16218if test -n "$PROG_DF"; then
16219 echo "$as_me:$LINENO: result: $PROG_DF" >&5
16220echo "${ECHO_T}$PROG_DF" >&6
16221else
16222 echo "$as_me:$LINENO: result: no" >&5
16223echo "${ECHO_T}no" >&6
16224fi
16225
16226 if test -z "$PROG_DF" ; then
16227 PROG_DF="undef"
16228 fi
16229
16230
16231
16232 # Extract the first word of "vmstat", so it can be a program name with args.
16233set dummy vmstat; ac_word=$2
16234echo "$as_me:$LINENO: checking for $ac_word" >&5
16235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16236if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238else
16239 case $PROG_VMSTAT in
16240 [\\/]* | ?:[\\/]*)
16241 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
16242 ;;
16243 *)
16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245for as_dir in $PATH
16246do
16247 IFS=$as_save_IFS
16248 test -z "$as_dir" && as_dir=.
16249 for ac_exec_ext in '' $ac_executable_extensions; do
16250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16251 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
16252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16253 break 2
16254 fi
16255done
16256done
16257
16258 ;;
16259esac
16260fi
16261PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
16262
16263if test -n "$PROG_VMSTAT"; then
16264 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
16265echo "${ECHO_T}$PROG_VMSTAT" >&6
16266else
16267 echo "$as_me:$LINENO: result: no" >&5
16268echo "${ECHO_T}no" >&6
16269fi
16270
16271 if test -z "$PROG_VMSTAT" ; then
16272 PROG_VMSTAT="undef"
16273 fi
16274
16275
16276
16277 # Extract the first word of "uptime", so it can be a program name with args.
16278set dummy uptime; ac_word=$2
16279echo "$as_me:$LINENO: checking for $ac_word" >&5
16280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16281if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284 case $PROG_UPTIME in
16285 [\\/]* | ?:[\\/]*)
16286 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
16287 ;;
16288 *)
16289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16290for as_dir in $PATH
16291do
16292 IFS=$as_save_IFS
16293 test -z "$as_dir" && as_dir=.
16294 for ac_exec_ext in '' $ac_executable_extensions; do
16295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16296 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
16297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16298 break 2
16299 fi
16300done
16301done
16302
16303 ;;
16304esac
16305fi
16306PROG_UPTIME=$ac_cv_path_PROG_UPTIME
16307
16308if test -n "$PROG_UPTIME"; then
16309 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
16310echo "${ECHO_T}$PROG_UPTIME" >&6
16311else
16312 echo "$as_me:$LINENO: result: no" >&5
16313echo "${ECHO_T}no" >&6
16314fi
16315
16316 if test -z "$PROG_UPTIME" ; then
16317 PROG_UPTIME="undef"
16318 fi
16319
16320
16321
16322 # Extract the first word of "ipcs", so it can be a program name with args.
16323set dummy ipcs; ac_word=$2
16324echo "$as_me:$LINENO: checking for $ac_word" >&5
16325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16326if test "${ac_cv_path_PROG_IPCS+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328else
16329 case $PROG_IPCS in
16330 [\\/]* | ?:[\\/]*)
16331 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
16332 ;;
16333 *)
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335for as_dir in $PATH
16336do
16337 IFS=$as_save_IFS
16338 test -z "$as_dir" && as_dir=.
16339 for ac_exec_ext in '' $ac_executable_extensions; do
16340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16341 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
16342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16343 break 2
16344 fi
16345done
16346done
16347
16348 ;;
16349esac
16350fi
16351PROG_IPCS=$ac_cv_path_PROG_IPCS
16352
16353if test -n "$PROG_IPCS"; then
16354 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
16355echo "${ECHO_T}$PROG_IPCS" >&6
16356else
16357 echo "$as_me:$LINENO: result: no" >&5
16358echo "${ECHO_T}no" >&6
16359fi
16360
16361 if test -z "$PROG_IPCS" ; then
16362 PROG_IPCS="undef"
16363 fi
16364
16365
16366
16367 # Extract the first word of "tail", so it can be a program name with args.
16368set dummy tail; ac_word=$2
16369echo "$as_me:$LINENO: checking for $ac_word" >&5
16370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16371if test "${ac_cv_path_PROG_TAIL+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373else
16374 case $PROG_TAIL in
16375 [\\/]* | ?:[\\/]*)
16376 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
16377 ;;
16378 *)
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380for as_dir in $PATH
16381do
16382 IFS=$as_save_IFS
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
16387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16388 break 2
16389 fi
16390done
16391done
16392
16393 ;;
16394esac
16395fi
16396PROG_TAIL=$ac_cv_path_PROG_TAIL
16397
16398if test -n "$PROG_TAIL"; then
16399 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
16400echo "${ECHO_T}$PROG_TAIL" >&6
16401else
16402 echo "$as_me:$LINENO: result: no" >&5
16403echo "${ECHO_T}no" >&6
16404fi
16405
16406 if test -z "$PROG_TAIL" ; then
16407 PROG_TAIL="undef"
16408 fi
16409
16410
16411# restore PATH
16412PATH=$OPATH
16413
16414# Where does ssh-rand-helper get its randomness from?
16415INSTALL_SSH_PRNG_CMDS=""
16416if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
16417 if test ! -z "$PRNGD_PORT" ; then
16418 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
16419 elif test ! -z "$PRNGD_SOCKET" ; then
16420 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
16421 else
16422 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
16423 RAND_HELPER_CMDHASH=yes
16424 INSTALL_SSH_PRNG_CMDS="yes"
16425 fi
16426fi
16427
16428
16429
16430# Cheap hack to ensure NEWS-OS libraries are arranged right.
16431if test ! -z "$SONY" ; then
16432 LIBS="$LIBS -liberty";
16433fi
16434
16435# Check for long long datatypes
16436echo "$as_me:$LINENO: checking for long long" >&5
16437echo $ECHO_N "checking for long long... $ECHO_C" >&6
16438if test "${ac_cv_type_long_long+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441 cat >conftest.$ac_ext <<_ACEOF
16442/* confdefs.h. */
16443_ACEOF
16444cat confdefs.h >>conftest.$ac_ext
16445cat >>conftest.$ac_ext <<_ACEOF
16446/* end confdefs.h. */
16447$ac_includes_default
16448int
16449main ()
16450{
16451if ((long long *) 0)
16452 return 0;
16453if (sizeof (long long))
16454 return 0;
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest.$ac_objext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_type_long_long=yes
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486ac_cv_type_long_long=no
16487fi
16488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16489fi
16490echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16491echo "${ECHO_T}$ac_cv_type_long_long" >&6
16492if test $ac_cv_type_long_long = yes; then
16493
16494cat >>confdefs.h <<_ACEOF
16495#define HAVE_LONG_LONG 1
16496_ACEOF
16497
16498
16499fi
16500echo "$as_me:$LINENO: checking for unsigned long long" >&5
16501echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16502if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504else
16505 cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512int
16513main ()
16514{
16515if ((unsigned long long *) 0)
16516 return 0;
16517if (sizeof (unsigned long long))
16518 return 0;
16519 ;
16520 return 0;
16521}
16522_ACEOF
16523rm -f conftest.$ac_objext
16524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } &&
16532 { ac_try='test -z "$ac_c_werror_flag"
16533 || test ! -s conftest.err'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_type_unsigned_long_long=yes
16546else
16547 echo "$as_me: failed program was:" >&5
16548sed 's/^/| /' conftest.$ac_ext >&5
16549
16550ac_cv_type_unsigned_long_long=no
16551fi
16552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16553fi
16554echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16555echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16556if test $ac_cv_type_unsigned_long_long = yes; then
16557
16558cat >>confdefs.h <<_ACEOF
16559#define HAVE_UNSIGNED_LONG_LONG 1
16560_ACEOF
16561
16562
16563fi
16564echo "$as_me:$LINENO: checking for long double" >&5
16565echo $ECHO_N "checking for long double... $ECHO_C" >&6
16566if test "${ac_cv_type_long_double+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568else
16569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579if ((long double *) 0)
16580 return 0;
16581if (sizeof (long double))
16582 return 0;
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16589 (eval $ac_compile) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest.$ac_objext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_type_long_double=yes
16610else
16611 echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
16614ac_cv_type_long_double=no
16615fi
16616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16617fi
16618echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
16619echo "${ECHO_T}$ac_cv_type_long_double" >&6
16620if test $ac_cv_type_long_double = yes; then
16621
16622cat >>confdefs.h <<_ACEOF
16623#define HAVE_LONG_DOUBLE 1
16624_ACEOF
16625
16626
16627fi
16628
16629
16630# Check datatype sizes
16631echo "$as_me:$LINENO: checking for char" >&5
16632echo $ECHO_N "checking for char... $ECHO_C" >&6
16633if test "${ac_cv_type_char+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 cat >conftest.$ac_ext <<_ACEOF
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643int
16644main ()
16645{
16646if ((char *) 0)
16647 return 0;
16648if (sizeof (char))
16649 return 0;
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_char=yes
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681ac_cv_type_char=no
16682fi
16683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16686echo "${ECHO_T}$ac_cv_type_char" >&6
16687
16688echo "$as_me:$LINENO: checking size of char" >&5
16689echo $ECHO_N "checking size of char... $ECHO_C" >&6
16690if test "${ac_cv_sizeof_char+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 if test "$ac_cv_type_char" = yes; then
16694 # The cast to unsigned long works around a bug in the HP C Compiler
16695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16697 # This bug is HP SR number 8606223364.
16698 if test "$cross_compiling" = yes; then
16699 # Depending upon the size, compute the lo and hi bounds.
16700cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16711test_array [0] = 0
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_lo=0 ac_mid=0
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747$ac_includes_default
16748int
16749main ()
16750{
16751static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16752test_array [0] = 0
16753
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_hi=$ac_mid; break
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_lo=`expr $ac_mid + 1`
16786 if test $ac_lo -le $ac_mid; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid + 1`
16791fi
16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 done
16794else
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16809test_array [0] = 0
16810
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_hi=-1 ac_mid=-1
16838 while :; do
16839 cat >conftest.$ac_ext <<_ACEOF
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16850test_array [0] = 0
16851
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_lo=$ac_mid; break
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883ac_hi=`expr '(' $ac_mid ')' - 1`
16884 if test $ac_mid -le $ac_hi; then
16885 ac_lo= ac_hi=
16886 break
16887 fi
16888 ac_mid=`expr 2 '*' $ac_mid`
16889fi
16890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 done
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896ac_lo= ac_hi=
16897fi
16898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16899fi
16900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901# Binary search between lo and hi bounds.
16902while test "x$ac_lo" != "x$ac_hi"; do
16903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16904 cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910$ac_includes_default
16911int
16912main ()
16913{
16914static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16915test_array [0] = 0
16916
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_hi=$ac_mid
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_lo=`expr '(' $ac_mid ')' + 1`
16949fi
16950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951done
16952case $ac_lo in
16953?*) ac_cv_sizeof_char=$ac_lo;;
16954'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16955See \`config.log' for more details." >&5
16956echo "$as_me: error: cannot compute sizeof (char), 77
16957See \`config.log' for more details." >&2;}
16958 { (exit 1); exit 1; }; } ;;
16959esac
16960else
16961 if test "$cross_compiling" = yes; then
16962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16963See \`config.log' for more details." >&5
16964echo "$as_me: error: cannot run test program while cross compiling
16965See \`config.log' for more details." >&2;}
16966 { (exit 1); exit 1; }; }
16967else
16968 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974$ac_includes_default
16975long longval () { return (long) (sizeof (char)); }
16976unsigned long ulongval () { return (long) (sizeof (char)); }
16977#include <stdio.h>
16978#include <stdlib.h>
16979int
16980main ()
16981{
16982
16983 FILE *f = fopen ("conftest.val", "w");
16984 if (! f)
16985 exit (1);
16986 if (((long) (sizeof (char))) < 0)
16987 {
16988 long i = longval ();
16989 if (i != ((long) (sizeof (char))))
16990 exit (1);
16991 fprintf (f, "%ld\n", i);
16992 }
16993 else
16994 {
16995 unsigned long i = ulongval ();
16996 if (i != ((long) (sizeof (char))))
16997 exit (1);
16998 fprintf (f, "%lu\n", i);
16999 }
17000 exit (ferror (f) || fclose (f) != 0);
17001
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest$ac_exeext
17007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_sizeof_char=`cat conftest.val`
17018else
17019 echo "$as_me: program exited with status $ac_status" >&5
17020echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023( exit $ac_status )
17024{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17025See \`config.log' for more details." >&5
17026echo "$as_me: error: cannot compute sizeof (char), 77
17027See \`config.log' for more details." >&2;}
17028 { (exit 1); exit 1; }; }
17029fi
17030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17031fi
17032fi
17033rm -f conftest.val
17034else
17035 ac_cv_sizeof_char=0
17036fi
17037fi
17038echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17039echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17040cat >>confdefs.h <<_ACEOF
17041#define SIZEOF_CHAR $ac_cv_sizeof_char
17042_ACEOF
17043
17044
17045echo "$as_me:$LINENO: checking for short int" >&5
17046echo $ECHO_N "checking for short int... $ECHO_C" >&6
17047if test "${ac_cv_type_short_int+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17049else
17050 cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
17056$ac_includes_default
17057int
17058main ()
17059{
17060if ((short int *) 0)
17061 return 0;
17062if (sizeof (short int))
17063 return 0;
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17070 (eval $ac_compile) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest.$ac_objext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_type_short_int=yes
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095ac_cv_type_short_int=no
17096fi
17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098fi
17099echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
17100echo "${ECHO_T}$ac_cv_type_short_int" >&6
17101
17102echo "$as_me:$LINENO: checking size of short int" >&5
17103echo $ECHO_N "checking size of short int... $ECHO_C" >&6
17104if test "${ac_cv_sizeof_short_int+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 if test "$ac_cv_type_short_int" = yes; then
17108 # The cast to unsigned long works around a bug in the HP C Compiler
17109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17111 # This bug is HP SR number 8606223364.
17112 if test "$cross_compiling" = yes; then
17113 # Depending upon the size, compute the lo and hi bounds.
17114cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
17120$ac_includes_default
17121int
17122main ()
17123{
17124static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
17125test_array [0] = 0
17126
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_lo=0 ac_mid=0
17154 while :; do
17155 cat >conftest.$ac_ext <<_ACEOF
17156/* confdefs.h. */
17157_ACEOF
17158cat confdefs.h >>conftest.$ac_ext
17159cat >>conftest.$ac_ext <<_ACEOF
17160/* end confdefs.h. */
17161$ac_includes_default
17162int
17163main ()
17164{
17165static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17166test_array [0] = 0
17167
17168 ;
17169 return 0;
17170}
17171_ACEOF
17172rm -f conftest.$ac_objext
17173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17174 (eval $ac_compile) 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
17181 { ac_try='test -z "$ac_c_werror_flag"
17182 || test ! -s conftest.err'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest.$ac_objext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_hi=$ac_mid; break
17195else
17196 echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199ac_lo=`expr $ac_mid + 1`
17200 if test $ac_lo -le $ac_mid; then
17201 ac_lo= ac_hi=
17202 break
17203 fi
17204 ac_mid=`expr 2 '*' $ac_mid + 1`
17205fi
17206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17207 done
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h. */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h. */
17218$ac_includes_default
17219int
17220main ()
17221{
17222static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17223test_array [0] = 0
17224
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext
17230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag"
17239 || test ! -s conftest.err'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest.$ac_objext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_hi=-1 ac_mid=-1
17252 while :; do
17253 cat >conftest.$ac_ext <<_ACEOF
17254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
17259$ac_includes_default
17260int
17261main ()
17262{
17263static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17264test_array [0] = 0
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext
17271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_lo=$ac_mid; break
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297ac_hi=`expr '(' $ac_mid ')' - 1`
17298 if test $ac_mid -le $ac_hi; then
17299 ac_lo= ac_hi=
17300 break
17301 fi
17302 ac_mid=`expr 2 '*' $ac_mid`
17303fi
17304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17305 done
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310ac_lo= ac_hi=
17311fi
17312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313fi
17314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315# Binary search between lo and hi bounds.
17316while test "x$ac_lo" != "x$ac_hi"; do
17317 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17318 cat >conftest.$ac_ext <<_ACEOF
17319/* confdefs.h. */
17320_ACEOF
17321cat confdefs.h >>conftest.$ac_ext
17322cat >>conftest.$ac_ext <<_ACEOF
17323/* end confdefs.h. */
17324$ac_includes_default
17325int
17326main ()
17327{
17328static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17329test_array [0] = 0
17330
17331 ;
17332 return 0;
17333}
17334_ACEOF
17335rm -f conftest.$ac_objext
17336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>conftest.er1
17338 ac_status=$?
17339 grep -v '^ *+' conftest.er1 >conftest.err
17340 rm -f conftest.er1
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_hi=$ac_mid
17358else
17359 echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362ac_lo=`expr '(' $ac_mid ')' + 1`
17363fi
17364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17365done
17366case $ac_lo in
17367?*) ac_cv_sizeof_short_int=$ac_lo;;
17368'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17369See \`config.log' for more details." >&5
17370echo "$as_me: error: cannot compute sizeof (short int), 77
17371See \`config.log' for more details." >&2;}
17372 { (exit 1); exit 1; }; } ;;
17373esac
17374else
17375 if test "$cross_compiling" = yes; then
17376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17377See \`config.log' for more details." >&5
17378echo "$as_me: error: cannot run test program while cross compiling
17379See \`config.log' for more details." >&2;}
17380 { (exit 1); exit 1; }; }
17381else
17382 cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
17388$ac_includes_default
17389long longval () { return (long) (sizeof (short int)); }
17390unsigned long ulongval () { return (long) (sizeof (short int)); }
17391#include <stdio.h>
17392#include <stdlib.h>
17393int
17394main ()
17395{
17396
17397 FILE *f = fopen ("conftest.val", "w");
17398 if (! f)
17399 exit (1);
17400 if (((long) (sizeof (short int))) < 0)
17401 {
17402 long i = longval ();
17403 if (i != ((long) (sizeof (short int))))
17404 exit (1);
17405 fprintf (f, "%ld\n", i);
17406 }
17407 else
17408 {
17409 unsigned long i = ulongval ();
17410 if (i != ((long) (sizeof (short int))))
17411 exit (1);
17412 fprintf (f, "%lu\n", i);
17413 }
17414 exit (ferror (f) || fclose (f) != 0);
17415
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest$ac_exeext
17421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_sizeof_short_int=`cat conftest.val`
17432else
17433 echo "$as_me: program exited with status $ac_status" >&5
17434echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437( exit $ac_status )
17438{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17439See \`config.log' for more details." >&5
17440echo "$as_me: error: cannot compute sizeof (short int), 77
17441See \`config.log' for more details." >&2;}
17442 { (exit 1); exit 1; }; }
17443fi
17444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445fi
17446fi
17447rm -f conftest.val
17448else
17449 ac_cv_sizeof_short_int=0
17450fi
17451fi
17452echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17453echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17454cat >>confdefs.h <<_ACEOF
17455#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17456_ACEOF
17457
17458
17459echo "$as_me:$LINENO: checking for int" >&5
17460echo $ECHO_N "checking for int... $ECHO_C" >&6
17461if test "${ac_cv_type_int+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463else
17464 cat >conftest.$ac_ext <<_ACEOF
17465/* confdefs.h. */
17466_ACEOF
17467cat confdefs.h >>conftest.$ac_ext
17468cat >>conftest.$ac_ext <<_ACEOF
17469/* end confdefs.h. */
17470$ac_includes_default
17471int
17472main ()
17473{
17474if ((int *) 0)
17475 return 0;
17476if (sizeof (int))
17477 return 0;
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext
17483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17484 (eval $ac_compile) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest.$ac_objext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_type_int=yes
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509ac_cv_type_int=no
17510fi
17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17512fi
17513echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17514echo "${ECHO_T}$ac_cv_type_int" >&6
17515
17516echo "$as_me:$LINENO: checking size of int" >&5
17517echo $ECHO_N "checking size of int... $ECHO_C" >&6
17518if test "${ac_cv_sizeof_int+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521 if test "$ac_cv_type_int" = yes; then
17522 # The cast to unsigned long works around a bug in the HP C Compiler
17523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17525 # This bug is HP SR number 8606223364.
17526 if test "$cross_compiling" = yes; then
17527 # Depending upon the size, compute the lo and hi bounds.
17528cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h. */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h. */
17534$ac_includes_default
17535int
17536main ()
17537{
17538static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17539test_array [0] = 0
17540
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext
17546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 ac_lo=0 ac_mid=0
17568 while :; do
17569 cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575$ac_includes_default
17576int
17577main ()
17578{
17579static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17580test_array [0] = 0
17581
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_hi=$ac_mid; break
17609else
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613ac_lo=`expr $ac_mid + 1`
17614 if test $ac_lo -le $ac_mid; then
17615 ac_lo= ac_hi=
17616 break
17617 fi
17618 ac_mid=`expr 2 '*' $ac_mid + 1`
17619fi
17620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17621 done
17622else
17623 echo "$as_me: failed program was:" >&5
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
17626cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632$ac_includes_default
17633int
17634main ()
17635{
17636static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17637test_array [0] = 0
17638
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_hi=-1 ac_mid=-1
17666 while :; do
17667 cat >conftest.$ac_ext <<_ACEOF
17668/* confdefs.h. */
17669_ACEOF
17670cat confdefs.h >>conftest.$ac_ext
17671cat >>conftest.$ac_ext <<_ACEOF
17672/* end confdefs.h. */
17673$ac_includes_default
17674int
17675main ()
17676{
17677static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17678test_array [0] = 0
17679
17680 ;
17681 return 0;
17682}
17683_ACEOF
17684rm -f conftest.$ac_objext
17685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_lo=$ac_mid; break
17707else
17708 echo "$as_me: failed program was:" >&5
17709sed 's/^/| /' conftest.$ac_ext >&5
17710
17711ac_hi=`expr '(' $ac_mid ')' - 1`
17712 if test $ac_mid -le $ac_hi; then
17713 ac_lo= ac_hi=
17714 break
17715 fi
17716 ac_mid=`expr 2 '*' $ac_mid`
17717fi
17718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17719 done
17720else
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724ac_lo= ac_hi=
17725fi
17726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17727fi
17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17729# Binary search between lo and hi bounds.
17730while test "x$ac_lo" != "x$ac_hi"; do
17731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17732 cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
17738$ac_includes_default
17739int
17740main ()
17741{
17742static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17743test_array [0] = 0
17744
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext
17750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_hi=$ac_mid
17772else
17773 echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776ac_lo=`expr '(' $ac_mid ')' + 1`
17777fi
17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17779done
17780case $ac_lo in
17781?*) ac_cv_sizeof_int=$ac_lo;;
17782'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17783See \`config.log' for more details." >&5
17784echo "$as_me: error: cannot compute sizeof (int), 77
17785See \`config.log' for more details." >&2;}
17786 { (exit 1); exit 1; }; } ;;
17787esac
17788else
17789 if test "$cross_compiling" = yes; then
17790 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17791See \`config.log' for more details." >&5
17792echo "$as_me: error: cannot run test program while cross compiling
17793See \`config.log' for more details." >&2;}
17794 { (exit 1); exit 1; }; }
17795else
17796 cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802$ac_includes_default
17803long longval () { return (long) (sizeof (int)); }
17804unsigned long ulongval () { return (long) (sizeof (int)); }
17805#include <stdio.h>
17806#include <stdlib.h>
17807int
17808main ()
17809{
17810
17811 FILE *f = fopen ("conftest.val", "w");
17812 if (! f)
17813 exit (1);
17814 if (((long) (sizeof (int))) < 0)
17815 {
17816 long i = longval ();
17817 if (i != ((long) (sizeof (int))))
17818 exit (1);
17819 fprintf (f, "%ld\n", i);
17820 }
17821 else
17822 {
17823 unsigned long i = ulongval ();
17824 if (i != ((long) (sizeof (int))))
17825 exit (1);
17826 fprintf (f, "%lu\n", i);
17827 }
17828 exit (ferror (f) || fclose (f) != 0);
17829
17830 ;
17831 return 0;
17832}
17833_ACEOF
17834rm -f conftest$ac_exeext
17835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_sizeof_int=`cat conftest.val`
17846else
17847 echo "$as_me: program exited with status $ac_status" >&5
17848echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851( exit $ac_status )
17852{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17853See \`config.log' for more details." >&5
17854echo "$as_me: error: cannot compute sizeof (int), 77
17855See \`config.log' for more details." >&2;}
17856 { (exit 1); exit 1; }; }
17857fi
17858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17859fi
17860fi
17861rm -f conftest.val
17862else
17863 ac_cv_sizeof_int=0
17864fi
17865fi
17866echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17867echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17868cat >>confdefs.h <<_ACEOF
17869#define SIZEOF_INT $ac_cv_sizeof_int
17870_ACEOF
17871
17872
17873echo "$as_me:$LINENO: checking for long int" >&5
17874echo $ECHO_N "checking for long int... $ECHO_C" >&6
17875if test "${ac_cv_type_long_int+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17877else
17878 cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884$ac_includes_default
17885int
17886main ()
17887{
17888if ((long int *) 0)
17889 return 0;
17890if (sizeof (long int))
17891 return 0;
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_type_long_int=yes
17919else
17920 echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923ac_cv_type_long_int=no
17924fi
17925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17926fi
17927echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17928echo "${ECHO_T}$ac_cv_type_long_int" >&6
17929
17930echo "$as_me:$LINENO: checking size of long int" >&5
17931echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17932if test "${ac_cv_sizeof_long_int+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17934else
17935 if test "$ac_cv_type_long_int" = yes; then
17936 # The cast to unsigned long works around a bug in the HP C Compiler
17937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17939 # This bug is HP SR number 8606223364.
17940 if test "$cross_compiling" = yes; then
17941 # Depending upon the size, compute the lo and hi bounds.
17942cat >conftest.$ac_ext <<_ACEOF
17943/* confdefs.h. */
17944_ACEOF
17945cat confdefs.h >>conftest.$ac_ext
17946cat >>conftest.$ac_ext <<_ACEOF
17947/* end confdefs.h. */
17948$ac_includes_default
17949int
17950main ()
17951{
17952static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17953test_array [0] = 0
17954
17955 ;
17956 return 0;
17957}
17958_ACEOF
17959rm -f conftest.$ac_objext
17960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17961 (eval $ac_compile) 2>conftest.er1
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag"
17969 || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_lo=0 ac_mid=0
17982 while :; do
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990int
17991main ()
17992{
17993static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17994test_array [0] = 0
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_hi=$ac_mid; break
18023else
18024 echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
18027ac_lo=`expr $ac_mid + 1`
18028 if test $ac_lo -le $ac_mid; then
18029 ac_lo= ac_hi=
18030 break
18031 fi
18032 ac_mid=`expr 2 '*' $ac_mid + 1`
18033fi
18034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18035 done
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040cat >conftest.$ac_ext <<_ACEOF
18041/* confdefs.h. */
18042_ACEOF
18043cat confdefs.h >>conftest.$ac_ext
18044cat >>conftest.$ac_ext <<_ACEOF
18045/* end confdefs.h. */
18046$ac_includes_default
18047int
18048main ()
18049{
18050static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
18051test_array [0] = 0
18052
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059 (eval $ac_compile) 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_hi=-1 ac_mid=-1
18080 while :; do
18081 cat >conftest.$ac_ext <<_ACEOF
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087$ac_includes_default
18088int
18089main ()
18090{
18091static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
18092test_array [0] = 0
18093
18094 ;
18095 return 0;
18096}
18097_ACEOF
18098rm -f conftest.$ac_objext
18099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100 (eval $ac_compile) 2>conftest.er1
18101 ac_status=$?
18102 grep -v '^ *+' conftest.er1 >conftest.err
18103 rm -f conftest.er1
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_c_werror_flag"
18108 || test ! -s conftest.err'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest.$ac_objext'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_lo=$ac_mid; break
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125ac_hi=`expr '(' $ac_mid ')' - 1`
18126 if test $ac_mid -le $ac_hi; then
18127 ac_lo= ac_hi=
18128 break
18129 fi
18130 ac_mid=`expr 2 '*' $ac_mid`
18131fi
18132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18133 done
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138ac_lo= ac_hi=
18139fi
18140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18141fi
18142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18143# Binary search between lo and hi bounds.
18144while test "x$ac_lo" != "x$ac_hi"; do
18145 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18146 cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
18152$ac_includes_default
18153int
18154main ()
18155{
18156static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
18157test_array [0] = 0
18158
18159 ;
18160 return 0;
18161}
18162_ACEOF
18163rm -f conftest.$ac_objext
18164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_hi=$ac_mid
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190ac_lo=`expr '(' $ac_mid ')' + 1`
18191fi
18192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18193done
18194case $ac_lo in
18195?*) ac_cv_sizeof_long_int=$ac_lo;;
18196'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18197See \`config.log' for more details." >&5
18198echo "$as_me: error: cannot compute sizeof (long int), 77
18199See \`config.log' for more details." >&2;}
18200 { (exit 1); exit 1; }; } ;;
18201esac
18202else
18203 if test "$cross_compiling" = yes; then
18204 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18205See \`config.log' for more details." >&5
18206echo "$as_me: error: cannot run test program while cross compiling
18207See \`config.log' for more details." >&2;}
18208 { (exit 1); exit 1; }; }
18209else
18210 cat >conftest.$ac_ext <<_ACEOF
18211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
18216$ac_includes_default
18217long longval () { return (long) (sizeof (long int)); }
18218unsigned long ulongval () { return (long) (sizeof (long int)); }
18219#include <stdio.h>
18220#include <stdlib.h>
18221int
18222main ()
18223{
18224
18225 FILE *f = fopen ("conftest.val", "w");
18226 if (! f)
18227 exit (1);
18228 if (((long) (sizeof (long int))) < 0)
18229 {
18230 long i = longval ();
18231 if (i != ((long) (sizeof (long int))))
18232 exit (1);
18233 fprintf (f, "%ld\n", i);
18234 }
18235 else
18236 {
18237 unsigned long i = ulongval ();
18238 if (i != ((long) (sizeof (long int))))
18239 exit (1);
18240 fprintf (f, "%lu\n", i);
18241 }
18242 exit (ferror (f) || fclose (f) != 0);
18243
18244 ;
18245 return 0;
18246}
18247_ACEOF
18248rm -f conftest$ac_exeext
18249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250 (eval $ac_link) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ac_cv_sizeof_long_int=`cat conftest.val`
18260else
18261 echo "$as_me: program exited with status $ac_status" >&5
18262echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265( exit $ac_status )
18266{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18267See \`config.log' for more details." >&5
18268echo "$as_me: error: cannot compute sizeof (long int), 77
18269See \`config.log' for more details." >&2;}
18270 { (exit 1); exit 1; }; }
18271fi
18272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18273fi
18274fi
18275rm -f conftest.val
18276else
18277 ac_cv_sizeof_long_int=0
18278fi
18279fi
18280echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18281echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18282cat >>confdefs.h <<_ACEOF
18283#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18284_ACEOF
18285
18286
18287echo "$as_me:$LINENO: checking for long long int" >&5
18288echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18289if test "${ac_cv_type_long_long_int+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291else
18292 cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
18298$ac_includes_default
18299int
18300main ()
18301{
18302if ((long long int *) 0)
18303 return 0;
18304if (sizeof (long long int))
18305 return 0;
18306 ;
18307 return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext
18311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag"
18320 || test ! -s conftest.err'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 ac_cv_type_long_long_int=yes
18333else
18334 echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337ac_cv_type_long_long_int=no
18338fi
18339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18340fi
18341echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18342echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18343
18344echo "$as_me:$LINENO: checking size of long long int" >&5
18345echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18346if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348else
18349 if test "$ac_cv_type_long_long_int" = yes; then
18350 # The cast to unsigned long works around a bug in the HP C Compiler
18351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18353 # This bug is HP SR number 8606223364.
18354 if test "$cross_compiling" = yes; then
18355 # Depending upon the size, compute the lo and hi bounds.
18356cat >conftest.$ac_ext <<_ACEOF
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362$ac_includes_default
18363int
18364main ()
18365{
18366static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18367test_array [0] = 0
18368
18369 ;
18370 return 0;
18371}
18372_ACEOF
18373rm -f conftest.$ac_objext
18374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18375 (eval $ac_compile) 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -z "$ac_c_werror_flag"
18383 || test ! -s conftest.err'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_lo=0 ac_mid=0
18396 while :; do
18397 cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
18403$ac_includes_default
18404int
18405main ()
18406{
18407static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18408test_array [0] = 0
18409
18410 ;
18411 return 0;
18412}
18413_ACEOF
18414rm -f conftest.$ac_objext
18415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18416 (eval $ac_compile) 2>conftest.er1
18417 ac_status=$?
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_c_werror_flag"
18424 || test ! -s conftest.err'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_hi=$ac_mid; break
18437else
18438 echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441ac_lo=`expr $ac_mid + 1`
18442 if test $ac_lo -le $ac_mid; then
18443 ac_lo= ac_hi=
18444 break
18445 fi
18446 ac_mid=`expr 2 '*' $ac_mid + 1`
18447fi
18448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18449 done
18450else
18451 echo "$as_me: failed program was:" >&5
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
18454cat >conftest.$ac_ext <<_ACEOF
18455/* confdefs.h. */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h. */
18460$ac_includes_default
18461int
18462main ()
18463{
18464static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18465test_array [0] = 0
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
18472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18473 (eval $ac_compile) 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try='test -z "$ac_c_werror_flag"
18481 || test ! -s conftest.err'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest.$ac_objext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_hi=-1 ac_mid=-1
18494 while :; do
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18506test_array [0] = 0
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514 (eval $ac_compile) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_lo=$ac_mid; break
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
18538
18539ac_hi=`expr '(' $ac_mid ')' - 1`
18540 if test $ac_mid -le $ac_hi; then
18541 ac_lo= ac_hi=
18542 break
18543 fi
18544 ac_mid=`expr 2 '*' $ac_mid`
18545fi
18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18547 done
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552ac_lo= ac_hi=
18553fi
18554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18555fi
18556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18557# Binary search between lo and hi bounds.
18558while test "x$ac_lo" != "x$ac_hi"; do
18559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18560 cat >conftest.$ac_ext <<_ACEOF
18561/* confdefs.h. */
18562_ACEOF
18563cat confdefs.h >>conftest.$ac_ext
18564cat >>conftest.$ac_ext <<_ACEOF
18565/* end confdefs.h. */
18566$ac_includes_default
18567int
18568main ()
18569{
18570static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18571test_array [0] = 0
18572
18573 ;
18574 return 0;
18575}
18576_ACEOF
18577rm -f conftest.$ac_objext
18578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_c_werror_flag"
18587 || test ! -s conftest.err'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest.$ac_objext'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_hi=$ac_mid
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604ac_lo=`expr '(' $ac_mid ')' + 1`
18605fi
18606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18607done
18608case $ac_lo in
18609?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18610'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18611See \`config.log' for more details." >&5
18612echo "$as_me: error: cannot compute sizeof (long long int), 77
18613See \`config.log' for more details." >&2;}
18614 { (exit 1); exit 1; }; } ;;
18615esac
18616else
18617 if test "$cross_compiling" = yes; then
18618 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18619See \`config.log' for more details." >&5
18620echo "$as_me: error: cannot run test program while cross compiling
18621See \`config.log' for more details." >&2;}
18622 { (exit 1); exit 1; }; }
18623else
18624 cat >conftest.$ac_ext <<_ACEOF
18625/* confdefs.h. */
18626_ACEOF
18627cat confdefs.h >>conftest.$ac_ext
18628cat >>conftest.$ac_ext <<_ACEOF
18629/* end confdefs.h. */
18630$ac_includes_default
18631long longval () { return (long) (sizeof (long long int)); }
18632unsigned long ulongval () { return (long) (sizeof (long long int)); }
18633#include <stdio.h>
18634#include <stdlib.h>
18635int
18636main ()
18637{
18638
18639 FILE *f = fopen ("conftest.val", "w");
18640 if (! f)
18641 exit (1);
18642 if (((long) (sizeof (long long int))) < 0)
18643 {
18644 long i = longval ();
18645 if (i != ((long) (sizeof (long long int))))
18646 exit (1);
18647 fprintf (f, "%ld\n", i);
18648 }
18649 else
18650 {
18651 unsigned long i = ulongval ();
18652 if (i != ((long) (sizeof (long long int))))
18653 exit (1);
18654 fprintf (f, "%lu\n", i);
18655 }
18656 exit (ferror (f) || fclose (f) != 0);
18657
18658 ;
18659 return 0;
18660}
18661_ACEOF
18662rm -f conftest$ac_exeext
18663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664 (eval $ac_link) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_cv_sizeof_long_long_int=`cat conftest.val`
18674else
18675 echo "$as_me: program exited with status $ac_status" >&5
18676echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679( exit $ac_status )
18680{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18681See \`config.log' for more details." >&5
18682echo "$as_me: error: cannot compute sizeof (long long int), 77
18683See \`config.log' for more details." >&2;}
18684 { (exit 1); exit 1; }; }
18685fi
18686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18687fi
18688fi
18689rm -f conftest.val
18690else
18691 ac_cv_sizeof_long_long_int=0
18692fi
18693fi
18694echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18695echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18696cat >>confdefs.h <<_ACEOF
18697#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18698_ACEOF
18699
18700
18701
18702# Sanity check long long for some platforms (AIX)
18703if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
18704 ac_cv_sizeof_long_long_int=0
18705fi
18706
18707# compute LLONG_MIN and LLONG_MAX if we don't know them.
18708if test -z "$have_llong_max"; then
18709 echo "$as_me:$LINENO: checking for max value of long long" >&5
18710echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6
18711 if test "$cross_compiling" = yes; then
18712
18713 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
18714echo "$as_me: WARNING: cross compiling: not checking" >&2;}
18715
18716
18717else
18718 cat >conftest.$ac_ext <<_ACEOF
18719/* confdefs.h. */
18720_ACEOF
18721cat confdefs.h >>conftest.$ac_ext
18722cat >>conftest.$ac_ext <<_ACEOF
18723/* end confdefs.h. */
18724
18725#include <stdio.h>
18726/* Why is this so damn hard? */
18727#ifdef __GNUC__
18728# undef __GNUC__
18729#endif
18730#define __USE_ISOC99
18731#include <limits.h>
18732#define DATA "conftest.llminmax"
18733int main(void) {
18734 FILE *f;
18735 long long i, llmin, llmax = 0;
18736
18737 if((f = fopen(DATA,"w")) == NULL)
18738 exit(1);
18739
18740#if defined(LLONG_MIN) && defined(LLONG_MAX)
18741 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
18742 llmin = LLONG_MIN;
18743 llmax = LLONG_MAX;
18744#else
18745 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
18746 /* This will work on one's complement and two's complement */
18747 for (i = 1; i > llmax; i <<= 1, i++)
18748 llmax = i;
18749 llmin = llmax + 1LL; /* wrap */
18750#endif
18751
18752 /* Sanity check */
18753 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
18754 || llmax - 1 > llmax) {
18755 fprintf(f, "unknown unknown\n");
18756 exit(2);
18757 }
18758
18759 if (fprintf(f ,"%lld %lld", llmin, llmax) < 0)
18760 exit(3);
18761
18762 exit(0);
18763}
18764
18765_ACEOF
18766rm -f conftest$ac_exeext
18767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18768 (eval $ac_link) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777
18778 llong_min=`$AWK '{print $1}' conftest.llminmax`
18779 llong_max=`$AWK '{print $2}' conftest.llminmax`
18780
18781 # snprintf on some Tru64s doesn't understand "%lld"
18782 case "$host" in
18783 alpha-dec-osf*)
18784 if test "x$ac_cv_sizeof_long_long_int" = "x8" &&
18785 test "x$llong_max" = "xld"; then
18786 llong_min="-9223372036854775808"
18787 llong_max="9223372036854775807"
18788 fi
18789 ;;
18790 esac
18791
18792 echo "$as_me:$LINENO: result: $llong_max" >&5
18793echo "${ECHO_T}$llong_max" >&6
18794
18795cat >>confdefs.h <<_ACEOF
18796#define LLONG_MAX ${llong_max}LL
18797_ACEOF
18798
18799 echo "$as_me:$LINENO: checking for min value of long long" >&5
18800echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6
18801 echo "$as_me:$LINENO: result: $llong_min" >&5
18802echo "${ECHO_T}$llong_min" >&6
18803
18804cat >>confdefs.h <<_ACEOF
18805#define LLONG_MIN ${llong_min}LL
18806_ACEOF
18807
18808
18809else
18810 echo "$as_me: program exited with status $ac_status" >&5
18811echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814( exit $ac_status )
18815
18816 echo "$as_me:$LINENO: result: not found" >&5
18817echo "${ECHO_T}not found" >&6
18818
18819fi
18820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18821fi
18822fi
18823
18824
18825# More checks for data types
18826echo "$as_me:$LINENO: checking for u_int type" >&5
18827echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18828if test "${ac_cv_have_u_int+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830else
18831
18832 cat >conftest.$ac_ext <<_ACEOF
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
18838 #include <sys/types.h>
18839int
18840main ()
18841{
18842 u_int a; a = 1;
18843 ;
18844 return 0;
18845}
18846_ACEOF
18847rm -f conftest.$ac_objext
18848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849 (eval $ac_compile) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest.$ac_objext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_have_u_int="yes"
18870else
18871 echo "$as_me: failed program was:" >&5
18872sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 ac_cv_have_u_int="no"
18875
18876fi
18877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18878
18879fi
18880echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18881echo "${ECHO_T}$ac_cv_have_u_int" >&6
18882if test "x$ac_cv_have_u_int" = "xyes" ; then
18883
18884cat >>confdefs.h <<\_ACEOF
18885#define HAVE_U_INT 1
18886_ACEOF
18887
18888 have_u_int=1
18889fi
18890
18891echo "$as_me:$LINENO: checking for intXX_t types" >&5
18892echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
18893if test "${ac_cv_have_intxx_t+set}" = set; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18895else
18896
18897 cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903 #include <sys/types.h>
18904int
18905main ()
18906{
18907 int8_t a; int16_t b; int32_t c; a = b = c = 1;
18908 ;
18909 return 0;
18910}
18911_ACEOF
18912rm -f conftest.$ac_objext
18913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18914 (eval $ac_compile) 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag"
18922 || test ! -s conftest.err'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest.$ac_objext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_have_intxx_t="yes"
18935else
18936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 ac_cv_have_intxx_t="no"
18940
18941fi
18942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18943
18944fi
18945echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
18946echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
18947if test "x$ac_cv_have_intxx_t" = "xyes" ; then
18948
18949cat >>confdefs.h <<\_ACEOF
18950#define HAVE_INTXX_T 1
18951_ACEOF
18952
18953 have_intxx_t=1
18954fi
18955
18956if (test -z "$have_intxx_t" && \
18957 test "x$ac_cv_header_stdint_h" = "xyes")
18958then
18959 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
18960echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967 #include <stdint.h>
18968int
18969main ()
18970{
18971 int8_t a; int16_t b; int32_t c; a = b = c = 1;
18972 ;
18973 return 0;
18974}
18975_ACEOF
18976rm -f conftest.$ac_objext
18977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998
18999 cat >>confdefs.h <<\_ACEOF
19000#define HAVE_INTXX_T 1
19001_ACEOF
19002
19003 echo "$as_me:$LINENO: result: yes" >&5
19004echo "${ECHO_T}yes" >&6
19005
19006else
19007 echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 echo "$as_me:$LINENO: result: no" >&5
19011echo "${ECHO_T}no" >&6
19012
19013fi
19014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015fi
19016
19017echo "$as_me:$LINENO: checking for int64_t type" >&5
19018echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19019if test "${ac_cv_have_int64_t+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19021else
19022
19023 cat >conftest.$ac_ext <<_ACEOF
19024/* confdefs.h. */
19025_ACEOF
19026cat confdefs.h >>conftest.$ac_ext
19027cat >>conftest.$ac_ext <<_ACEOF
19028/* end confdefs.h. */
19029
19030#include <sys/types.h>
19031#ifdef HAVE_STDINT_H
19032# include <stdint.h>
19033#endif
19034#include <sys/socket.h>
19035#ifdef HAVE_SYS_BITYPES_H
19036# include <sys/bitypes.h>
19037#endif
19038
19039int
19040main ()
19041{
19042 int64_t a; a = 1;
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext
19048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_have_int64_t="yes"
19070else
19071 echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ac_cv_have_int64_t="no"
19075
19076fi
19077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19078
19079fi
19080echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19081echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19082if test "x$ac_cv_have_int64_t" = "xyes" ; then
19083
19084cat >>confdefs.h <<\_ACEOF
19085#define HAVE_INT64_T 1
19086_ACEOF
19087
19088fi
19089
19090echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19091echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19092if test "${ac_cv_have_u_intxx_t+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094else
19095
19096 cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102 #include <sys/types.h>
19103int
19104main ()
19105{
19106 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext
19112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19113 (eval $ac_compile) 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_have_u_intxx_t="yes"
19134else
19135 echo "$as_me: failed program was:" >&5
19136sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 ac_cv_have_u_intxx_t="no"
19139
19140fi
19141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19142
19143fi
19144echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19145echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19146if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19147
19148cat >>confdefs.h <<\_ACEOF
19149#define HAVE_U_INTXX_T 1
19150_ACEOF
19151
19152 have_u_intxx_t=1
19153fi
19154
19155if test -z "$have_u_intxx_t" ; then
19156 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
19157echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
19164 #include <sys/socket.h>
19165int
19166main ()
19167{
19168 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19169 ;
19170 return 0;
19171}
19172_ACEOF
19173rm -f conftest.$ac_objext
19174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19175 (eval $ac_compile) 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_c_werror_flag"
19183 || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195
19196 cat >>confdefs.h <<\_ACEOF
19197#define HAVE_U_INTXX_T 1
19198_ACEOF
19199
19200 echo "$as_me:$LINENO: result: yes" >&5
19201echo "${ECHO_T}yes" >&6
19202
19203else
19204 echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 echo "$as_me:$LINENO: result: no" >&5
19208echo "${ECHO_T}no" >&6
19209
19210fi
19211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19212fi
19213
19214echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19215echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19216if test "${ac_cv_have_u_int64_t+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218else
19219
19220 cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226 #include <sys/types.h>
19227int
19228main ()
19229{
19230 u_int64_t a; a = 1;
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext
19236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19237 (eval $ac_compile) 2>conftest.er1
19238 ac_status=$?
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -z "$ac_c_werror_flag"
19245 || test ! -s conftest.err'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_have_u_int64_t="yes"
19258else
19259 echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 ac_cv_have_u_int64_t="no"
19263
19264fi
19265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19266
19267fi
19268echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19269echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19270if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19271
19272cat >>confdefs.h <<\_ACEOF
19273#define HAVE_U_INT64_T 1
19274_ACEOF
19275
19276 have_u_int64_t=1
19277fi
19278
19279if test -z "$have_u_int64_t" ; then
19280 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
19281echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
19282 cat >conftest.$ac_ext <<_ACEOF
19283/* confdefs.h. */
19284_ACEOF
19285cat confdefs.h >>conftest.$ac_ext
19286cat >>conftest.$ac_ext <<_ACEOF
19287/* end confdefs.h. */
19288 #include <sys/bitypes.h>
19289int
19290main ()
19291{
19292 u_int64_t a; a = 1
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297rm -f conftest.$ac_objext
19298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag"
19307 || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319
19320 cat >>confdefs.h <<\_ACEOF
19321#define HAVE_U_INT64_T 1
19322_ACEOF
19323
19324 echo "$as_me:$LINENO: result: yes" >&5
19325echo "${ECHO_T}yes" >&6
19326
19327else
19328 echo "$as_me: failed program was:" >&5
19329sed 's/^/| /' conftest.$ac_ext >&5
19330
19331 echo "$as_me:$LINENO: result: no" >&5
19332echo "${ECHO_T}no" >&6
19333
19334fi
19335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19336fi
19337
19338if test -z "$have_u_intxx_t" ; then
19339 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19340echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19341if test "${ac_cv_have_uintxx_t+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343else
19344
19345 cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351
19352#include <sys/types.h>
19353
19354int
19355main ()
19356{
19357 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
19358 ;
19359 return 0;
19360}
19361_ACEOF
19362rm -f conftest.$ac_objext
19363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_have_uintxx_t="yes"
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 ac_cv_have_uintxx_t="no"
19390
19391fi
19392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19393
19394fi
19395echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19396echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19397 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19398
19399cat >>confdefs.h <<\_ACEOF
19400#define HAVE_UINTXX_T 1
19401_ACEOF
19402
19403 fi
19404fi
19405
19406if test -z "$have_uintxx_t" ; then
19407 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
19408echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
19409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
19415 #include <stdint.h>
19416int
19417main ()
19418{
19419 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext
19425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag"
19434 || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446
19447 cat >>confdefs.h <<\_ACEOF
19448#define HAVE_UINTXX_T 1
19449_ACEOF
19450
19451 echo "$as_me:$LINENO: result: yes" >&5
19452echo "${ECHO_T}yes" >&6
19453
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458 echo "$as_me:$LINENO: result: no" >&5
19459echo "${ECHO_T}no" >&6
19460
19461fi
19462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463fi
19464
19465if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19466 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19467then
19468 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19469echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476
19477#include <sys/bitypes.h>
19478
19479int
19480main ()
19481{
19482
19483 int8_t a; int16_t b; int32_t c;
19484 u_int8_t e; u_int16_t f; u_int32_t g;
19485 a = b = c = e = f = g = 1;
19486
19487 ;
19488 return 0;
19489}
19490_ACEOF
19491rm -f conftest.$ac_objext
19492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag"
19501 || test ! -s conftest.err'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513
19514 cat >>confdefs.h <<\_ACEOF
19515#define HAVE_U_INTXX_T 1
19516_ACEOF
19517
19518 cat >>confdefs.h <<\_ACEOF
19519#define HAVE_INTXX_T 1
19520_ACEOF
19521
19522 echo "$as_me:$LINENO: result: yes" >&5
19523echo "${ECHO_T}yes" >&6
19524
19525else
19526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529echo "$as_me:$LINENO: result: no" >&5
19530echo "${ECHO_T}no" >&6
19531
19532fi
19533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19534fi
19535
19536
19537echo "$as_me:$LINENO: checking for u_char" >&5
19538echo $ECHO_N "checking for u_char... $ECHO_C" >&6
19539if test "${ac_cv_have_u_char+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541else
19542
19543 cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549
19550#include <sys/types.h>
19551
19552int
19553main ()
19554{
19555 u_char foo; foo = 125;
19556 ;
19557 return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562 (eval $ac_compile) 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_have_u_char="yes"
19583else
19584 echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_have_u_char="no"
19588
19589fi
19590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591
19592fi
19593echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
19594echo "${ECHO_T}$ac_cv_have_u_char" >&6
19595if test "x$ac_cv_have_u_char" = "xyes" ; then
19596
19597cat >>confdefs.h <<\_ACEOF
19598#define HAVE_U_CHAR 1
19599_ACEOF
19600
19601fi
19602
19603
19604 echo "$as_me:$LINENO: checking for socklen_t" >&5
19605echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
19606if test "${ac_cv_type_socklen_t+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608else
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615#include <sys/types.h>
19616#include <sys/socket.h>
19617
19618int
19619main ()
19620{
19621if ((socklen_t *) 0)
19622 return 0;
19623if (sizeof (socklen_t))
19624 return 0;
19625 ;
19626 return 0;
19627}
19628_ACEOF
19629rm -f conftest.$ac_objext
19630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631 (eval $ac_compile) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_type_socklen_t=yes
19652else
19653 echo "$as_me: failed program was:" >&5
19654sed 's/^/| /' conftest.$ac_ext >&5
19655
19656ac_cv_type_socklen_t=no
19657fi
19658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19659fi
19660echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19661echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
19662if test $ac_cv_type_socklen_t = yes; then
19663 :
19664else
19665
19666 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
19667echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
19668 if test "${curl_cv_socklen_t_equiv+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670else
19671
19672 # Systems have either "struct sockaddr *" or
19673 # "void *" as the second argument to getpeername
19674 curl_cv_socklen_t_equiv=
19675 for arg2 in "struct sockaddr" void; do
19676 for t in int size_t unsigned long "unsigned long"; do
19677 cat >conftest.$ac_ext <<_ACEOF
19678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
19683
19684 #include <sys/types.h>
19685 #include <sys/socket.h>
19686
19687 int getpeername (int, $arg2 *, $t *);
19688
19689int
19690main ()
19691{
19692
19693 $t len;
19694 getpeername(0,0,&len);
19695
19696 ;
19697 return 0;
19698}
19699_ACEOF
19700rm -f conftest.$ac_objext
19701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19702 (eval $ac_compile) 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag"
19710 || test ! -s conftest.err'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; } &&
19716 { ac_try='test -s conftest.$ac_objext'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722
19723 curl_cv_socklen_t_equiv="$t"
19724 break
19725
19726else
19727 echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730fi
19731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19732 done
19733 done
19734
19735 if test "x$curl_cv_socklen_t_equiv" = x; then
19736 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
19737echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
19738 { (exit 1); exit 1; }; }
19739 fi
19740
19741fi
19742
19743 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
19744echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
19745
19746cat >>confdefs.h <<_ACEOF
19747#define socklen_t $curl_cv_socklen_t_equiv
19748_ACEOF
19749
19750fi
19751
19752
19753
19754echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
19755echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
19756if test "${ac_cv_type_sig_atomic_t+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758else
19759 cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
19765#include <signal.h>
19766
19767int
19768main ()
19769{
19770if ((sig_atomic_t *) 0)
19771 return 0;
19772if (sizeof (sig_atomic_t))
19773 return 0;
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_type_sig_atomic_t=yes
19801else
19802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805ac_cv_type_sig_atomic_t=no
19806fi
19807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19808fi
19809echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
19810echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
19811if test $ac_cv_type_sig_atomic_t = yes; then
19812
19813cat >>confdefs.h <<_ACEOF
19814#define HAVE_SIG_ATOMIC_T 1
19815_ACEOF
19816
19817
19818fi
19819
19820
19821echo "$as_me:$LINENO: checking for in_addr_t" >&5
19822echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
19823if test "${ac_cv_type_in_addr_t+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825else
19826 cat >conftest.$ac_ext <<_ACEOF
19827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
19832#include <sys/types.h>
19833#include <netinet/in.h>
19834
19835int
19836main ()
19837{
19838if ((in_addr_t *) 0)
19839 return 0;
19840if (sizeof (in_addr_t))
19841 return 0;
19842 ;
19843 return 0;
19844}
19845_ACEOF
19846rm -f conftest.$ac_objext
19847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try='test -z "$ac_c_werror_flag"
19856 || test ! -s conftest.err'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_type_in_addr_t=yes
19869else
19870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873ac_cv_type_in_addr_t=no
19874fi
19875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19876fi
19877echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
19878echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
19879if test $ac_cv_type_in_addr_t = yes; then
19880
19881cat >>confdefs.h <<_ACEOF
19882#define HAVE_IN_ADDR_T 1
19883_ACEOF
19884
19885
19886fi
19887
19888
19889echo "$as_me:$LINENO: checking for size_t" >&5
19890echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19891if test "${ac_cv_have_size_t+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894
19895 cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901
19902#include <sys/types.h>
19903
19904int
19905main ()
19906{
19907 size_t foo; foo = 1235;
19908 ;
19909 return 0;
19910}
19911_ACEOF
19912rm -f conftest.$ac_objext
19913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914 (eval $ac_compile) 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag"
19922 || test ! -s conftest.err'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest.$ac_objext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_have_size_t="yes"
19935else
19936 echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939 ac_cv_have_size_t="no"
19940
19941fi
19942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19943
19944fi
19945echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
19946echo "${ECHO_T}$ac_cv_have_size_t" >&6
19947if test "x$ac_cv_have_size_t" = "xyes" ; then
19948
19949cat >>confdefs.h <<\_ACEOF
19950#define HAVE_SIZE_T 1
19951_ACEOF
19952
19953fi
19954
19955echo "$as_me:$LINENO: checking for ssize_t" >&5
19956echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
19957if test "${ac_cv_have_ssize_t+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960
19961 cat >conftest.$ac_ext <<_ACEOF
19962/* confdefs.h. */
19963_ACEOF
19964cat confdefs.h >>conftest.$ac_ext
19965cat >>conftest.$ac_ext <<_ACEOF
19966/* end confdefs.h. */
19967
19968#include <sys/types.h>
19969
19970int
19971main ()
19972{
19973 ssize_t foo; foo = 1235;
19974 ;
19975 return 0;
19976}
19977_ACEOF
19978rm -f conftest.$ac_objext
19979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_have_ssize_t="yes"
20001else
20002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 ac_cv_have_ssize_t="no"
20006
20007fi
20008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20009
20010fi
20011echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
20012echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
20013if test "x$ac_cv_have_ssize_t" = "xyes" ; then
20014
20015cat >>confdefs.h <<\_ACEOF
20016#define HAVE_SSIZE_T 1
20017_ACEOF
20018
20019fi
20020
20021echo "$as_me:$LINENO: checking for clock_t" >&5
20022echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
20023if test "${ac_cv_have_clock_t+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025else
20026
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033
20034#include <time.h>
20035
20036int
20037main ()
20038{
20039 clock_t foo; foo = 1235;
20040 ;
20041 return 0;
20042}
20043_ACEOF
20044rm -f conftest.$ac_objext
20045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag"
20054 || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_cv_have_clock_t="yes"
20067else
20068 echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 ac_cv_have_clock_t="no"
20072
20073fi
20074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20075
20076fi
20077echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
20078echo "${ECHO_T}$ac_cv_have_clock_t" >&6
20079if test "x$ac_cv_have_clock_t" = "xyes" ; then
20080
20081cat >>confdefs.h <<\_ACEOF
20082#define HAVE_CLOCK_T 1
20083_ACEOF
20084
20085fi
20086
20087echo "$as_me:$LINENO: checking for sa_family_t" >&5
20088echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
20089if test "${ac_cv_have_sa_family_t+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092
20093 cat >conftest.$ac_ext <<_ACEOF
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099
20100#include <sys/types.h>
20101#include <sys/socket.h>
20102
20103int
20104main ()
20105{
20106 sa_family_t foo; foo = 1235;
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext
20112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20113 (eval $ac_compile) 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_c_werror_flag"
20121 || test ! -s conftest.err'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_cv_have_sa_family_t="yes"
20134else
20135 echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
20138 cat >conftest.$ac_ext <<_ACEOF
20139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
20144
20145#include <sys/types.h>
20146#include <sys/socket.h>
20147#include <netinet/in.h>
20148
20149int
20150main ()
20151{
20152 sa_family_t foo; foo = 1235;
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_have_sa_family_t="yes"
20180else
20181 echo "$as_me: failed program was:" >&5
20182sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_cv_have_sa_family_t="no"
20185
20186fi
20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188
20189fi
20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
20194echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
20195if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
20196
20197cat >>confdefs.h <<\_ACEOF
20198#define HAVE_SA_FAMILY_T 1
20199_ACEOF
20200
20201fi
20202
20203echo "$as_me:$LINENO: checking for pid_t" >&5
20204echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20205if test "${ac_cv_have_pid_t+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215
20216#include <sys/types.h>
20217
20218int
20219main ()
20220{
20221 pid_t foo; foo = 1235;
20222 ;
20223 return 0;
20224}
20225_ACEOF
20226rm -f conftest.$ac_objext
20227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20228 (eval $ac_compile) 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -z "$ac_c_werror_flag"
20236 || test ! -s conftest.err'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_have_pid_t="yes"
20249else
20250 echo "$as_me: failed program was:" >&5
20251sed 's/^/| /' conftest.$ac_ext >&5
20252
20253 ac_cv_have_pid_t="no"
20254
20255fi
20256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257
20258fi
20259echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
20260echo "${ECHO_T}$ac_cv_have_pid_t" >&6
20261if test "x$ac_cv_have_pid_t" = "xyes" ; then
20262
20263cat >>confdefs.h <<\_ACEOF
20264#define HAVE_PID_T 1
20265_ACEOF
20266
20267fi
20268
20269echo "$as_me:$LINENO: checking for mode_t" >&5
20270echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20271if test "${ac_cv_have_mode_t+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273else
20274
20275 cat >conftest.$ac_ext <<_ACEOF
20276/* confdefs.h. */
20277_ACEOF
20278cat confdefs.h >>conftest.$ac_ext
20279cat >>conftest.$ac_ext <<_ACEOF
20280/* end confdefs.h. */
20281
20282#include <sys/types.h>
20283
20284int
20285main ()
20286{
20287 mode_t foo; foo = 1235;
20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext
20293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_have_mode_t="yes"
20315else
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ac_cv_have_mode_t="no"
20320
20321fi
20322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323
20324fi
20325echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
20326echo "${ECHO_T}$ac_cv_have_mode_t" >&6
20327if test "x$ac_cv_have_mode_t" = "xyes" ; then
20328
20329cat >>confdefs.h <<\_ACEOF
20330#define HAVE_MODE_T 1
20331_ACEOF
20332
20333fi
20334
20335
20336echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
20337echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
20338if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340else
20341
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348
20349#include <sys/types.h>
20350#include <sys/socket.h>
20351
20352int
20353main ()
20354{
20355 struct sockaddr_storage s;
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
20361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_cv_have_struct_sockaddr_storage="yes"
20383else
20384 echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_cv_have_struct_sockaddr_storage="no"
20388
20389fi
20390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391
20392fi
20393echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
20394echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
20395if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
20396
20397cat >>confdefs.h <<\_ACEOF
20398#define HAVE_STRUCT_SOCKADDR_STORAGE 1
20399_ACEOF
20400
20401fi
20402
20403echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20404echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
20405if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407else
20408
20409 cat >conftest.$ac_ext <<_ACEOF
20410/* confdefs.h. */
20411_ACEOF
20412cat confdefs.h >>conftest.$ac_ext
20413cat >>conftest.$ac_ext <<_ACEOF
20414/* end confdefs.h. */
20415
20416#include <sys/types.h>
20417#include <netinet/in.h>
20418
20419int
20420main ()
20421{
20422 struct sockaddr_in6 s; s.sin6_family = 0;
20423 ;
20424 return 0;
20425}
20426_ACEOF
20427rm -f conftest.$ac_objext
20428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>conftest.er1
20430 ac_status=$?
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag"
20437 || test ! -s conftest.err'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_cv_have_struct_sockaddr_in6="yes"
20450else
20451 echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_cv_have_struct_sockaddr_in6="no"
20455
20456fi
20457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458
20459fi
20460echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
20461echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
20462if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
20463
20464cat >>confdefs.h <<\_ACEOF
20465#define HAVE_STRUCT_SOCKADDR_IN6 1
20466_ACEOF
20467
20468fi
20469
20470echo "$as_me:$LINENO: checking for struct in6_addr" >&5
20471echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
20472if test "${ac_cv_have_struct_in6_addr+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474else
20475
20476 cat >conftest.$ac_ext <<_ACEOF
20477/* confdefs.h. */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h. */
20482
20483#include <sys/types.h>
20484#include <netinet/in.h>
20485
20486int
20487main ()
20488{
20489 struct in6_addr s; s.s6_addr[0] = 0;
20490 ;
20491 return 0;
20492}
20493_ACEOF
20494rm -f conftest.$ac_objext
20495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_cv_have_struct_in6_addr="yes"
20517else
20518 echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ac_cv_have_struct_in6_addr="no"
20522
20523fi
20524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20525
20526fi
20527echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
20528echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
20529if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
20530
20531cat >>confdefs.h <<\_ACEOF
20532#define HAVE_STRUCT_IN6_ADDR 1
20533_ACEOF
20534
20535fi
20536
20537echo "$as_me:$LINENO: checking for struct addrinfo" >&5
20538echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
20539if test "${ac_cv_have_struct_addrinfo+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542
20543 cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549
20550#include <sys/types.h>
20551#include <sys/socket.h>
20552#include <netdb.h>
20553
20554int
20555main ()
20556{
20557 struct addrinfo s; s.ai_flags = AI_PASSIVE;
20558 ;
20559 return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext
20563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20564 (eval $ac_compile) 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_have_struct_addrinfo="yes"
20585else
20586 echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 ac_cv_have_struct_addrinfo="no"
20590
20591fi
20592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20593
20594fi
20595echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
20596echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
20597if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
20598
20599cat >>confdefs.h <<\_ACEOF
20600#define HAVE_STRUCT_ADDRINFO 1
20601_ACEOF
20602
20603fi
20604
20605echo "$as_me:$LINENO: checking for struct timeval" >&5
20606echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
20607if test "${ac_cv_have_struct_timeval+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20609else
20610
20611 cat >conftest.$ac_ext <<_ACEOF
20612/* confdefs.h. */
20613_ACEOF
20614cat confdefs.h >>conftest.$ac_ext
20615cat >>conftest.$ac_ext <<_ACEOF
20616/* end confdefs.h. */
20617 #include <sys/time.h>
20618int
20619main ()
20620{
20621 struct timeval tv; tv.tv_sec = 1;
20622 ;
20623 return 0;
20624}
20625_ACEOF
20626rm -f conftest.$ac_objext
20627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20628 (eval $ac_compile) 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag"
20636 || test ! -s conftest.err'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; } &&
20642 { ac_try='test -s conftest.$ac_objext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_cv_have_struct_timeval="yes"
20649else
20650 echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 ac_cv_have_struct_timeval="no"
20654
20655fi
20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20657
20658fi
20659echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
20660echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
20661if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
20662
20663cat >>confdefs.h <<\_ACEOF
20664#define HAVE_STRUCT_TIMEVAL 1
20665_ACEOF
20666
20667 have_struct_timeval=1
20668fi
20669
20670echo "$as_me:$LINENO: checking for struct timespec" >&5
20671echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
20672if test "${ac_cv_type_struct_timespec+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675 cat >conftest.$ac_ext <<_ACEOF
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
20681$ac_includes_default
20682int
20683main ()
20684{
20685if ((struct timespec *) 0)
20686 return 0;
20687if (sizeof (struct timespec))
20688 return 0;
20689 ;
20690 return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext
20694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_type_struct_timespec=yes
20716else
20717 echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720ac_cv_type_struct_timespec=no
20721fi
20722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20723fi
20724echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
20725echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
20726if test $ac_cv_type_struct_timespec = yes; then
20727
20728cat >>confdefs.h <<_ACEOF
20729#define HAVE_STRUCT_TIMESPEC 1
20730_ACEOF
20731
20732
20733fi
20734
20735
20736# We need int64_t or else certian parts of the compile will fail.
20737if test "x$ac_cv_have_int64_t" = "xno" && \
20738 test "x$ac_cv_sizeof_long_int" != "x8" && \
20739 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
20740 echo "OpenSSH requires int64_t support. Contact your vendor or install"
20741 echo "an alternative compiler (I.E., GCC) before continuing."
20742 echo ""
20743 exit 1;
20744else
20745 if test "$cross_compiling" = yes; then
20746 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
20747echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
20748
20749else
20750 cat >conftest.$ac_ext <<_ACEOF
20751/* confdefs.h. */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h. */
20756
20757#include <stdio.h>
20758#include <string.h>
20759#ifdef HAVE_SNPRINTF
20760main()
20761{
20762 char buf[50];
20763 char expected_out[50];
20764 int mazsize = 50 ;
20765#if (SIZEOF_LONG_INT == 8)
20766 long int num = 0x7fffffffffffffff;
20767#else
20768 long long num = 0x7fffffffffffffffll;
20769#endif
20770 strcpy(expected_out, "9223372036854775807");
20771 snprintf(buf, mazsize, "%lld", num);
20772 if(strcmp(buf, expected_out) != 0)
20773 exit(1);
20774 exit(0);
20775}
20776#else
20777main() { exit(0); }
20778#endif
20779
20780_ACEOF
20781rm -f conftest$ac_exeext
20782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20783 (eval $ac_link) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 true
20793else
20794 echo "$as_me: program exited with status $ac_status" >&5
20795echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798( exit $ac_status )
20799 cat >>confdefs.h <<\_ACEOF
20800#define BROKEN_SNPRINTF 1
20801_ACEOF
20802
20803fi
20804rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20805fi
20806fi
20807
20808
20809# look for field 'ut_host' in header 'utmp.h'
20810 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20811 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
20812 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
20813echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
20814 if eval "test \"\${$ossh_varname+set}\" = set"; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816else
20817
20818 cat >conftest.$ac_ext <<_ACEOF
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824#include <utmp.h>
20825
20826_ACEOF
20827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20828 $EGREP "ut_host" >/dev/null 2>&1; then
20829 eval "$ossh_varname=yes"
20830else
20831 eval "$ossh_varname=no"
20832fi
20833rm -f conftest*
20834
20835fi
20836
20837 ossh_result=`eval 'echo $'"$ossh_varname"`
20838 if test -n "`echo $ossh_varname`"; then
20839 echo "$as_me:$LINENO: result: $ossh_result" >&5
20840echo "${ECHO_T}$ossh_result" >&6
20841 if test "x$ossh_result" = "xyes"; then
20842
20843cat >>confdefs.h <<\_ACEOF
20844#define HAVE_HOST_IN_UTMP 1
20845_ACEOF
20846
20847 fi
20848 else
20849 echo "$as_me:$LINENO: result: no" >&5
20850echo "${ECHO_T}no" >&6
20851 fi
20852
20853
20854# look for field 'ut_host' in header 'utmpx.h'
20855 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20856 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
20857 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
20858echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
20859 if eval "test \"\${$ossh_varname+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861else
20862
20863 cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869#include <utmpx.h>
20870
20871_ACEOF
20872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20873 $EGREP "ut_host" >/dev/null 2>&1; then
20874 eval "$ossh_varname=yes"
20875else
20876 eval "$ossh_varname=no"
20877fi
20878rm -f conftest*
20879
20880fi
20881
20882 ossh_result=`eval 'echo $'"$ossh_varname"`
20883 if test -n "`echo $ossh_varname`"; then
20884 echo "$as_me:$LINENO: result: $ossh_result" >&5
20885echo "${ECHO_T}$ossh_result" >&6
20886 if test "x$ossh_result" = "xyes"; then
20887
20888cat >>confdefs.h <<\_ACEOF
20889#define HAVE_HOST_IN_UTMPX 1
20890_ACEOF
20891
20892 fi
20893 else
20894 echo "$as_me:$LINENO: result: no" >&5
20895echo "${ECHO_T}no" >&6
20896 fi
20897
20898
20899# look for field 'syslen' in header 'utmpx.h'
20900 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20901 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
20902 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
20903echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
20904 if eval "test \"\${$ossh_varname+set}\" = set"; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906else
20907
20908 cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h. */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h. */
20914#include <utmpx.h>
20915
20916_ACEOF
20917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918 $EGREP "syslen" >/dev/null 2>&1; then
20919 eval "$ossh_varname=yes"
20920else
20921 eval "$ossh_varname=no"
20922fi
20923rm -f conftest*
20924
20925fi
20926
20927 ossh_result=`eval 'echo $'"$ossh_varname"`
20928 if test -n "`echo $ossh_varname`"; then
20929 echo "$as_me:$LINENO: result: $ossh_result" >&5
20930echo "${ECHO_T}$ossh_result" >&6
20931 if test "x$ossh_result" = "xyes"; then
20932
20933cat >>confdefs.h <<\_ACEOF
20934#define HAVE_SYSLEN_IN_UTMPX 1
20935_ACEOF
20936
20937 fi
20938 else
20939 echo "$as_me:$LINENO: result: no" >&5
20940echo "${ECHO_T}no" >&6
20941 fi
20942
20943
20944# look for field 'ut_pid' in header 'utmp.h'
20945 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20946 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
20947 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
20948echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
20949 if eval "test \"\${$ossh_varname+set}\" = set"; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951else
20952
20953 cat >conftest.$ac_ext <<_ACEOF
20954/* confdefs.h. */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
20958/* end confdefs.h. */
20959#include <utmp.h>
20960
20961_ACEOF
20962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20963 $EGREP "ut_pid" >/dev/null 2>&1; then
20964 eval "$ossh_varname=yes"
20965else
20966 eval "$ossh_varname=no"
20967fi
20968rm -f conftest*
20969
20970fi
20971
20972 ossh_result=`eval 'echo $'"$ossh_varname"`
20973 if test -n "`echo $ossh_varname`"; then
20974 echo "$as_me:$LINENO: result: $ossh_result" >&5
20975echo "${ECHO_T}$ossh_result" >&6
20976 if test "x$ossh_result" = "xyes"; then
20977
20978cat >>confdefs.h <<\_ACEOF
20979#define HAVE_PID_IN_UTMP 1
20980_ACEOF
20981
20982 fi
20983 else
20984 echo "$as_me:$LINENO: result: no" >&5
20985echo "${ECHO_T}no" >&6
20986 fi
20987
20988
20989# look for field 'ut_type' in header 'utmp.h'
20990 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20991 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
20992 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
20993echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
20994 if eval "test \"\${$ossh_varname+set}\" = set"; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996else
20997
20998 cat >conftest.$ac_ext <<_ACEOF
20999/* confdefs.h. */
21000_ACEOF
21001cat confdefs.h >>conftest.$ac_ext
21002cat >>conftest.$ac_ext <<_ACEOF
21003/* end confdefs.h. */
21004#include <utmp.h>
21005
21006_ACEOF
21007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21008 $EGREP "ut_type" >/dev/null 2>&1; then
21009 eval "$ossh_varname=yes"
21010else
21011 eval "$ossh_varname=no"
21012fi
21013rm -f conftest*
21014
21015fi
21016
21017 ossh_result=`eval 'echo $'"$ossh_varname"`
21018 if test -n "`echo $ossh_varname`"; then
21019 echo "$as_me:$LINENO: result: $ossh_result" >&5
21020echo "${ECHO_T}$ossh_result" >&6
21021 if test "x$ossh_result" = "xyes"; then
21022
21023cat >>confdefs.h <<\_ACEOF
21024#define HAVE_TYPE_IN_UTMP 1
21025_ACEOF
21026
21027 fi
21028 else
21029 echo "$as_me:$LINENO: result: no" >&5
21030echo "${ECHO_T}no" >&6
21031 fi
21032
21033
21034# look for field 'ut_type' in header 'utmpx.h'
21035 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21036 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
21037 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
21038echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
21039 if eval "test \"\${$ossh_varname+set}\" = set"; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21041else
21042
21043 cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049#include <utmpx.h>
21050
21051_ACEOF
21052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21053 $EGREP "ut_type" >/dev/null 2>&1; then
21054 eval "$ossh_varname=yes"
21055else
21056 eval "$ossh_varname=no"
21057fi
21058rm -f conftest*
21059
21060fi
21061
21062 ossh_result=`eval 'echo $'"$ossh_varname"`
21063 if test -n "`echo $ossh_varname`"; then
21064 echo "$as_me:$LINENO: result: $ossh_result" >&5
21065echo "${ECHO_T}$ossh_result" >&6
21066 if test "x$ossh_result" = "xyes"; then
21067
21068cat >>confdefs.h <<\_ACEOF
21069#define HAVE_TYPE_IN_UTMPX 1
21070_ACEOF
21071
21072 fi
21073 else
21074 echo "$as_me:$LINENO: result: no" >&5
21075echo "${ECHO_T}no" >&6
21076 fi
21077
21078
21079# look for field 'ut_tv' in header 'utmp.h'
21080 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21081 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
21082 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
21083echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
21084 if eval "test \"\${$ossh_varname+set}\" = set"; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087
21088 cat >conftest.$ac_ext <<_ACEOF
21089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
21094#include <utmp.h>
21095
21096_ACEOF
21097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21098 $EGREP "ut_tv" >/dev/null 2>&1; then
21099 eval "$ossh_varname=yes"
21100else
21101 eval "$ossh_varname=no"
21102fi
21103rm -f conftest*
21104
21105fi
21106
21107 ossh_result=`eval 'echo $'"$ossh_varname"`
21108 if test -n "`echo $ossh_varname`"; then
21109 echo "$as_me:$LINENO: result: $ossh_result" >&5
21110echo "${ECHO_T}$ossh_result" >&6
21111 if test "x$ossh_result" = "xyes"; then
21112
21113cat >>confdefs.h <<\_ACEOF
21114#define HAVE_TV_IN_UTMP 1
21115_ACEOF
21116
21117 fi
21118 else
21119 echo "$as_me:$LINENO: result: no" >&5
21120echo "${ECHO_T}no" >&6
21121 fi
21122
21123
21124# look for field 'ut_id' in header 'utmp.h'
21125 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21126 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
21127 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
21128echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
21129 if eval "test \"\${$ossh_varname+set}\" = set"; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21131else
21132
21133 cat >conftest.$ac_ext <<_ACEOF
21134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
21138/* end confdefs.h. */
21139#include <utmp.h>
21140
21141_ACEOF
21142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21143 $EGREP "ut_id" >/dev/null 2>&1; then
21144 eval "$ossh_varname=yes"
21145else
21146 eval "$ossh_varname=no"
21147fi
21148rm -f conftest*
21149
21150fi
21151
21152 ossh_result=`eval 'echo $'"$ossh_varname"`
21153 if test -n "`echo $ossh_varname`"; then
21154 echo "$as_me:$LINENO: result: $ossh_result" >&5
21155echo "${ECHO_T}$ossh_result" >&6
21156 if test "x$ossh_result" = "xyes"; then
21157
21158cat >>confdefs.h <<\_ACEOF
21159#define HAVE_ID_IN_UTMP 1
21160_ACEOF
21161
21162 fi
21163 else
21164 echo "$as_me:$LINENO: result: no" >&5
21165echo "${ECHO_T}no" >&6
21166 fi
21167
21168
21169# look for field 'ut_id' in header 'utmpx.h'
21170 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21171 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
21172 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
21173echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
21174 if eval "test \"\${$ossh_varname+set}\" = set"; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177
21178 cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
21184#include <utmpx.h>
21185
21186_ACEOF
21187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21188 $EGREP "ut_id" >/dev/null 2>&1; then
21189 eval "$ossh_varname=yes"
21190else
21191 eval "$ossh_varname=no"
21192fi
21193rm -f conftest*
21194
21195fi
21196
21197 ossh_result=`eval 'echo $'"$ossh_varname"`
21198 if test -n "`echo $ossh_varname`"; then
21199 echo "$as_me:$LINENO: result: $ossh_result" >&5
21200echo "${ECHO_T}$ossh_result" >&6
21201 if test "x$ossh_result" = "xyes"; then
21202
21203cat >>confdefs.h <<\_ACEOF
21204#define HAVE_ID_IN_UTMPX 1
21205_ACEOF
21206
21207 fi
21208 else
21209 echo "$as_me:$LINENO: result: no" >&5
21210echo "${ECHO_T}no" >&6
21211 fi
21212
21213
21214# look for field 'ut_addr' in header 'utmp.h'
21215 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21216 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
21217 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
21218echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
21219 if eval "test \"\${$ossh_varname+set}\" = set"; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221else
21222
21223 cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
21229#include <utmp.h>
21230
21231_ACEOF
21232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21233 $EGREP "ut_addr" >/dev/null 2>&1; then
21234 eval "$ossh_varname=yes"
21235else
21236 eval "$ossh_varname=no"
21237fi
21238rm -f conftest*
21239
21240fi
21241
21242 ossh_result=`eval 'echo $'"$ossh_varname"`
21243 if test -n "`echo $ossh_varname`"; then
21244 echo "$as_me:$LINENO: result: $ossh_result" >&5
21245echo "${ECHO_T}$ossh_result" >&6
21246 if test "x$ossh_result" = "xyes"; then
21247
21248cat >>confdefs.h <<\_ACEOF
21249#define HAVE_ADDR_IN_UTMP 1
21250_ACEOF
21251
21252 fi
21253 else
21254 echo "$as_me:$LINENO: result: no" >&5
21255echo "${ECHO_T}no" >&6
21256 fi
21257
21258
21259# look for field 'ut_addr' in header 'utmpx.h'
21260 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21261 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
21262 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
21263echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
21264 if eval "test \"\${$ossh_varname+set}\" = set"; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266else
21267
21268 cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274#include <utmpx.h>
21275
21276_ACEOF
21277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21278 $EGREP "ut_addr" >/dev/null 2>&1; then
21279 eval "$ossh_varname=yes"
21280else
21281 eval "$ossh_varname=no"
21282fi
21283rm -f conftest*
21284
21285fi
21286
21287 ossh_result=`eval 'echo $'"$ossh_varname"`
21288 if test -n "`echo $ossh_varname`"; then
21289 echo "$as_me:$LINENO: result: $ossh_result" >&5
21290echo "${ECHO_T}$ossh_result" >&6
21291 if test "x$ossh_result" = "xyes"; then
21292
21293cat >>confdefs.h <<\_ACEOF
21294#define HAVE_ADDR_IN_UTMPX 1
21295_ACEOF
21296
21297 fi
21298 else
21299 echo "$as_me:$LINENO: result: no" >&5
21300echo "${ECHO_T}no" >&6
21301 fi
21302
21303
21304# look for field 'ut_addr_v6' in header 'utmp.h'
21305 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21306 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
21307 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
21308echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
21309 if eval "test \"\${$ossh_varname+set}\" = set"; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21311else
21312
21313 cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
21319#include <utmp.h>
21320
21321_ACEOF
21322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21323 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
21324 eval "$ossh_varname=yes"
21325else
21326 eval "$ossh_varname=no"
21327fi
21328rm -f conftest*
21329
21330fi
21331
21332 ossh_result=`eval 'echo $'"$ossh_varname"`
21333 if test -n "`echo $ossh_varname`"; then
21334 echo "$as_me:$LINENO: result: $ossh_result" >&5
21335echo "${ECHO_T}$ossh_result" >&6
21336 if test "x$ossh_result" = "xyes"; then
21337
21338cat >>confdefs.h <<\_ACEOF
21339#define HAVE_ADDR_V6_IN_UTMP 1
21340_ACEOF
21341
21342 fi
21343 else
21344 echo "$as_me:$LINENO: result: no" >&5
21345echo "${ECHO_T}no" >&6
21346 fi
21347
21348
21349# look for field 'ut_addr_v6' in header 'utmpx.h'
21350 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21351 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
21352 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
21353echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
21354 if eval "test \"\${$ossh_varname+set}\" = set"; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21356else
21357
21358 cat >conftest.$ac_ext <<_ACEOF
21359/* confdefs.h. */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h. */
21364#include <utmpx.h>
21365
21366_ACEOF
21367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21368 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
21369 eval "$ossh_varname=yes"
21370else
21371 eval "$ossh_varname=no"
21372fi
21373rm -f conftest*
21374
21375fi
21376
21377 ossh_result=`eval 'echo $'"$ossh_varname"`
21378 if test -n "`echo $ossh_varname`"; then
21379 echo "$as_me:$LINENO: result: $ossh_result" >&5
21380echo "${ECHO_T}$ossh_result" >&6
21381 if test "x$ossh_result" = "xyes"; then
21382
21383cat >>confdefs.h <<\_ACEOF
21384#define HAVE_ADDR_V6_IN_UTMPX 1
21385_ACEOF
21386
21387 fi
21388 else
21389 echo "$as_me:$LINENO: result: no" >&5
21390echo "${ECHO_T}no" >&6
21391 fi
21392
21393
21394# look for field 'ut_exit' in header 'utmp.h'
21395 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21396 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
21397 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
21398echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
21399 if eval "test \"\${$ossh_varname+set}\" = set"; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401else
21402
21403 cat >conftest.$ac_ext <<_ACEOF
21404/* confdefs.h. */
21405_ACEOF
21406cat confdefs.h >>conftest.$ac_ext
21407cat >>conftest.$ac_ext <<_ACEOF
21408/* end confdefs.h. */
21409#include <utmp.h>
21410
21411_ACEOF
21412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413 $EGREP "ut_exit" >/dev/null 2>&1; then
21414 eval "$ossh_varname=yes"
21415else
21416 eval "$ossh_varname=no"
21417fi
21418rm -f conftest*
21419
21420fi
21421
21422 ossh_result=`eval 'echo $'"$ossh_varname"`
21423 if test -n "`echo $ossh_varname`"; then
21424 echo "$as_me:$LINENO: result: $ossh_result" >&5
21425echo "${ECHO_T}$ossh_result" >&6
21426 if test "x$ossh_result" = "xyes"; then
21427
21428cat >>confdefs.h <<\_ACEOF
21429#define HAVE_EXIT_IN_UTMP 1
21430_ACEOF
21431
21432 fi
21433 else
21434 echo "$as_me:$LINENO: result: no" >&5
21435echo "${ECHO_T}no" >&6
21436 fi
21437
21438
21439# look for field 'ut_time' in header 'utmp.h'
21440 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
21441 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
21442 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
21443echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
21444 if eval "test \"\${$ossh_varname+set}\" = set"; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446else
21447
21448 cat >conftest.$ac_ext <<_ACEOF
21449/* confdefs.h. */
21450_ACEOF
21451cat confdefs.h >>conftest.$ac_ext
21452cat >>conftest.$ac_ext <<_ACEOF
21453/* end confdefs.h. */
21454#include <utmp.h>
21455
21456_ACEOF
21457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21458 $EGREP "ut_time" >/dev/null 2>&1; then
21459 eval "$ossh_varname=yes"
21460else
21461 eval "$ossh_varname=no"
21462fi
21463rm -f conftest*
21464
21465fi
21466
21467 ossh_result=`eval 'echo $'"$ossh_varname"`
21468 if test -n "`echo $ossh_varname`"; then
21469 echo "$as_me:$LINENO: result: $ossh_result" >&5
21470echo "${ECHO_T}$ossh_result" >&6
21471 if test "x$ossh_result" = "xyes"; then
21472
21473cat >>confdefs.h <<\_ACEOF
21474#define HAVE_TIME_IN_UTMP 1
21475_ACEOF
21476
21477 fi
21478 else
21479 echo "$as_me:$LINENO: result: no" >&5
21480echo "${ECHO_T}no" >&6
21481 fi
21482
21483
21484# look for field 'ut_time' in header 'utmpx.h'
21485 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21486 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
21487 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
21488echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
21489 if eval "test \"\${$ossh_varname+set}\" = set"; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491else
21492
21493 cat >conftest.$ac_ext <<_ACEOF
21494/* confdefs.h. */
21495_ACEOF
21496cat confdefs.h >>conftest.$ac_ext
21497cat >>conftest.$ac_ext <<_ACEOF
21498/* end confdefs.h. */
21499#include <utmpx.h>
21500
21501_ACEOF
21502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21503 $EGREP "ut_time" >/dev/null 2>&1; then
21504 eval "$ossh_varname=yes"
21505else
21506 eval "$ossh_varname=no"
21507fi
21508rm -f conftest*
21509
21510fi
21511
21512 ossh_result=`eval 'echo $'"$ossh_varname"`
21513 if test -n "`echo $ossh_varname`"; then
21514 echo "$as_me:$LINENO: result: $ossh_result" >&5
21515echo "${ECHO_T}$ossh_result" >&6
21516 if test "x$ossh_result" = "xyes"; then
21517
21518cat >>confdefs.h <<\_ACEOF
21519#define HAVE_TIME_IN_UTMPX 1
21520_ACEOF
21521
21522 fi
21523 else
21524 echo "$as_me:$LINENO: result: no" >&5
21525echo "${ECHO_T}no" >&6
21526 fi
21527
21528
21529# look for field 'ut_tv' in header 'utmpx.h'
21530 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
21531 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
21532 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
21533echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
21534 if eval "test \"\${$ossh_varname+set}\" = set"; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536else
21537
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 <utmpx.h>
21545
21546_ACEOF
21547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21548 $EGREP "ut_tv" >/dev/null 2>&1; then
21549 eval "$ossh_varname=yes"
21550else
21551 eval "$ossh_varname=no"
21552fi
21553rm -f conftest*
21554
21555fi
21556
21557 ossh_result=`eval 'echo $'"$ossh_varname"`
21558 if test -n "`echo $ossh_varname`"; then
21559 echo "$as_me:$LINENO: result: $ossh_result" >&5
21560echo "${ECHO_T}$ossh_result" >&6
21561 if test "x$ossh_result" = "xyes"; then
21562
21563cat >>confdefs.h <<\_ACEOF
21564#define HAVE_TV_IN_UTMPX 1
21565_ACEOF
21566
21567 fi
21568 else
21569 echo "$as_me:$LINENO: result: no" >&5
21570echo "${ECHO_T}no" >&6
21571 fi
21572
21573
21574echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21575echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
21576if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579 cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585$ac_includes_default
21586int
21587main ()
21588{
21589static struct stat ac_aggr;
21590if (ac_aggr.st_blksize)
21591return 0;
21592 ;
21593 return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext
21597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_cv_member_struct_stat_st_blksize=yes
21619else
21620 echo "$as_me: failed program was:" >&5
21621sed 's/^/| /' conftest.$ac_ext >&5
21622
21623cat >conftest.$ac_ext <<_ACEOF
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629$ac_includes_default
21630int
21631main ()
21632{
21633static struct stat ac_aggr;
21634if (sizeof ac_aggr.st_blksize)
21635return 0;
21636 ;
21637 return 0;
21638}
21639_ACEOF
21640rm -f conftest.$ac_objext
21641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21642 (eval $ac_compile) 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -z "$ac_c_werror_flag"
21650 || test ! -s conftest.err'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest.$ac_objext'
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; }; then
21662 ac_cv_member_struct_stat_st_blksize=yes
21663else
21664 echo "$as_me: failed program was:" >&5
21665sed 's/^/| /' conftest.$ac_ext >&5
21666
21667ac_cv_member_struct_stat_st_blksize=no
21668fi
21669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21670fi
21671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21672fi
21673echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21674echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
21675if test $ac_cv_member_struct_stat_st_blksize = yes; then
21676
21677cat >>confdefs.h <<_ACEOF
21678#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21679_ACEOF
21680
21681
21682fi
21683
21684echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
21685echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6
21686if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688else
21689 cat >conftest.$ac_ext <<_ACEOF
21690/* confdefs.h. */
21691_ACEOF
21692cat confdefs.h >>conftest.$ac_ext
21693cat >>conftest.$ac_ext <<_ACEOF
21694/* end confdefs.h. */
21695
21696#include <stdio.h>
21697#if HAVE_SYS_TYPES_H
21698# include <sys/types.h>
21699#endif
21700#include <netinet/in.h>
21701#include <arpa/nameser.h>
21702#include <resolv.h>
21703
21704
21705int
21706main ()
21707{
21708static struct __res_state ac_aggr;
21709if (ac_aggr.retrans)
21710return 0;
21711 ;
21712 return 0;
21713}
21714_ACEOF
21715rm -f conftest.$ac_objext
21716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_c_werror_flag"
21725 || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_cv_member_struct___res_state_retrans=yes
21738else
21739 echo "$as_me: failed program was:" >&5
21740sed 's/^/| /' conftest.$ac_ext >&5
21741
21742cat >conftest.$ac_ext <<_ACEOF
21743/* confdefs.h. */
21744_ACEOF
21745cat confdefs.h >>conftest.$ac_ext
21746cat >>conftest.$ac_ext <<_ACEOF
21747/* end confdefs.h. */
21748
21749#include <stdio.h>
21750#if HAVE_SYS_TYPES_H
21751# include <sys/types.h>
21752#endif
21753#include <netinet/in.h>
21754#include <arpa/nameser.h>
21755#include <resolv.h>
21756
21757
21758int
21759main ()
21760{
21761static struct __res_state ac_aggr;
21762if (sizeof ac_aggr.retrans)
21763return 0;
21764 ;
21765 return 0;
21766}
21767_ACEOF
21768rm -f conftest.$ac_objext
21769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770 (eval $ac_compile) 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try='test -z "$ac_c_werror_flag"
21778 || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest.$ac_objext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_cv_member_struct___res_state_retrans=yes
21791else
21792 echo "$as_me: failed program was:" >&5
21793sed 's/^/| /' conftest.$ac_ext >&5
21794
21795ac_cv_member_struct___res_state_retrans=no
21796fi
21797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21798fi
21799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21800fi
21801echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
21802echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6
21803if test $ac_cv_member_struct___res_state_retrans = yes; then
21804 :
21805else
21806
21807cat >>confdefs.h <<\_ACEOF
21808#define __res_state state
21809_ACEOF
21810
21811fi
21812
21813
21814echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
21815echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
21816if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819
21820 cat >conftest.$ac_ext <<_ACEOF
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
21826
21827#include <sys/types.h>
21828#include <sys/socket.h>
21829
21830int
21831main ()
21832{
21833 struct sockaddr_storage s; s.ss_family = 1;
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838rm -f conftest.$ac_objext
21839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21840 (eval $ac_compile) 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -z "$ac_c_werror_flag"
21848 || test ! -s conftest.err'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_have_ss_family_in_struct_ss="yes"
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_cv_have_ss_family_in_struct_ss="no"
21866fi
21867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21868
21869fi
21870echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
21871echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
21872if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
21873
21874cat >>confdefs.h <<\_ACEOF
21875#define HAVE_SS_FAMILY_IN_SS 1
21876_ACEOF
21877
21878fi
21879
21880echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
21881echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
21882if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21884else
21885
21886 cat >conftest.$ac_ext <<_ACEOF
21887/* confdefs.h. */
21888_ACEOF
21889cat confdefs.h >>conftest.$ac_ext
21890cat >>conftest.$ac_ext <<_ACEOF
21891/* end confdefs.h. */
21892
21893#include <sys/types.h>
21894#include <sys/socket.h>
21895
21896int
21897main ()
21898{
21899 struct sockaddr_storage s; s.__ss_family = 1;
21900 ;
21901 return 0;
21902}
21903_ACEOF
21904rm -f conftest.$ac_objext
21905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21906 (eval $ac_compile) 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
21913 { ac_try='test -z "$ac_c_werror_flag"
21914 || test ! -s conftest.err'
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; } &&
21920 { ac_try='test -s conftest.$ac_objext'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; }; then
21926 ac_cv_have___ss_family_in_struct_ss="yes"
21927else
21928 echo "$as_me: failed program was:" >&5
21929sed 's/^/| /' conftest.$ac_ext >&5
21930
21931 ac_cv_have___ss_family_in_struct_ss="no"
21932
21933fi
21934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21935
21936fi
21937echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
21938echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
21939if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
21940
21941cat >>confdefs.h <<\_ACEOF
21942#define HAVE___SS_FAMILY_IN_SS 1
21943_ACEOF
21944
21945fi
21946
21947echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
21948echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
21949if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951else
21952
21953 cat >conftest.$ac_ext <<_ACEOF
21954/* confdefs.h. */
21955_ACEOF
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
21958/* end confdefs.h. */
21959
21960#include <pwd.h>
21961
21962int
21963main ()
21964{
21965 struct passwd p; p.pw_class = 0;
21966 ;
21967 return 0;
21968}
21969_ACEOF
21970rm -f conftest.$ac_objext
21971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972 (eval $ac_compile) 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
21979 { ac_try='test -z "$ac_c_werror_flag"
21980 || test ! -s conftest.err'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest.$ac_objext'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 ac_cv_have_pw_class_in_struct_passwd="yes"
21993else
21994 echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996
21997 ac_cv_have_pw_class_in_struct_passwd="no"
21998
21999fi
22000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22001
22002fi
22003echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
22004echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
22005if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
22006
22007cat >>confdefs.h <<\_ACEOF
22008#define HAVE_PW_CLASS_IN_PASSWD 1
22009_ACEOF
22010
22011fi
22012
22013echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
22014echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
22015if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018
22019 cat >conftest.$ac_ext <<_ACEOF
22020/* confdefs.h. */
22021_ACEOF
22022cat confdefs.h >>conftest.$ac_ext
22023cat >>conftest.$ac_ext <<_ACEOF
22024/* end confdefs.h. */
22025
22026#include <pwd.h>
22027
22028int
22029main ()
22030{
22031 struct passwd p; p.pw_expire = 0;
22032 ;
22033 return 0;
22034}
22035_ACEOF
22036rm -f conftest.$ac_objext
22037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22038 (eval $ac_compile) 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_c_werror_flag"
22046 || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_have_pw_expire_in_struct_passwd="yes"
22059else
22060 echo "$as_me: failed program was:" >&5
22061sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ac_cv_have_pw_expire_in_struct_passwd="no"
22064
22065fi
22066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22067
22068fi
22069echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
22070echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
22071if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
22072
22073cat >>confdefs.h <<\_ACEOF
22074#define HAVE_PW_EXPIRE_IN_PASSWD 1
22075_ACEOF
22076
22077fi
22078
22079echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
22080echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
22081if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083else
22084
22085 cat >conftest.$ac_ext <<_ACEOF
22086/* confdefs.h. */
22087_ACEOF
22088cat confdefs.h >>conftest.$ac_ext
22089cat >>conftest.$ac_ext <<_ACEOF
22090/* end confdefs.h. */
22091
22092#include <pwd.h>
22093
22094int
22095main ()
22096{
22097 struct passwd p; p.pw_change = 0;
22098 ;
22099 return 0;
22100}
22101_ACEOF
22102rm -f conftest.$ac_objext
22103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104 (eval $ac_compile) 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
22111 { ac_try='test -z "$ac_c_werror_flag"
22112 || test ! -s conftest.err'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest.$ac_objext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 ac_cv_have_pw_change_in_struct_passwd="yes"
22125else
22126 echo "$as_me: failed program was:" >&5
22127sed 's/^/| /' conftest.$ac_ext >&5
22128
22129 ac_cv_have_pw_change_in_struct_passwd="no"
22130
22131fi
22132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22133
22134fi
22135echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
22136echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
22137if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
22138
22139cat >>confdefs.h <<\_ACEOF
22140#define HAVE_PW_CHANGE_IN_PASSWD 1
22141_ACEOF
22142
22143fi
22144
22145echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
22146echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
22147if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149else
22150
22151 cat >conftest.$ac_ext <<_ACEOF
22152
22153#include <sys/types.h>
22154#include <sys/socket.h>
22155#include <sys/uio.h>
22156int main() {
22157#ifdef msg_accrights
22158#error "msg_accrights is a macro"
22159exit(1);
22160#endif
22161struct msghdr m;
22162m.msg_accrights = 0;
22163exit(0);
22164}
22165
22166_ACEOF
22167rm -f conftest.$ac_objext
22168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22169 (eval $ac_compile) 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } &&
22176 { ac_try='test -z "$ac_c_werror_flag"
22177 || test ! -s conftest.err'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; } &&
22183 { ac_try='test -s conftest.$ac_objext'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_have_accrights_in_msghdr="yes"
22190else
22191 echo "$as_me: failed program was:" >&5
22192sed 's/^/| /' conftest.$ac_ext >&5
22193
22194 ac_cv_have_accrights_in_msghdr="no"
22195
22196fi
22197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22198
22199fi
22200echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
22201echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
22202if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
22203
22204cat >>confdefs.h <<\_ACEOF
22205#define HAVE_ACCRIGHTS_IN_MSGHDR 1
22206_ACEOF
22207
22208fi
22209
22210echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
22211echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
22212if test "${ac_cv_have_control_in_msghdr+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215
22216 cat >conftest.$ac_ext <<_ACEOF
22217
22218#include <sys/types.h>
22219#include <sys/socket.h>
22220#include <sys/uio.h>
22221int main() {
22222#ifdef msg_control
22223#error "msg_control is a macro"
22224exit(1);
22225#endif
22226struct msghdr m;
22227m.msg_control = 0;
22228exit(0);
22229}
22230
22231_ACEOF
22232rm -f conftest.$ac_objext
22233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22234 (eval $ac_compile) 2>conftest.er1
22235 ac_status=$?
22236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } &&
22241 { ac_try='test -z "$ac_c_werror_flag"
22242 || test ! -s conftest.err'
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try='test -s conftest.$ac_objext'
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_have_control_in_msghdr="yes"
22255else
22256 echo "$as_me: failed program was:" >&5
22257sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_cv_have_control_in_msghdr="no"
22260
22261fi
22262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22263
22264fi
22265echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
22266echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
22267if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
22268
22269cat >>confdefs.h <<\_ACEOF
22270#define HAVE_CONTROL_IN_MSGHDR 1
22271_ACEOF
22272
22273fi
22274
22275echo "$as_me:$LINENO: checking if libc defines __progname" >&5
22276echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
22277if test "${ac_cv_libc_defines___progname+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279else
22280
22281 cat >conftest.$ac_ext <<_ACEOF
22282/* confdefs.h. */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h. */
22287
22288int
22289main ()
22290{
22291 extern char *__progname; printf("%s", __progname);
22292 ;
22293 return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext conftest$ac_exeext
22297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22298 (eval $ac_link) 2>conftest.er1
22299 ac_status=$?
22300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_c_werror_flag"
22306 || test ! -s conftest.err'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 ac_cv_libc_defines___progname="yes"
22319else
22320 echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 ac_cv_libc_defines___progname="no"
22324
22325fi
22326rm -f conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22328
22329fi
22330echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
22331echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
22332if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
22333
22334cat >>confdefs.h <<\_ACEOF
22335#define HAVE___PROGNAME 1
22336_ACEOF
22337
22338fi
22339
22340echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
22341echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
22342if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22344else
22345
22346 cat >conftest.$ac_ext <<_ACEOF
22347/* confdefs.h. */
22348_ACEOF
22349cat confdefs.h >>conftest.$ac_ext
22350cat >>conftest.$ac_ext <<_ACEOF
22351/* end confdefs.h. */
22352
22353#include <stdio.h>
22354
22355int
22356main ()
22357{
22358 printf("%s", __FUNCTION__);
22359 ;
22360 return 0;
22361}
22362_ACEOF
22363rm -f conftest.$ac_objext conftest$ac_exeext
22364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365 (eval $ac_link) 2>conftest.er1
22366 ac_status=$?
22367 grep -v '^ *+' conftest.er1 >conftest.err
22368 rm -f conftest.er1
22369 cat conftest.err >&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
22372 { ac_try='test -z "$ac_c_werror_flag"
22373 || test ! -s conftest.err'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; } &&
22379 { ac_try='test -s conftest$ac_exeext'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }; then
22385 ac_cv_cc_implements___FUNCTION__="yes"
22386else
22387 echo "$as_me: failed program was:" >&5
22388sed 's/^/| /' conftest.$ac_ext >&5
22389
22390 ac_cv_cc_implements___FUNCTION__="no"
22391
22392fi
22393rm -f conftest.err conftest.$ac_objext \
22394 conftest$ac_exeext conftest.$ac_ext
22395
22396fi
22397echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
22398echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
22399if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
22400
22401cat >>confdefs.h <<\_ACEOF
22402#define HAVE___FUNCTION__ 1
22403_ACEOF
22404
22405fi
22406
22407echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
22408echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
22409if test "${ac_cv_cc_implements___func__+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22411else
22412
22413 cat >conftest.$ac_ext <<_ACEOF
22414/* confdefs.h. */
22415_ACEOF
22416cat confdefs.h >>conftest.$ac_ext
22417cat >>conftest.$ac_ext <<_ACEOF
22418/* end confdefs.h. */
22419
22420#include <stdio.h>
22421
22422int
22423main ()
22424{
22425 printf("%s", __func__);
22426 ;
22427 return 0;
22428}
22429_ACEOF
22430rm -f conftest.$ac_objext conftest$ac_exeext
22431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22432 (eval $ac_link) 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } &&
22439 { ac_try='test -z "$ac_c_werror_flag"
22440 || test ! -s conftest.err'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; } &&
22446 { ac_try='test -s conftest$ac_exeext'
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; }; then
22452 ac_cv_cc_implements___func__="yes"
22453else
22454 echo "$as_me: failed program was:" >&5
22455sed 's/^/| /' conftest.$ac_ext >&5
22456
22457 ac_cv_cc_implements___func__="no"
22458
22459fi
22460rm -f conftest.err conftest.$ac_objext \
22461 conftest$ac_exeext conftest.$ac_ext
22462
22463fi
22464echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
22465echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
22466if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
22467
22468cat >>confdefs.h <<\_ACEOF
22469#define HAVE___func__ 1
22470_ACEOF
22471
22472fi
22473
22474echo "$as_me:$LINENO: checking whether va_copy exists" >&5
22475echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6
22476if test "${ac_cv_have_va_copy+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22478else
22479
22480 cat >conftest.$ac_ext <<_ACEOF
22481/* confdefs.h. */
22482_ACEOF
22483cat confdefs.h >>conftest.$ac_ext
22484cat >>conftest.$ac_ext <<_ACEOF
22485/* end confdefs.h. */
22486#include <stdarg.h>
22487 va_list x,y;
22488int
22489main ()
22490{
22491va_copy(x,y);
22492 ;
22493 return 0;
22494}
22495_ACEOF
22496rm -f conftest.$ac_objext conftest$ac_exeext
22497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag"
22506 || test ! -s conftest.err'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_cv_have_va_copy="yes"
22519else
22520 echo "$as_me: failed program was:" >&5
22521sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 ac_cv_have_va_copy="no"
22524
22525fi
22526rm -f conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22528
22529fi
22530echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
22531echo "${ECHO_T}$ac_cv_have_va_copy" >&6
22532if test "x$ac_cv_have_va_copy" = "xyes" ; then
22533
22534cat >>confdefs.h <<\_ACEOF
22535#define HAVE_VA_COPY 1
22536_ACEOF
22537
22538fi
22539
22540echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
22541echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6
22542if test "${ac_cv_have___va_copy+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544else
22545
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552#include <stdarg.h>
22553 va_list x,y;
22554int
22555main ()
22556{
22557__va_copy(x,y);
22558 ;
22559 return 0;
22560}
22561_ACEOF
22562rm -f conftest.$ac_objext conftest$ac_exeext
22563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564 (eval $ac_link) 2>conftest.er1
22565 ac_status=$?
22566 grep -v '^ *+' conftest.er1 >conftest.err
22567 rm -f conftest.er1
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } &&
22571 { ac_try='test -z "$ac_c_werror_flag"
22572 || test ! -s conftest.err'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest$ac_exeext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_cv_have___va_copy="yes"
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ac_cv_have___va_copy="no"
22590
22591fi
22592rm -f conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22594
22595fi
22596echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
22597echo "${ECHO_T}$ac_cv_have___va_copy" >&6
22598if test "x$ac_cv_have___va_copy" = "xyes" ; then
22599
22600cat >>confdefs.h <<\_ACEOF
22601#define HAVE___VA_COPY 1
22602_ACEOF
22603
22604fi
22605
22606echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
22607echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
22608if test "${ac_cv_have_getopt_optreset+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610else
22611
22612 cat >conftest.$ac_ext <<_ACEOF
22613/* confdefs.h. */
22614_ACEOF
22615cat confdefs.h >>conftest.$ac_ext
22616cat >>conftest.$ac_ext <<_ACEOF
22617/* end confdefs.h. */
22618
22619#include <getopt.h>
22620
22621int
22622main ()
22623{
22624 extern int optreset; optreset = 0;
22625 ;
22626 return 0;
22627}
22628_ACEOF
22629rm -f conftest.$ac_objext conftest$ac_exeext
22630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631 (eval $ac_link) 2>conftest.er1
22632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try='test -z "$ac_c_werror_flag"
22639 || test ! -s conftest.err'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; } &&
22645 { ac_try='test -s conftest$ac_exeext'
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 ac_cv_have_getopt_optreset="yes"
22652else
22653 echo "$as_me: failed program was:" >&5
22654sed 's/^/| /' conftest.$ac_ext >&5
22655
22656 ac_cv_have_getopt_optreset="no"
22657
22658fi
22659rm -f conftest.err conftest.$ac_objext \
22660 conftest$ac_exeext conftest.$ac_ext
22661
22662fi
22663echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
22664echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
22665if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
22666
22667cat >>confdefs.h <<\_ACEOF
22668#define HAVE_GETOPT_OPTRESET 1
22669_ACEOF
22670
22671fi
22672
22673echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
22674echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
22675if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22677else
22678
22679 cat >conftest.$ac_ext <<_ACEOF
22680/* confdefs.h. */
22681_ACEOF
22682cat confdefs.h >>conftest.$ac_ext
22683cat >>conftest.$ac_ext <<_ACEOF
22684/* end confdefs.h. */
22685
22686int
22687main ()
22688{
22689 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
22690 ;
22691 return 0;
22692}
22693_ACEOF
22694rm -f conftest.$ac_objext conftest$ac_exeext
22695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22696 (eval $ac_link) 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
22703 { ac_try='test -z "$ac_c_werror_flag"
22704 || test ! -s conftest.err'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; } &&
22710 { ac_try='test -s conftest$ac_exeext'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 ac_cv_libc_defines_sys_errlist="yes"
22717else
22718 echo "$as_me: failed program was:" >&5
22719sed 's/^/| /' conftest.$ac_ext >&5
22720
22721 ac_cv_libc_defines_sys_errlist="no"
22722
22723fi
22724rm -f conftest.err conftest.$ac_objext \
22725 conftest$ac_exeext conftest.$ac_ext
22726
22727fi
22728echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
22729echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
22730if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
22731
22732cat >>confdefs.h <<\_ACEOF
22733#define HAVE_SYS_ERRLIST 1
22734_ACEOF
22735
22736fi
22737
22738
22739echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
22740echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
22741if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744
22745 cat >conftest.$ac_ext <<_ACEOF
22746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
22751
22752int
22753main ()
22754{
22755 extern int sys_nerr; printf("%i", sys_nerr);
22756 ;
22757 return 0;
22758}
22759_ACEOF
22760rm -f conftest.$ac_objext conftest$ac_exeext
22761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762 (eval $ac_link) 2>conftest.er1
22763 ac_status=$?
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } &&
22769 { ac_try='test -z "$ac_c_werror_flag"
22770 || test ! -s conftest.err'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; } &&
22776 { ac_try='test -s conftest$ac_exeext'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22779 ac_status=$?
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ac_cv_libc_defines_sys_nerr="yes"
22783else
22784 echo "$as_me: failed program was:" >&5
22785sed 's/^/| /' conftest.$ac_ext >&5
22786
22787 ac_cv_libc_defines_sys_nerr="no"
22788
22789fi
22790rm -f conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22792
22793fi
22794echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
22795echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
22796if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
22797
22798cat >>confdefs.h <<\_ACEOF
22799#define HAVE_SYS_NERR 1
22800_ACEOF
22801
22802fi
22803
22804SCARD_MSG="no"
22805# Check whether user wants sectok support
22806
22807# Check whether --with-sectok or --without-sectok was given.
22808if test "${with_sectok+set}" = set; then
22809 withval="$with_sectok"
22810
22811 if test "x$withval" != "xno" ; then
22812 if test "x$withval" != "xyes" ; then
22813 CPPFLAGS="$CPPFLAGS -I${withval}"
22814 LDFLAGS="$LDFLAGS -L${withval}"
22815 if test ! -z "$need_dash_r" ; then
22816 LDFLAGS="$LDFLAGS -R${withval}"
22817 fi
22818 if test ! -z "$blibpath" ; then
22819 blibpath="$blibpath:${withval}"
22820 fi
22821 fi
22822
22823for ac_header in sectok.h
22824do
22825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22826if eval "test \"\${$as_ac_Header+set}\" = set"; then
22827 echo "$as_me:$LINENO: checking for $ac_header" >&5
22828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22829if eval "test \"\${$as_ac_Header+set}\" = set"; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831fi
22832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22834else
22835 # Is the header compilable?
22836echo "$as_me:$LINENO: checking $ac_header usability" >&5
22837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22838cat >conftest.$ac_ext <<_ACEOF
22839/* confdefs.h. */
22840_ACEOF
22841cat confdefs.h >>conftest.$ac_ext
22842cat >>conftest.$ac_ext <<_ACEOF
22843/* end confdefs.h. */
22844$ac_includes_default
22845#include <$ac_header>
22846_ACEOF
22847rm -f conftest.$ac_objext
22848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22849 (eval $ac_compile) 2>conftest.er1
22850 ac_status=$?
22851 grep -v '^ *+' conftest.er1 >conftest.err
22852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
22856 { ac_try='test -z "$ac_c_werror_flag"
22857 || test ! -s conftest.err'
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; } &&
22863 { ac_try='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 ac_header_compiler=yes
22870else
22871 echo "$as_me: failed program was:" >&5
22872sed 's/^/| /' conftest.$ac_ext >&5
22873
22874ac_header_compiler=no
22875fi
22876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22878echo "${ECHO_T}$ac_header_compiler" >&6
22879
22880# Is the header present?
22881echo "$as_me:$LINENO: checking $ac_header presence" >&5
22882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22883cat >conftest.$ac_ext <<_ACEOF
22884/* confdefs.h. */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h. */
22889#include <$ac_header>
22890_ACEOF
22891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22893 ac_status=$?
22894 grep -v '^ *+' conftest.er1 >conftest.err
22895 rm -f conftest.er1
22896 cat conftest.err >&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } >/dev/null; then
22899 if test -s conftest.err; then
22900 ac_cpp_err=$ac_c_preproc_warn_flag
22901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22902 else
22903 ac_cpp_err=
22904 fi
22905else
22906 ac_cpp_err=yes
22907fi
22908if test -z "$ac_cpp_err"; then
22909 ac_header_preproc=yes
22910else
22911 echo "$as_me: failed program was:" >&5
22912sed 's/^/| /' conftest.$ac_ext >&5
22913
22914 ac_header_preproc=no
22915fi
22916rm -f conftest.err conftest.$ac_ext
22917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22918echo "${ECHO_T}$ac_header_preproc" >&6
22919
22920# So? What about this header?
22921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22922 yes:no: )
22923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22927 ac_header_preproc=yes
22928 ;;
22929 no:yes:* )
22930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22942 (
22943 cat <<\_ASBOX
22944## ------------------------------------------- ##
22945## Report this to openssh-unix-dev@mindrot.org ##
22946## ------------------------------------------- ##
22947_ASBOX
22948 ) |
22949 sed "s/^/$as_me: WARNING: /" >&2
22950 ;;
22951esac
22952echo "$as_me:$LINENO: checking for $ac_header" >&5
22953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22954if eval "test \"\${$as_ac_Header+set}\" = set"; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22956else
22957 eval "$as_ac_Header=\$ac_header_preproc"
22958fi
22959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22961
22962fi
22963if test `eval echo '${'$as_ac_Header'}'` = yes; then
22964 cat >>confdefs.h <<_ACEOF
22965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22966_ACEOF
22967
22968fi
22969
22970done
22971
22972 if test "$ac_cv_header_sectok_h" != yes; then
22973 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
22974echo "$as_me: error: Can't find sectok.h" >&2;}
22975 { (exit 1); exit 1; }; }
22976 fi
22977
22978echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
22979echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
22980if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22982else
22983 ac_check_lib_save_LIBS=$LIBS
22984LIBS="-lsectok $LIBS"
22985cat >conftest.$ac_ext <<_ACEOF
22986/* confdefs.h. */
22987_ACEOF
22988cat confdefs.h >>conftest.$ac_ext
22989cat >>conftest.$ac_ext <<_ACEOF
22990/* end confdefs.h. */
22991
22992/* Override any gcc2 internal prototype to avoid an error. */
22993#ifdef __cplusplus
22994extern "C"
22995#endif
22996/* We use char because int might match the return type of a gcc2
22997 builtin and then its argument prototype would still apply. */
22998char sectok_open ();
22999int
23000main ()
23001{
23002sectok_open ();
23003 ;
23004 return 0;
23005}
23006_ACEOF
23007rm -f conftest.$ac_objext conftest$ac_exeext
23008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23009 (eval $ac_link) 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } &&
23016 { ac_try='test -z "$ac_c_werror_flag"
23017 || test ! -s conftest.err'
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; } &&
23023 { ac_try='test -s conftest$ac_exeext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_lib_sectok_sectok_open=yes
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034ac_cv_lib_sectok_sectok_open=no
23035fi
23036rm -f conftest.err conftest.$ac_objext \
23037 conftest$ac_exeext conftest.$ac_ext
23038LIBS=$ac_check_lib_save_LIBS
23039fi
23040echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
23041echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
23042if test $ac_cv_lib_sectok_sectok_open = yes; then
23043 cat >>confdefs.h <<_ACEOF
23044#define HAVE_LIBSECTOK 1
23045_ACEOF
23046
23047 LIBS="-lsectok $LIBS"
23048
23049fi
23050
23051 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
23052 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
23053echo "$as_me: error: Can't find libsectok" >&2;}
23054 { (exit 1); exit 1; }; }
23055 fi
23056
23057cat >>confdefs.h <<\_ACEOF
23058#define SMARTCARD 1
23059_ACEOF
23060
23061
23062cat >>confdefs.h <<\_ACEOF
23063#define USE_SECTOK 1
23064_ACEOF
23065
23066 SCARD_MSG="yes, using sectok"
23067 fi
23068
23069
23070fi;
23071
23072# Check whether user wants OpenSC support
23073OPENSC_CONFIG="no"
23074
23075# Check whether --with-opensc or --without-opensc was given.
23076if test "${with_opensc+set}" = set; then
23077 withval="$with_opensc"
23078
23079 if test "x$withval" != "xno" ; then
23080 if test "x$withval" != "xyes" ; then
23081 OPENSC_CONFIG=$withval/bin/opensc-config
23082 else
23083 # Extract the first word of "opensc-config", so it can be a program name with args.
23084set dummy opensc-config; ac_word=$2
23085echo "$as_me:$LINENO: checking for $ac_word" >&5
23086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23087if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089else
23090 case $OPENSC_CONFIG in
23091 [\\/]* | ?:[\\/]*)
23092 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
23093 ;;
23094 *)
23095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23096for as_dir in $PATH
23097do
23098 IFS=$as_save_IFS
23099 test -z "$as_dir" && as_dir=.
23100 for ac_exec_ext in '' $ac_executable_extensions; do
23101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23102 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23104 break 2
23105 fi
23106done
23107done
23108
23109 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
23110 ;;
23111esac
23112fi
23113OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
23114
23115if test -n "$OPENSC_CONFIG"; then
23116 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
23117echo "${ECHO_T}$OPENSC_CONFIG" >&6
23118else
23119 echo "$as_me:$LINENO: result: no" >&5
23120echo "${ECHO_T}no" >&6
23121fi
23122
23123 fi
23124 if test "$OPENSC_CONFIG" != "no"; then
23125 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
23126 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
23127 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
23128 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
23129 cat >>confdefs.h <<\_ACEOF
23130#define SMARTCARD 1
23131_ACEOF
23132
23133
23134cat >>confdefs.h <<\_ACEOF
23135#define USE_OPENSC 1
23136_ACEOF
23137
23138 SCARD_MSG="yes, using OpenSC"
23139 fi
23140 fi
23141
23142
23143fi;
23144
23145# Check libraries needed by DNS fingerprint support
23146echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
23147echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
23148if test "${ac_cv_search_getrrsetbyname+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23150else
23151 ac_func_search_save_LIBS=$LIBS
23152ac_cv_search_getrrsetbyname=no
23153cat >conftest.$ac_ext <<_ACEOF
23154/* confdefs.h. */
23155_ACEOF
23156cat confdefs.h >>conftest.$ac_ext
23157cat >>conftest.$ac_ext <<_ACEOF
23158/* end confdefs.h. */
23159
23160/* Override any gcc2 internal prototype to avoid an error. */
23161#ifdef __cplusplus
23162extern "C"
23163#endif
23164/* We use char because int might match the return type of a gcc2
23165 builtin and then its argument prototype would still apply. */
23166char getrrsetbyname ();
23167int
23168main ()
23169{
23170getrrsetbyname ();
23171 ;
23172 return 0;
23173}
23174_ACEOF
23175rm -f conftest.$ac_objext conftest$ac_exeext
23176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23177 (eval $ac_link) 2>conftest.er1
23178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -z "$ac_c_werror_flag"
23185 || test ! -s conftest.err'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23188 ac_status=$?
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; } &&
23191 { ac_try='test -s conftest$ac_exeext'
23192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193 (eval $ac_try) 2>&5
23194 ac_status=$?
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ac_cv_search_getrrsetbyname="none required"
23198else
23199 echo "$as_me: failed program was:" >&5
23200sed 's/^/| /' conftest.$ac_ext >&5
23201
23202fi
23203rm -f conftest.err conftest.$ac_objext \
23204 conftest$ac_exeext conftest.$ac_ext
23205if test "$ac_cv_search_getrrsetbyname" = no; then
23206 for ac_lib in resolv; do
23207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23208 cat >conftest.$ac_ext <<_ACEOF
23209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
23214
23215/* Override any gcc2 internal prototype to avoid an error. */
23216#ifdef __cplusplus
23217extern "C"
23218#endif
23219/* We use char because int might match the return type of a gcc2
23220 builtin and then its argument prototype would still apply. */
23221char getrrsetbyname ();
23222int
23223main ()
23224{
23225getrrsetbyname ();
23226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest.$ac_objext conftest$ac_exeext
23231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23232 (eval $ac_link) 2>conftest.er1
23233 ac_status=$?
23234 grep -v '^ *+' conftest.er1 >conftest.err
23235 rm -f conftest.er1
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try='test -z "$ac_c_werror_flag"
23240 || test ! -s conftest.err'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest$ac_exeext'
23247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23249 ac_status=$?
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_search_getrrsetbyname="-l$ac_lib"
23253break
23254else
23255 echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258fi
23259rm -f conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
23261 done
23262fi
23263LIBS=$ac_func_search_save_LIBS
23264fi
23265echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
23266echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
23267if test "$ac_cv_search_getrrsetbyname" != no; then
23268 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
23269
23270cat >>confdefs.h <<\_ACEOF
23271#define HAVE_GETRRSETBYNAME 1
23272_ACEOF
23273
23274else
23275
23276 # Needed by our getrrsetbyname()
23277 echo "$as_me:$LINENO: checking for library containing res_query" >&5
23278echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
23279if test "${ac_cv_search_res_query+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23281else
23282 ac_func_search_save_LIBS=$LIBS
23283ac_cv_search_res_query=no
23284cat >conftest.$ac_ext <<_ACEOF
23285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
23290
23291/* Override any gcc2 internal prototype to avoid an error. */
23292#ifdef __cplusplus
23293extern "C"
23294#endif
23295/* We use char because int might match the return type of a gcc2
23296 builtin and then its argument prototype would still apply. */
23297char res_query ();
23298int
23299main ()
23300{
23301res_query ();
23302 ;
23303 return 0;
23304}
23305_ACEOF
23306rm -f conftest.$ac_objext conftest$ac_exeext
23307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308 (eval $ac_link) 2>conftest.er1
23309 ac_status=$?
23310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try='test -z "$ac_c_werror_flag"
23316 || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest$ac_exeext'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_cv_search_res_query="none required"
23329else
23330 echo "$as_me: failed program was:" >&5
23331sed 's/^/| /' conftest.$ac_ext >&5
23332
23333fi
23334rm -f conftest.err conftest.$ac_objext \
23335 conftest$ac_exeext conftest.$ac_ext
23336if test "$ac_cv_search_res_query" = no; then
23337 for ac_lib in resolv; do
23338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23339 cat >conftest.$ac_ext <<_ACEOF
23340/* confdefs.h. */
23341_ACEOF
23342cat confdefs.h >>conftest.$ac_ext
23343cat >>conftest.$ac_ext <<_ACEOF
23344/* end confdefs.h. */
23345
23346/* Override any gcc2 internal prototype to avoid an error. */
23347#ifdef __cplusplus
23348extern "C"
23349#endif
23350/* We use char because int might match the return type of a gcc2
23351 builtin and then its argument prototype would still apply. */
23352char res_query ();
23353int
23354main ()
23355{
23356res_query ();
23357 ;
23358 return 0;
23359}
23360_ACEOF
23361rm -f conftest.$ac_objext conftest$ac_exeext
23362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23363 (eval $ac_link) 2>conftest.er1
23364 ac_status=$?
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } &&
23370 { ac_try='test -z "$ac_c_werror_flag"
23371 || test ! -s conftest.err'
23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23373 (eval $ac_try) 2>&5
23374 ac_status=$?
23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); }; } &&
23377 { ac_try='test -s conftest$ac_exeext'
23378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379 (eval $ac_try) 2>&5
23380 ac_status=$?
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 ac_cv_search_res_query="-l$ac_lib"
23384break
23385else
23386 echo "$as_me: failed program was:" >&5
23387sed 's/^/| /' conftest.$ac_ext >&5
23388
23389fi
23390rm -f conftest.err conftest.$ac_objext \
23391 conftest$ac_exeext conftest.$ac_ext
23392 done
23393fi
23394LIBS=$ac_func_search_save_LIBS
23395fi
23396echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
23397echo "${ECHO_T}$ac_cv_search_res_query" >&6
23398if test "$ac_cv_search_res_query" != no; then
23399 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
23400
23401fi
23402
23403 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
23404echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
23405if test "${ac_cv_search_dn_expand+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23407else
23408 ac_func_search_save_LIBS=$LIBS
23409ac_cv_search_dn_expand=no
23410cat >conftest.$ac_ext <<_ACEOF
23411/* confdefs.h. */
23412_ACEOF
23413cat confdefs.h >>conftest.$ac_ext
23414cat >>conftest.$ac_ext <<_ACEOF
23415/* end confdefs.h. */
23416
23417/* Override any gcc2 internal prototype to avoid an error. */
23418#ifdef __cplusplus
23419extern "C"
23420#endif
23421/* We use char because int might match the return type of a gcc2
23422 builtin and then its argument prototype would still apply. */
23423char dn_expand ();
23424int
23425main ()
23426{
23427dn_expand ();
23428 ;
23429 return 0;
23430}
23431_ACEOF
23432rm -f conftest.$ac_objext conftest$ac_exeext
23433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23434 (eval $ac_link) 2>conftest.er1
23435 ac_status=$?
23436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
23441 { ac_try='test -z "$ac_c_werror_flag"
23442 || test ! -s conftest.err'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 ac_cv_search_dn_expand="none required"
23455else
23456 echo "$as_me: failed program was:" >&5
23457sed 's/^/| /' conftest.$ac_ext >&5
23458
23459fi
23460rm -f conftest.err conftest.$ac_objext \
23461 conftest$ac_exeext conftest.$ac_ext
23462if test "$ac_cv_search_dn_expand" = no; then
23463 for ac_lib in resolv; do
23464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23465 cat >conftest.$ac_ext <<_ACEOF
23466/* confdefs.h. */
23467_ACEOF
23468cat confdefs.h >>conftest.$ac_ext
23469cat >>conftest.$ac_ext <<_ACEOF
23470/* end confdefs.h. */
23471
23472/* Override any gcc2 internal prototype to avoid an error. */
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476/* We use char because int might match the return type of a gcc2
23477 builtin and then its argument prototype would still apply. */
23478char dn_expand ();
23479int
23480main ()
23481{
23482dn_expand ();
23483 ;
23484 return 0;
23485}
23486_ACEOF
23487rm -f conftest.$ac_objext conftest$ac_exeext
23488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489 (eval $ac_link) 2>conftest.er1
23490 ac_status=$?
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
23496 { ac_try='test -z "$ac_c_werror_flag"
23497 || test ! -s conftest.err'
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; } &&
23503 { ac_try='test -s conftest$ac_exeext'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; }; then
23509 ac_cv_search_dn_expand="-l$ac_lib"
23510break
23511else
23512 echo "$as_me: failed program was:" >&5
23513sed 's/^/| /' conftest.$ac_ext >&5
23514
23515fi
23516rm -f conftest.err conftest.$ac_objext \
23517 conftest$ac_exeext conftest.$ac_ext
23518 done
23519fi
23520LIBS=$ac_func_search_save_LIBS
23521fi
23522echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
23523echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
23524if test "$ac_cv_search_dn_expand" != no; then
23525 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
23526
23527fi
23528
23529 echo "$as_me:$LINENO: checking if res_query will link" >&5
23530echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6
23531 cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h. */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h. */
23537
23538/* Override any gcc2 internal prototype to avoid an error. */
23539#ifdef __cplusplus
23540extern "C"
23541#endif
23542/* We use char because int might match the return type of a gcc2
23543 builtin and then its argument prototype would still apply. */
23544char res_query ();
23545int
23546main ()
23547{
23548res_query ();
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext conftest$ac_exeext
23554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23555 (eval $ac_link) 2>conftest.er1
23556 ac_status=$?
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
23562 { ac_try='test -z "$ac_c_werror_flag"
23563 || test ! -s conftest.err'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; } &&
23569 { ac_try='test -s conftest$ac_exeext'
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 echo "$as_me:$LINENO: result: yes" >&5
23576echo "${ECHO_T}yes" >&6
23577else
23578 echo "$as_me: failed program was:" >&5
23579sed 's/^/| /' conftest.$ac_ext >&5
23580
23581echo "$as_me:$LINENO: result: no" >&5
23582echo "${ECHO_T}no" >&6
23583 saved_LIBS="$LIBS"
23584 LIBS="$LIBS -lresolv"
23585 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
23586echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
23587 cat >conftest.$ac_ext <<_ACEOF
23588
23589#include <resolv.h>
23590int main()
23591{
23592 res_query (0, 0, 0, 0, 0);
23593 return 0;
23594}
23595
23596_ACEOF
23597rm -f conftest.$ac_objext conftest$ac_exeext
23598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599 (eval $ac_link) 2>conftest.er1
23600 ac_status=$?
23601 grep -v '^ *+' conftest.er1 >conftest.err
23602 rm -f conftest.er1
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
23606 { ac_try='test -z "$ac_c_werror_flag"
23607 || test ! -s conftest.err'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 LIBS="$LIBS -lresolv"
23620 echo "$as_me:$LINENO: result: yes" >&5
23621echo "${ECHO_T}yes" >&6
23622else
23623 echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626LIBS="$saved_LIBS"
23627 echo "$as_me:$LINENO: result: no" >&5
23628echo "${ECHO_T}no" >&6
23629fi
23630rm -f conftest.err conftest.$ac_objext \
23631 conftest$ac_exeext conftest.$ac_ext
23632
23633fi
23634rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23636
23637
23638for ac_func in _getshort _getlong
23639do
23640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23641echo "$as_me:$LINENO: checking for $ac_func" >&5
23642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23643if eval "test \"\${$as_ac_var+set}\" = set"; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645else
23646 cat >conftest.$ac_ext <<_ACEOF
23647/* confdefs.h. */
23648_ACEOF
23649cat confdefs.h >>conftest.$ac_ext
23650cat >>conftest.$ac_ext <<_ACEOF
23651/* end confdefs.h. */
23652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23654#define $ac_func innocuous_$ac_func
23655
23656/* System header to define __stub macros and hopefully few prototypes,
23657 which can conflict with char $ac_func (); below.
23658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23659 <limits.h> exists even on freestanding compilers. */
23660
23661#ifdef __STDC__
23662# include <limits.h>
23663#else
23664# include <assert.h>
23665#endif
23666
23667#undef $ac_func
23668
23669/* Override any gcc2 internal prototype to avoid an error. */
23670#ifdef __cplusplus
23671extern "C"
23672{
23673#endif
23674/* We use char because int might match the return type of a gcc2
23675 builtin and then its argument prototype would still apply. */
23676char $ac_func ();
23677/* The GNU C library defines this for functions which it implements
23678 to always fail with ENOSYS. Some functions are actually named
23679 something starting with __ and the normal name is an alias. */
23680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23681choke me
23682#else
23683char (*f) () = $ac_func;
23684#endif
23685#ifdef __cplusplus
23686}
23687#endif
23688
23689int
23690main ()
23691{
23692return f != $ac_func;
23693 ;
23694 return 0;
23695}
23696_ACEOF
23697rm -f conftest.$ac_objext conftest$ac_exeext
23698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23699 (eval $ac_link) 2>conftest.er1
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } &&
23706 { ac_try='test -z "$ac_c_werror_flag"
23707 || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest$ac_exeext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719 eval "$as_ac_var=yes"
23720else
23721 echo "$as_me: failed program was:" >&5
23722sed 's/^/| /' conftest.$ac_ext >&5
23723
23724eval "$as_ac_var=no"
23725fi
23726rm -f conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23728fi
23729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23731if test `eval echo '${'$as_ac_var'}'` = yes; then
23732 cat >>confdefs.h <<_ACEOF
23733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23734_ACEOF
23735
23736fi
23737done
23738
23739 echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
23740echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6
23741if test "${ac_cv_have_decl__getshort+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23743else
23744 cat >conftest.$ac_ext <<_ACEOF
23745/* confdefs.h. */
23746_ACEOF
23747cat confdefs.h >>conftest.$ac_ext
23748cat >>conftest.$ac_ext <<_ACEOF
23749/* end confdefs.h. */
23750#include <sys/types.h>
23751 #include <arpa/nameser.h>
23752
23753int
23754main ()
23755{
23756#ifndef _getshort
23757 char *p = (char *) _getshort;
23758#endif
23759
23760 ;
23761 return 0;
23762}
23763_ACEOF
23764rm -f conftest.$ac_objext
23765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23766 (eval $ac_compile) 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -z "$ac_c_werror_flag"
23774 || test ! -s conftest.err'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; } &&
23780 { ac_try='test -s conftest.$ac_objext'
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; }; then
23786 ac_cv_have_decl__getshort=yes
23787else
23788 echo "$as_me: failed program was:" >&5
23789sed 's/^/| /' conftest.$ac_ext >&5
23790
23791ac_cv_have_decl__getshort=no
23792fi
23793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23794fi
23795echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
23796echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6
23797if test $ac_cv_have_decl__getshort = yes; then
23798
23799cat >>confdefs.h <<_ACEOF
23800#define HAVE_DECL__GETSHORT 1
23801_ACEOF
23802
23803
23804else
23805 cat >>confdefs.h <<_ACEOF
23806#define HAVE_DECL__GETSHORT 0
23807_ACEOF
23808
23809
23810fi
23811echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
23812echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6
23813if test "${ac_cv_have_decl__getlong+set}" = set; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23815else
23816 cat >conftest.$ac_ext <<_ACEOF
23817/* confdefs.h. */
23818_ACEOF
23819cat confdefs.h >>conftest.$ac_ext
23820cat >>conftest.$ac_ext <<_ACEOF
23821/* end confdefs.h. */
23822#include <sys/types.h>
23823 #include <arpa/nameser.h>
23824
23825int
23826main ()
23827{
23828#ifndef _getlong
23829 char *p = (char *) _getlong;
23830#endif
23831
23832 ;
23833 return 0;
23834}
23835_ACEOF
23836rm -f conftest.$ac_objext
23837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23838 (eval $ac_compile) 2>conftest.er1
23839 ac_status=$?
23840 grep -v '^ *+' conftest.er1 >conftest.err
23841 rm -f conftest.er1
23842 cat conftest.err >&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } &&
23845 { ac_try='test -z "$ac_c_werror_flag"
23846 || test ! -s conftest.err'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; } &&
23852 { ac_try='test -s conftest.$ac_objext'
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; }; then
23858 ac_cv_have_decl__getlong=yes
23859else
23860 echo "$as_me: failed program was:" >&5
23861sed 's/^/| /' conftest.$ac_ext >&5
23862
23863ac_cv_have_decl__getlong=no
23864fi
23865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23866fi
23867echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
23868echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6
23869if test $ac_cv_have_decl__getlong = yes; then
23870
23871cat >>confdefs.h <<_ACEOF
23872#define HAVE_DECL__GETLONG 1
23873_ACEOF
23874
23875
23876else
23877 cat >>confdefs.h <<_ACEOF
23878#define HAVE_DECL__GETLONG 0
23879_ACEOF
23880
23881
23882fi
23883
23884
23885 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
23886echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
23887if test "${ac_cv_member_HEADER_ad+set}" = set; then
23888 echo $ECHO_N "(cached) $ECHO_C" >&6
23889else
23890 cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h. */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h. */
23896#include <arpa/nameser.h>
23897
23898int
23899main ()
23900{
23901static HEADER ac_aggr;
23902if (ac_aggr.ad)
23903return 0;
23904 ;
23905 return 0;
23906}
23907_ACEOF
23908rm -f conftest.$ac_objext
23909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23910 (eval $ac_compile) 2>conftest.er1
23911 ac_status=$?
23912 grep -v '^ *+' conftest.er1 >conftest.err
23913 rm -f conftest.er1
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } &&
23917 { ac_try='test -z "$ac_c_werror_flag"
23918 || test ! -s conftest.err'
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; } &&
23924 { ac_try='test -s conftest.$ac_objext'
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_cv_member_HEADER_ad=yes
23931else
23932 echo "$as_me: failed program was:" >&5
23933sed 's/^/| /' conftest.$ac_ext >&5
23934
23935cat >conftest.$ac_ext <<_ACEOF
23936/* confdefs.h. */
23937_ACEOF
23938cat confdefs.h >>conftest.$ac_ext
23939cat >>conftest.$ac_ext <<_ACEOF
23940/* end confdefs.h. */
23941#include <arpa/nameser.h>
23942
23943int
23944main ()
23945{
23946static HEADER ac_aggr;
23947if (sizeof ac_aggr.ad)
23948return 0;
23949 ;
23950 return 0;
23951}
23952_ACEOF
23953rm -f conftest.$ac_objext
23954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23955 (eval $ac_compile) 2>conftest.er1
23956 ac_status=$?
23957 grep -v '^ *+' conftest.er1 >conftest.err
23958 rm -f conftest.er1
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag"
23963 || test ! -s conftest.err'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest.$ac_objext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 ac_cv_member_HEADER_ad=yes
23976else
23977 echo "$as_me: failed program was:" >&5
23978sed 's/^/| /' conftest.$ac_ext >&5
23979
23980ac_cv_member_HEADER_ad=no
23981fi
23982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23983fi
23984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23985fi
23986echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
23987echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
23988if test $ac_cv_member_HEADER_ad = yes; then
23989
23990cat >>confdefs.h <<\_ACEOF
23991#define HAVE_HEADER_AD 1
23992_ACEOF
23993
23994fi
23995
23996
23997fi
23998
23999
24000# Check whether user wants Kerberos 5 support
24001KRB5_MSG="no"
24002
24003# Check whether --with-kerberos5 or --without-kerberos5 was given.
24004if test "${with_kerberos5+set}" = set; then
24005 withval="$with_kerberos5"
24006 if test "x$withval" != "xno" ; then
24007 if test "x$withval" = "xyes" ; then
24008 KRB5ROOT="/usr/local"
24009 else
24010 KRB5ROOT=${withval}
24011 fi
24012
24013
24014cat >>confdefs.h <<\_ACEOF
24015#define KRB5 1
24016_ACEOF
24017
24018 KRB5_MSG="yes"
24019
24020 echo "$as_me:$LINENO: checking for krb5-config" >&5
24021echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
24022 if test -x $KRB5ROOT/bin/krb5-config ; then
24023 KRB5CONF=$KRB5ROOT/bin/krb5-config
24024 echo "$as_me:$LINENO: result: $KRB5CONF" >&5
24025echo "${ECHO_T}$KRB5CONF" >&6
24026
24027 echo "$as_me:$LINENO: checking for gssapi support" >&5
24028echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
24029 if $KRB5CONF | grep gssapi >/dev/null ; then
24030 echo "$as_me:$LINENO: result: yes" >&5
24031echo "${ECHO_T}yes" >&6
24032
24033cat >>confdefs.h <<\_ACEOF
24034#define GSSAPI 1
24035_ACEOF
24036
24037 k5confopts=gssapi
24038 else
24039 echo "$as_me:$LINENO: result: no" >&5
24040echo "${ECHO_T}no" >&6
24041 k5confopts=""
24042 fi
24043 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
24044 K5LIBS="`$KRB5CONF --libs $k5confopts`"
24045 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
24046 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
24047echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
24048 cat >conftest.$ac_ext <<_ACEOF
24049/* confdefs.h. */
24050_ACEOF
24051cat confdefs.h >>conftest.$ac_ext
24052cat >>conftest.$ac_ext <<_ACEOF
24053/* end confdefs.h. */
24054 #include <krb5.h>
24055int
24056main ()
24057{
24058 char *tmp = heimdal_version;
24059 ;
24060 return 0;
24061}
24062_ACEOF
24063rm -f conftest.$ac_objext
24064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24065 (eval $ac_compile) 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } &&
24072 { ac_try='test -z "$ac_c_werror_flag"
24073 || test ! -s conftest.err'
24074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; } &&
24079 { ac_try='test -s conftest.$ac_objext'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085 echo "$as_me:$LINENO: result: yes" >&5
24086echo "${ECHO_T}yes" >&6
24087
24088cat >>confdefs.h <<\_ACEOF
24089#define HEIMDAL 1
24090_ACEOF
24091
24092else
24093 echo "$as_me: failed program was:" >&5
24094sed 's/^/| /' conftest.$ac_ext >&5
24095
24096echo "$as_me:$LINENO: result: no" >&5
24097echo "${ECHO_T}no" >&6
24098
24099fi
24100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24101 else
24102 echo "$as_me:$LINENO: result: no" >&5
24103echo "${ECHO_T}no" >&6
24104 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
24105 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
24106 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
24107echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
24108 cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
24114 #include <krb5.h>
24115int
24116main ()
24117{
24118 char *tmp = heimdal_version;
24119 ;
24120 return 0;
24121}
24122_ACEOF
24123rm -f conftest.$ac_objext
24124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24125 (eval $ac_compile) 2>conftest.er1
24126 ac_status=$?
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } &&
24132 { ac_try='test -z "$ac_c_werror_flag"
24133 || test ! -s conftest.err'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; } &&
24139 { ac_try='test -s conftest.$ac_objext'
24140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141 (eval $ac_try) 2>&5
24142 ac_status=$?
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); }; }; then
24145 echo "$as_me:$LINENO: result: yes" >&5
24146echo "${ECHO_T}yes" >&6
24147 cat >>confdefs.h <<\_ACEOF
24148#define HEIMDAL 1
24149_ACEOF
24150
24151 K5LIBS="-lkrb5 -ldes"
24152 K5LIBS="$K5LIBS -lcom_err -lasn1"
24153 echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
24154echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6
24155if test "${ac_cv_lib_roken_net_write+set}" = set; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157else
24158 ac_check_lib_save_LIBS=$LIBS
24159LIBS="-lroken $LIBS"
24160cat >conftest.$ac_ext <<_ACEOF
24161/* confdefs.h. */
24162_ACEOF
24163cat confdefs.h >>conftest.$ac_ext
24164cat >>conftest.$ac_ext <<_ACEOF
24165/* end confdefs.h. */
24166
24167/* Override any gcc2 internal prototype to avoid an error. */
24168#ifdef __cplusplus
24169extern "C"
24170#endif
24171/* We use char because int might match the return type of a gcc2
24172 builtin and then its argument prototype would still apply. */
24173char net_write ();
24174int
24175main ()
24176{
24177net_write ();
24178 ;
24179 return 0;
24180}
24181_ACEOF
24182rm -f conftest.$ac_objext conftest$ac_exeext
24183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24184 (eval $ac_link) 2>conftest.er1
24185 ac_status=$?
24186 grep -v '^ *+' conftest.er1 >conftest.err
24187 rm -f conftest.er1
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } &&
24191 { ac_try='test -z "$ac_c_werror_flag"
24192 || test ! -s conftest.err'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest$ac_exeext'
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_lib_roken_net_write=yes
24205else
24206 echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
24209ac_cv_lib_roken_net_write=no
24210fi
24211rm -f conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
24213LIBS=$ac_check_lib_save_LIBS
24214fi
24215echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
24216echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6
24217if test $ac_cv_lib_roken_net_write = yes; then
24218 K5LIBS="$K5LIBS -lroken"
24219fi
24220
24221
24222else
24223 echo "$as_me: failed program was:" >&5
24224sed 's/^/| /' conftest.$ac_ext >&5
24225
24226 echo "$as_me:$LINENO: result: no" >&5
24227echo "${ECHO_T}no" >&6
24228 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
24229
24230
24231fi
24232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24233 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
24234echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
24235if test "${ac_cv_search_dn_expand+set}" = set; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24237else
24238 ac_func_search_save_LIBS=$LIBS
24239ac_cv_search_dn_expand=no
24240cat >conftest.$ac_ext <<_ACEOF
24241/* confdefs.h. */
24242_ACEOF
24243cat confdefs.h >>conftest.$ac_ext
24244cat >>conftest.$ac_ext <<_ACEOF
24245/* end confdefs.h. */
24246
24247/* Override any gcc2 internal prototype to avoid an error. */
24248#ifdef __cplusplus
24249extern "C"
24250#endif
24251/* We use char because int might match the return type of a gcc2
24252 builtin and then its argument prototype would still apply. */
24253char dn_expand ();
24254int
24255main ()
24256{
24257dn_expand ();
24258 ;
24259 return 0;
24260}
24261_ACEOF
24262rm -f conftest.$ac_objext conftest$ac_exeext
24263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24264 (eval $ac_link) 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } &&
24271 { ac_try='test -z "$ac_c_werror_flag"
24272 || test ! -s conftest.err'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; } &&
24278 { ac_try='test -s conftest$ac_exeext'
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; }; then
24284 ac_cv_search_dn_expand="none required"
24285else
24286 echo "$as_me: failed program was:" >&5
24287sed 's/^/| /' conftest.$ac_ext >&5
24288
24289fi
24290rm -f conftest.err conftest.$ac_objext \
24291 conftest$ac_exeext conftest.$ac_ext
24292if test "$ac_cv_search_dn_expand" = no; then
24293 for ac_lib in resolv; do
24294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24295 cat >conftest.$ac_ext <<_ACEOF
24296/* confdefs.h. */
24297_ACEOF
24298cat confdefs.h >>conftest.$ac_ext
24299cat >>conftest.$ac_ext <<_ACEOF
24300/* end confdefs.h. */
24301
24302/* Override any gcc2 internal prototype to avoid an error. */
24303#ifdef __cplusplus
24304extern "C"
24305#endif
24306/* We use char because int might match the return type of a gcc2
24307 builtin and then its argument prototype would still apply. */
24308char dn_expand ();
24309int
24310main ()
24311{
24312dn_expand ();
24313 ;
24314 return 0;
24315}
24316_ACEOF
24317rm -f conftest.$ac_objext conftest$ac_exeext
24318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24319 (eval $ac_link) 2>conftest.er1
24320 ac_status=$?
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
24326 { ac_try='test -z "$ac_c_werror_flag"
24327 || test ! -s conftest.err'
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24330 ac_status=$?
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; } &&
24333 { ac_try='test -s conftest$ac_exeext'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24336 ac_status=$?
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; }; then
24339 ac_cv_search_dn_expand="-l$ac_lib"
24340break
24341else
24342 echo "$as_me: failed program was:" >&5
24343sed 's/^/| /' conftest.$ac_ext >&5
24344
24345fi
24346rm -f conftest.err conftest.$ac_objext \
24347 conftest$ac_exeext conftest.$ac_ext
24348 done
24349fi
24350LIBS=$ac_func_search_save_LIBS
24351fi
24352echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
24353echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
24354if test "$ac_cv_search_dn_expand" != no; then
24355 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
24356
24357fi
24358
24359
24360 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
24361echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
24362if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364else
24365 ac_check_lib_save_LIBS=$LIBS
24366LIBS="-lgssapi $K5LIBS $LIBS"
24367cat >conftest.$ac_ext <<_ACEOF
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
24373
24374/* Override any gcc2 internal prototype to avoid an error. */
24375#ifdef __cplusplus
24376extern "C"
24377#endif
24378/* We use char because int might match the return type of a gcc2
24379 builtin and then its argument prototype would still apply. */
24380char gss_init_sec_context ();
24381int
24382main ()
24383{
24384gss_init_sec_context ();
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext conftest$ac_exeext
24390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24391 (eval $ac_link) 2>conftest.er1
24392 ac_status=$?
24393 grep -v '^ *+' conftest.er1 >conftest.err
24394 rm -f conftest.er1
24395 cat conftest.err >&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } &&
24398 { ac_try='test -z "$ac_c_werror_flag"
24399 || test ! -s conftest.err'
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24402 ac_status=$?
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; } &&
24405 { ac_try='test -s conftest$ac_exeext'
24406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24408 ac_status=$?
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24411 ac_cv_lib_gssapi_gss_init_sec_context=yes
24412else
24413 echo "$as_me: failed program was:" >&5
24414sed 's/^/| /' conftest.$ac_ext >&5
24415
24416ac_cv_lib_gssapi_gss_init_sec_context=no
24417fi
24418rm -f conftest.err conftest.$ac_objext \
24419 conftest$ac_exeext conftest.$ac_ext
24420LIBS=$ac_check_lib_save_LIBS
24421fi
24422echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
24423echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
24424if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
24425 cat >>confdefs.h <<\_ACEOF
24426#define GSSAPI 1
24427_ACEOF
24428
24429 K5LIBS="-lgssapi $K5LIBS"
24430else
24431 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
24432echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
24433if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24435else
24436 ac_check_lib_save_LIBS=$LIBS
24437LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
24438cat >conftest.$ac_ext <<_ACEOF
24439/* confdefs.h. */
24440_ACEOF
24441cat confdefs.h >>conftest.$ac_ext
24442cat >>conftest.$ac_ext <<_ACEOF
24443/* end confdefs.h. */
24444
24445/* Override any gcc2 internal prototype to avoid an error. */
24446#ifdef __cplusplus
24447extern "C"
24448#endif
24449/* We use char because int might match the return type of a gcc2
24450 builtin and then its argument prototype would still apply. */
24451char gss_init_sec_context ();
24452int
24453main ()
24454{
24455gss_init_sec_context ();
24456 ;
24457 return 0;
24458}
24459_ACEOF
24460rm -f conftest.$ac_objext conftest$ac_exeext
24461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24462 (eval $ac_link) 2>conftest.er1
24463 ac_status=$?
24464 grep -v '^ *+' conftest.er1 >conftest.err
24465 rm -f conftest.er1
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } &&
24469 { ac_try='test -z "$ac_c_werror_flag"
24470 || test ! -s conftest.err'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; } &&
24476 { ac_try='test -s conftest$ac_exeext'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24482 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
24483else
24484 echo "$as_me: failed program was:" >&5
24485sed 's/^/| /' conftest.$ac_ext >&5
24486
24487ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
24488fi
24489rm -f conftest.err conftest.$ac_objext \
24490 conftest$ac_exeext conftest.$ac_ext
24491LIBS=$ac_check_lib_save_LIBS
24492fi
24493echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
24494echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
24495if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
24496 cat >>confdefs.h <<\_ACEOF
24497#define GSSAPI 1
24498_ACEOF
24499
24500 K5LIBS="-lgssapi_krb5 $K5LIBS"
24501else
24502 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
24503echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
24504fi
24505
24506
24507fi
24508
24509
24510 if test "${ac_cv_header_gssapi_h+set}" = set; then
24511 echo "$as_me:$LINENO: checking for gssapi.h" >&5
24512echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
24513if test "${ac_cv_header_gssapi_h+set}" = set; then
24514 echo $ECHO_N "(cached) $ECHO_C" >&6
24515fi
24516echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
24517echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
24518else
24519 # Is the header compilable?
24520echo "$as_me:$LINENO: checking gssapi.h usability" >&5
24521echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
24522cat >conftest.$ac_ext <<_ACEOF
24523/* confdefs.h. */
24524_ACEOF
24525cat confdefs.h >>conftest.$ac_ext
24526cat >>conftest.$ac_ext <<_ACEOF
24527/* end confdefs.h. */
24528$ac_includes_default
24529#include <gssapi.h>
24530_ACEOF
24531rm -f conftest.$ac_objext
24532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24533 (eval $ac_compile) 2>conftest.er1
24534 ac_status=$?
24535 grep -v '^ *+' conftest.er1 >conftest.err
24536 rm -f conftest.er1
24537 cat conftest.err >&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } &&
24540 { ac_try='test -z "$ac_c_werror_flag"
24541 || test ! -s conftest.err'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; } &&
24547 { ac_try='test -s conftest.$ac_objext'
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 ac_header_compiler=yes
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558ac_header_compiler=no
24559fi
24560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24562echo "${ECHO_T}$ac_header_compiler" >&6
24563
24564# Is the header present?
24565echo "$as_me:$LINENO: checking gssapi.h presence" >&5
24566echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
24567cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h. */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h. */
24573#include <gssapi.h>
24574_ACEOF
24575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } >/dev/null; then
24583 if test -s conftest.err; then
24584 ac_cpp_err=$ac_c_preproc_warn_flag
24585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24586 else
24587 ac_cpp_err=
24588 fi
24589else
24590 ac_cpp_err=yes
24591fi
24592if test -z "$ac_cpp_err"; then
24593 ac_header_preproc=yes
24594else
24595 echo "$as_me: failed program was:" >&5
24596sed 's/^/| /' conftest.$ac_ext >&5
24597
24598 ac_header_preproc=no
24599fi
24600rm -f conftest.err conftest.$ac_ext
24601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24602echo "${ECHO_T}$ac_header_preproc" >&6
24603
24604# So? What about this header?
24605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24606 yes:no: )
24607 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
24608echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24609 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
24610echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
24611 ac_header_preproc=yes
24612 ;;
24613 no:yes:* )
24614 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
24615echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
24616 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
24617echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
24618 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
24619echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
24620 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
24621echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
24622 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
24623echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
24624 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
24625echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
24626 (
24627 cat <<\_ASBOX
24628## ------------------------------------------- ##
24629## Report this to openssh-unix-dev@mindrot.org ##
24630## ------------------------------------------- ##
24631_ASBOX
24632 ) |
24633 sed "s/^/$as_me: WARNING: /" >&2
24634 ;;
24635esac
24636echo "$as_me:$LINENO: checking for gssapi.h" >&5
24637echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
24638if test "${ac_cv_header_gssapi_h+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24640else
24641 ac_cv_header_gssapi_h=$ac_header_preproc
24642fi
24643echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
24644echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
24645
24646fi
24647if test $ac_cv_header_gssapi_h = yes; then
24648 :
24649else
24650 unset ac_cv_header_gssapi_h
24651 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
24652
24653for ac_header in gssapi.h
24654do
24655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24656if eval "test \"\${$as_ac_Header+set}\" = set"; then
24657 echo "$as_me:$LINENO: checking for $ac_header" >&5
24658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24659if eval "test \"\${$as_ac_Header+set}\" = set"; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661fi
24662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24664else
24665 # Is the header compilable?
24666echo "$as_me:$LINENO: checking $ac_header usability" >&5
24667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24668cat >conftest.$ac_ext <<_ACEOF
24669/* confdefs.h. */
24670_ACEOF
24671cat confdefs.h >>conftest.$ac_ext
24672cat >>conftest.$ac_ext <<_ACEOF
24673/* end confdefs.h. */
24674$ac_includes_default
24675#include <$ac_header>
24676_ACEOF
24677rm -f conftest.$ac_objext
24678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679 (eval $ac_compile) 2>conftest.er1
24680 ac_status=$?
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
24686 { ac_try='test -z "$ac_c_werror_flag"
24687 || test ! -s conftest.err'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; } &&
24693 { ac_try='test -s conftest.$ac_objext'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_header_compiler=yes
24700else
24701 echo "$as_me: failed program was:" >&5
24702sed 's/^/| /' conftest.$ac_ext >&5
24703
24704ac_header_compiler=no
24705fi
24706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24708echo "${ECHO_T}$ac_header_compiler" >&6
24709
24710# Is the header present?
24711echo "$as_me:$LINENO: checking $ac_header presence" >&5
24712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24713cat >conftest.$ac_ext <<_ACEOF
24714/* confdefs.h. */
24715_ACEOF
24716cat confdefs.h >>conftest.$ac_ext
24717cat >>conftest.$ac_ext <<_ACEOF
24718/* end confdefs.h. */
24719#include <$ac_header>
24720_ACEOF
24721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24723 ac_status=$?
24724 grep -v '^ *+' conftest.er1 >conftest.err
24725 rm -f conftest.er1
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } >/dev/null; then
24729 if test -s conftest.err; then
24730 ac_cpp_err=$ac_c_preproc_warn_flag
24731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24732 else
24733 ac_cpp_err=
24734 fi
24735else
24736 ac_cpp_err=yes
24737fi
24738if test -z "$ac_cpp_err"; then
24739 ac_header_preproc=yes
24740else
24741 echo "$as_me: failed program was:" >&5
24742sed 's/^/| /' conftest.$ac_ext >&5
24743
24744 ac_header_preproc=no
24745fi
24746rm -f conftest.err conftest.$ac_ext
24747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24748echo "${ECHO_T}$ac_header_preproc" >&6
24749
24750# So? What about this header?
24751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24752 yes:no: )
24753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24757 ac_header_preproc=yes
24758 ;;
24759 no:yes:* )
24760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24772 (
24773 cat <<\_ASBOX
24774## ------------------------------------------- ##
24775## Report this to openssh-unix-dev@mindrot.org ##
24776## ------------------------------------------- ##
24777_ASBOX
24778 ) |
24779 sed "s/^/$as_me: WARNING: /" >&2
24780 ;;
24781esac
24782echo "$as_me:$LINENO: checking for $ac_header" >&5
24783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24784if eval "test \"\${$as_ac_Header+set}\" = set"; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24786else
24787 eval "$as_ac_Header=\$ac_header_preproc"
24788fi
24789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24791
24792fi
24793if test `eval echo '${'$as_ac_Header'}'` = yes; then
24794 cat >>confdefs.h <<_ACEOF
24795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24796_ACEOF
24797
24798else
24799 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
24800echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
24801
24802fi
24803
24804done
24805
24806
24807
24808fi
24809
24810
24811
24812 oldCPP="$CPPFLAGS"
24813 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
24814 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
24815 echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
24816echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
24817if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24819fi
24820echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
24821echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
24822else
24823 # Is the header compilable?
24824echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
24825echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6
24826cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
24832$ac_includes_default
24833#include <gssapi_krb5.h>
24834_ACEOF
24835rm -f conftest.$ac_objext
24836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24837 (eval $ac_compile) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest.$ac_objext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_header_compiler=yes
24858else
24859 echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862ac_header_compiler=no
24863fi
24864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24866echo "${ECHO_T}$ac_header_compiler" >&6
24867
24868# Is the header present?
24869echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
24870echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6
24871cat >conftest.$ac_ext <<_ACEOF
24872/* confdefs.h. */
24873_ACEOF
24874cat confdefs.h >>conftest.$ac_ext
24875cat >>conftest.$ac_ext <<_ACEOF
24876/* end confdefs.h. */
24877#include <gssapi_krb5.h>
24878_ACEOF
24879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } >/dev/null; then
24887 if test -s conftest.err; then
24888 ac_cpp_err=$ac_c_preproc_warn_flag
24889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24890 else
24891 ac_cpp_err=
24892 fi
24893else
24894 ac_cpp_err=yes
24895fi
24896if test -z "$ac_cpp_err"; then
24897 ac_header_preproc=yes
24898else
24899 echo "$as_me: failed program was:" >&5
24900sed 's/^/| /' conftest.$ac_ext >&5
24901
24902 ac_header_preproc=no
24903fi
24904rm -f conftest.err conftest.$ac_ext
24905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24906echo "${ECHO_T}$ac_header_preproc" >&6
24907
24908# So? What about this header?
24909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24910 yes:no: )
24911 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
24912echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
24914echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
24915 ac_header_preproc=yes
24916 ;;
24917 no:yes:* )
24918 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
24919echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
24920 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
24921echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
24922 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
24923echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
24924 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
24925echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
24927echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
24929echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
24930 (
24931 cat <<\_ASBOX
24932## ------------------------------------------- ##
24933## Report this to openssh-unix-dev@mindrot.org ##
24934## ------------------------------------------- ##
24935_ASBOX
24936 ) |
24937 sed "s/^/$as_me: WARNING: /" >&2
24938 ;;
24939esac
24940echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
24941echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
24942if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24944else
24945 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
24946fi
24947echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
24948echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
24949
24950fi
24951if test $ac_cv_header_gssapi_krb5_h = yes; then
24952 :
24953else
24954 CPPFLAGS="$oldCPP"
24955fi
24956
24957
24958
24959 fi
24960 if test ! -z "$need_dash_r" ; then
24961 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
24962 fi
24963 if test ! -z "$blibpath" ; then
24964 blibpath="$blibpath:${KRB5ROOT}/lib"
24965 fi
24966
24967
24968
24969for ac_header in gssapi.h gssapi/gssapi.h
24970do
24971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24972if eval "test \"\${$as_ac_Header+set}\" = set"; then
24973 echo "$as_me:$LINENO: checking for $ac_header" >&5
24974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24975if eval "test \"\${$as_ac_Header+set}\" = set"; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977fi
24978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24980else
24981 # Is the header compilable?
24982echo "$as_me:$LINENO: checking $ac_header usability" >&5
24983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24984cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990$ac_includes_default
24991#include <$ac_header>
24992_ACEOF
24993rm -f conftest.$ac_objext
24994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24995 (eval $ac_compile) 2>conftest.er1
24996 ac_status=$?
24997 grep -v '^ *+' conftest.er1 >conftest.err
24998 rm -f conftest.er1
24999 cat conftest.err >&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } &&
25002 { ac_try='test -z "$ac_c_werror_flag"
25003 || test ! -s conftest.err'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest.$ac_objext'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25015 ac_header_compiler=yes
25016else
25017 echo "$as_me: failed program was:" >&5
25018sed 's/^/| /' conftest.$ac_ext >&5
25019
25020ac_header_compiler=no
25021fi
25022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25024echo "${ECHO_T}$ac_header_compiler" >&6
25025
25026# Is the header present?
25027echo "$as_me:$LINENO: checking $ac_header presence" >&5
25028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25029cat >conftest.$ac_ext <<_ACEOF
25030/* confdefs.h. */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h. */
25035#include <$ac_header>
25036_ACEOF
25037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25039 ac_status=$?
25040 grep -v '^ *+' conftest.er1 >conftest.err
25041 rm -f conftest.er1
25042 cat conftest.err >&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } >/dev/null; then
25045 if test -s conftest.err; then
25046 ac_cpp_err=$ac_c_preproc_warn_flag
25047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25048 else
25049 ac_cpp_err=
25050 fi
25051else
25052 ac_cpp_err=yes
25053fi
25054if test -z "$ac_cpp_err"; then
25055 ac_header_preproc=yes
25056else
25057 echo "$as_me: failed program was:" >&5
25058sed 's/^/| /' conftest.$ac_ext >&5
25059
25060 ac_header_preproc=no
25061fi
25062rm -f conftest.err conftest.$ac_ext
25063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25064echo "${ECHO_T}$ac_header_preproc" >&6
25065
25066# So? What about this header?
25067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25068 yes:no: )
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25073 ac_header_preproc=yes
25074 ;;
25075 no:yes:* )
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25088 (
25089 cat <<\_ASBOX
25090## ------------------------------------------- ##
25091## Report this to openssh-unix-dev@mindrot.org ##
25092## ------------------------------------------- ##
25093_ASBOX
25094 ) |
25095 sed "s/^/$as_me: WARNING: /" >&2
25096 ;;
25097esac
25098echo "$as_me:$LINENO: checking for $ac_header" >&5
25099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25100if eval "test \"\${$as_ac_Header+set}\" = set"; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25102else
25103 eval "$as_ac_Header=\$ac_header_preproc"
25104fi
25105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25107
25108fi
25109if test `eval echo '${'$as_ac_Header'}'` = yes; then
25110 cat >>confdefs.h <<_ACEOF
25111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25112_ACEOF
25113
25114fi
25115
25116done
25117
25118
25119
25120for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
25121do
25122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25123if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124 echo "$as_me:$LINENO: checking for $ac_header" >&5
25125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25126if eval "test \"\${$as_ac_Header+set}\" = set"; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128fi
25129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25131else
25132 # Is the header compilable?
25133echo "$as_me:$LINENO: checking $ac_header usability" >&5
25134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25135cat >conftest.$ac_ext <<_ACEOF
25136/* confdefs.h. */
25137_ACEOF
25138cat confdefs.h >>conftest.$ac_ext
25139cat >>conftest.$ac_ext <<_ACEOF
25140/* end confdefs.h. */
25141$ac_includes_default
25142#include <$ac_header>
25143_ACEOF
25144rm -f conftest.$ac_objext
25145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25146 (eval $ac_compile) 2>conftest.er1
25147 ac_status=$?
25148 grep -v '^ *+' conftest.er1 >conftest.err
25149 rm -f conftest.er1
25150 cat conftest.err >&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } &&
25153 { ac_try='test -z "$ac_c_werror_flag"
25154 || test ! -s conftest.err'
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; } &&
25160 { ac_try='test -s conftest.$ac_objext'
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; }; then
25166 ac_header_compiler=yes
25167else
25168 echo "$as_me: failed program was:" >&5
25169sed 's/^/| /' conftest.$ac_ext >&5
25170
25171ac_header_compiler=no
25172fi
25173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25175echo "${ECHO_T}$ac_header_compiler" >&6
25176
25177# Is the header present?
25178echo "$as_me:$LINENO: checking $ac_header presence" >&5
25179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25180cat >conftest.$ac_ext <<_ACEOF
25181/* confdefs.h. */
25182_ACEOF
25183cat confdefs.h >>conftest.$ac_ext
25184cat >>conftest.$ac_ext <<_ACEOF
25185/* end confdefs.h. */
25186#include <$ac_header>
25187_ACEOF
25188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25190 ac_status=$?
25191 grep -v '^ *+' conftest.er1 >conftest.err
25192 rm -f conftest.er1
25193 cat conftest.err >&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } >/dev/null; then
25196 if test -s conftest.err; then
25197 ac_cpp_err=$ac_c_preproc_warn_flag
25198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25199 else
25200 ac_cpp_err=
25201 fi
25202else
25203 ac_cpp_err=yes
25204fi
25205if test -z "$ac_cpp_err"; then
25206 ac_header_preproc=yes
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211 ac_header_preproc=no
25212fi
25213rm -f conftest.err conftest.$ac_ext
25214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25215echo "${ECHO_T}$ac_header_preproc" >&6
25216
25217# So? What about this header?
25218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25219 yes:no: )
25220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25221echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25223echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25224 ac_header_preproc=yes
25225 ;;
25226 no:yes:* )
25227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25232echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25234echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25238echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25239 (
25240 cat <<\_ASBOX
25241## ------------------------------------------- ##
25242## Report this to openssh-unix-dev@mindrot.org ##
25243## ------------------------------------------- ##
25244_ASBOX
25245 ) |
25246 sed "s/^/$as_me: WARNING: /" >&2
25247 ;;
25248esac
25249echo "$as_me:$LINENO: checking for $ac_header" >&5
25250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25251if eval "test \"\${$as_ac_Header+set}\" = set"; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25253else
25254 eval "$as_ac_Header=\$ac_header_preproc"
25255fi
25256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25258
25259fi
25260if test `eval echo '${'$as_ac_Header'}'` = yes; then
25261 cat >>confdefs.h <<_ACEOF
25262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25263_ACEOF
25264
25265fi
25266
25267done
25268
25269
25270
25271for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
25272do
25273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25274if eval "test \"\${$as_ac_Header+set}\" = set"; then
25275 echo "$as_me:$LINENO: checking for $ac_header" >&5
25276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25277if eval "test \"\${$as_ac_Header+set}\" = set"; then
25278 echo $ECHO_N "(cached) $ECHO_C" >&6
25279fi
25280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25282else
25283 # Is the header compilable?
25284echo "$as_me:$LINENO: checking $ac_header usability" >&5
25285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25286cat >conftest.$ac_ext <<_ACEOF
25287/* confdefs.h. */
25288_ACEOF
25289cat confdefs.h >>conftest.$ac_ext
25290cat >>conftest.$ac_ext <<_ACEOF
25291/* end confdefs.h. */
25292$ac_includes_default
25293#include <$ac_header>
25294_ACEOF
25295rm -f conftest.$ac_objext
25296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25297 (eval $ac_compile) 2>conftest.er1
25298 ac_status=$?
25299 grep -v '^ *+' conftest.er1 >conftest.err
25300 rm -f conftest.er1
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } &&
25304 { ac_try='test -z "$ac_c_werror_flag"
25305 || test ! -s conftest.err'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; } &&
25311 { ac_try='test -s conftest.$ac_objext'
25312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313 (eval $ac_try) 2>&5
25314 ac_status=$?
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; }; then
25317 ac_header_compiler=yes
25318else
25319 echo "$as_me: failed program was:" >&5
25320sed 's/^/| /' conftest.$ac_ext >&5
25321
25322ac_header_compiler=no
25323fi
25324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25326echo "${ECHO_T}$ac_header_compiler" >&6
25327
25328# Is the header present?
25329echo "$as_me:$LINENO: checking $ac_header presence" >&5
25330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25331cat >conftest.$ac_ext <<_ACEOF
25332/* confdefs.h. */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h. */
25337#include <$ac_header>
25338_ACEOF
25339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25341 ac_status=$?
25342 grep -v '^ *+' conftest.er1 >conftest.err
25343 rm -f conftest.er1
25344 cat conftest.err >&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } >/dev/null; then
25347 if test -s conftest.err; then
25348 ac_cpp_err=$ac_c_preproc_warn_flag
25349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25350 else
25351 ac_cpp_err=
25352 fi
25353else
25354 ac_cpp_err=yes
25355fi
25356if test -z "$ac_cpp_err"; then
25357 ac_header_preproc=yes
25358else
25359 echo "$as_me: failed program was:" >&5
25360sed 's/^/| /' conftest.$ac_ext >&5
25361
25362 ac_header_preproc=no
25363fi
25364rm -f conftest.err conftest.$ac_ext
25365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25366echo "${ECHO_T}$ac_header_preproc" >&6
25367
25368# So? What about this header?
25369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25370 yes:no: )
25371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25375 ac_header_preproc=yes
25376 ;;
25377 no:yes:* )
25378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25390 (
25391 cat <<\_ASBOX
25392## ------------------------------------------- ##
25393## Report this to openssh-unix-dev@mindrot.org ##
25394## ------------------------------------------- ##
25395_ASBOX
25396 ) |
25397 sed "s/^/$as_me: WARNING: /" >&2
25398 ;;
25399esac
25400echo "$as_me:$LINENO: checking for $ac_header" >&5
25401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25402if eval "test \"\${$as_ac_Header+set}\" = set"; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25404else
25405 eval "$as_ac_Header=\$ac_header_preproc"
25406fi
25407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25409
25410fi
25411if test `eval echo '${'$as_ac_Header'}'` = yes; then
25412 cat >>confdefs.h <<_ACEOF
25413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25414_ACEOF
25415
25416fi
25417
25418done
25419
25420
25421 LIBS="$LIBS $K5LIBS"
25422 echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
25423echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
25424if test "${ac_cv_search_k_hasafs+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25426else
25427 ac_func_search_save_LIBS=$LIBS
25428ac_cv_search_k_hasafs=no
25429cat >conftest.$ac_ext <<_ACEOF
25430/* confdefs.h. */
25431_ACEOF
25432cat confdefs.h >>conftest.$ac_ext
25433cat >>conftest.$ac_ext <<_ACEOF
25434/* end confdefs.h. */
25435
25436/* Override any gcc2 internal prototype to avoid an error. */
25437#ifdef __cplusplus
25438extern "C"
25439#endif
25440/* We use char because int might match the return type of a gcc2
25441 builtin and then its argument prototype would still apply. */
25442char k_hasafs ();
25443int
25444main ()
25445{
25446k_hasafs ();
25447 ;
25448 return 0;
25449}
25450_ACEOF
25451rm -f conftest.$ac_objext conftest$ac_exeext
25452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25453 (eval $ac_link) 2>conftest.er1
25454 ac_status=$?
25455 grep -v '^ *+' conftest.er1 >conftest.err
25456 rm -f conftest.er1
25457 cat conftest.err >&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } &&
25460 { ac_try='test -z "$ac_c_werror_flag"
25461 || test ! -s conftest.err'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; } &&
25467 { ac_try='test -s conftest$ac_exeext'
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; }; then
25473 ac_cv_search_k_hasafs="none required"
25474else
25475 echo "$as_me: failed program was:" >&5
25476sed 's/^/| /' conftest.$ac_ext >&5
25477
25478fi
25479rm -f conftest.err conftest.$ac_objext \
25480 conftest$ac_exeext conftest.$ac_ext
25481if test "$ac_cv_search_k_hasafs" = no; then
25482 for ac_lib in kafs; do
25483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25484 cat >conftest.$ac_ext <<_ACEOF
25485/* confdefs.h. */
25486_ACEOF
25487cat confdefs.h >>conftest.$ac_ext
25488cat >>conftest.$ac_ext <<_ACEOF
25489/* end confdefs.h. */
25490
25491/* Override any gcc2 internal prototype to avoid an error. */
25492#ifdef __cplusplus
25493extern "C"
25494#endif
25495/* We use char because int might match the return type of a gcc2
25496 builtin and then its argument prototype would still apply. */
25497char k_hasafs ();
25498int
25499main ()
25500{
25501k_hasafs ();
25502 ;
25503 return 0;
25504}
25505_ACEOF
25506rm -f conftest.$ac_objext conftest$ac_exeext
25507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25508 (eval $ac_link) 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
25515 { ac_try='test -z "$ac_c_werror_flag"
25516 || test ! -s conftest.err'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; } &&
25522 { ac_try='test -s conftest$ac_exeext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_search_k_hasafs="-l$ac_lib"
25529break
25530else
25531 echo "$as_me: failed program was:" >&5
25532sed 's/^/| /' conftest.$ac_ext >&5
25533
25534fi
25535rm -f conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
25537 done
25538fi
25539LIBS=$ac_func_search_save_LIBS
25540fi
25541echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
25542echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
25543if test "$ac_cv_search_k_hasafs" != no; then
25544 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
25545
25546cat >>confdefs.h <<\_ACEOF
25547#define USE_AFS 1
25548_ACEOF
25549
25550fi
25551
25552 fi
25553
25554
25555fi;
25556
25557# Looking for programs, paths and files
25558
25559PRIVSEP_PATH=/var/empty
25560
25561# Check whether --with-privsep-path or --without-privsep-path was given.
25562if test "${with_privsep_path+set}" = set; then
25563 withval="$with_privsep_path"
25564
25565 if test -n "$withval" && test "x$withval" != "xno" && \
25566 test "x${withval}" != "xyes"; then
25567 PRIVSEP_PATH=$withval
25568 fi
25569
25570
25571fi;
25572
25573
25574
25575# Check whether --with-xauth or --without-xauth was given.
25576if test "${with_xauth+set}" = set; then
25577 withval="$with_xauth"
25578
25579 if test -n "$withval" && test "x$withval" != "xno" && \
25580 test "x${withval}" != "xyes"; then
25581 xauth_path=$withval
25582 fi
25583
25584else
25585
25586 TestPath="$PATH"
25587 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
25588 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
25589 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
25590 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
25591 # Extract the first word of "xauth", so it can be a program name with args.
25592set dummy xauth; ac_word=$2
25593echo "$as_me:$LINENO: checking for $ac_word" >&5
25594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25595if test "${ac_cv_path_xauth_path+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25597else
25598 case $xauth_path in
25599 [\\/]* | ?:[\\/]*)
25600 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
25601 ;;
25602 *)
25603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25604for as_dir in $TestPath
25605do
25606 IFS=$as_save_IFS
25607 test -z "$as_dir" && as_dir=.
25608 for ac_exec_ext in '' $ac_executable_extensions; do
25609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25610 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
25611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25612 break 2
25613 fi
25614done
25615done
25616
25617 ;;
25618esac
25619fi
25620xauth_path=$ac_cv_path_xauth_path
25621
25622if test -n "$xauth_path"; then
25623 echo "$as_me:$LINENO: result: $xauth_path" >&5
25624echo "${ECHO_T}$xauth_path" >&6
25625else
25626 echo "$as_me:$LINENO: result: no" >&5
25627echo "${ECHO_T}no" >&6
25628fi
25629
25630 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
25631 xauth_path="/usr/openwin/bin/xauth"
25632 fi
25633
25634
25635fi;
25636
25637STRIP_OPT=-s
25638# Check whether --enable-strip or --disable-strip was given.
25639if test "${enable_strip+set}" = set; then
25640 enableval="$enable_strip"
25641
25642 if test "x$enableval" = "xno" ; then
25643 STRIP_OPT=
25644 fi
25645
25646
25647fi;
25648
25649
25650if test -z "$xauth_path" ; then
25651 XAUTH_PATH="undefined"
25652
25653else
25654
25655cat >>confdefs.h <<_ACEOF
25656#define XAUTH_PATH "$xauth_path"
25657_ACEOF
25658
25659 XAUTH_PATH=$xauth_path
25660
25661fi
25662
25663# Check for mail directory (last resort if we cannot get it from headers)
25664if test ! -z "$MAIL" ; then
25665 maildir=`dirname $MAIL`
25666
25667cat >>confdefs.h <<_ACEOF
25668#define MAIL_DIRECTORY "$maildir"
25669_ACEOF
25670
25671fi
25672
25673if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
25674 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
25675echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
25676 disable_ptmx_check=yes
25677fi
25678if test -z "$no_dev_ptmx" ; then
25679 if test "x$disable_ptmx_check" != "xyes" ; then
25680 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
25681echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
25682if test "${ac_cv_file___dev_ptmx_+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25684else
25685 test "$cross_compiling" = yes &&
25686 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25687echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25688 { (exit 1); exit 1; }; }
25689if test -r ""/dev/ptmx""; then
25690 ac_cv_file___dev_ptmx_=yes
25691else
25692 ac_cv_file___dev_ptmx_=no
25693fi
25694fi
25695echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
25696echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
25697if test $ac_cv_file___dev_ptmx_ = yes; then
25698
25699
25700cat >>confdefs.h <<_ACEOF
25701#define HAVE_DEV_PTMX 1
25702_ACEOF
25703
25704 have_dev_ptmx=1
25705
25706
25707fi
25708
25709 fi
25710fi
25711
25712if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
25713 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
25714echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
25715if test "${ac_cv_file___dev_ptc_+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717else
25718 test "$cross_compiling" = yes &&
25719 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25720echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25721 { (exit 1); exit 1; }; }
25722if test -r ""/dev/ptc""; then
25723 ac_cv_file___dev_ptc_=yes
25724else
25725 ac_cv_file___dev_ptc_=no
25726fi
25727fi
25728echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
25729echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
25730if test $ac_cv_file___dev_ptc_ = yes; then
25731
25732
25733cat >>confdefs.h <<_ACEOF
25734#define HAVE_DEV_PTS_AND_PTC 1
25735_ACEOF
25736
25737 have_dev_ptc=1
25738
25739
25740fi
25741
25742else
25743 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
25744echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
25745fi
25746
25747# Options from here on. Some of these are preset by platform above
25748
25749# Check whether --with-mantype or --without-mantype was given.
25750if test "${with_mantype+set}" = set; then
25751 withval="$with_mantype"
25752
25753 case "$withval" in
25754 man|cat|doc)
25755 MANTYPE=$withval
25756 ;;
25757 *)
25758 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
25759echo "$as_me: error: invalid man type: $withval" >&2;}
25760 { (exit 1); exit 1; }; }
25761 ;;
25762 esac
25763
25764
25765fi;
25766if test -z "$MANTYPE"; then
25767 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
25768 for ac_prog in nroff awf
25769do
25770 # Extract the first word of "$ac_prog", so it can be a program name with args.
25771set dummy $ac_prog; ac_word=$2
25772echo "$as_me:$LINENO: checking for $ac_word" >&5
25773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25774if test "${ac_cv_path_NROFF+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25776else
25777 case $NROFF in
25778 [\\/]* | ?:[\\/]*)
25779 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
25780 ;;
25781 *)
25782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783for as_dir in $TestPath
25784do
25785 IFS=$as_save_IFS
25786 test -z "$as_dir" && as_dir=.
25787 for ac_exec_ext in '' $ac_executable_extensions; do
25788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25789 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
25790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25791 break 2
25792 fi
25793done
25794done
25795
25796 ;;
25797esac
25798fi
25799NROFF=$ac_cv_path_NROFF
25800
25801if test -n "$NROFF"; then
25802 echo "$as_me:$LINENO: result: $NROFF" >&5
25803echo "${ECHO_T}$NROFF" >&6
25804else
25805 echo "$as_me:$LINENO: result: no" >&5
25806echo "${ECHO_T}no" >&6
25807fi
25808
25809 test -n "$NROFF" && break
25810done
25811test -n "$NROFF" || NROFF="/bin/false"
25812
25813 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
25814 MANTYPE=doc
25815 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
25816 MANTYPE=man
25817 else
25818 MANTYPE=cat
25819 fi
25820fi
25821
25822if test "$MANTYPE" = "doc"; then
25823 mansubdir=man;
25824else
25825 mansubdir=$MANTYPE;
25826fi
25827
25828
25829# Check whether to enable MD5 passwords
25830MD5_MSG="no"
25831
25832# Check whether --with-md5-passwords or --without-md5-passwords was given.
25833if test "${with_md5_passwords+set}" = set; then
25834 withval="$with_md5_passwords"
25835
25836 if test "x$withval" != "xno" ; then
25837
25838cat >>confdefs.h <<\_ACEOF
25839#define HAVE_MD5_PASSWORDS 1
25840_ACEOF
25841
25842 MD5_MSG="yes"
25843 fi
25844
25845
25846fi;
25847
25848# Whether to disable shadow password support
25849
25850# Check whether --with-shadow or --without-shadow was given.
25851if test "${with_shadow+set}" = set; then
25852 withval="$with_shadow"
25853
25854 if test "x$withval" = "xno" ; then
25855 cat >>confdefs.h <<\_ACEOF
25856#define DISABLE_SHADOW 1
25857_ACEOF
25858
25859 disable_shadow=yes
25860 fi
25861
25862
25863fi;
25864
25865if test -z "$disable_shadow" ; then
25866 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
25867echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874
25875#include <sys/types.h>
25876#include <shadow.h>
25877 struct spwd sp;
25878
25879int
25880main ()
25881{
25882 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
25883 ;
25884 return 0;
25885}
25886_ACEOF
25887rm -f conftest.$ac_objext
25888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25889 (eval $ac_compile) 2>conftest.er1
25890 ac_status=$?
25891 grep -v '^ *+' conftest.er1 >conftest.err
25892 rm -f conftest.er1
25893 cat conftest.err >&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); } &&
25896 { ac_try='test -z "$ac_c_werror_flag"
25897 || test ! -s conftest.err'
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; } &&
25903 { ac_try='test -s conftest.$ac_objext'
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; }; then
25909 sp_expire_available=yes
25910else
25911 echo "$as_me: failed program was:" >&5
25912sed 's/^/| /' conftest.$ac_ext >&5
25913
25914
25915
25916fi
25917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25918
25919 if test "x$sp_expire_available" = "xyes" ; then
25920 echo "$as_me:$LINENO: result: yes" >&5
25921echo "${ECHO_T}yes" >&6
25922
25923cat >>confdefs.h <<\_ACEOF
25924#define HAS_SHADOW_EXPIRE 1
25925_ACEOF
25926
25927 else
25928 echo "$as_me:$LINENO: result: no" >&5
25929echo "${ECHO_T}no" >&6
25930 fi
25931fi
25932
25933# Use ip address instead of hostname in $DISPLAY
25934if test ! -z "$IPADDR_IN_DISPLAY" ; then
25935 DISPLAY_HACK_MSG="yes"
25936
25937cat >>confdefs.h <<\_ACEOF
25938#define IPADDR_IN_DISPLAY 1
25939_ACEOF
25940
25941else
25942 DISPLAY_HACK_MSG="no"
25943
25944# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
25945if test "${with_ipaddr_display+set}" = set; then
25946 withval="$with_ipaddr_display"
25947
25948 if test "x$withval" != "xno" ; then
25949 cat >>confdefs.h <<\_ACEOF
25950#define IPADDR_IN_DISPLAY 1
25951_ACEOF
25952
25953 DISPLAY_HACK_MSG="yes"
25954 fi
25955
25956
25957fi;
25958fi
25959
25960# check for /etc/default/login and use it if present.
25961# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
25962if test "${enable_etc_default_login+set}" = set; then
25963 enableval="$enable_etc_default_login"
25964 if test "x$enableval" = "xno"; then
25965 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
25966echo "$as_me: /etc/default/login handling disabled" >&6;}
25967 etc_default_login=no
25968 else
25969 etc_default_login=yes
25970 fi
25971else
25972 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
25973 then
25974 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
25975echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
25976 etc_default_login=no
25977 else
25978 etc_default_login=yes
25979 fi
25980
25981fi;
25982
25983if test "x$etc_default_login" != "xno"; then
25984 echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
25985echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
25986if test "${ac_cv_file___etc_default_login_+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989 test "$cross_compiling" = yes &&
25990 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25991echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25992 { (exit 1); exit 1; }; }
25993if test -r ""/etc/default/login""; then
25994 ac_cv_file___etc_default_login_=yes
25995else
25996 ac_cv_file___etc_default_login_=no
25997fi
25998fi
25999echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
26000echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
26001if test $ac_cv_file___etc_default_login_ = yes; then
26002 external_path_file=/etc/default/login
26003fi
26004
26005 if test "x$external_path_file" = "x/etc/default/login"; then
26006
26007cat >>confdefs.h <<\_ACEOF
26008#define HAVE_ETC_DEFAULT_LOGIN 1
26009_ACEOF
26010
26011 fi
26012fi
26013
26014if test $ac_cv_func_login_getcapbool = "yes" && \
26015 test $ac_cv_header_login_cap_h = "yes" ; then
26016 external_path_file=/etc/login.conf
26017fi
26018
26019# Whether to mess with the default path
26020SERVER_PATH_MSG="(default)"
26021
26022# Check whether --with-default-path or --without-default-path was given.
26023if test "${with_default_path+set}" = set; then
26024 withval="$with_default_path"
26025
26026 if test "x$external_path_file" = "x/etc/login.conf" ; then
26027 { echo "$as_me:$LINENO: WARNING:
26028--with-default-path=PATH has no effect on this system.
26029Edit /etc/login.conf instead." >&5
26030echo "$as_me: WARNING:
26031--with-default-path=PATH has no effect on this system.
26032Edit /etc/login.conf instead." >&2;}
26033 elif test "x$withval" != "xno" ; then
26034 if test ! -z "$external_path_file" ; then
26035 { echo "$as_me:$LINENO: WARNING:
26036--with-default-path=PATH will only be used if PATH is not defined in
26037$external_path_file ." >&5
26038echo "$as_me: WARNING:
26039--with-default-path=PATH will only be used if PATH is not defined in
26040$external_path_file ." >&2;}
26041 fi
26042 user_path="$withval"
26043 SERVER_PATH_MSG="$withval"
26044 fi
26045
26046else
26047 if test "x$external_path_file" = "x/etc/login.conf" ; then
26048 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
26049echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
26050 else
26051 if test ! -z "$external_path_file" ; then
26052 { echo "$as_me:$LINENO: WARNING:
26053If PATH is defined in $external_path_file, ensure the path to scp is included,
26054otherwise scp will not work." >&5
26055echo "$as_me: WARNING:
26056If PATH is defined in $external_path_file, ensure the path to scp is included,
26057otherwise scp will not work." >&2;}
26058 fi
26059 if test "$cross_compiling" = yes; then
26060 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
26061
26062else
26063 cat >conftest.$ac_ext <<_ACEOF
26064/* confdefs.h. */
26065_ACEOF
26066cat confdefs.h >>conftest.$ac_ext
26067cat >>conftest.$ac_ext <<_ACEOF
26068/* end confdefs.h. */
26069
26070/* find out what STDPATH is */
26071#include <stdio.h>
26072#ifdef HAVE_PATHS_H
26073# include <paths.h>
26074#endif
26075#ifndef _PATH_STDPATH
26076# ifdef _PATH_USERPATH /* Irix */
26077# define _PATH_STDPATH _PATH_USERPATH
26078# else
26079# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
26080# endif
26081#endif
26082#include <sys/types.h>
26083#include <sys/stat.h>
26084#include <fcntl.h>
26085#define DATA "conftest.stdpath"
26086
26087main()
26088{
26089 FILE *fd;
26090 int rc;
26091
26092 fd = fopen(DATA,"w");
26093 if(fd == NULL)
26094 exit(1);
26095
26096 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
26097 exit(1);
26098
26099 exit(0);
26100}
26101
26102_ACEOF
26103rm -f conftest$ac_exeext
26104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105 (eval $ac_link) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; }; then
26114 user_path=`cat conftest.stdpath`
26115else
26116 echo "$as_me: program exited with status $ac_status" >&5
26117echo "$as_me: failed program was:" >&5
26118sed 's/^/| /' conftest.$ac_ext >&5
26119
26120( exit $ac_status )
26121 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
26122fi
26123rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26124fi
26125# make sure $bindir is in USER_PATH so scp will work
26126 t_bindir=`eval echo ${bindir}`
26127 case $t_bindir in
26128 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
26129 esac
26130 case $t_bindir in
26131 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
26132 esac
26133 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
26134 if test $? -ne 0 ; then
26135 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
26136 if test $? -ne 0 ; then
26137 user_path=$user_path:$t_bindir
26138 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
26139echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
26140 fi
26141 fi
26142 fi
26143
26144fi;
26145if test "x$external_path_file" != "x/etc/login.conf" ; then
26146
26147cat >>confdefs.h <<_ACEOF
26148#define USER_PATH "$user_path"
26149_ACEOF
26150
26151
26152fi
26153
26154# Set superuser path separately to user path
26155
26156# Check whether --with-superuser-path or --without-superuser-path was given.
26157if test "${with_superuser_path+set}" = set; then
26158 withval="$with_superuser_path"
26159
26160 if test -n "$withval" && test "x$withval" != "xno" && \
26161 test "x${withval}" != "xyes"; then
26162
26163cat >>confdefs.h <<_ACEOF
26164#define SUPERUSER_PATH "$withval"
26165_ACEOF
26166
26167 superuser_path=$withval
26168 fi
26169
26170
26171fi;
26172
26173
26174echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
26175echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
26176IPV4_IN6_HACK_MSG="no"
26177
26178# Check whether --with-4in6 or --without-4in6 was given.
26179if test "${with_4in6+set}" = set; then
26180 withval="$with_4in6"
26181
26182 if test "x$withval" != "xno" ; then
26183 echo "$as_me:$LINENO: result: yes" >&5
26184echo "${ECHO_T}yes" >&6
26185
26186cat >>confdefs.h <<\_ACEOF
26187#define IPV4_IN_IPV6 1
26188_ACEOF
26189
26190 IPV4_IN6_HACK_MSG="yes"
26191 else
26192 echo "$as_me:$LINENO: result: no" >&5
26193echo "${ECHO_T}no" >&6
26194 fi
26195
26196else
26197
26198 if test "x$inet6_default_4in6" = "xyes"; then
26199 echo "$as_me:$LINENO: result: yes (default)" >&5
26200echo "${ECHO_T}yes (default)" >&6
26201 cat >>confdefs.h <<\_ACEOF
26202#define IPV4_IN_IPV6 1
26203_ACEOF
26204
26205 IPV4_IN6_HACK_MSG="yes"
26206 else
26207 echo "$as_me:$LINENO: result: no (default)" >&5
26208echo "${ECHO_T}no (default)" >&6
26209 fi
26210
26211
26212fi;
26213
26214# Whether to enable BSD auth support
26215BSD_AUTH_MSG=no
26216
26217# Check whether --with-bsd-auth or --without-bsd-auth was given.
26218if test "${with_bsd_auth+set}" = set; then
26219 withval="$with_bsd_auth"
26220
26221 if test "x$withval" != "xno" ; then
26222
26223cat >>confdefs.h <<\_ACEOF
26224#define BSD_AUTH 1
26225_ACEOF
26226
26227 BSD_AUTH_MSG=yes
26228 fi
26229
26230
26231fi;
26232
26233# Where to place sshd.pid
26234piddir=/var/run
26235# make sure the directory exists
26236if test ! -d $piddir ; then
26237 piddir=`eval echo ${sysconfdir}`
26238 case $piddir in
26239 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
26240 esac
26241fi
26242
26243
26244# Check whether --with-pid-dir or --without-pid-dir was given.
26245if test "${with_pid_dir+set}" = set; then
26246 withval="$with_pid_dir"
26247
26248 if test -n "$withval" && test "x$withval" != "xno" && \
26249 test "x${withval}" != "xyes"; then
26250 piddir=$withval
26251 if test ! -d $piddir ; then
26252 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
26253echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
26254 fi
26255 fi
26256
26257
26258fi;
26259
26260
26261cat >>confdefs.h <<_ACEOF
26262#define _PATH_SSH_PIDDIR "$piddir"
26263_ACEOF
26264
26265
26266
26267# Check whether --enable-lastlog or --disable-lastlog was given.
26268if test "${enable_lastlog+set}" = set; then
26269 enableval="$enable_lastlog"
26270
26271 if test "x$enableval" = "xno" ; then
26272 cat >>confdefs.h <<\_ACEOF
26273#define DISABLE_LASTLOG 1
26274_ACEOF
26275
26276 fi
26277
26278
26279fi;
26280# Check whether --enable-utmp or --disable-utmp was given.
26281if test "${enable_utmp+set}" = set; then
26282 enableval="$enable_utmp"
26283
26284 if test "x$enableval" = "xno" ; then
26285 cat >>confdefs.h <<\_ACEOF
26286#define DISABLE_UTMP 1
26287_ACEOF
26288
26289 fi
26290
26291
26292fi;
26293# Check whether --enable-utmpx or --disable-utmpx was given.
26294if test "${enable_utmpx+set}" = set; then
26295 enableval="$enable_utmpx"
26296
26297 if test "x$enableval" = "xno" ; then
26298
26299cat >>confdefs.h <<\_ACEOF
26300#define DISABLE_UTMPX 1
26301_ACEOF
26302
26303 fi
26304
26305
26306fi;
26307# Check whether --enable-wtmp or --disable-wtmp was given.
26308if test "${enable_wtmp+set}" = set; then
26309 enableval="$enable_wtmp"
26310
26311 if test "x$enableval" = "xno" ; then
26312 cat >>confdefs.h <<\_ACEOF
26313#define DISABLE_WTMP 1
26314_ACEOF
26315
26316 fi
26317
26318
26319fi;
26320# Check whether --enable-wtmpx or --disable-wtmpx was given.
26321if test "${enable_wtmpx+set}" = set; then
26322 enableval="$enable_wtmpx"
26323
26324 if test "x$enableval" = "xno" ; then
26325
26326cat >>confdefs.h <<\_ACEOF
26327#define DISABLE_WTMPX 1
26328_ACEOF
26329
26330 fi
26331
26332
26333fi;
26334# Check whether --enable-libutil or --disable-libutil was given.
26335if test "${enable_libutil+set}" = set; then
26336 enableval="$enable_libutil"
26337
26338 if test "x$enableval" = "xno" ; then
26339 cat >>confdefs.h <<\_ACEOF
26340#define DISABLE_LOGIN 1
26341_ACEOF
26342
26343 fi
26344
26345
26346fi;
26347# Check whether --enable-pututline or --disable-pututline was given.
26348if test "${enable_pututline+set}" = set; then
26349 enableval="$enable_pututline"
26350
26351 if test "x$enableval" = "xno" ; then
26352
26353cat >>confdefs.h <<\_ACEOF
26354#define DISABLE_PUTUTLINE 1
26355_ACEOF
26356
26357 fi
26358
26359
26360fi;
26361# Check whether --enable-pututxline or --disable-pututxline was given.
26362if test "${enable_pututxline+set}" = set; then
26363 enableval="$enable_pututxline"
26364
26365 if test "x$enableval" = "xno" ; then
26366
26367cat >>confdefs.h <<\_ACEOF
26368#define DISABLE_PUTUTXLINE 1
26369_ACEOF
26370
26371 fi
26372
26373
26374fi;
26375
26376# Check whether --with-lastlog or --without-lastlog was given.
26377if test "${with_lastlog+set}" = set; then
26378 withval="$with_lastlog"
26379
26380 if test "x$withval" = "xno" ; then
26381 cat >>confdefs.h <<\_ACEOF
26382#define DISABLE_LASTLOG 1
26383_ACEOF
26384
26385 elif test -n "$withval" && test "x${withval}" != "xyes"; then
26386 conf_lastlog_location=$withval
26387 fi
26388
26389
26390fi;
26391
26392
26393echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
26394echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
26395cat >conftest.$ac_ext <<_ACEOF
26396/* confdefs.h. */
26397_ACEOF
26398cat confdefs.h >>conftest.$ac_ext
26399cat >>conftest.$ac_ext <<_ACEOF
26400/* end confdefs.h. */
26401
26402#include <sys/types.h>
26403#include <utmp.h>
26404#ifdef HAVE_LASTLOG_H
26405# include <lastlog.h>
26406#endif
26407#ifdef HAVE_PATHS_H
26408# include <paths.h>
26409#endif
26410#ifdef HAVE_LOGIN_H
26411# include <login.h>
26412#endif
26413
26414int
26415main ()
26416{
26417 char *lastlog = LASTLOG_FILE;
26418 ;
26419 return 0;
26420}
26421_ACEOF
26422rm -f conftest.$ac_objext
26423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26424 (eval $ac_compile) 2>conftest.er1
26425 ac_status=$?
26426 grep -v '^ *+' conftest.er1 >conftest.err
26427 rm -f conftest.er1
26428 cat conftest.err >&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } &&
26431 { ac_try='test -z "$ac_c_werror_flag"
26432 || test ! -s conftest.err'
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; } &&
26438 { ac_try='test -s conftest.$ac_objext'
26439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; }; then
26444 echo "$as_me:$LINENO: result: yes" >&5
26445echo "${ECHO_T}yes" >&6
26446else
26447 echo "$as_me: failed program was:" >&5
26448sed 's/^/| /' conftest.$ac_ext >&5
26449
26450
26451 echo "$as_me:$LINENO: result: no" >&5
26452echo "${ECHO_T}no" >&6
26453 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
26454echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
26455 cat >conftest.$ac_ext <<_ACEOF
26456/* confdefs.h. */
26457_ACEOF
26458cat confdefs.h >>conftest.$ac_ext
26459cat >>conftest.$ac_ext <<_ACEOF
26460/* end confdefs.h. */
26461
26462#include <sys/types.h>
26463#include <utmp.h>
26464#ifdef HAVE_LASTLOG_H
26465# include <lastlog.h>
26466#endif
26467#ifdef HAVE_PATHS_H
26468# include <paths.h>
26469#endif
26470
26471int
26472main ()
26473{
26474 char *lastlog = _PATH_LASTLOG;
26475 ;
26476 return 0;
26477}
26478_ACEOF
26479rm -f conftest.$ac_objext
26480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481 (eval $ac_compile) 2>conftest.er1
26482 ac_status=$?
26483 grep -v '^ *+' conftest.er1 >conftest.err
26484 rm -f conftest.er1
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } &&
26488 { ac_try='test -z "$ac_c_werror_flag"
26489 || test ! -s conftest.err'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 echo "$as_me:$LINENO: result: yes" >&5
26502echo "${ECHO_T}yes" >&6
26503else
26504 echo "$as_me: failed program was:" >&5
26505sed 's/^/| /' conftest.$ac_ext >&5
26506
26507
26508 echo "$as_me:$LINENO: result: no" >&5
26509echo "${ECHO_T}no" >&6
26510 system_lastlog_path=no
26511
26512fi
26513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26514
26515
26516fi
26517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518
26519if test -z "$conf_lastlog_location"; then
26520 if test x"$system_lastlog_path" = x"no" ; then
26521 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
26522 if (test -d "$f" || test -f "$f") ; then
26523 conf_lastlog_location=$f
26524 fi
26525 done
26526 if test -z "$conf_lastlog_location"; then
26527 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
26528echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
26529 fi
26530 fi
26531fi
26532
26533if test -n "$conf_lastlog_location"; then
26534
26535cat >>confdefs.h <<_ACEOF
26536#define CONF_LASTLOG_FILE "$conf_lastlog_location"
26537_ACEOF
26538
26539fi
26540
26541echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
26542echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
26543cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549
26550#include <sys/types.h>
26551#include <utmp.h>
26552#ifdef HAVE_PATHS_H
26553# include <paths.h>
26554#endif
26555
26556int
26557main ()
26558{
26559 char *utmp = UTMP_FILE;
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26566 (eval $ac_compile) 2>conftest.er1
26567 ac_status=$?
26568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
26573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest.$ac_objext'
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 echo "$as_me:$LINENO: result: yes" >&5
26587echo "${ECHO_T}yes" >&6
26588else
26589 echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592 echo "$as_me:$LINENO: result: no" >&5
26593echo "${ECHO_T}no" >&6
26594 system_utmp_path=no
26595
26596fi
26597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26598if test -z "$conf_utmp_location"; then
26599 if test x"$system_utmp_path" = x"no" ; then
26600 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
26601 if test -f $f ; then
26602 conf_utmp_location=$f
26603 fi
26604 done
26605 if test -z "$conf_utmp_location"; then
26606 cat >>confdefs.h <<\_ACEOF
26607#define DISABLE_UTMP 1
26608_ACEOF
26609
26610 fi
26611 fi
26612fi
26613if test -n "$conf_utmp_location"; then
26614
26615cat >>confdefs.h <<_ACEOF
26616#define CONF_UTMP_FILE "$conf_utmp_location"
26617_ACEOF
26618
26619fi
26620
26621echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
26622echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
26623cat >conftest.$ac_ext <<_ACEOF
26624/* confdefs.h. */
26625_ACEOF
26626cat confdefs.h >>conftest.$ac_ext
26627cat >>conftest.$ac_ext <<_ACEOF
26628/* end confdefs.h. */
26629
26630#include <sys/types.h>
26631#include <utmp.h>
26632#ifdef HAVE_PATHS_H
26633# include <paths.h>
26634#endif
26635
26636int
26637main ()
26638{
26639 char *wtmp = WTMP_FILE;
26640 ;
26641 return 0;
26642}
26643_ACEOF
26644rm -f conftest.$ac_objext
26645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26646 (eval $ac_compile) 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 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest.$ac_objext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 echo "$as_me:$LINENO: result: yes" >&5
26667echo "${ECHO_T}yes" >&6
26668else
26669 echo "$as_me: failed program was:" >&5
26670sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 echo "$as_me:$LINENO: result: no" >&5
26673echo "${ECHO_T}no" >&6
26674 system_wtmp_path=no
26675
26676fi
26677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26678if test -z "$conf_wtmp_location"; then
26679 if test x"$system_wtmp_path" = x"no" ; then
26680 for f in /usr/adm/wtmp /var/log/wtmp; do
26681 if test -f $f ; then
26682 conf_wtmp_location=$f
26683 fi
26684 done
26685 if test -z "$conf_wtmp_location"; then
26686 cat >>confdefs.h <<\_ACEOF
26687#define DISABLE_WTMP 1
26688_ACEOF
26689
26690 fi
26691 fi
26692fi
26693if test -n "$conf_wtmp_location"; then
26694
26695cat >>confdefs.h <<_ACEOF
26696#define CONF_WTMP_FILE "$conf_wtmp_location"
26697_ACEOF
26698
26699fi
26700
26701
26702echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
26703echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
26704cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h. */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h. */
26710
26711#include <sys/types.h>
26712#include <utmp.h>
26713#ifdef HAVE_UTMPX_H
26714#include <utmpx.h>
26715#endif
26716#ifdef HAVE_PATHS_H
26717# include <paths.h>
26718#endif
26719
26720int
26721main ()
26722{
26723 char *utmpx = UTMPX_FILE;
26724 ;
26725 return 0;
26726}
26727_ACEOF
26728rm -f conftest.$ac_objext
26729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26730 (eval $ac_compile) 2>conftest.er1
26731 ac_status=$?
26732 grep -v '^ *+' conftest.er1 >conftest.err
26733 rm -f conftest.er1
26734 cat conftest.err >&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
26737 { ac_try='test -z "$ac_c_werror_flag"
26738 || test ! -s conftest.err'
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; } &&
26744 { ac_try='test -s conftest.$ac_objext'
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750 echo "$as_me:$LINENO: result: yes" >&5
26751echo "${ECHO_T}yes" >&6
26752else
26753 echo "$as_me: failed program was:" >&5
26754sed 's/^/| /' conftest.$ac_ext >&5
26755
26756 echo "$as_me:$LINENO: result: no" >&5
26757echo "${ECHO_T}no" >&6
26758 system_utmpx_path=no
26759
26760fi
26761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26762if test -z "$conf_utmpx_location"; then
26763 if test x"$system_utmpx_path" = x"no" ; then
26764 cat >>confdefs.h <<\_ACEOF
26765#define DISABLE_UTMPX 1
26766_ACEOF
26767
26768 fi
26769else
26770
26771cat >>confdefs.h <<_ACEOF
26772#define CONF_UTMPX_FILE "$conf_utmpx_location"
26773_ACEOF
26774
26775fi
26776
26777echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
26778echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
26779cat >conftest.$ac_ext <<_ACEOF
26780/* confdefs.h. */
26781_ACEOF
26782cat confdefs.h >>conftest.$ac_ext
26783cat >>conftest.$ac_ext <<_ACEOF
26784/* end confdefs.h. */
26785
26786#include <sys/types.h>
26787#include <utmp.h>
26788#ifdef HAVE_UTMPX_H
26789#include <utmpx.h>
26790#endif
26791#ifdef HAVE_PATHS_H
26792# include <paths.h>
26793#endif
26794
26795int
26796main ()
26797{
26798 char *wtmpx = WTMPX_FILE;
26799 ;
26800 return 0;
26801}
26802_ACEOF
26803rm -f conftest.$ac_objext
26804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26805 (eval $ac_compile) 2>conftest.er1
26806 ac_status=$?
26807 grep -v '^ *+' conftest.er1 >conftest.err
26808 rm -f conftest.er1
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } &&
26812 { ac_try='test -z "$ac_c_werror_flag"
26813 || test ! -s conftest.err'
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; } &&
26819 { ac_try='test -s conftest.$ac_objext'
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825 echo "$as_me:$LINENO: result: yes" >&5
26826echo "${ECHO_T}yes" >&6
26827else
26828 echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831 echo "$as_me:$LINENO: result: no" >&5
26832echo "${ECHO_T}no" >&6
26833 system_wtmpx_path=no
26834
26835fi
26836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26837if test -z "$conf_wtmpx_location"; then
26838 if test x"$system_wtmpx_path" = x"no" ; then
26839 cat >>confdefs.h <<\_ACEOF
26840#define DISABLE_WTMPX 1
26841_ACEOF
26842
26843 fi
26844else
26845
26846cat >>confdefs.h <<_ACEOF
26847#define CONF_WTMPX_FILE "$conf_wtmpx_location"
26848_ACEOF
26849
26850fi
26851
26852
26853if test ! -z "$blibpath" ; then
26854 LDFLAGS="$LDFLAGS $blibflags$blibpath"
26855 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
26856echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
26857fi
26858
26859if test "$PAM_MSG" = yes ; then
26860 LIBS=`echo $LIBS | sed 's/-lpam //'`
26861fi
26862if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
26863 LIBS=`echo $LIBS | sed 's/-ldl //'`
26864fi
26865
26866CFLAGS="$CFLAGS $werror_flags"
26867
26868
26869 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
26870
26871cat >confcache <<\_ACEOF
26872# This file is a shell script that caches the results of configure
26873# tests run on this system so they can be shared between configure
26874# scripts and configure runs, see configure's option --config-cache.
26875# It is not useful on other systems. If it contains results you don't
26876# want to keep, you may remove or edit it.
26877#
26878# config.status only pays attention to the cache file if you give it
26879# the --recheck option to rerun configure.
26880#
26881# `ac_cv_env_foo' variables (set or unset) will be overridden when
26882# loading this file, other *unset* `ac_cv_foo' will be assigned the
26883# following values.
26884
26885_ACEOF
26886
26887# The following way of writing the cache mishandles newlines in values,
26888# but we know of no workaround that is simple, portable, and efficient.
26889# So, don't put newlines in cache variables' values.
26890# Ultrix sh set writes to stderr and can't be redirected directly,
26891# and sets the high bit in the cache file unless we assign to the vars.
26892{
26893 (set) 2>&1 |
26894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26895 *ac_space=\ *)
26896 # `set' does not quote correctly, so add quotes (double-quote
26897 # substitution turns \\\\ into \\, and sed turns \\ into \).
26898 sed -n \
26899 "s/'/'\\\\''/g;
26900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26901 ;;
26902 *)
26903 # `set' quotes correctly as required by POSIX, so do not add quotes.
26904 sed -n \
26905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26906 ;;
26907 esac;
26908} |
26909 sed '
26910 t clear
26911 : clear
26912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26913 t end
26914 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26915 : end' >>confcache
26916if diff $cache_file confcache >/dev/null 2>&1; then :; else
26917 if test -w $cache_file; then
26918 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26919 cat confcache >$cache_file
26920 else
26921 echo "not updating unwritable cache $cache_file"
26922 fi
26923fi
26924rm -f confcache
26925
26926test "x$prefix" = xNONE && prefix=$ac_default_prefix
26927# Let make expand exec_prefix.
26928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26929
26930# VPATH may cause trouble with some makes, so we remove $(srcdir),
26931# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26932# trailing colons and then remove the whole line if VPATH becomes empty
26933# (actually we leave an empty line to preserve line numbers).
26934if test "x$srcdir" = x.; then
26935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26936s/:*\$(srcdir):*/:/;
26937s/:*\${srcdir}:*/:/;
26938s/:*@srcdir@:*/:/;
26939s/^\([^=]*=[ ]*\):*/\1/;
26940s/:*$//;
26941s/^[^=]*=[ ]*$//;
26942}'
26943fi
26944
26945DEFS=-DHAVE_CONFIG_H
26946
26947ac_libobjs=
26948ac_ltlibobjs=
26949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26950 # 1. Remove the extension, and $U if already installed.
26951 ac_i=`echo "$ac_i" |
26952 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26953 # 2. Add them.
26954 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26955 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26956done
26957LIBOBJS=$ac_libobjs
26958
26959LTLIBOBJS=$ac_ltlibobjs
26960
26961
26962
26963: ${CONFIG_STATUS=./config.status}
26964ac_clean_files_save=$ac_clean_files
26965ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26966{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26967echo "$as_me: creating $CONFIG_STATUS" >&6;}
26968cat >$CONFIG_STATUS <<_ACEOF
26969#! $SHELL
26970# Generated by $as_me.
26971# Run this file to recreate the current configuration.
26972# Compiler output produced by configure, useful for debugging
26973# configure, is in config.log if it exists.
26974
26975debug=false
26976ac_cs_recheck=false
26977ac_cs_silent=false
26978SHELL=\${CONFIG_SHELL-$SHELL}
26979_ACEOF
26980
26981cat >>$CONFIG_STATUS <<\_ACEOF
26982## --------------------- ##
26983## M4sh Initialization. ##
26984## --------------------- ##
26985
26986# Be Bourne compatible
26987if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26988 emulate sh
26989 NULLCMD=:
26990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26991 # is contrary to our usage. Disable this feature.
26992 alias -g '${1+"$@"}'='"$@"'
26993elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26994 set -o posix
26995fi
26996DUALCASE=1; export DUALCASE # for MKS sh
26997
26998# Support unset when possible.
26999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27000 as_unset=unset
27001else
27002 as_unset=false
27003fi
27004
27005
27006# Work around bugs in pre-3.0 UWIN ksh.
27007$as_unset ENV MAIL MAILPATH
27008PS1='$ '
27009PS2='> '
27010PS4='+ '
27011
27012# NLS nuisances.
27013for as_var in \
27014 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27015 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27016 LC_TELEPHONE LC_TIME
27017do
27018 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27019 eval $as_var=C; export $as_var
27020 else
27021 $as_unset $as_var
27022 fi
27023done
27024
27025# Required to use basename.
27026if expr a : '\(a\)' >/dev/null 2>&1; then
27027 as_expr=expr
27028else
27029 as_expr=false
27030fi
27031
27032if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27033 as_basename=basename
27034else
27035 as_basename=false
27036fi
27037
27038
27039# Name of the executable.
27040as_me=`$as_basename "$0" ||
27041$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27042 X"$0" : 'X\(//\)$' \| \
27043 X"$0" : 'X\(/\)$' \| \
27044 . : '\(.\)' 2>/dev/null ||
27045echo X/"$0" |
27046 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27047 /^X\/\(\/\/\)$/{ s//\1/; q; }
27048 /^X\/\(\/\).*/{ s//\1/; q; }
27049 s/.*/./; q'`
27050
27051
27052# PATH needs CR, and LINENO needs CR and PATH.
27053# Avoid depending upon Character Ranges.
27054as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27055as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27056as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27057as_cr_digits='0123456789'
27058as_cr_alnum=$as_cr_Letters$as_cr_digits
27059
27060# The user is always right.
27061if test "${PATH_SEPARATOR+set}" != set; then
27062 echo "#! /bin/sh" >conf$$.sh
27063 echo "exit 0" >>conf$$.sh
27064 chmod +x conf$$.sh
27065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27066 PATH_SEPARATOR=';'
27067 else
27068 PATH_SEPARATOR=:
27069 fi
27070 rm -f conf$$.sh
27071fi
27072
27073
27074 as_lineno_1=$LINENO
27075 as_lineno_2=$LINENO
27076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27077 test "x$as_lineno_1" != "x$as_lineno_2" &&
27078 test "x$as_lineno_3" = "x$as_lineno_2" || {
27079 # Find who we are. Look in the path if we contain no path at all
27080 # relative or not.
27081 case $0 in
27082 *[\\/]* ) as_myself=$0 ;;
27083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27084for as_dir in $PATH
27085do
27086 IFS=$as_save_IFS
27087 test -z "$as_dir" && as_dir=.
27088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27089done
27090
27091 ;;
27092 esac
27093 # We did not find ourselves, most probably we were run as `sh COMMAND'
27094 # in which case we are not to be found in the path.
27095 if test "x$as_myself" = x; then
27096 as_myself=$0
27097 fi
27098 if test ! -f "$as_myself"; then
27099 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27100echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27101 { (exit 1); exit 1; }; }
27102 fi
27103 case $CONFIG_SHELL in
27104 '')
27105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27106for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27107do
27108 IFS=$as_save_IFS
27109 test -z "$as_dir" && as_dir=.
27110 for as_base in sh bash ksh sh5; do
27111 case $as_dir in
27112 /*)
27113 if ("$as_dir/$as_base" -c '
27114 as_lineno_1=$LINENO
27115 as_lineno_2=$LINENO
27116 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27117 test "x$as_lineno_1" != "x$as_lineno_2" &&
27118 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27119 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27120 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27121 CONFIG_SHELL=$as_dir/$as_base
27122 export CONFIG_SHELL
27123 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27124 fi;;
27125 esac
27126 done
27127done
27128;;
27129 esac
27130
27131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27132 # uniformly replaced by the line number. The first 'sed' inserts a
27133 # line-number line before each line; the second 'sed' does the real
27134 # work. The second script uses 'N' to pair each line-number line
27135 # with the numbered line, and appends trailing '-' during
27136 # substitution so that $LINENO is not a special case at line end.
27137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27138 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27139 sed '=' <$as_myself |
27140 sed '
27141 N
27142 s,$,-,
27143 : loop
27144 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27145 t loop
27146 s,-$,,
27147 s,^['$as_cr_digits']*\n,,
27148 ' >$as_me.lineno &&
27149 chmod +x $as_me.lineno ||
27150 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27151echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27152 { (exit 1); exit 1; }; }
27153
27154 # Don't try to exec as it changes $[0], causing all sort of problems
27155 # (the dirname of $[0] is not the place where we might find the
27156 # original and so on. Autoconf is especially sensible to this).
27157 . ./$as_me.lineno
27158 # Exit status is that of the last command.
27159 exit
27160}
27161
27162
27163case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27164 *c*,-n*) ECHO_N= ECHO_C='
27165' ECHO_T=' ' ;;
27166 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27167 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27168esac
27169
27170if expr a : '\(a\)' >/dev/null 2>&1; then
27171 as_expr=expr
27172else
27173 as_expr=false
27174fi
27175
27176rm -f conf$$ conf$$.exe conf$$.file
27177echo >conf$$.file
27178if ln -s conf$$.file conf$$ 2>/dev/null; then
27179 # We could just check for DJGPP; but this test a) works b) is more generic
27180 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27181 if test -f conf$$.exe; then
27182 # Don't use ln at all; we don't have any links
27183 as_ln_s='cp -p'
27184 else
27185 as_ln_s='ln -s'
27186 fi
27187elif ln conf$$.file conf$$ 2>/dev/null; then
27188 as_ln_s=ln
27189else
27190 as_ln_s='cp -p'
27191fi
27192rm -f conf$$ conf$$.exe conf$$.file
27193
27194if mkdir -p . 2>/dev/null; then
27195 as_mkdir_p=:
27196else
27197 test -d ./-p && rmdir ./-p
27198 as_mkdir_p=false
27199fi
27200
27201as_executable_p="test -f"
27202
27203# Sed expression to map a string onto a valid CPP name.
27204as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27205
27206# Sed expression to map a string onto a valid variable name.
27207as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27208
27209
27210# IFS
27211# We need space, tab and new line, in precisely that order.
27212as_nl='
27213'
27214IFS=" $as_nl"
27215
27216# CDPATH.
27217$as_unset CDPATH
27218
27219exec 6>&1
27220
27221# Open the log real soon, to keep \$[0] and so on meaningful, and to
27222# report actual input values of CONFIG_FILES etc. instead of their
27223# values after options handling. Logging --version etc. is OK.
27224exec 5>>config.log
27225{
27226 echo
27227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF
27228## Running $as_me. ##
27229BOXI_EOF
27230} >&5
27231cat >&5 <<_CSEOF
27232
27233This file was extended by OpenSSH $as_me Portable, which was
27234generated by GNU Autoconf 2.59. Invocation command line was
27235
27236 CONFIG_FILES = $CONFIG_FILES
27237 CONFIG_HEADERS = $CONFIG_HEADERS
27238 CONFIG_LINKS = $CONFIG_LINKS
27239 CONFIG_COMMANDS = $CONFIG_COMMANDS
27240 $ $0 $@
27241
27242_CSEOF
27243echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27244echo >&5
27245_ACEOF
27246
27247# Files that config.status was made for.
27248if test -n "$ac_config_files"; then
27249 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27250fi
27251
27252if test -n "$ac_config_headers"; then
27253 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27254fi
27255
27256if test -n "$ac_config_links"; then
27257 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27258fi
27259
27260if test -n "$ac_config_commands"; then
27261 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27262fi
27263
27264cat >>$CONFIG_STATUS <<\_ACEOF
27265
27266ac_cs_usage="\
27267\`$as_me' instantiates files from templates according to the
27268current configuration.
27269
27270Usage: $0 [OPTIONS] [FILE]...
27271
27272 -h, --help print this help, then exit
27273 -V, --version print version number, then exit
27274 -q, --quiet do not print progress messages
27275 -d, --debug don't remove temporary files
27276 --recheck update $as_me by reconfiguring in the same conditions
27277 --file=FILE[:TEMPLATE]
27278 instantiate the configuration file FILE
27279 --header=FILE[:TEMPLATE]
27280 instantiate the configuration header FILE
27281
27282Configuration files:
27283$config_files
27284
27285Configuration headers:
27286$config_headers
27287
27288Report bugs to <bug-autoconf@gnu.org>."
27289_ACEOF
27290
27291cat >>$CONFIG_STATUS <<_ACEOF
27292ac_cs_version="\\
27293OpenSSH config.status Portable
27294configured by $0, generated by GNU Autoconf 2.59,
27295 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27296
27297Copyright (C) 2003 Free Software Foundation, Inc.
27298This config.status script is free software; the Free Software Foundation
27299gives unlimited permission to copy, distribute and modify it."
27300srcdir=$srcdir
27301INSTALL="$INSTALL"
27302_ACEOF
27303
27304cat >>$CONFIG_STATUS <<\_ACEOF
27305# If no file are specified by the user, then we need to provide default
27306# value. By we need to know if files were specified by the user.
27307ac_need_defaults=:
27308while test $# != 0
27309do
27310 case $1 in
27311 --*=*)
27312 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27313 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27314 ac_shift=:
27315 ;;
27316 -*)
27317 ac_option=$1
27318 ac_optarg=$2
27319 ac_shift=shift
27320 ;;
27321 *) # This is not an option, so the user has probably given explicit
27322 # arguments.
27323 ac_option=$1
27324 ac_need_defaults=false;;
27325 esac
27326
27327 case $ac_option in
27328 # Handling of the options.
27329_ACEOF
27330cat >>$CONFIG_STATUS <<\_ACEOF
27331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27332 ac_cs_recheck=: ;;
27333 --version | --vers* | -V )
27334 echo "$ac_cs_version"; exit 0 ;;
27335 --he | --h)
27336 # Conflict between --help and --header
27337 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27338Try \`$0 --help' for more information." >&5
27339echo "$as_me: error: ambiguous option: $1
27340Try \`$0 --help' for more information." >&2;}
27341 { (exit 1); exit 1; }; };;
27342 --help | --hel | -h )
27343 echo "$ac_cs_usage"; exit 0 ;;
27344 --debug | --d* | -d )
27345 debug=: ;;
27346 --file | --fil | --fi | --f )
27347 $ac_shift
27348 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27349 ac_need_defaults=false;;
27350 --header | --heade | --head | --hea )
27351 $ac_shift
27352 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27353 ac_need_defaults=false;;
27354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27356 ac_cs_silent=: ;;
27357
27358 # This is an error.
27359 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27360Try \`$0 --help' for more information." >&5
27361echo "$as_me: error: unrecognized option: $1
27362Try \`$0 --help' for more information." >&2;}
27363 { (exit 1); exit 1; }; } ;;
27364
27365 *) ac_config_targets="$ac_config_targets $1" ;;
27366
27367 esac
27368 shift
27369done
27370
27371ac_configure_extra_args=
27372
27373if $ac_cs_silent; then
27374 exec 6>/dev/null
27375 ac_configure_extra_args="$ac_configure_extra_args --silent"
27376fi
27377
27378_ACEOF
27379cat >>$CONFIG_STATUS <<_ACEOF
27380if \$ac_cs_recheck; then
27381 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27382 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27383fi
27384
27385_ACEOF
27386
27387
27388
27389
27390
27391cat >>$CONFIG_STATUS <<\_ACEOF
27392for ac_config_target in $ac_config_targets
27393do
27394 case "$ac_config_target" in
27395 # Handling of arguments.
27396 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27397 "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
27398 "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
27399 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
27400 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
27401 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
27402 "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
27403 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27405echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27406 { (exit 1); exit 1; }; };;
27407 esac
27408done
27409
27410# If the user did not use the arguments to specify the items to instantiate,
27411# then the envvar interface is used. Set only those that are not.
27412# We use the long form for the default assignment because of an extremely
27413# bizarre bug on SunOS 4.1.3.
27414if $ac_need_defaults; then
27415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27417fi
27418
27419# Have a temporary directory for convenience. Make it in the build tree
27420# simply because there is no reason to put it here, and in addition,
27421# creating and moving files from /tmp can sometimes cause problems.
27422# Create a temporary directory, and hook for its removal unless debugging.
27423$debug ||
27424{
27425 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27426 trap '{ (exit 1); exit 1; }' 1 2 13 15
27427}
27428
27429# Create a (secure) tmp directory for tmp files.
27430
27431{
27432 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27433 test -n "$tmp" && test -d "$tmp"
27434} ||
27435{
27436 tmp=./confstat$$-$RANDOM
27437 (umask 077 && mkdir $tmp)
27438} ||
27439{
27440 echo "$me: cannot create a temporary directory in ." >&2
27441 { (exit 1); exit 1; }
27442}
27443
27444_ACEOF
27445
27446cat >>$CONFIG_STATUS <<_ACEOF
27447
27448#
27449# CONFIG_FILES section.
27450#
27451
27452# No need to generate the scripts if there are no CONFIG_FILES.
27453# This happens for instance when ./config.status config.h
27454if test -n "\$CONFIG_FILES"; then
27455 # Protect against being on the right side of a sed subst in config.status.
27456 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27457 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27458s,@SHELL@,$SHELL,;t t
27459s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27460s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27461s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27462s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27463s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27464s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27465s,@exec_prefix@,$exec_prefix,;t t
27466s,@prefix@,$prefix,;t t
27467s,@program_transform_name@,$program_transform_name,;t t
27468s,@bindir@,$bindir,;t t
27469s,@sbindir@,$sbindir,;t t
27470s,@libexecdir@,$libexecdir,;t t
27471s,@datadir@,$datadir,;t t
27472s,@sysconfdir@,$sysconfdir,;t t
27473s,@sharedstatedir@,$sharedstatedir,;t t
27474s,@localstatedir@,$localstatedir,;t t
27475s,@libdir@,$libdir,;t t
27476s,@includedir@,$includedir,;t t
27477s,@oldincludedir@,$oldincludedir,;t t
27478s,@infodir@,$infodir,;t t
27479s,@mandir@,$mandir,;t t
27480s,@build_alias@,$build_alias,;t t
27481s,@host_alias@,$host_alias,;t t
27482s,@target_alias@,$target_alias,;t t
27483s,@DEFS@,$DEFS,;t t
27484s,@ECHO_C@,$ECHO_C,;t t
27485s,@ECHO_N@,$ECHO_N,;t t
27486s,@ECHO_T@,$ECHO_T,;t t
27487s,@LIBS@,$LIBS,;t t
27488s,@CC@,$CC,;t t
27489s,@CFLAGS@,$CFLAGS,;t t
27490s,@LDFLAGS@,$LDFLAGS,;t t
27491s,@CPPFLAGS@,$CPPFLAGS,;t t
27492s,@ac_ct_CC@,$ac_ct_CC,;t t
27493s,@EXEEXT@,$EXEEXT,;t t
27494s,@OBJEXT@,$OBJEXT,;t t
27495s,@build@,$build,;t t
27496s,@build_cpu@,$build_cpu,;t t
27497s,@build_vendor@,$build_vendor,;t t
27498s,@build_os@,$build_os,;t t
27499s,@host@,$host,;t t
27500s,@host_cpu@,$host_cpu,;t t
27501s,@host_vendor@,$host_vendor,;t t
27502s,@host_os@,$host_os,;t t
27503s,@AWK@,$AWK,;t t
27504s,@CPP@,$CPP,;t t
27505s,@RANLIB@,$RANLIB,;t t
27506s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27507s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27508s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27509s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27510s,@EGREP@,$EGREP,;t t
27511s,@AR@,$AR,;t t
27512s,@CAT@,$CAT,;t t
27513s,@KILL@,$KILL,;t t
27514s,@PERL@,$PERL,;t t
27515s,@SED@,$SED,;t t
27516s,@ENT@,$ENT,;t t
27517s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
27518s,@SH@,$SH,;t t
27519s,@TEST_SHELL@,$TEST_SHELL,;t t
27520s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t
27521s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t
27522s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t
27523s,@STARTUP_SCRIPT_SHELL@,$STARTUP_SCRIPT_SHELL,;t t
27524s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
27525s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
27526s,@LD@,$LD,;t t
27527s,@LIBWRAP@,$LIBWRAP,;t t
27528s,@LIBEDIT@,$LIBEDIT,;t t
27529s,@LIBPAM@,$LIBPAM,;t t
27530s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
27531s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
27532s,@PROG_LS@,$PROG_LS,;t t
27533s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
27534s,@PROG_ARP@,$PROG_ARP,;t t
27535s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
27536s,@PROG_JSTAT@,$PROG_JSTAT,;t t
27537s,@PROG_PS@,$PROG_PS,;t t
27538s,@PROG_SAR@,$PROG_SAR,;t t
27539s,@PROG_W@,$PROG_W,;t t
27540s,@PROG_WHO@,$PROG_WHO,;t t
27541s,@PROG_LAST@,$PROG_LAST,;t t
27542s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
27543s,@PROG_DF@,$PROG_DF,;t t
27544s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
27545s,@PROG_UPTIME@,$PROG_UPTIME,;t t
27546s,@PROG_IPCS@,$PROG_IPCS,;t t
27547s,@PROG_TAIL@,$PROG_TAIL,;t t
27548s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
27549s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
27550s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
27551s,@xauth_path@,$xauth_path,;t t
27552s,@STRIP_OPT@,$STRIP_OPT,;t t
27553s,@XAUTH_PATH@,$XAUTH_PATH,;t t
27554s,@NROFF@,$NROFF,;t t
27555s,@MANTYPE@,$MANTYPE,;t t
27556s,@mansubdir@,$mansubdir,;t t
27557s,@user_path@,$user_path,;t t
27558s,@piddir@,$piddir,;t t
27559s,@LIBOBJS@,$LIBOBJS,;t t
27560s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27561CEOF
27562
27563_ACEOF
27564
27565 cat >>$CONFIG_STATUS <<\_ACEOF
27566 # Split the substitutions into bite-sized pieces for seds with
27567 # small command number limits, like on Digital OSF/1 and HP-UX.
27568 ac_max_sed_lines=48
27569 ac_sed_frag=1 # Number of current file.
27570 ac_beg=1 # First line for current file.
27571 ac_end=$ac_max_sed_lines # Line after last line for current file.
27572 ac_more_lines=:
27573 ac_sed_cmds=
27574 while $ac_more_lines; do
27575 if test $ac_beg -gt 1; then
27576 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27577 else
27578 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27579 fi
27580 if test ! -s $tmp/subs.frag; then
27581 ac_more_lines=false
27582 else
27583 # The purpose of the label and of the branching condition is to
27584 # speed up the sed processing (if there are no `@' at all, there
27585 # is no need to browse any of the substitutions).
27586 # These are the two extra sed commands mentioned above.
27587 (echo ':t
27588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27589 if test -z "$ac_sed_cmds"; then
27590 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27591 else
27592 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27593 fi
27594 ac_sed_frag=`expr $ac_sed_frag + 1`
27595 ac_beg=$ac_end
27596 ac_end=`expr $ac_end + $ac_max_sed_lines`
27597 fi
27598 done
27599 if test -z "$ac_sed_cmds"; then
27600 ac_sed_cmds=cat
27601 fi
27602fi # test -n "$CONFIG_FILES"
27603
27604_ACEOF
27605cat >>$CONFIG_STATUS <<\_ACEOF
27606for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27608 case $ac_file in
27609 - | *:- | *:-:* ) # input from stdin
27610 cat >$tmp/stdin
27611 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27613 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27615 * ) ac_file_in=$ac_file.in ;;
27616 esac
27617
27618 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27620$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27621 X"$ac_file" : 'X\(//\)[^/]' \| \
27622 X"$ac_file" : 'X\(//\)$' \| \
27623 X"$ac_file" : 'X\(/\)' \| \
27624 . : '\(.\)' 2>/dev/null ||
27625echo X"$ac_file" |
27626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27628 /^X\(\/\/\)$/{ s//\1/; q; }
27629 /^X\(\/\).*/{ s//\1/; q; }
27630 s/.*/./; q'`
27631 { if $as_mkdir_p; then
27632 mkdir -p "$ac_dir"
27633 else
27634 as_dir="$ac_dir"
27635 as_dirs=
27636 while test ! -d "$as_dir"; do
27637 as_dirs="$as_dir $as_dirs"
27638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27640 X"$as_dir" : 'X\(//\)[^/]' \| \
27641 X"$as_dir" : 'X\(//\)$' \| \
27642 X"$as_dir" : 'X\(/\)' \| \
27643 . : '\(.\)' 2>/dev/null ||
27644echo X"$as_dir" |
27645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27647 /^X\(\/\/\)$/{ s//\1/; q; }
27648 /^X\(\/\).*/{ s//\1/; q; }
27649 s/.*/./; q'`
27650 done
27651 test ! -n "$as_dirs" || mkdir $as_dirs
27652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27653echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27654 { (exit 1); exit 1; }; }; }
27655
27656 ac_builddir=.
27657
27658if test "$ac_dir" != .; then
27659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27660 # A "../" for each directory in $ac_dir_suffix.
27661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27662else
27663 ac_dir_suffix= ac_top_builddir=
27664fi
27665
27666case $srcdir in
27667 .) # No --srcdir option. We are building in place.
27668 ac_srcdir=.
27669 if test -z "$ac_top_builddir"; then
27670 ac_top_srcdir=.
27671 else
27672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27673 fi ;;
27674 [\\/]* | ?:[\\/]* ) # Absolute path.
27675 ac_srcdir=$srcdir$ac_dir_suffix;
27676 ac_top_srcdir=$srcdir ;;
27677 *) # Relative path.
27678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27680esac
27681
27682# Do not use `cd foo && pwd` to compute absolute paths, because
27683# the directories may not exist.
27684case `pwd` in
27685.) ac_abs_builddir="$ac_dir";;
27686*)
27687 case "$ac_dir" in
27688 .) ac_abs_builddir=`pwd`;;
27689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27691 esac;;
27692esac
27693case $ac_abs_builddir in
27694.) ac_abs_top_builddir=${ac_top_builddir}.;;
27695*)
27696 case ${ac_top_builddir}. in
27697 .) ac_abs_top_builddir=$ac_abs_builddir;;
27698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27700 esac;;
27701esac
27702case $ac_abs_builddir in
27703.) ac_abs_srcdir=$ac_srcdir;;
27704*)
27705 case $ac_srcdir in
27706 .) ac_abs_srcdir=$ac_abs_builddir;;
27707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27709 esac;;
27710esac
27711case $ac_abs_builddir in
27712.) ac_abs_top_srcdir=$ac_top_srcdir;;
27713*)
27714 case $ac_top_srcdir in
27715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27718 esac;;
27719esac
27720
27721
27722 case $INSTALL in
27723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27724 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27725 esac
27726
27727 if test x"$ac_file" != x-; then
27728 { echo "$as_me:$LINENO: creating $ac_file" >&5
27729echo "$as_me: creating $ac_file" >&6;}
27730 rm -f "$ac_file"
27731 fi
27732 # Let's still pretend it is `configure' which instantiates (i.e., don't
27733 # use $as_me), people would be surprised to read:
27734 # /* config.h. Generated by config.status. */
27735 if test x"$ac_file" = x-; then
27736 configure_input=
27737 else
27738 configure_input="$ac_file. "
27739 fi
27740 configure_input=$configure_input"Generated from `echo $ac_file_in |
27741 sed 's,.*/,,'` by configure."
27742
27743 # First look for the input files in the build tree, otherwise in the
27744 # src tree.
27745 ac_file_inputs=`IFS=:
27746 for f in $ac_file_in; do
27747 case $f in
27748 -) echo $tmp/stdin ;;
27749 [\\/$]*)
27750 # Absolute (can't be DOS-style, as IFS=:)
27751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27752echo "$as_me: error: cannot find input file: $f" >&2;}
27753 { (exit 1); exit 1; }; }
27754 echo "$f";;
27755 *) # Relative
27756 if test -f "$f"; then
27757 # Build tree
27758 echo "$f"
27759 elif test -f "$srcdir/$f"; then
27760 # Source tree
27761 echo "$srcdir/$f"
27762 else
27763 # /dev/null tree
27764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27765echo "$as_me: error: cannot find input file: $f" >&2;}
27766 { (exit 1); exit 1; }; }
27767 fi;;
27768 esac
27769 done` || { (exit 1); exit 1; }
27770_ACEOF
27771cat >>$CONFIG_STATUS <<_ACEOF
27772 sed "$ac_vpsub
27773$extrasub
27774_ACEOF
27775cat >>$CONFIG_STATUS <<\_ACEOF
27776:t
27777/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27778s,@configure_input@,$configure_input,;t t
27779s,@srcdir@,$ac_srcdir,;t t
27780s,@abs_srcdir@,$ac_abs_srcdir,;t t
27781s,@top_srcdir@,$ac_top_srcdir,;t t
27782s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27783s,@builddir@,$ac_builddir,;t t
27784s,@abs_builddir@,$ac_abs_builddir,;t t
27785s,@top_builddir@,$ac_top_builddir,;t t
27786s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27787s,@INSTALL@,$ac_INSTALL,;t t
27788" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27789 rm -f $tmp/stdin
27790 if test x"$ac_file" != x-; then
27791 mv $tmp/out $ac_file
27792 else
27793 cat $tmp/out
27794 rm -f $tmp/out
27795 fi
27796
27797done
27798_ACEOF
27799cat >>$CONFIG_STATUS <<\_ACEOF
27800
27801#
27802# CONFIG_HEADER section.
27803#
27804
27805# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27806# NAME is the cpp macro being defined and VALUE is the value it is being given.
27807#
27808# ac_d sets the value in "#define NAME VALUE" lines.
27809ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27810ac_dB='[ ].*$,\1#\2'
27811ac_dC=' '
27812ac_dD=',;t'
27813# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27814ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27815ac_uB='$,\1#\2define\3'
27816ac_uC=' '
27817ac_uD=',;t'
27818
27819for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27821 case $ac_file in
27822 - | *:- | *:-:* ) # input from stdin
27823 cat >$tmp/stdin
27824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27828 * ) ac_file_in=$ac_file.in ;;
27829 esac
27830
27831 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27832echo "$as_me: creating $ac_file" >&6;}
27833
27834 # First look for the input files in the build tree, otherwise in the
27835 # src tree.
27836 ac_file_inputs=`IFS=:
27837 for f in $ac_file_in; do
27838 case $f in
27839 -) echo $tmp/stdin ;;
27840 [\\/$]*)
27841 # Absolute (can't be DOS-style, as IFS=:)
27842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27843echo "$as_me: error: cannot find input file: $f" >&2;}
27844 { (exit 1); exit 1; }; }
27845 # Do quote $f, to prevent DOS paths from being IFS'd.
27846 echo "$f";;
27847 *) # Relative
27848 if test -f "$f"; then
27849 # Build tree
27850 echo "$f"
27851 elif test -f "$srcdir/$f"; then
27852 # Source tree
27853 echo "$srcdir/$f"
27854 else
27855 # /dev/null tree
27856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27857echo "$as_me: error: cannot find input file: $f" >&2;}
27858 { (exit 1); exit 1; }; }
27859 fi;;
27860 esac
27861 done` || { (exit 1); exit 1; }
27862 # Remove the trailing spaces.
27863 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27864
27865_ACEOF
27866
27867# Transform confdefs.h into two sed scripts, `conftest.defines' and
27868# `conftest.undefs', that substitutes the proper values into
27869# config.h.in to produce config.h. The first handles `#define'
27870# templates, and the second `#undef' templates.
27871# And first: Protect against being on the right side of a sed subst in
27872# config.status. Protect against being in an unquoted here document
27873# in config.status.
27874rm -f conftest.defines conftest.undefs
27875# Using a here document instead of a string reduces the quoting nightmare.
27876# Putting comments in sed scripts is not portable.
27877#
27878# `end' is used to avoid that the second main sed command (meant for
27879# 0-ary CPP macros) applies to n-ary macro definitions.
27880# See the Autoconf documentation for `clear'.
27881cat >confdef2sed.sed <<\_ACEOF
27882s/[\\&,]/\\&/g
27883s,[\\$`],\\&,g
27884t clear
27885: clear
27886s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27887t end
27888s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27889: end
27890_ACEOF
27891# If some macros were called several times there might be several times
27892# the same #defines, which is useless. Nevertheless, we may not want to
27893# sort them, since we want the *last* AC-DEFINE to be honored.
27894uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27895sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27896rm -f confdef2sed.sed
27897
27898# This sed command replaces #undef with comments. This is necessary, for
27899# example, in the case of _POSIX_SOURCE, which is predefined and required
27900# on some systems where configure will not decide to define it.
27901cat >>conftest.undefs <<\_ACEOF
27902s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27903_ACEOF
27904
27905# Break up conftest.defines because some shells have a limit on the size
27906# of here documents, and old seds have small limits too (100 cmds).
27907echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27908echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27909echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27910echo ' :' >>$CONFIG_STATUS
27911rm -f conftest.tail
27912while grep . conftest.defines >/dev/null
27913do
27914 # Write a limited-size here document to $tmp/defines.sed.
27915 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27916 # Speed up: don't consider the non `#define' lines.
27917 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27918 # Work around the forget-to-reset-the-flag bug.
27919 echo 't clr' >>$CONFIG_STATUS
27920 echo ': clr' >>$CONFIG_STATUS
27921 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27922 echo 'CEOF
27923 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27924 rm -f $tmp/in
27925 mv $tmp/out $tmp/in
27926' >>$CONFIG_STATUS
27927 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27928 rm -f conftest.defines
27929 mv conftest.tail conftest.defines
27930done
27931rm -f conftest.defines
27932echo ' fi # grep' >>$CONFIG_STATUS
27933echo >>$CONFIG_STATUS
27934
27935# Break up conftest.undefs because some shells have a limit on the size
27936# of here documents, and old seds have small limits too (100 cmds).
27937echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27938rm -f conftest.tail
27939while grep . conftest.undefs >/dev/null
27940do
27941 # Write a limited-size here document to $tmp/undefs.sed.
27942 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27943 # Speed up: don't consider the non `#undef'
27944 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27945 # Work around the forget-to-reset-the-flag bug.
27946 echo 't clr' >>$CONFIG_STATUS
27947 echo ': clr' >>$CONFIG_STATUS
27948 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27949 echo 'CEOF
27950 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27951 rm -f $tmp/in
27952 mv $tmp/out $tmp/in
27953' >>$CONFIG_STATUS
27954 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27955 rm -f conftest.undefs
27956 mv conftest.tail conftest.undefs
27957done
27958rm -f conftest.undefs
27959
27960cat >>$CONFIG_STATUS <<\_ACEOF
27961 # Let's still pretend it is `configure' which instantiates (i.e., don't
27962 # use $as_me), people would be surprised to read:
27963 # /* config.h. Generated by config.status. */
27964 if test x"$ac_file" = x-; then
27965 echo "/* Generated by configure. */" >$tmp/config.h
27966 else
27967 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27968 fi
27969 cat $tmp/in >>$tmp/config.h
27970 rm -f $tmp/in
27971 if test x"$ac_file" != x-; then
27972 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27973 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27974echo "$as_me: $ac_file is unchanged" >&6;}
27975 else
27976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27978 X"$ac_file" : 'X\(//\)[^/]' \| \
27979 X"$ac_file" : 'X\(//\)$' \| \
27980 X"$ac_file" : 'X\(/\)' \| \
27981 . : '\(.\)' 2>/dev/null ||
27982echo X"$ac_file" |
27983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27985 /^X\(\/\/\)$/{ s//\1/; q; }
27986 /^X\(\/\).*/{ s//\1/; q; }
27987 s/.*/./; q'`
27988 { if $as_mkdir_p; then
27989 mkdir -p "$ac_dir"
27990 else
27991 as_dir="$ac_dir"
27992 as_dirs=
27993 while test ! -d "$as_dir"; do
27994 as_dirs="$as_dir $as_dirs"
27995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27997 X"$as_dir" : 'X\(//\)[^/]' \| \
27998 X"$as_dir" : 'X\(//\)$' \| \
27999 X"$as_dir" : 'X\(/\)' \| \
28000 . : '\(.\)' 2>/dev/null ||
28001echo X"$as_dir" |
28002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28004 /^X\(\/\/\)$/{ s//\1/; q; }
28005 /^X\(\/\).*/{ s//\1/; q; }
28006 s/.*/./; q'`
28007 done
28008 test ! -n "$as_dirs" || mkdir $as_dirs
28009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28011 { (exit 1); exit 1; }; }; }
28012
28013 rm -f $ac_file
28014 mv $tmp/config.h $ac_file
28015 fi
28016 else
28017 cat $tmp/config.h
28018 rm -f $tmp/config.h
28019 fi
28020done
28021_ACEOF
28022
28023cat >>$CONFIG_STATUS <<\_ACEOF
28024
28025{ (exit 0); exit 0; }
28026_ACEOF
28027chmod +x $CONFIG_STATUS
28028ac_clean_files=$ac_clean_files_save
28029
28030
28031# configure is writing to config.log, and then calls config.status.
28032# config.status does its own redirection, appending to config.log.
28033# Unfortunately, on DOS this fails, as config.log is still kept open
28034# by configure, so config.status won't be able to write to it; its
28035# output is simply discarded. So we exec the FD to /dev/null,
28036# effectively closing config.log, so it can be properly (re)opened and
28037# appended to by config.status. When coming back to configure, we
28038# need to make the FD available again.
28039if test "$no_create" != yes; then
28040 ac_cs_success=:
28041 ac_config_status_args=
28042 test "$silent" = yes &&
28043 ac_config_status_args="$ac_config_status_args --quiet"
28044 exec 5>/dev/null
28045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28046 exec 5>>config.log
28047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28048 # would make configure fail if this is the last instruction.
28049 $ac_cs_success || { (exit 1); exit 1; }
28050fi
28051
28052
28053# Print summary of options
28054
28055# Someone please show me a better way :)
28056A=`eval echo ${prefix}` ; A=`eval echo ${A}`
28057B=`eval echo ${bindir}` ; B=`eval echo ${B}`
28058C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
28059D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
28060E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
28061F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
28062G=`eval echo ${piddir}` ; G=`eval echo ${G}`
28063H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
28064I=`eval echo ${user_path}` ; I=`eval echo ${I}`
28065J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
28066
28067echo ""
28068echo "OpenSSH has been configured with the following options:"
28069echo " User binaries: $B"
28070echo " System binaries: $C"
28071echo " Configuration files: $D"
28072echo " Askpass program: $E"
28073echo " Manual pages: $F"
28074echo " PID file: $G"
28075echo " Privilege separation chroot path: $H"
28076if test "x$external_path_file" = "x/etc/login.conf" ; then
28077echo " At runtime, sshd will use the path defined in $external_path_file"
28078echo " Make sure the path to scp is present, otherwise scp will not work"
28079else
28080echo " sshd default user PATH: $I"
28081 if test ! -z "$external_path_file"; then
28082echo " (If PATH is set in $external_path_file it will be used instead. If"
28083echo " used, ensure the path to scp is present, otherwise scp will not work.)"
28084 fi
28085fi
28086if test ! -z "$superuser_path" ; then
28087echo " sshd superuser user PATH: $J"
28088fi
28089echo " Manpage format: $MANTYPE"
28090echo " PAM support: $PAM_MSG"
28091echo " KerberosV support: $KRB5_MSG"
28092echo " Smartcard support: $SCARD_MSG"
28093echo " S/KEY support: $SKEY_MSG"
28094echo " TCP Wrappers support: $TCPW_MSG"
28095echo " MD5 password support: $MD5_MSG"
28096echo " libedit support: $LIBEDIT_MSG"
28097echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
28098echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
28099echo " BSD Auth support: $BSD_AUTH_MSG"
28100echo " Random number source: $RAND_MSG"
28101if test ! -z "$USE_RAND_HELPER" ; then
28102echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
28103fi
28104
28105echo ""
28106
28107echo " Host: ${host}"
28108echo " Compiler: ${CC}"
28109echo " Compiler flags: ${CFLAGS}"
28110echo "Preprocessor flags: ${CPPFLAGS}"
28111echo " Linker flags: ${LDFLAGS}"
28112echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
28113
28114echo ""
28115
28116if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
28117 echo "SVR4 style packages are supported with \"make package\""
28118 echo ""
28119fi
28120
28121if test "x$PAM_MSG" = "xyes" ; then
28122 echo "PAM is enabled. You may need to install a PAM control file "
28123 echo "for sshd, otherwise password authentication may fail. "
28124 echo "Example PAM control files can be found in the contrib/ "
28125 echo "subdirectory"
28126 echo ""
28127fi
28128
28129if test ! -z "$RAND_HELPER_CMDHASH" ; then
28130 echo "WARNING: you are using the builtin random number collection "
28131 echo "service. Please read WARNING.RNG and request that your OS "
28132 echo "vendor includes kernel-based random number collection in "
28133 echo "future versions of your OS."
28134 echo ""
28135fi
28136
28137if test ! -z "$NO_PEERCHECK" ; then
28138 echo "WARNING: the operating system that you are using does not "
28139 echo "appear to support either the getpeereid() API nor the "
28140 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
28141 echo "enforce security checks to prevent unauthorised connections to "
28142 echo "ssh-agent. Their absence increases the risk that a malicious "
28143 echo "user can connect to your agent. "
28144 echo ""
28145fi
28146
28147if test "$AUDIT_MODULE" = "bsm" ; then
28148 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
28149 echo "See the Solaris section in README.platform for details."
28150fi