summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-09-14 11:27:01 +0000
committerColin Watson <cjwatson@debian.org>2005-09-14 11:27:01 +0000
commit16704d57999d987fb8d9ba53379841a79f016d67 (patch)
treeb7ecfbd5be83f191af382f3186c39ba1843ba7a1 /configure
parentc8ab8ceacbe4dbdd7afea4e890d92e86282d050e (diff)
parenta55bd782aa819b7f5ae716de000f19f4f531850e (diff)
Import OpenSSH 4.2p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26746
1 files changed, 26746 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..362218407
--- /dev/null
+++ b/configure
@@ -0,0 +1,26746 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenSSH Portable.
4#
5# Report bugs to <openssh-unix-dev@mindrot.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='OpenSSH'
271PACKAGE_TARNAME='openssh'
272PACKAGE_VERSION='Portable'
273PACKAGE_STRING='OpenSSH Portable'
274PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
275
276ac_unique_file="ssh.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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 AR CAT KILL PERL SED ENT TEST_MINUS_S_SH SH TEST_SHELL PATH_GROUPADD_PROG PATH_USERADD_PROG MAKE_PACKAGE_SUPPORTED LOGIN_PROGRAM_FALLBACK PATH_PASSWD_PROG LD EGREP 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'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803_ACEOF
804
805 cat <<_ACEOF
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832_ACEOF
833
834 cat <<\_ACEOF
835
836System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of OpenSSH Portable:";;
845 esac
846 cat <<\_ACEOF
847
848Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-largefile omit support for large files
852 --disable-strip Disable calling strip(1) on install
853 --disable-etc-default-login Disable using PATH from /etc/default/login no
854 --disable-lastlog disable use of lastlog even if detected no
855 --disable-utmp disable use of utmp even if detected no
856 --disable-utmpx disable use of utmpx even if detected no
857 --disable-wtmp disable use of wtmp even if detected no
858 --disable-wtmpx disable use of wtmpx even if detected no
859 --disable-libutil disable use of libutil (login() etc.) no
860 --disable-pututline disable use of pututline() etc. (uwtmp) no
861 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-rpath Disable auto-added -R linker paths
867 --with-osfsia Enable Digital Unix SIA
868 --with-cflags Specify additional flags to pass to compiler
869 --with-cppflags Specify additional flags to pass to preprocessor
870 --with-ldflags Specify additional flags to pass to linker
871 --with-libs Specify additional libraries to link with
872 --with-Werror Build main code with -Werror
873 --with-zlib=PATH Use zlib in PATH
874 --without-zlib-version-check Disable zlib version check
875 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
876 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
877 --with-libedit[=PATH] Enable libedit support for sftp
878 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
879 --with-pam Enable PAM support
880 --with-ssl-dir=PATH Specify path to OpenSSL installation
881 --with-rand-helper Use subprocess to gather strong randomness
882 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
883 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
884 --with-entropy-timeout Specify entropy gathering command timeout (msec)
885 --with-privsep-user=user Specify non-privileged user for privilege separation
886 --with-sectok Enable smartcard support using libsectok
887--with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
888 --with-kerberos5=PATH Enable Kerberos 5 support
889 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
890 --with-xauth=PATH Specify path to xauth program
891 --with-mantype=man|cat|doc Set man page type
892 --with-md5-passwords Enable use of MD5 passwords
893 --without-shadow Disable shadow password support
894 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
895 --with-default-path= Specify default \$PATH environment for server
896 --with-superuser-path= Specify different path for super-user
897 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
898 --with-bsd-auth Enable BSD auth support
899 --with-pid-dir=PATH Specify location of ssh.pid file
900 --with-lastlog=FILE|DIR specify lastlog location common locations
901
902Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CPP C preprocessor
910
911Use these variables to override the choices made by `configure' or to help
912it to find libraries and programs with nonstandard names/locations.
913
914Report bugs to <openssh-unix-dev@mindrot.org>.
915_ACEOF
916fi
917
918if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929else
930 ac_dir_suffix= ac_top_builddir=
931fi
932
933case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947esac
948
949# Do not use `cd foo && pwd` to compute absolute paths, because
950# the directories may not exist.
951case `pwd` in
952.) ac_abs_builddir="$ac_dir";;
953*)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_builddir=${ac_top_builddir}.;;
962*)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_srcdir=$ac_srcdir;;
971*)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977esac
978case $ac_abs_builddir in
979.) ac_abs_top_srcdir=$ac_top_srcdir;;
980*)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005fi
1006
1007test -n "$ac_init_help" && exit 0
1008if $ac_init_version; then
1009 cat <<\_ACEOF
1010OpenSSH configure Portable
1011generated by GNU Autoconf 2.59
1012
1013Copyright (C) 2003 Free Software Foundation, Inc.
1014This configure script is free software; the Free Software Foundation
1015gives unlimited permission to copy, distribute and modify it.
1016_ACEOF
1017 exit 0
1018fi
1019exec 5>config.log
1020cat >&5 <<_ACEOF
1021This file contains any messages produced by compilers while
1022running configure, to aid debugging if configure makes a mistake.
1023
1024It was created by OpenSSH $as_me Portable, which was
1025generated by GNU Autoconf 2.59. Invocation command line was
1026
1027 $ $0 $@
1028
1029_ACEOF
1030{
1031cat <<_ASUNAME
1032## --------- ##
1033## Platform. ##
1034## --------- ##
1035
1036hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044
1045/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052
1053_ASUNAME
1054
1055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056for as_dir in $PATH
1057do
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061done
1062
1063} >&5
1064
1065cat >&5 <<_ACEOF
1066
1067
1068## ----------- ##
1069## Core tests. ##
1070## ----------- ##
1071
1072_ACEOF
1073
1074
1075# Keep a trace of the command line.
1076# Strip out --no-create and --no-recursion so they do not pile up.
1077# Strip out --silent because we don't want to record it for future runs.
1078# Also quote any args containing shell meta-characters.
1079# Make two passes to allow for proper duplicate-argument suppression.
1080ac_configure_args=
1081ac_configure_args0=
1082ac_configure_args1=
1083ac_sep=
1084ac_must_keep_next=false
1085for ac_pass in 1 2
1086do
1087 for ac_arg
1088 do
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 2)
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1112 ;;
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1115 fi
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1119 ;;
1120 esac
1121 done
1122done
1123$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126# When interrupted or exit'd, cleanup temporary files, and complete
1127# config.log. We remove comments because anyway the quotes in there
1128# would cause problems or look ugly.
1129# WARNING: Be sure not to use single quotes in there, as some shells,
1130# such as our DU 5.0 friend, will then `close' the trap.
1131trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1133 {
1134 echo
1135
1136 cat <<\_ASBOX
1137## ---------------- ##
1138## Cache variables. ##
1139## ---------------- ##
1140_ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1143{
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 ;;
1151 *)
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ;;
1155 esac;
1156}
1157 echo
1158
1159 cat <<\_ASBOX
1160## ----------------- ##
1161## Output variables. ##
1162## ----------------- ##
1163_ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174## ------------- ##
1175## Output files. ##
1176## ------------- ##
1177_ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1180 do
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1185 fi
1186
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189## ----------- ##
1190## confdefs.h. ##
1191## ----------- ##
1192_ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1196 fi
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1204 ' 0
1205for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207done
1208ac_signal=0
1209
1210# confdefs.h avoids OS command line length limits that DEFS can exceed.
1211rm -rf conftest* confdefs.h
1212# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213echo >confdefs.h
1214
1215# Predefined preprocessor variables.
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_NAME "$PACKAGE_NAME"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_VERSION "$PACKAGE_VERSION"
1229_ACEOF
1230
1231
1232cat >>confdefs.h <<_ACEOF
1233#define PACKAGE_STRING "$PACKAGE_STRING"
1234_ACEOF
1235
1236
1237cat >>confdefs.h <<_ACEOF
1238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239_ACEOF
1240
1241
1242# Let the site file select an alternate cache file if it wants to.
1243# Prefer explicitly selected file to automatically selected ones.
1244if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 fi
1250fi
1251for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1257 fi
1258done
1259
1260if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1270 fi
1271else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1275fi
1276
1277# Check that the precious variables saved in the cache have kept the same
1278# value.
1279ac_cache_corrupted=false
1280for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1296 *)
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1318 fi
1319done
1320if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1326fi
1327
1328ac_ext=c
1329ac_cpp='$CPP $CPPFLAGS'
1330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
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 ac_config_headers="$ac_config_headers config.h"
1363
1364ac_ext=c
1365ac_cpp='$CPP $CPPFLAGS'
1366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1368ac_compiler_gnu=$ac_cv_c_compiler_gnu
1369if test -n "$ac_tool_prefix"; then
1370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1371set dummy ${ac_tool_prefix}gcc; ac_word=$2
1372echo "$as_me:$LINENO: checking for $ac_word" >&5
1373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374if test "${ac_cv_prog_CC+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1376else
1377 if test -n "$CC"; then
1378 ac_cv_prog_CC="$CC" # Let the user override the test.
1379else
1380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381for as_dir in $PATH
1382do
1383 IFS=$as_save_IFS
1384 test -z "$as_dir" && as_dir=.
1385 for ac_exec_ext in '' $ac_executable_extensions; do
1386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1389 break 2
1390 fi
1391done
1392done
1393
1394fi
1395fi
1396CC=$ac_cv_prog_CC
1397if test -n "$CC"; then
1398 echo "$as_me:$LINENO: result: $CC" >&5
1399echo "${ECHO_T}$CC" >&6
1400else
1401 echo "$as_me:$LINENO: result: no" >&5
1402echo "${ECHO_T}no" >&6
1403fi
1404
1405fi
1406if test -z "$ac_cv_prog_CC"; then
1407 ac_ct_CC=$CC
1408 # Extract the first word of "gcc", so it can be a program name with args.
1409set dummy gcc; ac_word=$2
1410echo "$as_me:$LINENO: checking for $ac_word" >&5
1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1414else
1415 if test -n "$ac_ct_CC"; then
1416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1417else
1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_ac_ct_CC="gcc"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 break 2
1428 fi
1429done
1430done
1431
1432fi
1433fi
1434ac_ct_CC=$ac_cv_prog_ac_ct_CC
1435if test -n "$ac_ct_CC"; then
1436 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1437echo "${ECHO_T}$ac_ct_CC" >&6
1438else
1439 echo "$as_me:$LINENO: result: no" >&5
1440echo "${ECHO_T}no" >&6
1441fi
1442
1443 CC=$ac_ct_CC
1444else
1445 CC="$ac_cv_prog_CC"
1446fi
1447
1448if test -z "$CC"; then
1449 if test -n "$ac_tool_prefix"; then
1450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1451set dummy ${ac_tool_prefix}cc; ac_word=$2
1452echo "$as_me:$LINENO: checking for $ac_word" >&5
1453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454if test "${ac_cv_prog_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1456else
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1459else
1460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461for as_dir in $PATH
1462do
1463 IFS=$as_save_IFS
1464 test -z "$as_dir" && as_dir=.
1465 for ac_exec_ext in '' $ac_executable_extensions; do
1466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467 ac_cv_prog_CC="${ac_tool_prefix}cc"
1468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469 break 2
1470 fi
1471done
1472done
1473
1474fi
1475fi
1476CC=$ac_cv_prog_CC
1477if test -n "$CC"; then
1478 echo "$as_me:$LINENO: result: $CC" >&5
1479echo "${ECHO_T}$CC" >&6
1480else
1481 echo "$as_me:$LINENO: result: no" >&5
1482echo "${ECHO_T}no" >&6
1483fi
1484
1485fi
1486if test -z "$ac_cv_prog_CC"; then
1487 ac_ct_CC=$CC
1488 # Extract the first word of "cc", so it can be a program name with args.
1489set dummy cc; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495 if test -n "$ac_ct_CC"; then
1496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1497else
1498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499for as_dir in $PATH
1500do
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_ac_ct_CC="cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1508 fi
1509done
1510done
1511
1512fi
1513fi
1514ac_ct_CC=$ac_cv_prog_ac_ct_CC
1515if test -n "$ac_ct_CC"; then
1516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1517echo "${ECHO_T}$ac_ct_CC" >&6
1518else
1519 echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523 CC=$ac_ct_CC
1524else
1525 CC="$ac_cv_prog_CC"
1526fi
1527
1528fi
1529if test -z "$CC"; then
1530 # Extract the first word of "cc", so it can be a program name with args.
1531set dummy cc; ac_word=$2
1532echo "$as_me:$LINENO: checking for $ac_word" >&5
1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1539else
1540 ac_prog_rejected=no
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544 IFS=$as_save_IFS
1545 test -z "$as_dir" && as_dir=.
1546 for ac_exec_ext in '' $ac_executable_extensions; do
1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1549 ac_prog_rejected=yes
1550 continue
1551 fi
1552 ac_cv_prog_CC="cc"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 break 2
1555 fi
1556done
1557done
1558
1559if test $ac_prog_rejected = yes; then
1560 # We found a bogon in the path, so make sure we never use it.
1561 set dummy $ac_cv_prog_CC
1562 shift
1563 if test $# != 0; then
1564 # We chose a different compiler from the bogus one.
1565 # However, it has the same basename, so the bogon will be chosen
1566 # first if we set CC to just the basename; use the full file name.
1567 shift
1568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1569 fi
1570fi
1571fi
1572fi
1573CC=$ac_cv_prog_CC
1574if test -n "$CC"; then
1575 echo "$as_me:$LINENO: result: $CC" >&5
1576echo "${ECHO_T}$CC" >&6
1577else
1578 echo "$as_me:$LINENO: result: no" >&5
1579echo "${ECHO_T}no" >&6
1580fi
1581
1582fi
1583if test -z "$CC"; then
1584 if test -n "$ac_tool_prefix"; then
1585 for ac_prog in cl
1586 do
1587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1589echo "$as_me:$LINENO: checking for $ac_word" >&5
1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591if test "${ac_cv_prog_CC+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594 if test -n "$CC"; then
1595 ac_cv_prog_CC="$CC" # Let the user override the test.
1596else
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 break 2
1607 fi
1608done
1609done
1610
1611fi
1612fi
1613CC=$ac_cv_prog_CC
1614if test -n "$CC"; then
1615 echo "$as_me:$LINENO: result: $CC" >&5
1616echo "${ECHO_T}$CC" >&6
1617else
1618 echo "$as_me:$LINENO: result: no" >&5
1619echo "${ECHO_T}no" >&6
1620fi
1621
1622 test -n "$CC" && break
1623 done
1624fi
1625if test -z "$CC"; then
1626 ac_ct_CC=$CC
1627 for ac_prog in cl
1628do
1629 # Extract the first word of "$ac_prog", so it can be a program name with args.
1630set dummy $ac_prog; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="$ac_prog"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
1651done
1652
1653fi
1654fi
1655ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658echo "${ECHO_T}$ac_ct_CC" >&6
1659else
1660 echo "$as_me:$LINENO: result: no" >&5
1661echo "${ECHO_T}no" >&6
1662fi
1663
1664 test -n "$ac_ct_CC" && break
1665done
1666
1667 CC=$ac_ct_CC
1668fi
1669
1670fi
1671
1672
1673test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1674See \`config.log' for more details." >&5
1675echo "$as_me: error: no acceptable C compiler found in \$PATH
1676See \`config.log' for more details." >&2;}
1677 { (exit 1); exit 1; }; }
1678
1679# Provide some information about the compiler.
1680echo "$as_me:$LINENO:" \
1681 "checking for C compiler version" >&5
1682ac_compiler=`set X $ac_compile; echo $2`
1683{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1684 (eval $ac_compiler --version </dev/null >&5) 2>&5
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1689 (eval $ac_compiler -v </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1694 (eval $ac_compiler -V </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698
1699cat >conftest.$ac_ext <<_ACEOF
1700/* confdefs.h. */
1701_ACEOF
1702cat confdefs.h >>conftest.$ac_ext
1703cat >>conftest.$ac_ext <<_ACEOF
1704/* end confdefs.h. */
1705
1706int
1707main ()
1708{
1709
1710 ;
1711 return 0;
1712}
1713_ACEOF
1714ac_clean_files_save=$ac_clean_files
1715ac_clean_files="$ac_clean_files a.out a.exe b.out"
1716# Try to create an executable without -o first, disregard a.out.
1717# It will help us diagnose broken compilers, and finding out an intuition
1718# of exeext.
1719echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1720echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1721ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1722if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1723 (eval $ac_link_default) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # Find the output, starting from the most likely. This scheme is
1728# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729# resort.
1730
1731# Be careful to initialize this variable, since it used to be cached.
1732# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1733ac_cv_exeext=
1734# b.out is created by i960 compilers.
1735for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1736do
1737 test -f "$ac_file" || continue
1738 case $ac_file in
1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1740 ;;
1741 conftest.$ac_ext )
1742 # This is the source file.
1743 ;;
1744 [ab].out )
1745 # We found the default executable, but exeext='' is most
1746 # certainly right.
1747 break;;
1748 *.* )
1749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1750 # FIXME: I believe we export ac_cv_exeext for Libtool,
1751 # but it would be cool to find out if it's true. Does anybody
1752 # maintain Libtool? --akim.
1753 export ac_cv_exeext
1754 break;;
1755 * )
1756 break;;
1757 esac
1758done
1759else
1760 echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1764See \`config.log' for more details." >&5
1765echo "$as_me: error: C compiler cannot create executables
1766See \`config.log' for more details." >&2;}
1767 { (exit 77); exit 77; }; }
1768fi
1769
1770ac_exeext=$ac_cv_exeext
1771echo "$as_me:$LINENO: result: $ac_file" >&5
1772echo "${ECHO_T}$ac_file" >&6
1773
1774# Check the compiler produces executables we can run. If not, either
1775# the compiler is broken, or we cross compile.
1776echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1777echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779# If not cross compiling, check that we can run a simple program.
1780if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1787 cross_compiling=no
1788 else
1789 if test "$cross_compiling" = maybe; then
1790 cross_compiling=yes
1791 else
1792 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1793If you meant to cross compile, use \`--host'.
1794See \`config.log' for more details." >&5
1795echo "$as_me: error: cannot run C compiled programs.
1796If you meant to cross compile, use \`--host'.
1797See \`config.log' for more details." >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
1800 fi
1801fi
1802echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
1804
1805rm -f a.out a.exe conftest$ac_cv_exeext b.out
1806ac_clean_files=$ac_clean_files_save
1807# Check the compiler produces executables we can run. If not, either
1808# the compiler is broken, or we cross compile.
1809echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812echo "${ECHO_T}$cross_compiling" >&6
1813
1814echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823# work properly (i.e., refer to `conftest.exe'), while it won't with
1824# `rm'.
1825for ac_file in conftest.exe conftest conftest.*; do
1826 test -f "$ac_file" || continue
1827 case $ac_file in
1828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 export ac_cv_exeext
1831 break;;
1832 * ) break;;
1833 esac
1834done
1835else
1836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1837See \`config.log' for more details." >&5
1838echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1839See \`config.log' for more details." >&2;}
1840 { (exit 1); exit 1; }; }
1841fi
1842
1843rm -f conftest$ac_cv_exeext
1844echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1845echo "${ECHO_T}$ac_cv_exeext" >&6
1846
1847rm -f conftest.$ac_ext
1848EXEEXT=$ac_cv_exeext
1849ac_exeext=$EXEEXT
1850echo "$as_me:$LINENO: checking for suffix of object files" >&5
1851echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1852if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 cat >conftest.$ac_ext <<_ACEOF
1856/* confdefs.h. */
1857_ACEOF
1858cat confdefs.h >>conftest.$ac_ext
1859cat >>conftest.$ac_ext <<_ACEOF
1860/* end confdefs.h. */
1861
1862int
1863main ()
1864{
1865
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870rm -f conftest.o conftest.obj
1871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 break;;
1881 esac
1882done
1883else
1884 echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
1886
1887{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: cannot compute suffix of object files: cannot compile
1890See \`config.log' for more details." >&2;}
1891 { (exit 1); exit 1; }; }
1892fi
1893
1894rm -f conftest.$ac_cv_objext conftest.$ac_ext
1895fi
1896echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1897echo "${ECHO_T}$ac_cv_objext" >&6
1898OBJEXT=$ac_cv_objext
1899ac_objext=$OBJEXT
1900echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1901echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1902if test "${ac_cv_c_compiler_gnu+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905 cat >conftest.$ac_ext <<_ACEOF
1906/* confdefs.h. */
1907_ACEOF
1908cat confdefs.h >>conftest.$ac_ext
1909cat >>conftest.$ac_ext <<_ACEOF
1910/* end confdefs.h. */
1911
1912int
1913main ()
1914{
1915#ifndef __GNUC__
1916 choke me
1917#endif
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
1924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>conftest.er1
1926 ac_status=$?
1927 grep -v '^ *+' conftest.er1 >conftest.err
1928 rm -f conftest.er1
1929 cat conftest.err >&5
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); } &&
1932 { ac_try='test -z "$ac_c_werror_flag"
1933 || test ! -s conftest.err'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 (eval $ac_try) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; } &&
1939 { ac_try='test -s conftest.$ac_objext'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; }; then
1945 ac_compiler_gnu=yes
1946else
1947 echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950ac_compiler_gnu=no
1951fi
1952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953ac_cv_c_compiler_gnu=$ac_compiler_gnu
1954
1955fi
1956echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1957echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1958GCC=`test $ac_compiler_gnu = yes && echo yes`
1959ac_test_CFLAGS=${CFLAGS+set}
1960ac_save_CFLAGS=$CFLAGS
1961CFLAGS="-g"
1962echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1963echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1964if test "${ac_cv_prog_cc_g+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966else
1967 cat >conftest.$ac_ext <<_ACEOF
1968/* confdefs.h. */
1969_ACEOF
1970cat confdefs.h >>conftest.$ac_ext
1971cat >>conftest.$ac_ext <<_ACEOF
1972/* end confdefs.h. */
1973
1974int
1975main ()
1976{
1977
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982rm -f conftest.$ac_objext
1983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>conftest.er1
1985 ac_status=$?
1986 grep -v '^ *+' conftest.er1 >conftest.err
1987 rm -f conftest.er1
1988 cat conftest.err >&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -z "$ac_c_werror_flag"
1992 || test ! -s conftest.err'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2004 ac_cv_prog_cc_g=yes
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009ac_cv_prog_cc_g=no
2010fi
2011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2012fi
2013echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2014echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2015if test "$ac_test_CFLAGS" = set; then
2016 CFLAGS=$ac_save_CFLAGS
2017elif test $ac_cv_prog_cc_g = yes; then
2018 if test "$GCC" = yes; then
2019 CFLAGS="-g -O2"
2020 else
2021 CFLAGS="-g"
2022 fi
2023else
2024 if test "$GCC" = yes; then
2025 CFLAGS="-O2"
2026 else
2027 CFLAGS=
2028 fi
2029fi
2030echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2031echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2032if test "${ac_cv_prog_cc_stdc+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 ac_cv_prog_cc_stdc=no
2036ac_save_CC=$CC
2037cat >conftest.$ac_ext <<_ACEOF
2038/* confdefs.h. */
2039_ACEOF
2040cat confdefs.h >>conftest.$ac_ext
2041cat >>conftest.$ac_ext <<_ACEOF
2042/* end confdefs.h. */
2043#include <stdarg.h>
2044#include <stdio.h>
2045#include <sys/types.h>
2046#include <sys/stat.h>
2047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2048struct buf { int x; };
2049FILE * (*rcsopen) (struct buf *, struct stat *, int);
2050static char *e (p, i)
2051 char **p;
2052 int i;
2053{
2054 return p[i];
2055}
2056static char *f (char * (*g) (char **, int), char **p, ...)
2057{
2058 char *s;
2059 va_list v;
2060 va_start (v,p);
2061 s = g (p, va_arg (v,int));
2062 va_end (v);
2063 return s;
2064}
2065
2066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2067 function prototypes and stuff, but not '\xHH' hex character constants.
2068 These don't provoke an error unfortunately, instead are silently treated
2069 as 'x'. The following induces an error, until -std1 is added to get
2070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2071 array size at least. It's necessary to write '\x00'==0 to get something
2072 that's true only with -std1. */
2073int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2074
2075int test (int i, double x);
2076struct s1 {int (*f) (int a);};
2077struct s2 {int (*f) (double a);};
2078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2079int argc;
2080char **argv;
2081int
2082main ()
2083{
2084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089# Don't try gcc -ansi; that turns off useful extensions and
2090# breaks some systems' header files.
2091# AIX -qlanglvl=ansi
2092# Ultrix and OSF/1 -std1
2093# HP-UX 10.20 and later -Ae
2094# HP-UX older versions -Aa -D_HPUX_SOURCE
2095# SVR4 -Xc -D__EXTENSIONS__
2096for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2097do
2098 CC="$ac_save_CC $ac_arg"
2099 rm -f conftest.$ac_objext
2100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2102 ac_status=$?
2103 grep -v '^ *+' conftest.er1 >conftest.err
2104 rm -f conftest.er1
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 ac_cv_prog_cc_stdc=$ac_arg
2122break
2123else
2124 echo "$as_me: failed program was:" >&5
2125sed 's/^/| /' conftest.$ac_ext >&5
2126
2127fi
2128rm -f conftest.err conftest.$ac_objext
2129done
2130rm -f conftest.$ac_ext conftest.$ac_objext
2131CC=$ac_save_CC
2132
2133fi
2134
2135case "x$ac_cv_prog_cc_stdc" in
2136 x|xno)
2137 echo "$as_me:$LINENO: result: none needed" >&5
2138echo "${ECHO_T}none needed" >&6 ;;
2139 *)
2140 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2141echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2142 CC="$CC $ac_cv_prog_cc_stdc" ;;
2143esac
2144
2145# Some people use a C++ compiler to compile C. Since we use `exit',
2146# in C++ we need to declare it. In case someone uses the same compiler
2147# for both compiling C and C++ we need to have the C++ compiler decide
2148# the declaration of exit, since it's the most demanding environment.
2149cat >conftest.$ac_ext <<_ACEOF
2150#ifndef __cplusplus
2151 choke me
2152#endif
2153_ACEOF
2154rm -f conftest.$ac_objext
2155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>conftest.er1
2157 ac_status=$?
2158 grep -v '^ *+' conftest.er1 >conftest.err
2159 rm -f conftest.er1
2160 cat conftest.err >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -z "$ac_c_werror_flag"
2164 || test ! -s conftest.err'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 for ac_declaration in \
2177 '' \
2178 'extern "C" void std::exit (int) throw (); using std::exit;' \
2179 'extern "C" void std::exit (int); using std::exit;' \
2180 'extern "C" void exit (int) throw ();' \
2181 'extern "C" void exit (int);' \
2182 'void exit (int);'
2183do
2184 cat >conftest.$ac_ext <<_ACEOF
2185/* confdefs.h. */
2186_ACEOF
2187cat confdefs.h >>conftest.$ac_ext
2188cat >>conftest.$ac_ext <<_ACEOF
2189/* end confdefs.h. */
2190$ac_declaration
2191#include <stdlib.h>
2192int
2193main ()
2194{
2195exit (42);
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2203 ac_status=$?
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 :
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227continue
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230 cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h. */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h. */
2236$ac_declaration
2237int
2238main ()
2239{
2240exit (42);
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245rm -f conftest.$ac_objext
2246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 break
2268else
2269 echo "$as_me: failed program was:" >&5
2270sed 's/^/| /' conftest.$ac_ext >&5
2271
2272fi
2273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274done
2275rm -f conftest*
2276if test -n "$ac_declaration"; then
2277 echo '#ifdef __cplusplus' >>confdefs.h
2278 echo $ac_declaration >>confdefs.h
2279 echo '#endif' >>confdefs.h
2280fi
2281
2282else
2283 echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286fi
2287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288ac_ext=c
2289ac_cpp='$CPP $CPPFLAGS'
2290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
2294ac_aux_dir=
2295for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2296 if test -f $ac_dir/install-sh; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/install-sh -c"
2299 break
2300 elif test -f $ac_dir/install.sh; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/install.sh -c"
2303 break
2304 elif test -f $ac_dir/shtool; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/shtool install -c"
2307 break
2308 fi
2309done
2310if test -z "$ac_aux_dir"; then
2311 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2312echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2313 { (exit 1); exit 1; }; }
2314fi
2315ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2316ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2317ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2318
2319# Make sure we can run config.sub.
2320$ac_config_sub sun4 >/dev/null 2>&1 ||
2321 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2322echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2323 { (exit 1); exit 1; }; }
2324
2325echo "$as_me:$LINENO: checking build system type" >&5
2326echo $ECHO_N "checking build system type... $ECHO_C" >&6
2327if test "${ac_cv_build+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 ac_cv_build_alias=$build_alias
2331test -z "$ac_cv_build_alias" &&
2332 ac_cv_build_alias=`$ac_config_guess`
2333test -z "$ac_cv_build_alias" &&
2334 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2335echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2336 { (exit 1); exit 1; }; }
2337ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2338 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2339echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2340 { (exit 1); exit 1; }; }
2341
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2344echo "${ECHO_T}$ac_cv_build" >&6
2345build=$ac_cv_build
2346build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2347build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2348build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2349
2350
2351echo "$as_me:$LINENO: checking host system type" >&5
2352echo $ECHO_N "checking host system type... $ECHO_C" >&6
2353if test "${ac_cv_host+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 ac_cv_host_alias=$host_alias
2357test -z "$ac_cv_host_alias" &&
2358 ac_cv_host_alias=$ac_cv_build_alias
2359ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2360 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2361echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2362 { (exit 1); exit 1; }; }
2363
2364fi
2365echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2366echo "${ECHO_T}$ac_cv_host" >&6
2367host=$ac_cv_host
2368host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2369host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2370host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2371
2372
2373
2374echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2375echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2376if test "${ac_cv_c_bigendian+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379 # See if sys/param.h defines the BYTE_ORDER macro.
2380cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h. */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h. */
2386#include <sys/types.h>
2387#include <sys/param.h>
2388
2389int
2390main ()
2391{
2392#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2393 bogus endian macros
2394#endif
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 # It does; now see whether it defined to BIG_ENDIAN or not.
2423cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429#include <sys/types.h>
2430#include <sys/param.h>
2431
2432int
2433main ()
2434{
2435#if BYTE_ORDER != BIG_ENDIAN
2436 not big endian
2437#endif
2438
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_c_bigendian=yes
2466else
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470ac_cv_c_bigendian=no
2471fi
2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477# It does not; compile a test program.
2478if test "$cross_compiling" = yes; then
2479 # try to guess the endianness by grepping values into an object file
2480 ac_cv_c_bigendian=unknown
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */
2487short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2488short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2489void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2490short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2491short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2492void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2493int
2494main ()
2495{
2496 _ascii (); _ebcdic ();
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501rm -f conftest.$ac_objext
2502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2524 ac_cv_c_bigendian=yes
2525fi
2526if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2527 if test "$ac_cv_c_bigendian" = unknown; then
2528 ac_cv_c_bigendian=no
2529 else
2530 # finding both strings is unlikely to happen, but who knows?
2531 ac_cv_c_bigendian=unknown
2532 fi
2533fi
2534else
2535 echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538fi
2539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540else
2541 cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h. */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h. */
2547int
2548main ()
2549{
2550 /* Are we little or big endian? From Harbison&Steele. */
2551 union
2552 {
2553 long l;
2554 char c[sizeof (long)];
2555 } u;
2556 u.l = 1;
2557 exit (u.c[sizeof (long) - 1] == 1);
2558}
2559_ACEOF
2560rm -f conftest$ac_exeext
2561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2562 (eval $ac_link) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_c_bigendian=no
2572else
2573 echo "$as_me: program exited with status $ac_status" >&5
2574echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577( exit $ac_status )
2578ac_cv_c_bigendian=yes
2579fi
2580rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2581fi
2582fi
2583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2586echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2587case $ac_cv_c_bigendian in
2588 yes)
2589
2590cat >>confdefs.h <<\_ACEOF
2591#define WORDS_BIGENDIAN 1
2592_ACEOF
2593 ;;
2594 no)
2595 ;;
2596 *)
2597 { { echo "$as_me:$LINENO: error: unknown endianness
2598presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2599echo "$as_me: error: unknown endianness
2600presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2601 { (exit 1); exit 1; }; } ;;
2602esac
2603
2604
2605# Checks for programs.
2606for ac_prog in gawk mawk nawk awk
2607do
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609set dummy $ac_prog; ac_word=$2
2610echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2612if test "${ac_cv_prog_AWK+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 if test -n "$AWK"; then
2616 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_AWK="$ac_prog"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630done
2631
2632fi
2633fi
2634AWK=$ac_cv_prog_AWK
2635if test -n "$AWK"; then
2636 echo "$as_me:$LINENO: result: $AWK" >&5
2637echo "${ECHO_T}$AWK" >&6
2638else
2639 echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6
2641fi
2642
2643 test -n "$AWK" && break
2644done
2645
2646ac_ext=c
2647ac_cpp='$CPP $CPPFLAGS'
2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2652echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2653# On Suns, sometimes $CPP names a directory.
2654if test -n "$CPP" && test -d "$CPP"; then
2655 CPP=
2656fi
2657if test -z "$CPP"; then
2658 if test "${ac_cv_prog_CPP+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 # Double quotes because CPP needs to be expanded
2662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2663 do
2664 ac_preproc_ok=false
2665for ac_c_preproc_warn_flag in '' yes
2666do
2667 # Use a header file that comes with gcc, so configuring glibc
2668 # with a fresh cross-compiler works.
2669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2670 # <limits.h> exists even on freestanding compilers.
2671 # On the NeXT, cc -E runs the code through the compiler's parser,
2672 # not just through cpp. "Syntax error" is here to catch this case.
2673 cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679#ifdef __STDC__
2680# include <limits.h>
2681#else
2682# include <assert.h>
2683#endif
2684 Syntax error
2685_ACEOF
2686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } >/dev/null; then
2694 if test -s conftest.err; then
2695 ac_cpp_err=$ac_c_preproc_warn_flag
2696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2697 else
2698 ac_cpp_err=
2699 fi
2700else
2701 ac_cpp_err=yes
2702fi
2703if test -z "$ac_cpp_err"; then
2704 :
2705else
2706 echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 # Broken: fails on valid input.
2710continue
2711fi
2712rm -f conftest.err conftest.$ac_ext
2713
2714 # OK, works on sane cases. Now check whether non-existent headers
2715 # can be detected and how.
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722#include <ac_nonexistent.h>
2723_ACEOF
2724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } >/dev/null; then
2732 if test -s conftest.err; then
2733 ac_cpp_err=$ac_c_preproc_warn_flag
2734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2735 else
2736 ac_cpp_err=
2737 fi
2738else
2739 ac_cpp_err=yes
2740fi
2741if test -z "$ac_cpp_err"; then
2742 # Broken: success on invalid input.
2743continue
2744else
2745 echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 # Passes both tests.
2749ac_preproc_ok=:
2750break
2751fi
2752rm -f conftest.err conftest.$ac_ext
2753
2754done
2755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2756rm -f conftest.err conftest.$ac_ext
2757if $ac_preproc_ok; then
2758 break
2759fi
2760
2761 done
2762 ac_cv_prog_CPP=$CPP
2763
2764fi
2765 CPP=$ac_cv_prog_CPP
2766else
2767 ac_cv_prog_CPP=$CPP
2768fi
2769echo "$as_me:$LINENO: result: $CPP" >&5
2770echo "${ECHO_T}$CPP" >&6
2771ac_preproc_ok=false
2772for ac_c_preproc_warn_flag in '' yes
2773do
2774 # Use a header file that comes with gcc, so configuring glibc
2775 # with a fresh cross-compiler works.
2776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2777 # <limits.h> exists even on freestanding compilers.
2778 # On the NeXT, cc -E runs the code through the compiler's parser,
2779 # not just through cpp. "Syntax error" is here to catch this case.
2780 cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
2786#ifdef __STDC__
2787# include <limits.h>
2788#else
2789# include <assert.h>
2790#endif
2791 Syntax error
2792_ACEOF
2793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 ac_status=$?
2796 grep -v '^ *+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2804 else
2805 ac_cpp_err=
2806 fi
2807else
2808 ac_cpp_err=yes
2809fi
2810if test -z "$ac_cpp_err"; then
2811 :
2812else
2813 echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 # Broken: fails on valid input.
2817continue
2818fi
2819rm -f conftest.err conftest.$ac_ext
2820
2821 # OK, works on sane cases. Now check whether non-existent headers
2822 # can be detected and how.
2823 cat >conftest.$ac_ext <<_ACEOF
2824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
2829#include <ac_nonexistent.h>
2830_ACEOF
2831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2842 else
2843 ac_cpp_err=
2844 fi
2845else
2846 ac_cpp_err=yes
2847fi
2848if test -z "$ac_cpp_err"; then
2849 # Broken: success on invalid input.
2850continue
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 # Passes both tests.
2856ac_preproc_ok=:
2857break
2858fi
2859rm -f conftest.err conftest.$ac_ext
2860
2861done
2862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2863rm -f conftest.err conftest.$ac_ext
2864if $ac_preproc_ok; then
2865 :
2866else
2867 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2870See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2872fi
2873
2874ac_ext=c
2875ac_cpp='$CPP $CPPFLAGS'
2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879
2880if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2883echo "$as_me:$LINENO: checking for $ac_word" >&5
2884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885if test "${ac_cv_prog_RANLIB+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888 if test -n "$RANLIB"; then
2889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902done
2903done
2904
2905fi
2906fi
2907RANLIB=$ac_cv_prog_RANLIB
2908if test -n "$RANLIB"; then
2909 echo "$as_me:$LINENO: result: $RANLIB" >&5
2910echo "${ECHO_T}$RANLIB" >&6
2911else
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
2914fi
2915
2916fi
2917if test -z "$ac_cv_prog_RANLIB"; then
2918 ac_ct_RANLIB=$RANLIB
2919 # Extract the first word of "ranlib", so it can be a program name with args.
2920set dummy ranlib; ac_word=$2
2921echo "$as_me:$LINENO: checking for $ac_word" >&5
2922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 if test -n "$ac_ct_RANLIB"; then
2927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_RANLIB="ranlib"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940done
2941done
2942
2943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2944fi
2945fi
2946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2947if test -n "$ac_ct_RANLIB"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2949echo "${ECHO_T}$ac_ct_RANLIB" >&6
2950else
2951 echo "$as_me:$LINENO: result: no" >&5
2952echo "${ECHO_T}no" >&6
2953fi
2954
2955 RANLIB=$ac_ct_RANLIB
2956else
2957 RANLIB="$ac_cv_prog_RANLIB"
2958fi
2959
2960# Find a good install program. We prefer a C program (faster),
2961# so one script is as good as another. But avoid the broken or
2962# incompatible versions:
2963# SysV /etc/install, /usr/sbin/install
2964# SunOS /usr/etc/install
2965# IRIX /sbin/install
2966# AIX /bin/install
2967# AmigaOS /C/install, which installs bootblocks on floppy discs
2968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2971# OS/2's system install, which has a completely different semantic
2972# ./install, which can be erroneously created by make from ./install.sh.
2973echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2974echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2975if test -z "$INSTALL"; then
2976if test "${ac_cv_path_install+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 # Account for people who put trailing slashes in PATH elements.
2985case $as_dir/ in
2986 ./ | .// | /cC/* | \
2987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2988 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2989 /usr/ucb/* ) ;;
2990 *)
2991 # OSF1 and SCO ODT 3.0 have their own names for install.
2992 # Don't use installbsd from OSF since it installs stuff as root
2993 # by default.
2994 for ac_prog in ginstall scoinst install; do
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2997 if test $ac_prog = install &&
2998 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999 # AIX install. It has an incompatible calling convention.
3000 :
3001 elif test $ac_prog = install &&
3002 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003 # program-specific install script used by HP pwplus--don't use.
3004 :
3005 else
3006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3007 break 3
3008 fi
3009 fi
3010 done
3011 done
3012 ;;
3013esac
3014done
3015
3016
3017fi
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
3021 # As a last resort, use the slow shell script. We don't cache a
3022 # path for INSTALL within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the path is relative.
3025 INSTALL=$ac_install_sh
3026 fi
3027fi
3028echo "$as_me:$LINENO: result: $INSTALL" >&5
3029echo "${ECHO_T}$INSTALL" >&6
3030
3031# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032# It thinks the first close brace ends the variable substitution.
3033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3034
3035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3036
3037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3038
3039# Extract the first word of "ar", so it can be a program name with args.
3040set dummy ar; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_path_AR+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 case $AR in
3047 [\\/]* | ?:[\\/]*)
3048 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3049 ;;
3050 *)
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062done
3063done
3064
3065 ;;
3066esac
3067fi
3068AR=$ac_cv_path_AR
3069
3070if test -n "$AR"; then
3071 echo "$as_me:$LINENO: result: $AR" >&5
3072echo "${ECHO_T}$AR" >&6
3073else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076fi
3077
3078# Extract the first word of "cat", so it can be a program name with args.
3079set dummy cat; ac_word=$2
3080echo "$as_me:$LINENO: checking for $ac_word" >&5
3081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082if test "${ac_cv_path_CAT+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 case $CAT in
3086 [\\/]* | ?:[\\/]*)
3087 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3088 ;;
3089 *)
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
3104 ;;
3105esac
3106fi
3107CAT=$ac_cv_path_CAT
3108
3109if test -n "$CAT"; then
3110 echo "$as_me:$LINENO: result: $CAT" >&5
3111echo "${ECHO_T}$CAT" >&6
3112else
3113 echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
3117# Extract the first word of "kill", so it can be a program name with args.
3118set dummy kill; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_path_KILL+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 case $KILL in
3125 [\\/]* | ?:[\\/]*)
3126 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
3127 ;;
3128 *)
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141done
3142
3143 ;;
3144esac
3145fi
3146KILL=$ac_cv_path_KILL
3147
3148if test -n "$KILL"; then
3149 echo "$as_me:$LINENO: result: $KILL" >&5
3150echo "${ECHO_T}$KILL" >&6
3151else
3152 echo "$as_me:$LINENO: result: no" >&5
3153echo "${ECHO_T}no" >&6
3154fi
3155
3156for ac_prog in perl5 perl
3157do
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159set dummy $ac_prog; ac_word=$2
3160echo "$as_me:$LINENO: checking for $ac_word" >&5
3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162if test "${ac_cv_path_PERL+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164else
3165 case $PERL in
3166 [\\/]* | ?:[\\/]*)
3167 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3168 ;;
3169 *)
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182done
3183
3184 ;;
3185esac
3186fi
3187PERL=$ac_cv_path_PERL
3188
3189if test -n "$PERL"; then
3190 echo "$as_me:$LINENO: result: $PERL" >&5
3191echo "${ECHO_T}$PERL" >&6
3192else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195fi
3196
3197 test -n "$PERL" && break
3198done
3199
3200# Extract the first word of "sed", so it can be a program name with args.
3201set dummy sed; ac_word=$2
3202echo "$as_me:$LINENO: checking for $ac_word" >&5
3203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204if test "${ac_cv_path_SED+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 case $SED in
3208 [\\/]* | ?:[\\/]*)
3209 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3210 ;;
3211 *)
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224done
3225
3226 ;;
3227esac
3228fi
3229SED=$ac_cv_path_SED
3230
3231if test -n "$SED"; then
3232 echo "$as_me:$LINENO: result: $SED" >&5
3233echo "${ECHO_T}$SED" >&6
3234else
3235 echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237fi
3238
3239
3240# Extract the first word of "ent", so it can be a program name with args.
3241set dummy ent; ac_word=$2
3242echo "$as_me:$LINENO: checking for $ac_word" >&5
3243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244if test "${ac_cv_path_ENT+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 case $ENT in
3248 [\\/]* | ?:[\\/]*)
3249 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
3250 ;;
3251 *)
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263done
3264done
3265
3266 ;;
3267esac
3268fi
3269ENT=$ac_cv_path_ENT
3270
3271if test -n "$ENT"; then
3272 echo "$as_me:$LINENO: result: $ENT" >&5
3273echo "${ECHO_T}$ENT" >&6
3274else
3275 echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277fi
3278
3279
3280# Extract the first word of "bash", so it can be a program name with args.
3281set dummy bash; ac_word=$2
3282echo "$as_me:$LINENO: checking for $ac_word" >&5
3283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 case $TEST_MINUS_S_SH in
3288 [\\/]* | ?:[\\/]*)
3289 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3290 ;;
3291 *)
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303done
3304done
3305
3306 ;;
3307esac
3308fi
3309TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3310
3311if test -n "$TEST_MINUS_S_SH"; then
3312 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3313echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3314else
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
3318
3319# Extract the first word of "ksh", so it can be a program name with args.
3320set dummy ksh; ac_word=$2
3321echo "$as_me:$LINENO: checking for $ac_word" >&5
3322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326 case $TEST_MINUS_S_SH in
3327 [\\/]* | ?:[\\/]*)
3328 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3329 ;;
3330 *)
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342done
3343done
3344
3345 ;;
3346esac
3347fi
3348TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3349
3350if test -n "$TEST_MINUS_S_SH"; then
3351 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3352echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3353else
3354 echo "$as_me:$LINENO: result: no" >&5
3355echo "${ECHO_T}no" >&6
3356fi
3357
3358# Extract the first word of "sh", so it can be a program name with args.
3359set dummy sh; ac_word=$2
3360echo "$as_me:$LINENO: checking for $ac_word" >&5
3361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 case $TEST_MINUS_S_SH in
3366 [\\/]* | ?:[\\/]*)
3367 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
3368 ;;
3369 *)
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381done
3382done
3383
3384 ;;
3385esac
3386fi
3387TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
3388
3389if test -n "$TEST_MINUS_S_SH"; then
3390 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
3391echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
3392else
3393 echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
3395fi
3396
3397# Extract the first word of "sh", so it can be a program name with args.
3398set dummy sh; ac_word=$2
3399echo "$as_me:$LINENO: checking for $ac_word" >&5
3400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401if test "${ac_cv_path_SH+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 case $SH in
3405 [\\/]* | ?:[\\/]*)
3406 ac_cv_path_SH="$SH" # Let the user override the test with a path.
3407 ;;
3408 *)
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420done
3421done
3422
3423 ;;
3424esac
3425fi
3426SH=$ac_cv_path_SH
3427
3428if test -n "$SH"; then
3429 echo "$as_me:$LINENO: result: $SH" >&5
3430echo "${ECHO_T}$SH" >&6
3431else
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434fi
3435
3436TEST_SHELL=sh
3437
3438
3439# Extract the first word of "groupadd", so it can be a program name with args.
3440set dummy groupadd; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 case $PATH_GROUPADD_PROG in
3447 [\\/]* | ?:[\\/]*)
3448 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
3449 ;;
3450 *)
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3453do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
3464
3465 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
3466 ;;
3467esac
3468fi
3469PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
3470
3471if test -n "$PATH_GROUPADD_PROG"; then
3472 echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
3473echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6
3474else
3475 echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
3477fi
3478
3479# Extract the first word of "useradd", so it can be a program name with args.
3480set dummy useradd; ac_word=$2
3481echo "$as_me:$LINENO: checking for $ac_word" >&5
3482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3483if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486 case $PATH_USERADD_PROG in
3487 [\\/]* | ?:[\\/]*)
3488 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
3489 ;;
3490 *)
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503done
3504
3505 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
3506 ;;
3507esac
3508fi
3509PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
3510
3511if test -n "$PATH_USERADD_PROG"; then
3512 echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
3513echo "${ECHO_T}$PATH_USERADD_PROG" >&6
3514else
3515 echo "$as_me:$LINENO: result: no" >&5
3516echo "${ECHO_T}no" >&6
3517fi
3518
3519# Extract the first word of "pkgmk", so it can be a program name with args.
3520set dummy pkgmk; ac_word=$2
3521echo "$as_me:$LINENO: checking for $ac_word" >&5
3522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3527 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540done
3541done
3542
3543 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
3544fi
3545fi
3546MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
3547if test -n "$MAKE_PACKAGE_SUPPORTED"; then
3548 echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
3549echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6
3550else
3551 echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553fi
3554
3555
3556# System features
3557# Check whether --enable-largefile or --disable-largefile was given.
3558if test "${enable_largefile+set}" = set; then
3559 enableval="$enable_largefile"
3560
3561fi;
3562if test "$enable_largefile" != no; then
3563
3564 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3565echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3566if test "${ac_cv_sys_largefile_CC+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 ac_cv_sys_largefile_CC=no
3570 if test "$GCC" != yes; then
3571 ac_save_CC=$CC
3572 while :; do
3573 # IRIX 6.2 and later do not support large files by default,
3574 # so use the C compiler's -n32 option if that helps.
3575 cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h. */
3581#include <sys/types.h>
3582 /* Check that off_t can represent 2**63 - 1 correctly.
3583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3584 since some C++ compilers masquerading as C compilers
3585 incorrectly reject 9223372036854775807. */
3586#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3588 && LARGE_OFF_T % 2147483647 == 1)
3589 ? 1 : -1];
3590int
3591main ()
3592{
3593
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598 rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 break
3621else
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625fi
3626rm -f conftest.err conftest.$ac_objext
3627 CC="$CC -n32"
3628 rm -f conftest.$ac_objext
3629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
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); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_sys_largefile_CC=' -n32'; break
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655fi
3656rm -f conftest.err conftest.$ac_objext
3657 break
3658 done
3659 CC=$ac_save_CC
3660 rm -f conftest.$ac_ext
3661 fi
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3664echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3665 if test "$ac_cv_sys_largefile_CC" != no; then
3666 CC=$CC$ac_cv_sys_largefile_CC
3667 fi
3668
3669 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3670echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3671if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 while :; do
3675 ac_cv_sys_file_offset_bits=no
3676 cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682#include <sys/types.h>
3683 /* Check that off_t can represent 2**63 - 1 correctly.
3684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3685 since some C++ compilers masquerading as C compilers
3686 incorrectly reject 9223372036854775807. */
3687#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3689 && LARGE_OFF_T % 2147483647 == 1)
3690 ? 1 : -1];
3691int
3692main ()
3693{
3694
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699rm -f conftest.$ac_objext
3700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest.$ac_objext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 break
3722else
3723 echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726fi
3727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728 cat >conftest.$ac_ext <<_ACEOF
3729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
3734#define _FILE_OFFSET_BITS 64
3735#include <sys/types.h>
3736 /* Check that off_t can represent 2**63 - 1 correctly.
3737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3738 since some C++ compilers masquerading as C compilers
3739 incorrectly reject 9223372036854775807. */
3740#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3742 && LARGE_OFF_T % 2147483647 == 1)
3743 ? 1 : -1];
3744int
3745main ()
3746{
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752rm -f conftest.$ac_objext
3753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -z "$ac_c_werror_flag"
3762 || test ! -s conftest.err'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 (eval $ac_try) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_sys_file_offset_bits=64; break
3775else
3776 echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779fi
3780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 break
3782done
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3785echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3786if test "$ac_cv_sys_file_offset_bits" != no; then
3787
3788cat >>confdefs.h <<_ACEOF
3789#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3790_ACEOF
3791
3792fi
3793rm -f conftest*
3794 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3795echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3796if test "${ac_cv_sys_large_files+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 while :; do
3800 ac_cv_sys_large_files=no
3801 cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h. */
3807#include <sys/types.h>
3808 /* Check that off_t can represent 2**63 - 1 correctly.
3809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3810 since some C++ compilers masquerading as C compilers
3811 incorrectly reject 9223372036854775807. */
3812#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3814 && LARGE_OFF_T % 2147483647 == 1)
3815 ? 1 : -1];
3816int
3817main ()
3818{
3819
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext
3825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 break
3847else
3848 echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851fi
3852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#define _LARGE_FILES 1
3860#include <sys/types.h>
3861 /* Check that off_t can represent 2**63 - 1 correctly.
3862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3863 since some C++ compilers masquerading as C compilers
3864 incorrectly reject 9223372036854775807. */
3865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3867 && LARGE_OFF_T % 2147483647 == 1)
3868 ? 1 : -1];
3869int
3870main ()
3871{
3872
3873 ;
3874 return 0;
3875}
3876_ACEOF
3877rm -f conftest.$ac_objext
3878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag"
3887 || test ! -s conftest.err'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_sys_large_files=1; break
3900else
3901 echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904fi
3905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 break
3907done
3908fi
3909echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3910echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3911if test "$ac_cv_sys_large_files" != no; then
3912
3913cat >>confdefs.h <<_ACEOF
3914#define _LARGE_FILES $ac_cv_sys_large_files
3915_ACEOF
3916
3917fi
3918rm -f conftest*
3919fi
3920
3921
3922if test -z "$AR" ; then
3923 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3924echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3925 { (exit 1); exit 1; }; }
3926fi
3927
3928# Use LOGIN_PROGRAM from environment if possible
3929if test ! -z "$LOGIN_PROGRAM" ; then
3930 cat >>confdefs.h <<_ACEOF
3931#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3932_ACEOF
3933
3934else
3935 # Search for login
3936 # Extract the first word of "login", so it can be a program name with args.
3937set dummy login; ac_word=$2
3938echo "$as_me:$LINENO: checking for $ac_word" >&5
3939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943 case $LOGIN_PROGRAM_FALLBACK in
3944 [\\/]* | ?:[\\/]*)
3945 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3946 ;;
3947 *)
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959done
3960done
3961
3962 ;;
3963esac
3964fi
3965LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3966
3967if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3968 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3969echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3970else
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
3973fi
3974
3975 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3976 cat >>confdefs.h <<_ACEOF
3977#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3978_ACEOF
3979
3980 fi
3981fi
3982
3983# Extract the first word of "passwd", so it can be a program name with args.
3984set dummy passwd; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990 case $PATH_PASSWD_PROG in
3991 [\\/]* | ?:[\\/]*)
3992 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
3993 ;;
3994 *)
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
4007done
4008
4009 ;;
4010esac
4011fi
4012PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
4013
4014if test -n "$PATH_PASSWD_PROG"; then
4015 echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
4016echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
4017else
4018 echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
4020fi
4021
4022if test ! -z "$PATH_PASSWD_PROG" ; then
4023 cat >>confdefs.h <<_ACEOF
4024#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
4025_ACEOF
4026
4027fi
4028
4029if test -z "$LD" ; then
4030 LD=$CC
4031fi
4032
4033
4034echo "$as_me:$LINENO: checking for inline" >&5
4035echo $ECHO_N "checking for inline... $ECHO_C" >&6
4036if test "${ac_cv_c_inline+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 ac_cv_c_inline=no
4040for ac_kw in inline __inline__ __inline; do
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#ifndef __cplusplus
4048typedef int foo_t;
4049static $ac_kw foo_t static_foo () {return 0; }
4050$ac_kw foo_t foo () {return 0; }
4051#endif
4052
4053_ACEOF
4054rm -f conftest.$ac_objext
4055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_c_inline=$ac_kw; break
4077else
4078 echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081fi
4082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083done
4084
4085fi
4086echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4087echo "${ECHO_T}$ac_cv_c_inline" >&6
4088
4089
4090case $ac_cv_c_inline in
4091 inline | yes) ;;
4092 *)
4093 case $ac_cv_c_inline in
4094 no) ac_val=;;
4095 *) ac_val=$ac_cv_c_inline;;
4096 esac
4097 cat >>confdefs.h <<_ACEOF
4098#ifndef __cplusplus
4099#define inline $ac_val
4100#endif
4101_ACEOF
4102 ;;
4103esac
4104
4105
4106echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4107echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4108if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h. */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h. */
4117#include <limits.h>
4118
4119int
4120main ()
4121{
4122#ifndef LLONG_MAX
4123 char *p = (char *) LLONG_MAX;
4124#endif
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 ac_cv_have_decl_LLONG_MAX=yes
4153else
4154 echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157ac_cv_have_decl_LLONG_MAX=no
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160fi
4161echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4162echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4163if test $ac_cv_have_decl_LLONG_MAX = yes; then
4164 have_llong_max=1
4165fi
4166
4167
4168if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
4169 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
4170 GCC_VER=`$CC --version`
4171 case $GCC_VER in
4172 1.*) ;;
4173 2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
4174 2.*) ;;
4175 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
4176 esac
4177
4178 if test -z "$have_llong_max"; then
4179 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
4180 unset ac_cv_have_decl_LLONG_MAX
4181 saved_CFLAGS="$CFLAGS"
4182 CFLAGS="$CFLAGS -std=gnu99"
4183 echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
4184echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6
4185if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
4194#include <limits.h>
4195
4196
4197int
4198main ()
4199{
4200#ifndef LLONG_MAX
4201 char *p = (char *) LLONG_MAX;
4202#endif
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_have_decl_LLONG_MAX=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235ac_cv_have_decl_LLONG_MAX=no
4236fi
4237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238fi
4239echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
4240echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6
4241if test $ac_cv_have_decl_LLONG_MAX = yes; then
4242 have_llong_max=1
4243else
4244 CFLAGS="$saved_CFLAGS"
4245fi
4246
4247 fi
4248fi
4249
4250if test -z "$have_llong_max"; then
4251 echo "$as_me:$LINENO: checking for max value of long long" >&5
4252echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6
4253 if test "$cross_compiling" = yes; then
4254
4255 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
4256echo "$as_me: WARNING: cross compiling: not checking" >&2;}
4257
4258
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266
4267#include <stdio.h>
4268/* Why is this so damn hard? */
4269#ifdef __GNUC__
4270# undef __GNUC__
4271#endif
4272#define __USE_ISOC99
4273#include <limits.h>
4274#define DATA "conftest.llminmax"
4275int main(void) {
4276 FILE *f;
4277 long long i, llmin, llmax = 0;
4278
4279 if((f = fopen(DATA,"w")) == NULL)
4280 exit(1);
4281
4282#if defined(LLONG_MIN) && defined(LLONG_MAX)
4283 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
4284 llmin = LLONG_MIN;
4285 llmax = LLONG_MAX;
4286#else
4287 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
4288 /* This will work on one's complement and two's complement */
4289 for (i = 1; i > llmax; i <<= 1, i++)
4290 llmax = i;
4291 llmin = llmax + 1LL; /* wrap */
4292#endif
4293
4294 /* Sanity check */
4295 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
4296 || llmax - 1 > llmax) {
4297 fprintf(f, "unknown unknown\n");
4298 exit(2);
4299 }
4300
4301 if (fprintf(f ,"%lld %lld", llmin, llmax) < 0)
4302 exit(3);
4303
4304 exit(0);
4305}
4306
4307_ACEOF
4308rm -f conftest$ac_exeext
4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310 (eval $ac_link) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319
4320 llong_min=`$AWK '{print $1}' conftest.llminmax`
4321 llong_max=`$AWK '{print $2}' conftest.llminmax`
4322 echo "$as_me:$LINENO: result: $llong_max" >&5
4323echo "${ECHO_T}$llong_max" >&6
4324
4325cat >>confdefs.h <<_ACEOF
4326#define LLONG_MAX ${llong_max}LL
4327_ACEOF
4328
4329 echo "$as_me:$LINENO: checking for min value of long long" >&5
4330echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: $llong_min" >&5
4332echo "${ECHO_T}$llong_min" >&6
4333
4334cat >>confdefs.h <<_ACEOF
4335#define LLONG_MIN ${llong_min}LL
4336_ACEOF
4337
4338
4339else
4340 echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344( exit $ac_status )
4345
4346 echo "$as_me:$LINENO: result: not found" >&5
4347echo "${ECHO_T}not found" >&6
4348
4349fi
4350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351fi
4352fi
4353
4354
4355# Check whether --with-rpath or --without-rpath was given.
4356if test "${with_rpath+set}" = set; then
4357 withval="$with_rpath"
4358
4359 if test "x$withval" = "xno" ; then
4360 need_dash_r=""
4361 fi
4362 if test "x$withval" = "xyes" ; then
4363 need_dash_r=1
4364 fi
4365
4366
4367fi;
4368
4369# Check for some target-specific stuff
4370case "$host" in
4371*-*-aix*)
4372 echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
4373echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
4374 if (test -z "$blibpath"); then
4375 blibpath="/usr/lib:/lib"
4376 fi
4377 saved_LDFLAGS="$LDFLAGS"
4378 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
4379 if (test -z "$blibflags"); then
4380 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
4381 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387
4388int
4389main ()
4390{
4391
4392 ;
4393 return 0;
4394}
4395_ACEOF
4396rm -f conftest.$ac_objext conftest$ac_exeext
4397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398 (eval $ac_link) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 blibflags=$tryflags
4419else
4420 echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423fi
4424rm -f conftest.err conftest.$ac_objext \
4425 conftest$ac_exeext conftest.$ac_ext
4426 fi
4427 done
4428 if (test -z "$blibflags"); then
4429 echo "$as_me:$LINENO: result: not found" >&5
4430echo "${ECHO_T}not found" >&6
4431 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
4432echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
4433 { (exit 1); exit 1; }; }
4434 else
4435 echo "$as_me:$LINENO: result: $blibflags" >&5
4436echo "${ECHO_T}$blibflags" >&6
4437 fi
4438 LDFLAGS="$saved_LDFLAGS"
4439 echo "$as_me:$LINENO: checking for authenticate" >&5
4440echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
4441if test "${ac_cv_func_authenticate+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
4451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4452#define authenticate innocuous_authenticate
4453
4454/* System header to define __stub macros and hopefully few prototypes,
4455 which can conflict with char authenticate (); below.
4456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457 <limits.h> exists even on freestanding compilers. */
4458
4459#ifdef __STDC__
4460# include <limits.h>
4461#else
4462# include <assert.h>
4463#endif
4464
4465#undef authenticate
4466
4467/* Override any gcc2 internal prototype to avoid an error. */
4468#ifdef __cplusplus
4469extern "C"
4470{
4471#endif
4472/* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4474char authenticate ();
4475/* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478#if defined (__stub_authenticate) || defined (__stub___authenticate)
4479choke me
4480#else
4481char (*f) () = authenticate;
4482#endif
4483#ifdef __cplusplus
4484}
4485#endif
4486
4487int
4488main ()
4489{
4490return f != authenticate;
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext conftest$ac_exeext
4496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4497 (eval $ac_link) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
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); }; } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_cv_func_authenticate=yes
4518else
4519 echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522ac_cv_func_authenticate=no
4523fi
4524rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
4528echo "${ECHO_T}$ac_cv_func_authenticate" >&6
4529if test $ac_cv_func_authenticate = yes; then
4530 cat >>confdefs.h <<\_ACEOF
4531#define WITH_AIXAUTHENTICATE 1
4532_ACEOF
4533
4534else
4535 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
4536echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
4537if test "${ac_cv_lib_s_authenticate+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 ac_check_lib_save_LIBS=$LIBS
4541LIBS="-ls $LIBS"
4542cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
4548
4549/* Override any gcc2 internal prototype to avoid an error. */
4550#ifdef __cplusplus
4551extern "C"
4552#endif
4553/* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4555char authenticate ();
4556int
4557main ()
4558{
4559authenticate ();
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564rm -f conftest.$ac_objext conftest$ac_exeext
4565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_cv_lib_s_authenticate=yes
4587else
4588 echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_cv_lib_s_authenticate=no
4592fi
4593rm -f conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4595LIBS=$ac_check_lib_save_LIBS
4596fi
4597echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
4598echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
4599if test $ac_cv_lib_s_authenticate = yes; then
4600 cat >>confdefs.h <<\_ACEOF
4601#define WITH_AIXAUTHENTICATE 1
4602_ACEOF
4603
4604 LIBS="$LIBS -ls"
4605
4606fi
4607
4608
4609fi
4610
4611 echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
4612echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6
4613if test "${ac_cv_have_decl_authenticate+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <usersec.h>
4623
4624int
4625main ()
4626{
4627#ifndef authenticate
4628 char *p = (char *) authenticate;
4629#endif
4630
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext
4636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_have_decl_authenticate=yes
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662ac_cv_have_decl_authenticate=no
4663fi
4664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665fi
4666echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
4667echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6
4668if test $ac_cv_have_decl_authenticate = yes; then
4669
4670cat >>confdefs.h <<_ACEOF
4671#define HAVE_DECL_AUTHENTICATE 1
4672_ACEOF
4673
4674
4675else
4676 cat >>confdefs.h <<_ACEOF
4677#define HAVE_DECL_AUTHENTICATE 0
4678_ACEOF
4679
4680
4681fi
4682echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
4683echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6
4684if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687 cat >conftest.$ac_ext <<_ACEOF
4688/* confdefs.h. */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h. */
4693#include <usersec.h>
4694
4695int
4696main ()
4697{
4698#ifndef loginrestrictions
4699 char *p = (char *) loginrestrictions;
4700#endif
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest.$ac_objext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_have_decl_loginrestrictions=yes
4729else
4730 echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733ac_cv_have_decl_loginrestrictions=no
4734fi
4735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
4737echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
4738echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6
4739if test $ac_cv_have_decl_loginrestrictions = yes; then
4740
4741cat >>confdefs.h <<_ACEOF
4742#define HAVE_DECL_LOGINRESTRICTIONS 1
4743_ACEOF
4744
4745
4746else
4747 cat >>confdefs.h <<_ACEOF
4748#define HAVE_DECL_LOGINRESTRICTIONS 0
4749_ACEOF
4750
4751
4752fi
4753echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
4754echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6
4755if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764#include <usersec.h>
4765
4766int
4767main ()
4768{
4769#ifndef loginsuccess
4770 char *p = (char *) loginsuccess;
4771#endif
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 ac_cv_have_decl_loginsuccess=yes
4800else
4801 echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804ac_cv_have_decl_loginsuccess=no
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807fi
4808echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
4809echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6
4810if test $ac_cv_have_decl_loginsuccess = yes; then
4811
4812cat >>confdefs.h <<_ACEOF
4813#define HAVE_DECL_LOGINSUCCESS 1
4814_ACEOF
4815
4816
4817else
4818 cat >>confdefs.h <<_ACEOF
4819#define HAVE_DECL_LOGINSUCCESS 0
4820_ACEOF
4821
4822
4823fi
4824echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
4825echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6
4826if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828else
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#include <usersec.h>
4836
4837int
4838main ()
4839{
4840#ifndef passwdexpired
4841 char *p = (char *) passwdexpired;
4842#endif
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_have_decl_passwdexpired=yes
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_cv_have_decl_passwdexpired=no
4876fi
4877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
4880echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6
4881if test $ac_cv_have_decl_passwdexpired = yes; then
4882
4883cat >>confdefs.h <<_ACEOF
4884#define HAVE_DECL_PASSWDEXPIRED 1
4885_ACEOF
4886
4887
4888else
4889 cat >>confdefs.h <<_ACEOF
4890#define HAVE_DECL_PASSWDEXPIRED 0
4891_ACEOF
4892
4893
4894fi
4895echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
4896echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6
4897if test "${ac_cv_have_decl_setauthdb+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 cat >conftest.$ac_ext <<_ACEOF
4901/* confdefs.h. */
4902_ACEOF
4903cat confdefs.h >>conftest.$ac_ext
4904cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */
4906#include <usersec.h>
4907
4908int
4909main ()
4910{
4911#ifndef setauthdb
4912 char *p = (char *) setauthdb;
4913#endif
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext
4920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_have_decl_setauthdb=yes
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946ac_cv_have_decl_setauthdb=no
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949fi
4950echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
4951echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6
4952if test $ac_cv_have_decl_setauthdb = yes; then
4953
4954cat >>confdefs.h <<_ACEOF
4955#define HAVE_DECL_SETAUTHDB 1
4956_ACEOF
4957
4958
4959else
4960 cat >>confdefs.h <<_ACEOF
4961#define HAVE_DECL_SETAUTHDB 0
4962_ACEOF
4963
4964
4965fi
4966
4967
4968 echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
4969echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
4970if test "${ac_cv_have_decl_loginfailed+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973 cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979#include <usersec.h>
4980
4981
4982int
4983main ()
4984{
4985#ifndef loginfailed
4986 char *p = (char *) loginfailed;
4987#endif
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_have_decl_loginfailed=yes
5016else
5017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020ac_cv_have_decl_loginfailed=no
5021fi
5022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
5025echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
5026if test $ac_cv_have_decl_loginfailed = yes; then
5027
5028cat >>confdefs.h <<_ACEOF
5029#define HAVE_DECL_LOGINFAILED 1
5030_ACEOF
5031
5032echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
5033echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */
5040#include <usersec.h>
5041int
5042main ()
5043{
5044(void)loginfailed("user","host","tty",0);
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext
5050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 cat >>confdefs.h <<\_ACEOF
5074#define AIX_LOGINFAILED_4ARG 1
5075_ACEOF
5076
5077else
5078 echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083
5084fi
5085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086else
5087 cat >>confdefs.h <<_ACEOF
5088#define HAVE_DECL_LOGINFAILED 0
5089_ACEOF
5090
5091
5092fi
5093
5094
5095
5096for ac_func in setauthdb
5097do
5098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5099echo "$as_me:$LINENO: checking for $ac_func" >&5
5100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5101if eval "test \"\${$as_ac_var+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5112#define $ac_func innocuous_$ac_func
5113
5114/* System header to define __stub macros and hopefully few prototypes,
5115 which can conflict with char $ac_func (); below.
5116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 <limits.h> exists even on freestanding compilers. */
5118
5119#ifdef __STDC__
5120# include <limits.h>
5121#else
5122# include <assert.h>
5123#endif
5124
5125#undef $ac_func
5126
5127/* Override any gcc2 internal prototype to avoid an error. */
5128#ifdef __cplusplus
5129extern "C"
5130{
5131#endif
5132/* We use char because int might match the return type of a gcc2
5133 builtin and then its argument prototype would still apply. */
5134char $ac_func ();
5135/* The GNU C library defines this for functions which it implements
5136 to always fail with ENOSYS. Some functions are actually named
5137 something starting with __ and the normal name is an alias. */
5138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5139choke me
5140#else
5141char (*f) () = $ac_func;
5142#endif
5143#ifdef __cplusplus
5144}
5145#endif
5146
5147int
5148main ()
5149{
5150return f != $ac_func;
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext conftest$ac_exeext
5156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157 (eval $ac_link) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 eval "$as_ac_var=yes"
5178else
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182eval "$as_ac_var=no"
5183fi
5184rm -f conftest.err conftest.$ac_objext \
5185 conftest$ac_exeext conftest.$ac_ext
5186fi
5187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5189if test `eval echo '${'$as_ac_var'}'` = yes; then
5190 cat >>confdefs.h <<_ACEOF
5191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5192_ACEOF
5193
5194fi
5195done
5196
5197 check_for_aix_broken_getaddrinfo=1
5198 cat >>confdefs.h <<\_ACEOF
5199#define BROKEN_REALPATH 1
5200_ACEOF
5201
5202 cat >>confdefs.h <<\_ACEOF
5203#define SETEUID_BREAKS_SETUID 1
5204_ACEOF
5205
5206 cat >>confdefs.h <<\_ACEOF
5207#define BROKEN_SETREUID 1
5208_ACEOF
5209
5210 cat >>confdefs.h <<\_ACEOF
5211#define BROKEN_SETREGID 1
5212_ACEOF
5213
5214 cat >>confdefs.h <<\_ACEOF
5215#define DISABLE_LASTLOG 1
5216_ACEOF
5217
5218 cat >>confdefs.h <<\_ACEOF
5219#define LOGIN_NEEDS_UTMPX 1
5220_ACEOF
5221
5222 cat >>confdefs.h <<\_ACEOF
5223#define SPT_TYPE SPT_REUSEARGV
5224_ACEOF
5225
5226 ;;
5227*-*-cygwin*)
5228 check_for_libcrypt_later=1
5229 LIBS="$LIBS /usr/lib/textmode.o"
5230 cat >>confdefs.h <<\_ACEOF
5231#define HAVE_CYGWIN 1
5232_ACEOF
5233
5234 cat >>confdefs.h <<\_ACEOF
5235#define USE_PIPES 1
5236_ACEOF
5237
5238 cat >>confdefs.h <<\_ACEOF
5239#define DISABLE_SHADOW 1
5240_ACEOF
5241
5242 cat >>confdefs.h <<\_ACEOF
5243#define IP_TOS_IS_BROKEN 1
5244_ACEOF
5245
5246 cat >>confdefs.h <<\_ACEOF
5247#define NO_X11_UNIX_SOCKETS 1
5248_ACEOF
5249
5250 cat >>confdefs.h <<\_ACEOF
5251#define NO_IPPORT_RESERVED_CONCEPT 1
5252_ACEOF
5253
5254 cat >>confdefs.h <<\_ACEOF
5255#define DISABLE_FD_PASSING 1
5256_ACEOF
5257
5258 ;;
5259*-*-dgux*)
5260 cat >>confdefs.h <<\_ACEOF
5261#define IP_TOS_IS_BROKEN 1
5262_ACEOF
5263
5264 cat >>confdefs.h <<\_ACEOF
5265#define SETEUID_BREAKS_SETUID 1
5266_ACEOF
5267
5268 cat >>confdefs.h <<\_ACEOF
5269#define BROKEN_SETREUID 1
5270_ACEOF
5271
5272 cat >>confdefs.h <<\_ACEOF
5273#define BROKEN_SETREGID 1
5274_ACEOF
5275
5276 ;;
5277*-*-darwin*)
5278 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
5279echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
5280 if test "$cross_compiling" = yes; then
5281 echo "$as_me:$LINENO: result: assume it is working" >&5
5282echo "${ECHO_T}assume it is working" >&6
5283else
5284 cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290#include <mach-o/dyld.h>
5291main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
5292 exit(0);
5293 else
5294 exit(1);
5295}
5296_ACEOF
5297rm -f conftest$ac_exeext
5298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5299 (eval $ac_link) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 echo "$as_me:$LINENO: result: working" >&5
5309echo "${ECHO_T}working" >&6
5310else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315( exit $ac_status )
5316echo "$as_me:$LINENO: result: buggy" >&5
5317echo "${ECHO_T}buggy" >&6
5318 cat >>confdefs.h <<\_ACEOF
5319#define BROKEN_GETADDRINFO 1
5320_ACEOF
5321
5322fi
5323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5324fi
5325 cat >>confdefs.h <<\_ACEOF
5326#define SETEUID_BREAKS_SETUID 1
5327_ACEOF
5328
5329 cat >>confdefs.h <<\_ACEOF
5330#define BROKEN_SETREUID 1
5331_ACEOF
5332
5333 cat >>confdefs.h <<\_ACEOF
5334#define BROKEN_SETREGID 1
5335_ACEOF
5336
5337 cat >>confdefs.h <<_ACEOF
5338#define BIND_8_COMPAT 1
5339_ACEOF
5340
5341 ;;
5342*-*-hpux*)
5343 # first we define all of the options common to all HP-UX releases
5344 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
5345 IPADDR_IN_DISPLAY=yes
5346 cat >>confdefs.h <<\_ACEOF
5347#define USE_PIPES 1
5348_ACEOF
5349
5350 cat >>confdefs.h <<\_ACEOF
5351#define LOGIN_NO_ENDOPT 1
5352_ACEOF
5353
5354 cat >>confdefs.h <<\_ACEOF
5355#define LOGIN_NEEDS_UTMPX 1
5356_ACEOF
5357
5358 cat >>confdefs.h <<\_ACEOF
5359#define LOCKED_PASSWD_STRING "*"
5360_ACEOF
5361
5362 cat >>confdefs.h <<\_ACEOF
5363#define SPT_TYPE SPT_PSTAT
5364_ACEOF
5365
5366 LIBS="$LIBS -lsec"
5367
5368echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
5369echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
5370if test "${ac_cv_lib_xnet_t_error+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 ac_check_lib_save_LIBS=$LIBS
5374LIBS="-lxnet $LIBS"
5375cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h. */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h. */
5381
5382/* Override any gcc2 internal prototype to avoid an error. */
5383#ifdef __cplusplus
5384extern "C"
5385#endif
5386/* We use char because int might match the return type of a gcc2
5387 builtin and then its argument prototype would still apply. */
5388char t_error ();
5389int
5390main ()
5391{
5392t_error ();
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext conftest$ac_exeext
5398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_cv_lib_xnet_t_error=yes
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424ac_cv_lib_xnet_t_error=no
5425fi
5426rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428LIBS=$ac_check_lib_save_LIBS
5429fi
5430echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
5431echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
5432if test $ac_cv_lib_xnet_t_error = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434#define HAVE_LIBXNET 1
5435_ACEOF
5436
5437 LIBS="-lxnet $LIBS"
5438
5439else
5440 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
5441echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
5442 { (exit 1); exit 1; }; }
5443fi
5444
5445
5446 # next, we define all of the options specific to major releases
5447 case "$host" in
5448 *-*-hpux10*)
5449 if test -z "$GCC"; then
5450 CFLAGS="$CFLAGS -Ae"
5451 fi
5452 ;;
5453 *-*-hpux11*)
5454 cat >>confdefs.h <<\_ACEOF
5455#define PAM_SUN_CODEBASE 1
5456_ACEOF
5457
5458 cat >>confdefs.h <<\_ACEOF
5459#define DISABLE_UTMP 1
5460_ACEOF
5461
5462
5463cat >>confdefs.h <<\_ACEOF
5464#define USE_BTMP 1
5465_ACEOF
5466
5467 check_for_hpux_broken_getaddrinfo=1
5468 check_for_conflicting_getspnam=1
5469 ;;
5470 esac
5471
5472 # lastly, we define options specific to minor releases
5473 case "$host" in
5474 *-*-hpux10.26)
5475 cat >>confdefs.h <<\_ACEOF
5476#define HAVE_SECUREWARE 1
5477_ACEOF
5478
5479 disable_ptmx_check=yes
5480 LIBS="$LIBS -lsecpw"
5481 ;;
5482 esac
5483 ;;
5484*-*-irix5*)
5485 PATH="$PATH:/usr/etc"
5486 cat >>confdefs.h <<\_ACEOF
5487#define BROKEN_INET_NTOA 1
5488_ACEOF
5489
5490 cat >>confdefs.h <<\_ACEOF
5491#define SETEUID_BREAKS_SETUID 1
5492_ACEOF
5493
5494 cat >>confdefs.h <<\_ACEOF
5495#define BROKEN_SETREUID 1
5496_ACEOF
5497
5498 cat >>confdefs.h <<\_ACEOF
5499#define BROKEN_SETREGID 1
5500_ACEOF
5501
5502 cat >>confdefs.h <<\_ACEOF
5503#define WITH_ABBREV_NO_TTY 1
5504_ACEOF
5505
5506 cat >>confdefs.h <<\_ACEOF
5507#define LOCKED_PASSWD_STRING "*LK*"
5508_ACEOF
5509
5510 ;;
5511*-*-irix6*)
5512 PATH="$PATH:/usr/etc"
5513 cat >>confdefs.h <<\_ACEOF
5514#define WITH_IRIX_ARRAY 1
5515_ACEOF
5516
5517 cat >>confdefs.h <<\_ACEOF
5518#define WITH_IRIX_PROJECT 1
5519_ACEOF
5520
5521 cat >>confdefs.h <<\_ACEOF
5522#define WITH_IRIX_AUDIT 1
5523_ACEOF
5524
5525 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
5526echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
5527if test "${ac_cv_func_jlimit_startjob+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530 cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h. */
5536/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
5537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5538#define jlimit_startjob innocuous_jlimit_startjob
5539
5540/* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char jlimit_startjob (); below.
5542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 <limits.h> exists even on freestanding compilers. */
5544
5545#ifdef __STDC__
5546# include <limits.h>
5547#else
5548# include <assert.h>
5549#endif
5550
5551#undef jlimit_startjob
5552
5553/* Override any gcc2 internal prototype to avoid an error. */
5554#ifdef __cplusplus
5555extern "C"
5556{
5557#endif
5558/* We use char because int might match the return type of a gcc2
5559 builtin and then its argument prototype would still apply. */
5560char jlimit_startjob ();
5561/* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
5565choke me
5566#else
5567char (*f) () = jlimit_startjob;
5568#endif
5569#ifdef __cplusplus
5570}
5571#endif
5572
5573int
5574main ()
5575{
5576return f != jlimit_startjob;
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext conftest$ac_exeext
5582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_func_jlimit_startjob=yes
5604else
5605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608ac_cv_func_jlimit_startjob=no
5609fi
5610rm -f conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612fi
5613echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
5614echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
5615if test $ac_cv_func_jlimit_startjob = yes; then
5616 cat >>confdefs.h <<\_ACEOF
5617#define WITH_IRIX_JOBS 1
5618_ACEOF
5619
5620fi
5621
5622 cat >>confdefs.h <<\_ACEOF
5623#define BROKEN_INET_NTOA 1
5624_ACEOF
5625
5626 cat >>confdefs.h <<\_ACEOF
5627#define SETEUID_BREAKS_SETUID 1
5628_ACEOF
5629
5630 cat >>confdefs.h <<\_ACEOF
5631#define BROKEN_SETREUID 1
5632_ACEOF
5633
5634 cat >>confdefs.h <<\_ACEOF
5635#define BROKEN_SETREGID 1
5636_ACEOF
5637
5638 cat >>confdefs.h <<\_ACEOF
5639#define BROKEN_UPDWTMPX 1
5640_ACEOF
5641
5642 cat >>confdefs.h <<\_ACEOF
5643#define WITH_ABBREV_NO_TTY 1
5644_ACEOF
5645
5646 cat >>confdefs.h <<\_ACEOF
5647#define LOCKED_PASSWD_STRING "*LK*"
5648_ACEOF
5649
5650 ;;
5651*-*-linux*)
5652 no_dev_ptmx=1
5653 check_for_libcrypt_later=1
5654 check_for_openpty_ctty_bug=1
5655 cat >>confdefs.h <<\_ACEOF
5656#define DONT_TRY_OTHER_AF 1
5657_ACEOF
5658
5659 cat >>confdefs.h <<\_ACEOF
5660#define PAM_TTY_KLUDGE 1
5661_ACEOF
5662
5663 cat >>confdefs.h <<\_ACEOF
5664#define LOCKED_PASSWD_PREFIX "!"
5665_ACEOF
5666
5667 cat >>confdefs.h <<\_ACEOF
5668#define SPT_TYPE SPT_REUSEARGV
5669_ACEOF
5670
5671 cat >>confdefs.h <<\_ACEOF
5672#define LINK_OPNOTSUPP_ERRNO EPERM
5673_ACEOF
5674
5675
5676cat >>confdefs.h <<\_ACEOF
5677#define _PATH_BTMP "/var/log/btmp"
5678_ACEOF
5679
5680
5681cat >>confdefs.h <<\_ACEOF
5682#define USE_BTMP 1
5683_ACEOF
5684
5685 inet6_default_4in6=yes
5686 case `uname -r` in
5687 1.*|2.0.*)
5688 cat >>confdefs.h <<\_ACEOF
5689#define BROKEN_CMSG_TYPE 1
5690_ACEOF
5691
5692 ;;
5693 esac
5694 ;;
5695mips-sony-bsd|mips-sony-newsos4)
5696
5697cat >>confdefs.h <<\_ACEOF
5698#define NEED_SETPRGP
5699_ACEOF
5700
5701 SONY=1
5702 ;;
5703*-*-netbsd*)
5704 check_for_libcrypt_before=1
5705 if test "x$withval" != "xno" ; then
5706 need_dash_r=1
5707 fi
5708 ;;
5709*-*-freebsd*)
5710 check_for_libcrypt_later=1
5711 ;;
5712*-*-bsdi*)
5713 cat >>confdefs.h <<\_ACEOF
5714#define SETEUID_BREAKS_SETUID 1
5715_ACEOF
5716
5717 cat >>confdefs.h <<\_ACEOF
5718#define BROKEN_SETREUID 1
5719_ACEOF
5720
5721 cat >>confdefs.h <<\_ACEOF
5722#define BROKEN_SETREGID 1
5723_ACEOF
5724
5725 ;;
5726*-next-*)
5727 conf_lastlog_location="/usr/adm/lastlog"
5728 conf_utmp_location=/etc/utmp
5729 conf_wtmp_location=/usr/adm/wtmp
5730 MAIL=/usr/spool/mail
5731 cat >>confdefs.h <<\_ACEOF
5732#define HAVE_NEXT 1
5733_ACEOF
5734
5735 cat >>confdefs.h <<\_ACEOF
5736#define BROKEN_REALPATH 1
5737_ACEOF
5738
5739 cat >>confdefs.h <<\_ACEOF
5740#define USE_PIPES 1
5741_ACEOF
5742
5743 cat >>confdefs.h <<\_ACEOF
5744#define BROKEN_SAVED_UIDS 1
5745_ACEOF
5746
5747 ;;
5748*-*-openbsd*)
5749
5750cat >>confdefs.h <<\_ACEOF
5751#define HAVE_ATTRIBUTE__SENTINEL__ 1
5752_ACEOF
5753
5754 ;;
5755*-*-solaris*)
5756 if test "x$withval" != "xno" ; then
5757 need_dash_r=1
5758 fi
5759 cat >>confdefs.h <<\_ACEOF
5760#define PAM_SUN_CODEBASE 1
5761_ACEOF
5762
5763 cat >>confdefs.h <<\_ACEOF
5764#define LOGIN_NEEDS_UTMPX 1
5765_ACEOF
5766
5767 cat >>confdefs.h <<\_ACEOF
5768#define LOGIN_NEEDS_TERM 1
5769_ACEOF
5770
5771 cat >>confdefs.h <<\_ACEOF
5772#define PAM_TTY_KLUDGE 1
5773_ACEOF
5774
5775 cat >>confdefs.h <<\_ACEOF
5776#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
5777_ACEOF
5778
5779 cat >>confdefs.h <<\_ACEOF
5780#define LOCKED_PASSWD_STRING "*LK*"
5781_ACEOF
5782
5783 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
5784 cat >>confdefs.h <<\_ACEOF
5785#define SSHD_ACQUIRES_CTTY 1
5786_ACEOF
5787
5788 external_path_file=/etc/default/login
5789 # hardwire lastlog location (can't detect it on some versions)
5790 conf_lastlog_location="/var/adm/lastlog"
5791 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
5792echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
5793 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
5794 if test "$sol2ver" -ge 8; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 cat >>confdefs.h <<\_ACEOF
5798#define DISABLE_UTMP 1
5799_ACEOF
5800
5801 cat >>confdefs.h <<\_ACEOF
5802#define DISABLE_WTMP 1
5803_ACEOF
5804
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808 fi
5809 ;;
5810*-*-sunos4*)
5811 CPPFLAGS="$CPPFLAGS -DSUNOS4"
5812
5813for ac_func in getpwanam
5814do
5815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5816echo "$as_me:$LINENO: checking for $ac_func" >&5
5817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5818if eval "test \"\${$as_ac_var+set}\" = set"; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5829#define $ac_func innocuous_$ac_func
5830
5831/* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char $ac_func (); below.
5833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 <limits.h> exists even on freestanding compilers. */
5835
5836#ifdef __STDC__
5837# include <limits.h>
5838#else
5839# include <assert.h>
5840#endif
5841
5842#undef $ac_func
5843
5844/* Override any gcc2 internal prototype to avoid an error. */
5845#ifdef __cplusplus
5846extern "C"
5847{
5848#endif
5849/* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5851char $ac_func ();
5852/* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856choke me
5857#else
5858char (*f) () = $ac_func;
5859#endif
5860#ifdef __cplusplus
5861}
5862#endif
5863
5864int
5865main ()
5866{
5867return f != $ac_func;
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872rm -f conftest.$ac_objext conftest$ac_exeext
5873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest$ac_exeext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 eval "$as_ac_var=yes"
5895else
5896 echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899eval "$as_ac_var=no"
5900fi
5901rm -f conftest.err conftest.$ac_objext \
5902 conftest$ac_exeext conftest.$ac_ext
5903fi
5904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5906if test `eval echo '${'$as_ac_var'}'` = yes; then
5907 cat >>confdefs.h <<_ACEOF
5908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912done
5913
5914 cat >>confdefs.h <<\_ACEOF
5915#define PAM_SUN_CODEBASE 1
5916_ACEOF
5917
5918 conf_utmp_location=/etc/utmp
5919 conf_wtmp_location=/var/adm/wtmp
5920 conf_lastlog_location=/var/adm/lastlog
5921 cat >>confdefs.h <<\_ACEOF
5922#define USE_PIPES 1
5923_ACEOF
5924
5925 ;;
5926*-ncr-sysv*)
5927 LIBS="$LIBS -lc89"
5928 cat >>confdefs.h <<\_ACEOF
5929#define USE_PIPES 1
5930_ACEOF
5931
5932 cat >>confdefs.h <<\_ACEOF
5933#define SSHD_ACQUIRES_CTTY 1
5934_ACEOF
5935
5936 cat >>confdefs.h <<\_ACEOF
5937#define SETEUID_BREAKS_SETUID 1
5938_ACEOF
5939
5940 cat >>confdefs.h <<\_ACEOF
5941#define BROKEN_SETREUID 1
5942_ACEOF
5943
5944 cat >>confdefs.h <<\_ACEOF
5945#define BROKEN_SETREGID 1
5946_ACEOF
5947
5948 ;;
5949*-sni-sysv*)
5950 # /usr/ucblib MUST NOT be searched on ReliantUNIX
5951
5952echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5953echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5954if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957 ac_check_lib_save_LIBS=$LIBS
5958LIBS="-ldl $LIBS"
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
5966/* Override any gcc2 internal prototype to avoid an error. */
5967#ifdef __cplusplus
5968extern "C"
5969#endif
5970/* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5972char dlsym ();
5973int
5974main ()
5975{
5976dlsym ();
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981rm -f conftest.$ac_objext conftest$ac_exeext
5982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_lib_dl_dlsym=yes
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008ac_cv_lib_dl_dlsym=no
6009fi
6010rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6012LIBS=$ac_check_lib_save_LIBS
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
6015echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6016if test $ac_cv_lib_dl_dlsym = yes; then
6017 cat >>confdefs.h <<_ACEOF
6018#define HAVE_LIBDL 1
6019_ACEOF
6020
6021 LIBS="-ldl $LIBS"
6022
6023fi
6024
6025 # -lresolv needs to be at then end of LIBS or DNS lookups break
6026 echo "$as_me:$LINENO: checking for resolv in -lres_query" >&5
6027echo $ECHO_N "checking for resolv in -lres_query... $ECHO_C" >&6
6028if test "${ac_cv_lib_res_query_resolv+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031 ac_check_lib_save_LIBS=$LIBS
6032LIBS="-lres_query $LIBS"
6033cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
6039
6040/* Override any gcc2 internal prototype to avoid an error. */
6041#ifdef __cplusplus
6042extern "C"
6043#endif
6044/* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6046char resolv ();
6047int
6048main ()
6049{
6050resolv ();
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext conftest$ac_exeext
6056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6057 (eval $ac_link) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag"
6065 || test ! -s conftest.err'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_lib_res_query_resolv=yes
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082ac_cv_lib_res_query_resolv=no
6083fi
6084rm -f conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6086LIBS=$ac_check_lib_save_LIBS
6087fi
6088echo "$as_me:$LINENO: result: $ac_cv_lib_res_query_resolv" >&5
6089echo "${ECHO_T}$ac_cv_lib_res_query_resolv" >&6
6090if test $ac_cv_lib_res_query_resolv = yes; then
6091 LIBS="$LIBS -lresolv"
6092fi
6093
6094 IPADDR_IN_DISPLAY=yes
6095 cat >>confdefs.h <<\_ACEOF
6096#define USE_PIPES 1
6097_ACEOF
6098
6099 cat >>confdefs.h <<\_ACEOF
6100#define IP_TOS_IS_BROKEN 1
6101_ACEOF
6102
6103 cat >>confdefs.h <<\_ACEOF
6104#define SETEUID_BREAKS_SETUID 1
6105_ACEOF
6106
6107 cat >>confdefs.h <<\_ACEOF
6108#define BROKEN_SETREUID 1
6109_ACEOF
6110
6111 cat >>confdefs.h <<\_ACEOF
6112#define BROKEN_SETREGID 1
6113_ACEOF
6114
6115 cat >>confdefs.h <<\_ACEOF
6116#define SSHD_ACQUIRES_CTTY 1
6117_ACEOF
6118
6119 external_path_file=/etc/default/login
6120 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
6121 # Attention: always take care to bind libsocket and libnsl before libc,
6122 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
6123 ;;
6124# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
6125*-*-sysv4.2*)
6126 cat >>confdefs.h <<\_ACEOF
6127#define USE_PIPES 1
6128_ACEOF
6129
6130 cat >>confdefs.h <<\_ACEOF
6131#define SETEUID_BREAKS_SETUID 1
6132_ACEOF
6133
6134 cat >>confdefs.h <<\_ACEOF
6135#define BROKEN_SETREUID 1
6136_ACEOF
6137
6138 cat >>confdefs.h <<\_ACEOF
6139#define BROKEN_SETREGID 1
6140_ACEOF
6141
6142
6143cat >>confdefs.h <<\_ACEOF
6144#define PASSWD_NEEDS_USERNAME 1
6145_ACEOF
6146
6147 ;;
6148# UnixWare 7.x, OpenUNIX 8
6149*-*-sysv5*)
6150 check_for_libcrypt_later=1
6151
6152cat >>confdefs.h <<\_ACEOF
6153#define UNIXWARE_LONG_PASSWORDS 1
6154_ACEOF
6155
6156 cat >>confdefs.h <<\_ACEOF
6157#define USE_PIPES 1
6158_ACEOF
6159
6160 cat >>confdefs.h <<\_ACEOF
6161#define SETEUID_BREAKS_SETUID 1
6162_ACEOF
6163
6164 cat >>confdefs.h <<\_ACEOF
6165#define BROKEN_SETREUID 1
6166_ACEOF
6167
6168 cat >>confdefs.h <<\_ACEOF
6169#define BROKEN_SETREGID 1
6170_ACEOF
6171
6172
6173cat >>confdefs.h <<\_ACEOF
6174#define PASSWD_NEEDS_USERNAME 1
6175_ACEOF
6176
6177 case "$host" in
6178 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
6179 TEST_SHELL=/u95/bin/sh
6180
6181cat >>confdefs.h <<\_ACEOF
6182#define BROKEN_LIBIAF 1
6183_ACEOF
6184
6185 ;;
6186 esac
6187 ;;
6188*-*-sysv*)
6189 ;;
6190# SCO UNIX and OEM versions of SCO UNIX
6191*-*-sco3.2v4*)
6192 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
6193echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
6194 { (exit 1); exit 1; }; }
6195 ;;
6196# SCO OpenServer 5.x
6197*-*-sco3.2v5*)
6198 if test -z "$GCC"; then
6199 CFLAGS="$CFLAGS -belf"
6200 fi
6201 LIBS="$LIBS -lprot -lx -ltinfo -lm"
6202 no_dev_ptmx=1
6203 cat >>confdefs.h <<\_ACEOF
6204#define USE_PIPES 1
6205_ACEOF
6206
6207 cat >>confdefs.h <<\_ACEOF
6208#define HAVE_SECUREWARE 1
6209_ACEOF
6210
6211 cat >>confdefs.h <<\_ACEOF
6212#define DISABLE_SHADOW 1
6213_ACEOF
6214
6215 cat >>confdefs.h <<\_ACEOF
6216#define DISABLE_FD_PASSING 1
6217_ACEOF
6218
6219 cat >>confdefs.h <<\_ACEOF
6220#define SETEUID_BREAKS_SETUID 1
6221_ACEOF
6222
6223 cat >>confdefs.h <<\_ACEOF
6224#define BROKEN_SETREUID 1
6225_ACEOF
6226
6227 cat >>confdefs.h <<\_ACEOF
6228#define BROKEN_SETREGID 1
6229_ACEOF
6230
6231 cat >>confdefs.h <<\_ACEOF
6232#define WITH_ABBREV_NO_TTY 1
6233_ACEOF
6234
6235 cat >>confdefs.h <<\_ACEOF
6236#define BROKEN_UPDWTMPX 1
6237_ACEOF
6238
6239
6240cat >>confdefs.h <<\_ACEOF
6241#define PASSWD_NEEDS_USERNAME 1
6242_ACEOF
6243
6244
6245
6246for ac_func in getluid setluid
6247do
6248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6249echo "$as_me:$LINENO: checking for $ac_func" >&5
6250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6251if eval "test \"\${$as_ac_var+set}\" = set"; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254 cat >conftest.$ac_ext <<_ACEOF
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
6259/* end confdefs.h. */
6260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6262#define $ac_func innocuous_$ac_func
6263
6264/* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func (); below.
6266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 <limits.h> exists even on freestanding compilers. */
6268
6269#ifdef __STDC__
6270# include <limits.h>
6271#else
6272# include <assert.h>
6273#endif
6274
6275#undef $ac_func
6276
6277/* Override any gcc2 internal prototype to avoid an error. */
6278#ifdef __cplusplus
6279extern "C"
6280{
6281#endif
6282/* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6284char $ac_func ();
6285/* The GNU C library defines this for functions which it implements
6286 to always fail with ENOSYS. Some functions are actually named
6287 something starting with __ and the normal name is an alias. */
6288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6289choke me
6290#else
6291char (*f) () = $ac_func;
6292#endif
6293#ifdef __cplusplus
6294}
6295#endif
6296
6297int
6298main ()
6299{
6300return f != $ac_func;
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext conftest$ac_exeext
6306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 eval "$as_ac_var=yes"
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332eval "$as_ac_var=no"
6333fi
6334rm -f conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6336fi
6337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6339if test `eval echo '${'$as_ac_var'}'` = yes; then
6340 cat >>confdefs.h <<_ACEOF
6341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6342_ACEOF
6343
6344fi
6345done
6346
6347 MANTYPE=man
6348 TEST_SHELL=ksh
6349 ;;
6350*-*-unicosmk*)
6351 cat >>confdefs.h <<\_ACEOF
6352#define NO_SSH_LASTLOG 1
6353_ACEOF
6354
6355 cat >>confdefs.h <<\_ACEOF
6356#define SETEUID_BREAKS_SETUID 1
6357_ACEOF
6358
6359 cat >>confdefs.h <<\_ACEOF
6360#define BROKEN_SETREUID 1
6361_ACEOF
6362
6363 cat >>confdefs.h <<\_ACEOF
6364#define BROKEN_SETREGID 1
6365_ACEOF
6366
6367 cat >>confdefs.h <<\_ACEOF
6368#define USE_PIPES 1
6369_ACEOF
6370
6371 cat >>confdefs.h <<\_ACEOF
6372#define DISABLE_FD_PASSING 1
6373_ACEOF
6374
6375 LDFLAGS="$LDFLAGS"
6376 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6377 MANTYPE=cat
6378 ;;
6379*-*-unicosmp*)
6380 cat >>confdefs.h <<\_ACEOF
6381#define SETEUID_BREAKS_SETUID 1
6382_ACEOF
6383
6384 cat >>confdefs.h <<\_ACEOF
6385#define BROKEN_SETREUID 1
6386_ACEOF
6387
6388 cat >>confdefs.h <<\_ACEOF
6389#define BROKEN_SETREGID 1
6390_ACEOF
6391
6392 cat >>confdefs.h <<\_ACEOF
6393#define WITH_ABBREV_NO_TTY 1
6394_ACEOF
6395
6396 cat >>confdefs.h <<\_ACEOF
6397#define USE_PIPES 1
6398_ACEOF
6399
6400 cat >>confdefs.h <<\_ACEOF
6401#define DISABLE_FD_PASSING 1
6402_ACEOF
6403
6404 LDFLAGS="$LDFLAGS"
6405 LIBS="$LIBS -lgen -lacid -ldb"
6406 MANTYPE=cat
6407 ;;
6408*-*-unicos*)
6409 cat >>confdefs.h <<\_ACEOF
6410#define SETEUID_BREAKS_SETUID 1
6411_ACEOF
6412
6413 cat >>confdefs.h <<\_ACEOF
6414#define BROKEN_SETREUID 1
6415_ACEOF
6416
6417 cat >>confdefs.h <<\_ACEOF
6418#define BROKEN_SETREGID 1
6419_ACEOF
6420
6421 cat >>confdefs.h <<\_ACEOF
6422#define USE_PIPES 1
6423_ACEOF
6424
6425 cat >>confdefs.h <<\_ACEOF
6426#define DISABLE_FD_PASSING 1
6427_ACEOF
6428
6429 cat >>confdefs.h <<\_ACEOF
6430#define NO_SSH_LASTLOG 1
6431_ACEOF
6432
6433 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6434 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6435 MANTYPE=cat
6436 ;;
6437*-dec-osf*)
6438 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
6439echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
6440 no_osfsia=""
6441
6442# Check whether --with-osfsia or --without-osfsia was given.
6443if test "${with_osfsia+set}" = set; then
6444 withval="$with_osfsia"
6445
6446 if test "x$withval" = "xno" ; then
6447 echo "$as_me:$LINENO: result: disabled" >&5
6448echo "${ECHO_T}disabled" >&6
6449 no_osfsia=1
6450 fi
6451
6452fi;
6453 if test -z "$no_osfsia" ; then
6454 if test -f /etc/sia/matrix.conf; then
6455 echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6
6457 cat >>confdefs.h <<\_ACEOF
6458#define HAVE_OSF_SIA 1
6459_ACEOF
6460
6461 cat >>confdefs.h <<\_ACEOF
6462#define DISABLE_LOGIN 1
6463_ACEOF
6464
6465 cat >>confdefs.h <<\_ACEOF
6466#define DISABLE_FD_PASSING 1
6467_ACEOF
6468
6469 LIBS="$LIBS -lsecurity -ldb -lm -laud"
6470 else
6471 echo "$as_me:$LINENO: result: no" >&5
6472echo "${ECHO_T}no" >&6
6473 cat >>confdefs.h <<\_ACEOF
6474#define LOCKED_PASSWD_SUBSTR "Nologin"
6475_ACEOF
6476
6477 fi
6478 fi
6479 cat >>confdefs.h <<\_ACEOF
6480#define BROKEN_GETADDRINFO 1
6481_ACEOF
6482
6483 cat >>confdefs.h <<\_ACEOF
6484#define SETEUID_BREAKS_SETUID 1
6485_ACEOF
6486
6487 cat >>confdefs.h <<\_ACEOF
6488#define BROKEN_SETREUID 1
6489_ACEOF
6490
6491 cat >>confdefs.h <<\_ACEOF
6492#define BROKEN_SETREGID 1
6493_ACEOF
6494
6495 ;;
6496
6497*-*-nto-qnx)
6498 cat >>confdefs.h <<\_ACEOF
6499#define USE_PIPES 1
6500_ACEOF
6501
6502 cat >>confdefs.h <<\_ACEOF
6503#define NO_X11_UNIX_SOCKETS 1
6504_ACEOF
6505
6506 cat >>confdefs.h <<\_ACEOF
6507#define MISSING_NFDBITS 1
6508_ACEOF
6509
6510 cat >>confdefs.h <<\_ACEOF
6511#define MISSING_HOWMANY 1
6512_ACEOF
6513
6514 cat >>confdefs.h <<\_ACEOF
6515#define MISSING_FD_MASK 1
6516_ACEOF
6517
6518 ;;
6519
6520*-*-ultrix*)
6521
6522cat >>confdefs.h <<\_ACEOF
6523#define BROKEN_GETGROUPS
6524_ACEOF
6525
6526
6527cat >>confdefs.h <<\_ACEOF
6528#define BROKEN_MMAP
6529_ACEOF
6530
6531
6532cat >>confdefs.h <<\_ACEOF
6533#define NEED_SETPRGP
6534_ACEOF
6535
6536
6537cat >>confdefs.h <<\_ACEOF
6538#define HAVE_SYS_SYSLOG_H 1
6539_ACEOF
6540
6541 ;;
6542
6543*-*-lynxos)
6544 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
6545 cat >>confdefs.h <<\_ACEOF
6546#define MISSING_HOWMANY 1
6547_ACEOF
6548
6549
6550cat >>confdefs.h <<\_ACEOF
6551#define BROKEN_SETVBUF 1
6552_ACEOF
6553
6554 ;;
6555esac
6556
6557# Allow user to specify flags
6558
6559# Check whether --with-cflags or --without-cflags was given.
6560if test "${with_cflags+set}" = set; then
6561 withval="$with_cflags"
6562
6563 if test -n "$withval" && test "x$withval" != "xno" && \
6564 test "x${withval}" != "xyes"; then
6565 CFLAGS="$CFLAGS $withval"
6566 fi
6567
6568
6569fi;
6570
6571# Check whether --with-cppflags or --without-cppflags was given.
6572if test "${with_cppflags+set}" = set; then
6573 withval="$with_cppflags"
6574
6575 if test -n "$withval" && test "x$withval" != "xno" && \
6576 test "x${withval}" != "xyes"; then
6577 CPPFLAGS="$CPPFLAGS $withval"
6578 fi
6579
6580
6581fi;
6582
6583# Check whether --with-ldflags or --without-ldflags was given.
6584if test "${with_ldflags+set}" = set; then
6585 withval="$with_ldflags"
6586
6587 if test -n "$withval" && test "x$withval" != "xno" && \
6588 test "x${withval}" != "xyes"; then
6589 LDFLAGS="$LDFLAGS $withval"
6590 fi
6591
6592
6593fi;
6594
6595# Check whether --with-libs or --without-libs was given.
6596if test "${with_libs+set}" = set; then
6597 withval="$with_libs"
6598
6599 if test -n "$withval" && test "x$withval" != "xno" && \
6600 test "x${withval}" != "xyes"; then
6601 LIBS="$LIBS $withval"
6602 fi
6603
6604
6605fi;
6606
6607# Check whether --with-Werror or --without-Werror was given.
6608if test "${with_Werror+set}" = set; then
6609 withval="$with_Werror"
6610
6611 if test -n "$withval" && test "x$withval" != "xno"; then
6612 werror_flags="-Werror"
6613 if "x${withval}" != "xyes"; then
6614 werror_flags="$withval"
6615 fi
6616 fi
6617
6618
6619fi;
6620
6621echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
6622echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
6623if test "$cross_compiling" = yes; then
6624 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
6625echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
6626
6627else
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634
6635#include <stdio.h>
6636int main(){exit(0);}
6637
6638_ACEOF
6639rm -f conftest$ac_exeext
6640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 echo "$as_me:$LINENO: result: yes" >&5
6651echo "${ECHO_T}yes" >&6
6652else
6653 echo "$as_me: program exited with status $ac_status" >&5
6654echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657( exit $ac_status )
6658
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
6661 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
6662echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
6663 { (exit 1); exit 1; }; }
6664
6665fi
6666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6667fi
6668
6669
6670echo "$as_me:$LINENO: checking for egrep" >&5
6671echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6672if test "${ac_cv_prog_egrep+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6676 then ac_cv_prog_egrep='grep -E'
6677 else ac_cv_prog_egrep='egrep'
6678 fi
6679fi
6680echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6681echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6682 EGREP=$ac_cv_prog_egrep
6683
6684
6685echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6687if test "${ac_cv_header_stdc+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696#include <stdlib.h>
6697#include <stdarg.h>
6698#include <string.h>
6699#include <float.h>
6700
6701int
6702main ()
6703{
6704
6705 ;
6706 return 0;
6707}
6708_ACEOF
6709rm -f conftest.$ac_objext
6710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_header_stdc=yes
6732else
6733 echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736ac_cv_header_stdc=no
6737fi
6738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6739
6740if test $ac_cv_header_stdc = yes; then
6741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6742 cat >conftest.$ac_ext <<_ACEOF
6743/* confdefs.h. */
6744_ACEOF
6745cat confdefs.h >>conftest.$ac_ext
6746cat >>conftest.$ac_ext <<_ACEOF
6747/* end confdefs.h. */
6748#include <string.h>
6749
6750_ACEOF
6751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "memchr" >/dev/null 2>&1; then
6753 :
6754else
6755 ac_cv_header_stdc=no
6756fi
6757rm -f conftest*
6758
6759fi
6760
6761if test $ac_cv_header_stdc = yes; then
6762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6763 cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h. */
6769#include <stdlib.h>
6770
6771_ACEOF
6772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773 $EGREP "free" >/dev/null 2>&1; then
6774 :
6775else
6776 ac_cv_header_stdc=no
6777fi
6778rm -f conftest*
6779
6780fi
6781
6782if test $ac_cv_header_stdc = yes; then
6783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6784 if test "$cross_compiling" = yes; then
6785 :
6786else
6787 cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793#include <ctype.h>
6794#if ((' ' & 0x0FF) == 0x020)
6795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6797#else
6798# define ISLOWER(c) \
6799 (('a' <= (c) && (c) <= 'i') \
6800 || ('j' <= (c) && (c) <= 'r') \
6801 || ('s' <= (c) && (c) <= 'z'))
6802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6803#endif
6804
6805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806int
6807main ()
6808{
6809 int i;
6810 for (i = 0; i < 256; i++)
6811 if (XOR (islower (i), ISLOWER (i))
6812 || toupper (i) != TOUPPER (i))
6813 exit(2);
6814 exit (0);
6815}
6816_ACEOF
6817rm -f conftest$ac_exeext
6818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819 (eval $ac_link) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 :
6829else
6830 echo "$as_me: program exited with status $ac_status" >&5
6831echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834( exit $ac_status )
6835ac_cv_header_stdc=no
6836fi
6837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6838fi
6839fi
6840fi
6841echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6842echo "${ECHO_T}$ac_cv_header_stdc" >&6
6843if test $ac_cv_header_stdc = yes; then
6844
6845cat >>confdefs.h <<\_ACEOF
6846#define STDC_HEADERS 1
6847_ACEOF
6848
6849fi
6850
6851# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6862 inttypes.h stdint.h unistd.h
6863do
6864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865echo "$as_me:$LINENO: checking for $ac_header" >&5
6866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
6876$ac_includes_default
6877
6878#include <$ac_header>
6879_ACEOF
6880rm -f conftest.$ac_objext
6881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -z "$ac_c_werror_flag"
6890 || test ! -s conftest.err'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; } &&
6896 { ac_try='test -s conftest.$ac_objext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 eval "$as_ac_Header=yes"
6903else
6904 echo "$as_me: failed program was:" >&5
6905sed 's/^/| /' conftest.$ac_ext >&5
6906
6907eval "$as_ac_Header=no"
6908fi
6909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910fi
6911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6913if test `eval echo '${'$as_ac_Header'}'` = yes; then
6914 cat >>confdefs.h <<_ACEOF
6915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6916_ACEOF
6917
6918fi
6919
6920done
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981for ac_header in \
6982 bstring.h \
6983 crypt.h \
6984 dirent.h \
6985 endian.h \
6986 features.h \
6987 floatingpoint.h \
6988 getopt.h \
6989 glob.h \
6990 ia.h \
6991 iaf.h \
6992 lastlog.h \
6993 limits.h \
6994 login.h \
6995 login_cap.h \
6996 maillock.h \
6997 ndir.h \
6998 netdb.h \
6999 netgroup.h \
7000 netinet/in_systm.h \
7001 pam/pam_appl.h \
7002 paths.h \
7003 pty.h \
7004 readpassphrase.h \
7005 rpc/types.h \
7006 security/pam_appl.h \
7007 shadow.h \
7008 stddef.h \
7009 stdint.h \
7010 string.h \
7011 strings.h \
7012 sys/audit.h \
7013 sys/bitypes.h \
7014 sys/bsdtty.h \
7015 sys/cdefs.h \
7016 sys/dir.h \
7017 sys/mman.h \
7018 sys/ndir.h \
7019 sys/prctl.h \
7020 sys/pstat.h \
7021 sys/select.h \
7022 sys/stat.h \
7023 sys/stream.h \
7024 sys/stropts.h \
7025 sys/strtio.h \
7026 sys/sysmacros.h \
7027 sys/time.h \
7028 sys/timers.h \
7029 sys/un.h \
7030 time.h \
7031 tmpdir.h \
7032 ttyent.h \
7033 unistd.h \
7034 usersec.h \
7035 util.h \
7036 utime.h \
7037 utmp.h \
7038 utmpx.h \
7039 vis.h \
7040
7041do
7042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo "$as_me:$LINENO: checking for $ac_header" >&5
7045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048fi
7049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7051else
7052 # Is the header compilable?
7053echo "$as_me:$LINENO: checking $ac_header usability" >&5
7054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7055cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061$ac_includes_default
7062#include <$ac_header>
7063_ACEOF
7064rm -f conftest.$ac_objext
7065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_header_compiler=yes
7087else
7088 echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091ac_header_compiler=no
7092fi
7093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095echo "${ECHO_T}$ac_header_compiler" >&6
7096
7097# Is the header present?
7098echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7100cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106#include <$ac_header>
7107_ACEOF
7108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_c_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7119 else
7120 ac_cpp_err=
7121 fi
7122else
7123 ac_cpp_err=yes
7124fi
7125if test -z "$ac_cpp_err"; then
7126 ac_header_preproc=yes
7127else
7128 echo "$as_me: failed program was:" >&5
7129sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 ac_header_preproc=no
7132fi
7133rm -f conftest.err conftest.$ac_ext
7134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135echo "${ECHO_T}$ac_header_preproc" >&6
7136
7137# So? What about this header?
7138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7139 yes:no: )
7140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7144 ac_header_preproc=yes
7145 ;;
7146 no:yes:* )
7147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7159 (
7160 cat <<\_ASBOX
7161## ------------------------------------------- ##
7162## Report this to openssh-unix-dev@mindrot.org ##
7163## ------------------------------------------- ##
7164_ASBOX
7165 ) |
7166 sed "s/^/$as_me: WARNING: /" >&2
7167 ;;
7168esac
7169echo "$as_me:$LINENO: checking for $ac_header" >&5
7170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7171if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174 eval "$as_ac_Header=\$ac_header_preproc"
7175fi
7176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7178
7179fi
7180if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181 cat >>confdefs.h <<_ACEOF
7182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183_ACEOF
7184
7185fi
7186
7187done
7188
7189
7190# sys/ptms.h requires sys/stream.h to be included first on Solaris
7191
7192for ac_header in sys/ptms.h
7193do
7194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195echo "$as_me:$LINENO: checking for $ac_header" >&5
7196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206
7207#ifdef HAVE_SYS_STREAM_H
7208# include <sys/stream.h>
7209#endif
7210
7211
7212#include <$ac_header>
7213_ACEOF
7214rm -f conftest.$ac_objext
7215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -z "$ac_c_werror_flag"
7224 || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try='test -s conftest.$ac_objext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 eval "$as_ac_Header=yes"
7237else
7238 echo "$as_me: failed program was:" >&5
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
7241eval "$as_ac_Header=no"
7242fi
7243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244fi
7245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7247if test `eval echo '${'$as_ac_Header'}'` = yes; then
7248 cat >>confdefs.h <<_ACEOF
7249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7250_ACEOF
7251
7252fi
7253
7254done
7255
7256
7257# Checks for libraries.
7258echo "$as_me:$LINENO: checking for yp_match" >&5
7259echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
7260if test "${ac_cv_func_yp_match+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263 cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h. */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h. */
7269/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
7270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7271#define yp_match innocuous_yp_match
7272
7273/* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char yp_match (); below.
7275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7276 <limits.h> exists even on freestanding compilers. */
7277
7278#ifdef __STDC__
7279# include <limits.h>
7280#else
7281# include <assert.h>
7282#endif
7283
7284#undef yp_match
7285
7286/* Override any gcc2 internal prototype to avoid an error. */
7287#ifdef __cplusplus
7288extern "C"
7289{
7290#endif
7291/* We use char because int might match the return type of a gcc2
7292 builtin and then its argument prototype would still apply. */
7293char yp_match ();
7294/* The GNU C library defines this for functions which it implements
7295 to always fail with ENOSYS. Some functions are actually named
7296 something starting with __ and the normal name is an alias. */
7297#if defined (__stub_yp_match) || defined (__stub___yp_match)
7298choke me
7299#else
7300char (*f) () = yp_match;
7301#endif
7302#ifdef __cplusplus
7303}
7304#endif
7305
7306int
7307main ()
7308{
7309return f != yp_match;
7310 ;
7311 return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag"
7324 || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try='test -s conftest$ac_exeext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 ac_cv_func_yp_match=yes
7337else
7338 echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_cv_func_yp_match=no
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344 conftest$ac_exeext conftest.$ac_ext
7345fi
7346echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
7347echo "${ECHO_T}$ac_cv_func_yp_match" >&6
7348if test $ac_cv_func_yp_match = yes; then
7349 :
7350else
7351
7352echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
7353echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
7354if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356else
7357 ac_check_lib_save_LIBS=$LIBS
7358LIBS="-lnsl $LIBS"
7359cat >conftest.$ac_ext <<_ACEOF
7360/* confdefs.h. */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h. */
7365
7366/* Override any gcc2 internal prototype to avoid an error. */
7367#ifdef __cplusplus
7368extern "C"
7369#endif
7370/* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7372char yp_match ();
7373int
7374main ()
7375{
7376yp_match ();
7377 ;
7378 return 0;
7379}
7380_ACEOF
7381rm -f conftest.$ac_objext conftest$ac_exeext
7382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try='test -z "$ac_c_werror_flag"
7391 || test ! -s conftest.err'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_cv_lib_nsl_yp_match=yes
7404else
7405 echo "$as_me: failed program was:" >&5
7406sed 's/^/| /' conftest.$ac_ext >&5
7407
7408ac_cv_lib_nsl_yp_match=no
7409fi
7410rm -f conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412LIBS=$ac_check_lib_save_LIBS
7413fi
7414echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
7415echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
7416if test $ac_cv_lib_nsl_yp_match = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418#define HAVE_LIBNSL 1
7419_ACEOF
7420
7421 LIBS="-lnsl $LIBS"
7422
7423fi
7424
7425fi
7426
7427echo "$as_me:$LINENO: checking for setsockopt" >&5
7428echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
7429if test "${ac_cv_func_setsockopt+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
7438/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
7439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7440#define setsockopt innocuous_setsockopt
7441
7442/* System header to define __stub macros and hopefully few prototypes,
7443 which can conflict with char setsockopt (); below.
7444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445 <limits.h> exists even on freestanding compilers. */
7446
7447#ifdef __STDC__
7448# include <limits.h>
7449#else
7450# include <assert.h>
7451#endif
7452
7453#undef setsockopt
7454
7455/* Override any gcc2 internal prototype to avoid an error. */
7456#ifdef __cplusplus
7457extern "C"
7458{
7459#endif
7460/* We use char because int might match the return type of a gcc2
7461 builtin and then its argument prototype would still apply. */
7462char setsockopt ();
7463/* The GNU C library defines this for functions which it implements
7464 to always fail with ENOSYS. Some functions are actually named
7465 something starting with __ and the normal name is an alias. */
7466#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
7467choke me
7468#else
7469char (*f) () = setsockopt;
7470#endif
7471#ifdef __cplusplus
7472}
7473#endif
7474
7475int
7476main ()
7477{
7478return f != setsockopt;
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext conftest$ac_exeext
7484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_func_setsockopt=yes
7506else
7507 echo "$as_me: failed program was:" >&5
7508sed 's/^/| /' conftest.$ac_ext >&5
7509
7510ac_cv_func_setsockopt=no
7511fi
7512rm -f conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514fi
7515echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
7516echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
7517if test $ac_cv_func_setsockopt = yes; then
7518 :
7519else
7520
7521echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
7522echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
7523if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526 ac_check_lib_save_LIBS=$LIBS
7527LIBS="-lsocket $LIBS"
7528cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h. */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h. */
7534
7535/* Override any gcc2 internal prototype to avoid an error. */
7536#ifdef __cplusplus
7537extern "C"
7538#endif
7539/* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7541char setsockopt ();
7542int
7543main ()
7544{
7545setsockopt ();
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext conftest$ac_exeext
7551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -z "$ac_c_werror_flag"
7560 || test ! -s conftest.err'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try='test -s conftest$ac_exeext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 ac_cv_lib_socket_setsockopt=yes
7573else
7574 echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
7577ac_cv_lib_socket_setsockopt=no
7578fi
7579rm -f conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7581LIBS=$ac_check_lib_save_LIBS
7582fi
7583echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
7584echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
7585if test $ac_cv_lib_socket_setsockopt = yes; then
7586 cat >>confdefs.h <<_ACEOF
7587#define HAVE_LIBSOCKET 1
7588_ACEOF
7589
7590 LIBS="-lsocket $LIBS"
7591
7592fi
7593
7594fi
7595
7596
7597
7598for ac_func in dirname
7599do
7600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7601echo "$as_me:$LINENO: checking for $ac_func" >&5
7602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7603if eval "test \"\${$as_ac_var+set}\" = set"; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 cat >conftest.$ac_ext <<_ACEOF
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
7611/* end confdefs.h. */
7612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7614#define $ac_func innocuous_$ac_func
7615
7616/* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func (); below.
7618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7619 <limits.h> exists even on freestanding compilers. */
7620
7621#ifdef __STDC__
7622# include <limits.h>
7623#else
7624# include <assert.h>
7625#endif
7626
7627#undef $ac_func
7628
7629/* Override any gcc2 internal prototype to avoid an error. */
7630#ifdef __cplusplus
7631extern "C"
7632{
7633#endif
7634/* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7636char $ac_func ();
7637/* The GNU C library defines this for functions which it implements
7638 to always fail with ENOSYS. Some functions are actually named
7639 something starting with __ and the normal name is an alias. */
7640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7641choke me
7642#else
7643char (*f) () = $ac_func;
7644#endif
7645#ifdef __cplusplus
7646}
7647#endif
7648
7649int
7650main ()
7651{
7652return f != $ac_func;
7653 ;
7654 return 0;
7655}
7656_ACEOF
7657rm -f conftest.$ac_objext conftest$ac_exeext
7658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 eval "$as_ac_var=yes"
7680else
7681 echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
7684eval "$as_ac_var=no"
7685fi
7686rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688fi
7689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7691if test `eval echo '${'$as_ac_var'}'` = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7694_ACEOF
7695
7696for ac_header in libgen.h
7697do
7698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700 echo "$as_me:$LINENO: checking for $ac_header" >&5
7701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7702if eval "test \"\${$as_ac_Header+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704fi
7705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707else
7708 # Is the header compilable?
7709echo "$as_me:$LINENO: checking $ac_header usability" >&5
7710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7711cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717$ac_includes_default
7718#include <$ac_header>
7719_ACEOF
7720rm -f conftest.$ac_objext
7721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_header_compiler=yes
7743else
7744 echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747ac_header_compiler=no
7748fi
7749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7751echo "${ECHO_T}$ac_header_compiler" >&6
7752
7753# Is the header present?
7754echo "$as_me:$LINENO: checking $ac_header presence" >&5
7755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7756cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h. */
7762#include <$ac_header>
7763_ACEOF
7764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } >/dev/null; then
7772 if test -s conftest.err; then
7773 ac_cpp_err=$ac_c_preproc_warn_flag
7774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7775 else
7776 ac_cpp_err=
7777 fi
7778else
7779 ac_cpp_err=yes
7780fi
7781if test -z "$ac_cpp_err"; then
7782 ac_header_preproc=yes
7783else
7784 echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_header_preproc=no
7788fi
7789rm -f conftest.err conftest.$ac_ext
7790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7791echo "${ECHO_T}$ac_header_preproc" >&6
7792
7793# So? What about this header?
7794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7795 yes:no: )
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7800 ac_header_preproc=yes
7801 ;;
7802 no:yes:* )
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7815 (
7816 cat <<\_ASBOX
7817## ------------------------------------------- ##
7818## Report this to openssh-unix-dev@mindrot.org ##
7819## ------------------------------------------- ##
7820_ASBOX
7821 ) |
7822 sed "s/^/$as_me: WARNING: /" >&2
7823 ;;
7824esac
7825echo "$as_me:$LINENO: checking for $ac_header" >&5
7826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7827if eval "test \"\${$as_ac_Header+set}\" = set"; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 eval "$as_ac_Header=\$ac_header_preproc"
7831fi
7832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7834
7835fi
7836if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845else
7846
7847 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7848echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7849if test "${ac_cv_lib_gen_dirname+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852 ac_check_lib_save_LIBS=$LIBS
7853LIBS="-lgen $LIBS"
7854cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
7860
7861/* Override any gcc2 internal prototype to avoid an error. */
7862#ifdef __cplusplus
7863extern "C"
7864#endif
7865/* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867char dirname ();
7868int
7869main ()
7870{
7871dirname ();
7872 ;
7873 return 0;
7874}
7875_ACEOF
7876rm -f conftest.$ac_objext conftest$ac_exeext
7877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -z "$ac_c_werror_flag"
7886 || test ! -s conftest.err'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_lib_gen_dirname=yes
7899else
7900 echo "$as_me: failed program was:" >&5
7901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903ac_cv_lib_gen_dirname=no
7904fi
7905rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907LIBS=$ac_check_lib_save_LIBS
7908fi
7909echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7910echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7911if test $ac_cv_lib_gen_dirname = yes; then
7912
7913 echo "$as_me:$LINENO: checking for broken dirname" >&5
7914echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7915if test "${ac_cv_have_broken_dirname+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918
7919 save_LIBS="$LIBS"
7920 LIBS="$LIBS -lgen"
7921 if test "$cross_compiling" = yes; then
7922 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7923See \`config.log' for more details." >&5
7924echo "$as_me: error: cannot run test program while cross compiling
7925See \`config.log' for more details." >&2;}
7926 { (exit 1); exit 1; }; }
7927else
7928 cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
7934
7935#include <libgen.h>
7936#include <string.h>
7937
7938int main(int argc, char **argv) {
7939 char *s, buf[32];
7940
7941 strncpy(buf,"/etc", 32);
7942 s = dirname(buf);
7943 if (!s || strncmp(s, "/", 32) != 0) {
7944 exit(1);
7945 } else {
7946 exit(0);
7947 }
7948}
7949
7950_ACEOF
7951rm -f conftest$ac_exeext
7952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_have_broken_dirname="no"
7963else
7964 echo "$as_me: program exited with status $ac_status" >&5
7965echo "$as_me: failed program was:" >&5
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968( exit $ac_status )
7969 ac_cv_have_broken_dirname="yes"
7970
7971fi
7972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7973fi
7974 LIBS="$save_LIBS"
7975
7976fi
7977echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7978echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7979 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7980 LIBS="$LIBS -lgen"
7981 cat >>confdefs.h <<\_ACEOF
7982#define HAVE_DIRNAME 1
7983_ACEOF
7984
7985
7986for ac_header in libgen.h
7987do
7988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7989if eval "test \"\${$as_ac_Header+set}\" = set"; then
7990 echo "$as_me:$LINENO: checking for $ac_header" >&5
7991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7992if eval "test \"\${$as_ac_Header+set}\" = set"; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994fi
7995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7997else
7998 # Is the header compilable?
7999echo "$as_me:$LINENO: checking $ac_header usability" >&5
8000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8001cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h. */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h. */
8007$ac_includes_default
8008#include <$ac_header>
8009_ACEOF
8010rm -f conftest.$ac_objext
8011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_header_compiler=yes
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037ac_header_compiler=no
8038fi
8039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8041echo "${ECHO_T}$ac_header_compiler" >&6
8042
8043# Is the header present?
8044echo "$as_me:$LINENO: checking $ac_header presence" >&5
8045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8046cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052#include <$ac_header>
8053_ACEOF
8054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } >/dev/null; then
8062 if test -s conftest.err; then
8063 ac_cpp_err=$ac_c_preproc_warn_flag
8064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8065 else
8066 ac_cpp_err=
8067 fi
8068else
8069 ac_cpp_err=yes
8070fi
8071if test -z "$ac_cpp_err"; then
8072 ac_header_preproc=yes
8073else
8074 echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 ac_header_preproc=no
8078fi
8079rm -f conftest.err conftest.$ac_ext
8080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8081echo "${ECHO_T}$ac_header_preproc" >&6
8082
8083# So? What about this header?
8084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8085 yes:no: )
8086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8090 ac_header_preproc=yes
8091 ;;
8092 no:yes:* )
8093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8105 (
8106 cat <<\_ASBOX
8107## ------------------------------------------- ##
8108## Report this to openssh-unix-dev@mindrot.org ##
8109## ------------------------------------------- ##
8110_ASBOX
8111 ) |
8112 sed "s/^/$as_me: WARNING: /" >&2
8113 ;;
8114esac
8115echo "$as_me:$LINENO: checking for $ac_header" >&5
8116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8117if eval "test \"\${$as_ac_Header+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 eval "$as_ac_Header=\$ac_header_preproc"
8121fi
8122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8124
8125fi
8126if test `eval echo '${'$as_ac_Header'}'` = yes; then
8127 cat >>confdefs.h <<_ACEOF
8128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8129_ACEOF
8130
8131fi
8132
8133done
8134
8135 fi
8136
8137fi
8138
8139
8140fi
8141done
8142
8143
8144echo "$as_me:$LINENO: checking for getspnam" >&5
8145echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
8146if test "${ac_cv_func_getspnam+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149 cat >conftest.$ac_ext <<_ACEOF
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
8156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8157#define getspnam innocuous_getspnam
8158
8159/* System header to define __stub macros and hopefully few prototypes,
8160 which can conflict with char getspnam (); below.
8161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8162 <limits.h> exists even on freestanding compilers. */
8163
8164#ifdef __STDC__
8165# include <limits.h>
8166#else
8167# include <assert.h>
8168#endif
8169
8170#undef getspnam
8171
8172/* Override any gcc2 internal prototype to avoid an error. */
8173#ifdef __cplusplus
8174extern "C"
8175{
8176#endif
8177/* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179char getspnam ();
8180/* The GNU C library defines this for functions which it implements
8181 to always fail with ENOSYS. Some functions are actually named
8182 something starting with __ and the normal name is an alias. */
8183#if defined (__stub_getspnam) || defined (__stub___getspnam)
8184choke me
8185#else
8186char (*f) () = getspnam;
8187#endif
8188#ifdef __cplusplus
8189}
8190#endif
8191
8192int
8193main ()
8194{
8195return f != getspnam;
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200rm -f conftest.$ac_objext conftest$ac_exeext
8201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8202 (eval $ac_link) 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag"
8210 || test ! -s conftest.err'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest$ac_exeext'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 ac_cv_func_getspnam=yes
8223else
8224 echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
8227ac_cv_func_getspnam=no
8228fi
8229rm -f conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231fi
8232echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8233echo "${ECHO_T}$ac_cv_func_getspnam" >&6
8234if test $ac_cv_func_getspnam = yes; then
8235 :
8236else
8237 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
8238echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
8239if test "${ac_cv_lib_gen_getspnam+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242 ac_check_lib_save_LIBS=$LIBS
8243LIBS="-lgen $LIBS"
8244cat >conftest.$ac_ext <<_ACEOF
8245/* confdefs.h. */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h. */
8250
8251/* Override any gcc2 internal prototype to avoid an error. */
8252#ifdef __cplusplus
8253extern "C"
8254#endif
8255/* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257char getspnam ();
8258int
8259main ()
8260{
8261getspnam ();
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext conftest$ac_exeext
8267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_lib_gen_getspnam=yes
8289else
8290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293ac_cv_lib_gen_getspnam=no
8294fi
8295rm -f conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297LIBS=$ac_check_lib_save_LIBS
8298fi
8299echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
8300echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
8301if test $ac_cv_lib_gen_getspnam = yes; then
8302 LIBS="$LIBS -lgen"
8303fi
8304
8305fi
8306
8307echo "$as_me:$LINENO: checking for library containing basename" >&5
8308echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
8309if test "${ac_cv_search_basename+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312 ac_func_search_save_LIBS=$LIBS
8313ac_cv_search_basename=no
8314cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320
8321/* Override any gcc2 internal prototype to avoid an error. */
8322#ifdef __cplusplus
8323extern "C"
8324#endif
8325/* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327char basename ();
8328int
8329main ()
8330{
8331basename ();
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext conftest$ac_exeext
8337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_search_basename="none required"
8359else
8360 echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363fi
8364rm -f conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366if test "$ac_cv_search_basename" = no; then
8367 for ac_lib in gen; do
8368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8369 cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375
8376/* Override any gcc2 internal prototype to avoid an error. */
8377#ifdef __cplusplus
8378extern "C"
8379#endif
8380/* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8382char basename ();
8383int
8384main ()
8385{
8386basename ();
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_search_basename="-l$ac_lib"
8414break
8415else
8416 echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419fi
8420rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 done
8423fi
8424LIBS=$ac_func_search_save_LIBS
8425fi
8426echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
8427echo "${ECHO_T}$ac_cv_search_basename" >&6
8428if test "$ac_cv_search_basename" != no; then
8429 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
8430 cat >>confdefs.h <<\_ACEOF
8431#define HAVE_BASENAME 1
8432_ACEOF
8433
8434fi
8435
8436
8437
8438# Check whether --with-zlib or --without-zlib was given.
8439if test "${with_zlib+set}" = set; then
8440 withval="$with_zlib"
8441 if test "x$withval" = "xno" ; then
8442 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
8443echo "$as_me: error: *** zlib is required ***" >&2;}
8444 { (exit 1); exit 1; }; }
8445 elif test "x$withval" != "xyes"; then
8446 if test -d "$withval/lib"; then
8447 if test -n "${need_dash_r}"; then
8448 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8449 else
8450 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8451 fi
8452 else
8453 if test -n "${need_dash_r}"; then
8454 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8455 else
8456 LDFLAGS="-L${withval} ${LDFLAGS}"
8457 fi
8458 fi
8459 if test -d "$withval/include"; then
8460 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8461 else
8462 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8463 fi
8464 fi
8465
8466fi;
8467
8468
8469echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8470echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8471if test "${ac_cv_lib_z_deflate+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 ac_check_lib_save_LIBS=$LIBS
8475LIBS="-lz $LIBS"
8476cat >conftest.$ac_ext <<_ACEOF
8477/* confdefs.h. */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h. */
8482
8483/* Override any gcc2 internal prototype to avoid an error. */
8484#ifdef __cplusplus
8485extern "C"
8486#endif
8487/* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8489char deflate ();
8490int
8491main ()
8492{
8493deflate ();
8494 ;
8495 return 0;
8496}
8497_ACEOF
8498rm -f conftest.$ac_objext conftest$ac_exeext
8499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag"
8508 || test ! -s conftest.err'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest$ac_exeext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_cv_lib_z_deflate=yes
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525ac_cv_lib_z_deflate=no
8526fi
8527rm -f conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8529LIBS=$ac_check_lib_save_LIBS
8530fi
8531echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8532echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8533if test $ac_cv_lib_z_deflate = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535#define HAVE_LIBZ 1
8536_ACEOF
8537
8538 LIBS="-lz $LIBS"
8539
8540else
8541
8542 saved_CPPFLAGS="$CPPFLAGS"
8543 saved_LDFLAGS="$LDFLAGS"
8544 save_LIBS="$LIBS"
8545 if test -n "${need_dash_r}"; then
8546 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8547 else
8548 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8549 fi
8550 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8551 LIBS="$LIBS -lz"
8552 cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558
8559/* Override any gcc2 internal prototype to avoid an error. */
8560#ifdef __cplusplus
8561extern "C"
8562#endif
8563/* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8565char deflate ();
8566int
8567main ()
8568{
8569deflate ();
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 cat >>confdefs.h <<\_ACEOF
8597#define HAVE_LIBZ 1
8598_ACEOF
8599
8600else
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604
8605 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
8606echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
8607 { (exit 1); exit 1; }; }
8608
8609
8610fi
8611rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613
8614
8615fi
8616
8617if test "${ac_cv_header_zlib_h+set}" = set; then
8618 echo "$as_me:$LINENO: checking for zlib.h" >&5
8619echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8620if test "${ac_cv_header_zlib_h+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622fi
8623echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8624echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8625else
8626 # Is the header compilable?
8627echo "$as_me:$LINENO: checking zlib.h usability" >&5
8628echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635$ac_includes_default
8636#include <zlib.h>
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_header_compiler=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665ac_header_compiler=no
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6
8670
8671# Is the header present?
8672echo "$as_me:$LINENO: checking zlib.h presence" >&5
8673echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8674cat >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#include <zlib.h>
8681_ACEOF
8682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8695 fi
8696else
8697 ac_cpp_err=yes
8698fi
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_preproc=no
8706fi
8707rm -f conftest.err conftest.$ac_ext
8708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6
8710
8711# So? What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
8714 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
8719 ;;
8720 no:yes:* )
8721 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8733 (
8734 cat <<\_ASBOX
8735## ------------------------------------------- ##
8736## Report this to openssh-unix-dev@mindrot.org ##
8737## ------------------------------------------- ##
8738_ASBOX
8739 ) |
8740 sed "s/^/$as_me: WARNING: /" >&2
8741 ;;
8742esac
8743echo "$as_me:$LINENO: checking for zlib.h" >&5
8744echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8745if test "${ac_cv_header_zlib_h+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748 ac_cv_header_zlib_h=$ac_header_preproc
8749fi
8750echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8751echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8752
8753fi
8754if test $ac_cv_header_zlib_h = yes; then
8755 :
8756else
8757 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
8758echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
8759 { (exit 1); exit 1; }; }
8760fi
8761
8762
8763
8764
8765# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
8766if test "${with_zlib_version_check+set}" = set; then
8767 withval="$with_zlib_version_check"
8768 if test "x$withval" = "xno" ; then
8769 zlib_check_nonfatal=1
8770 fi
8771
8772
8773fi;
8774
8775echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
8776echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6
8777if test "$cross_compiling" = yes; then
8778 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
8779echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8780
8781else
8782 cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h. */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h. */
8788
8789#include <stdio.h>
8790#include <zlib.h>
8791int main()
8792{
8793 int a=0, b=0, c=0, d=0, n, v;
8794 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8795 if (n != 3 && n != 4)
8796 exit(1);
8797 v = a*1000000 + b*10000 + c*100 + d;
8798 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8799
8800 /* 1.1.4 is OK */
8801 if (a == 1 && b == 1 && c >= 4)
8802 exit(0);
8803
8804 /* 1.2.3 and up are OK */
8805 if (v >= 1020300)
8806 exit(0);
8807
8808 exit(2);
8809}
8810
8811_ACEOF
8812rm -f conftest$ac_exeext
8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825else
8826 echo "$as_me: program exited with status $ac_status" >&5
8827echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
8830( exit $ac_status )
8831 echo "$as_me:$LINENO: result: yes" >&5
8832echo "${ECHO_T}yes" >&6
8833 if test -z "$zlib_check_nonfatal" ; then
8834 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8835Your reported zlib version has known security problems. It's possible your
8836vendor has fixed these problems without changing the version number. If you
8837are sure this is the case, you can disable the check by running
8838\"./configure --without-zlib-version-check\".
8839If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8840See http://www.gzip.org/zlib/ for details." >&5
8841echo "$as_me: error: *** zlib too old - check config.log ***
8842Your reported zlib version has known security problems. It's possible your
8843vendor has fixed these problems without changing the version number. If you
8844are sure this is the case, you can disable the check by running
8845\"./configure --without-zlib-version-check\".
8846If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8847See http://www.gzip.org/zlib/ for details." >&2;}
8848 { (exit 1); exit 1; }; }
8849 else
8850 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
8851echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8852 fi
8853
8854fi
8855rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8856fi
8857
8858echo "$as_me:$LINENO: checking for strcasecmp" >&5
8859echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
8860if test "${ac_cv_func_strcasecmp+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871#define strcasecmp innocuous_strcasecmp
8872
8873/* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char strcasecmp (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8877
8878#ifdef __STDC__
8879# include <limits.h>
8880#else
8881# include <assert.h>
8882#endif
8883
8884#undef strcasecmp
8885
8886/* Override any gcc2 internal prototype to avoid an error. */
8887#ifdef __cplusplus
8888extern "C"
8889{
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893char strcasecmp ();
8894/* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
8898choke me
8899#else
8900char (*f) () = strcasecmp;
8901#endif
8902#ifdef __cplusplus
8903}
8904#endif
8905
8906int
8907main ()
8908{
8909return f != strcasecmp;
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_func_strcasecmp=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941ac_cv_func_strcasecmp=no
8942fi
8943rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945fi
8946echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
8947echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
8948if test $ac_cv_func_strcasecmp = yes; then
8949 :
8950else
8951 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
8952echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
8953if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 ac_check_lib_save_LIBS=$LIBS
8957LIBS="-lresolv $LIBS"
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964
8965/* Override any gcc2 internal prototype to avoid an error. */
8966#ifdef __cplusplus
8967extern "C"
8968#endif
8969/* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971char strcasecmp ();
8972int
8973main ()
8974{
8975strcasecmp ();
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_lib_resolv_strcasecmp=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_cv_lib_resolv_strcasecmp=no
9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011LIBS=$ac_check_lib_save_LIBS
9012fi
9013echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
9014echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
9015if test $ac_cv_lib_resolv_strcasecmp = yes; then
9016 LIBS="$LIBS -lresolv"
9017fi
9018
9019
9020fi
9021
9022echo "$as_me:$LINENO: checking for utimes" >&5
9023echo $ECHO_N "checking for utimes... $ECHO_C" >&6
9024if test "${ac_cv_func_utimes+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027 cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033/* Define utimes to an innocuous variant, in case <limits.h> declares utimes.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035#define utimes innocuous_utimes
9036
9037/* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char utimes (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9041
9042#ifdef __STDC__
9043# include <limits.h>
9044#else
9045# include <assert.h>
9046#endif
9047
9048#undef utimes
9049
9050/* Override any gcc2 internal prototype to avoid an error. */
9051#ifdef __cplusplus
9052extern "C"
9053{
9054#endif
9055/* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9057char utimes ();
9058/* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061#if defined (__stub_utimes) || defined (__stub___utimes)
9062choke me
9063#else
9064char (*f) () = utimes;
9065#endif
9066#ifdef __cplusplus
9067}
9068#endif
9069
9070int
9071main ()
9072{
9073return f != utimes;
9074 ;
9075 return 0;
9076}
9077_ACEOF
9078rm -f conftest.$ac_objext conftest$ac_exeext
9079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_func_utimes=yes
9101else
9102 echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
9105ac_cv_func_utimes=no
9106fi
9107rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109fi
9110echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
9111echo "${ECHO_T}$ac_cv_func_utimes" >&6
9112if test $ac_cv_func_utimes = yes; then
9113 :
9114else
9115 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
9116echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
9117if test "${ac_cv_lib_c89_utimes+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119else
9120 ac_check_lib_save_LIBS=$LIBS
9121LIBS="-lc89 $LIBS"
9122cat >conftest.$ac_ext <<_ACEOF
9123/* confdefs.h. */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h. */
9128
9129/* Override any gcc2 internal prototype to avoid an error. */
9130#ifdef __cplusplus
9131extern "C"
9132#endif
9133/* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9135char utimes ();
9136int
9137main ()
9138{
9139utimes ();
9140 ;
9141 return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext conftest$ac_exeext
9145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_lib_c89_utimes=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171ac_cv_lib_c89_utimes=no
9172fi
9173rm -f conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175LIBS=$ac_check_lib_save_LIBS
9176fi
9177echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
9178echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
9179if test $ac_cv_lib_c89_utimes = yes; then
9180 cat >>confdefs.h <<\_ACEOF
9181#define HAVE_UTIMES 1
9182_ACEOF
9183
9184 LIBS="$LIBS -lc89"
9185fi
9186
9187
9188fi
9189
9190
9191
9192for ac_header in libutil.h
9193do
9194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200fi
9201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203else
9204 # Is the header compilable?
9205echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207cat >conftest.$ac_ext <<_ACEOF
9208/* confdefs.h. */
9209_ACEOF
9210cat confdefs.h >>conftest.$ac_ext
9211cat >>conftest.$ac_ext <<_ACEOF
9212/* end confdefs.h. */
9213$ac_includes_default
9214#include <$ac_header>
9215_ACEOF
9216rm -f conftest.$ac_objext
9217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_header_compiler=yes
9239else
9240 echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243ac_header_compiler=no
9244fi
9245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9247echo "${ECHO_T}$ac_header_compiler" >&6
9248
9249# Is the header present?
9250echo "$as_me:$LINENO: checking $ac_header presence" >&5
9251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9252cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
9258#include <$ac_header>
9259_ACEOF
9260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_c_preproc_warn_flag
9270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9271 else
9272 ac_cpp_err=
9273 fi
9274else
9275 ac_cpp_err=yes
9276fi
9277if test -z "$ac_cpp_err"; then
9278 ac_header_preproc=yes
9279else
9280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 ac_header_preproc=no
9284fi
9285rm -f conftest.err conftest.$ac_ext
9286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9287echo "${ECHO_T}$ac_header_preproc" >&6
9288
9289# So? What about this header?
9290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9291 yes:no: )
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9296 ac_header_preproc=yes
9297 ;;
9298 no:yes:* )
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9311 (
9312 cat <<\_ASBOX
9313## ------------------------------------------- ##
9314## Report this to openssh-unix-dev@mindrot.org ##
9315## ------------------------------------------- ##
9316_ASBOX
9317 ) |
9318 sed "s/^/$as_me: WARNING: /" >&2
9319 ;;
9320esac
9321echo "$as_me:$LINENO: checking for $ac_header" >&5
9322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325else
9326 eval "$as_ac_Header=\$ac_header_preproc"
9327fi
9328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330
9331fi
9332if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335_ACEOF
9336
9337fi
9338
9339done
9340
9341echo "$as_me:$LINENO: checking for library containing login" >&5
9342echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
9343if test "${ac_cv_search_login+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 ac_func_search_save_LIBS=$LIBS
9347ac_cv_search_login=no
9348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354
9355/* Override any gcc2 internal prototype to avoid an error. */
9356#ifdef __cplusplus
9357extern "C"
9358#endif
9359/* We use char because int might match the return type of a gcc2
9360 builtin and then its argument prototype would still apply. */
9361char login ();
9362int
9363main ()
9364{
9365login ();
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
9371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag"
9380 || test ! -s conftest.err'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 ac_cv_search_login="none required"
9393else
9394 echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397fi
9398rm -f conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400if test "$ac_cv_search_login" = no; then
9401 for ac_lib in util bsd; do
9402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
9409
9410/* Override any gcc2 internal prototype to avoid an error. */
9411#ifdef __cplusplus
9412extern "C"
9413#endif
9414/* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9416char login ();
9417int
9418main ()
9419{
9420login ();
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext conftest$ac_exeext
9426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag"
9435 || test ! -s conftest.err'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; } &&
9441 { ac_try='test -s conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_search_login="-l$ac_lib"
9448break
9449else
9450 echo "$as_me: failed program was:" >&5
9451sed 's/^/| /' conftest.$ac_ext >&5
9452
9453fi
9454rm -f conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 done
9457fi
9458LIBS=$ac_func_search_save_LIBS
9459fi
9460echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9461echo "${ECHO_T}$ac_cv_search_login" >&6
9462if test "$ac_cv_search_login" != no; then
9463 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
9464 cat >>confdefs.h <<\_ACEOF
9465#define HAVE_LOGIN 1
9466_ACEOF
9467
9468fi
9469
9470
9471
9472
9473for ac_func in logout updwtmp logwtmp
9474do
9475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9476echo "$as_me:$LINENO: checking for $ac_func" >&5
9477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9478if eval "test \"\${$as_ac_var+set}\" = set"; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481 cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9489#define $ac_func innocuous_$ac_func
9490
9491/* System header to define __stub macros and hopefully few prototypes,
9492 which can conflict with char $ac_func (); below.
9493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494 <limits.h> exists even on freestanding compilers. */
9495
9496#ifdef __STDC__
9497# include <limits.h>
9498#else
9499# include <assert.h>
9500#endif
9501
9502#undef $ac_func
9503
9504/* Override any gcc2 internal prototype to avoid an error. */
9505#ifdef __cplusplus
9506extern "C"
9507{
9508#endif
9509/* We use char because int might match the return type of a gcc2
9510 builtin and then its argument prototype would still apply. */
9511char $ac_func ();
9512/* The GNU C library defines this for functions which it implements
9513 to always fail with ENOSYS. Some functions are actually named
9514 something starting with __ and the normal name is an alias. */
9515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9516choke me
9517#else
9518char (*f) () = $ac_func;
9519#endif
9520#ifdef __cplusplus
9521}
9522#endif
9523
9524int
9525main ()
9526{
9527return f != $ac_func;
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534 (eval $ac_link) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 eval "$as_ac_var=yes"
9555else
9556 echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559eval "$as_ac_var=no"
9560fi
9561rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563fi
9564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9566if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569_ACEOF
9570
9571fi
9572done
9573
9574
9575
9576for ac_func in strftime
9577do
9578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9579echo "$as_me:$LINENO: checking for $ac_func" >&5
9580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9581if eval "test \"\${$as_ac_var+set}\" = set"; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583else
9584 cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9592#define $ac_func innocuous_$ac_func
9593
9594/* System header to define __stub macros and hopefully few prototypes,
9595 which can conflict with char $ac_func (); below.
9596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9597 <limits.h> exists even on freestanding compilers. */
9598
9599#ifdef __STDC__
9600# include <limits.h>
9601#else
9602# include <assert.h>
9603#endif
9604
9605#undef $ac_func
9606
9607/* Override any gcc2 internal prototype to avoid an error. */
9608#ifdef __cplusplus
9609extern "C"
9610{
9611#endif
9612/* We use char because int might match the return type of a gcc2
9613 builtin and then its argument prototype would still apply. */
9614char $ac_func ();
9615/* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9619choke me
9620#else
9621char (*f) () = $ac_func;
9622#endif
9623#ifdef __cplusplus
9624}
9625#endif
9626
9627int
9628main ()
9629{
9630return f != $ac_func;
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635rm -f conftest.$ac_objext conftest$ac_exeext
9636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 eval "$as_ac_var=yes"
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
9662eval "$as_ac_var=no"
9663fi
9664rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666fi
9667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9669if test `eval echo '${'$as_ac_var'}'` = yes; then
9670 cat >>confdefs.h <<_ACEOF
9671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9672_ACEOF
9673
9674else
9675 # strftime is in -lintl on SCO UNIX.
9676echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9677echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9678if test "${ac_cv_lib_intl_strftime+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680else
9681 ac_check_lib_save_LIBS=$LIBS
9682LIBS="-lintl $LIBS"
9683cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h. */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h. */
9689
9690/* Override any gcc2 internal prototype to avoid an error. */
9691#ifdef __cplusplus
9692extern "C"
9693#endif
9694/* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9696char strftime ();
9697int
9698main ()
9699{
9700strftime ();
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_lib_intl_strftime=yes
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732ac_cv_lib_intl_strftime=no
9733fi
9734rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736LIBS=$ac_check_lib_save_LIBS
9737fi
9738echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9739echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9740if test $ac_cv_lib_intl_strftime = yes; then
9741 cat >>confdefs.h <<\_ACEOF
9742#define HAVE_STRFTIME 1
9743_ACEOF
9744
9745LIBS="-lintl $LIBS"
9746fi
9747
9748fi
9749done
9750
9751
9752# Check for ALTDIRFUNC glob() extension
9753echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
9754echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
9755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761
9762 #include <glob.h>
9763 #ifdef GLOB_ALTDIRFUNC
9764 FOUNDIT
9765 #endif
9766
9767_ACEOF
9768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9770
9771 cat >>confdefs.h <<\_ACEOF
9772#define GLOB_HAS_ALTDIRFUNC 1
9773_ACEOF
9774
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777
9778else
9779
9780 echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
9782
9783
9784fi
9785rm -f conftest*
9786
9787
9788# Check for g.gl_matchc glob() extension
9789echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
9790echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
9791cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h. */
9797
9798 #include <glob.h>
9799 int main(void){glob_t g; g.gl_matchc = 1;}
9800
9801_ACEOF
9802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9803 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9804
9805 cat >>confdefs.h <<\_ACEOF
9806#define GLOB_HAS_GL_MATCHC 1
9807_ACEOF
9808
9809 echo "$as_me:$LINENO: result: yes" >&5
9810echo "${ECHO_T}yes" >&6
9811
9812else
9813
9814 echo "$as_me:$LINENO: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816
9817
9818fi
9819rm -f conftest*
9820
9821
9822echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
9823echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
9824if test "$cross_compiling" = yes; then
9825
9826 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
9827echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
9828 cat >>confdefs.h <<\_ACEOF
9829#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9830_ACEOF
9831
9832
9833
9834else
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
9841
9842#include <sys/types.h>
9843#include <dirent.h>
9844int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
9845
9846_ACEOF
9847rm -f conftest$ac_exeext
9848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 echo "$as_me:$LINENO: result: yes" >&5
9859echo "${ECHO_T}yes" >&6
9860else
9861 echo "$as_me: program exited with status $ac_status" >&5
9862echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865( exit $ac_status )
9866
9867 echo "$as_me:$LINENO: result: no" >&5
9868echo "${ECHO_T}no" >&6
9869 cat >>confdefs.h <<\_ACEOF
9870#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
9871_ACEOF
9872
9873
9874fi
9875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9876fi
9877
9878echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
9879echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6
9880if test -d "/proc/$$/fd" ; then
9881 cat >>confdefs.h <<\_ACEOF
9882#define HAVE_PROC_PID 1
9883_ACEOF
9884
9885 echo "$as_me:$LINENO: result: yes" >&5
9886echo "${ECHO_T}yes" >&6
9887else
9888 echo "$as_me:$LINENO: result: no" >&5
9889echo "${ECHO_T}no" >&6
9890fi
9891
9892# Check whether user wants S/Key support
9893SKEY_MSG="no"
9894
9895# Check whether --with-skey or --without-skey was given.
9896if test "${with_skey+set}" = set; then
9897 withval="$with_skey"
9898
9899 if test "x$withval" != "xno" ; then
9900
9901 if test "x$withval" != "xyes" ; then
9902 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9903 LDFLAGS="$LDFLAGS -L${withval}/lib"
9904 fi
9905
9906 cat >>confdefs.h <<\_ACEOF
9907#define SKEY 1
9908_ACEOF
9909
9910 LIBS="-lskey $LIBS"
9911 SKEY_MSG="yes"
9912
9913 echo "$as_me:$LINENO: checking for s/key support" >&5
9914echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
9915 if test "$cross_compiling" = yes; then
9916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9917See \`config.log' for more details." >&5
9918echo "$as_me: error: cannot run test program while cross compiling
9919See \`config.log' for more details." >&2;}
9920 { (exit 1); exit 1; }; }
9921else
9922 cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h. */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h. */
9928
9929#include <stdio.h>
9930#include <skey.h>
9931int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
9932
9933_ACEOF
9934rm -f conftest$ac_exeext
9935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 echo "$as_me:$LINENO: result: yes" >&5
9946echo "${ECHO_T}yes" >&6
9947else
9948 echo "$as_me: program exited with status $ac_status" >&5
9949echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
9952( exit $ac_status )
9953
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
9957echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
9958 { (exit 1); exit 1; }; }
9959
9960fi
9961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9962fi
9963 echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
9964echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971#include <stdio.h>
9972 #include <skey.h>
9973int
9974main ()
9975{
9976(void)skeychallenge(NULL,"name","",0);
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext
9982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983 (eval $ac_compile) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 echo "$as_me:$LINENO: result: yes" >&5
10004echo "${ECHO_T}yes" >&6
10005 cat >>confdefs.h <<\_ACEOF
10006#define SKEYCHALLENGE_4ARG 1
10007_ACEOF
10008
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015
10016fi
10017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10018 fi
10019
10020
10021fi;
10022
10023# Check whether user wants TCP wrappers support
10024TCPW_MSG="no"
10025
10026# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
10027if test "${with_tcp_wrappers+set}" = set; then
10028 withval="$with_tcp_wrappers"
10029
10030 if test "x$withval" != "xno" ; then
10031 saved_LIBS="$LIBS"
10032 saved_LDFLAGS="$LDFLAGS"
10033 saved_CPPFLAGS="$CPPFLAGS"
10034 if test -n "${withval}" && \
10035 test "x${withval}" != "xyes"; then
10036 if test -d "${withval}/lib"; then
10037 if test -n "${need_dash_r}"; then
10038 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10039 else
10040 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10041 fi
10042 else
10043 if test -n "${need_dash_r}"; then
10044 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10045 else
10046 LDFLAGS="-L${withval} ${LDFLAGS}"
10047 fi
10048 fi
10049 if test -d "${withval}/include"; then
10050 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10051 else
10052 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10053 fi
10054 fi
10055 LIBWRAP="-lwrap"
10056 LIBS="$LIBWRAP $LIBS"
10057 echo "$as_me:$LINENO: checking for libwrap" >&5
10058echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
10059 cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h. */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
10064/* end confdefs.h. */
10065
10066#include <sys/types.h>
10067#include <sys/socket.h>
10068#include <netinet/in.h>
10069#include <tcpd.h>
10070 int deny_severity = 0, allow_severity = 0;
10071
10072int
10073main ()
10074{
10075hosts_access(0);
10076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102
10103 echo "$as_me:$LINENO: result: yes" >&5
10104echo "${ECHO_T}yes" >&6
10105 cat >>confdefs.h <<\_ACEOF
10106#define LIBWRAP 1
10107_ACEOF
10108
10109
10110 TCPW_MSG="yes"
10111
10112else
10113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116
10117 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
10118echo "$as_me: error: *** libwrap missing" >&2;}
10119 { (exit 1); exit 1; }; }
10120
10121
10122fi
10123rm -f conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LIBS="$saved_LIBS"
10126 fi
10127
10128
10129fi;
10130
10131# Check whether user wants libedit support
10132LIBEDIT_MSG="no"
10133
10134# Check whether --with-libedit or --without-libedit was given.
10135if test "${with_libedit+set}" = set; then
10136 withval="$with_libedit"
10137 if test "x$withval" != "xno" ; then
10138 if test "x$withval" != "xyes"; then
10139 CPPFLAGS="$CPPFLAGS -I$withval/include"
10140 LDFLAGS="$LDFLAGS -L$withval/lib"
10141 fi
10142 echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
10143echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6
10144if test "${ac_cv_lib_edit_el_init+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 ac_check_lib_save_LIBS=$LIBS
10148LIBS="-ledit -lcurses
10149 $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156
10157/* Override any gcc2 internal prototype to avoid an error. */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10163char el_init ();
10164int
10165main ()
10166{
10167el_init ();
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_edit_el_init=yes
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_cv_lib_edit_el_init=no
10200fi
10201rm -f conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
10206echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6
10207if test $ac_cv_lib_edit_el_init = yes; then
10208
10209cat >>confdefs.h <<\_ACEOF
10210#define USE_LIBEDIT
10211_ACEOF
10212
10213 LIBEDIT="-ledit -lcurses"
10214 LIBEDIT_MSG="yes"
10215
10216
10217else
10218 { { echo "$as_me:$LINENO: error: libedit not found" >&5
10219echo "$as_me: error: libedit not found" >&2;}
10220 { (exit 1); exit 1; }; }
10221fi
10222
10223 echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
10224echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231
10232#include <histedit.h>
10233int main(void)
10234{
10235 int i = H_SETSIZE;
10236 el_init("", NULL, NULL, NULL);
10237 exit(0);
10238}
10239
10240_ACEOF
10241rm -f conftest.$ac_objext
10242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag"
10251 || test ! -s conftest.err'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest.$ac_objext'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 echo "$as_me:$LINENO: result: yes" >&5
10264echo "${ECHO_T}yes" >&6
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
10272echo "$as_me: error: libedit version is not compatible" >&2;}
10273 { (exit 1); exit 1; }; }
10274
10275fi
10276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278
10279fi;
10280
10281AUDIT_MODULE=none
10282
10283# Check whether --with-audit or --without-audit was given.
10284if test "${with_audit+set}" = set; then
10285 withval="$with_audit"
10286
10287 echo "$as_me:$LINENO: checking for supported audit module" >&5
10288echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6
10289 case "$withval" in
10290 bsm)
10291 echo "$as_me:$LINENO: result: bsm" >&5
10292echo "${ECHO_T}bsm" >&6
10293 AUDIT_MODULE=bsm
10294
10295for ac_header in bsm/audit.h
10296do
10297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10298if eval "test \"\${$as_ac_Header+set}\" = set"; then
10299 echo "$as_me:$LINENO: checking for $ac_header" >&5
10300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10301if eval "test \"\${$as_ac_Header+set}\" = set"; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303fi
10304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306else
10307 # Is the header compilable?
10308echo "$as_me:$LINENO: checking $ac_header usability" >&5
10309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10310cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
10316$ac_includes_default
10317#include <$ac_header>
10318_ACEOF
10319rm -f conftest.$ac_objext
10320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_header_compiler=yes
10342else
10343 echo "$as_me: failed program was:" >&5
10344sed 's/^/| /' conftest.$ac_ext >&5
10345
10346ac_header_compiler=no
10347fi
10348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350echo "${ECHO_T}$ac_header_compiler" >&6
10351
10352# Is the header present?
10353echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10355cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361#include <$ac_header>
10362_ACEOF
10363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } >/dev/null; then
10371 if test -s conftest.err; then
10372 ac_cpp_err=$ac_c_preproc_warn_flag
10373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10374 else
10375 ac_cpp_err=
10376 fi
10377else
10378 ac_cpp_err=yes
10379fi
10380if test -z "$ac_cpp_err"; then
10381 ac_header_preproc=yes
10382else
10383 echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_preproc=no
10387fi
10388rm -f conftest.err conftest.$ac_ext
10389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10390echo "${ECHO_T}$ac_header_preproc" >&6
10391
10392# So? What about this header?
10393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394 yes:no: )
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10399 ac_header_preproc=yes
10400 ;;
10401 no:yes:* )
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10414 (
10415 cat <<\_ASBOX
10416## ------------------------------------------- ##
10417## Report this to openssh-unix-dev@mindrot.org ##
10418## ------------------------------------------- ##
10419_ASBOX
10420 ) |
10421 sed "s/^/$as_me: WARNING: /" >&2
10422 ;;
10423esac
10424echo "$as_me:$LINENO: checking for $ac_header" >&5
10425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10426if eval "test \"\${$as_ac_Header+set}\" = set"; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429 eval "$as_ac_Header=\$ac_header_preproc"
10430fi
10431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10433
10434fi
10435if test `eval echo '${'$as_ac_Header'}'` = yes; then
10436 cat >>confdefs.h <<_ACEOF
10437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438_ACEOF
10439
10440else
10441 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
10442echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
10443 { (exit 1); exit 1; }; }
10444fi
10445
10446done
10447
10448
10449echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
10450echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6
10451if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453else
10454 ac_check_lib_save_LIBS=$LIBS
10455LIBS="-lbsm $LIBS"
10456cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462
10463/* Override any gcc2 internal prototype to avoid an error. */
10464#ifdef __cplusplus
10465extern "C"
10466#endif
10467/* We use char because int might match the return type of a gcc2
10468 builtin and then its argument prototype would still apply. */
10469char getaudit ();
10470int
10471main ()
10472{
10473getaudit ();
10474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
10479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480 (eval $ac_link) 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try='test -z "$ac_c_werror_flag"
10488 || test ! -s conftest.err'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_bsm_getaudit=yes
10501else
10502 echo "$as_me: failed program was:" >&5
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
10505ac_cv_lib_bsm_getaudit=no
10506fi
10507rm -f conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509LIBS=$ac_check_lib_save_LIBS
10510fi
10511echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
10512echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6
10513if test $ac_cv_lib_bsm_getaudit = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515#define HAVE_LIBBSM 1
10516_ACEOF
10517
10518 LIBS="-lbsm $LIBS"
10519
10520else
10521 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
10522echo "$as_me: error: BSM enabled and required library not found" >&2;}
10523 { (exit 1); exit 1; }; }
10524fi
10525
10526
10527for ac_func in getaudit
10528do
10529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10530echo "$as_me:$LINENO: checking for $ac_func" >&5
10531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10532if eval "test \"\${$as_ac_var+set}\" = set"; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535 cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10543#define $ac_func innocuous_$ac_func
10544
10545/* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char $ac_func (); below.
10547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548 <limits.h> exists even on freestanding compilers. */
10549
10550#ifdef __STDC__
10551# include <limits.h>
10552#else
10553# include <assert.h>
10554#endif
10555
10556#undef $ac_func
10557
10558/* Override any gcc2 internal prototype to avoid an error. */
10559#ifdef __cplusplus
10560extern "C"
10561{
10562#endif
10563/* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10565char $ac_func ();
10566/* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10570choke me
10571#else
10572char (*f) () = $ac_func;
10573#endif
10574#ifdef __cplusplus
10575}
10576#endif
10577
10578int
10579main ()
10580{
10581return f != $ac_func;
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 eval "$as_ac_var=yes"
10609else
10610 echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613eval "$as_ac_var=no"
10614fi
10615rm -f conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617fi
10618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10620if test `eval echo '${'$as_ac_var'}'` = yes; then
10621 cat >>confdefs.h <<_ACEOF
10622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10623_ACEOF
10624
10625else
10626 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
10627echo "$as_me: error: BSM enabled and required function not found" >&2;}
10628 { (exit 1); exit 1; }; }
10629fi
10630done
10631
10632 # These are optional
10633
10634for ac_func in getaudit_addr
10635do
10636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10637echo "$as_me:$LINENO: checking for $ac_func" >&5
10638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10639if eval "test \"\${$as_ac_var+set}\" = set"; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641else
10642 cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10650#define $ac_func innocuous_$ac_func
10651
10652/* System header to define __stub macros and hopefully few prototypes,
10653 which can conflict with char $ac_func (); below.
10654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10655 <limits.h> exists even on freestanding compilers. */
10656
10657#ifdef __STDC__
10658# include <limits.h>
10659#else
10660# include <assert.h>
10661#endif
10662
10663#undef $ac_func
10664
10665/* Override any gcc2 internal prototype to avoid an error. */
10666#ifdef __cplusplus
10667extern "C"
10668{
10669#endif
10670/* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10672char $ac_func ();
10673/* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10677choke me
10678#else
10679char (*f) () = $ac_func;
10680#endif
10681#ifdef __cplusplus
10682}
10683#endif
10684
10685int
10686main ()
10687{
10688return f != $ac_func;
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext conftest$ac_exeext
10694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 eval "$as_ac_var=yes"
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720eval "$as_ac_var=no"
10721fi
10722rm -f conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724fi
10725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10727if test `eval echo '${'$as_ac_var'}'` = yes; then
10728 cat >>confdefs.h <<_ACEOF
10729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730_ACEOF
10731
10732fi
10733done
10734
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define USE_BSM_AUDIT
10738_ACEOF
10739
10740 ;;
10741 debug)
10742 AUDIT_MODULE=debug
10743 echo "$as_me:$LINENO: result: debug" >&5
10744echo "${ECHO_T}debug" >&6
10745
10746cat >>confdefs.h <<\_ACEOF
10747#define SSH_AUDIT_EVENTS
10748_ACEOF
10749
10750 ;;
10751 no)
10752 echo "$as_me:$LINENO: result: no" >&5
10753echo "${ECHO_T}no" >&6
10754 ;;
10755 *)
10756 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
10757echo "$as_me: error: Unknown audit module $withval" >&2;}
10758 { (exit 1); exit 1; }; }
10759 ;;
10760 esac
10761
10762fi;
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844for ac_func in \
10845 arc4random \
10846 b64_ntop \
10847 __b64_ntop \
10848 b64_pton \
10849 __b64_pton \
10850 bcopy \
10851 bindresvport_sa \
10852 clock \
10853 closefrom \
10854 dirfd \
10855 fchmod \
10856 fchown \
10857 freeaddrinfo \
10858 futimes \
10859 getaddrinfo \
10860 getcwd \
10861 getgrouplist \
10862 getnameinfo \
10863 getopt \
10864 getpeereid \
10865 _getpty \
10866 getrlimit \
10867 getttyent \
10868 glob \
10869 inet_aton \
10870 inet_ntoa \
10871 inet_ntop \
10872 innetgr \
10873 login_getcapbool \
10874 md5_crypt \
10875 memmove \
10876 mkdtemp \
10877 mmap \
10878 ngetaddrinfo \
10879 nsleep \
10880 ogetaddrinfo \
10881 openlog_r \
10882 openpty \
10883 prctl \
10884 pstat \
10885 readpassphrase \
10886 realpath \
10887 recvmsg \
10888 rresvport_af \
10889 sendmsg \
10890 setdtablesize \
10891 setegid \
10892 setenv \
10893 seteuid \
10894 setgroups \
10895 setlogin \
10896 setpcred \
10897 setproctitle \
10898 setregid \
10899 setreuid \
10900 setrlimit \
10901 setsid \
10902 setvbuf \
10903 sigaction \
10904 sigvec \
10905 snprintf \
10906 socketpair \
10907 strdup \
10908 strerror \
10909 strlcat \
10910 strlcpy \
10911 strmode \
10912 strnvis \
10913 strtonum \
10914 strtoll \
10915 strtoul \
10916 sysconf \
10917 tcgetpgrp \
10918 truncate \
10919 unsetenv \
10920 updwtmpx \
10921 utimes \
10922 vhangup \
10923 vsnprintf \
10924 waitpid \
10925
10926do
10927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928echo "$as_me:$LINENO: checking for $ac_func" >&5
10929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10930if eval "test \"\${$as_ac_var+set}\" = set"; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933 cat >conftest.$ac_ext <<_ACEOF
10934/* confdefs.h. */
10935_ACEOF
10936cat confdefs.h >>conftest.$ac_ext
10937cat >>conftest.$ac_ext <<_ACEOF
10938/* end confdefs.h. */
10939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10941#define $ac_func innocuous_$ac_func
10942
10943/* System header to define __stub macros and hopefully few prototypes,
10944 which can conflict with char $ac_func (); below.
10945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10946 <limits.h> exists even on freestanding compilers. */
10947
10948#ifdef __STDC__
10949# include <limits.h>
10950#else
10951# include <assert.h>
10952#endif
10953
10954#undef $ac_func
10955
10956/* Override any gcc2 internal prototype to avoid an error. */
10957#ifdef __cplusplus
10958extern "C"
10959{
10960#endif
10961/* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10963char $ac_func ();
10964/* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10968choke me
10969#else
10970char (*f) () = $ac_func;
10971#endif
10972#ifdef __cplusplus
10973}
10974#endif
10975
10976int
10977main ()
10978{
10979return f != $ac_func;
10980 ;
10981 return 0;
10982}
10983_ACEOF
10984rm -f conftest.$ac_objext conftest$ac_exeext
10985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest$ac_exeext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 eval "$as_ac_var=yes"
11007else
11008 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011eval "$as_ac_var=no"
11012fi
11013rm -f conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015fi
11016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11018if test `eval echo '${'$as_ac_var'}'` = yes; then
11019 cat >>confdefs.h <<_ACEOF
11020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11021_ACEOF
11022
11023fi
11024done
11025
11026
11027# IRIX has a const char return value for gai_strerror()
11028
11029for ac_func in gai_strerror
11030do
11031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11032echo "$as_me:$LINENO: checking for $ac_func" >&5
11033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11034if eval "test \"\${$as_ac_var+set}\" = set"; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11045#define $ac_func innocuous_$ac_func
11046
11047/* System header to define __stub macros and hopefully few prototypes,
11048 which can conflict with char $ac_func (); below.
11049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11050 <limits.h> exists even on freestanding compilers. */
11051
11052#ifdef __STDC__
11053# include <limits.h>
11054#else
11055# include <assert.h>
11056#endif
11057
11058#undef $ac_func
11059
11060/* Override any gcc2 internal prototype to avoid an error. */
11061#ifdef __cplusplus
11062extern "C"
11063{
11064#endif
11065/* We use char because int might match the return type of a gcc2
11066 builtin and then its argument prototype would still apply. */
11067char $ac_func ();
11068/* The GNU C library defines this for functions which it implements
11069 to always fail with ENOSYS. Some functions are actually named
11070 something starting with __ and the normal name is an alias. */
11071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11072choke me
11073#else
11074char (*f) () = $ac_func;
11075#endif
11076#ifdef __cplusplus
11077}
11078#endif
11079
11080int
11081main ()
11082{
11083return f != $ac_func;
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext conftest$ac_exeext
11089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 eval "$as_ac_var=yes"
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115eval "$as_ac_var=no"
11116fi
11117rm -f conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11119fi
11120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122if test `eval echo '${'$as_ac_var'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125_ACEOF
11126
11127 cat >>confdefs.h <<\_ACEOF
11128#define HAVE_GAI_STRERROR 1
11129_ACEOF
11130
11131 cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h. */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */
11137
11138#include <sys/types.h>
11139#include <sys/socket.h>
11140#include <netdb.h>
11141
11142const char *gai_strerror(int);
11143int
11144main ()
11145{
11146
11147char *str;
11148
11149str = gai_strerror(0);
11150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext
11155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest.$ac_objext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176
11177
11178cat >>confdefs.h <<\_ACEOF
11179#define HAVE_CONST_GAI_STRERROR_PROTO 1
11180_ACEOF
11181
11182else
11183 echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186fi
11187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188fi
11189done
11190
11191
11192echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
11193echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
11194if test "${ac_cv_search_nanosleep+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196else
11197 ac_func_search_save_LIBS=$LIBS
11198ac_cv_search_nanosleep=no
11199cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206/* Override any gcc2 internal prototype to avoid an error. */
11207#ifdef __cplusplus
11208extern "C"
11209#endif
11210/* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212char nanosleep ();
11213int
11214main ()
11215{
11216nanosleep ();
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221rm -f conftest.$ac_objext conftest$ac_exeext
11222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_search_nanosleep="none required"
11244else
11245 echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248fi
11249rm -f conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251if test "$ac_cv_search_nanosleep" = no; then
11252 for ac_lib in rt posix4; do
11253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11254 cat >conftest.$ac_ext <<_ACEOF
11255/* confdefs.h. */
11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260
11261/* Override any gcc2 internal prototype to avoid an error. */
11262#ifdef __cplusplus
11263extern "C"
11264#endif
11265/* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11267char nanosleep ();
11268int
11269main ()
11270{
11271nanosleep ();
11272 ;
11273 return 0;
11274}
11275_ACEOF
11276rm -f conftest.$ac_objext conftest$ac_exeext
11277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_search_nanosleep="-l$ac_lib"
11299break
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304fi
11305rm -f conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 done
11308fi
11309LIBS=$ac_func_search_save_LIBS
11310fi
11311echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
11312echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
11313if test "$ac_cv_search_nanosleep" != no; then
11314 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
11315 cat >>confdefs.h <<\_ACEOF
11316#define HAVE_NANOSLEEP 1
11317_ACEOF
11318
11319fi
11320
11321
11322echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
11323echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
11324if test "${ac_cv_have_decl_getrusage+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333$ac_includes_default
11334int
11335main ()
11336{
11337#ifndef getrusage
11338 char *p = (char *) getrusage;
11339#endif
11340
11341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_cv_have_decl_getrusage=yes
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372ac_cv_have_decl_getrusage=no
11373fi
11374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375fi
11376echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
11377echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
11378if test $ac_cv_have_decl_getrusage = yes; then
11379
11380for ac_func in getrusage
11381do
11382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383echo "$as_me:$LINENO: checking for $ac_func" >&5
11384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11385if eval "test \"\${$as_ac_var+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
11394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396#define $ac_func innocuous_$ac_func
11397
11398/* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func (); below.
11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401 <limits.h> exists even on freestanding compilers. */
11402
11403#ifdef __STDC__
11404# include <limits.h>
11405#else
11406# include <assert.h>
11407#endif
11408
11409#undef $ac_func
11410
11411/* Override any gcc2 internal prototype to avoid an error. */
11412#ifdef __cplusplus
11413extern "C"
11414{
11415#endif
11416/* We use char because int might match the return type of a gcc2
11417 builtin and then its argument prototype would still apply. */
11418char $ac_func ();
11419/* The GNU C library defines this for functions which it implements
11420 to always fail with ENOSYS. Some functions are actually named
11421 something starting with __ and the normal name is an alias. */
11422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11423choke me
11424#else
11425char (*f) () = $ac_func;
11426#endif
11427#ifdef __cplusplus
11428}
11429#endif
11430
11431int
11432main ()
11433{
11434return f != $ac_func;
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext conftest$ac_exeext
11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 eval "$as_ac_var=yes"
11462else
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466eval "$as_ac_var=no"
11467fi
11468rm -f conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470fi
11471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11473if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479done
11480
11481fi
11482
11483echo "$as_me:$LINENO: checking whether strsep is declared" >&5
11484echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
11485if test "${ac_cv_have_decl_strsep+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494
11495#ifdef HAVE_STRING_H
11496# include <string.h>
11497#endif
11498
11499
11500int
11501main ()
11502{
11503#ifndef strsep
11504 char *p = (char *) strsep;
11505#endif
11506
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext
11512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_cv_have_decl_strsep=yes
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538ac_cv_have_decl_strsep=no
11539fi
11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541fi
11542echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
11543echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
11544if test $ac_cv_have_decl_strsep = yes; then
11545
11546for ac_func in strsep
11547do
11548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11549echo "$as_me:$LINENO: checking for $ac_func" >&5
11550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11551if eval "test \"\${$as_ac_var+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554 cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11562#define $ac_func innocuous_$ac_func
11563
11564/* System header to define __stub macros and hopefully few prototypes,
11565 which can conflict with char $ac_func (); below.
11566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11567 <limits.h> exists even on freestanding compilers. */
11568
11569#ifdef __STDC__
11570# include <limits.h>
11571#else
11572# include <assert.h>
11573#endif
11574
11575#undef $ac_func
11576
11577/* Override any gcc2 internal prototype to avoid an error. */
11578#ifdef __cplusplus
11579extern "C"
11580{
11581#endif
11582/* We use char because int might match the return type of a gcc2
11583 builtin and then its argument prototype would still apply. */
11584char $ac_func ();
11585/* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
11588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11589choke me
11590#else
11591char (*f) () = $ac_func;
11592#endif
11593#ifdef __cplusplus
11594}
11595#endif
11596
11597int
11598main ()
11599{
11600return f != $ac_func;
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext conftest$ac_exeext
11606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 eval "$as_ac_var=yes"
11628else
11629 echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
11632eval "$as_ac_var=no"
11633fi
11634rm -f conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636fi
11637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11639if test `eval echo '${'$as_ac_var'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642_ACEOF
11643
11644fi
11645done
11646
11647fi
11648
11649
11650echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
11651echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
11652if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 cat >conftest.$ac_ext <<_ACEOF
11656/* confdefs.h. */
11657_ACEOF
11658cat confdefs.h >>conftest.$ac_ext
11659cat >>conftest.$ac_ext <<_ACEOF
11660/* end confdefs.h. */
11661#include <termios.h>
11662
11663
11664int
11665main ()
11666{
11667#ifndef tcsendbreak
11668 char *p = (char *) tcsendbreak;
11669#endif
11670
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_have_decl_tcsendbreak=yes
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702ac_cv_have_decl_tcsendbreak=no
11703fi
11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705fi
11706echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
11707echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
11708if test $ac_cv_have_decl_tcsendbreak = yes; then
11709 cat >>confdefs.h <<\_ACEOF
11710#define HAVE_TCSENDBREAK 1
11711_ACEOF
11712
11713else
11714
11715for ac_func in tcsendbreak
11716do
11717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718echo "$as_me:$LINENO: checking for $ac_func" >&5
11719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11720if eval "test \"\${$as_ac_var+set}\" = set"; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731#define $ac_func innocuous_$ac_func
11732
11733/* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11737
11738#ifdef __STDC__
11739# include <limits.h>
11740#else
11741# include <assert.h>
11742#endif
11743
11744#undef $ac_func
11745
11746/* Override any gcc2 internal prototype to avoid an error. */
11747#ifdef __cplusplus
11748extern "C"
11749{
11750#endif
11751/* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753char $ac_func ();
11754/* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11758choke me
11759#else
11760char (*f) () = $ac_func;
11761#endif
11762#ifdef __cplusplus
11763}
11764#endif
11765
11766int
11767main ()
11768{
11769return f != $ac_func;
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext conftest$ac_exeext
11775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag"
11784 || test ! -s conftest.err'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801eval "$as_ac_var=no"
11802fi
11803rm -f conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805fi
11806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11808if test `eval echo '${'$as_ac_var'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11811_ACEOF
11812
11813fi
11814done
11815
11816fi
11817
11818
11819echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
11820echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
11821if test "${ac_cv_have_decl_h_errno+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830#include <netdb.h>
11831
11832int
11833main ()
11834{
11835#ifndef h_errno
11836 char *p = (char *) h_errno;
11837#endif
11838
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_have_decl_h_errno=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870ac_cv_have_decl_h_errno=no
11871fi
11872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11873fi
11874echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
11875echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
11876if test $ac_cv_have_decl_h_errno = yes; then
11877
11878cat >>confdefs.h <<_ACEOF
11879#define HAVE_DECL_H_ERRNO 1
11880_ACEOF
11881
11882
11883else
11884 cat >>confdefs.h <<_ACEOF
11885#define HAVE_DECL_H_ERRNO 0
11886_ACEOF
11887
11888
11889fi
11890
11891
11892
11893
11894for ac_func in setresuid
11895do
11896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11897echo "$as_me:$LINENO: checking for $ac_func" >&5
11898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11899if eval "test \"\${$as_ac_var+set}\" = set"; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
11908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11910#define $ac_func innocuous_$ac_func
11911
11912/* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char $ac_func (); below.
11914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915 <limits.h> exists even on freestanding compilers. */
11916
11917#ifdef __STDC__
11918# include <limits.h>
11919#else
11920# include <assert.h>
11921#endif
11922
11923#undef $ac_func
11924
11925/* Override any gcc2 internal prototype to avoid an error. */
11926#ifdef __cplusplus
11927extern "C"
11928{
11929#endif
11930/* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11932char $ac_func ();
11933/* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11937choke me
11938#else
11939char (*f) () = $ac_func;
11940#endif
11941#ifdef __cplusplus
11942}
11943#endif
11944
11945int
11946main ()
11947{
11948return f != $ac_func;
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 eval "$as_ac_var=yes"
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980eval "$as_ac_var=no"
11981fi
11982rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984fi
11985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11987if test `eval echo '${'$as_ac_var'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990_ACEOF
11991
11992 echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
11993echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
11994 if test "$cross_compiling" = yes; then
11995 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
11996echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
11997
11998else
11999 cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005
12006#include <stdlib.h>
12007#include <errno.h>
12008int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
12009
12010_ACEOF
12011rm -f conftest$ac_exeext
12012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12013 (eval $ac_link) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 echo "$as_me:$LINENO: result: yes" >&5
12023echo "${ECHO_T}yes" >&6
12024else
12025 echo "$as_me: program exited with status $ac_status" >&5
12026echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029( exit $ac_status )
12030cat >>confdefs.h <<\_ACEOF
12031#define BROKEN_SETRESUID 1
12032_ACEOF
12033
12034 echo "$as_me:$LINENO: result: not implemented" >&5
12035echo "${ECHO_T}not implemented" >&6
12036fi
12037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12038fi
12039
12040fi
12041done
12042
12043
12044
12045for ac_func in setresgid
12046do
12047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048echo "$as_me:$LINENO: checking for $ac_func" >&5
12049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12050if eval "test \"\${$as_ac_var+set}\" = set"; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061#define $ac_func innocuous_$ac_func
12062
12063/* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12067
12068#ifdef __STDC__
12069# include <limits.h>
12070#else
12071# include <assert.h>
12072#endif
12073
12074#undef $ac_func
12075
12076/* Override any gcc2 internal prototype to avoid an error. */
12077#ifdef __cplusplus
12078extern "C"
12079{
12080#endif
12081/* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12083char $ac_func ();
12084/* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088choke me
12089#else
12090char (*f) () = $ac_func;
12091#endif
12092#ifdef __cplusplus
12093}
12094#endif
12095
12096int
12097main ()
12098{
12099return f != $ac_func;
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104rm -f conftest.$ac_objext conftest$ac_exeext
12105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 (eval $ac_link) 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag"
12114 || test ! -s conftest.err'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
12120 { ac_try='test -s conftest$ac_exeext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 eval "$as_ac_var=yes"
12127else
12128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131eval "$as_ac_var=no"
12132fi
12133rm -f conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135fi
12136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12138if test `eval echo '${'$as_ac_var'}'` = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141_ACEOF
12142
12143 echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
12144echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
12145 if test "$cross_compiling" = yes; then
12146 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
12147echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
12148
12149else
12150 cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156
12157#include <stdlib.h>
12158#include <errno.h>
12159int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
12160
12161_ACEOF
12162rm -f conftest$ac_exeext
12163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 echo "$as_me:$LINENO: result: yes" >&5
12174echo "${ECHO_T}yes" >&6
12175else
12176 echo "$as_me: program exited with status $ac_status" >&5
12177echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180( exit $ac_status )
12181cat >>confdefs.h <<\_ACEOF
12182#define BROKEN_SETRESGID 1
12183_ACEOF
12184
12185 echo "$as_me:$LINENO: result: not implemented" >&5
12186echo "${ECHO_T}not implemented" >&6
12187fi
12188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12189fi
12190
12191fi
12192done
12193
12194
12195
12196
12197for ac_func in gettimeofday time
12198do
12199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200echo "$as_me:$LINENO: checking for $ac_func" >&5
12201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12202if eval "test \"\${$as_ac_var+set}\" = set"; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204else
12205 cat >conftest.$ac_ext <<_ACEOF
12206/* confdefs.h. */
12207_ACEOF
12208cat confdefs.h >>conftest.$ac_ext
12209cat >>conftest.$ac_ext <<_ACEOF
12210/* end confdefs.h. */
12211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12213#define $ac_func innocuous_$ac_func
12214
12215/* System header to define __stub macros and hopefully few prototypes,
12216 which can conflict with char $ac_func (); below.
12217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12218 <limits.h> exists even on freestanding compilers. */
12219
12220#ifdef __STDC__
12221# include <limits.h>
12222#else
12223# include <assert.h>
12224#endif
12225
12226#undef $ac_func
12227
12228/* Override any gcc2 internal prototype to avoid an error. */
12229#ifdef __cplusplus
12230extern "C"
12231{
12232#endif
12233/* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12235char $ac_func ();
12236/* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240choke me
12241#else
12242char (*f) () = $ac_func;
12243#endif
12244#ifdef __cplusplus
12245}
12246#endif
12247
12248int
12249main ()
12250{
12251return f != $ac_func;
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 eval "$as_ac_var=yes"
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283eval "$as_ac_var=no"
12284fi
12285rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287fi
12288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12290if test `eval echo '${'$as_ac_var'}'` = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12293_ACEOF
12294
12295fi
12296done
12297
12298
12299
12300
12301
12302
12303
12304for ac_func in endutent getutent getutid getutline pututline setutent
12305do
12306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12307echo "$as_me:$LINENO: checking for $ac_func" >&5
12308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12309if eval "test \"\${$as_ac_var+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 cat >conftest.$ac_ext <<_ACEOF
12313/* confdefs.h. */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h. */
12318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12320#define $ac_func innocuous_$ac_func
12321
12322/* System header to define __stub macros and hopefully few prototypes,
12323 which can conflict with char $ac_func (); below.
12324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12325 <limits.h> exists even on freestanding compilers. */
12326
12327#ifdef __STDC__
12328# include <limits.h>
12329#else
12330# include <assert.h>
12331#endif
12332
12333#undef $ac_func
12334
12335/* Override any gcc2 internal prototype to avoid an error. */
12336#ifdef __cplusplus
12337extern "C"
12338{
12339#endif
12340/* We use char because int might match the return type of a gcc2
12341 builtin and then its argument prototype would still apply. */
12342char $ac_func ();
12343/* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12347choke me
12348#else
12349char (*f) () = $ac_func;
12350#endif
12351#ifdef __cplusplus
12352}
12353#endif
12354
12355int
12356main ()
12357{
12358return f != $ac_func;
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext conftest$ac_exeext
12364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 eval "$as_ac_var=yes"
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390eval "$as_ac_var=no"
12391fi
12392rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394fi
12395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12397if test `eval echo '${'$as_ac_var'}'` = yes; then
12398 cat >>confdefs.h <<_ACEOF
12399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12400_ACEOF
12401
12402fi
12403done
12404
12405
12406for ac_func in utmpname
12407do
12408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409echo "$as_me:$LINENO: checking for $ac_func" >&5
12410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12411if eval "test \"\${$as_ac_var+set}\" = set"; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414 cat >conftest.$ac_ext <<_ACEOF
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h. */
12420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422#define $ac_func innocuous_$ac_func
12423
12424/* System header to define __stub macros and hopefully few prototypes,
12425 which can conflict with char $ac_func (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
12428
12429#ifdef __STDC__
12430# include <limits.h>
12431#else
12432# include <assert.h>
12433#endif
12434
12435#undef $ac_func
12436
12437/* Override any gcc2 internal prototype to avoid an error. */
12438#ifdef __cplusplus
12439extern "C"
12440{
12441#endif
12442/* We use char because int might match the return type of a gcc2
12443 builtin and then its argument prototype would still apply. */
12444char $ac_func ();
12445/* The GNU C library defines this for functions which it implements
12446 to always fail with ENOSYS. Some functions are actually named
12447 something starting with __ and the normal name is an alias. */
12448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449choke me
12450#else
12451char (*f) () = $ac_func;
12452#endif
12453#ifdef __cplusplus
12454}
12455#endif
12456
12457int
12458main ()
12459{
12460return f != $ac_func;
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>conftest.er1
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 eval "$as_ac_var=yes"
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492eval "$as_ac_var=no"
12493fi
12494rm -f conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496fi
12497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12499if test `eval echo '${'$as_ac_var'}'` = yes; then
12500 cat >>confdefs.h <<_ACEOF
12501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502_ACEOF
12503
12504fi
12505done
12506
12507
12508
12509
12510
12511
12512for ac_func in endutxent getutxent getutxid getutxline pututxline
12513do
12514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515echo "$as_me:$LINENO: checking for $ac_func" >&5
12516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12517if eval "test \"\${$as_ac_var+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12528#define $ac_func innocuous_$ac_func
12529
12530/* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func (); below.
12532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533 <limits.h> exists even on freestanding compilers. */
12534
12535#ifdef __STDC__
12536# include <limits.h>
12537#else
12538# include <assert.h>
12539#endif
12540
12541#undef $ac_func
12542
12543/* Override any gcc2 internal prototype to avoid an error. */
12544#ifdef __cplusplus
12545extern "C"
12546{
12547#endif
12548/* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550char $ac_func ();
12551/* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555choke me
12556#else
12557char (*f) () = $ac_func;
12558#endif
12559#ifdef __cplusplus
12560}
12561#endif
12562
12563int
12564main ()
12565{
12566return f != $ac_func;
12567 ;
12568 return 0;
12569}
12570_ACEOF
12571rm -f conftest.$ac_objext conftest$ac_exeext
12572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12573 (eval $ac_link) 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_c_werror_flag"
12581 || test ! -s conftest.err'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest$ac_exeext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 eval "$as_ac_var=yes"
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598eval "$as_ac_var=no"
12599fi
12600rm -f conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602fi
12603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12605if test `eval echo '${'$as_ac_var'}'` = yes; then
12606 cat >>confdefs.h <<_ACEOF
12607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12608_ACEOF
12609
12610fi
12611done
12612
12613
12614
12615for ac_func in setutxent utmpxname
12616do
12617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12618echo "$as_me:$LINENO: checking for $ac_func" >&5
12619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12620if eval "test \"\${$as_ac_var+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
12629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12631#define $ac_func innocuous_$ac_func
12632
12633/* System header to define __stub macros and hopefully few prototypes,
12634 which can conflict with char $ac_func (); below.
12635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636 <limits.h> exists even on freestanding compilers. */
12637
12638#ifdef __STDC__
12639# include <limits.h>
12640#else
12641# include <assert.h>
12642#endif
12643
12644#undef $ac_func
12645
12646/* Override any gcc2 internal prototype to avoid an error. */
12647#ifdef __cplusplus
12648extern "C"
12649{
12650#endif
12651/* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653char $ac_func ();
12654/* The GNU C library defines this for functions which it implements
12655 to always fail with ENOSYS. Some functions are actually named
12656 something starting with __ and the normal name is an alias. */
12657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12658choke me
12659#else
12660char (*f) () = $ac_func;
12661#endif
12662#ifdef __cplusplus
12663}
12664#endif
12665
12666int
12667main ()
12668{
12669return f != $ac_func;
12670 ;
12671 return 0;
12672}
12673_ACEOF
12674rm -f conftest.$ac_objext conftest$ac_exeext
12675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676 (eval $ac_link) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -z "$ac_c_werror_flag"
12684 || test ! -s conftest.err'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701eval "$as_ac_var=no"
12702fi
12703rm -f conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705fi
12706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12708if test `eval echo '${'$as_ac_var'}'` = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12711_ACEOF
12712
12713fi
12714done
12715
12716
12717echo "$as_me:$LINENO: checking for daemon" >&5
12718echo $ECHO_N "checking for daemon... $ECHO_C" >&6
12719if test "${ac_cv_func_daemon+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
12729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12730#define daemon innocuous_daemon
12731
12732/* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char daemon (); below.
12734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 <limits.h> exists even on freestanding compilers. */
12736
12737#ifdef __STDC__
12738# include <limits.h>
12739#else
12740# include <assert.h>
12741#endif
12742
12743#undef daemon
12744
12745/* Override any gcc2 internal prototype to avoid an error. */
12746#ifdef __cplusplus
12747extern "C"
12748{
12749#endif
12750/* We use char because int might match the return type of a gcc2
12751 builtin and then its argument prototype would still apply. */
12752char daemon ();
12753/* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756#if defined (__stub_daemon) || defined (__stub___daemon)
12757choke me
12758#else
12759char (*f) () = daemon;
12760#endif
12761#ifdef __cplusplus
12762}
12763#endif
12764
12765int
12766main ()
12767{
12768return f != daemon;
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext conftest$ac_exeext
12774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag"
12783 || test ! -s conftest.err'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_func_daemon=yes
12796else
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800ac_cv_func_daemon=no
12801fi
12802rm -f conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804fi
12805echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
12806echo "${ECHO_T}$ac_cv_func_daemon" >&6
12807if test $ac_cv_func_daemon = yes; then
12808 cat >>confdefs.h <<\_ACEOF
12809#define HAVE_DAEMON 1
12810_ACEOF
12811
12812else
12813 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
12814echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
12815if test "${ac_cv_lib_bsd_daemon+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12817else
12818 ac_check_lib_save_LIBS=$LIBS
12819LIBS="-lbsd $LIBS"
12820cat >conftest.$ac_ext <<_ACEOF
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826
12827/* Override any gcc2 internal prototype to avoid an error. */
12828#ifdef __cplusplus
12829extern "C"
12830#endif
12831/* We use char because int might match the return type of a gcc2
12832 builtin and then its argument prototype would still apply. */
12833char daemon ();
12834int
12835main ()
12836{
12837daemon ();
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -z "$ac_c_werror_flag"
12852 || test ! -s conftest.err'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_lib_bsd_daemon=yes
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869ac_cv_lib_bsd_daemon=no
12870fi
12871rm -f conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12873LIBS=$ac_check_lib_save_LIBS
12874fi
12875echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
12876echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
12877if test $ac_cv_lib_bsd_daemon = yes; then
12878 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
12879#define HAVE_DAEMON 1
12880_ACEOF
12881
12882fi
12883
12884
12885fi
12886
12887
12888echo "$as_me:$LINENO: checking for getpagesize" >&5
12889echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
12890if test "${ac_cv_func_getpagesize+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
12893 cat >conftest.$ac_ext <<_ACEOF
12894/* confdefs.h. */
12895_ACEOF
12896cat confdefs.h >>conftest.$ac_ext
12897cat >>conftest.$ac_ext <<_ACEOF
12898/* end confdefs.h. */
12899/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
12900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12901#define getpagesize innocuous_getpagesize
12902
12903/* System header to define __stub macros and hopefully few prototypes,
12904 which can conflict with char getpagesize (); below.
12905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12906 <limits.h> exists even on freestanding compilers. */
12907
12908#ifdef __STDC__
12909# include <limits.h>
12910#else
12911# include <assert.h>
12912#endif
12913
12914#undef getpagesize
12915
12916/* Override any gcc2 internal prototype to avoid an error. */
12917#ifdef __cplusplus
12918extern "C"
12919{
12920#endif
12921/* We use char because int might match the return type of a gcc2
12922 builtin and then its argument prototype would still apply. */
12923char getpagesize ();
12924/* The GNU C library defines this for functions which it implements
12925 to always fail with ENOSYS. Some functions are actually named
12926 something starting with __ and the normal name is an alias. */
12927#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
12928choke me
12929#else
12930char (*f) () = getpagesize;
12931#endif
12932#ifdef __cplusplus
12933}
12934#endif
12935
12936int
12937main ()
12938{
12939return f != getpagesize;
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
12945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12946 (eval $ac_link) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag"
12954 || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest$ac_exeext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_func_getpagesize=yes
12967else
12968 echo "$as_me: failed program was:" >&5
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
12971ac_cv_func_getpagesize=no
12972fi
12973rm -f conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975fi
12976echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
12977echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
12978if test $ac_cv_func_getpagesize = yes; then
12979 cat >>confdefs.h <<\_ACEOF
12980#define HAVE_GETPAGESIZE 1
12981_ACEOF
12982
12983else
12984 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
12985echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
12986if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 ac_check_lib_save_LIBS=$LIBS
12990LIBS="-lucb $LIBS"
12991cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997
12998/* Override any gcc2 internal prototype to avoid an error. */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002/* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004char getpagesize ();
13005int
13006main ()
13007{
13008getpagesize ();
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013rm -f conftest.$ac_objext conftest$ac_exeext
13014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_lib_ucb_getpagesize=yes
13036else
13037 echo "$as_me: failed program was:" >&5
13038sed 's/^/| /' conftest.$ac_ext >&5
13039
13040ac_cv_lib_ucb_getpagesize=no
13041fi
13042rm -f conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044LIBS=$ac_check_lib_save_LIBS
13045fi
13046echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
13047echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
13048if test $ac_cv_lib_ucb_getpagesize = yes; then
13049 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
13050#define HAVE_GETPAGESIZE 1
13051_ACEOF
13052
13053fi
13054
13055
13056fi
13057
13058
13059# Check for broken snprintf
13060if test "x$ac_cv_func_snprintf" = "xyes" ; then
13061 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
13062echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
13063 if test "$cross_compiling" = yes; then
13064 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
13065echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13066
13067else
13068 cat >conftest.$ac_ext <<_ACEOF
13069/* confdefs.h. */
13070_ACEOF
13071cat confdefs.h >>conftest.$ac_ext
13072cat >>conftest.$ac_ext <<_ACEOF
13073/* end confdefs.h. */
13074
13075#include <stdio.h>
13076int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
13077
13078_ACEOF
13079rm -f conftest$ac_exeext
13080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 echo "$as_me:$LINENO: result: yes" >&5
13091echo "${ECHO_T}yes" >&6
13092else
13093 echo "$as_me: program exited with status $ac_status" >&5
13094echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097( exit $ac_status )
13098
13099 echo "$as_me:$LINENO: result: no" >&5
13100echo "${ECHO_T}no" >&6
13101 cat >>confdefs.h <<\_ACEOF
13102#define BROKEN_SNPRINTF 1
13103_ACEOF
13104
13105 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
13106echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
13107
13108fi
13109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13110fi
13111fi
13112
13113# Check for missing getpeereid (or equiv) support
13114NO_PEERCHECK=""
13115if test "x$ac_cv_func_getpeereid" != "xyes" ; then
13116 echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
13117echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6
13118 cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124#include <sys/types.h>
13125 #include <sys/socket.h>
13126int
13127main ()
13128{
13129int i = SO_PEERCRED;
13130 ;
13131 return 0;
13132}
13133_ACEOF
13134rm -f conftest.$ac_objext
13135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13136 (eval $ac_compile) 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag"
13144 || test ! -s conftest.err'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 echo "$as_me:$LINENO: result: yes" >&5
13157echo "${ECHO_T}yes" >&6
13158
13159cat >>confdefs.h <<\_ACEOF
13160#define HAVE_SO_PEERCRED
13161_ACEOF
13162
13163
13164else
13165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168echo "$as_me:$LINENO: result: no" >&5
13169echo "${ECHO_T}no" >&6
13170 NO_PEERCHECK=1
13171
13172fi
13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174fi
13175
13176if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
13177echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
13178echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
13179if test "$cross_compiling" = yes; then
13180
13181 echo "$as_me:$LINENO: result: yes" >&5
13182echo "${ECHO_T}yes" >&6
13183 cat >>confdefs.h <<\_ACEOF
13184#define HAVE_STRICT_MKSTEMP 1
13185_ACEOF
13186
13187
13188
13189else
13190 cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h. */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h. */
13196
13197#include <stdlib.h>
13198main() { char template[]="conftest.mkstemp-test";
13199if (mkstemp(template) == -1)
13200 exit(1);
13201unlink(template); exit(0);
13202}
13203
13204_ACEOF
13205rm -f conftest$ac_exeext
13206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13207 (eval $ac_link) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216
13217 echo "$as_me:$LINENO: result: no" >&5
13218echo "${ECHO_T}no" >&6
13219
13220else
13221 echo "$as_me: program exited with status $ac_status" >&5
13222echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225( exit $ac_status )
13226
13227 echo "$as_me:$LINENO: result: yes" >&5
13228echo "${ECHO_T}yes" >&6
13229 cat >>confdefs.h <<\_ACEOF
13230#define HAVE_STRICT_MKSTEMP 1
13231_ACEOF
13232
13233
13234fi
13235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13236fi
13237fi
13238
13239if test ! -z "$check_for_openpty_ctty_bug"; then
13240 echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
13241echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
13242 if test "$cross_compiling" = yes; then
13243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13244See \`config.log' for more details." >&5
13245echo "$as_me: error: cannot run test program while cross compiling
13246See \`config.log' for more details." >&2;}
13247 { (exit 1); exit 1; }; }
13248else
13249 cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255
13256#include <stdio.h>
13257#include <sys/fcntl.h>
13258#include <sys/types.h>
13259#include <sys/wait.h>
13260
13261int
13262main()
13263{
13264 pid_t pid;
13265 int fd, ptyfd, ttyfd, status;
13266
13267 pid = fork();
13268 if (pid < 0) { /* failed */
13269 exit(1);
13270 } else if (pid > 0) { /* parent */
13271 waitpid(pid, &status, 0);
13272 if (WIFEXITED(status))
13273 exit(WEXITSTATUS(status));
13274 else
13275 exit(2);
13276 } else { /* child */
13277 close(0); close(1); close(2);
13278 setsid();
13279 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
13280 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
13281 if (fd >= 0)
13282 exit(3); /* Acquired ctty: broken */
13283 else
13284 exit(0); /* Did not acquire ctty: OK */
13285 }
13286}
13287
13288_ACEOF
13289rm -f conftest$ac_exeext
13290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300
13301 echo "$as_me:$LINENO: result: yes" >&5
13302echo "${ECHO_T}yes" >&6
13303
13304else
13305 echo "$as_me: program exited with status $ac_status" >&5
13306echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309( exit $ac_status )
13310
13311 echo "$as_me:$LINENO: result: no" >&5
13312echo "${ECHO_T}no" >&6
13313 cat >>confdefs.h <<\_ACEOF
13314#define SSHD_ACQUIRES_CTTY 1
13315_ACEOF
13316
13317
13318
13319fi
13320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13321fi
13322fi
13323
13324if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13325 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
13326 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13327echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13328 if test "$cross_compiling" = yes; then
13329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13330See \`config.log' for more details." >&5
13331echo "$as_me: error: cannot run test program while cross compiling
13332See \`config.log' for more details." >&2;}
13333 { (exit 1); exit 1; }; }
13334else
13335 cat >conftest.$ac_ext <<_ACEOF
13336/* confdefs.h. */
13337_ACEOF
13338cat confdefs.h >>conftest.$ac_ext
13339cat >>conftest.$ac_ext <<_ACEOF
13340/* end confdefs.h. */
13341
13342#include <stdio.h>
13343#include <sys/socket.h>
13344#include <netdb.h>
13345#include <errno.h>
13346#include <netinet/in.h>
13347
13348#define TEST_PORT "2222"
13349
13350int
13351main(void)
13352{
13353 int err, sock;
13354 struct addrinfo *gai_ai, *ai, hints;
13355 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
13356
13357 memset(&hints, 0, sizeof(hints));
13358 hints.ai_family = PF_UNSPEC;
13359 hints.ai_socktype = SOCK_STREAM;
13360 hints.ai_flags = AI_PASSIVE;
13361
13362 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
13363 if (err != 0) {
13364 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
13365 exit(1);
13366 }
13367
13368 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
13369 if (ai->ai_family != AF_INET6)
13370 continue;
13371
13372 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
13373 sizeof(ntop), strport, sizeof(strport),
13374 NI_NUMERICHOST|NI_NUMERICSERV);
13375
13376 if (err != 0) {
13377 if (err == EAI_SYSTEM)
13378 perror("getnameinfo EAI_SYSTEM");
13379 else
13380 fprintf(stderr, "getnameinfo failed: %s\n",
13381 gai_strerror(err));
13382 exit(2);
13383 }
13384
13385 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
13386 if (sock < 0)
13387 perror("socket");
13388 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
13389 if (errno == EBADF)
13390 exit(3);
13391 }
13392 }
13393 exit(0);
13394}
13395
13396_ACEOF
13397rm -f conftest$ac_exeext
13398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408
13409 echo "$as_me:$LINENO: result: yes" >&5
13410echo "${ECHO_T}yes" >&6
13411
13412else
13413 echo "$as_me: program exited with status $ac_status" >&5
13414echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417( exit $ac_status )
13418
13419 echo "$as_me:$LINENO: result: no" >&5
13420echo "${ECHO_T}no" >&6
13421 cat >>confdefs.h <<\_ACEOF
13422#define BROKEN_GETADDRINFO 1
13423_ACEOF
13424
13425
13426
13427fi
13428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13429fi
13430fi
13431
13432if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
13433 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
13434 echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
13435echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
13436 if test "$cross_compiling" = yes; then
13437 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13438See \`config.log' for more details." >&5
13439echo "$as_me: error: cannot run test program while cross compiling
13440See \`config.log' for more details." >&2;}
13441 { (exit 1); exit 1; }; }
13442else
13443 cat >conftest.$ac_ext <<_ACEOF
13444/* confdefs.h. */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h. */
13449
13450#include <stdio.h>
13451#include <sys/socket.h>
13452#include <netdb.h>
13453#include <errno.h>
13454#include <netinet/in.h>
13455
13456#define TEST_PORT "2222"
13457
13458int
13459main(void)
13460{
13461 int err, sock;
13462 struct addrinfo *gai_ai, *ai, hints;
13463 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
13464
13465 memset(&hints, 0, sizeof(hints));
13466 hints.ai_family = PF_UNSPEC;
13467 hints.ai_socktype = SOCK_STREAM;
13468 hints.ai_flags = AI_PASSIVE;
13469
13470 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
13471 if (err != 0) {
13472 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
13473 exit(1);
13474 }
13475
13476 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
13477 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
13478 continue;
13479
13480 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
13481 sizeof(ntop), strport, sizeof(strport),
13482 NI_NUMERICHOST|NI_NUMERICSERV);
13483
13484 if (ai->ai_family == AF_INET && err != 0) {
13485 perror("getnameinfo");
13486 exit(2);
13487 }
13488 }
13489 exit(0);
13490}
13491
13492_ACEOF
13493rm -f conftest$ac_exeext
13494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504
13505 echo "$as_me:$LINENO: result: yes" >&5
13506echo "${ECHO_T}yes" >&6
13507
13508cat >>confdefs.h <<\_ACEOF
13509#define AIX_GETNAMEINFO_HACK
13510_ACEOF
13511
13512
13513else
13514 echo "$as_me: program exited with status $ac_status" >&5
13515echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518( exit $ac_status )
13519
13520 echo "$as_me:$LINENO: result: no" >&5
13521echo "${ECHO_T}no" >&6
13522 cat >>confdefs.h <<\_ACEOF
13523#define BROKEN_GETADDRINFO 1
13524_ACEOF
13525
13526
13527
13528fi
13529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13530fi
13531fi
13532
13533if test "x$check_for_conflicting_getspnam" = "x1"; then
13534 echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
13535echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13537
13538#include <shadow.h>
13539int main(void) {exit(0);}
13540
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13544 (eval $ac_compile) 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag"
13552 || test ! -s conftest.err'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; } &&
13558 { ac_try='test -s conftest.$ac_objext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564
13565 echo "$as_me:$LINENO: result: no" >&5
13566echo "${ECHO_T}no" >&6
13567
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
13572
13573 echo "$as_me:$LINENO: result: yes" >&5
13574echo "${ECHO_T}yes" >&6
13575
13576cat >>confdefs.h <<\_ACEOF
13577#define GETSPNAM_CONFLICTING_DEFS 1
13578_ACEOF
13579
13580
13581
13582fi
13583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13584fi
13585
13586echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13587echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13588if test "${ac_cv_func_getpgrp_void+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590else
13591 # Use it with a single arg.
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598$ac_includes_default
13599int
13600main ()
13601{
13602getpgrp (0);
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext
13608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_func_getpgrp_void=no
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
13634ac_cv_func_getpgrp_void=yes
13635fi
13636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637
13638fi
13639echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13640echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13641if test $ac_cv_func_getpgrp_void = yes; then
13642
13643cat >>confdefs.h <<\_ACEOF
13644#define GETPGRP_VOID 1
13645_ACEOF
13646
13647fi
13648
13649
13650# Check for PAM libs
13651PAM_MSG="no"
13652
13653# Check whether --with-pam or --without-pam was given.
13654if test "${with_pam+set}" = set; then
13655 withval="$with_pam"
13656
13657 if test "x$withval" != "xno" ; then
13658 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
13659 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
13660 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
13661echo "$as_me: error: PAM headers not found" >&2;}
13662 { (exit 1); exit 1; }; }
13663 fi
13664
13665
13666echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 ac_check_lib_save_LIBS=$LIBS
13672LIBS="-ldl $LIBS"
13673cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679
13680/* Override any gcc2 internal prototype to avoid an error. */
13681#ifdef __cplusplus
13682extern "C"
13683#endif
13684/* We use char because int might match the return type of a gcc2
13685 builtin and then its argument prototype would still apply. */
13686char dlopen ();
13687int
13688main ()
13689{
13690dlopen ();
13691 ;
13692 return 0;
13693}
13694_ACEOF
13695rm -f conftest.$ac_objext conftest$ac_exeext
13696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_lib_dl_dlopen=yes
13718else
13719 echo "$as_me: failed program was:" >&5
13720sed 's/^/| /' conftest.$ac_ext >&5
13721
13722ac_cv_lib_dl_dlopen=no
13723fi
13724rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726LIBS=$ac_check_lib_save_LIBS
13727fi
13728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13730if test $ac_cv_lib_dl_dlopen = yes; then
13731 cat >>confdefs.h <<_ACEOF
13732#define HAVE_LIBDL 1
13733_ACEOF
13734
13735 LIBS="-ldl $LIBS"
13736
13737fi
13738
13739
13740echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
13741echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
13742if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 ac_check_lib_save_LIBS=$LIBS
13746LIBS="-lpam $LIBS"
13747cat >conftest.$ac_ext <<_ACEOF
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753
13754/* Override any gcc2 internal prototype to avoid an error. */
13755#ifdef __cplusplus
13756extern "C"
13757#endif
13758/* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760char pam_set_item ();
13761int
13762main ()
13763{
13764pam_set_item ();
13765 ;
13766 return 0;
13767}
13768_ACEOF
13769rm -f conftest.$ac_objext conftest$ac_exeext
13770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -z "$ac_c_werror_flag"
13779 || test ! -s conftest.err'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; } &&
13785 { ac_try='test -s conftest$ac_exeext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_lib_pam_pam_set_item=yes
13792else
13793 echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
13796ac_cv_lib_pam_pam_set_item=no
13797fi
13798rm -f conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
13800LIBS=$ac_check_lib_save_LIBS
13801fi
13802echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
13803echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
13804if test $ac_cv_lib_pam_pam_set_item = yes; then
13805 cat >>confdefs.h <<_ACEOF
13806#define HAVE_LIBPAM 1
13807_ACEOF
13808
13809 LIBS="-lpam $LIBS"
13810
13811else
13812 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
13813echo "$as_me: error: *** libpam missing" >&2;}
13814 { (exit 1); exit 1; }; }
13815fi
13816
13817
13818for ac_func in pam_getenvlist
13819do
13820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13821echo "$as_me:$LINENO: checking for $ac_func" >&5
13822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13823if eval "test \"\${$as_ac_var+set}\" = set"; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
13826 cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
13832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13834#define $ac_func innocuous_$ac_func
13835
13836/* System header to define __stub macros and hopefully few prototypes,
13837 which can conflict with char $ac_func (); below.
13838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13839 <limits.h> exists even on freestanding compilers. */
13840
13841#ifdef __STDC__
13842# include <limits.h>
13843#else
13844# include <assert.h>
13845#endif
13846
13847#undef $ac_func
13848
13849/* Override any gcc2 internal prototype to avoid an error. */
13850#ifdef __cplusplus
13851extern "C"
13852{
13853#endif
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char $ac_func ();
13857/* The GNU C library defines this for functions which it implements
13858 to always fail with ENOSYS. Some functions are actually named
13859 something starting with __ and the normal name is an alias. */
13860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13861choke me
13862#else
13863char (*f) () = $ac_func;
13864#endif
13865#ifdef __cplusplus
13866}
13867#endif
13868
13869int
13870main ()
13871{
13872return f != $ac_func;
13873 ;
13874 return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879 (eval $ac_link) 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 eval "$as_ac_var=yes"
13900else
13901 echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904eval "$as_ac_var=no"
13905fi
13906rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908fi
13909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13911if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917done
13918
13919
13920for ac_func in pam_putenv
13921do
13922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923echo "$as_me:$LINENO: checking for $ac_func" >&5
13924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13925if eval "test \"\${$as_ac_var+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927else
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13936#define $ac_func innocuous_$ac_func
13937
13938/* System header to define __stub macros and hopefully few prototypes,
13939 which can conflict with char $ac_func (); below.
13940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13941 <limits.h> exists even on freestanding compilers. */
13942
13943#ifdef __STDC__
13944# include <limits.h>
13945#else
13946# include <assert.h>
13947#endif
13948
13949#undef $ac_func
13950
13951/* Override any gcc2 internal prototype to avoid an error. */
13952#ifdef __cplusplus
13953extern "C"
13954{
13955#endif
13956/* We use char because int might match the return type of a gcc2
13957 builtin and then its argument prototype would still apply. */
13958char $ac_func ();
13959/* The GNU C library defines this for functions which it implements
13960 to always fail with ENOSYS. Some functions are actually named
13961 something starting with __ and the normal name is an alias. */
13962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13963choke me
13964#else
13965char (*f) () = $ac_func;
13966#endif
13967#ifdef __cplusplus
13968}
13969#endif
13970
13971int
13972main ()
13973{
13974return f != $ac_func;
13975 ;
13976 return 0;
13977}
13978_ACEOF
13979rm -f conftest.$ac_objext conftest$ac_exeext
13980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag"
13989 || test ! -s conftest.err'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 eval "$as_ac_var=yes"
14002else
14003 echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006eval "$as_ac_var=no"
14007fi
14008rm -f conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010fi
14011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14013if test `eval echo '${'$as_ac_var'}'` = yes; then
14014 cat >>confdefs.h <<_ACEOF
14015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14016_ACEOF
14017
14018fi
14019done
14020
14021
14022 PAM_MSG="yes"
14023
14024 cat >>confdefs.h <<\_ACEOF
14025#define USE_PAM 1
14026_ACEOF
14027
14028 if test $ac_cv_lib_dl_dlopen = yes; then
14029 LIBPAM="-lpam -ldl"
14030 else
14031 LIBPAM="-lpam"
14032 fi
14033
14034 fi
14035
14036
14037fi;
14038
14039# Check for older PAM
14040if test "x$PAM_MSG" = "xyes" ; then
14041 # Check PAM strerror arguments (old PAM)
14042 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
14043echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050
14051#include <stdlib.h>
14052#if defined(HAVE_SECURITY_PAM_APPL_H)
14053#include <security/pam_appl.h>
14054#elif defined (HAVE_PAM_PAM_APPL_H)
14055#include <pam/pam_appl.h>
14056#endif
14057
14058int
14059main ()
14060{
14061(void)pam_strerror((pam_handle_t *)NULL, -1);
14062 ;
14063 return 0;
14064}
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 echo "$as_me:$LINENO: result: no" >&5
14089echo "${ECHO_T}no" >&6
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
14094
14095 cat >>confdefs.h <<\_ACEOF
14096#define HAVE_OLD_PAM 1
14097_ACEOF
14098
14099 echo "$as_me:$LINENO: result: yes" >&5
14100echo "${ECHO_T}yes" >&6
14101 PAM_MSG="yes (old library)"
14102
14103
14104fi
14105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106fi
14107
14108# Search for OpenSSL
14109saved_CPPFLAGS="$CPPFLAGS"
14110saved_LDFLAGS="$LDFLAGS"
14111
14112# Check whether --with-ssl-dir or --without-ssl-dir was given.
14113if test "${with_ssl_dir+set}" = set; then
14114 withval="$with_ssl_dir"
14115
14116 if test "x$withval" != "xno" ; then
14117 case "$withval" in
14118 # Relative paths
14119 ./*|../*) withval="`pwd`/$withval"
14120 esac
14121 if test -d "$withval/lib"; then
14122 if test -n "${need_dash_r}"; then
14123 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
14124 else
14125 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
14126 fi
14127 else
14128 if test -n "${need_dash_r}"; then
14129 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
14130 else
14131 LDFLAGS="-L${withval} ${LDFLAGS}"
14132 fi
14133 fi
14134 if test -d "$withval/include"; then
14135 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
14136 else
14137 CPPFLAGS="-I${withval} ${CPPFLAGS}"
14138 fi
14139 fi
14140
14141
14142fi;
14143LIBS="-lcrypto $LIBS"
14144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150
14151/* Override any gcc2 internal prototype to avoid an error. */
14152#ifdef __cplusplus
14153extern "C"
14154#endif
14155/* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157char RAND_add ();
14158int
14159main ()
14160{
14161RAND_add ();
14162 ;
14163 return 0;
14164}
14165_ACEOF
14166rm -f conftest.$ac_objext conftest$ac_exeext
14167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 cat >>confdefs.h <<\_ACEOF
14189#define HAVE_OPENSSL 1
14190_ACEOF
14191
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196
14197 if test -n "${need_dash_r}"; then
14198 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
14199 else
14200 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
14201 fi
14202 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
14203 cat >conftest.$ac_ext <<_ACEOF
14204/* confdefs.h. */
14205_ACEOF
14206cat confdefs.h >>conftest.$ac_ext
14207cat >>conftest.$ac_ext <<_ACEOF
14208/* end confdefs.h. */
14209
14210/* Override any gcc2 internal prototype to avoid an error. */
14211#ifdef __cplusplus
14212extern "C"
14213#endif
14214/* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14216char RAND_add ();
14217int
14218main ()
14219{
14220RAND_add ();
14221 ;
14222 return 0;
14223}
14224_ACEOF
14225rm -f conftest.$ac_objext conftest$ac_exeext
14226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag"
14235 || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 cat >>confdefs.h <<\_ACEOF
14248#define HAVE_OPENSSL 1
14249_ACEOF
14250
14251else
14252 echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255
14256 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
14257echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
14258 { (exit 1); exit 1; }; }
14259
14260
14261fi
14262rm -f conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264
14265
14266fi
14267rm -f conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269
14270# Determine OpenSSL header version
14271echo "$as_me:$LINENO: checking OpenSSL header version" >&5
14272echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
14273if test "$cross_compiling" = yes; then
14274
14275 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14276echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14277
14278
14279else
14280 cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
14286
14287#include <stdio.h>
14288#include <string.h>
14289#include <openssl/opensslv.h>
14290#define DATA "conftest.sslincver"
14291int main(void) {
14292 FILE *fd;
14293 int rc;
14294
14295 fd = fopen(DATA,"w");
14296 if(fd == NULL)
14297 exit(1);
14298
14299 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
14300 exit(1);
14301
14302 exit(0);
14303}
14304
14305_ACEOF
14306rm -f conftest$ac_exeext
14307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308 (eval $ac_link) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317
14318 ssl_header_ver=`cat conftest.sslincver`
14319 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
14320echo "${ECHO_T}$ssl_header_ver" >&6
14321
14322else
14323 echo "$as_me: program exited with status $ac_status" >&5
14324echo "$as_me: failed program was:" >&5
14325sed 's/^/| /' conftest.$ac_ext >&5
14326
14327( exit $ac_status )
14328
14329 echo "$as_me:$LINENO: result: not found" >&5
14330echo "${ECHO_T}not found" >&6
14331 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
14332echo "$as_me: error: OpenSSL version header not found." >&2;}
14333 { (exit 1); exit 1; }; }
14334
14335fi
14336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14337fi
14338
14339# Determine OpenSSL library version
14340echo "$as_me:$LINENO: checking OpenSSL library version" >&5
14341echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
14342if test "$cross_compiling" = yes; then
14343
14344 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14345echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14346
14347
14348else
14349 cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355
14356#include <stdio.h>
14357#include <string.h>
14358#include <openssl/opensslv.h>
14359#include <openssl/crypto.h>
14360#define DATA "conftest.ssllibver"
14361int main(void) {
14362 FILE *fd;
14363 int rc;
14364
14365 fd = fopen(DATA,"w");
14366 if(fd == NULL)
14367 exit(1);
14368
14369 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
14370 exit(1);
14371
14372 exit(0);
14373}
14374
14375_ACEOF
14376rm -f conftest$ac_exeext
14377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387
14388 ssl_library_ver=`cat conftest.ssllibver`
14389 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
14390echo "${ECHO_T}$ssl_library_ver" >&6
14391
14392else
14393 echo "$as_me: program exited with status $ac_status" >&5
14394echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397( exit $ac_status )
14398
14399 echo "$as_me:$LINENO: result: not found" >&5
14400echo "${ECHO_T}not found" >&6
14401 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
14402echo "$as_me: error: OpenSSL library not found." >&2;}
14403 { (exit 1); exit 1; }; }
14404
14405fi
14406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14407fi
14408
14409# Sanity check OpenSSL headers
14410echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
14411echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
14412if test "$cross_compiling" = yes; then
14413
14414 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
14415echo "$as_me: WARNING: cross compiling: not checking" >&2;}
14416
14417
14418else
14419 cat >conftest.$ac_ext <<_ACEOF
14420/* confdefs.h. */
14421_ACEOF
14422cat confdefs.h >>conftest.$ac_ext
14423cat >>conftest.$ac_ext <<_ACEOF
14424/* end confdefs.h. */
14425
14426#include <string.h>
14427#include <openssl/opensslv.h>
14428int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
14429
14430_ACEOF
14431rm -f conftest$ac_exeext
14432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433 (eval $ac_link) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442
14443 echo "$as_me:$LINENO: result: yes" >&5
14444echo "${ECHO_T}yes" >&6
14445
14446else
14447 echo "$as_me: program exited with status $ac_status" >&5
14448echo "$as_me: failed program was:" >&5
14449sed 's/^/| /' conftest.$ac_ext >&5
14450
14451( exit $ac_status )
14452
14453 echo "$as_me:$LINENO: result: no" >&5
14454echo "${ECHO_T}no" >&6
14455 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library.
14456Check config.log for details.
14457Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
14458echo "$as_me: error: Your OpenSSL headers do not match your library.
14459Check config.log for details.
14460Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
14461 { (exit 1); exit 1; }; }
14462
14463fi
14464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14465fi
14466
14467# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
14468# because the system crypt() is more featureful.
14469if test "x$check_for_libcrypt_before" = "x1"; then
14470
14471echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14472echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14473if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475else
14476 ac_check_lib_save_LIBS=$LIBS
14477LIBS="-lcrypt $LIBS"
14478cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h. */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h. */
14484
14485/* Override any gcc2 internal prototype to avoid an error. */
14486#ifdef __cplusplus
14487extern "C"
14488#endif
14489/* We use char because int might match the return type of a gcc2
14490 builtin and then its argument prototype would still apply. */
14491char crypt ();
14492int
14493main ()
14494{
14495crypt ();
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext conftest$ac_exeext
14501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_cv_lib_crypt_crypt=yes
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527ac_cv_lib_crypt_crypt=no
14528fi
14529rm -f conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14531LIBS=$ac_check_lib_save_LIBS
14532fi
14533echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14534echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14535if test $ac_cv_lib_crypt_crypt = yes; then
14536 cat >>confdefs.h <<_ACEOF
14537#define HAVE_LIBCRYPT 1
14538_ACEOF
14539
14540 LIBS="-lcrypt $LIBS"
14541
14542fi
14543
14544fi
14545
14546# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
14547# version in OpenSSL.
14548if test "x$check_for_libcrypt_later" = "x1"; then
14549 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14550echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14551if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553else
14554 ac_check_lib_save_LIBS=$LIBS
14555LIBS="-lcrypt $LIBS"
14556cat >conftest.$ac_ext <<_ACEOF
14557/* confdefs.h. */
14558_ACEOF
14559cat confdefs.h >>conftest.$ac_ext
14560cat >>conftest.$ac_ext <<_ACEOF
14561/* end confdefs.h. */
14562
14563/* Override any gcc2 internal prototype to avoid an error. */
14564#ifdef __cplusplus
14565extern "C"
14566#endif
14567/* We use char because int might match the return type of a gcc2
14568 builtin and then its argument prototype would still apply. */
14569char crypt ();
14570int
14571main ()
14572{
14573crypt ();
14574 ;
14575 return 0;
14576}
14577_ACEOF
14578rm -f conftest.$ac_objext conftest$ac_exeext
14579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580 (eval $ac_link) 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest$ac_exeext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_lib_crypt_crypt=yes
14601else
14602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605ac_cv_lib_crypt_crypt=no
14606fi
14607rm -f conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609LIBS=$ac_check_lib_save_LIBS
14610fi
14611echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14612echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14613if test $ac_cv_lib_crypt_crypt = yes; then
14614 LIBS="$LIBS -lcrypt"
14615fi
14616
14617fi
14618
14619
14620echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
14621echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6
14622if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624else
14625 ac_check_lib_save_LIBS=$LIBS
14626LIBS="-liaf $LIBS"
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633
14634/* Override any gcc2 internal prototype to avoid an error. */
14635#ifdef __cplusplus
14636extern "C"
14637#endif
14638/* We use char because int might match the return type of a gcc2
14639 builtin and then its argument prototype would still apply. */
14640char ia_openinfo ();
14641int
14642main ()
14643{
14644ia_openinfo ();
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext conftest$ac_exeext
14650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_cv_lib_iaf_ia_openinfo=yes
14672else
14673 echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
14676ac_cv_lib_iaf_ia_openinfo=no
14677fi
14678rm -f conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680LIBS=$ac_check_lib_save_LIBS
14681fi
14682echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
14683echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6
14684if test $ac_cv_lib_iaf_ia_openinfo = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686#define HAVE_LIBIAF 1
14687_ACEOF
14688
14689 LIBS="-liaf $LIBS"
14690
14691fi
14692
14693
14694### Configure cryptographic random number support
14695
14696# Check wheter OpenSSL seeds itself
14697echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
14698echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
14699if test "$cross_compiling" = yes; then
14700
14701 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
14702echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
14703 # This is safe, since all recent OpenSSL versions will
14704 # complain at runtime if not seeded correctly.
14705 OPENSSL_SEEDS_ITSELF=yes
14706
14707
14708else
14709 cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
14715
14716#include <string.h>
14717#include <openssl/rand.h>
14718int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
14719
14720_ACEOF
14721rm -f conftest$ac_exeext
14722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14723 (eval $ac_link) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732
14733 OPENSSL_SEEDS_ITSELF=yes
14734 echo "$as_me:$LINENO: result: yes" >&5
14735echo "${ECHO_T}yes" >&6
14736
14737else
14738 echo "$as_me: program exited with status $ac_status" >&5
14739echo "$as_me: failed program was:" >&5
14740sed 's/^/| /' conftest.$ac_ext >&5
14741
14742( exit $ac_status )
14743
14744 echo "$as_me:$LINENO: result: no" >&5
14745echo "${ECHO_T}no" >&6
14746 # Default to use of the rand helper if OpenSSL doesn't
14747 # seed itself
14748 USE_RAND_HELPER=yes
14749
14750fi
14751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14752fi
14753
14754
14755# Do we want to force the use of the rand helper?
14756
14757# Check whether --with-rand-helper or --without-rand-helper was given.
14758if test "${with_rand_helper+set}" = set; then
14759 withval="$with_rand_helper"
14760
14761 if test "x$withval" = "xno" ; then
14762 # Force use of OpenSSL's internal RNG, even if
14763 # the previous test showed it to be unseeded.
14764 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
14765 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
14766echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
14767 OPENSSL_SEEDS_ITSELF=yes
14768 USE_RAND_HELPER=""
14769 fi
14770 else
14771 USE_RAND_HELPER=yes
14772 fi
14773
14774fi;
14775
14776# Which randomness source do we use?
14777if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
14778 # OpenSSL only
14779 cat >>confdefs.h <<\_ACEOF
14780#define OPENSSL_PRNG_ONLY 1
14781_ACEOF
14782
14783 RAND_MSG="OpenSSL internal ONLY"
14784 INSTALL_SSH_RAND_HELPER=""
14785elif test ! -z "$USE_RAND_HELPER" ; then
14786 # install rand helper
14787 RAND_MSG="ssh-rand-helper"
14788 INSTALL_SSH_RAND_HELPER="yes"
14789fi
14790
14791
14792### Configuration of ssh-rand-helper
14793
14794# PRNGD TCP socket
14795
14796# Check whether --with-prngd-port or --without-prngd-port was given.
14797if test "${with_prngd_port+set}" = set; then
14798 withval="$with_prngd_port"
14799
14800 case "$withval" in
14801 no)
14802 withval=""
14803 ;;
14804 [0-9]*)
14805 ;;
14806 *)
14807 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
14808echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
14809 { (exit 1); exit 1; }; }
14810 ;;
14811 esac
14812 if test ! -z "$withval" ; then
14813 PRNGD_PORT="$withval"
14814 cat >>confdefs.h <<_ACEOF
14815#define PRNGD_PORT $PRNGD_PORT
14816_ACEOF
14817
14818 fi
14819
14820
14821fi;
14822
14823# PRNGD Unix domain socket
14824
14825# Check whether --with-prngd-socket or --without-prngd-socket was given.
14826if test "${with_prngd_socket+set}" = set; then
14827 withval="$with_prngd_socket"
14828
14829 case "$withval" in
14830 yes)
14831 withval="/var/run/egd-pool"
14832 ;;
14833 no)
14834 withval=""
14835 ;;
14836 /*)
14837 ;;
14838 *)
14839 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
14840echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
14841 { (exit 1); exit 1; }; }
14842 ;;
14843 esac
14844
14845 if test ! -z "$withval" ; then
14846 if test ! -z "$PRNGD_PORT" ; then
14847 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
14848echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
14849 { (exit 1); exit 1; }; }
14850 fi
14851 if test ! -r "$withval" ; then
14852 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
14853echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
14854 fi
14855 PRNGD_SOCKET="$withval"
14856 cat >>confdefs.h <<_ACEOF
14857#define PRNGD_SOCKET "$PRNGD_SOCKET"
14858_ACEOF
14859
14860 fi
14861
14862else
14863
14864 # Check for existing socket only if we don't have a random device already
14865 if test "$USE_RAND_HELPER" = yes ; then
14866 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
14867echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
14868 # Insert other locations here
14869 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
14870 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
14871 PRNGD_SOCKET="$sock"
14872 cat >>confdefs.h <<_ACEOF
14873#define PRNGD_SOCKET "$PRNGD_SOCKET"
14874_ACEOF
14875
14876 break;
14877 fi
14878 done
14879 if test ! -z "$PRNGD_SOCKET" ; then
14880 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
14881echo "${ECHO_T}$PRNGD_SOCKET" >&6
14882 else
14883 echo "$as_me:$LINENO: result: not found" >&5
14884echo "${ECHO_T}not found" >&6
14885 fi
14886 fi
14887
14888
14889fi;
14890
14891# Change default command timeout for hashing entropy source
14892entropy_timeout=200
14893
14894# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
14895if test "${with_entropy_timeout+set}" = set; then
14896 withval="$with_entropy_timeout"
14897
14898 if test -n "$withval" && test "x$withval" != "xno" && \
14899 test "x${withval}" != "xyes"; then
14900 entropy_timeout=$withval
14901 fi
14902
14903
14904fi;
14905cat >>confdefs.h <<_ACEOF
14906#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
14907_ACEOF
14908
14909
14910SSH_PRIVSEP_USER=sshd
14911
14912# Check whether --with-privsep-user or --without-privsep-user was given.
14913if test "${with_privsep_user+set}" = set; then
14914 withval="$with_privsep_user"
14915
14916 if test -n "$withval" && test "x$withval" != "xno" && \
14917 test "x${withval}" != "xyes"; then
14918 SSH_PRIVSEP_USER=$withval
14919 fi
14920
14921
14922fi;
14923cat >>confdefs.h <<_ACEOF
14924#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
14925_ACEOF
14926
14927
14928
14929# We do this little dance with the search path to insure
14930# that programs that we select for use by installed programs
14931# (which may be run by the super-user) come from trusted
14932# locations before they come from the user's private area.
14933# This should help avoid accidentally configuring some
14934# random version of a program in someone's personal bin.
14935
14936OPATH=$PATH
14937PATH=/bin:/usr/bin
14938test -h /bin 2> /dev/null && PATH=/usr/bin
14939test -d /sbin && PATH=$PATH:/sbin
14940test -d /usr/sbin && PATH=$PATH:/usr/sbin
14941PATH=$PATH:/etc:$OPATH
14942
14943# These programs are used by the command hashing source to gather entropy
14944
14945 # Extract the first word of "ls", so it can be a program name with args.
14946set dummy ls; ac_word=$2
14947echo "$as_me:$LINENO: checking for $ac_word" >&5
14948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14949if test "${ac_cv_path_PROG_LS+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
14952 case $PROG_LS in
14953 [\\/]* | ?:[\\/]*)
14954 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
14955 ;;
14956 *)
14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958for as_dir in $PATH
14959do
14960 IFS=$as_save_IFS
14961 test -z "$as_dir" && as_dir=.
14962 for ac_exec_ext in '' $ac_executable_extensions; do
14963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14964 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
14965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14966 break 2
14967 fi
14968done
14969done
14970
14971 ;;
14972esac
14973fi
14974PROG_LS=$ac_cv_path_PROG_LS
14975
14976if test -n "$PROG_LS"; then
14977 echo "$as_me:$LINENO: result: $PROG_LS" >&5
14978echo "${ECHO_T}$PROG_LS" >&6
14979else
14980 echo "$as_me:$LINENO: result: no" >&5
14981echo "${ECHO_T}no" >&6
14982fi
14983
14984 if test -z "$PROG_LS" ; then
14985 PROG_LS="undef"
14986 fi
14987
14988
14989
14990 # Extract the first word of "netstat", so it can be a program name with args.
14991set dummy netstat; ac_word=$2
14992echo "$as_me:$LINENO: checking for $ac_word" >&5
14993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14994if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 case $PROG_NETSTAT in
14998 [\\/]* | ?:[\\/]*)
14999 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
15000 ;;
15001 *)
15002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003for as_dir in $PATH
15004do
15005 IFS=$as_save_IFS
15006 test -z "$as_dir" && as_dir=.
15007 for ac_exec_ext in '' $ac_executable_extensions; do
15008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15009 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
15010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15011 break 2
15012 fi
15013done
15014done
15015
15016 ;;
15017esac
15018fi
15019PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
15020
15021if test -n "$PROG_NETSTAT"; then
15022 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
15023echo "${ECHO_T}$PROG_NETSTAT" >&6
15024else
15025 echo "$as_me:$LINENO: result: no" >&5
15026echo "${ECHO_T}no" >&6
15027fi
15028
15029 if test -z "$PROG_NETSTAT" ; then
15030 PROG_NETSTAT="undef"
15031 fi
15032
15033
15034
15035 # Extract the first word of "arp", so it can be a program name with args.
15036set dummy arp; ac_word=$2
15037echo "$as_me:$LINENO: checking for $ac_word" >&5
15038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15039if test "${ac_cv_path_PROG_ARP+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042 case $PROG_ARP in
15043 [\\/]* | ?:[\\/]*)
15044 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
15045 ;;
15046 *)
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048for as_dir in $PATH
15049do
15050 IFS=$as_save_IFS
15051 test -z "$as_dir" && as_dir=.
15052 for ac_exec_ext in '' $ac_executable_extensions; do
15053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
15055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15056 break 2
15057 fi
15058done
15059done
15060
15061 ;;
15062esac
15063fi
15064PROG_ARP=$ac_cv_path_PROG_ARP
15065
15066if test -n "$PROG_ARP"; then
15067 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
15068echo "${ECHO_T}$PROG_ARP" >&6
15069else
15070 echo "$as_me:$LINENO: result: no" >&5
15071echo "${ECHO_T}no" >&6
15072fi
15073
15074 if test -z "$PROG_ARP" ; then
15075 PROG_ARP="undef"
15076 fi
15077
15078
15079
15080 # Extract the first word of "ifconfig", so it can be a program name with args.
15081set dummy ifconfig; ac_word=$2
15082echo "$as_me:$LINENO: checking for $ac_word" >&5
15083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15084if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086else
15087 case $PROG_IFCONFIG in
15088 [\\/]* | ?:[\\/]*)
15089 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
15090 ;;
15091 *)
15092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15093for as_dir in $PATH
15094do
15095 IFS=$as_save_IFS
15096 test -z "$as_dir" && as_dir=.
15097 for ac_exec_ext in '' $ac_executable_extensions; do
15098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15099 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
15100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15101 break 2
15102 fi
15103done
15104done
15105
15106 ;;
15107esac
15108fi
15109PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
15110
15111if test -n "$PROG_IFCONFIG"; then
15112 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
15113echo "${ECHO_T}$PROG_IFCONFIG" >&6
15114else
15115 echo "$as_me:$LINENO: result: no" >&5
15116echo "${ECHO_T}no" >&6
15117fi
15118
15119 if test -z "$PROG_IFCONFIG" ; then
15120 PROG_IFCONFIG="undef"
15121 fi
15122
15123
15124
15125 # Extract the first word of "jstat", so it can be a program name with args.
15126set dummy jstat; ac_word=$2
15127echo "$as_me:$LINENO: checking for $ac_word" >&5
15128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15129if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132 case $PROG_JSTAT in
15133 [\\/]* | ?:[\\/]*)
15134 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
15135 ;;
15136 *)
15137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138for as_dir in $PATH
15139do
15140 IFS=$as_save_IFS
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15144 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
15145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15146 break 2
15147 fi
15148done
15149done
15150
15151 ;;
15152esac
15153fi
15154PROG_JSTAT=$ac_cv_path_PROG_JSTAT
15155
15156if test -n "$PROG_JSTAT"; then
15157 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
15158echo "${ECHO_T}$PROG_JSTAT" >&6
15159else
15160 echo "$as_me:$LINENO: result: no" >&5
15161echo "${ECHO_T}no" >&6
15162fi
15163
15164 if test -z "$PROG_JSTAT" ; then
15165 PROG_JSTAT="undef"
15166 fi
15167
15168
15169
15170 # Extract the first word of "ps", so it can be a program name with args.
15171set dummy ps; ac_word=$2
15172echo "$as_me:$LINENO: checking for $ac_word" >&5
15173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15174if test "${ac_cv_path_PROG_PS+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 case $PROG_PS in
15178 [\\/]* | ?:[\\/]*)
15179 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
15180 ;;
15181 *)
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183for as_dir in $PATH
15184do
15185 IFS=$as_save_IFS
15186 test -z "$as_dir" && as_dir=.
15187 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15189 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
15190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15191 break 2
15192 fi
15193done
15194done
15195
15196 ;;
15197esac
15198fi
15199PROG_PS=$ac_cv_path_PROG_PS
15200
15201if test -n "$PROG_PS"; then
15202 echo "$as_me:$LINENO: result: $PROG_PS" >&5
15203echo "${ECHO_T}$PROG_PS" >&6
15204else
15205 echo "$as_me:$LINENO: result: no" >&5
15206echo "${ECHO_T}no" >&6
15207fi
15208
15209 if test -z "$PROG_PS" ; then
15210 PROG_PS="undef"
15211 fi
15212
15213
15214
15215 # Extract the first word of "sar", so it can be a program name with args.
15216set dummy sar; ac_word=$2
15217echo "$as_me:$LINENO: checking for $ac_word" >&5
15218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15219if test "${ac_cv_path_PROG_SAR+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 case $PROG_SAR in
15223 [\\/]* | ?:[\\/]*)
15224 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
15225 ;;
15226 *)
15227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228for as_dir in $PATH
15229do
15230 IFS=$as_save_IFS
15231 test -z "$as_dir" && as_dir=.
15232 for ac_exec_ext in '' $ac_executable_extensions; do
15233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15234 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
15235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15236 break 2
15237 fi
15238done
15239done
15240
15241 ;;
15242esac
15243fi
15244PROG_SAR=$ac_cv_path_PROG_SAR
15245
15246if test -n "$PROG_SAR"; then
15247 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
15248echo "${ECHO_T}$PROG_SAR" >&6
15249else
15250 echo "$as_me:$LINENO: result: no" >&5
15251echo "${ECHO_T}no" >&6
15252fi
15253
15254 if test -z "$PROG_SAR" ; then
15255 PROG_SAR="undef"
15256 fi
15257
15258
15259
15260 # Extract the first word of "w", so it can be a program name with args.
15261set dummy w; ac_word=$2
15262echo "$as_me:$LINENO: checking for $ac_word" >&5
15263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15264if test "${ac_cv_path_PROG_W+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266else
15267 case $PROG_W in
15268 [\\/]* | ?:[\\/]*)
15269 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
15270 ;;
15271 *)
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273for as_dir in $PATH
15274do
15275 IFS=$as_save_IFS
15276 test -z "$as_dir" && as_dir=.
15277 for ac_exec_ext in '' $ac_executable_extensions; do
15278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15279 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
15280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15281 break 2
15282 fi
15283done
15284done
15285
15286 ;;
15287esac
15288fi
15289PROG_W=$ac_cv_path_PROG_W
15290
15291if test -n "$PROG_W"; then
15292 echo "$as_me:$LINENO: result: $PROG_W" >&5
15293echo "${ECHO_T}$PROG_W" >&6
15294else
15295 echo "$as_me:$LINENO: result: no" >&5
15296echo "${ECHO_T}no" >&6
15297fi
15298
15299 if test -z "$PROG_W" ; then
15300 PROG_W="undef"
15301 fi
15302
15303
15304
15305 # Extract the first word of "who", so it can be a program name with args.
15306set dummy who; ac_word=$2
15307echo "$as_me:$LINENO: checking for $ac_word" >&5
15308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15309if test "${ac_cv_path_PROG_WHO+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311else
15312 case $PROG_WHO in
15313 [\\/]* | ?:[\\/]*)
15314 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
15315 ;;
15316 *)
15317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318for as_dir in $PATH
15319do
15320 IFS=$as_save_IFS
15321 test -z "$as_dir" && as_dir=.
15322 for ac_exec_ext in '' $ac_executable_extensions; do
15323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15324 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
15325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15326 break 2
15327 fi
15328done
15329done
15330
15331 ;;
15332esac
15333fi
15334PROG_WHO=$ac_cv_path_PROG_WHO
15335
15336if test -n "$PROG_WHO"; then
15337 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
15338echo "${ECHO_T}$PROG_WHO" >&6
15339else
15340 echo "$as_me:$LINENO: result: no" >&5
15341echo "${ECHO_T}no" >&6
15342fi
15343
15344 if test -z "$PROG_WHO" ; then
15345 PROG_WHO="undef"
15346 fi
15347
15348
15349
15350 # Extract the first word of "last", so it can be a program name with args.
15351set dummy last; ac_word=$2
15352echo "$as_me:$LINENO: checking for $ac_word" >&5
15353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15354if test "${ac_cv_path_PROG_LAST+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357 case $PROG_LAST in
15358 [\\/]* | ?:[\\/]*)
15359 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
15360 ;;
15361 *)
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363for as_dir in $PATH
15364do
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
15370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15372 fi
15373done
15374done
15375
15376 ;;
15377esac
15378fi
15379PROG_LAST=$ac_cv_path_PROG_LAST
15380
15381if test -n "$PROG_LAST"; then
15382 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
15383echo "${ECHO_T}$PROG_LAST" >&6
15384else
15385 echo "$as_me:$LINENO: result: no" >&5
15386echo "${ECHO_T}no" >&6
15387fi
15388
15389 if test -z "$PROG_LAST" ; then
15390 PROG_LAST="undef"
15391 fi
15392
15393
15394
15395 # Extract the first word of "lastlog", so it can be a program name with args.
15396set dummy lastlog; ac_word=$2
15397echo "$as_me:$LINENO: checking for $ac_word" >&5
15398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15399if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402 case $PROG_LASTLOG in
15403 [\\/]* | ?:[\\/]*)
15404 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
15405 ;;
15406 *)
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408for as_dir in $PATH
15409do
15410 IFS=$as_save_IFS
15411 test -z "$as_dir" && as_dir=.
15412 for ac_exec_ext in '' $ac_executable_extensions; do
15413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15414 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
15415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15416 break 2
15417 fi
15418done
15419done
15420
15421 ;;
15422esac
15423fi
15424PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
15425
15426if test -n "$PROG_LASTLOG"; then
15427 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
15428echo "${ECHO_T}$PROG_LASTLOG" >&6
15429else
15430 echo "$as_me:$LINENO: result: no" >&5
15431echo "${ECHO_T}no" >&6
15432fi
15433
15434 if test -z "$PROG_LASTLOG" ; then
15435 PROG_LASTLOG="undef"
15436 fi
15437
15438
15439
15440 # Extract the first word of "df", so it can be a program name with args.
15441set dummy df; ac_word=$2
15442echo "$as_me:$LINENO: checking for $ac_word" >&5
15443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15444if test "${ac_cv_path_PROG_DF+set}" = set; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15446else
15447 case $PROG_DF in
15448 [\\/]* | ?:[\\/]*)
15449 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
15450 ;;
15451 *)
15452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453for as_dir in $PATH
15454do
15455 IFS=$as_save_IFS
15456 test -z "$as_dir" && as_dir=.
15457 for ac_exec_ext in '' $ac_executable_extensions; do
15458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
15460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15461 break 2
15462 fi
15463done
15464done
15465
15466 ;;
15467esac
15468fi
15469PROG_DF=$ac_cv_path_PROG_DF
15470
15471if test -n "$PROG_DF"; then
15472 echo "$as_me:$LINENO: result: $PROG_DF" >&5
15473echo "${ECHO_T}$PROG_DF" >&6
15474else
15475 echo "$as_me:$LINENO: result: no" >&5
15476echo "${ECHO_T}no" >&6
15477fi
15478
15479 if test -z "$PROG_DF" ; then
15480 PROG_DF="undef"
15481 fi
15482
15483
15484
15485 # Extract the first word of "vmstat", so it can be a program name with args.
15486set dummy vmstat; ac_word=$2
15487echo "$as_me:$LINENO: checking for $ac_word" >&5
15488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15489if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491else
15492 case $PROG_VMSTAT in
15493 [\\/]* | ?:[\\/]*)
15494 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
15495 ;;
15496 *)
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498for as_dir in $PATH
15499do
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
15505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15507 fi
15508done
15509done
15510
15511 ;;
15512esac
15513fi
15514PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
15515
15516if test -n "$PROG_VMSTAT"; then
15517 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
15518echo "${ECHO_T}$PROG_VMSTAT" >&6
15519else
15520 echo "$as_me:$LINENO: result: no" >&5
15521echo "${ECHO_T}no" >&6
15522fi
15523
15524 if test -z "$PROG_VMSTAT" ; then
15525 PROG_VMSTAT="undef"
15526 fi
15527
15528
15529
15530 # Extract the first word of "uptime", so it can be a program name with args.
15531set dummy uptime; ac_word=$2
15532echo "$as_me:$LINENO: checking for $ac_word" >&5
15533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15534if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536else
15537 case $PROG_UPTIME in
15538 [\\/]* | ?:[\\/]*)
15539 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
15540 ;;
15541 *)
15542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543for as_dir in $PATH
15544do
15545 IFS=$as_save_IFS
15546 test -z "$as_dir" && as_dir=.
15547 for ac_exec_ext in '' $ac_executable_extensions; do
15548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15549 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
15550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15551 break 2
15552 fi
15553done
15554done
15555
15556 ;;
15557esac
15558fi
15559PROG_UPTIME=$ac_cv_path_PROG_UPTIME
15560
15561if test -n "$PROG_UPTIME"; then
15562 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
15563echo "${ECHO_T}$PROG_UPTIME" >&6
15564else
15565 echo "$as_me:$LINENO: result: no" >&5
15566echo "${ECHO_T}no" >&6
15567fi
15568
15569 if test -z "$PROG_UPTIME" ; then
15570 PROG_UPTIME="undef"
15571 fi
15572
15573
15574
15575 # Extract the first word of "ipcs", so it can be a program name with args.
15576set dummy ipcs; ac_word=$2
15577echo "$as_me:$LINENO: checking for $ac_word" >&5
15578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15579if test "${ac_cv_path_PROG_IPCS+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581else
15582 case $PROG_IPCS in
15583 [\\/]* | ?:[\\/]*)
15584 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
15585 ;;
15586 *)
15587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588for as_dir in $PATH
15589do
15590 IFS=$as_save_IFS
15591 test -z "$as_dir" && as_dir=.
15592 for ac_exec_ext in '' $ac_executable_extensions; do
15593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15594 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
15595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15596 break 2
15597 fi
15598done
15599done
15600
15601 ;;
15602esac
15603fi
15604PROG_IPCS=$ac_cv_path_PROG_IPCS
15605
15606if test -n "$PROG_IPCS"; then
15607 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
15608echo "${ECHO_T}$PROG_IPCS" >&6
15609else
15610 echo "$as_me:$LINENO: result: no" >&5
15611echo "${ECHO_T}no" >&6
15612fi
15613
15614 if test -z "$PROG_IPCS" ; then
15615 PROG_IPCS="undef"
15616 fi
15617
15618
15619
15620 # Extract the first word of "tail", so it can be a program name with args.
15621set dummy tail; ac_word=$2
15622echo "$as_me:$LINENO: checking for $ac_word" >&5
15623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15624if test "${ac_cv_path_PROG_TAIL+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 case $PROG_TAIL in
15628 [\\/]* | ?:[\\/]*)
15629 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
15630 ;;
15631 *)
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633for as_dir in $PATH
15634do
15635 IFS=$as_save_IFS
15636 test -z "$as_dir" && as_dir=.
15637 for ac_exec_ext in '' $ac_executable_extensions; do
15638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15639 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
15640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15641 break 2
15642 fi
15643done
15644done
15645
15646 ;;
15647esac
15648fi
15649PROG_TAIL=$ac_cv_path_PROG_TAIL
15650
15651if test -n "$PROG_TAIL"; then
15652 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
15653echo "${ECHO_T}$PROG_TAIL" >&6
15654else
15655 echo "$as_me:$LINENO: result: no" >&5
15656echo "${ECHO_T}no" >&6
15657fi
15658
15659 if test -z "$PROG_TAIL" ; then
15660 PROG_TAIL="undef"
15661 fi
15662
15663
15664# restore PATH
15665PATH=$OPATH
15666
15667# Where does ssh-rand-helper get its randomness from?
15668INSTALL_SSH_PRNG_CMDS=""
15669if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
15670 if test ! -z "$PRNGD_PORT" ; then
15671 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
15672 elif test ! -z "$PRNGD_SOCKET" ; then
15673 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
15674 else
15675 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
15676 RAND_HELPER_CMDHASH=yes
15677 INSTALL_SSH_PRNG_CMDS="yes"
15678 fi
15679fi
15680
15681
15682
15683# Cheap hack to ensure NEWS-OS libraries are arranged right.
15684if test ! -z "$SONY" ; then
15685 LIBS="$LIBS -liberty";
15686fi
15687
15688# Checks for data types
15689echo "$as_me:$LINENO: checking for char" >&5
15690echo $ECHO_N "checking for char... $ECHO_C" >&6
15691if test "${ac_cv_type_char+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694 cat >conftest.$ac_ext <<_ACEOF
15695/* confdefs.h. */
15696_ACEOF
15697cat confdefs.h >>conftest.$ac_ext
15698cat >>conftest.$ac_ext <<_ACEOF
15699/* end confdefs.h. */
15700$ac_includes_default
15701int
15702main ()
15703{
15704if ((char *) 0)
15705 return 0;
15706if (sizeof (char))
15707 return 0;
15708 ;
15709 return 0;
15710}
15711_ACEOF
15712rm -f conftest.$ac_objext
15713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714 (eval $ac_compile) 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -z "$ac_c_werror_flag"
15722 || test ! -s conftest.err'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest.$ac_objext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_cv_type_char=yes
15735else
15736 echo "$as_me: failed program was:" >&5
15737sed 's/^/| /' conftest.$ac_ext >&5
15738
15739ac_cv_type_char=no
15740fi
15741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15742fi
15743echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15744echo "${ECHO_T}$ac_cv_type_char" >&6
15745
15746echo "$as_me:$LINENO: checking size of char" >&5
15747echo $ECHO_N "checking size of char... $ECHO_C" >&6
15748if test "${ac_cv_sizeof_char+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750else
15751 if test "$ac_cv_type_char" = yes; then
15752 # The cast to unsigned long works around a bug in the HP C Compiler
15753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15755 # This bug is HP SR number 8606223364.
15756 if test "$cross_compiling" = yes; then
15757 # Depending upon the size, compute the lo and hi bounds.
15758cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764$ac_includes_default
15765int
15766main ()
15767{
15768static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15769test_array [0] = 0
15770
15771 ;
15772 return 0;
15773}
15774_ACEOF
15775rm -f conftest.$ac_objext
15776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15777 (eval $ac_compile) 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag"
15785 || test ! -s conftest.err'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest.$ac_objext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_lo=0 ac_mid=0
15798 while :; do
15799 cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805$ac_includes_default
15806int
15807main ()
15808{
15809static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15810test_array [0] = 0
15811
15812 ;
15813 return 0;
15814}
15815_ACEOF
15816rm -f conftest.$ac_objext
15817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15818 (eval $ac_compile) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag"
15826 || test ! -s conftest.err'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_hi=$ac_mid; break
15839else
15840 echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5
15842
15843ac_lo=`expr $ac_mid + 1`
15844 if test $ac_lo -le $ac_mid; then
15845 ac_lo= ac_hi=
15846 break
15847 fi
15848 ac_mid=`expr 2 '*' $ac_mid + 1`
15849fi
15850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15851 done
15852else
15853 echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862$ac_includes_default
15863int
15864main ()
15865{
15866static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15867test_array [0] = 0
15868
15869 ;
15870 return 0;
15871}
15872_ACEOF
15873rm -f conftest.$ac_objext
15874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_hi=-1 ac_mid=-1
15896 while :; do
15897 cat >conftest.$ac_ext <<_ACEOF
15898/* confdefs.h. */
15899_ACEOF
15900cat confdefs.h >>conftest.$ac_ext
15901cat >>conftest.$ac_ext <<_ACEOF
15902/* end confdefs.h. */
15903$ac_includes_default
15904int
15905main ()
15906{
15907static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15908test_array [0] = 0
15909
15910 ;
15911 return 0;
15912}
15913_ACEOF
15914rm -f conftest.$ac_objext
15915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15916 (eval $ac_compile) 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_lo=$ac_mid; break
15937else
15938 echo "$as_me: failed program was:" >&5
15939sed 's/^/| /' conftest.$ac_ext >&5
15940
15941ac_hi=`expr '(' $ac_mid ')' - 1`
15942 if test $ac_mid -le $ac_hi; then
15943 ac_lo= ac_hi=
15944 break
15945 fi
15946 ac_mid=`expr 2 '*' $ac_mid`
15947fi
15948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15949 done
15950else
15951 echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954ac_lo= ac_hi=
15955fi
15956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15957fi
15958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15959# Binary search between lo and hi bounds.
15960while test "x$ac_lo" != "x$ac_hi"; do
15961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15962 cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968$ac_includes_default
15969int
15970main ()
15971{
15972static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15973test_array [0] = 0
15974
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_hi=$ac_mid
16002else
16003 echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006ac_lo=`expr '(' $ac_mid ')' + 1`
16007fi
16008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16009done
16010case $ac_lo in
16011?*) ac_cv_sizeof_char=$ac_lo;;
16012'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16013See \`config.log' for more details." >&5
16014echo "$as_me: error: cannot compute sizeof (char), 77
16015See \`config.log' for more details." >&2;}
16016 { (exit 1); exit 1; }; } ;;
16017esac
16018else
16019 if test "$cross_compiling" = yes; then
16020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16021See \`config.log' for more details." >&5
16022echo "$as_me: error: cannot run test program while cross compiling
16023See \`config.log' for more details." >&2;}
16024 { (exit 1); exit 1; }; }
16025else
16026 cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032$ac_includes_default
16033long longval () { return (long) (sizeof (char)); }
16034unsigned long ulongval () { return (long) (sizeof (char)); }
16035#include <stdio.h>
16036#include <stdlib.h>
16037int
16038main ()
16039{
16040
16041 FILE *f = fopen ("conftest.val", "w");
16042 if (! f)
16043 exit (1);
16044 if (((long) (sizeof (char))) < 0)
16045 {
16046 long i = longval ();
16047 if (i != ((long) (sizeof (char))))
16048 exit (1);
16049 fprintf (f, "%ld\n", i);
16050 }
16051 else
16052 {
16053 unsigned long i = ulongval ();
16054 if (i != ((long) (sizeof (char))))
16055 exit (1);
16056 fprintf (f, "%lu\n", i);
16057 }
16058 exit (ferror (f) || fclose (f) != 0);
16059
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest$ac_exeext
16065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16072 ac_status=$?
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ac_cv_sizeof_char=`cat conftest.val`
16076else
16077 echo "$as_me: program exited with status $ac_status" >&5
16078echo "$as_me: failed program was:" >&5
16079sed 's/^/| /' conftest.$ac_ext >&5
16080
16081( exit $ac_status )
16082{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16083See \`config.log' for more details." >&5
16084echo "$as_me: error: cannot compute sizeof (char), 77
16085See \`config.log' for more details." >&2;}
16086 { (exit 1); exit 1; }; }
16087fi
16088rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16089fi
16090fi
16091rm -f conftest.val
16092else
16093 ac_cv_sizeof_char=0
16094fi
16095fi
16096echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16097echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16098cat >>confdefs.h <<_ACEOF
16099#define SIZEOF_CHAR $ac_cv_sizeof_char
16100_ACEOF
16101
16102
16103echo "$as_me:$LINENO: checking for short int" >&5
16104echo $ECHO_N "checking for short int... $ECHO_C" >&6
16105if test "${ac_cv_type_short_int+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115int
16116main ()
16117{
16118if ((short int *) 0)
16119 return 0;
16120if (sizeof (short int))
16121 return 0;
16122 ;
16123 return 0;
16124}
16125_ACEOF
16126rm -f conftest.$ac_objext
16127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128 (eval $ac_compile) 2>conftest.er1
16129 ac_status=$?
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -z "$ac_c_werror_flag"
16136 || test ! -s conftest.err'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_cv_type_short_int=yes
16149else
16150 echo "$as_me: failed program was:" >&5
16151sed 's/^/| /' conftest.$ac_ext >&5
16152
16153ac_cv_type_short_int=no
16154fi
16155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16156fi
16157echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16158echo "${ECHO_T}$ac_cv_type_short_int" >&6
16159
16160echo "$as_me:$LINENO: checking size of short int" >&5
16161echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16162if test "${ac_cv_sizeof_short_int+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165 if test "$ac_cv_type_short_int" = yes; then
16166 # The cast to unsigned long works around a bug in the HP C Compiler
16167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16169 # This bug is HP SR number 8606223364.
16170 if test "$cross_compiling" = yes; then
16171 # Depending upon the size, compute the lo and hi bounds.
16172cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178$ac_includes_default
16179int
16180main ()
16181{
16182static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16183test_array [0] = 0
16184
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_lo=0 ac_mid=0
16212 while :; do
16213 cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220int
16221main ()
16222{
16223static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16224test_array [0] = 0
16225
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16232 (eval $ac_compile) 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag"
16240 || test ! -s conftest.err'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } &&
16246 { ac_try='test -s conftest.$ac_objext'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_hi=$ac_mid; break
16253else
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257ac_lo=`expr $ac_mid + 1`
16258 if test $ac_lo -le $ac_mid; then
16259 ac_lo= ac_hi=
16260 break
16261 fi
16262 ac_mid=`expr 2 '*' $ac_mid + 1`
16263fi
16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16265 done
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277int
16278main ()
16279{
16280static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
16281test_array [0] = 0
16282
16283 ;
16284 return 0;
16285}
16286_ACEOF
16287rm -f conftest.$ac_objext
16288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16289 (eval $ac_compile) 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -z "$ac_c_werror_flag"
16297 || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_hi=-1 ac_mid=-1
16310 while :; do
16311 cat >conftest.$ac_ext <<_ACEOF
16312/* confdefs.h. */
16313_ACEOF
16314cat confdefs.h >>conftest.$ac_ext
16315cat >>conftest.$ac_ext <<_ACEOF
16316/* end confdefs.h. */
16317$ac_includes_default
16318int
16319main ()
16320{
16321static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
16322test_array [0] = 0
16323
16324 ;
16325 return 0;
16326}
16327_ACEOF
16328rm -f conftest.$ac_objext
16329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -z "$ac_c_werror_flag"
16338 || test ! -s conftest.err'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_lo=$ac_mid; break
16351else
16352 echo "$as_me: failed program was:" >&5
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
16355ac_hi=`expr '(' $ac_mid ')' - 1`
16356 if test $ac_mid -le $ac_hi; then
16357 ac_lo= ac_hi=
16358 break
16359 fi
16360 ac_mid=`expr 2 '*' $ac_mid`
16361fi
16362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16363 done
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368ac_lo= ac_hi=
16369fi
16370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16371fi
16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373# Binary search between lo and hi bounds.
16374while test "x$ac_lo" != "x$ac_hi"; do
16375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16376 cat >conftest.$ac_ext <<_ACEOF
16377/* confdefs.h. */
16378_ACEOF
16379cat confdefs.h >>conftest.$ac_ext
16380cat >>conftest.$ac_ext <<_ACEOF
16381/* end confdefs.h. */
16382$ac_includes_default
16383int
16384main ()
16385{
16386static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16387test_array [0] = 0
16388
16389 ;
16390 return 0;
16391}
16392_ACEOF
16393rm -f conftest.$ac_objext
16394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag"
16403 || test ! -s conftest.err'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest.$ac_objext'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_hi=$ac_mid
16416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420ac_lo=`expr '(' $ac_mid ')' + 1`
16421fi
16422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16423done
16424case $ac_lo in
16425?*) ac_cv_sizeof_short_int=$ac_lo;;
16426'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
16427See \`config.log' for more details." >&5
16428echo "$as_me: error: cannot compute sizeof (short int), 77
16429See \`config.log' for more details." >&2;}
16430 { (exit 1); exit 1; }; } ;;
16431esac
16432else
16433 if test "$cross_compiling" = yes; then
16434 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16435See \`config.log' for more details." >&5
16436echo "$as_me: error: cannot run test program while cross compiling
16437See \`config.log' for more details." >&2;}
16438 { (exit 1); exit 1; }; }
16439else
16440 cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446$ac_includes_default
16447long longval () { return (long) (sizeof (short int)); }
16448unsigned long ulongval () { return (long) (sizeof (short int)); }
16449#include <stdio.h>
16450#include <stdlib.h>
16451int
16452main ()
16453{
16454
16455 FILE *f = fopen ("conftest.val", "w");
16456 if (! f)
16457 exit (1);
16458 if (((long) (sizeof (short int))) < 0)
16459 {
16460 long i = longval ();
16461 if (i != ((long) (sizeof (short int))))
16462 exit (1);
16463 fprintf (f, "%ld\n", i);
16464 }
16465 else
16466 {
16467 unsigned long i = ulongval ();
16468 if (i != ((long) (sizeof (short int))))
16469 exit (1);
16470 fprintf (f, "%lu\n", i);
16471 }
16472 exit (ferror (f) || fclose (f) != 0);
16473
16474 ;
16475 return 0;
16476}
16477_ACEOF
16478rm -f conftest$ac_exeext
16479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480 (eval $ac_link) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; }; then
16489 ac_cv_sizeof_short_int=`cat conftest.val`
16490else
16491 echo "$as_me: program exited with status $ac_status" >&5
16492echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495( exit $ac_status )
16496{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
16497See \`config.log' for more details." >&5
16498echo "$as_me: error: cannot compute sizeof (short int), 77
16499See \`config.log' for more details." >&2;}
16500 { (exit 1); exit 1; }; }
16501fi
16502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16503fi
16504fi
16505rm -f conftest.val
16506else
16507 ac_cv_sizeof_short_int=0
16508fi
16509fi
16510echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
16511echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
16512cat >>confdefs.h <<_ACEOF
16513#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
16514_ACEOF
16515
16516
16517echo "$as_me:$LINENO: checking for int" >&5
16518echo $ECHO_N "checking for int... $ECHO_C" >&6
16519if test "${ac_cv_type_int+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529int
16530main ()
16531{
16532if ((int *) 0)
16533 return 0;
16534if (sizeof (int))
16535 return 0;
16536 ;
16537 return 0;
16538}
16539_ACEOF
16540rm -f conftest.$ac_objext
16541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16542 (eval $ac_compile) 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -z "$ac_c_werror_flag"
16550 || test ! -s conftest.err'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_type_int=yes
16563else
16564 echo "$as_me: failed program was:" >&5
16565sed 's/^/| /' conftest.$ac_ext >&5
16566
16567ac_cv_type_int=no
16568fi
16569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16570fi
16571echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16572echo "${ECHO_T}$ac_cv_type_int" >&6
16573
16574echo "$as_me:$LINENO: checking size of int" >&5
16575echo $ECHO_N "checking size of int... $ECHO_C" >&6
16576if test "${ac_cv_sizeof_int+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 if test "$ac_cv_type_int" = yes; then
16580 # The cast to unsigned long works around a bug in the HP C Compiler
16581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16583 # This bug is HP SR number 8606223364.
16584 if test "$cross_compiling" = yes; then
16585 # Depending upon the size, compute the lo and hi bounds.
16586cat >conftest.$ac_ext <<_ACEOF
16587/* confdefs.h. */
16588_ACEOF
16589cat confdefs.h >>conftest.$ac_ext
16590cat >>conftest.$ac_ext <<_ACEOF
16591/* end confdefs.h. */
16592$ac_includes_default
16593int
16594main ()
16595{
16596static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16597test_array [0] = 0
16598
16599 ;
16600 return 0;
16601}
16602_ACEOF
16603rm -f conftest.$ac_objext
16604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16605 (eval $ac_compile) 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try='test -z "$ac_c_werror_flag"
16613 || test ! -s conftest.err'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; } &&
16619 { ac_try='test -s conftest.$ac_objext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_lo=0 ac_mid=0
16626 while :; do
16627 cat >conftest.$ac_ext <<_ACEOF
16628/* confdefs.h. */
16629_ACEOF
16630cat confdefs.h >>conftest.$ac_ext
16631cat >>conftest.$ac_ext <<_ACEOF
16632/* end confdefs.h. */
16633$ac_includes_default
16634int
16635main ()
16636{
16637static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16638test_array [0] = 0
16639
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext
16645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16646 (eval $ac_compile) 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag"
16654 || test ! -s conftest.err'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest.$ac_objext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_hi=$ac_mid; break
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671ac_lo=`expr $ac_mid + 1`
16672 if test $ac_lo -le $ac_mid; then
16673 ac_lo= ac_hi=
16674 break
16675 fi
16676 ac_mid=`expr 2 '*' $ac_mid + 1`
16677fi
16678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16679 done
16680else
16681 echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690$ac_includes_default
16691int
16692main ()
16693{
16694static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16695test_array [0] = 0
16696
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16703 (eval $ac_compile) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest.$ac_objext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_hi=-1 ac_mid=-1
16724 while :; do
16725 cat >conftest.$ac_ext <<_ACEOF
16726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
16731$ac_includes_default
16732int
16733main ()
16734{
16735static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16736test_array [0] = 0
16737
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext
16743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag"
16752 || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_lo=$ac_mid; break
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_hi=`expr '(' $ac_mid ')' - 1`
16770 if test $ac_mid -le $ac_hi; then
16771 ac_lo= ac_hi=
16772 break
16773 fi
16774 ac_mid=`expr 2 '*' $ac_mid`
16775fi
16776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16777 done
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_lo= ac_hi=
16783fi
16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16785fi
16786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787# Binary search between lo and hi bounds.
16788while test "x$ac_lo" != "x$ac_hi"; do
16789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16790 cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796$ac_includes_default
16797int
16798main ()
16799{
16800static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16801test_array [0] = 0
16802
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag"
16817 || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_hi=$ac_mid
16830else
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834ac_lo=`expr '(' $ac_mid ')' + 1`
16835fi
16836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837done
16838case $ac_lo in
16839?*) ac_cv_sizeof_int=$ac_lo;;
16840'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16841See \`config.log' for more details." >&5
16842echo "$as_me: error: cannot compute sizeof (int), 77
16843See \`config.log' for more details." >&2;}
16844 { (exit 1); exit 1; }; } ;;
16845esac
16846else
16847 if test "$cross_compiling" = yes; then
16848 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16849See \`config.log' for more details." >&5
16850echo "$as_me: error: cannot run test program while cross compiling
16851See \`config.log' for more details." >&2;}
16852 { (exit 1); exit 1; }; }
16853else
16854 cat >conftest.$ac_ext <<_ACEOF
16855/* confdefs.h. */
16856_ACEOF
16857cat confdefs.h >>conftest.$ac_ext
16858cat >>conftest.$ac_ext <<_ACEOF
16859/* end confdefs.h. */
16860$ac_includes_default
16861long longval () { return (long) (sizeof (int)); }
16862unsigned long ulongval () { return (long) (sizeof (int)); }
16863#include <stdio.h>
16864#include <stdlib.h>
16865int
16866main ()
16867{
16868
16869 FILE *f = fopen ("conftest.val", "w");
16870 if (! f)
16871 exit (1);
16872 if (((long) (sizeof (int))) < 0)
16873 {
16874 long i = longval ();
16875 if (i != ((long) (sizeof (int))))
16876 exit (1);
16877 fprintf (f, "%ld\n", i);
16878 }
16879 else
16880 {
16881 unsigned long i = ulongval ();
16882 if (i != ((long) (sizeof (int))))
16883 exit (1);
16884 fprintf (f, "%lu\n", i);
16885 }
16886 exit (ferror (f) || fclose (f) != 0);
16887
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892rm -f conftest$ac_exeext
16893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 ac_cv_sizeof_int=`cat conftest.val`
16904else
16905 echo "$as_me: program exited with status $ac_status" >&5
16906echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
16909( exit $ac_status )
16910{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16911See \`config.log' for more details." >&5
16912echo "$as_me: error: cannot compute sizeof (int), 77
16913See \`config.log' for more details." >&2;}
16914 { (exit 1); exit 1; }; }
16915fi
16916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16917fi
16918fi
16919rm -f conftest.val
16920else
16921 ac_cv_sizeof_int=0
16922fi
16923fi
16924echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16925echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16926cat >>confdefs.h <<_ACEOF
16927#define SIZEOF_INT $ac_cv_sizeof_int
16928_ACEOF
16929
16930
16931echo "$as_me:$LINENO: checking for long int" >&5
16932echo $ECHO_N "checking for long int... $ECHO_C" >&6
16933if test "${ac_cv_type_long_int+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943int
16944main ()
16945{
16946if ((long int *) 0)
16947 return 0;
16948if (sizeof (long int))
16949 return 0;
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_type_long_int=yes
16977else
16978 echo "$as_me: failed program was:" >&5
16979sed 's/^/| /' conftest.$ac_ext >&5
16980
16981ac_cv_type_long_int=no
16982fi
16983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984fi
16985echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
16986echo "${ECHO_T}$ac_cv_type_long_int" >&6
16987
16988echo "$as_me:$LINENO: checking size of long int" >&5
16989echo $ECHO_N "checking size of long int... $ECHO_C" >&6
16990if test "${ac_cv_sizeof_long_int+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 if test "$ac_cv_type_long_int" = yes; then
16994 # The cast to unsigned long works around a bug in the HP C Compiler
16995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16997 # This bug is HP SR number 8606223364.
16998 if test "$cross_compiling" = yes; then
16999 # Depending upon the size, compute the lo and hi bounds.
17000cat >conftest.$ac_ext <<_ACEOF
17001/* confdefs.h. */
17002_ACEOF
17003cat confdefs.h >>conftest.$ac_ext
17004cat >>conftest.$ac_ext <<_ACEOF
17005/* end confdefs.h. */
17006$ac_includes_default
17007int
17008main ()
17009{
17010static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17011test_array [0] = 0
17012
17013 ;
17014 return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext
17018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17019 (eval $ac_compile) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest.$ac_objext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_lo=0 ac_mid=0
17040 while :; do
17041 cat >conftest.$ac_ext <<_ACEOF
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
17047$ac_includes_default
17048int
17049main ()
17050{
17051static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17052test_array [0] = 0
17053
17054 ;
17055 return 0;
17056}
17057_ACEOF
17058rm -f conftest.$ac_objext
17059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060 (eval $ac_compile) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_hi=$ac_mid; break
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085ac_lo=`expr $ac_mid + 1`
17086 if test $ac_lo -le $ac_mid; then
17087 ac_lo= ac_hi=
17088 break
17089 fi
17090 ac_mid=`expr 2 '*' $ac_mid + 1`
17091fi
17092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17093 done
17094else
17095 echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104$ac_includes_default
17105int
17106main ()
17107{
17108static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17109test_array [0] = 0
17110
17111 ;
17112 return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext
17116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17117 (eval $ac_compile) 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -z "$ac_c_werror_flag"
17125 || test ! -s conftest.err'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; } &&
17131 { ac_try='test -s conftest.$ac_objext'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_hi=-1 ac_mid=-1
17138 while :; do
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145$ac_includes_default
17146int
17147main ()
17148{
17149static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17150test_array [0] = 0
17151
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext
17157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_lo=$ac_mid; break
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183ac_hi=`expr '(' $ac_mid ')' - 1`
17184 if test $ac_mid -le $ac_hi; then
17185 ac_lo= ac_hi=
17186 break
17187 fi
17188 ac_mid=`expr 2 '*' $ac_mid`
17189fi
17190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191 done
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196ac_lo= ac_hi=
17197fi
17198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17199fi
17200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17201# Binary search between lo and hi bounds.
17202while test "x$ac_lo" != "x$ac_hi"; do
17203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17204 cat >conftest.$ac_ext <<_ACEOF
17205/* confdefs.h. */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h. */
17210$ac_includes_default
17211int
17212main ()
17213{
17214static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17215test_array [0] = 0
17216
17217 ;
17218 return 0;
17219}
17220_ACEOF
17221rm -f conftest.$ac_objext
17222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag"
17231 || test ! -s conftest.err'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest.$ac_objext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_hi=$ac_mid
17244else
17245 echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
17248ac_lo=`expr '(' $ac_mid ')' + 1`
17249fi
17250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251done
17252case $ac_lo in
17253?*) ac_cv_sizeof_long_int=$ac_lo;;
17254'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
17255See \`config.log' for more details." >&5
17256echo "$as_me: error: cannot compute sizeof (long int), 77
17257See \`config.log' for more details." >&2;}
17258 { (exit 1); exit 1; }; } ;;
17259esac
17260else
17261 if test "$cross_compiling" = yes; then
17262 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17263See \`config.log' for more details." >&5
17264echo "$as_me: error: cannot run test program while cross compiling
17265See \`config.log' for more details." >&2;}
17266 { (exit 1); exit 1; }; }
17267else
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274$ac_includes_default
17275long longval () { return (long) (sizeof (long int)); }
17276unsigned long ulongval () { return (long) (sizeof (long int)); }
17277#include <stdio.h>
17278#include <stdlib.h>
17279int
17280main ()
17281{
17282
17283 FILE *f = fopen ("conftest.val", "w");
17284 if (! f)
17285 exit (1);
17286 if (((long) (sizeof (long int))) < 0)
17287 {
17288 long i = longval ();
17289 if (i != ((long) (sizeof (long int))))
17290 exit (1);
17291 fprintf (f, "%ld\n", i);
17292 }
17293 else
17294 {
17295 unsigned long i = ulongval ();
17296 if (i != ((long) (sizeof (long int))))
17297 exit (1);
17298 fprintf (f, "%lu\n", i);
17299 }
17300 exit (ferror (f) || fclose (f) != 0);
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest$ac_exeext
17307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_sizeof_long_int=`cat conftest.val`
17318else
17319 echo "$as_me: program exited with status $ac_status" >&5
17320echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323( exit $ac_status )
17324{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
17325See \`config.log' for more details." >&5
17326echo "$as_me: error: cannot compute sizeof (long int), 77
17327See \`config.log' for more details." >&2;}
17328 { (exit 1); exit 1; }; }
17329fi
17330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17331fi
17332fi
17333rm -f conftest.val
17334else
17335 ac_cv_sizeof_long_int=0
17336fi
17337fi
17338echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
17339echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
17340cat >>confdefs.h <<_ACEOF
17341#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
17342_ACEOF
17343
17344
17345echo "$as_me:$LINENO: checking for long long int" >&5
17346echo $ECHO_N "checking for long long int... $ECHO_C" >&6
17347if test "${ac_cv_type_long_long_int+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349else
17350 cat >conftest.$ac_ext <<_ACEOF
17351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
17356$ac_includes_default
17357int
17358main ()
17359{
17360if ((long long int *) 0)
17361 return 0;
17362if (sizeof (long long int))
17363 return 0;
17364 ;
17365 return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext
17369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag"
17378 || test ! -s conftest.err'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest.$ac_objext'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_type_long_long_int=yes
17391else
17392 echo "$as_me: failed program was:" >&5
17393sed 's/^/| /' conftest.$ac_ext >&5
17394
17395ac_cv_type_long_long_int=no
17396fi
17397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398fi
17399echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17400echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
17401
17402echo "$as_me:$LINENO: checking size of long long int" >&5
17403echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
17404if test "${ac_cv_sizeof_long_long_int+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 if test "$ac_cv_type_long_long_int" = yes; then
17408 # The cast to unsigned long works around a bug in the HP C Compiler
17409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17411 # This bug is HP SR number 8606223364.
17412 if test "$cross_compiling" = yes; then
17413 # Depending upon the size, compute the lo and hi bounds.
17414cat >conftest.$ac_ext <<_ACEOF
17415/* confdefs.h. */
17416_ACEOF
17417cat confdefs.h >>conftest.$ac_ext
17418cat >>conftest.$ac_ext <<_ACEOF
17419/* end confdefs.h. */
17420$ac_includes_default
17421int
17422main ()
17423{
17424static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
17425test_array [0] = 0
17426
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext
17432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_lo=0 ac_mid=0
17454 while :; do
17455 cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461$ac_includes_default
17462int
17463main ()
17464{
17465static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
17466test_array [0] = 0
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext
17473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474 (eval $ac_compile) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest.$ac_objext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_hi=$ac_mid; break
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499ac_lo=`expr $ac_mid + 1`
17500 if test $ac_lo -le $ac_mid; then
17501 ac_lo= ac_hi=
17502 break
17503 fi
17504 ac_mid=`expr 2 '*' $ac_mid + 1`
17505fi
17506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17507 done
17508else
17509 echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h. */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h. */
17518$ac_includes_default
17519int
17520main ()
17521{
17522static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
17523test_array [0] = 0
17524
17525 ;
17526 return 0;
17527}
17528_ACEOF
17529rm -f conftest.$ac_objext
17530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531 (eval $ac_compile) 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -z "$ac_c_werror_flag"
17539 || test ! -s conftest.err'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest.$ac_objext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 ac_hi=-1 ac_mid=-1
17552 while :; do
17553 cat >conftest.$ac_ext <<_ACEOF
17554/* confdefs.h. */
17555_ACEOF
17556cat confdefs.h >>conftest.$ac_ext
17557cat >>conftest.$ac_ext <<_ACEOF
17558/* end confdefs.h. */
17559$ac_includes_default
17560int
17561main ()
17562{
17563static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
17564test_array [0] = 0
17565
17566 ;
17567 return 0;
17568}
17569_ACEOF
17570rm -f conftest.$ac_objext
17571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572 (eval $ac_compile) 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_lo=$ac_mid; break
17593else
17594 echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597ac_hi=`expr '(' $ac_mid ')' - 1`
17598 if test $ac_mid -le $ac_hi; then
17599 ac_lo= ac_hi=
17600 break
17601 fi
17602 ac_mid=`expr 2 '*' $ac_mid`
17603fi
17604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 done
17606else
17607 echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610ac_lo= ac_hi=
17611fi
17612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17613fi
17614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615# Binary search between lo and hi bounds.
17616while test "x$ac_lo" != "x$ac_hi"; do
17617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17618 cat >conftest.$ac_ext <<_ACEOF
17619/* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
17624$ac_includes_default
17625int
17626main ()
17627{
17628static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
17629test_array [0] = 0
17630
17631 ;
17632 return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext
17636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest.$ac_objext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_hi=$ac_mid
17658else
17659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662ac_lo=`expr '(' $ac_mid ')' + 1`
17663fi
17664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17665done
17666case $ac_lo in
17667?*) ac_cv_sizeof_long_long_int=$ac_lo;;
17668'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17669See \`config.log' for more details." >&5
17670echo "$as_me: error: cannot compute sizeof (long long int), 77
17671See \`config.log' for more details." >&2;}
17672 { (exit 1); exit 1; }; } ;;
17673esac
17674else
17675 if test "$cross_compiling" = yes; then
17676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17677See \`config.log' for more details." >&5
17678echo "$as_me: error: cannot run test program while cross compiling
17679See \`config.log' for more details." >&2;}
17680 { (exit 1); exit 1; }; }
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689long longval () { return (long) (sizeof (long long int)); }
17690unsigned long ulongval () { return (long) (sizeof (long long int)); }
17691#include <stdio.h>
17692#include <stdlib.h>
17693int
17694main ()
17695{
17696
17697 FILE *f = fopen ("conftest.val", "w");
17698 if (! f)
17699 exit (1);
17700 if (((long) (sizeof (long long int))) < 0)
17701 {
17702 long i = longval ();
17703 if (i != ((long) (sizeof (long long int))))
17704 exit (1);
17705 fprintf (f, "%ld\n", i);
17706 }
17707 else
17708 {
17709 unsigned long i = ulongval ();
17710 if (i != ((long) (sizeof (long long int))))
17711 exit (1);
17712 fprintf (f, "%lu\n", i);
17713 }
17714 exit (ferror (f) || fclose (f) != 0);
17715
17716 ;
17717 return 0;
17718}
17719_ACEOF
17720rm -f conftest$ac_exeext
17721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17722 (eval $ac_link) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_sizeof_long_long_int=`cat conftest.val`
17732else
17733 echo "$as_me: program exited with status $ac_status" >&5
17734echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737( exit $ac_status )
17738{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
17739See \`config.log' for more details." >&5
17740echo "$as_me: error: cannot compute sizeof (long long int), 77
17741See \`config.log' for more details." >&2;}
17742 { (exit 1); exit 1; }; }
17743fi
17744rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17745fi
17746fi
17747rm -f conftest.val
17748else
17749 ac_cv_sizeof_long_long_int=0
17750fi
17751fi
17752echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
17753echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
17754cat >>confdefs.h <<_ACEOF
17755#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
17756_ACEOF
17757
17758
17759
17760# Sanity check long long for some platforms (AIX)
17761if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
17762 ac_cv_sizeof_long_long_int=0
17763fi
17764
17765# More checks for data types
17766echo "$as_me:$LINENO: checking for u_int type" >&5
17767echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17768if test "${ac_cv_have_u_int+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770else
17771
17772 cat >conftest.$ac_ext <<_ACEOF
17773/* confdefs.h. */
17774_ACEOF
17775cat confdefs.h >>conftest.$ac_ext
17776cat >>conftest.$ac_ext <<_ACEOF
17777/* end confdefs.h. */
17778 #include <sys/types.h>
17779int
17780main ()
17781{
17782 u_int a; a = 1;
17783 ;
17784 return 0;
17785}
17786_ACEOF
17787rm -f conftest.$ac_objext
17788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 (eval $ac_compile) 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag"
17797 || test ! -s conftest.err'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try='test -s conftest.$ac_objext'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_cv_have_u_int="yes"
17810else
17811 echo "$as_me: failed program was:" >&5
17812sed 's/^/| /' conftest.$ac_ext >&5
17813
17814 ac_cv_have_u_int="no"
17815
17816fi
17817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17818
17819fi
17820echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17821echo "${ECHO_T}$ac_cv_have_u_int" >&6
17822if test "x$ac_cv_have_u_int" = "xyes" ; then
17823 cat >>confdefs.h <<\_ACEOF
17824#define HAVE_U_INT 1
17825_ACEOF
17826
17827 have_u_int=1
17828fi
17829
17830echo "$as_me:$LINENO: checking for intXX_t types" >&5
17831echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17832if test "${ac_cv_have_intxx_t+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17834else
17835
17836 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842 #include <sys/types.h>
17843int
17844main ()
17845{
17846 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext
17852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17853 (eval $ac_compile) 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag"
17861 || test ! -s conftest.err'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; } &&
17867 { ac_try='test -s conftest.$ac_objext'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_have_intxx_t="yes"
17874else
17875 echo "$as_me: failed program was:" >&5
17876sed 's/^/| /' conftest.$ac_ext >&5
17877
17878 ac_cv_have_intxx_t="no"
17879
17880fi
17881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17882
17883fi
17884echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17885echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17886if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17887 cat >>confdefs.h <<\_ACEOF
17888#define HAVE_INTXX_T 1
17889_ACEOF
17890
17891 have_intxx_t=1
17892fi
17893
17894if (test -z "$have_intxx_t" && \
17895 test "x$ac_cv_header_stdint_h" = "xyes")
17896then
17897 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
17898echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
17899 cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905 #include <stdint.h>
17906int
17907main ()
17908{
17909 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext
17915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916 (eval $ac_compile) 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936
17937 cat >>confdefs.h <<\_ACEOF
17938#define HAVE_INTXX_T 1
17939_ACEOF
17940
17941 echo "$as_me:$LINENO: result: yes" >&5
17942echo "${ECHO_T}yes" >&6
17943
17944else
17945 echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948 echo "$as_me:$LINENO: result: no" >&5
17949echo "${ECHO_T}no" >&6
17950
17951fi
17952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953fi
17954
17955echo "$as_me:$LINENO: checking for int64_t type" >&5
17956echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17957if test "${ac_cv_have_int64_t+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17959else
17960
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967
17968#include <sys/types.h>
17969#ifdef HAVE_STDINT_H
17970# include <stdint.h>
17971#endif
17972#include <sys/socket.h>
17973#ifdef HAVE_SYS_BITYPES_H
17974# include <sys/bitypes.h>
17975#endif
17976
17977int
17978main ()
17979{
17980 int64_t a; a = 1;
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_have_int64_t="yes"
18008else
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_cv_have_int64_t="no"
18013
18014fi
18015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016
18017fi
18018echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
18019echo "${ECHO_T}$ac_cv_have_int64_t" >&6
18020if test "x$ac_cv_have_int64_t" = "xyes" ; then
18021 cat >>confdefs.h <<\_ACEOF
18022#define HAVE_INT64_T 1
18023_ACEOF
18024
18025fi
18026
18027echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
18028echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
18029if test "${ac_cv_have_u_intxx_t+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031else
18032
18033 cat >conftest.$ac_ext <<_ACEOF
18034/* confdefs.h. */
18035_ACEOF
18036cat confdefs.h >>conftest.$ac_ext
18037cat >>conftest.$ac_ext <<_ACEOF
18038/* end confdefs.h. */
18039 #include <sys/types.h>
18040int
18041main ()
18042{
18043 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_have_u_intxx_t="yes"
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_have_u_intxx_t="no"
18076
18077fi
18078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18079
18080fi
18081echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
18082echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
18083if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
18084 cat >>confdefs.h <<\_ACEOF
18085#define HAVE_U_INTXX_T 1
18086_ACEOF
18087
18088 have_u_intxx_t=1
18089fi
18090
18091if test -z "$have_u_intxx_t" ; then
18092 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
18093echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
18094 cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100 #include <sys/socket.h>
18101int
18102main ()
18103{
18104 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18111 (eval $ac_compile) 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag"
18119 || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest.$ac_objext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131
18132 cat >>confdefs.h <<\_ACEOF
18133#define HAVE_U_INTXX_T 1
18134_ACEOF
18135
18136 echo "$as_me:$LINENO: result: yes" >&5
18137echo "${ECHO_T}yes" >&6
18138
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 echo "$as_me:$LINENO: result: no" >&5
18144echo "${ECHO_T}no" >&6
18145
18146fi
18147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148fi
18149
18150echo "$as_me:$LINENO: checking for u_int64_t types" >&5
18151echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
18152if test "${ac_cv_have_u_int64_t+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162 #include <sys/types.h>
18163int
18164main ()
18165{
18166 u_int64_t a; a = 1;
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext
18172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18173 (eval $ac_compile) 2>conftest.er1
18174 ac_status=$?
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
18180 { ac_try='test -z "$ac_c_werror_flag"
18181 || test ! -s conftest.err'
18182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183 (eval $ac_try) 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; } &&
18187 { ac_try='test -s conftest.$ac_objext'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; }; then
18193 ac_cv_have_u_int64_t="yes"
18194else
18195 echo "$as_me: failed program was:" >&5
18196sed 's/^/| /' conftest.$ac_ext >&5
18197
18198 ac_cv_have_u_int64_t="no"
18199
18200fi
18201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18202
18203fi
18204echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
18205echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
18206if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
18207 cat >>confdefs.h <<\_ACEOF
18208#define HAVE_U_INT64_T 1
18209_ACEOF
18210
18211 have_u_int64_t=1
18212fi
18213
18214if test -z "$have_u_int64_t" ; then
18215 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
18216echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
18217 cat >conftest.$ac_ext <<_ACEOF
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
18223 #include <sys/bitypes.h>
18224int
18225main ()
18226{
18227 u_int64_t a; a = 1
18228 ;
18229 return 0;
18230}
18231_ACEOF
18232rm -f conftest.$ac_objext
18233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18234 (eval $ac_compile) 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag"
18242 || test ! -s conftest.err'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest.$ac_objext'
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254
18255 cat >>confdefs.h <<\_ACEOF
18256#define HAVE_U_INT64_T 1
18257_ACEOF
18258
18259 echo "$as_me:$LINENO: result: yes" >&5
18260echo "${ECHO_T}yes" >&6
18261
18262else
18263 echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 echo "$as_me:$LINENO: result: no" >&5
18267echo "${ECHO_T}no" >&6
18268
18269fi
18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271fi
18272
18273if test -z "$have_u_intxx_t" ; then
18274 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
18275echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
18276if test "${ac_cv_have_uintxx_t+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278else
18279
18280 cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286
18287#include <sys/types.h>
18288
18289int
18290main ()
18291{
18292 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
18293 ;
18294 return 0;
18295}
18296_ACEOF
18297rm -f conftest.$ac_objext
18298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18299 (eval $ac_compile) 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag"
18307 || test ! -s conftest.err'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } &&
18313 { ac_try='test -s conftest.$ac_objext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_have_uintxx_t="yes"
18320else
18321 echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 ac_cv_have_uintxx_t="no"
18325
18326fi
18327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18328
18329fi
18330echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
18331echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
18332 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
18333 cat >>confdefs.h <<\_ACEOF
18334#define HAVE_UINTXX_T 1
18335_ACEOF
18336
18337 fi
18338fi
18339
18340if test -z "$have_uintxx_t" ; then
18341 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
18342echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
18343 cat >conftest.$ac_ext <<_ACEOF
18344/* confdefs.h. */
18345_ACEOF
18346cat confdefs.h >>conftest.$ac_ext
18347cat >>conftest.$ac_ext <<_ACEOF
18348/* end confdefs.h. */
18349 #include <stdint.h>
18350int
18351main ()
18352{
18353 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext
18359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>conftest.er1
18361 ac_status=$?
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag"
18368 || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380
18381 cat >>confdefs.h <<\_ACEOF
18382#define HAVE_UINTXX_T 1
18383_ACEOF
18384
18385 echo "$as_me:$LINENO: result: yes" >&5
18386echo "${ECHO_T}yes" >&6
18387
18388else
18389 echo "$as_me: failed program was:" >&5
18390sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 echo "$as_me:$LINENO: result: no" >&5
18393echo "${ECHO_T}no" >&6
18394
18395fi
18396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18397fi
18398
18399if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
18400 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
18401then
18402 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
18403echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
18404 cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410
18411#include <sys/bitypes.h>
18412
18413int
18414main ()
18415{
18416
18417 int8_t a; int16_t b; int32_t c;
18418 u_int8_t e; u_int16_t f; u_int32_t g;
18419 a = b = c = e = f = g = 1;
18420
18421 ;
18422 return 0;
18423}
18424_ACEOF
18425rm -f conftest.$ac_objext
18426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447
18448 cat >>confdefs.h <<\_ACEOF
18449#define HAVE_U_INTXX_T 1
18450_ACEOF
18451
18452 cat >>confdefs.h <<\_ACEOF
18453#define HAVE_INTXX_T 1
18454_ACEOF
18455
18456 echo "$as_me:$LINENO: result: yes" >&5
18457echo "${ECHO_T}yes" >&6
18458
18459else
18460 echo "$as_me: failed program was:" >&5
18461sed 's/^/| /' conftest.$ac_ext >&5
18462
18463echo "$as_me:$LINENO: result: no" >&5
18464echo "${ECHO_T}no" >&6
18465
18466fi
18467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18468fi
18469
18470
18471echo "$as_me:$LINENO: checking for u_char" >&5
18472echo $ECHO_N "checking for u_char... $ECHO_C" >&6
18473if test "${ac_cv_have_u_char+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18475else
18476
18477 cat >conftest.$ac_ext <<_ACEOF
18478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
18483
18484#include <sys/types.h>
18485
18486int
18487main ()
18488{
18489 u_char foo; foo = 125;
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext
18495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_have_u_char="yes"
18517else
18518 echo "$as_me: failed program was:" >&5
18519sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 ac_cv_have_u_char="no"
18522
18523fi
18524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18525
18526fi
18527echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
18528echo "${ECHO_T}$ac_cv_have_u_char" >&6
18529if test "x$ac_cv_have_u_char" = "xyes" ; then
18530 cat >>confdefs.h <<\_ACEOF
18531#define HAVE_U_CHAR 1
18532_ACEOF
18533
18534fi
18535
18536
18537 echo "$as_me:$LINENO: checking for socklen_t" >&5
18538echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
18539if test "${ac_cv_type_socklen_t+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541else
18542 cat >conftest.$ac_ext <<_ACEOF
18543/* confdefs.h. */
18544_ACEOF
18545cat confdefs.h >>conftest.$ac_ext
18546cat >>conftest.$ac_ext <<_ACEOF
18547/* end confdefs.h. */
18548#include <sys/types.h>
18549#include <sys/socket.h>
18550
18551int
18552main ()
18553{
18554if ((socklen_t *) 0)
18555 return 0;
18556if (sizeof (socklen_t))
18557 return 0;
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext
18563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18564 (eval $ac_compile) 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag"
18572 || test ! -s conftest.err'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; } &&
18578 { ac_try='test -s conftest.$ac_objext'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 ac_cv_type_socklen_t=yes
18585else
18586 echo "$as_me: failed program was:" >&5
18587sed 's/^/| /' conftest.$ac_ext >&5
18588
18589ac_cv_type_socklen_t=no
18590fi
18591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18592fi
18593echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
18594echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
18595if test $ac_cv_type_socklen_t = yes; then
18596 :
18597else
18598
18599 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
18600echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
18601 if test "${curl_cv_socklen_t_equiv+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604
18605 # Systems have either "struct sockaddr *" or
18606 # "void *" as the second argument to getpeername
18607 curl_cv_socklen_t_equiv=
18608 for arg2 in "struct sockaddr" void; do
18609 for t in int size_t unsigned long "unsigned long"; do
18610 cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616
18617 #include <sys/types.h>
18618 #include <sys/socket.h>
18619
18620 int getpeername (int, $arg2 *, $t *);
18621
18622int
18623main ()
18624{
18625
18626 $t len;
18627 getpeername(0,0,&len);
18628
18629 ;
18630 return 0;
18631}
18632_ACEOF
18633rm -f conftest.$ac_objext
18634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest.$ac_objext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655
18656 curl_cv_socklen_t_equiv="$t"
18657 break
18658
18659else
18660 echo "$as_me: failed program was:" >&5
18661sed 's/^/| /' conftest.$ac_ext >&5
18662
18663fi
18664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665 done
18666 done
18667
18668 if test "x$curl_cv_socklen_t_equiv" = x; then
18669 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
18670echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
18671 { (exit 1); exit 1; }; }
18672 fi
18673
18674fi
18675
18676 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
18677echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
18678
18679cat >>confdefs.h <<_ACEOF
18680#define socklen_t $curl_cv_socklen_t_equiv
18681_ACEOF
18682
18683fi
18684
18685
18686
18687echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
18688echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
18689if test "${ac_cv_type_sig_atomic_t+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692 cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698#include <signal.h>
18699
18700int
18701main ()
18702{
18703if ((sig_atomic_t *) 0)
18704 return 0;
18705if (sizeof (sig_atomic_t))
18706 return 0;
18707 ;
18708 return 0;
18709}
18710_ACEOF
18711rm -f conftest.$ac_objext
18712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_type_sig_atomic_t=yes
18734else
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738ac_cv_type_sig_atomic_t=no
18739fi
18740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18741fi
18742echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
18743echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
18744if test $ac_cv_type_sig_atomic_t = yes; then
18745
18746cat >>confdefs.h <<_ACEOF
18747#define HAVE_SIG_ATOMIC_T 1
18748_ACEOF
18749
18750
18751fi
18752
18753
18754echo "$as_me:$LINENO: checking for in_addr_t" >&5
18755echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
18756if test "${ac_cv_type_in_addr_t+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758else
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765#include <sys/types.h>
18766#include <netinet/in.h>
18767
18768int
18769main ()
18770{
18771if ((in_addr_t *) 0)
18772 return 0;
18773if (sizeof (in_addr_t))
18774 return 0;
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_type_in_addr_t=yes
18802else
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806ac_cv_type_in_addr_t=no
18807fi
18808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809fi
18810echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
18811echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
18812if test $ac_cv_type_in_addr_t = yes; then
18813
18814cat >>confdefs.h <<_ACEOF
18815#define HAVE_IN_ADDR_T 1
18816_ACEOF
18817
18818
18819fi
18820
18821
18822echo "$as_me:$LINENO: checking for size_t" >&5
18823echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18824if test "${ac_cv_have_size_t+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826else
18827
18828 cat >conftest.$ac_ext <<_ACEOF
18829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
18834
18835#include <sys/types.h>
18836
18837int
18838main ()
18839{
18840 size_t foo; foo = 1235;
18841 ;
18842 return 0;
18843}
18844_ACEOF
18845rm -f conftest.$ac_objext
18846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847 (eval $ac_compile) 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
18854 { ac_try='test -z "$ac_c_werror_flag"
18855 || test ! -s conftest.err'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 ac_cv_have_size_t="yes"
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872 ac_cv_have_size_t="no"
18873
18874fi
18875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18876
18877fi
18878echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
18879echo "${ECHO_T}$ac_cv_have_size_t" >&6
18880if test "x$ac_cv_have_size_t" = "xyes" ; then
18881 cat >>confdefs.h <<\_ACEOF
18882#define HAVE_SIZE_T 1
18883_ACEOF
18884
18885fi
18886
18887echo "$as_me:$LINENO: checking for ssize_t" >&5
18888echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18889if test "${ac_cv_have_ssize_t+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892
18893 cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
18899
18900#include <sys/types.h>
18901
18902int
18903main ()
18904{
18905 ssize_t foo; foo = 1235;
18906 ;
18907 return 0;
18908}
18909_ACEOF
18910rm -f conftest.$ac_objext
18911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18912 (eval $ac_compile) 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag"
18920 || test ! -s conftest.err'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_have_ssize_t="yes"
18933else
18934 echo "$as_me: failed program was:" >&5
18935sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 ac_cv_have_ssize_t="no"
18938
18939fi
18940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941
18942fi
18943echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
18944echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
18945if test "x$ac_cv_have_ssize_t" = "xyes" ; then
18946 cat >>confdefs.h <<\_ACEOF
18947#define HAVE_SSIZE_T 1
18948_ACEOF
18949
18950fi
18951
18952echo "$as_me:$LINENO: checking for clock_t" >&5
18953echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
18954if test "${ac_cv_have_clock_t+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957
18958 cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964
18965#include <time.h>
18966
18967int
18968main ()
18969{
18970 clock_t foo; foo = 1235;
18971 ;
18972 return 0;
18973}
18974_ACEOF
18975rm -f conftest.$ac_objext
18976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag"
18985 || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_have_clock_t="yes"
18998else
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ac_cv_have_clock_t="no"
19003
19004fi
19005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006
19007fi
19008echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
19009echo "${ECHO_T}$ac_cv_have_clock_t" >&6
19010if test "x$ac_cv_have_clock_t" = "xyes" ; then
19011 cat >>confdefs.h <<\_ACEOF
19012#define HAVE_CLOCK_T 1
19013_ACEOF
19014
19015fi
19016
19017echo "$as_me:$LINENO: checking for sa_family_t" >&5
19018echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
19019if test "${ac_cv_have_sa_family_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#include <sys/socket.h>
19032
19033int
19034main ()
19035{
19036 sa_family_t foo; foo = 1235;
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext
19042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19043 (eval $ac_compile) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19063 ac_cv_have_sa_family_t="yes"
19064else
19065 echo "$as_me: failed program was:" >&5
19066sed 's/^/| /' conftest.$ac_ext >&5
19067
19068 cat >conftest.$ac_ext <<_ACEOF
19069/* confdefs.h. */
19070_ACEOF
19071cat confdefs.h >>conftest.$ac_ext
19072cat >>conftest.$ac_ext <<_ACEOF
19073/* end confdefs.h. */
19074
19075#include <sys/types.h>
19076#include <sys/socket.h>
19077#include <netinet/in.h>
19078
19079int
19080main ()
19081{
19082 sa_family_t foo; foo = 1235;
19083 ;
19084 return 0;
19085}
19086_ACEOF
19087rm -f conftest.$ac_objext
19088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19089 (eval $ac_compile) 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag"
19097 || test ! -s conftest.err'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_have_sa_family_t="yes"
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_cv_have_sa_family_t="no"
19115
19116fi
19117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19118
19119fi
19120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121
19122fi
19123echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
19124echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
19125if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
19126 cat >>confdefs.h <<\_ACEOF
19127#define HAVE_SA_FAMILY_T 1
19128_ACEOF
19129
19130fi
19131
19132echo "$as_me:$LINENO: checking for pid_t" >&5
19133echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19134if test "${ac_cv_have_pid_t+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136else
19137
19138 cat >conftest.$ac_ext <<_ACEOF
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
19144
19145#include <sys/types.h>
19146
19147int
19148main ()
19149{
19150 pid_t foo; foo = 1235;
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19157 (eval $ac_compile) 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag"
19165 || test ! -s conftest.err'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } &&
19171 { ac_try='test -s conftest.$ac_objext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 ac_cv_have_pid_t="yes"
19178else
19179 echo "$as_me: failed program was:" >&5
19180sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_cv_have_pid_t="no"
19183
19184fi
19185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19186
19187fi
19188echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
19189echo "${ECHO_T}$ac_cv_have_pid_t" >&6
19190if test "x$ac_cv_have_pid_t" = "xyes" ; then
19191 cat >>confdefs.h <<\_ACEOF
19192#define HAVE_PID_T 1
19193_ACEOF
19194
19195fi
19196
19197echo "$as_me:$LINENO: checking for mode_t" >&5
19198echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
19199if test "${ac_cv_have_mode_t+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201else
19202
19203 cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209
19210#include <sys/types.h>
19211
19212int
19213main ()
19214{
19215 mode_t foo; foo = 1235;
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_have_mode_t="yes"
19243else
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_cv_have_mode_t="no"
19248
19249fi
19250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251
19252fi
19253echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
19254echo "${ECHO_T}$ac_cv_have_mode_t" >&6
19255if test "x$ac_cv_have_mode_t" = "xyes" ; then
19256 cat >>confdefs.h <<\_ACEOF
19257#define HAVE_MODE_T 1
19258_ACEOF
19259
19260fi
19261
19262
19263echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
19264echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
19265if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267else
19268
19269 cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
19275
19276#include <sys/types.h>
19277#include <sys/socket.h>
19278
19279int
19280main ()
19281{
19282 struct sockaddr_storage s;
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext
19288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289 (eval $ac_compile) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest.$ac_objext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_have_struct_sockaddr_storage="yes"
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ac_cv_have_struct_sockaddr_storage="no"
19315
19316fi
19317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318
19319fi
19320echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
19321echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
19322if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
19323 cat >>confdefs.h <<\_ACEOF
19324#define HAVE_STRUCT_SOCKADDR_STORAGE 1
19325_ACEOF
19326
19327fi
19328
19329echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19330echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
19331if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
19334
19335 cat >conftest.$ac_ext <<_ACEOF
19336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
19341
19342#include <sys/types.h>
19343#include <netinet/in.h>
19344
19345int
19346main ()
19347{
19348 struct sockaddr_in6 s; s.sin6_family = 0;
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_have_struct_sockaddr_in6="yes"
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_cv_have_struct_sockaddr_in6="no"
19381
19382fi
19383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384
19385fi
19386echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
19387echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
19388if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
19389 cat >>confdefs.h <<\_ACEOF
19390#define HAVE_STRUCT_SOCKADDR_IN6 1
19391_ACEOF
19392
19393fi
19394
19395echo "$as_me:$LINENO: checking for struct in6_addr" >&5
19396echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
19397if test "${ac_cv_have_struct_in6_addr+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400
19401 cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h. */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h. */
19407
19408#include <sys/types.h>
19409#include <netinet/in.h>
19410
19411int
19412main ()
19413{
19414 struct in6_addr s; s.s6_addr[0] = 0;
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
19420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19421 (eval $ac_compile) 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag"
19429 || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_have_struct_in6_addr="yes"
19442else
19443 echo "$as_me: failed program was:" >&5
19444sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_have_struct_in6_addr="no"
19447
19448fi
19449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19450
19451fi
19452echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
19453echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
19454if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
19455 cat >>confdefs.h <<\_ACEOF
19456#define HAVE_STRUCT_IN6_ADDR 1
19457_ACEOF
19458
19459fi
19460
19461echo "$as_me:$LINENO: checking for struct addrinfo" >&5
19462echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
19463if test "${ac_cv_have_struct_addrinfo+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465else
19466
19467 cat >conftest.$ac_ext <<_ACEOF
19468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
19472/* end confdefs.h. */
19473
19474#include <sys/types.h>
19475#include <sys/socket.h>
19476#include <netdb.h>
19477
19478int
19479main ()
19480{
19481 struct addrinfo s; s.ai_flags = AI_PASSIVE;
19482 ;
19483 return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_have_struct_addrinfo="yes"
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_cv_have_struct_addrinfo="no"
19514
19515fi
19516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19517
19518fi
19519echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
19520echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
19521if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
19522 cat >>confdefs.h <<\_ACEOF
19523#define HAVE_STRUCT_ADDRINFO 1
19524_ACEOF
19525
19526fi
19527
19528echo "$as_me:$LINENO: checking for struct timeval" >&5
19529echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
19530if test "${ac_cv_have_struct_timeval+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532else
19533
19534 cat >conftest.$ac_ext <<_ACEOF
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
19540 #include <sys/time.h>
19541int
19542main ()
19543{
19544 struct timeval tv; tv.tv_sec = 1;
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549rm -f conftest.$ac_objext
19550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551 (eval $ac_compile) 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_have_struct_timeval="yes"
19572else
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_cv_have_struct_timeval="no"
19577
19578fi
19579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
19583echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
19584if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
19585 cat >>confdefs.h <<\_ACEOF
19586#define HAVE_STRUCT_TIMEVAL 1
19587_ACEOF
19588
19589 have_struct_timeval=1
19590fi
19591
19592echo "$as_me:$LINENO: checking for struct timespec" >&5
19593echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
19594if test "${ac_cv_type_struct_timespec+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596else
19597 cat >conftest.$ac_ext <<_ACEOF
19598/* confdefs.h. */
19599_ACEOF
19600cat confdefs.h >>conftest.$ac_ext
19601cat >>conftest.$ac_ext <<_ACEOF
19602/* end confdefs.h. */
19603$ac_includes_default
19604int
19605main ()
19606{
19607if ((struct timespec *) 0)
19608 return 0;
19609if (sizeof (struct timespec))
19610 return 0;
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext
19616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_type_struct_timespec=yes
19638else
19639 echo "$as_me: failed program was:" >&5
19640sed 's/^/| /' conftest.$ac_ext >&5
19641
19642ac_cv_type_struct_timespec=no
19643fi
19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645fi
19646echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
19647echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
19648if test $ac_cv_type_struct_timespec = yes; then
19649
19650cat >>confdefs.h <<_ACEOF
19651#define HAVE_STRUCT_TIMESPEC 1
19652_ACEOF
19653
19654
19655fi
19656
19657
19658# We need int64_t or else certian parts of the compile will fail.
19659if test "x$ac_cv_have_int64_t" = "xno" && \
19660 test "x$ac_cv_sizeof_long_int" != "x8" && \
19661 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
19662 echo "OpenSSH requires int64_t support. Contact your vendor or install"
19663 echo "an alternative compiler (I.E., GCC) before continuing."
19664 echo ""
19665 exit 1;
19666else
19667 if test "$cross_compiling" = yes; then
19668 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19669echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19670
19671else
19672 cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678
19679#include <stdio.h>
19680#include <string.h>
19681#ifdef HAVE_SNPRINTF
19682main()
19683{
19684 char buf[50];
19685 char expected_out[50];
19686 int mazsize = 50 ;
19687#if (SIZEOF_LONG_INT == 8)
19688 long int num = 0x7fffffffffffffff;
19689#else
19690 long long num = 0x7fffffffffffffffll;
19691#endif
19692 strcpy(expected_out, "9223372036854775807");
19693 snprintf(buf, mazsize, "%lld", num);
19694 if(strcmp(buf, expected_out) != 0)
19695 exit(1);
19696 exit(0);
19697}
19698#else
19699main() { exit(0); }
19700#endif
19701
19702_ACEOF
19703rm -f conftest$ac_exeext
19704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 true
19715else
19716 echo "$as_me: program exited with status $ac_status" >&5
19717echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720( exit $ac_status )
19721 cat >>confdefs.h <<\_ACEOF
19722#define BROKEN_SNPRINTF 1
19723_ACEOF
19724
19725fi
19726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19727fi
19728fi
19729
19730
19731# look for field 'ut_host' in header 'utmp.h'
19732 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19733 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19734 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
19735echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
19736 if eval "test \"\${$ossh_varname+set}\" = set"; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738else
19739
19740 cat >conftest.$ac_ext <<_ACEOF
19741/* confdefs.h. */
19742_ACEOF
19743cat confdefs.h >>conftest.$ac_ext
19744cat >>conftest.$ac_ext <<_ACEOF
19745/* end confdefs.h. */
19746#include <utmp.h>
19747
19748_ACEOF
19749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19750 $EGREP "ut_host" >/dev/null 2>&1; then
19751 eval "$ossh_varname=yes"
19752else
19753 eval "$ossh_varname=no"
19754fi
19755rm -f conftest*
19756
19757fi
19758
19759 ossh_result=`eval 'echo $'"$ossh_varname"`
19760 if test -n "`echo $ossh_varname`"; then
19761 echo "$as_me:$LINENO: result: $ossh_result" >&5
19762echo "${ECHO_T}$ossh_result" >&6
19763 if test "x$ossh_result" = "xyes"; then
19764 cat >>confdefs.h <<\_ACEOF
19765#define HAVE_HOST_IN_UTMP 1
19766_ACEOF
19767
19768 fi
19769 else
19770 echo "$as_me:$LINENO: result: no" >&5
19771echo "${ECHO_T}no" >&6
19772 fi
19773
19774
19775# look for field 'ut_host' in header 'utmpx.h'
19776 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19777 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
19778 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
19779echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
19780 if eval "test \"\${$ossh_varname+set}\" = set"; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790#include <utmpx.h>
19791
19792_ACEOF
19793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19794 $EGREP "ut_host" >/dev/null 2>&1; then
19795 eval "$ossh_varname=yes"
19796else
19797 eval "$ossh_varname=no"
19798fi
19799rm -f conftest*
19800
19801fi
19802
19803 ossh_result=`eval 'echo $'"$ossh_varname"`
19804 if test -n "`echo $ossh_varname`"; then
19805 echo "$as_me:$LINENO: result: $ossh_result" >&5
19806echo "${ECHO_T}$ossh_result" >&6
19807 if test "x$ossh_result" = "xyes"; then
19808 cat >>confdefs.h <<\_ACEOF
19809#define HAVE_HOST_IN_UTMPX 1
19810_ACEOF
19811
19812 fi
19813 else
19814 echo "$as_me:$LINENO: result: no" >&5
19815echo "${ECHO_T}no" >&6
19816 fi
19817
19818
19819# look for field 'syslen' in header 'utmpx.h'
19820 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19821 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
19822 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
19823echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
19824 if eval "test \"\${$ossh_varname+set}\" = set"; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827
19828 cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
19834#include <utmpx.h>
19835
19836_ACEOF
19837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19838 $EGREP "syslen" >/dev/null 2>&1; then
19839 eval "$ossh_varname=yes"
19840else
19841 eval "$ossh_varname=no"
19842fi
19843rm -f conftest*
19844
19845fi
19846
19847 ossh_result=`eval 'echo $'"$ossh_varname"`
19848 if test -n "`echo $ossh_varname`"; then
19849 echo "$as_me:$LINENO: result: $ossh_result" >&5
19850echo "${ECHO_T}$ossh_result" >&6
19851 if test "x$ossh_result" = "xyes"; then
19852 cat >>confdefs.h <<\_ACEOF
19853#define HAVE_SYSLEN_IN_UTMPX 1
19854_ACEOF
19855
19856 fi
19857 else
19858 echo "$as_me:$LINENO: result: no" >&5
19859echo "${ECHO_T}no" >&6
19860 fi
19861
19862
19863# look for field 'ut_pid' in header 'utmp.h'
19864 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19865 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
19866 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
19867echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
19868 if eval "test \"\${$ossh_varname+set}\" = set"; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871
19872 cat >conftest.$ac_ext <<_ACEOF
19873/* confdefs.h. */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
19877/* end confdefs.h. */
19878#include <utmp.h>
19879
19880_ACEOF
19881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19882 $EGREP "ut_pid" >/dev/null 2>&1; then
19883 eval "$ossh_varname=yes"
19884else
19885 eval "$ossh_varname=no"
19886fi
19887rm -f conftest*
19888
19889fi
19890
19891 ossh_result=`eval 'echo $'"$ossh_varname"`
19892 if test -n "`echo $ossh_varname`"; then
19893 echo "$as_me:$LINENO: result: $ossh_result" >&5
19894echo "${ECHO_T}$ossh_result" >&6
19895 if test "x$ossh_result" = "xyes"; then
19896 cat >>confdefs.h <<\_ACEOF
19897#define HAVE_PID_IN_UTMP 1
19898_ACEOF
19899
19900 fi
19901 else
19902 echo "$as_me:$LINENO: result: no" >&5
19903echo "${ECHO_T}no" >&6
19904 fi
19905
19906
19907# look for field 'ut_type' in header 'utmp.h'
19908 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19909 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19910 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
19911echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
19912 if eval "test \"\${$ossh_varname+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915
19916 cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922#include <utmp.h>
19923
19924_ACEOF
19925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926 $EGREP "ut_type" >/dev/null 2>&1; then
19927 eval "$ossh_varname=yes"
19928else
19929 eval "$ossh_varname=no"
19930fi
19931rm -f conftest*
19932
19933fi
19934
19935 ossh_result=`eval 'echo $'"$ossh_varname"`
19936 if test -n "`echo $ossh_varname`"; then
19937 echo "$as_me:$LINENO: result: $ossh_result" >&5
19938echo "${ECHO_T}$ossh_result" >&6
19939 if test "x$ossh_result" = "xyes"; then
19940 cat >>confdefs.h <<\_ACEOF
19941#define HAVE_TYPE_IN_UTMP 1
19942_ACEOF
19943
19944 fi
19945 else
19946 echo "$as_me:$LINENO: result: no" >&5
19947echo "${ECHO_T}no" >&6
19948 fi
19949
19950
19951# look for field 'ut_type' in header 'utmpx.h'
19952 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
19953 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
19954 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
19955echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
19956 if eval "test \"\${$ossh_varname+set}\" = set"; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19958else
19959
19960 cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966#include <utmpx.h>
19967
19968_ACEOF
19969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19970 $EGREP "ut_type" >/dev/null 2>&1; then
19971 eval "$ossh_varname=yes"
19972else
19973 eval "$ossh_varname=no"
19974fi
19975rm -f conftest*
19976
19977fi
19978
19979 ossh_result=`eval 'echo $'"$ossh_varname"`
19980 if test -n "`echo $ossh_varname`"; then
19981 echo "$as_me:$LINENO: result: $ossh_result" >&5
19982echo "${ECHO_T}$ossh_result" >&6
19983 if test "x$ossh_result" = "xyes"; then
19984 cat >>confdefs.h <<\_ACEOF
19985#define HAVE_TYPE_IN_UTMPX 1
19986_ACEOF
19987
19988 fi
19989 else
19990 echo "$as_me:$LINENO: result: no" >&5
19991echo "${ECHO_T}no" >&6
19992 fi
19993
19994
19995# look for field 'ut_tv' in header 'utmp.h'
19996 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
19997 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
19998 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
19999echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
20000 if eval "test \"\${$ossh_varname+set}\" = set"; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002else
20003
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010#include <utmp.h>
20011
20012_ACEOF
20013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20014 $EGREP "ut_tv" >/dev/null 2>&1; then
20015 eval "$ossh_varname=yes"
20016else
20017 eval "$ossh_varname=no"
20018fi
20019rm -f conftest*
20020
20021fi
20022
20023 ossh_result=`eval 'echo $'"$ossh_varname"`
20024 if test -n "`echo $ossh_varname`"; then
20025 echo "$as_me:$LINENO: result: $ossh_result" >&5
20026echo "${ECHO_T}$ossh_result" >&6
20027 if test "x$ossh_result" = "xyes"; then
20028 cat >>confdefs.h <<\_ACEOF
20029#define HAVE_TV_IN_UTMP 1
20030_ACEOF
20031
20032 fi
20033 else
20034 echo "$as_me:$LINENO: result: no" >&5
20035echo "${ECHO_T}no" >&6
20036 fi
20037
20038
20039# look for field 'ut_id' in header 'utmp.h'
20040 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20041 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
20042 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
20043echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
20044 if eval "test \"\${$ossh_varname+set}\" = set"; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20046else
20047
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
20054#include <utmp.h>
20055
20056_ACEOF
20057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20058 $EGREP "ut_id" >/dev/null 2>&1; then
20059 eval "$ossh_varname=yes"
20060else
20061 eval "$ossh_varname=no"
20062fi
20063rm -f conftest*
20064
20065fi
20066
20067 ossh_result=`eval 'echo $'"$ossh_varname"`
20068 if test -n "`echo $ossh_varname`"; then
20069 echo "$as_me:$LINENO: result: $ossh_result" >&5
20070echo "${ECHO_T}$ossh_result" >&6
20071 if test "x$ossh_result" = "xyes"; then
20072 cat >>confdefs.h <<\_ACEOF
20073#define HAVE_ID_IN_UTMP 1
20074_ACEOF
20075
20076 fi
20077 else
20078 echo "$as_me:$LINENO: result: no" >&5
20079echo "${ECHO_T}no" >&6
20080 fi
20081
20082
20083# look for field 'ut_id' in header 'utmpx.h'
20084 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20085 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
20086 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
20087echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
20088 if eval "test \"\${$ossh_varname+set}\" = set"; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098#include <utmpx.h>
20099
20100_ACEOF
20101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102 $EGREP "ut_id" >/dev/null 2>&1; then
20103 eval "$ossh_varname=yes"
20104else
20105 eval "$ossh_varname=no"
20106fi
20107rm -f conftest*
20108
20109fi
20110
20111 ossh_result=`eval 'echo $'"$ossh_varname"`
20112 if test -n "`echo $ossh_varname`"; then
20113 echo "$as_me:$LINENO: result: $ossh_result" >&5
20114echo "${ECHO_T}$ossh_result" >&6
20115 if test "x$ossh_result" = "xyes"; then
20116 cat >>confdefs.h <<\_ACEOF
20117#define HAVE_ID_IN_UTMPX 1
20118_ACEOF
20119
20120 fi
20121 else
20122 echo "$as_me:$LINENO: result: no" >&5
20123echo "${ECHO_T}no" >&6
20124 fi
20125
20126
20127# look for field 'ut_addr' in header 'utmp.h'
20128 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20129 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
20130 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
20131echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
20132 if eval "test \"\${$ossh_varname+set}\" = set"; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134else
20135
20136 cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h. */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h. */
20142#include <utmp.h>
20143
20144_ACEOF
20145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20146 $EGREP "ut_addr" >/dev/null 2>&1; then
20147 eval "$ossh_varname=yes"
20148else
20149 eval "$ossh_varname=no"
20150fi
20151rm -f conftest*
20152
20153fi
20154
20155 ossh_result=`eval 'echo $'"$ossh_varname"`
20156 if test -n "`echo $ossh_varname`"; then
20157 echo "$as_me:$LINENO: result: $ossh_result" >&5
20158echo "${ECHO_T}$ossh_result" >&6
20159 if test "x$ossh_result" = "xyes"; then
20160 cat >>confdefs.h <<\_ACEOF
20161#define HAVE_ADDR_IN_UTMP 1
20162_ACEOF
20163
20164 fi
20165 else
20166 echo "$as_me:$LINENO: result: no" >&5
20167echo "${ECHO_T}no" >&6
20168 fi
20169
20170
20171# look for field 'ut_addr' in header 'utmpx.h'
20172 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20173 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
20174 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
20175echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
20176 if eval "test \"\${$ossh_varname+set}\" = set"; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179
20180 cat >conftest.$ac_ext <<_ACEOF
20181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
20186#include <utmpx.h>
20187
20188_ACEOF
20189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20190 $EGREP "ut_addr" >/dev/null 2>&1; then
20191 eval "$ossh_varname=yes"
20192else
20193 eval "$ossh_varname=no"
20194fi
20195rm -f conftest*
20196
20197fi
20198
20199 ossh_result=`eval 'echo $'"$ossh_varname"`
20200 if test -n "`echo $ossh_varname`"; then
20201 echo "$as_me:$LINENO: result: $ossh_result" >&5
20202echo "${ECHO_T}$ossh_result" >&6
20203 if test "x$ossh_result" = "xyes"; then
20204 cat >>confdefs.h <<\_ACEOF
20205#define HAVE_ADDR_IN_UTMPX 1
20206_ACEOF
20207
20208 fi
20209 else
20210 echo "$as_me:$LINENO: result: no" >&5
20211echo "${ECHO_T}no" >&6
20212 fi
20213
20214
20215# look for field 'ut_addr_v6' in header 'utmp.h'
20216 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20217 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
20218 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
20219echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
20220 if eval "test \"\${$ossh_varname+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223
20224 cat >conftest.$ac_ext <<_ACEOF
20225/* confdefs.h. */
20226_ACEOF
20227cat confdefs.h >>conftest.$ac_ext
20228cat >>conftest.$ac_ext <<_ACEOF
20229/* end confdefs.h. */
20230#include <utmp.h>
20231
20232_ACEOF
20233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20234 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
20235 eval "$ossh_varname=yes"
20236else
20237 eval "$ossh_varname=no"
20238fi
20239rm -f conftest*
20240
20241fi
20242
20243 ossh_result=`eval 'echo $'"$ossh_varname"`
20244 if test -n "`echo $ossh_varname`"; then
20245 echo "$as_me:$LINENO: result: $ossh_result" >&5
20246echo "${ECHO_T}$ossh_result" >&6
20247 if test "x$ossh_result" = "xyes"; then
20248 cat >>confdefs.h <<\_ACEOF
20249#define HAVE_ADDR_V6_IN_UTMP 1
20250_ACEOF
20251
20252 fi
20253 else
20254 echo "$as_me:$LINENO: result: no" >&5
20255echo "${ECHO_T}no" >&6
20256 fi
20257
20258
20259# look for field 'ut_addr_v6' in header 'utmpx.h'
20260 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20261 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
20262 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
20263echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
20264 if eval "test \"\${$ossh_varname+set}\" = set"; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266else
20267
20268 cat >conftest.$ac_ext <<_ACEOF
20269/* confdefs.h. */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h. */
20274#include <utmpx.h>
20275
20276_ACEOF
20277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20278 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
20279 eval "$ossh_varname=yes"
20280else
20281 eval "$ossh_varname=no"
20282fi
20283rm -f conftest*
20284
20285fi
20286
20287 ossh_result=`eval 'echo $'"$ossh_varname"`
20288 if test -n "`echo $ossh_varname`"; then
20289 echo "$as_me:$LINENO: result: $ossh_result" >&5
20290echo "${ECHO_T}$ossh_result" >&6
20291 if test "x$ossh_result" = "xyes"; then
20292 cat >>confdefs.h <<\_ACEOF
20293#define HAVE_ADDR_V6_IN_UTMPX 1
20294_ACEOF
20295
20296 fi
20297 else
20298 echo "$as_me:$LINENO: result: no" >&5
20299echo "${ECHO_T}no" >&6
20300 fi
20301
20302
20303# look for field 'ut_exit' in header 'utmp.h'
20304 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20305 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
20306 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
20307echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
20308 if eval "test \"\${$ossh_varname+set}\" = set"; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20310else
20311
20312 cat >conftest.$ac_ext <<_ACEOF
20313/* confdefs.h. */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h. */
20318#include <utmp.h>
20319
20320_ACEOF
20321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20322 $EGREP "ut_exit" >/dev/null 2>&1; then
20323 eval "$ossh_varname=yes"
20324else
20325 eval "$ossh_varname=no"
20326fi
20327rm -f conftest*
20328
20329fi
20330
20331 ossh_result=`eval 'echo $'"$ossh_varname"`
20332 if test -n "`echo $ossh_varname`"; then
20333 echo "$as_me:$LINENO: result: $ossh_result" >&5
20334echo "${ECHO_T}$ossh_result" >&6
20335 if test "x$ossh_result" = "xyes"; then
20336 cat >>confdefs.h <<\_ACEOF
20337#define HAVE_EXIT_IN_UTMP 1
20338_ACEOF
20339
20340 fi
20341 else
20342 echo "$as_me:$LINENO: result: no" >&5
20343echo "${ECHO_T}no" >&6
20344 fi
20345
20346
20347# look for field 'ut_time' in header 'utmp.h'
20348 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
20349 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
20350 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
20351echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
20352 if eval "test \"\${$ossh_varname+set}\" = set"; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354else
20355
20356 cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
20362#include <utmp.h>
20363
20364_ACEOF
20365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20366 $EGREP "ut_time" >/dev/null 2>&1; then
20367 eval "$ossh_varname=yes"
20368else
20369 eval "$ossh_varname=no"
20370fi
20371rm -f conftest*
20372
20373fi
20374
20375 ossh_result=`eval 'echo $'"$ossh_varname"`
20376 if test -n "`echo $ossh_varname`"; then
20377 echo "$as_me:$LINENO: result: $ossh_result" >&5
20378echo "${ECHO_T}$ossh_result" >&6
20379 if test "x$ossh_result" = "xyes"; then
20380 cat >>confdefs.h <<\_ACEOF
20381#define HAVE_TIME_IN_UTMP 1
20382_ACEOF
20383
20384 fi
20385 else
20386 echo "$as_me:$LINENO: result: no" >&5
20387echo "${ECHO_T}no" >&6
20388 fi
20389
20390
20391# look for field 'ut_time' in header 'utmpx.h'
20392 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20393 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
20394 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
20395echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
20396 if eval "test \"\${$ossh_varname+set}\" = set"; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399
20400 cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h. */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h. */
20406#include <utmpx.h>
20407
20408_ACEOF
20409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20410 $EGREP "ut_time" >/dev/null 2>&1; then
20411 eval "$ossh_varname=yes"
20412else
20413 eval "$ossh_varname=no"
20414fi
20415rm -f conftest*
20416
20417fi
20418
20419 ossh_result=`eval 'echo $'"$ossh_varname"`
20420 if test -n "`echo $ossh_varname`"; then
20421 echo "$as_me:$LINENO: result: $ossh_result" >&5
20422echo "${ECHO_T}$ossh_result" >&6
20423 if test "x$ossh_result" = "xyes"; then
20424 cat >>confdefs.h <<\_ACEOF
20425#define HAVE_TIME_IN_UTMPX 1
20426_ACEOF
20427
20428 fi
20429 else
20430 echo "$as_me:$LINENO: result: no" >&5
20431echo "${ECHO_T}no" >&6
20432 fi
20433
20434
20435# look for field 'ut_tv' in header 'utmpx.h'
20436 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
20437 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
20438 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
20439echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
20440 if eval "test \"\${$ossh_varname+set}\" = set"; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442else
20443
20444 cat >conftest.$ac_ext <<_ACEOF
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
20450#include <utmpx.h>
20451
20452_ACEOF
20453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20454 $EGREP "ut_tv" >/dev/null 2>&1; then
20455 eval "$ossh_varname=yes"
20456else
20457 eval "$ossh_varname=no"
20458fi
20459rm -f conftest*
20460
20461fi
20462
20463 ossh_result=`eval 'echo $'"$ossh_varname"`
20464 if test -n "`echo $ossh_varname`"; then
20465 echo "$as_me:$LINENO: result: $ossh_result" >&5
20466echo "${ECHO_T}$ossh_result" >&6
20467 if test "x$ossh_result" = "xyes"; then
20468 cat >>confdefs.h <<\_ACEOF
20469#define HAVE_TV_IN_UTMPX 1
20470_ACEOF
20471
20472 fi
20473 else
20474 echo "$as_me:$LINENO: result: no" >&5
20475echo "${ECHO_T}no" >&6
20476 fi
20477
20478
20479echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20480echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20481if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483else
20484 cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490$ac_includes_default
20491int
20492main ()
20493{
20494static struct stat ac_aggr;
20495if (ac_aggr.st_blksize)
20496return 0;
20497 ;
20498 return 0;
20499}
20500_ACEOF
20501rm -f conftest.$ac_objext
20502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20503 (eval $ac_compile) 2>conftest.er1
20504 ac_status=$?
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } &&
20510 { ac_try='test -z "$ac_c_werror_flag"
20511 || test ! -s conftest.err'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; } &&
20517 { ac_try='test -s conftest.$ac_objext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_cv_member_struct_stat_st_blksize=yes
20524else
20525 echo "$as_me: failed program was:" >&5
20526sed 's/^/| /' conftest.$ac_ext >&5
20527
20528cat >conftest.$ac_ext <<_ACEOF
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534$ac_includes_default
20535int
20536main ()
20537{
20538static struct stat ac_aggr;
20539if (sizeof ac_aggr.st_blksize)
20540return 0;
20541 ;
20542 return 0;
20543}
20544_ACEOF
20545rm -f conftest.$ac_objext
20546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547 (eval $ac_compile) 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag"
20555 || test ! -s conftest.err'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_member_struct_stat_st_blksize=yes
20568else
20569 echo "$as_me: failed program was:" >&5
20570sed 's/^/| /' conftest.$ac_ext >&5
20571
20572ac_cv_member_struct_stat_st_blksize=no
20573fi
20574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575fi
20576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20577fi
20578echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20579echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20580if test $ac_cv_member_struct_stat_st_blksize = yes; then
20581
20582cat >>confdefs.h <<_ACEOF
20583#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20584_ACEOF
20585
20586
20587fi
20588
20589
20590echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
20591echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20592if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594else
20595
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602
20603#include <sys/types.h>
20604#include <sys/socket.h>
20605
20606int
20607main ()
20608{
20609 struct sockaddr_storage s; s.ss_family = 1;
20610 ;
20611 return 0;
20612}
20613_ACEOF
20614rm -f conftest.$ac_objext
20615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616 (eval $ac_compile) 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_have_ss_family_in_struct_ss="yes"
20637else
20638 echo "$as_me: failed program was:" >&5
20639sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 ac_cv_have_ss_family_in_struct_ss="no"
20642fi
20643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20644
20645fi
20646echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
20647echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
20648if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
20649 cat >>confdefs.h <<\_ACEOF
20650#define HAVE_SS_FAMILY_IN_SS 1
20651_ACEOF
20652
20653fi
20654
20655echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
20656echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
20657if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660
20661 cat >conftest.$ac_ext <<_ACEOF
20662/* confdefs.h. */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h. */
20667
20668#include <sys/types.h>
20669#include <sys/socket.h>
20670
20671int
20672main ()
20673{
20674 struct sockaddr_storage s; s.__ss_family = 1;
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_have___ss_family_in_struct_ss="yes"
20702else
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 ac_cv_have___ss_family_in_struct_ss="no"
20707
20708fi
20709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20710
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
20713echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
20714if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
20715 cat >>confdefs.h <<\_ACEOF
20716#define HAVE___SS_FAMILY_IN_SS 1
20717_ACEOF
20718
20719fi
20720
20721echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
20722echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
20723if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725else
20726
20727 cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h. */
20733
20734#include <pwd.h>
20735
20736int
20737main ()
20738{
20739 struct passwd p; p.pw_class = 0;
20740 ;
20741 return 0;
20742}
20743_ACEOF
20744rm -f conftest.$ac_objext
20745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -z "$ac_c_werror_flag"
20754 || test ! -s conftest.err'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest.$ac_objext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 ac_cv_have_pw_class_in_struct_passwd="yes"
20767else
20768 echo "$as_me: failed program was:" >&5
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
20771 ac_cv_have_pw_class_in_struct_passwd="no"
20772
20773fi
20774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20775
20776fi
20777echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
20778echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
20779if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
20780 cat >>confdefs.h <<\_ACEOF
20781#define HAVE_PW_CLASS_IN_PASSWD 1
20782_ACEOF
20783
20784fi
20785
20786echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
20787echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
20788if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790else
20791
20792 cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798
20799#include <pwd.h>
20800
20801int
20802main ()
20803{
20804 struct passwd p; p.pw_expire = 0;
20805 ;
20806 return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext
20810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20811 (eval $ac_compile) 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -z "$ac_c_werror_flag"
20819 || test ! -s conftest.err'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; } &&
20825 { ac_try='test -s conftest.$ac_objext'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_cv_have_pw_expire_in_struct_passwd="yes"
20832else
20833 echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ac_cv_have_pw_expire_in_struct_passwd="no"
20837
20838fi
20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840
20841fi
20842echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
20843echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
20844if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
20845 cat >>confdefs.h <<\_ACEOF
20846#define HAVE_PW_EXPIRE_IN_PASSWD 1
20847_ACEOF
20848
20849fi
20850
20851echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
20852echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
20853if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20855else
20856
20857 cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
20863
20864#include <pwd.h>
20865
20866int
20867main ()
20868{
20869 struct passwd p; p.pw_change = 0;
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest.$ac_objext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_have_pw_change_in_struct_passwd="yes"
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_cv_have_pw_change_in_struct_passwd="no"
20902
20903fi
20904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20905
20906fi
20907echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
20908echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
20909if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
20910 cat >>confdefs.h <<\_ACEOF
20911#define HAVE_PW_CHANGE_IN_PASSWD 1
20912_ACEOF
20913
20914fi
20915
20916echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
20917echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
20918if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921
20922 cat >conftest.$ac_ext <<_ACEOF
20923
20924#include <sys/types.h>
20925#include <sys/socket.h>
20926#include <sys/uio.h>
20927int main() {
20928#ifdef msg_accrights
20929#error "msg_accrights is a macro"
20930exit(1);
20931#endif
20932struct msghdr m;
20933m.msg_accrights = 0;
20934exit(0);
20935}
20936
20937_ACEOF
20938rm -f conftest.$ac_objext
20939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940 (eval $ac_compile) 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag"
20948 || test ! -s conftest.err'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; } &&
20954 { ac_try='test -s conftest.$ac_objext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_cv_have_accrights_in_msghdr="yes"
20961else
20962 echo "$as_me: failed program was:" >&5
20963sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 ac_cv_have_accrights_in_msghdr="no"
20966
20967fi
20968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20969
20970fi
20971echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
20972echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
20973if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
20974 cat >>confdefs.h <<\_ACEOF
20975#define HAVE_ACCRIGHTS_IN_MSGHDR 1
20976_ACEOF
20977
20978fi
20979
20980echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
20981echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
20982if test "${ac_cv_have_control_in_msghdr+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984else
20985
20986 cat >conftest.$ac_ext <<_ACEOF
20987
20988#include <sys/types.h>
20989#include <sys/socket.h>
20990#include <sys/uio.h>
20991int main() {
20992#ifdef msg_control
20993#error "msg_control is a macro"
20994exit(1);
20995#endif
20996struct msghdr m;
20997m.msg_control = 0;
20998exit(0);
20999}
21000
21001_ACEOF
21002rm -f conftest.$ac_objext
21003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21004 (eval $ac_compile) 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest.$ac_objext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_have_control_in_msghdr="yes"
21025else
21026 echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_have_control_in_msghdr="no"
21030
21031fi
21032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21033
21034fi
21035echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
21036echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
21037if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
21038 cat >>confdefs.h <<\_ACEOF
21039#define HAVE_CONTROL_IN_MSGHDR 1
21040_ACEOF
21041
21042fi
21043
21044echo "$as_me:$LINENO: checking if libc defines __progname" >&5
21045echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
21046if test "${ac_cv_libc_defines___progname+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048else
21049
21050 cat >conftest.$ac_ext <<_ACEOF
21051/* confdefs.h. */
21052_ACEOF
21053cat confdefs.h >>conftest.$ac_ext
21054cat >>conftest.$ac_ext <<_ACEOF
21055/* end confdefs.h. */
21056
21057int
21058main ()
21059{
21060 extern char *__progname; printf("%s", __progname);
21061 ;
21062 return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext conftest$ac_exeext
21066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_libc_defines___progname="yes"
21088else
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 ac_cv_libc_defines___progname="no"
21093
21094fi
21095rm -f conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21097
21098fi
21099echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
21100echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
21101if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
21102 cat >>confdefs.h <<\_ACEOF
21103#define HAVE___PROGNAME 1
21104_ACEOF
21105
21106fi
21107
21108echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
21109echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
21110if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113
21114 cat >conftest.$ac_ext <<_ACEOF
21115/* confdefs.h. */
21116_ACEOF
21117cat confdefs.h >>conftest.$ac_ext
21118cat >>conftest.$ac_ext <<_ACEOF
21119/* end confdefs.h. */
21120
21121#include <stdio.h>
21122
21123int
21124main ()
21125{
21126 printf("%s", __FUNCTION__);
21127 ;
21128 return 0;
21129}
21130_ACEOF
21131rm -f conftest.$ac_objext conftest$ac_exeext
21132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_cc_implements___FUNCTION__="yes"
21154else
21155 echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_cv_cc_implements___FUNCTION__="no"
21159
21160fi
21161rm -f conftest.err conftest.$ac_objext \
21162 conftest$ac_exeext conftest.$ac_ext
21163
21164fi
21165echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
21166echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
21167if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
21168 cat >>confdefs.h <<\_ACEOF
21169#define HAVE___FUNCTION__ 1
21170_ACEOF
21171
21172fi
21173
21174echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
21175echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
21176if test "${ac_cv_cc_implements___func__+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178else
21179
21180 cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
21186
21187#include <stdio.h>
21188
21189int
21190main ()
21191{
21192 printf("%s", __func__);
21193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext conftest$ac_exeext
21198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21199 (eval $ac_link) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest$ac_exeext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 ac_cv_cc_implements___func__="yes"
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_cv_cc_implements___func__="no"
21225
21226fi
21227rm -f conftest.err conftest.$ac_objext \
21228 conftest$ac_exeext conftest.$ac_ext
21229
21230fi
21231echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
21232echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
21233if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
21234 cat >>confdefs.h <<\_ACEOF
21235#define HAVE___func__ 1
21236_ACEOF
21237
21238fi
21239
21240echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
21241echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
21242if test "${ac_cv_have_getopt_optreset+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245
21246 cat >conftest.$ac_ext <<_ACEOF
21247/* confdefs.h. */
21248_ACEOF
21249cat confdefs.h >>conftest.$ac_ext
21250cat >>conftest.$ac_ext <<_ACEOF
21251/* end confdefs.h. */
21252
21253#include <getopt.h>
21254
21255int
21256main ()
21257{
21258 extern int optreset; optreset = 0;
21259 ;
21260 return 0;
21261}
21262_ACEOF
21263rm -f conftest.$ac_objext conftest$ac_exeext
21264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265 (eval $ac_link) 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag"
21273 || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest$ac_exeext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_have_getopt_optreset="yes"
21286else
21287 echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_have_getopt_optreset="no"
21291
21292fi
21293rm -f conftest.err conftest.$ac_objext \
21294 conftest$ac_exeext conftest.$ac_ext
21295
21296fi
21297echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
21298echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
21299if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
21300 cat >>confdefs.h <<\_ACEOF
21301#define HAVE_GETOPT_OPTRESET 1
21302_ACEOF
21303
21304fi
21305
21306echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
21307echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
21308if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310else
21311
21312 cat >conftest.$ac_ext <<_ACEOF
21313/* confdefs.h. */
21314_ACEOF
21315cat confdefs.h >>conftest.$ac_ext
21316cat >>conftest.$ac_ext <<_ACEOF
21317/* end confdefs.h. */
21318
21319int
21320main ()
21321{
21322 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
21323 ;
21324 return 0;
21325}
21326_ACEOF
21327rm -f conftest.$ac_objext conftest$ac_exeext
21328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329 (eval $ac_link) 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_c_werror_flag"
21337 || test ! -s conftest.err'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; } &&
21343 { ac_try='test -s conftest$ac_exeext'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 ac_cv_libc_defines_sys_errlist="yes"
21350else
21351 echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_cv_libc_defines_sys_errlist="no"
21355
21356fi
21357rm -f conftest.err conftest.$ac_objext \
21358 conftest$ac_exeext conftest.$ac_ext
21359
21360fi
21361echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
21362echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
21363if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
21364 cat >>confdefs.h <<\_ACEOF
21365#define HAVE_SYS_ERRLIST 1
21366_ACEOF
21367
21368fi
21369
21370
21371echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
21372echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
21373if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21375else
21376
21377 cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383
21384int
21385main ()
21386{
21387 extern int sys_nerr; printf("%i", sys_nerr);
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext conftest$ac_exeext
21393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21394 (eval $ac_link) 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
21401 { ac_try='test -z "$ac_c_werror_flag"
21402 || test ! -s conftest.err'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest$ac_exeext'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_libc_defines_sys_nerr="yes"
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
21419 ac_cv_libc_defines_sys_nerr="no"
21420
21421fi
21422rm -f conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21424
21425fi
21426echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
21427echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
21428if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
21429 cat >>confdefs.h <<\_ACEOF
21430#define HAVE_SYS_NERR 1
21431_ACEOF
21432
21433fi
21434
21435SCARD_MSG="no"
21436# Check whether user wants sectok support
21437
21438# Check whether --with-sectok or --without-sectok was given.
21439if test "${with_sectok+set}" = set; then
21440 withval="$with_sectok"
21441
21442 if test "x$withval" != "xno" ; then
21443 if test "x$withval" != "xyes" ; then
21444 CPPFLAGS="$CPPFLAGS -I${withval}"
21445 LDFLAGS="$LDFLAGS -L${withval}"
21446 if test ! -z "$need_dash_r" ; then
21447 LDFLAGS="$LDFLAGS -R${withval}"
21448 fi
21449 if test ! -z "$blibpath" ; then
21450 blibpath="$blibpath:${withval}"
21451 fi
21452 fi
21453
21454for ac_header in sectok.h
21455do
21456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21457if eval "test \"\${$as_ac_Header+set}\" = set"; then
21458 echo "$as_me:$LINENO: checking for $ac_header" >&5
21459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21460if eval "test \"\${$as_ac_Header+set}\" = set"; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462fi
21463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21465else
21466 # Is the header compilable?
21467echo "$as_me:$LINENO: checking $ac_header usability" >&5
21468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21469cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
21475$ac_includes_default
21476#include <$ac_header>
21477_ACEOF
21478rm -f conftest.$ac_objext
21479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21480 (eval $ac_compile) 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -z "$ac_c_werror_flag"
21488 || test ! -s conftest.err'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest.$ac_objext'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_header_compiler=yes
21501else
21502 echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505ac_header_compiler=no
21506fi
21507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21509echo "${ECHO_T}$ac_header_compiler" >&6
21510
21511# Is the header present?
21512echo "$as_me:$LINENO: checking $ac_header presence" >&5
21513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21514cat >conftest.$ac_ext <<_ACEOF
21515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
21519/* end confdefs.h. */
21520#include <$ac_header>
21521_ACEOF
21522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } >/dev/null; then
21530 if test -s conftest.err; then
21531 ac_cpp_err=$ac_c_preproc_warn_flag
21532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21533 else
21534 ac_cpp_err=
21535 fi
21536else
21537 ac_cpp_err=yes
21538fi
21539if test -z "$ac_cpp_err"; then
21540 ac_header_preproc=yes
21541else
21542 echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
21545 ac_header_preproc=no
21546fi
21547rm -f conftest.err conftest.$ac_ext
21548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21549echo "${ECHO_T}$ac_header_preproc" >&6
21550
21551# So? What about this header?
21552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21553 yes:no: )
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21558 ac_header_preproc=yes
21559 ;;
21560 no:yes:* )
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21573 (
21574 cat <<\_ASBOX
21575## ------------------------------------------- ##
21576## Report this to openssh-unix-dev@mindrot.org ##
21577## ------------------------------------------- ##
21578_ASBOX
21579 ) |
21580 sed "s/^/$as_me: WARNING: /" >&2
21581 ;;
21582esac
21583echo "$as_me:$LINENO: checking for $ac_header" >&5
21584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21585if eval "test \"\${$as_ac_Header+set}\" = set"; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21587else
21588 eval "$as_ac_Header=\$ac_header_preproc"
21589fi
21590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21592
21593fi
21594if test `eval echo '${'$as_ac_Header'}'` = yes; then
21595 cat >>confdefs.h <<_ACEOF
21596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21597_ACEOF
21598
21599fi
21600
21601done
21602
21603 if test "$ac_cv_header_sectok_h" != yes; then
21604 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
21605echo "$as_me: error: Can't find sectok.h" >&2;}
21606 { (exit 1); exit 1; }; }
21607 fi
21608
21609echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
21610echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
21611if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614 ac_check_lib_save_LIBS=$LIBS
21615LIBS="-lsectok $LIBS"
21616cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
21622
21623/* Override any gcc2 internal prototype to avoid an error. */
21624#ifdef __cplusplus
21625extern "C"
21626#endif
21627/* We use char because int might match the return type of a gcc2
21628 builtin and then its argument prototype would still apply. */
21629char sectok_open ();
21630int
21631main ()
21632{
21633sectok_open ();
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638rm -f conftest.$ac_objext conftest$ac_exeext
21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640 (eval $ac_link) 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest$ac_exeext'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_lib_sectok_sectok_open=yes
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665ac_cv_lib_sectok_sectok_open=no
21666fi
21667rm -f conftest.err conftest.$ac_objext \
21668 conftest$ac_exeext conftest.$ac_ext
21669LIBS=$ac_check_lib_save_LIBS
21670fi
21671echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
21672echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
21673if test $ac_cv_lib_sectok_sectok_open = yes; then
21674 cat >>confdefs.h <<_ACEOF
21675#define HAVE_LIBSECTOK 1
21676_ACEOF
21677
21678 LIBS="-lsectok $LIBS"
21679
21680fi
21681
21682 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
21683 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
21684echo "$as_me: error: Can't find libsectok" >&2;}
21685 { (exit 1); exit 1; }; }
21686 fi
21687 cat >>confdefs.h <<\_ACEOF
21688#define SMARTCARD 1
21689_ACEOF
21690
21691 cat >>confdefs.h <<\_ACEOF
21692#define USE_SECTOK 1
21693_ACEOF
21694
21695 SCARD_MSG="yes, using sectok"
21696 fi
21697
21698
21699fi;
21700
21701# Check whether user wants OpenSC support
21702OPENSC_CONFIG="no"
21703
21704# Check whether --with-opensc or --without-opensc was given.
21705if test "${with_opensc+set}" = set; then
21706 withval="$with_opensc"
21707
21708 if test "x$withval" != "xno" ; then
21709 if test "x$withval" != "xyes" ; then
21710 OPENSC_CONFIG=$withval/bin/opensc-config
21711 else
21712 # Extract the first word of "opensc-config", so it can be a program name with args.
21713set dummy opensc-config; ac_word=$2
21714echo "$as_me:$LINENO: checking for $ac_word" >&5
21715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21716if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21718else
21719 case $OPENSC_CONFIG in
21720 [\\/]* | ?:[\\/]*)
21721 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
21722 ;;
21723 *)
21724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21725for as_dir in $PATH
21726do
21727 IFS=$as_save_IFS
21728 test -z "$as_dir" && as_dir=.
21729 for ac_exec_ext in '' $ac_executable_extensions; do
21730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21731 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21733 break 2
21734 fi
21735done
21736done
21737
21738 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
21739 ;;
21740esac
21741fi
21742OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
21743
21744if test -n "$OPENSC_CONFIG"; then
21745 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
21746echo "${ECHO_T}$OPENSC_CONFIG" >&6
21747else
21748 echo "$as_me:$LINENO: result: no" >&5
21749echo "${ECHO_T}no" >&6
21750fi
21751
21752 fi
21753 if test "$OPENSC_CONFIG" != "no"; then
21754 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
21755 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
21756 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
21757 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
21758 cat >>confdefs.h <<\_ACEOF
21759#define SMARTCARD 1
21760_ACEOF
21761
21762 cat >>confdefs.h <<\_ACEOF
21763#define USE_OPENSC 1
21764_ACEOF
21765
21766 SCARD_MSG="yes, using OpenSC"
21767 fi
21768 fi
21769
21770
21771fi;
21772
21773# Check libraries needed by DNS fingerprint support
21774echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
21775echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
21776if test "${ac_cv_search_getrrsetbyname+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778else
21779 ac_func_search_save_LIBS=$LIBS
21780ac_cv_search_getrrsetbyname=no
21781cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
21787
21788/* Override any gcc2 internal prototype to avoid an error. */
21789#ifdef __cplusplus
21790extern "C"
21791#endif
21792/* We use char because int might match the return type of a gcc2
21793 builtin and then its argument prototype would still apply. */
21794char getrrsetbyname ();
21795int
21796main ()
21797{
21798getrrsetbyname ();
21799 ;
21800 return 0;
21801}
21802_ACEOF
21803rm -f conftest.$ac_objext conftest$ac_exeext
21804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21805 (eval $ac_link) 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } &&
21812 { ac_try='test -z "$ac_c_werror_flag"
21813 || test ! -s conftest.err'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; } &&
21819 { ac_try='test -s conftest$ac_exeext'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ac_cv_search_getrrsetbyname="none required"
21826else
21827 echo "$as_me: failed program was:" >&5
21828sed 's/^/| /' conftest.$ac_ext >&5
21829
21830fi
21831rm -f conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21833if test "$ac_cv_search_getrrsetbyname" = no; then
21834 for ac_lib in resolv; do
21835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21836 cat >conftest.$ac_ext <<_ACEOF
21837/* confdefs.h. */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h. */
21842
21843/* Override any gcc2 internal prototype to avoid an error. */
21844#ifdef __cplusplus
21845extern "C"
21846#endif
21847/* We use char because int might match the return type of a gcc2
21848 builtin and then its argument prototype would still apply. */
21849char getrrsetbyname ();
21850int
21851main ()
21852{
21853getrrsetbyname ();
21854 ;
21855 return 0;
21856}
21857_ACEOF
21858rm -f conftest.$ac_objext conftest$ac_exeext
21859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21860 (eval $ac_link) 2>conftest.er1
21861 ac_status=$?
21862 grep -v '^ *+' conftest.er1 >conftest.err
21863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } &&
21867 { ac_try='test -z "$ac_c_werror_flag"
21868 || test ! -s conftest.err'
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; } &&
21874 { ac_try='test -s conftest$ac_exeext'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 ac_cv_search_getrrsetbyname="-l$ac_lib"
21881break
21882else
21883 echo "$as_me: failed program was:" >&5
21884sed 's/^/| /' conftest.$ac_ext >&5
21885
21886fi
21887rm -f conftest.err conftest.$ac_objext \
21888 conftest$ac_exeext conftest.$ac_ext
21889 done
21890fi
21891LIBS=$ac_func_search_save_LIBS
21892fi
21893echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
21894echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
21895if test "$ac_cv_search_getrrsetbyname" != no; then
21896 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
21897 cat >>confdefs.h <<\_ACEOF
21898#define HAVE_GETRRSETBYNAME 1
21899_ACEOF
21900
21901else
21902
21903 # Needed by our getrrsetbyname()
21904 echo "$as_me:$LINENO: checking for library containing res_query" >&5
21905echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
21906if test "${ac_cv_search_res_query+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908else
21909 ac_func_search_save_LIBS=$LIBS
21910ac_cv_search_res_query=no
21911cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
21917
21918/* Override any gcc2 internal prototype to avoid an error. */
21919#ifdef __cplusplus
21920extern "C"
21921#endif
21922/* We use char because int might match the return type of a gcc2
21923 builtin and then its argument prototype would still apply. */
21924char res_query ();
21925int
21926main ()
21927{
21928res_query ();
21929 ;
21930 return 0;
21931}
21932_ACEOF
21933rm -f conftest.$ac_objext conftest$ac_exeext
21934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21935 (eval $ac_link) 2>conftest.er1
21936 ac_status=$?
21937 grep -v '^ *+' conftest.er1 >conftest.err
21938 rm -f conftest.er1
21939 cat conftest.err >&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } &&
21942 { ac_try='test -z "$ac_c_werror_flag"
21943 || test ! -s conftest.err'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; } &&
21949 { ac_try='test -s conftest$ac_exeext'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; }; then
21955 ac_cv_search_res_query="none required"
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960fi
21961rm -f conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21963if test "$ac_cv_search_res_query" = no; then
21964 for ac_lib in resolv; do
21965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21966 cat >conftest.$ac_ext <<_ACEOF
21967/* confdefs.h. */
21968_ACEOF
21969cat confdefs.h >>conftest.$ac_ext
21970cat >>conftest.$ac_ext <<_ACEOF
21971/* end confdefs.h. */
21972
21973/* Override any gcc2 internal prototype to avoid an error. */
21974#ifdef __cplusplus
21975extern "C"
21976#endif
21977/* We use char because int might match the return type of a gcc2
21978 builtin and then its argument prototype would still apply. */
21979char res_query ();
21980int
21981main ()
21982{
21983res_query ();
21984 ;
21985 return 0;
21986}
21987_ACEOF
21988rm -f conftest.$ac_objext conftest$ac_exeext
21989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21990 (eval $ac_link) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_cv_search_res_query="-l$ac_lib"
22011break
22012else
22013 echo "$as_me: failed program was:" >&5
22014sed 's/^/| /' conftest.$ac_ext >&5
22015
22016fi
22017rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22019 done
22020fi
22021LIBS=$ac_func_search_save_LIBS
22022fi
22023echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
22024echo "${ECHO_T}$ac_cv_search_res_query" >&6
22025if test "$ac_cv_search_res_query" != no; then
22026 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
22027
22028fi
22029
22030 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
22031echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
22032if test "${ac_cv_search_dn_expand+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034else
22035 ac_func_search_save_LIBS=$LIBS
22036ac_cv_search_dn_expand=no
22037cat >conftest.$ac_ext <<_ACEOF
22038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043
22044/* Override any gcc2 internal prototype to avoid an error. */
22045#ifdef __cplusplus
22046extern "C"
22047#endif
22048/* We use char because int might match the return type of a gcc2
22049 builtin and then its argument prototype would still apply. */
22050char dn_expand ();
22051int
22052main ()
22053{
22054dn_expand ();
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext conftest$ac_exeext
22060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22061 (eval $ac_link) 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -z "$ac_c_werror_flag"
22069 || test ! -s conftest.err'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest$ac_exeext'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081 ac_cv_search_dn_expand="none required"
22082else
22083 echo "$as_me: failed program was:" >&5
22084sed 's/^/| /' conftest.$ac_ext >&5
22085
22086fi
22087rm -f conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22089if test "$ac_cv_search_dn_expand" = no; then
22090 for ac_lib in resolv; do
22091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22092 cat >conftest.$ac_ext <<_ACEOF
22093/* confdefs.h. */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h. */
22098
22099/* Override any gcc2 internal prototype to avoid an error. */
22100#ifdef __cplusplus
22101extern "C"
22102#endif
22103/* We use char because int might match the return type of a gcc2
22104 builtin and then its argument prototype would still apply. */
22105char dn_expand ();
22106int
22107main ()
22108{
22109dn_expand ();
22110 ;
22111 return 0;
22112}
22113_ACEOF
22114rm -f conftest.$ac_objext conftest$ac_exeext
22115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22116 (eval $ac_link) 2>conftest.er1
22117 ac_status=$?
22118 grep -v '^ *+' conftest.er1 >conftest.err
22119 rm -f conftest.er1
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
22123 { ac_try='test -z "$ac_c_werror_flag"
22124 || test ! -s conftest.err'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; } &&
22130 { ac_try='test -s conftest$ac_exeext'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; }; then
22136 ac_cv_search_dn_expand="-l$ac_lib"
22137break
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
22142fi
22143rm -f conftest.err conftest.$ac_objext \
22144 conftest$ac_exeext conftest.$ac_ext
22145 done
22146fi
22147LIBS=$ac_func_search_save_LIBS
22148fi
22149echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
22150echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
22151if test "$ac_cv_search_dn_expand" != no; then
22152 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
22153
22154fi
22155
22156 echo "$as_me:$LINENO: checking if res_query will link" >&5
22157echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6
22158 cat >conftest.$ac_ext <<_ACEOF
22159/* confdefs.h. */
22160_ACEOF
22161cat confdefs.h >>conftest.$ac_ext
22162cat >>conftest.$ac_ext <<_ACEOF
22163/* end confdefs.h. */
22164
22165/* Override any gcc2 internal prototype to avoid an error. */
22166#ifdef __cplusplus
22167extern "C"
22168#endif
22169/* We use char because int might match the return type of a gcc2
22170 builtin and then its argument prototype would still apply. */
22171char res_query ();
22172int
22173main ()
22174{
22175res_query ();
22176 ;
22177 return 0;
22178}
22179_ACEOF
22180rm -f conftest.$ac_objext conftest$ac_exeext
22181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22182 (eval $ac_link) 2>conftest.er1
22183 ac_status=$?
22184 grep -v '^ *+' conftest.er1 >conftest.err
22185 rm -f conftest.er1
22186 cat conftest.err >&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
22189 { ac_try='test -z "$ac_c_werror_flag"
22190 || test ! -s conftest.err'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; } &&
22196 { ac_try='test -s conftest$ac_exeext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 echo "$as_me:$LINENO: result: yes" >&5
22203echo "${ECHO_T}yes" >&6
22204else
22205 echo "$as_me: failed program was:" >&5
22206sed 's/^/| /' conftest.$ac_ext >&5
22207
22208echo "$as_me:$LINENO: result: no" >&5
22209echo "${ECHO_T}no" >&6
22210 saved_LIBS="$LIBS"
22211 LIBS="$LIBS -lresolv"
22212 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
22213echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
22214 cat >conftest.$ac_ext <<_ACEOF
22215
22216#include <resolv.h>
22217int main()
22218{
22219 res_query (0, 0, 0, 0, 0);
22220 return 0;
22221}
22222
22223_ACEOF
22224rm -f conftest.$ac_objext conftest$ac_exeext
22225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22226 (eval $ac_link) 2>conftest.er1
22227 ac_status=$?
22228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } &&
22233 { ac_try='test -z "$ac_c_werror_flag"
22234 || test ! -s conftest.err'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; } &&
22240 { ac_try='test -s conftest$ac_exeext'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 LIBS="$LIBS -lresolv"
22247 echo "$as_me:$LINENO: result: yes" >&5
22248echo "${ECHO_T}yes" >&6
22249else
22250 echo "$as_me: failed program was:" >&5
22251sed 's/^/| /' conftest.$ac_ext >&5
22252
22253LIBS="$saved_LIBS"
22254 echo "$as_me:$LINENO: result: no" >&5
22255echo "${ECHO_T}no" >&6
22256fi
22257rm -f conftest.err conftest.$ac_objext \
22258 conftest$ac_exeext conftest.$ac_ext
22259
22260fi
22261rm -f conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22263
22264
22265for ac_func in _getshort _getlong
22266do
22267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22268echo "$as_me:$LINENO: checking for $ac_func" >&5
22269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22270if eval "test \"\${$as_ac_var+set}\" = set"; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22272else
22273 cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22281#define $ac_func innocuous_$ac_func
22282
22283/* System header to define __stub macros and hopefully few prototypes,
22284 which can conflict with char $ac_func (); below.
22285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22286 <limits.h> exists even on freestanding compilers. */
22287
22288#ifdef __STDC__
22289# include <limits.h>
22290#else
22291# include <assert.h>
22292#endif
22293
22294#undef $ac_func
22295
22296/* Override any gcc2 internal prototype to avoid an error. */
22297#ifdef __cplusplus
22298extern "C"
22299{
22300#endif
22301/* We use char because int might match the return type of a gcc2
22302 builtin and then its argument prototype would still apply. */
22303char $ac_func ();
22304/* The GNU C library defines this for functions which it implements
22305 to always fail with ENOSYS. Some functions are actually named
22306 something starting with __ and the normal name is an alias. */
22307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22308choke me
22309#else
22310char (*f) () = $ac_func;
22311#endif
22312#ifdef __cplusplus
22313}
22314#endif
22315
22316int
22317main ()
22318{
22319return f != $ac_func;
22320 ;
22321 return 0;
22322}
22323_ACEOF
22324rm -f conftest.$ac_objext conftest$ac_exeext
22325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22326 (eval $ac_link) 2>conftest.er1
22327 ac_status=$?
22328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_c_werror_flag"
22334 || test ! -s conftest.err'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; } &&
22340 { ac_try='test -s conftest$ac_exeext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22346 eval "$as_ac_var=yes"
22347else
22348 echo "$as_me: failed program was:" >&5
22349sed 's/^/| /' conftest.$ac_ext >&5
22350
22351eval "$as_ac_var=no"
22352fi
22353rm -f conftest.err conftest.$ac_objext \
22354 conftest$ac_exeext conftest.$ac_ext
22355fi
22356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22358if test `eval echo '${'$as_ac_var'}'` = yes; then
22359 cat >>confdefs.h <<_ACEOF
22360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22361_ACEOF
22362
22363fi
22364done
22365
22366 echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
22367echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6
22368if test "${ac_cv_have_decl__getshort+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370else
22371 cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
22377#include <sys/types.h>
22378 #include <arpa/nameser.h>
22379
22380int
22381main ()
22382{
22383#ifndef _getshort
22384 char *p = (char *) _getshort;
22385#endif
22386
22387 ;
22388 return 0;
22389}
22390_ACEOF
22391rm -f conftest.$ac_objext
22392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393 (eval $ac_compile) 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_c_werror_flag"
22401 || test ! -s conftest.err'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; } &&
22407 { ac_try='test -s conftest.$ac_objext'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; }; then
22413 ac_cv_have_decl__getshort=yes
22414else
22415 echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418ac_cv_have_decl__getshort=no
22419fi
22420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22421fi
22422echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
22423echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6
22424if test $ac_cv_have_decl__getshort = yes; then
22425
22426cat >>confdefs.h <<_ACEOF
22427#define HAVE_DECL__GETSHORT 1
22428_ACEOF
22429
22430
22431else
22432 cat >>confdefs.h <<_ACEOF
22433#define HAVE_DECL__GETSHORT 0
22434_ACEOF
22435
22436
22437fi
22438echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
22439echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6
22440if test "${ac_cv_have_decl__getlong+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442else
22443 cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
22449#include <sys/types.h>
22450 #include <arpa/nameser.h>
22451
22452int
22453main ()
22454{
22455#ifndef _getlong
22456 char *p = (char *) _getlong;
22457#endif
22458
22459 ;
22460 return 0;
22461}
22462_ACEOF
22463rm -f conftest.$ac_objext
22464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465 (eval $ac_compile) 2>conftest.er1
22466 ac_status=$?
22467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ac_cv_have_decl__getlong=yes
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490ac_cv_have_decl__getlong=no
22491fi
22492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22493fi
22494echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
22495echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6
22496if test $ac_cv_have_decl__getlong = yes; then
22497
22498cat >>confdefs.h <<_ACEOF
22499#define HAVE_DECL__GETLONG 1
22500_ACEOF
22501
22502
22503else
22504 cat >>confdefs.h <<_ACEOF
22505#define HAVE_DECL__GETLONG 0
22506_ACEOF
22507
22508
22509fi
22510
22511
22512 echo "$as_me:$LINENO: checking for HEADER.ad" >&5
22513echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
22514if test "${ac_cv_member_HEADER_ad+set}" = set; then
22515 echo $ECHO_N "(cached) $ECHO_C" >&6
22516else
22517 cat >conftest.$ac_ext <<_ACEOF
22518/* confdefs.h. */
22519_ACEOF
22520cat confdefs.h >>conftest.$ac_ext
22521cat >>conftest.$ac_ext <<_ACEOF
22522/* end confdefs.h. */
22523#include <arpa/nameser.h>
22524
22525int
22526main ()
22527{
22528static HEADER ac_aggr;
22529if (ac_aggr.ad)
22530return 0;
22531 ;
22532 return 0;
22533}
22534_ACEOF
22535rm -f conftest.$ac_objext
22536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22537 (eval $ac_compile) 2>conftest.er1
22538 ac_status=$?
22539 grep -v '^ *+' conftest.er1 >conftest.err
22540 rm -f conftest.er1
22541 cat conftest.err >&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } &&
22544 { ac_try='test -z "$ac_c_werror_flag"
22545 || test ! -s conftest.err'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; } &&
22551 { ac_try='test -s conftest.$ac_objext'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557 ac_cv_member_HEADER_ad=yes
22558else
22559 echo "$as_me: failed program was:" >&5
22560sed 's/^/| /' conftest.$ac_ext >&5
22561
22562cat >conftest.$ac_ext <<_ACEOF
22563/* confdefs.h. */
22564_ACEOF
22565cat confdefs.h >>conftest.$ac_ext
22566cat >>conftest.$ac_ext <<_ACEOF
22567/* end confdefs.h. */
22568#include <arpa/nameser.h>
22569
22570int
22571main ()
22572{
22573static HEADER ac_aggr;
22574if (sizeof ac_aggr.ad)
22575return 0;
22576 ;
22577 return 0;
22578}
22579_ACEOF
22580rm -f conftest.$ac_objext
22581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22582 (eval $ac_compile) 2>conftest.er1
22583 ac_status=$?
22584 grep -v '^ *+' conftest.er1 >conftest.err
22585 rm -f conftest.er1
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
22589 { ac_try='test -z "$ac_c_werror_flag"
22590 || test ! -s conftest.err'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } &&
22596 { ac_try='test -s conftest.$ac_objext'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }; then
22602 ac_cv_member_HEADER_ad=yes
22603else
22604 echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607ac_cv_member_HEADER_ad=no
22608fi
22609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22610fi
22611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22612fi
22613echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
22614echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
22615if test $ac_cv_member_HEADER_ad = yes; then
22616 cat >>confdefs.h <<\_ACEOF
22617#define HAVE_HEADER_AD 1
22618_ACEOF
22619
22620fi
22621
22622
22623fi
22624
22625
22626# Check whether user wants Kerberos 5 support
22627KRB5_MSG="no"
22628
22629# Check whether --with-kerberos5 or --without-kerberos5 was given.
22630if test "${with_kerberos5+set}" = set; then
22631 withval="$with_kerberos5"
22632 if test "x$withval" != "xno" ; then
22633 if test "x$withval" = "xyes" ; then
22634 KRB5ROOT="/usr/local"
22635 else
22636 KRB5ROOT=${withval}
22637 fi
22638
22639 cat >>confdefs.h <<\_ACEOF
22640#define KRB5 1
22641_ACEOF
22642
22643 KRB5_MSG="yes"
22644
22645 echo "$as_me:$LINENO: checking for krb5-config" >&5
22646echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
22647 if test -x $KRB5ROOT/bin/krb5-config ; then
22648 KRB5CONF=$KRB5ROOT/bin/krb5-config
22649 echo "$as_me:$LINENO: result: $KRB5CONF" >&5
22650echo "${ECHO_T}$KRB5CONF" >&6
22651
22652 echo "$as_me:$LINENO: checking for gssapi support" >&5
22653echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
22654 if $KRB5CONF | grep gssapi >/dev/null ; then
22655 echo "$as_me:$LINENO: result: yes" >&5
22656echo "${ECHO_T}yes" >&6
22657 cat >>confdefs.h <<\_ACEOF
22658#define GSSAPI 1
22659_ACEOF
22660
22661 k5confopts=gssapi
22662 else
22663 echo "$as_me:$LINENO: result: no" >&5
22664echo "${ECHO_T}no" >&6
22665 k5confopts=""
22666 fi
22667 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
22668 K5LIBS="`$KRB5CONF --libs $k5confopts`"
22669 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
22670 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22671echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22672 cat >conftest.$ac_ext <<_ACEOF
22673/* confdefs.h. */
22674_ACEOF
22675cat confdefs.h >>conftest.$ac_ext
22676cat >>conftest.$ac_ext <<_ACEOF
22677/* end confdefs.h. */
22678 #include <krb5.h>
22679int
22680main ()
22681{
22682 char *tmp = heimdal_version;
22683 ;
22684 return 0;
22685}
22686_ACEOF
22687rm -f conftest.$ac_objext
22688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689 (eval $ac_compile) 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest.$ac_objext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 echo "$as_me:$LINENO: result: yes" >&5
22710echo "${ECHO_T}yes" >&6
22711 cat >>confdefs.h <<\_ACEOF
22712#define HEIMDAL 1
22713_ACEOF
22714
22715else
22716 echo "$as_me: failed program was:" >&5
22717sed 's/^/| /' conftest.$ac_ext >&5
22718
22719echo "$as_me:$LINENO: result: no" >&5
22720echo "${ECHO_T}no" >&6
22721
22722fi
22723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22724 else
22725 echo "$as_me:$LINENO: result: no" >&5
22726echo "${ECHO_T}no" >&6
22727 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
22728 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
22729 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
22730echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
22731 cat >conftest.$ac_ext <<_ACEOF
22732/* confdefs.h. */
22733_ACEOF
22734cat confdefs.h >>conftest.$ac_ext
22735cat >>conftest.$ac_ext <<_ACEOF
22736/* end confdefs.h. */
22737 #include <krb5.h>
22738int
22739main ()
22740{
22741 char *tmp = heimdal_version;
22742 ;
22743 return 0;
22744}
22745_ACEOF
22746rm -f conftest.$ac_objext
22747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22748 (eval $ac_compile) 2>conftest.er1
22749 ac_status=$?
22750 grep -v '^ *+' conftest.er1 >conftest.err
22751 rm -f conftest.er1
22752 cat conftest.err >&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); } &&
22755 { ac_try='test -z "$ac_c_werror_flag"
22756 || test ! -s conftest.err'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; } &&
22762 { ac_try='test -s conftest.$ac_objext'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22768 echo "$as_me:$LINENO: result: yes" >&5
22769echo "${ECHO_T}yes" >&6
22770 cat >>confdefs.h <<\_ACEOF
22771#define HEIMDAL 1
22772_ACEOF
22773
22774 K5LIBS="-lkrb5 -ldes"
22775 K5LIBS="$K5LIBS -lcom_err -lasn1"
22776 echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
22777echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6
22778if test "${ac_cv_lib_roken_net_write+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22780else
22781 ac_check_lib_save_LIBS=$LIBS
22782LIBS="-lroken $LIBS"
22783cat >conftest.$ac_ext <<_ACEOF
22784/* confdefs.h. */
22785_ACEOF
22786cat confdefs.h >>conftest.$ac_ext
22787cat >>conftest.$ac_ext <<_ACEOF
22788/* end confdefs.h. */
22789
22790/* Override any gcc2 internal prototype to avoid an error. */
22791#ifdef __cplusplus
22792extern "C"
22793#endif
22794/* We use char because int might match the return type of a gcc2
22795 builtin and then its argument prototype would still apply. */
22796char net_write ();
22797int
22798main ()
22799{
22800net_write ();
22801 ;
22802 return 0;
22803}
22804_ACEOF
22805rm -f conftest.$ac_objext conftest$ac_exeext
22806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22807 (eval $ac_link) 2>conftest.er1
22808 ac_status=$?
22809 grep -v '^ *+' conftest.er1 >conftest.err
22810 rm -f conftest.er1
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } &&
22814 { ac_try='test -z "$ac_c_werror_flag"
22815 || test ! -s conftest.err'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; } &&
22821 { ac_try='test -s conftest$ac_exeext'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; }; then
22827 ac_cv_lib_roken_net_write=yes
22828else
22829 echo "$as_me: failed program was:" >&5
22830sed 's/^/| /' conftest.$ac_ext >&5
22831
22832ac_cv_lib_roken_net_write=no
22833fi
22834rm -f conftest.err conftest.$ac_objext \
22835 conftest$ac_exeext conftest.$ac_ext
22836LIBS=$ac_check_lib_save_LIBS
22837fi
22838echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
22839echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6
22840if test $ac_cv_lib_roken_net_write = yes; then
22841 K5LIBS="$K5LIBS -lroken"
22842fi
22843
22844
22845else
22846 echo "$as_me: failed program was:" >&5
22847sed 's/^/| /' conftest.$ac_ext >&5
22848
22849 echo "$as_me:$LINENO: result: no" >&5
22850echo "${ECHO_T}no" >&6
22851 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
22852
22853
22854fi
22855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
22857echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
22858if test "${ac_cv_search_dn_expand+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860else
22861 ac_func_search_save_LIBS=$LIBS
22862ac_cv_search_dn_expand=no
22863cat >conftest.$ac_ext <<_ACEOF
22864/* confdefs.h. */
22865_ACEOF
22866cat confdefs.h >>conftest.$ac_ext
22867cat >>conftest.$ac_ext <<_ACEOF
22868/* end confdefs.h. */
22869
22870/* Override any gcc2 internal prototype to avoid an error. */
22871#ifdef __cplusplus
22872extern "C"
22873#endif
22874/* We use char because int might match the return type of a gcc2
22875 builtin and then its argument prototype would still apply. */
22876char dn_expand ();
22877int
22878main ()
22879{
22880dn_expand ();
22881 ;
22882 return 0;
22883}
22884_ACEOF
22885rm -f conftest.$ac_objext conftest$ac_exeext
22886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22887 (eval $ac_link) 2>conftest.er1
22888 ac_status=$?
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } &&
22894 { ac_try='test -z "$ac_c_werror_flag"
22895 || test ! -s conftest.err'
22896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897 (eval $ac_try) 2>&5
22898 ac_status=$?
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; } &&
22901 { ac_try='test -s conftest$ac_exeext'
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; }; then
22907 ac_cv_search_dn_expand="none required"
22908else
22909 echo "$as_me: failed program was:" >&5
22910sed 's/^/| /' conftest.$ac_ext >&5
22911
22912fi
22913rm -f conftest.err conftest.$ac_objext \
22914 conftest$ac_exeext conftest.$ac_ext
22915if test "$ac_cv_search_dn_expand" = no; then
22916 for ac_lib in resolv; do
22917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924
22925/* Override any gcc2 internal prototype to avoid an error. */
22926#ifdef __cplusplus
22927extern "C"
22928#endif
22929/* We use char because int might match the return type of a gcc2
22930 builtin and then its argument prototype would still apply. */
22931char dn_expand ();
22932int
22933main ()
22934{
22935dn_expand ();
22936 ;
22937 return 0;
22938}
22939_ACEOF
22940rm -f conftest.$ac_objext conftest$ac_exeext
22941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942 (eval $ac_link) 2>conftest.er1
22943 ac_status=$?
22944 grep -v '^ *+' conftest.er1 >conftest.err
22945 rm -f conftest.er1
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } &&
22949 { ac_try='test -z "$ac_c_werror_flag"
22950 || test ! -s conftest.err'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; } &&
22956 { ac_try='test -s conftest$ac_exeext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_cv_search_dn_expand="-l$ac_lib"
22963break
22964else
22965 echo "$as_me: failed program was:" >&5
22966sed 's/^/| /' conftest.$ac_ext >&5
22967
22968fi
22969rm -f conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22971 done
22972fi
22973LIBS=$ac_func_search_save_LIBS
22974fi
22975echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
22976echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
22977if test "$ac_cv_search_dn_expand" != no; then
22978 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
22979
22980fi
22981
22982
22983 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
22984echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
22985if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
22988 ac_check_lib_save_LIBS=$LIBS
22989LIBS="-lgssapi $K5LIBS $LIBS"
22990cat >conftest.$ac_ext <<_ACEOF
22991/* confdefs.h. */
22992_ACEOF
22993cat confdefs.h >>conftest.$ac_ext
22994cat >>conftest.$ac_ext <<_ACEOF
22995/* end confdefs.h. */
22996
22997/* Override any gcc2 internal prototype to avoid an error. */
22998#ifdef __cplusplus
22999extern "C"
23000#endif
23001/* We use char because int might match the return type of a gcc2
23002 builtin and then its argument prototype would still apply. */
23003char gss_init_sec_context ();
23004int
23005main ()
23006{
23007gss_init_sec_context ();
23008 ;
23009 return 0;
23010}
23011_ACEOF
23012rm -f conftest.$ac_objext conftest$ac_exeext
23013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014 (eval $ac_link) 2>conftest.er1
23015 ac_status=$?
23016 grep -v '^ *+' conftest.er1 >conftest.err
23017 rm -f conftest.er1
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } &&
23021 { ac_try='test -z "$ac_c_werror_flag"
23022 || test ! -s conftest.err'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; } &&
23028 { ac_try='test -s conftest$ac_exeext'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_cv_lib_gssapi_gss_init_sec_context=yes
23035else
23036 echo "$as_me: failed program was:" >&5
23037sed 's/^/| /' conftest.$ac_ext >&5
23038
23039ac_cv_lib_gssapi_gss_init_sec_context=no
23040fi
23041rm -f conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
23043LIBS=$ac_check_lib_save_LIBS
23044fi
23045echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
23046echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
23047if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
23048 cat >>confdefs.h <<\_ACEOF
23049#define GSSAPI 1
23050_ACEOF
23051
23052 K5LIBS="-lgssapi $K5LIBS"
23053else
23054 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
23055echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
23056if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23058else
23059 ac_check_lib_save_LIBS=$LIBS
23060LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
23061cat >conftest.$ac_ext <<_ACEOF
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
23067
23068/* Override any gcc2 internal prototype to avoid an error. */
23069#ifdef __cplusplus
23070extern "C"
23071#endif
23072/* We use char because int might match the return type of a gcc2
23073 builtin and then its argument prototype would still apply. */
23074char gss_init_sec_context ();
23075int
23076main ()
23077{
23078gss_init_sec_context ();
23079 ;
23080 return 0;
23081}
23082_ACEOF
23083rm -f conftest.$ac_objext conftest$ac_exeext
23084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23085 (eval $ac_link) 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -z "$ac_c_werror_flag"
23093 || test ! -s conftest.err'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; } &&
23099 { ac_try='test -s conftest$ac_exeext'
23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; }; then
23105 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
23106else
23107 echo "$as_me: failed program was:" >&5
23108sed 's/^/| /' conftest.$ac_ext >&5
23109
23110ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
23111fi
23112rm -f conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114LIBS=$ac_check_lib_save_LIBS
23115fi
23116echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
23117echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
23118if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
23119 cat >>confdefs.h <<\_ACEOF
23120#define GSSAPI 1
23121_ACEOF
23122
23123 K5LIBS="-lgssapi_krb5 $K5LIBS"
23124else
23125 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
23126echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
23127fi
23128
23129
23130fi
23131
23132
23133 if test "${ac_cv_header_gssapi_h+set}" = set; then
23134 echo "$as_me:$LINENO: checking for gssapi.h" >&5
23135echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
23136if test "${ac_cv_header_gssapi_h+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138fi
23139echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
23140echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
23141else
23142 # Is the header compilable?
23143echo "$as_me:$LINENO: checking gssapi.h usability" >&5
23144echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
23145cat >conftest.$ac_ext <<_ACEOF
23146/* confdefs.h. */
23147_ACEOF
23148cat confdefs.h >>conftest.$ac_ext
23149cat >>conftest.$ac_ext <<_ACEOF
23150/* end confdefs.h. */
23151$ac_includes_default
23152#include <gssapi.h>
23153_ACEOF
23154rm -f conftest.$ac_objext
23155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23156 (eval $ac_compile) 2>conftest.er1
23157 ac_status=$?
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } &&
23163 { ac_try='test -z "$ac_c_werror_flag"
23164 || test ! -s conftest.err'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; } &&
23170 { ac_try='test -s conftest.$ac_objext'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 ac_header_compiler=yes
23177else
23178 echo "$as_me: failed program was:" >&5
23179sed 's/^/| /' conftest.$ac_ext >&5
23180
23181ac_header_compiler=no
23182fi
23183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23185echo "${ECHO_T}$ac_header_compiler" >&6
23186
23187# Is the header present?
23188echo "$as_me:$LINENO: checking gssapi.h presence" >&5
23189echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
23190cat >conftest.$ac_ext <<_ACEOF
23191/* confdefs.h. */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h. */
23196#include <gssapi.h>
23197_ACEOF
23198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23200 ac_status=$?
23201 grep -v '^ *+' conftest.er1 >conftest.err
23202 rm -f conftest.er1
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } >/dev/null; then
23206 if test -s conftest.err; then
23207 ac_cpp_err=$ac_c_preproc_warn_flag
23208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23209 else
23210 ac_cpp_err=
23211 fi
23212else
23213 ac_cpp_err=yes
23214fi
23215if test -z "$ac_cpp_err"; then
23216 ac_header_preproc=yes
23217else
23218 echo "$as_me: failed program was:" >&5
23219sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ac_header_preproc=no
23222fi
23223rm -f conftest.err conftest.$ac_ext
23224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23225echo "${ECHO_T}$ac_header_preproc" >&6
23226
23227# So? What about this header?
23228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23229 yes:no: )
23230 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
23231echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
23233echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
23234 ac_header_preproc=yes
23235 ;;
23236 no:yes:* )
23237 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
23238echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
23239 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
23240echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
23241 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
23242echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
23243 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
23244echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
23246echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
23248echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
23249 (
23250 cat <<\_ASBOX
23251## ------------------------------------------- ##
23252## Report this to openssh-unix-dev@mindrot.org ##
23253## ------------------------------------------- ##
23254_ASBOX
23255 ) |
23256 sed "s/^/$as_me: WARNING: /" >&2
23257 ;;
23258esac
23259echo "$as_me:$LINENO: checking for gssapi.h" >&5
23260echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
23261if test "${ac_cv_header_gssapi_h+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23263else
23264 ac_cv_header_gssapi_h=$ac_header_preproc
23265fi
23266echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
23267echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
23268
23269fi
23270if test $ac_cv_header_gssapi_h = yes; then
23271 :
23272else
23273 unset ac_cv_header_gssapi_h
23274 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
23275
23276for ac_header in gssapi.h
23277do
23278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23279if eval "test \"\${$as_ac_Header+set}\" = set"; then
23280 echo "$as_me:$LINENO: checking for $ac_header" >&5
23281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23282if eval "test \"\${$as_ac_Header+set}\" = set"; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284fi
23285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23287else
23288 # Is the header compilable?
23289echo "$as_me:$LINENO: checking $ac_header usability" >&5
23290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23291cat >conftest.$ac_ext <<_ACEOF
23292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
23296/* end confdefs.h. */
23297$ac_includes_default
23298#include <$ac_header>
23299_ACEOF
23300rm -f conftest.$ac_objext
23301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23302 (eval $ac_compile) 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } &&
23309 { ac_try='test -z "$ac_c_werror_flag"
23310 || test ! -s conftest.err'
23311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312 (eval $ac_try) 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; } &&
23316 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23322 ac_header_compiler=yes
23323else
23324 echo "$as_me: failed program was:" >&5
23325sed 's/^/| /' conftest.$ac_ext >&5
23326
23327ac_header_compiler=no
23328fi
23329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23331echo "${ECHO_T}$ac_header_compiler" >&6
23332
23333# Is the header present?
23334echo "$as_me:$LINENO: checking $ac_header presence" >&5
23335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23336cat >conftest.$ac_ext <<_ACEOF
23337/* confdefs.h. */
23338_ACEOF
23339cat confdefs.h >>conftest.$ac_ext
23340cat >>conftest.$ac_ext <<_ACEOF
23341/* end confdefs.h. */
23342#include <$ac_header>
23343_ACEOF
23344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } >/dev/null; then
23352 if test -s conftest.err; then
23353 ac_cpp_err=$ac_c_preproc_warn_flag
23354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23355 else
23356 ac_cpp_err=
23357 fi
23358else
23359 ac_cpp_err=yes
23360fi
23361if test -z "$ac_cpp_err"; then
23362 ac_header_preproc=yes
23363else
23364 echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367 ac_header_preproc=no
23368fi
23369rm -f conftest.err conftest.$ac_ext
23370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23371echo "${ECHO_T}$ac_header_preproc" >&6
23372
23373# So? What about this header?
23374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23375 yes:no: )
23376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23380 ac_header_preproc=yes
23381 ;;
23382 no:yes:* )
23383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23395 (
23396 cat <<\_ASBOX
23397## ------------------------------------------- ##
23398## Report this to openssh-unix-dev@mindrot.org ##
23399## ------------------------------------------- ##
23400_ASBOX
23401 ) |
23402 sed "s/^/$as_me: WARNING: /" >&2
23403 ;;
23404esac
23405echo "$as_me:$LINENO: checking for $ac_header" >&5
23406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23407if eval "test \"\${$as_ac_Header+set}\" = set"; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23409else
23410 eval "$as_ac_Header=\$ac_header_preproc"
23411fi
23412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23414
23415fi
23416if test `eval echo '${'$as_ac_Header'}'` = yes; then
23417 cat >>confdefs.h <<_ACEOF
23418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23419_ACEOF
23420
23421else
23422 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
23423echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
23424
23425fi
23426
23427done
23428
23429
23430
23431fi
23432
23433
23434
23435 oldCPP="$CPPFLAGS"
23436 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
23437 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
23438 echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
23439echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
23440if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442fi
23443echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
23444echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
23445else
23446 # Is the header compilable?
23447echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
23448echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6
23449cat >conftest.$ac_ext <<_ACEOF
23450/* confdefs.h. */
23451_ACEOF
23452cat confdefs.h >>conftest.$ac_ext
23453cat >>conftest.$ac_ext <<_ACEOF
23454/* end confdefs.h. */
23455$ac_includes_default
23456#include <gssapi_krb5.h>
23457_ACEOF
23458rm -f conftest.$ac_objext
23459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23460 (eval $ac_compile) 2>conftest.er1
23461 ac_status=$?
23462 grep -v '^ *+' conftest.er1 >conftest.err
23463 rm -f conftest.er1
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -z "$ac_c_werror_flag"
23468 || test ! -s conftest.err'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; } &&
23474 { ac_try='test -s conftest.$ac_objext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 ac_header_compiler=yes
23481else
23482 echo "$as_me: failed program was:" >&5
23483sed 's/^/| /' conftest.$ac_ext >&5
23484
23485ac_header_compiler=no
23486fi
23487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23489echo "${ECHO_T}$ac_header_compiler" >&6
23490
23491# Is the header present?
23492echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
23493echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6
23494cat >conftest.$ac_ext <<_ACEOF
23495/* confdefs.h. */
23496_ACEOF
23497cat confdefs.h >>conftest.$ac_ext
23498cat >>conftest.$ac_ext <<_ACEOF
23499/* end confdefs.h. */
23500#include <gssapi_krb5.h>
23501_ACEOF
23502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23504 ac_status=$?
23505 grep -v '^ *+' conftest.er1 >conftest.err
23506 rm -f conftest.er1
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } >/dev/null; then
23510 if test -s conftest.err; then
23511 ac_cpp_err=$ac_c_preproc_warn_flag
23512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23513 else
23514 ac_cpp_err=
23515 fi
23516else
23517 ac_cpp_err=yes
23518fi
23519if test -z "$ac_cpp_err"; then
23520 ac_header_preproc=yes
23521else
23522 echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
23525 ac_header_preproc=no
23526fi
23527rm -f conftest.err conftest.$ac_ext
23528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23529echo "${ECHO_T}$ac_header_preproc" >&6
23530
23531# So? What about this header?
23532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23533 yes:no: )
23534 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
23535echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23536 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
23537echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
23538 ac_header_preproc=yes
23539 ;;
23540 no:yes:* )
23541 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
23542echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
23543 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
23544echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
23545 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
23546echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
23547 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
23548echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
23550echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
23551 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
23552echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
23553 (
23554 cat <<\_ASBOX
23555## ------------------------------------------- ##
23556## Report this to openssh-unix-dev@mindrot.org ##
23557## ------------------------------------------- ##
23558_ASBOX
23559 ) |
23560 sed "s/^/$as_me: WARNING: /" >&2
23561 ;;
23562esac
23563echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
23564echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
23565if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567else
23568 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
23569fi
23570echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
23571echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
23572
23573fi
23574if test $ac_cv_header_gssapi_krb5_h = yes; then
23575 :
23576else
23577 CPPFLAGS="$oldCPP"
23578fi
23579
23580
23581
23582 fi
23583 if test ! -z "$need_dash_r" ; then
23584 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
23585 fi
23586 if test ! -z "$blibpath" ; then
23587 blibpath="$blibpath:${KRB5ROOT}/lib"
23588 fi
23589 fi
23590
23591
23592
23593for ac_header in gssapi.h gssapi/gssapi.h
23594do
23595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23596if eval "test \"\${$as_ac_Header+set}\" = set"; then
23597 echo "$as_me:$LINENO: checking for $ac_header" >&5
23598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23599if eval "test \"\${$as_ac_Header+set}\" = set"; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23601fi
23602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23604else
23605 # Is the header compilable?
23606echo "$as_me:$LINENO: checking $ac_header usability" >&5
23607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23608cat >conftest.$ac_ext <<_ACEOF
23609/* confdefs.h. */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h. */
23614$ac_includes_default
23615#include <$ac_header>
23616_ACEOF
23617rm -f conftest.$ac_objext
23618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23619 (eval $ac_compile) 2>conftest.er1
23620 ac_status=$?
23621 grep -v '^ *+' conftest.er1 >conftest.err
23622 rm -f conftest.er1
23623 cat conftest.err >&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } &&
23626 { ac_try='test -z "$ac_c_werror_flag"
23627 || test ! -s conftest.err'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23630 ac_status=$?
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; } &&
23633 { ac_try='test -s conftest.$ac_objext'
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; }; then
23639 ac_header_compiler=yes
23640else
23641 echo "$as_me: failed program was:" >&5
23642sed 's/^/| /' conftest.$ac_ext >&5
23643
23644ac_header_compiler=no
23645fi
23646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23648echo "${ECHO_T}$ac_header_compiler" >&6
23649
23650# Is the header present?
23651echo "$as_me:$LINENO: checking $ac_header presence" >&5
23652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23653cat >conftest.$ac_ext <<_ACEOF
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659#include <$ac_header>
23660_ACEOF
23661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23663 ac_status=$?
23664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } >/dev/null; then
23669 if test -s conftest.err; then
23670 ac_cpp_err=$ac_c_preproc_warn_flag
23671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23672 else
23673 ac_cpp_err=
23674 fi
23675else
23676 ac_cpp_err=yes
23677fi
23678if test -z "$ac_cpp_err"; then
23679 ac_header_preproc=yes
23680else
23681 echo "$as_me: failed program was:" >&5
23682sed 's/^/| /' conftest.$ac_ext >&5
23683
23684 ac_header_preproc=no
23685fi
23686rm -f conftest.err conftest.$ac_ext
23687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23688echo "${ECHO_T}$ac_header_preproc" >&6
23689
23690# So? What about this header?
23691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23692 yes:no: )
23693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23697 ac_header_preproc=yes
23698 ;;
23699 no:yes:* )
23700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23707echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23712 (
23713 cat <<\_ASBOX
23714## ------------------------------------------- ##
23715## Report this to openssh-unix-dev@mindrot.org ##
23716## ------------------------------------------- ##
23717_ASBOX
23718 ) |
23719 sed "s/^/$as_me: WARNING: /" >&2
23720 ;;
23721esac
23722echo "$as_me:$LINENO: checking for $ac_header" >&5
23723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23724if eval "test \"\${$as_ac_Header+set}\" = set"; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727 eval "$as_ac_Header=\$ac_header_preproc"
23728fi
23729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23731
23732fi
23733if test `eval echo '${'$as_ac_Header'}'` = yes; then
23734 cat >>confdefs.h <<_ACEOF
23735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23736_ACEOF
23737
23738fi
23739
23740done
23741
23742
23743
23744for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
23745do
23746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23747if eval "test \"\${$as_ac_Header+set}\" = set"; then
23748 echo "$as_me:$LINENO: checking for $ac_header" >&5
23749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23750if eval "test \"\${$as_ac_Header+set}\" = set"; then
23751 echo $ECHO_N "(cached) $ECHO_C" >&6
23752fi
23753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23755else
23756 # Is the header compilable?
23757echo "$as_me:$LINENO: checking $ac_header usability" >&5
23758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23759cat >conftest.$ac_ext <<_ACEOF
23760/* confdefs.h. */
23761_ACEOF
23762cat confdefs.h >>conftest.$ac_ext
23763cat >>conftest.$ac_ext <<_ACEOF
23764/* end confdefs.h. */
23765$ac_includes_default
23766#include <$ac_header>
23767_ACEOF
23768rm -f conftest.$ac_objext
23769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23770 (eval $ac_compile) 2>conftest.er1
23771 ac_status=$?
23772 grep -v '^ *+' conftest.er1 >conftest.err
23773 rm -f conftest.er1
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); } &&
23777 { ac_try='test -z "$ac_c_werror_flag"
23778 || test ! -s conftest.err'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } &&
23784 { ac_try='test -s conftest.$ac_objext'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; }; then
23790 ac_header_compiler=yes
23791else
23792 echo "$as_me: failed program was:" >&5
23793sed 's/^/| /' conftest.$ac_ext >&5
23794
23795ac_header_compiler=no
23796fi
23797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23799echo "${ECHO_T}$ac_header_compiler" >&6
23800
23801# Is the header present?
23802echo "$as_me:$LINENO: checking $ac_header presence" >&5
23803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23804cat >conftest.$ac_ext <<_ACEOF
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
23810#include <$ac_header>
23811_ACEOF
23812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23814 ac_status=$?
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } >/dev/null; then
23820 if test -s conftest.err; then
23821 ac_cpp_err=$ac_c_preproc_warn_flag
23822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23823 else
23824 ac_cpp_err=
23825 fi
23826else
23827 ac_cpp_err=yes
23828fi
23829if test -z "$ac_cpp_err"; then
23830 ac_header_preproc=yes
23831else
23832 echo "$as_me: failed program was:" >&5
23833sed 's/^/| /' conftest.$ac_ext >&5
23834
23835 ac_header_preproc=no
23836fi
23837rm -f conftest.err conftest.$ac_ext
23838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23839echo "${ECHO_T}$ac_header_preproc" >&6
23840
23841# So? What about this header?
23842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23843 yes:no: )
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23848 ac_header_preproc=yes
23849 ;;
23850 no:yes:* )
23851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23863 (
23864 cat <<\_ASBOX
23865## ------------------------------------------- ##
23866## Report this to openssh-unix-dev@mindrot.org ##
23867## ------------------------------------------- ##
23868_ASBOX
23869 ) |
23870 sed "s/^/$as_me: WARNING: /" >&2
23871 ;;
23872esac
23873echo "$as_me:$LINENO: checking for $ac_header" >&5
23874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23875if eval "test \"\${$as_ac_Header+set}\" = set"; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877else
23878 eval "$as_ac_Header=\$ac_header_preproc"
23879fi
23880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23882
23883fi
23884if test `eval echo '${'$as_ac_Header'}'` = yes; then
23885 cat >>confdefs.h <<_ACEOF
23886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23887_ACEOF
23888
23889fi
23890
23891done
23892
23893
23894
23895for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
23896do
23897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23898if eval "test \"\${$as_ac_Header+set}\" = set"; then
23899 echo "$as_me:$LINENO: checking for $ac_header" >&5
23900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23901if eval "test \"\${$as_ac_Header+set}\" = set"; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23903fi
23904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23906else
23907 # Is the header compilable?
23908echo "$as_me:$LINENO: checking $ac_header usability" >&5
23909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23910cat >conftest.$ac_ext <<_ACEOF
23911/* confdefs.h. */
23912_ACEOF
23913cat confdefs.h >>conftest.$ac_ext
23914cat >>conftest.$ac_ext <<_ACEOF
23915/* end confdefs.h. */
23916$ac_includes_default
23917#include <$ac_header>
23918_ACEOF
23919rm -f conftest.$ac_objext
23920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23921 (eval $ac_compile) 2>conftest.er1
23922 ac_status=$?
23923 grep -v '^ *+' conftest.er1 >conftest.err
23924 rm -f conftest.er1
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } &&
23928 { ac_try='test -z "$ac_c_werror_flag"
23929 || test ! -s conftest.err'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; } &&
23935 { ac_try='test -s conftest.$ac_objext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_header_compiler=yes
23942else
23943 echo "$as_me: failed program was:" >&5
23944sed 's/^/| /' conftest.$ac_ext >&5
23945
23946ac_header_compiler=no
23947fi
23948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23950echo "${ECHO_T}$ac_header_compiler" >&6
23951
23952# Is the header present?
23953echo "$as_me:$LINENO: checking $ac_header presence" >&5
23954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23955cat >conftest.$ac_ext <<_ACEOF
23956/* confdefs.h. */
23957_ACEOF
23958cat confdefs.h >>conftest.$ac_ext
23959cat >>conftest.$ac_ext <<_ACEOF
23960/* end confdefs.h. */
23961#include <$ac_header>
23962_ACEOF
23963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23965 ac_status=$?
23966 grep -v '^ *+' conftest.er1 >conftest.err
23967 rm -f conftest.er1
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } >/dev/null; then
23971 if test -s conftest.err; then
23972 ac_cpp_err=$ac_c_preproc_warn_flag
23973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23974 else
23975 ac_cpp_err=
23976 fi
23977else
23978 ac_cpp_err=yes
23979fi
23980if test -z "$ac_cpp_err"; then
23981 ac_header_preproc=yes
23982else
23983 echo "$as_me: failed program was:" >&5
23984sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 ac_header_preproc=no
23987fi
23988rm -f conftest.err conftest.$ac_ext
23989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23990echo "${ECHO_T}$ac_header_preproc" >&6
23991
23992# So? What about this header?
23993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23994 yes:no: )
23995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23999 ac_header_preproc=yes
24000 ;;
24001 no:yes:* )
24002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24014 (
24015 cat <<\_ASBOX
24016## ------------------------------------------- ##
24017## Report this to openssh-unix-dev@mindrot.org ##
24018## ------------------------------------------- ##
24019_ASBOX
24020 ) |
24021 sed "s/^/$as_me: WARNING: /" >&2
24022 ;;
24023esac
24024echo "$as_me:$LINENO: checking for $ac_header" >&5
24025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24026if eval "test \"\${$as_ac_Header+set}\" = set"; then
24027 echo $ECHO_N "(cached) $ECHO_C" >&6
24028else
24029 eval "$as_ac_Header=\$ac_header_preproc"
24030fi
24031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24033
24034fi
24035if test `eval echo '${'$as_ac_Header'}'` = yes; then
24036 cat >>confdefs.h <<_ACEOF
24037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24038_ACEOF
24039
24040fi
24041
24042done
24043
24044
24045 LIBS="$LIBS $K5LIBS"
24046 echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
24047echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
24048if test "${ac_cv_search_k_hasafs+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050else
24051 ac_func_search_save_LIBS=$LIBS
24052ac_cv_search_k_hasafs=no
24053cat >conftest.$ac_ext <<_ACEOF
24054/* confdefs.h. */
24055_ACEOF
24056cat confdefs.h >>conftest.$ac_ext
24057cat >>conftest.$ac_ext <<_ACEOF
24058/* end confdefs.h. */
24059
24060/* Override any gcc2 internal prototype to avoid an error. */
24061#ifdef __cplusplus
24062extern "C"
24063#endif
24064/* We use char because int might match the return type of a gcc2
24065 builtin and then its argument prototype would still apply. */
24066char k_hasafs ();
24067int
24068main ()
24069{
24070k_hasafs ();
24071 ;
24072 return 0;
24073}
24074_ACEOF
24075rm -f conftest.$ac_objext conftest$ac_exeext
24076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077 (eval $ac_link) 2>conftest.er1
24078 ac_status=$?
24079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 ac_cv_search_k_hasafs="none required"
24098else
24099 echo "$as_me: failed program was:" >&5
24100sed 's/^/| /' conftest.$ac_ext >&5
24101
24102fi
24103rm -f conftest.err conftest.$ac_objext \
24104 conftest$ac_exeext conftest.$ac_ext
24105if test "$ac_cv_search_k_hasafs" = no; then
24106 for ac_lib in kafs; do
24107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
24115/* Override any gcc2 internal prototype to avoid an error. */
24116#ifdef __cplusplus
24117extern "C"
24118#endif
24119/* We use char because int might match the return type of a gcc2
24120 builtin and then its argument prototype would still apply. */
24121char k_hasafs ();
24122int
24123main ()
24124{
24125k_hasafs ();
24126 ;
24127 return 0;
24128}
24129_ACEOF
24130rm -f conftest.$ac_objext conftest$ac_exeext
24131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24132 (eval $ac_link) 2>conftest.er1
24133 ac_status=$?
24134 grep -v '^ *+' conftest.er1 >conftest.err
24135 rm -f conftest.er1
24136 cat conftest.err >&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); } &&
24139 { ac_try='test -z "$ac_c_werror_flag"
24140 || test ! -s conftest.err'
24141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24142 (eval $ac_try) 2>&5
24143 ac_status=$?
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); }; } &&
24146 { ac_try='test -s conftest$ac_exeext'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 ac_cv_search_k_hasafs="-l$ac_lib"
24153break
24154else
24155 echo "$as_me: failed program was:" >&5
24156sed 's/^/| /' conftest.$ac_ext >&5
24157
24158fi
24159rm -f conftest.err conftest.$ac_objext \
24160 conftest$ac_exeext conftest.$ac_ext
24161 done
24162fi
24163LIBS=$ac_func_search_save_LIBS
24164fi
24165echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
24166echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
24167if test "$ac_cv_search_k_hasafs" != no; then
24168 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
24169 cat >>confdefs.h <<\_ACEOF
24170#define USE_AFS 1
24171_ACEOF
24172
24173fi
24174
24175
24176
24177fi;
24178
24179# Looking for programs, paths and files
24180
24181PRIVSEP_PATH=/var/empty
24182
24183# Check whether --with-privsep-path or --without-privsep-path was given.
24184if test "${with_privsep_path+set}" = set; then
24185 withval="$with_privsep_path"
24186
24187 if test -n "$withval" && test "x$withval" != "xno" && \
24188 test "x${withval}" != "xyes"; then
24189 PRIVSEP_PATH=$withval
24190 fi
24191
24192
24193fi;
24194
24195
24196
24197# Check whether --with-xauth or --without-xauth was given.
24198if test "${with_xauth+set}" = set; then
24199 withval="$with_xauth"
24200
24201 if test -n "$withval" && test "x$withval" != "xno" && \
24202 test "x${withval}" != "xyes"; then
24203 xauth_path=$withval
24204 fi
24205
24206else
24207
24208 TestPath="$PATH"
24209 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
24210 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
24211 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
24212 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
24213 # Extract the first word of "xauth", so it can be a program name with args.
24214set dummy xauth; ac_word=$2
24215echo "$as_me:$LINENO: checking for $ac_word" >&5
24216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24217if test "${ac_cv_path_xauth_path+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219else
24220 case $xauth_path in
24221 [\\/]* | ?:[\\/]*)
24222 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
24223 ;;
24224 *)
24225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24226for as_dir in $TestPath
24227do
24228 IFS=$as_save_IFS
24229 test -z "$as_dir" && as_dir=.
24230 for ac_exec_ext in '' $ac_executable_extensions; do
24231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24232 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
24233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24234 break 2
24235 fi
24236done
24237done
24238
24239 ;;
24240esac
24241fi
24242xauth_path=$ac_cv_path_xauth_path
24243
24244if test -n "$xauth_path"; then
24245 echo "$as_me:$LINENO: result: $xauth_path" >&5
24246echo "${ECHO_T}$xauth_path" >&6
24247else
24248 echo "$as_me:$LINENO: result: no" >&5
24249echo "${ECHO_T}no" >&6
24250fi
24251
24252 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
24253 xauth_path="/usr/openwin/bin/xauth"
24254 fi
24255
24256
24257fi;
24258
24259STRIP_OPT=-s
24260# Check whether --enable-strip or --disable-strip was given.
24261if test "${enable_strip+set}" = set; then
24262 enableval="$enable_strip"
24263
24264 if test "x$enableval" = "xno" ; then
24265 STRIP_OPT=
24266 fi
24267
24268
24269fi;
24270
24271
24272if test -z "$xauth_path" ; then
24273 XAUTH_PATH="undefined"
24274
24275else
24276 cat >>confdefs.h <<_ACEOF
24277#define XAUTH_PATH "$xauth_path"
24278_ACEOF
24279
24280 XAUTH_PATH=$xauth_path
24281
24282fi
24283
24284# Check for mail directory (last resort if we cannot get it from headers)
24285if test ! -z "$MAIL" ; then
24286 maildir=`dirname $MAIL`
24287 cat >>confdefs.h <<_ACEOF
24288#define MAIL_DIRECTORY "$maildir"
24289_ACEOF
24290
24291fi
24292
24293if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
24294 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
24295echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
24296 disable_ptmx_check=yes
24297fi
24298if test -z "$no_dev_ptmx" ; then
24299 if test "x$disable_ptmx_check" != "xyes" ; then
24300 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
24301echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
24302if test "${ac_cv_file___dev_ptmx_+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24304else
24305 test "$cross_compiling" = yes &&
24306 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24307echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24308 { (exit 1); exit 1; }; }
24309if test -r ""/dev/ptmx""; then
24310 ac_cv_file___dev_ptmx_=yes
24311else
24312 ac_cv_file___dev_ptmx_=no
24313fi
24314fi
24315echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
24316echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
24317if test $ac_cv_file___dev_ptmx_ = yes; then
24318
24319 cat >>confdefs.h <<_ACEOF
24320#define HAVE_DEV_PTMX 1
24321_ACEOF
24322
24323 have_dev_ptmx=1
24324
24325
24326fi
24327
24328 fi
24329fi
24330
24331if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
24332 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
24333echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
24334if test "${ac_cv_file___dev_ptc_+set}" = set; then
24335 echo $ECHO_N "(cached) $ECHO_C" >&6
24336else
24337 test "$cross_compiling" = yes &&
24338 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24339echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24340 { (exit 1); exit 1; }; }
24341if test -r ""/dev/ptc""; then
24342 ac_cv_file___dev_ptc_=yes
24343else
24344 ac_cv_file___dev_ptc_=no
24345fi
24346fi
24347echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
24348echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
24349if test $ac_cv_file___dev_ptc_ = yes; then
24350
24351 cat >>confdefs.h <<_ACEOF
24352#define HAVE_DEV_PTS_AND_PTC 1
24353_ACEOF
24354
24355 have_dev_ptc=1
24356
24357
24358fi
24359
24360else
24361 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
24362echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
24363fi
24364
24365# Options from here on. Some of these are preset by platform above
24366
24367# Check whether --with-mantype or --without-mantype was given.
24368if test "${with_mantype+set}" = set; then
24369 withval="$with_mantype"
24370
24371 case "$withval" in
24372 man|cat|doc)
24373 MANTYPE=$withval
24374 ;;
24375 *)
24376 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
24377echo "$as_me: error: invalid man type: $withval" >&2;}
24378 { (exit 1); exit 1; }; }
24379 ;;
24380 esac
24381
24382
24383fi;
24384if test -z "$MANTYPE"; then
24385 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
24386 for ac_prog in nroff awf
24387do
24388 # Extract the first word of "$ac_prog", so it can be a program name with args.
24389set dummy $ac_prog; ac_word=$2
24390echo "$as_me:$LINENO: checking for $ac_word" >&5
24391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24392if test "${ac_cv_path_NROFF+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24394else
24395 case $NROFF in
24396 [\\/]* | ?:[\\/]*)
24397 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
24398 ;;
24399 *)
24400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24401for as_dir in $TestPath
24402do
24403 IFS=$as_save_IFS
24404 test -z "$as_dir" && as_dir=.
24405 for ac_exec_ext in '' $ac_executable_extensions; do
24406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24407 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
24408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24409 break 2
24410 fi
24411done
24412done
24413
24414 ;;
24415esac
24416fi
24417NROFF=$ac_cv_path_NROFF
24418
24419if test -n "$NROFF"; then
24420 echo "$as_me:$LINENO: result: $NROFF" >&5
24421echo "${ECHO_T}$NROFF" >&6
24422else
24423 echo "$as_me:$LINENO: result: no" >&5
24424echo "${ECHO_T}no" >&6
24425fi
24426
24427 test -n "$NROFF" && break
24428done
24429test -n "$NROFF" || NROFF="/bin/false"
24430
24431 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
24432 MANTYPE=doc
24433 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
24434 MANTYPE=man
24435 else
24436 MANTYPE=cat
24437 fi
24438fi
24439
24440if test "$MANTYPE" = "doc"; then
24441 mansubdir=man;
24442else
24443 mansubdir=$MANTYPE;
24444fi
24445
24446
24447# Check whether to enable MD5 passwords
24448MD5_MSG="no"
24449
24450# Check whether --with-md5-passwords or --without-md5-passwords was given.
24451if test "${with_md5_passwords+set}" = set; then
24452 withval="$with_md5_passwords"
24453
24454 if test "x$withval" != "xno" ; then
24455 cat >>confdefs.h <<\_ACEOF
24456#define HAVE_MD5_PASSWORDS 1
24457_ACEOF
24458
24459 MD5_MSG="yes"
24460 fi
24461
24462
24463fi;
24464
24465# Whether to disable shadow password support
24466
24467# Check whether --with-shadow or --without-shadow was given.
24468if test "${with_shadow+set}" = set; then
24469 withval="$with_shadow"
24470
24471 if test "x$withval" = "xno" ; then
24472 cat >>confdefs.h <<\_ACEOF
24473#define DISABLE_SHADOW 1
24474_ACEOF
24475
24476 disable_shadow=yes
24477 fi
24478
24479
24480fi;
24481
24482if test -z "$disable_shadow" ; then
24483 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
24484echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
24485 cat >conftest.$ac_ext <<_ACEOF
24486/* confdefs.h. */
24487_ACEOF
24488cat confdefs.h >>conftest.$ac_ext
24489cat >>conftest.$ac_ext <<_ACEOF
24490/* end confdefs.h. */
24491
24492#include <sys/types.h>
24493#include <shadow.h>
24494 struct spwd sp;
24495
24496int
24497main ()
24498{
24499 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
24500 ;
24501 return 0;
24502}
24503_ACEOF
24504rm -f conftest.$ac_objext
24505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24506 (eval $ac_compile) 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } &&
24513 { ac_try='test -z "$ac_c_werror_flag"
24514 || test ! -s conftest.err'
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; } &&
24520 { ac_try='test -s conftest.$ac_objext'
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 sp_expire_available=yes
24527else
24528 echo "$as_me: failed program was:" >&5
24529sed 's/^/| /' conftest.$ac_ext >&5
24530
24531
24532
24533fi
24534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24535
24536 if test "x$sp_expire_available" = "xyes" ; then
24537 echo "$as_me:$LINENO: result: yes" >&5
24538echo "${ECHO_T}yes" >&6
24539 cat >>confdefs.h <<\_ACEOF
24540#define HAS_SHADOW_EXPIRE 1
24541_ACEOF
24542
24543 else
24544 echo "$as_me:$LINENO: result: no" >&5
24545echo "${ECHO_T}no" >&6
24546 fi
24547fi
24548
24549# Use ip address instead of hostname in $DISPLAY
24550if test ! -z "$IPADDR_IN_DISPLAY" ; then
24551 DISPLAY_HACK_MSG="yes"
24552 cat >>confdefs.h <<\_ACEOF
24553#define IPADDR_IN_DISPLAY 1
24554_ACEOF
24555
24556else
24557 DISPLAY_HACK_MSG="no"
24558
24559# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
24560if test "${with_ipaddr_display+set}" = set; then
24561 withval="$with_ipaddr_display"
24562
24563 if test "x$withval" != "xno" ; then
24564 cat >>confdefs.h <<\_ACEOF
24565#define IPADDR_IN_DISPLAY 1
24566_ACEOF
24567
24568 DISPLAY_HACK_MSG="yes"
24569 fi
24570
24571
24572fi;
24573fi
24574
24575# check for /etc/default/login and use it if present.
24576# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
24577if test "${enable_etc_default_login+set}" = set; then
24578 enableval="$enable_etc_default_login"
24579 if test "x$enableval" = "xno"; then
24580 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
24581echo "$as_me: /etc/default/login handling disabled" >&6;}
24582 etc_default_login=no
24583 else
24584 etc_default_login=yes
24585 fi
24586else
24587 etc_default_login=yes
24588
24589fi;
24590
24591if test "x$etc_default_login" != "xno"; then
24592 echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
24593echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
24594if test "${ac_cv_file___etc_default_login_+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24596else
24597 test "$cross_compiling" = yes &&
24598 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24599echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24600 { (exit 1); exit 1; }; }
24601if test -r ""/etc/default/login""; then
24602 ac_cv_file___etc_default_login_=yes
24603else
24604 ac_cv_file___etc_default_login_=no
24605fi
24606fi
24607echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
24608echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
24609if test $ac_cv_file___etc_default_login_ = yes; then
24610 external_path_file=/etc/default/login
24611fi
24612
24613 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
24614 then
24615 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /etc/default/login test" >&5
24616echo "$as_me: WARNING: cross compiling: Disabling /etc/default/login test" >&2;}
24617 elif test "x$external_path_file" = "x/etc/default/login"; then
24618 cat >>confdefs.h <<\_ACEOF
24619#define HAVE_ETC_DEFAULT_LOGIN 1
24620_ACEOF
24621
24622 fi
24623fi
24624
24625if test $ac_cv_func_login_getcapbool = "yes" && \
24626 test $ac_cv_header_login_cap_h = "yes" ; then
24627 external_path_file=/etc/login.conf
24628fi
24629
24630# Whether to mess with the default path
24631SERVER_PATH_MSG="(default)"
24632
24633# Check whether --with-default-path or --without-default-path was given.
24634if test "${with_default_path+set}" = set; then
24635 withval="$with_default_path"
24636
24637 if test "x$external_path_file" = "x/etc/login.conf" ; then
24638 { echo "$as_me:$LINENO: WARNING:
24639--with-default-path=PATH has no effect on this system.
24640Edit /etc/login.conf instead." >&5
24641echo "$as_me: WARNING:
24642--with-default-path=PATH has no effect on this system.
24643Edit /etc/login.conf instead." >&2;}
24644 elif test "x$withval" != "xno" ; then
24645 if test ! -z "$external_path_file" ; then
24646 { echo "$as_me:$LINENO: WARNING:
24647--with-default-path=PATH will only be used if PATH is not defined in
24648$external_path_file ." >&5
24649echo "$as_me: WARNING:
24650--with-default-path=PATH will only be used if PATH is not defined in
24651$external_path_file ." >&2;}
24652 fi
24653 user_path="$withval"
24654 SERVER_PATH_MSG="$withval"
24655 fi
24656
24657else
24658 if test "x$external_path_file" = "x/etc/login.conf" ; then
24659 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
24660echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
24661 else
24662 if test ! -z "$external_path_file" ; then
24663 { echo "$as_me:$LINENO: WARNING:
24664If PATH is defined in $external_path_file, ensure the path to scp is included,
24665otherwise scp will not work." >&5
24666echo "$as_me: WARNING:
24667If PATH is defined in $external_path_file, ensure the path to scp is included,
24668otherwise scp will not work." >&2;}
24669 fi
24670 if test "$cross_compiling" = yes; then
24671 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24672
24673else
24674 cat >conftest.$ac_ext <<_ACEOF
24675/* confdefs.h. */
24676_ACEOF
24677cat confdefs.h >>conftest.$ac_ext
24678cat >>conftest.$ac_ext <<_ACEOF
24679/* end confdefs.h. */
24680
24681/* find out what STDPATH is */
24682#include <stdio.h>
24683#ifdef HAVE_PATHS_H
24684# include <paths.h>
24685#endif
24686#ifndef _PATH_STDPATH
24687# ifdef _PATH_USERPATH /* Irix */
24688# define _PATH_STDPATH _PATH_USERPATH
24689# else
24690# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
24691# endif
24692#endif
24693#include <sys/types.h>
24694#include <sys/stat.h>
24695#include <fcntl.h>
24696#define DATA "conftest.stdpath"
24697
24698main()
24699{
24700 FILE *fd;
24701 int rc;
24702
24703 fd = fopen(DATA,"w");
24704 if(fd == NULL)
24705 exit(1);
24706
24707 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
24708 exit(1);
24709
24710 exit(0);
24711}
24712
24713_ACEOF
24714rm -f conftest$ac_exeext
24715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716 (eval $ac_link) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 user_path=`cat conftest.stdpath`
24726else
24727 echo "$as_me: program exited with status $ac_status" >&5
24728echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731( exit $ac_status )
24732 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
24733fi
24734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735fi
24736# make sure $bindir is in USER_PATH so scp will work
24737 t_bindir=`eval echo ${bindir}`
24738 case $t_bindir in
24739 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
24740 esac
24741 case $t_bindir in
24742 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
24743 esac
24744 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
24745 if test $? -ne 0 ; then
24746 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
24747 if test $? -ne 0 ; then
24748 user_path=$user_path:$t_bindir
24749 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
24750echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
24751 fi
24752 fi
24753 fi
24754
24755fi;
24756if test "x$external_path_file" != "x/etc/login.conf" ; then
24757 cat >>confdefs.h <<_ACEOF
24758#define USER_PATH "$user_path"
24759_ACEOF
24760
24761
24762fi
24763
24764# Set superuser path separately to user path
24765
24766# Check whether --with-superuser-path or --without-superuser-path was given.
24767if test "${with_superuser_path+set}" = set; then
24768 withval="$with_superuser_path"
24769
24770 if test -n "$withval" && test "x$withval" != "xno" && \
24771 test "x${withval}" != "xyes"; then
24772 cat >>confdefs.h <<_ACEOF
24773#define SUPERUSER_PATH "$withval"
24774_ACEOF
24775
24776 superuser_path=$withval
24777 fi
24778
24779
24780fi;
24781
24782
24783echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
24784echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
24785IPV4_IN6_HACK_MSG="no"
24786
24787# Check whether --with-4in6 or --without-4in6 was given.
24788if test "${with_4in6+set}" = set; then
24789 withval="$with_4in6"
24790
24791 if test "x$withval" != "xno" ; then
24792 echo "$as_me:$LINENO: result: yes" >&5
24793echo "${ECHO_T}yes" >&6
24794 cat >>confdefs.h <<\_ACEOF
24795#define IPV4_IN_IPV6 1
24796_ACEOF
24797
24798 IPV4_IN6_HACK_MSG="yes"
24799 else
24800 echo "$as_me:$LINENO: result: no" >&5
24801echo "${ECHO_T}no" >&6
24802 fi
24803
24804else
24805
24806 if test "x$inet6_default_4in6" = "xyes"; then
24807 echo "$as_me:$LINENO: result: yes (default)" >&5
24808echo "${ECHO_T}yes (default)" >&6
24809 cat >>confdefs.h <<\_ACEOF
24810#define IPV4_IN_IPV6 1
24811_ACEOF
24812
24813 IPV4_IN6_HACK_MSG="yes"
24814 else
24815 echo "$as_me:$LINENO: result: no (default)" >&5
24816echo "${ECHO_T}no (default)" >&6
24817 fi
24818
24819
24820fi;
24821
24822# Whether to enable BSD auth support
24823BSD_AUTH_MSG=no
24824
24825# Check whether --with-bsd-auth or --without-bsd-auth was given.
24826if test "${with_bsd_auth+set}" = set; then
24827 withval="$with_bsd_auth"
24828
24829 if test "x$withval" != "xno" ; then
24830 cat >>confdefs.h <<\_ACEOF
24831#define BSD_AUTH 1
24832_ACEOF
24833
24834 BSD_AUTH_MSG=yes
24835 fi
24836
24837
24838fi;
24839
24840# Where to place sshd.pid
24841piddir=/var/run
24842# make sure the directory exists
24843if test ! -d $piddir ; then
24844 piddir=`eval echo ${sysconfdir}`
24845 case $piddir in
24846 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
24847 esac
24848fi
24849
24850
24851# Check whether --with-pid-dir or --without-pid-dir was given.
24852if test "${with_pid_dir+set}" = set; then
24853 withval="$with_pid_dir"
24854
24855 if test -n "$withval" && test "x$withval" != "xno" && \
24856 test "x${withval}" != "xyes"; then
24857 piddir=$withval
24858 if test ! -d $piddir ; then
24859 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
24860echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
24861 fi
24862 fi
24863
24864
24865fi;
24866
24867cat >>confdefs.h <<_ACEOF
24868#define _PATH_SSH_PIDDIR "$piddir"
24869_ACEOF
24870
24871
24872
24873# Check whether --enable-lastlog or --disable-lastlog was given.
24874if test "${enable_lastlog+set}" = set; then
24875 enableval="$enable_lastlog"
24876
24877 if test "x$enableval" = "xno" ; then
24878 cat >>confdefs.h <<\_ACEOF
24879#define DISABLE_LASTLOG 1
24880_ACEOF
24881
24882 fi
24883
24884
24885fi;
24886# Check whether --enable-utmp or --disable-utmp was given.
24887if test "${enable_utmp+set}" = set; then
24888 enableval="$enable_utmp"
24889
24890 if test "x$enableval" = "xno" ; then
24891 cat >>confdefs.h <<\_ACEOF
24892#define DISABLE_UTMP 1
24893_ACEOF
24894
24895 fi
24896
24897
24898fi;
24899# Check whether --enable-utmpx or --disable-utmpx was given.
24900if test "${enable_utmpx+set}" = set; then
24901 enableval="$enable_utmpx"
24902
24903 if test "x$enableval" = "xno" ; then
24904 cat >>confdefs.h <<\_ACEOF
24905#define DISABLE_UTMPX 1
24906_ACEOF
24907
24908 fi
24909
24910
24911fi;
24912# Check whether --enable-wtmp or --disable-wtmp was given.
24913if test "${enable_wtmp+set}" = set; then
24914 enableval="$enable_wtmp"
24915
24916 if test "x$enableval" = "xno" ; then
24917 cat >>confdefs.h <<\_ACEOF
24918#define DISABLE_WTMP 1
24919_ACEOF
24920
24921 fi
24922
24923
24924fi;
24925# Check whether --enable-wtmpx or --disable-wtmpx was given.
24926if test "${enable_wtmpx+set}" = set; then
24927 enableval="$enable_wtmpx"
24928
24929 if test "x$enableval" = "xno" ; then
24930 cat >>confdefs.h <<\_ACEOF
24931#define DISABLE_WTMPX 1
24932_ACEOF
24933
24934 fi
24935
24936
24937fi;
24938# Check whether --enable-libutil or --disable-libutil was given.
24939if test "${enable_libutil+set}" = set; then
24940 enableval="$enable_libutil"
24941
24942 if test "x$enableval" = "xno" ; then
24943 cat >>confdefs.h <<\_ACEOF
24944#define DISABLE_LOGIN 1
24945_ACEOF
24946
24947 fi
24948
24949
24950fi;
24951# Check whether --enable-pututline or --disable-pututline was given.
24952if test "${enable_pututline+set}" = set; then
24953 enableval="$enable_pututline"
24954
24955 if test "x$enableval" = "xno" ; then
24956 cat >>confdefs.h <<\_ACEOF
24957#define DISABLE_PUTUTLINE 1
24958_ACEOF
24959
24960 fi
24961
24962
24963fi;
24964# Check whether --enable-pututxline or --disable-pututxline was given.
24965if test "${enable_pututxline+set}" = set; then
24966 enableval="$enable_pututxline"
24967
24968 if test "x$enableval" = "xno" ; then
24969 cat >>confdefs.h <<\_ACEOF
24970#define DISABLE_PUTUTXLINE 1
24971_ACEOF
24972
24973 fi
24974
24975
24976fi;
24977
24978# Check whether --with-lastlog or --without-lastlog was given.
24979if test "${with_lastlog+set}" = set; then
24980 withval="$with_lastlog"
24981
24982 if test "x$withval" = "xno" ; then
24983 cat >>confdefs.h <<\_ACEOF
24984#define DISABLE_LASTLOG 1
24985_ACEOF
24986
24987 elif test -n "$withval" && test "x${withval}" != "xyes"; then
24988 conf_lastlog_location=$withval
24989 fi
24990
24991
24992fi;
24993
24994
24995echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
24996echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
24997cat >conftest.$ac_ext <<_ACEOF
24998/* confdefs.h. */
24999_ACEOF
25000cat confdefs.h >>conftest.$ac_ext
25001cat >>conftest.$ac_ext <<_ACEOF
25002/* end confdefs.h. */
25003
25004#include <sys/types.h>
25005#include <utmp.h>
25006#ifdef HAVE_LASTLOG_H
25007# include <lastlog.h>
25008#endif
25009#ifdef HAVE_PATHS_H
25010# include <paths.h>
25011#endif
25012#ifdef HAVE_LOGIN_H
25013# include <login.h>
25014#endif
25015
25016int
25017main ()
25018{
25019 char *lastlog = LASTLOG_FILE;
25020 ;
25021 return 0;
25022}
25023_ACEOF
25024rm -f conftest.$ac_objext
25025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25026 (eval $ac_compile) 2>conftest.er1
25027 ac_status=$?
25028 grep -v '^ *+' conftest.er1 >conftest.err
25029 rm -f conftest.er1
25030 cat conftest.err >&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } &&
25033 { ac_try='test -z "$ac_c_werror_flag"
25034 || test ! -s conftest.err'
25035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; } &&
25040 { ac_try='test -s conftest.$ac_objext'
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; }; then
25046 echo "$as_me:$LINENO: result: yes" >&5
25047echo "${ECHO_T}yes" >&6
25048else
25049 echo "$as_me: failed program was:" >&5
25050sed 's/^/| /' conftest.$ac_ext >&5
25051
25052
25053 echo "$as_me:$LINENO: result: no" >&5
25054echo "${ECHO_T}no" >&6
25055 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
25056echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064#include <sys/types.h>
25065#include <utmp.h>
25066#ifdef HAVE_LASTLOG_H
25067# include <lastlog.h>
25068#endif
25069#ifdef HAVE_PATHS_H
25070# include <paths.h>
25071#endif
25072
25073int
25074main ()
25075{
25076 char *lastlog = _PATH_LASTLOG;
25077 ;
25078 return 0;
25079}
25080_ACEOF
25081rm -f conftest.$ac_objext
25082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25083 (eval $ac_compile) 2>conftest.er1
25084 ac_status=$?
25085 grep -v '^ *+' conftest.er1 >conftest.err
25086 rm -f conftest.er1
25087 cat conftest.err >&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } &&
25090 { ac_try='test -z "$ac_c_werror_flag"
25091 || test ! -s conftest.err'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest.$ac_objext'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 echo "$as_me:$LINENO: result: yes" >&5
25104echo "${ECHO_T}yes" >&6
25105else
25106 echo "$as_me: failed program was:" >&5
25107sed 's/^/| /' conftest.$ac_ext >&5
25108
25109
25110 echo "$as_me:$LINENO: result: no" >&5
25111echo "${ECHO_T}no" >&6
25112 system_lastlog_path=no
25113
25114fi
25115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25116
25117
25118fi
25119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25120
25121if test -z "$conf_lastlog_location"; then
25122 if test x"$system_lastlog_path" = x"no" ; then
25123 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
25124 if (test -d "$f" || test -f "$f") ; then
25125 conf_lastlog_location=$f
25126 fi
25127 done
25128 if test -z "$conf_lastlog_location"; then
25129 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
25130echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
25131 fi
25132 fi
25133fi
25134
25135if test -n "$conf_lastlog_location"; then
25136 cat >>confdefs.h <<_ACEOF
25137#define CONF_LASTLOG_FILE "$conf_lastlog_location"
25138_ACEOF
25139
25140fi
25141
25142echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
25143echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
25144cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h. */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h. */
25150
25151#include <sys/types.h>
25152#include <utmp.h>
25153#ifdef HAVE_PATHS_H
25154# include <paths.h>
25155#endif
25156
25157int
25158main ()
25159{
25160 char *utmp = UTMP_FILE;
25161 ;
25162 return 0;
25163}
25164_ACEOF
25165rm -f conftest.$ac_objext
25166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25167 (eval $ac_compile) 2>conftest.er1
25168 ac_status=$?
25169 grep -v '^ *+' conftest.er1 >conftest.err
25170 rm -f conftest.er1
25171 cat conftest.err >&5
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); } &&
25174 { ac_try='test -z "$ac_c_werror_flag"
25175 || test ! -s conftest.err'
25176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; } &&
25181 { ac_try='test -s conftest.$ac_objext'
25182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183 (eval $ac_try) 2>&5
25184 ac_status=$?
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); }; }; then
25187 echo "$as_me:$LINENO: result: yes" >&5
25188echo "${ECHO_T}yes" >&6
25189else
25190 echo "$as_me: failed program was:" >&5
25191sed 's/^/| /' conftest.$ac_ext >&5
25192
25193 echo "$as_me:$LINENO: result: no" >&5
25194echo "${ECHO_T}no" >&6
25195 system_utmp_path=no
25196
25197fi
25198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25199if test -z "$conf_utmp_location"; then
25200 if test x"$system_utmp_path" = x"no" ; then
25201 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
25202 if test -f $f ; then
25203 conf_utmp_location=$f
25204 fi
25205 done
25206 if test -z "$conf_utmp_location"; then
25207 cat >>confdefs.h <<\_ACEOF
25208#define DISABLE_UTMP 1
25209_ACEOF
25210
25211 fi
25212 fi
25213fi
25214if test -n "$conf_utmp_location"; then
25215 cat >>confdefs.h <<_ACEOF
25216#define CONF_UTMP_FILE "$conf_utmp_location"
25217_ACEOF
25218
25219fi
25220
25221echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
25222echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
25223cat >conftest.$ac_ext <<_ACEOF
25224/* confdefs.h. */
25225_ACEOF
25226cat confdefs.h >>conftest.$ac_ext
25227cat >>conftest.$ac_ext <<_ACEOF
25228/* end confdefs.h. */
25229
25230#include <sys/types.h>
25231#include <utmp.h>
25232#ifdef HAVE_PATHS_H
25233# include <paths.h>
25234#endif
25235
25236int
25237main ()
25238{
25239 char *wtmp = WTMP_FILE;
25240 ;
25241 return 0;
25242}
25243_ACEOF
25244rm -f conftest.$ac_objext
25245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>conftest.er1
25247 ac_status=$?
25248 grep -v '^ *+' conftest.er1 >conftest.err
25249 rm -f conftest.er1
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_c_werror_flag"
25254 || test ! -s conftest.err'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; } &&
25260 { ac_try='test -s conftest.$ac_objext'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; }; then
25266 echo "$as_me:$LINENO: result: yes" >&5
25267echo "${ECHO_T}yes" >&6
25268else
25269 echo "$as_me: failed program was:" >&5
25270sed 's/^/| /' conftest.$ac_ext >&5
25271
25272 echo "$as_me:$LINENO: result: no" >&5
25273echo "${ECHO_T}no" >&6
25274 system_wtmp_path=no
25275
25276fi
25277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25278if test -z "$conf_wtmp_location"; then
25279 if test x"$system_wtmp_path" = x"no" ; then
25280 for f in /usr/adm/wtmp /var/log/wtmp; do
25281 if test -f $f ; then
25282 conf_wtmp_location=$f
25283 fi
25284 done
25285 if test -z "$conf_wtmp_location"; then
25286 cat >>confdefs.h <<\_ACEOF
25287#define DISABLE_WTMP 1
25288_ACEOF
25289
25290 fi
25291 fi
25292fi
25293if test -n "$conf_wtmp_location"; then
25294 cat >>confdefs.h <<_ACEOF
25295#define CONF_WTMP_FILE "$conf_wtmp_location"
25296_ACEOF
25297
25298fi
25299
25300
25301echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
25302echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
25303cat >conftest.$ac_ext <<_ACEOF
25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
25309
25310#include <sys/types.h>
25311#include <utmp.h>
25312#ifdef HAVE_UTMPX_H
25313#include <utmpx.h>
25314#endif
25315#ifdef HAVE_PATHS_H
25316# include <paths.h>
25317#endif
25318
25319int
25320main ()
25321{
25322 char *utmpx = UTMPX_FILE;
25323 ;
25324 return 0;
25325}
25326_ACEOF
25327rm -f conftest.$ac_objext
25328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25329 (eval $ac_compile) 2>conftest.er1
25330 ac_status=$?
25331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } &&
25336 { ac_try='test -z "$ac_c_werror_flag"
25337 || test ! -s conftest.err'
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest.$ac_objext'
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; }; then
25349 echo "$as_me:$LINENO: result: yes" >&5
25350echo "${ECHO_T}yes" >&6
25351else
25352 echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
25355 echo "$as_me:$LINENO: result: no" >&5
25356echo "${ECHO_T}no" >&6
25357 system_utmpx_path=no
25358
25359fi
25360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25361if test -z "$conf_utmpx_location"; then
25362 if test x"$system_utmpx_path" = x"no" ; then
25363 cat >>confdefs.h <<\_ACEOF
25364#define DISABLE_UTMPX 1
25365_ACEOF
25366
25367 fi
25368else
25369 cat >>confdefs.h <<_ACEOF
25370#define CONF_UTMPX_FILE "$conf_utmpx_location"
25371_ACEOF
25372
25373fi
25374
25375echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
25376echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
25377cat >conftest.$ac_ext <<_ACEOF
25378/* confdefs.h. */
25379_ACEOF
25380cat confdefs.h >>conftest.$ac_ext
25381cat >>conftest.$ac_ext <<_ACEOF
25382/* end confdefs.h. */
25383
25384#include <sys/types.h>
25385#include <utmp.h>
25386#ifdef HAVE_UTMPX_H
25387#include <utmpx.h>
25388#endif
25389#ifdef HAVE_PATHS_H
25390# include <paths.h>
25391#endif
25392
25393int
25394main ()
25395{
25396 char *wtmpx = WTMPX_FILE;
25397 ;
25398 return 0;
25399}
25400_ACEOF
25401rm -f conftest.$ac_objext
25402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25414 ac_status=$?
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest.$ac_objext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25420 ac_status=$?
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 echo "$as_me:$LINENO: result: yes" >&5
25424echo "${ECHO_T}yes" >&6
25425else
25426 echo "$as_me: failed program was:" >&5
25427sed 's/^/| /' conftest.$ac_ext >&5
25428
25429 echo "$as_me:$LINENO: result: no" >&5
25430echo "${ECHO_T}no" >&6
25431 system_wtmpx_path=no
25432
25433fi
25434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25435if test -z "$conf_wtmpx_location"; then
25436 if test x"$system_wtmpx_path" = x"no" ; then
25437 cat >>confdefs.h <<\_ACEOF
25438#define DISABLE_WTMPX 1
25439_ACEOF
25440
25441 fi
25442else
25443 cat >>confdefs.h <<_ACEOF
25444#define CONF_WTMPX_FILE "$conf_wtmpx_location"
25445_ACEOF
25446
25447fi
25448
25449
25450if test ! -z "$blibpath" ; then
25451 LDFLAGS="$LDFLAGS $blibflags$blibpath"
25452 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
25453echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
25454fi
25455
25456if test "$PAM_MSG" = yes ; then
25457 LIBS=`echo $LIBS | sed 's/-lpam //'`
25458fi
25459if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
25460 LIBS=`echo $LIBS | sed 's/-ldl //'`
25461fi
25462
25463CFLAGS="$CFLAGS $werror_flags"
25464
25465
25466 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh"
25467
25468cat >confcache <<\_ACEOF
25469# This file is a shell script that caches the results of configure
25470# tests run on this system so they can be shared between configure
25471# scripts and configure runs, see configure's option --config-cache.
25472# It is not useful on other systems. If it contains results you don't
25473# want to keep, you may remove or edit it.
25474#
25475# config.status only pays attention to the cache file if you give it
25476# the --recheck option to rerun configure.
25477#
25478# `ac_cv_env_foo' variables (set or unset) will be overridden when
25479# loading this file, other *unset* `ac_cv_foo' will be assigned the
25480# following values.
25481
25482_ACEOF
25483
25484# The following way of writing the cache mishandles newlines in values,
25485# but we know of no workaround that is simple, portable, and efficient.
25486# So, don't put newlines in cache variables' values.
25487# Ultrix sh set writes to stderr and can't be redirected directly,
25488# and sets the high bit in the cache file unless we assign to the vars.
25489{
25490 (set) 2>&1 |
25491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25492 *ac_space=\ *)
25493 # `set' does not quote correctly, so add quotes (double-quote
25494 # substitution turns \\\\ into \\, and sed turns \\ into \).
25495 sed -n \
25496 "s/'/'\\\\''/g;
25497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25498 ;;
25499 *)
25500 # `set' quotes correctly as required by POSIX, so do not add quotes.
25501 sed -n \
25502 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25503 ;;
25504 esac;
25505} |
25506 sed '
25507 t clear
25508 : clear
25509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25510 t end
25511 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25512 : end' >>confcache
25513if diff $cache_file confcache >/dev/null 2>&1; then :; else
25514 if test -w $cache_file; then
25515 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25516 cat confcache >$cache_file
25517 else
25518 echo "not updating unwritable cache $cache_file"
25519 fi
25520fi
25521rm -f confcache
25522
25523test "x$prefix" = xNONE && prefix=$ac_default_prefix
25524# Let make expand exec_prefix.
25525test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25526
25527# VPATH may cause trouble with some makes, so we remove $(srcdir),
25528# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25529# trailing colons and then remove the whole line if VPATH becomes empty
25530# (actually we leave an empty line to preserve line numbers).
25531if test "x$srcdir" = x.; then
25532 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25533s/:*\$(srcdir):*/:/;
25534s/:*\${srcdir}:*/:/;
25535s/:*@srcdir@:*/:/;
25536s/^\([^=]*=[ ]*\):*/\1/;
25537s/:*$//;
25538s/^[^=]*=[ ]*$//;
25539}'
25540fi
25541
25542DEFS=-DHAVE_CONFIG_H
25543
25544ac_libobjs=
25545ac_ltlibobjs=
25546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25547 # 1. Remove the extension, and $U if already installed.
25548 ac_i=`echo "$ac_i" |
25549 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25550 # 2. Add them.
25551 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25552 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25553done
25554LIBOBJS=$ac_libobjs
25555
25556LTLIBOBJS=$ac_ltlibobjs
25557
25558
25559
25560: ${CONFIG_STATUS=./config.status}
25561ac_clean_files_save=$ac_clean_files
25562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25563{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25564echo "$as_me: creating $CONFIG_STATUS" >&6;}
25565cat >$CONFIG_STATUS <<_ACEOF
25566#! $SHELL
25567# Generated by $as_me.
25568# Run this file to recreate the current configuration.
25569# Compiler output produced by configure, useful for debugging
25570# configure, is in config.log if it exists.
25571
25572debug=false
25573ac_cs_recheck=false
25574ac_cs_silent=false
25575SHELL=\${CONFIG_SHELL-$SHELL}
25576_ACEOF
25577
25578cat >>$CONFIG_STATUS <<\_ACEOF
25579## --------------------- ##
25580## M4sh Initialization. ##
25581## --------------------- ##
25582
25583# Be Bourne compatible
25584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25585 emulate sh
25586 NULLCMD=:
25587 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25588 # is contrary to our usage. Disable this feature.
25589 alias -g '${1+"$@"}'='"$@"'
25590elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25591 set -o posix
25592fi
25593DUALCASE=1; export DUALCASE # for MKS sh
25594
25595# Support unset when possible.
25596if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25597 as_unset=unset
25598else
25599 as_unset=false
25600fi
25601
25602
25603# Work around bugs in pre-3.0 UWIN ksh.
25604$as_unset ENV MAIL MAILPATH
25605PS1='$ '
25606PS2='> '
25607PS4='+ '
25608
25609# NLS nuisances.
25610for as_var in \
25611 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25612 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25613 LC_TELEPHONE LC_TIME
25614do
25615 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25616 eval $as_var=C; export $as_var
25617 else
25618 $as_unset $as_var
25619 fi
25620done
25621
25622# Required to use basename.
25623if expr a : '\(a\)' >/dev/null 2>&1; then
25624 as_expr=expr
25625else
25626 as_expr=false
25627fi
25628
25629if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25630 as_basename=basename
25631else
25632 as_basename=false
25633fi
25634
25635
25636# Name of the executable.
25637as_me=`$as_basename "$0" ||
25638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25639 X"$0" : 'X\(//\)$' \| \
25640 X"$0" : 'X\(/\)$' \| \
25641 . : '\(.\)' 2>/dev/null ||
25642echo X/"$0" |
25643 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25644 /^X\/\(\/\/\)$/{ s//\1/; q; }
25645 /^X\/\(\/\).*/{ s//\1/; q; }
25646 s/.*/./; q'`
25647
25648
25649# PATH needs CR, and LINENO needs CR and PATH.
25650# Avoid depending upon Character Ranges.
25651as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25653as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25654as_cr_digits='0123456789'
25655as_cr_alnum=$as_cr_Letters$as_cr_digits
25656
25657# The user is always right.
25658if test "${PATH_SEPARATOR+set}" != set; then
25659 echo "#! /bin/sh" >conf$$.sh
25660 echo "exit 0" >>conf$$.sh
25661 chmod +x conf$$.sh
25662 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25663 PATH_SEPARATOR=';'
25664 else
25665 PATH_SEPARATOR=:
25666 fi
25667 rm -f conf$$.sh
25668fi
25669
25670
25671 as_lineno_1=$LINENO
25672 as_lineno_2=$LINENO
25673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25674 test "x$as_lineno_1" != "x$as_lineno_2" &&
25675 test "x$as_lineno_3" = "x$as_lineno_2" || {
25676 # Find who we are. Look in the path if we contain no path at all
25677 # relative or not.
25678 case $0 in
25679 *[\\/]* ) as_myself=$0 ;;
25680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25681for as_dir in $PATH
25682do
25683 IFS=$as_save_IFS
25684 test -z "$as_dir" && as_dir=.
25685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25686done
25687
25688 ;;
25689 esac
25690 # We did not find ourselves, most probably we were run as `sh COMMAND'
25691 # in which case we are not to be found in the path.
25692 if test "x$as_myself" = x; then
25693 as_myself=$0
25694 fi
25695 if test ! -f "$as_myself"; then
25696 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25697echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25698 { (exit 1); exit 1; }; }
25699 fi
25700 case $CONFIG_SHELL in
25701 '')
25702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25703for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25704do
25705 IFS=$as_save_IFS
25706 test -z "$as_dir" && as_dir=.
25707 for as_base in sh bash ksh sh5; do
25708 case $as_dir in
25709 /*)
25710 if ("$as_dir/$as_base" -c '
25711 as_lineno_1=$LINENO
25712 as_lineno_2=$LINENO
25713 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25714 test "x$as_lineno_1" != "x$as_lineno_2" &&
25715 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25716 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25717 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25718 CONFIG_SHELL=$as_dir/$as_base
25719 export CONFIG_SHELL
25720 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25721 fi;;
25722 esac
25723 done
25724done
25725;;
25726 esac
25727
25728 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25729 # uniformly replaced by the line number. The first 'sed' inserts a
25730 # line-number line before each line; the second 'sed' does the real
25731 # work. The second script uses 'N' to pair each line-number line
25732 # with the numbered line, and appends trailing '-' during
25733 # substitution so that $LINENO is not a special case at line end.
25734 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25735 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25736 sed '=' <$as_myself |
25737 sed '
25738 N
25739 s,$,-,
25740 : loop
25741 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25742 t loop
25743 s,-$,,
25744 s,^['$as_cr_digits']*\n,,
25745 ' >$as_me.lineno &&
25746 chmod +x $as_me.lineno ||
25747 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25748echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25749 { (exit 1); exit 1; }; }
25750
25751 # Don't try to exec as it changes $[0], causing all sort of problems
25752 # (the dirname of $[0] is not the place where we might find the
25753 # original and so on. Autoconf is especially sensible to this).
25754 . ./$as_me.lineno
25755 # Exit status is that of the last command.
25756 exit
25757}
25758
25759
25760case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25761 *c*,-n*) ECHO_N= ECHO_C='
25762' ECHO_T=' ' ;;
25763 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25764 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25765esac
25766
25767if expr a : '\(a\)' >/dev/null 2>&1; then
25768 as_expr=expr
25769else
25770 as_expr=false
25771fi
25772
25773rm -f conf$$ conf$$.exe conf$$.file
25774echo >conf$$.file
25775if ln -s conf$$.file conf$$ 2>/dev/null; then
25776 # We could just check for DJGPP; but this test a) works b) is more generic
25777 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25778 if test -f conf$$.exe; then
25779 # Don't use ln at all; we don't have any links
25780 as_ln_s='cp -p'
25781 else
25782 as_ln_s='ln -s'
25783 fi
25784elif ln conf$$.file conf$$ 2>/dev/null; then
25785 as_ln_s=ln
25786else
25787 as_ln_s='cp -p'
25788fi
25789rm -f conf$$ conf$$.exe conf$$.file
25790
25791if mkdir -p . 2>/dev/null; then
25792 as_mkdir_p=:
25793else
25794 test -d ./-p && rmdir ./-p
25795 as_mkdir_p=false
25796fi
25797
25798as_executable_p="test -f"
25799
25800# Sed expression to map a string onto a valid CPP name.
25801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25802
25803# Sed expression to map a string onto a valid variable name.
25804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25805
25806
25807# IFS
25808# We need space, tab and new line, in precisely that order.
25809as_nl='
25810'
25811IFS=" $as_nl"
25812
25813# CDPATH.
25814$as_unset CDPATH
25815
25816exec 6>&1
25817
25818# Open the log real soon, to keep \$[0] and so on meaningful, and to
25819# report actual input values of CONFIG_FILES etc. instead of their
25820# values after options handling. Logging --version etc. is OK.
25821exec 5>>config.log
25822{
25823 echo
25824 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<BOXI_EOF
25825## Running $as_me. ##
25826BOXI_EOF
25827} >&5
25828cat >&5 <<_CSEOF
25829
25830This file was extended by OpenSSH $as_me Portable, which was
25831generated by GNU Autoconf 2.59. Invocation command line was
25832
25833 CONFIG_FILES = $CONFIG_FILES
25834 CONFIG_HEADERS = $CONFIG_HEADERS
25835 CONFIG_LINKS = $CONFIG_LINKS
25836 CONFIG_COMMANDS = $CONFIG_COMMANDS
25837 $ $0 $@
25838
25839_CSEOF
25840echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25841echo >&5
25842_ACEOF
25843
25844# Files that config.status was made for.
25845if test -n "$ac_config_files"; then
25846 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25847fi
25848
25849if test -n "$ac_config_headers"; then
25850 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25851fi
25852
25853if test -n "$ac_config_links"; then
25854 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25855fi
25856
25857if test -n "$ac_config_commands"; then
25858 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25859fi
25860
25861cat >>$CONFIG_STATUS <<\_ACEOF
25862
25863ac_cs_usage="\
25864\`$as_me' instantiates files from templates according to the
25865current configuration.
25866
25867Usage: $0 [OPTIONS] [FILE]...
25868
25869 -h, --help print this help, then exit
25870 -V, --version print version number, then exit
25871 -q, --quiet do not print progress messages
25872 -d, --debug don't remove temporary files
25873 --recheck update $as_me by reconfiguring in the same conditions
25874 --file=FILE[:TEMPLATE]
25875 instantiate the configuration file FILE
25876 --header=FILE[:TEMPLATE]
25877 instantiate the configuration header FILE
25878
25879Configuration files:
25880$config_files
25881
25882Configuration headers:
25883$config_headers
25884
25885Report bugs to <bug-autoconf@gnu.org>."
25886_ACEOF
25887
25888cat >>$CONFIG_STATUS <<_ACEOF
25889ac_cs_version="\\
25890OpenSSH config.status Portable
25891configured by $0, generated by GNU Autoconf 2.59,
25892 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25893
25894Copyright (C) 2003 Free Software Foundation, Inc.
25895This config.status script is free software; the Free Software Foundation
25896gives unlimited permission to copy, distribute and modify it."
25897srcdir=$srcdir
25898INSTALL="$INSTALL"
25899_ACEOF
25900
25901cat >>$CONFIG_STATUS <<\_ACEOF
25902# If no file are specified by the user, then we need to provide default
25903# value. By we need to know if files were specified by the user.
25904ac_need_defaults=:
25905while test $# != 0
25906do
25907 case $1 in
25908 --*=*)
25909 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25910 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25911 ac_shift=:
25912 ;;
25913 -*)
25914 ac_option=$1
25915 ac_optarg=$2
25916 ac_shift=shift
25917 ;;
25918 *) # This is not an option, so the user has probably given explicit
25919 # arguments.
25920 ac_option=$1
25921 ac_need_defaults=false;;
25922 esac
25923
25924 case $ac_option in
25925 # Handling of the options.
25926_ACEOF
25927cat >>$CONFIG_STATUS <<\_ACEOF
25928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25929 ac_cs_recheck=: ;;
25930 --version | --vers* | -V )
25931 echo "$ac_cs_version"; exit 0 ;;
25932 --he | --h)
25933 # Conflict between --help and --header
25934 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25935Try \`$0 --help' for more information." >&5
25936echo "$as_me: error: ambiguous option: $1
25937Try \`$0 --help' for more information." >&2;}
25938 { (exit 1); exit 1; }; };;
25939 --help | --hel | -h )
25940 echo "$ac_cs_usage"; exit 0 ;;
25941 --debug | --d* | -d )
25942 debug=: ;;
25943 --file | --fil | --fi | --f )
25944 $ac_shift
25945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25946 ac_need_defaults=false;;
25947 --header | --heade | --head | --hea )
25948 $ac_shift
25949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25950 ac_need_defaults=false;;
25951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25953 ac_cs_silent=: ;;
25954
25955 # This is an error.
25956 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25957Try \`$0 --help' for more information." >&5
25958echo "$as_me: error: unrecognized option: $1
25959Try \`$0 --help' for more information." >&2;}
25960 { (exit 1); exit 1; }; } ;;
25961
25962 *) ac_config_targets="$ac_config_targets $1" ;;
25963
25964 esac
25965 shift
25966done
25967
25968ac_configure_extra_args=
25969
25970if $ac_cs_silent; then
25971 exec 6>/dev/null
25972 ac_configure_extra_args="$ac_configure_extra_args --silent"
25973fi
25974
25975_ACEOF
25976cat >>$CONFIG_STATUS <<_ACEOF
25977if \$ac_cs_recheck; then
25978 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25979 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25980fi
25981
25982_ACEOF
25983
25984
25985
25986
25987
25988cat >>$CONFIG_STATUS <<\_ACEOF
25989for ac_config_target in $ac_config_targets
25990do
25991 case "$ac_config_target" in
25992 # Handling of arguments.
25993 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25994 "buildpkg.sh" ) CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
25995 "opensshd.init" ) CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
25996 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
25997 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
25998 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
25999 "survey.sh" ) CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
26000 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26002echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26003 { (exit 1); exit 1; }; };;
26004 esac
26005done
26006
26007# If the user did not use the arguments to specify the items to instantiate,
26008# then the envvar interface is used. Set only those that are not.
26009# We use the long form for the default assignment because of an extremely
26010# bizarre bug on SunOS 4.1.3.
26011if $ac_need_defaults; then
26012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26014fi
26015
26016# Have a temporary directory for convenience. Make it in the build tree
26017# simply because there is no reason to put it here, and in addition,
26018# creating and moving files from /tmp can sometimes cause problems.
26019# Create a temporary directory, and hook for its removal unless debugging.
26020$debug ||
26021{
26022 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26023 trap '{ (exit 1); exit 1; }' 1 2 13 15
26024}
26025
26026# Create a (secure) tmp directory for tmp files.
26027
26028{
26029 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26030 test -n "$tmp" && test -d "$tmp"
26031} ||
26032{
26033 tmp=./confstat$$-$RANDOM
26034 (umask 077 && mkdir $tmp)
26035} ||
26036{
26037 echo "$me: cannot create a temporary directory in ." >&2
26038 { (exit 1); exit 1; }
26039}
26040
26041_ACEOF
26042
26043cat >>$CONFIG_STATUS <<_ACEOF
26044
26045#
26046# CONFIG_FILES section.
26047#
26048
26049# No need to generate the scripts if there are no CONFIG_FILES.
26050# This happens for instance when ./config.status config.h
26051if test -n "\$CONFIG_FILES"; then
26052 # Protect against being on the right side of a sed subst in config.status.
26053 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26054 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26055s,@SHELL@,$SHELL,;t t
26056s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26057s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26058s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26059s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26060s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26061s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26062s,@exec_prefix@,$exec_prefix,;t t
26063s,@prefix@,$prefix,;t t
26064s,@program_transform_name@,$program_transform_name,;t t
26065s,@bindir@,$bindir,;t t
26066s,@sbindir@,$sbindir,;t t
26067s,@libexecdir@,$libexecdir,;t t
26068s,@datadir@,$datadir,;t t
26069s,@sysconfdir@,$sysconfdir,;t t
26070s,@sharedstatedir@,$sharedstatedir,;t t
26071s,@localstatedir@,$localstatedir,;t t
26072s,@libdir@,$libdir,;t t
26073s,@includedir@,$includedir,;t t
26074s,@oldincludedir@,$oldincludedir,;t t
26075s,@infodir@,$infodir,;t t
26076s,@mandir@,$mandir,;t t
26077s,@build_alias@,$build_alias,;t t
26078s,@host_alias@,$host_alias,;t t
26079s,@target_alias@,$target_alias,;t t
26080s,@DEFS@,$DEFS,;t t
26081s,@ECHO_C@,$ECHO_C,;t t
26082s,@ECHO_N@,$ECHO_N,;t t
26083s,@ECHO_T@,$ECHO_T,;t t
26084s,@LIBS@,$LIBS,;t t
26085s,@CC@,$CC,;t t
26086s,@CFLAGS@,$CFLAGS,;t t
26087s,@LDFLAGS@,$LDFLAGS,;t t
26088s,@CPPFLAGS@,$CPPFLAGS,;t t
26089s,@ac_ct_CC@,$ac_ct_CC,;t t
26090s,@EXEEXT@,$EXEEXT,;t t
26091s,@OBJEXT@,$OBJEXT,;t t
26092s,@build@,$build,;t t
26093s,@build_cpu@,$build_cpu,;t t
26094s,@build_vendor@,$build_vendor,;t t
26095s,@build_os@,$build_os,;t t
26096s,@host@,$host,;t t
26097s,@host_cpu@,$host_cpu,;t t
26098s,@host_vendor@,$host_vendor,;t t
26099s,@host_os@,$host_os,;t t
26100s,@AWK@,$AWK,;t t
26101s,@CPP@,$CPP,;t t
26102s,@RANLIB@,$RANLIB,;t t
26103s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26104s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26105s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26106s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26107s,@AR@,$AR,;t t
26108s,@CAT@,$CAT,;t t
26109s,@KILL@,$KILL,;t t
26110s,@PERL@,$PERL,;t t
26111s,@SED@,$SED,;t t
26112s,@ENT@,$ENT,;t t
26113s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
26114s,@SH@,$SH,;t t
26115s,@TEST_SHELL@,$TEST_SHELL,;t t
26116s,@PATH_GROUPADD_PROG@,$PATH_GROUPADD_PROG,;t t
26117s,@PATH_USERADD_PROG@,$PATH_USERADD_PROG,;t t
26118s,@MAKE_PACKAGE_SUPPORTED@,$MAKE_PACKAGE_SUPPORTED,;t t
26119s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
26120s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
26121s,@LD@,$LD,;t t
26122s,@EGREP@,$EGREP,;t t
26123s,@LIBWRAP@,$LIBWRAP,;t t
26124s,@LIBEDIT@,$LIBEDIT,;t t
26125s,@LIBPAM@,$LIBPAM,;t t
26126s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
26127s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
26128s,@PROG_LS@,$PROG_LS,;t t
26129s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
26130s,@PROG_ARP@,$PROG_ARP,;t t
26131s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
26132s,@PROG_JSTAT@,$PROG_JSTAT,;t t
26133s,@PROG_PS@,$PROG_PS,;t t
26134s,@PROG_SAR@,$PROG_SAR,;t t
26135s,@PROG_W@,$PROG_W,;t t
26136s,@PROG_WHO@,$PROG_WHO,;t t
26137s,@PROG_LAST@,$PROG_LAST,;t t
26138s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
26139s,@PROG_DF@,$PROG_DF,;t t
26140s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
26141s,@PROG_UPTIME@,$PROG_UPTIME,;t t
26142s,@PROG_IPCS@,$PROG_IPCS,;t t
26143s,@PROG_TAIL@,$PROG_TAIL,;t t
26144s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
26145s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
26146s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
26147s,@xauth_path@,$xauth_path,;t t
26148s,@STRIP_OPT@,$STRIP_OPT,;t t
26149s,@XAUTH_PATH@,$XAUTH_PATH,;t t
26150s,@NROFF@,$NROFF,;t t
26151s,@MANTYPE@,$MANTYPE,;t t
26152s,@mansubdir@,$mansubdir,;t t
26153s,@user_path@,$user_path,;t t
26154s,@piddir@,$piddir,;t t
26155s,@LIBOBJS@,$LIBOBJS,;t t
26156s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26157CEOF
26158
26159_ACEOF
26160
26161 cat >>$CONFIG_STATUS <<\_ACEOF
26162 # Split the substitutions into bite-sized pieces for seds with
26163 # small command number limits, like on Digital OSF/1 and HP-UX.
26164 ac_max_sed_lines=48
26165 ac_sed_frag=1 # Number of current file.
26166 ac_beg=1 # First line for current file.
26167 ac_end=$ac_max_sed_lines # Line after last line for current file.
26168 ac_more_lines=:
26169 ac_sed_cmds=
26170 while $ac_more_lines; do
26171 if test $ac_beg -gt 1; then
26172 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26173 else
26174 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26175 fi
26176 if test ! -s $tmp/subs.frag; then
26177 ac_more_lines=false
26178 else
26179 # The purpose of the label and of the branching condition is to
26180 # speed up the sed processing (if there are no `@' at all, there
26181 # is no need to browse any of the substitutions).
26182 # These are the two extra sed commands mentioned above.
26183 (echo ':t
26184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26185 if test -z "$ac_sed_cmds"; then
26186 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26187 else
26188 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26189 fi
26190 ac_sed_frag=`expr $ac_sed_frag + 1`
26191 ac_beg=$ac_end
26192 ac_end=`expr $ac_end + $ac_max_sed_lines`
26193 fi
26194 done
26195 if test -z "$ac_sed_cmds"; then
26196 ac_sed_cmds=cat
26197 fi
26198fi # test -n "$CONFIG_FILES"
26199
26200_ACEOF
26201cat >>$CONFIG_STATUS <<\_ACEOF
26202for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26204 case $ac_file in
26205 - | *:- | *:-:* ) # input from stdin
26206 cat >$tmp/stdin
26207 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26209 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26210 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26211 * ) ac_file_in=$ac_file.in ;;
26212 esac
26213
26214 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26215 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26216$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26217 X"$ac_file" : 'X\(//\)[^/]' \| \
26218 X"$ac_file" : 'X\(//\)$' \| \
26219 X"$ac_file" : 'X\(/\)' \| \
26220 . : '\(.\)' 2>/dev/null ||
26221echo X"$ac_file" |
26222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26224 /^X\(\/\/\)$/{ s//\1/; q; }
26225 /^X\(\/\).*/{ s//\1/; q; }
26226 s/.*/./; q'`
26227 { if $as_mkdir_p; then
26228 mkdir -p "$ac_dir"
26229 else
26230 as_dir="$ac_dir"
26231 as_dirs=
26232 while test ! -d "$as_dir"; do
26233 as_dirs="$as_dir $as_dirs"
26234 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26236 X"$as_dir" : 'X\(//\)[^/]' \| \
26237 X"$as_dir" : 'X\(//\)$' \| \
26238 X"$as_dir" : 'X\(/\)' \| \
26239 . : '\(.\)' 2>/dev/null ||
26240echo X"$as_dir" |
26241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26243 /^X\(\/\/\)$/{ s//\1/; q; }
26244 /^X\(\/\).*/{ s//\1/; q; }
26245 s/.*/./; q'`
26246 done
26247 test ! -n "$as_dirs" || mkdir $as_dirs
26248 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26249echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26250 { (exit 1); exit 1; }; }; }
26251
26252 ac_builddir=.
26253
26254if test "$ac_dir" != .; then
26255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26256 # A "../" for each directory in $ac_dir_suffix.
26257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26258else
26259 ac_dir_suffix= ac_top_builddir=
26260fi
26261
26262case $srcdir in
26263 .) # No --srcdir option. We are building in place.
26264 ac_srcdir=.
26265 if test -z "$ac_top_builddir"; then
26266 ac_top_srcdir=.
26267 else
26268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26269 fi ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute path.
26271 ac_srcdir=$srcdir$ac_dir_suffix;
26272 ac_top_srcdir=$srcdir ;;
26273 *) # Relative path.
26274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26276esac
26277
26278# Do not use `cd foo && pwd` to compute absolute paths, because
26279# the directories may not exist.
26280case `pwd` in
26281.) ac_abs_builddir="$ac_dir";;
26282*)
26283 case "$ac_dir" in
26284 .) ac_abs_builddir=`pwd`;;
26285 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26286 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26287 esac;;
26288esac
26289case $ac_abs_builddir in
26290.) ac_abs_top_builddir=${ac_top_builddir}.;;
26291*)
26292 case ${ac_top_builddir}. in
26293 .) ac_abs_top_builddir=$ac_abs_builddir;;
26294 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26295 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26296 esac;;
26297esac
26298case $ac_abs_builddir in
26299.) ac_abs_srcdir=$ac_srcdir;;
26300*)
26301 case $ac_srcdir in
26302 .) ac_abs_srcdir=$ac_abs_builddir;;
26303 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26304 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26305 esac;;
26306esac
26307case $ac_abs_builddir in
26308.) ac_abs_top_srcdir=$ac_top_srcdir;;
26309*)
26310 case $ac_top_srcdir in
26311 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26312 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26313 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26314 esac;;
26315esac
26316
26317
26318 case $INSTALL in
26319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26320 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26321 esac
26322
26323 if test x"$ac_file" != x-; then
26324 { echo "$as_me:$LINENO: creating $ac_file" >&5
26325echo "$as_me: creating $ac_file" >&6;}
26326 rm -f "$ac_file"
26327 fi
26328 # Let's still pretend it is `configure' which instantiates (i.e., don't
26329 # use $as_me), people would be surprised to read:
26330 # /* config.h. Generated by config.status. */
26331 if test x"$ac_file" = x-; then
26332 configure_input=
26333 else
26334 configure_input="$ac_file. "
26335 fi
26336 configure_input=$configure_input"Generated from `echo $ac_file_in |
26337 sed 's,.*/,,'` by configure."
26338
26339 # First look for the input files in the build tree, otherwise in the
26340 # src tree.
26341 ac_file_inputs=`IFS=:
26342 for f in $ac_file_in; do
26343 case $f in
26344 -) echo $tmp/stdin ;;
26345 [\\/$]*)
26346 # Absolute (can't be DOS-style, as IFS=:)
26347 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26348echo "$as_me: error: cannot find input file: $f" >&2;}
26349 { (exit 1); exit 1; }; }
26350 echo "$f";;
26351 *) # Relative
26352 if test -f "$f"; then
26353 # Build tree
26354 echo "$f"
26355 elif test -f "$srcdir/$f"; then
26356 # Source tree
26357 echo "$srcdir/$f"
26358 else
26359 # /dev/null tree
26360 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26361echo "$as_me: error: cannot find input file: $f" >&2;}
26362 { (exit 1); exit 1; }; }
26363 fi;;
26364 esac
26365 done` || { (exit 1); exit 1; }
26366_ACEOF
26367cat >>$CONFIG_STATUS <<_ACEOF
26368 sed "$ac_vpsub
26369$extrasub
26370_ACEOF
26371cat >>$CONFIG_STATUS <<\_ACEOF
26372:t
26373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26374s,@configure_input@,$configure_input,;t t
26375s,@srcdir@,$ac_srcdir,;t t
26376s,@abs_srcdir@,$ac_abs_srcdir,;t t
26377s,@top_srcdir@,$ac_top_srcdir,;t t
26378s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26379s,@builddir@,$ac_builddir,;t t
26380s,@abs_builddir@,$ac_abs_builddir,;t t
26381s,@top_builddir@,$ac_top_builddir,;t t
26382s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26383s,@INSTALL@,$ac_INSTALL,;t t
26384" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26385 rm -f $tmp/stdin
26386 if test x"$ac_file" != x-; then
26387 mv $tmp/out $ac_file
26388 else
26389 cat $tmp/out
26390 rm -f $tmp/out
26391 fi
26392
26393done
26394_ACEOF
26395cat >>$CONFIG_STATUS <<\_ACEOF
26396
26397#
26398# CONFIG_HEADER section.
26399#
26400
26401# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26402# NAME is the cpp macro being defined and VALUE is the value it is being given.
26403#
26404# ac_d sets the value in "#define NAME VALUE" lines.
26405ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26406ac_dB='[ ].*$,\1#\2'
26407ac_dC=' '
26408ac_dD=',;t'
26409# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26410ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26411ac_uB='$,\1#\2define\3'
26412ac_uC=' '
26413ac_uD=',;t'
26414
26415for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26417 case $ac_file in
26418 - | *:- | *:-:* ) # input from stdin
26419 cat >$tmp/stdin
26420 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26422 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26424 * ) ac_file_in=$ac_file.in ;;
26425 esac
26426
26427 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26428echo "$as_me: creating $ac_file" >&6;}
26429
26430 # First look for the input files in the build tree, otherwise in the
26431 # src tree.
26432 ac_file_inputs=`IFS=:
26433 for f in $ac_file_in; do
26434 case $f in
26435 -) echo $tmp/stdin ;;
26436 [\\/$]*)
26437 # Absolute (can't be DOS-style, as IFS=:)
26438 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26439echo "$as_me: error: cannot find input file: $f" >&2;}
26440 { (exit 1); exit 1; }; }
26441 # Do quote $f, to prevent DOS paths from being IFS'd.
26442 echo "$f";;
26443 *) # Relative
26444 if test -f "$f"; then
26445 # Build tree
26446 echo "$f"
26447 elif test -f "$srcdir/$f"; then
26448 # Source tree
26449 echo "$srcdir/$f"
26450 else
26451 # /dev/null tree
26452 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26453echo "$as_me: error: cannot find input file: $f" >&2;}
26454 { (exit 1); exit 1; }; }
26455 fi;;
26456 esac
26457 done` || { (exit 1); exit 1; }
26458 # Remove the trailing spaces.
26459 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26460
26461_ACEOF
26462
26463# Transform confdefs.h into two sed scripts, `conftest.defines' and
26464# `conftest.undefs', that substitutes the proper values into
26465# config.h.in to produce config.h. The first handles `#define'
26466# templates, and the second `#undef' templates.
26467# And first: Protect against being on the right side of a sed subst in
26468# config.status. Protect against being in an unquoted here document
26469# in config.status.
26470rm -f conftest.defines conftest.undefs
26471# Using a here document instead of a string reduces the quoting nightmare.
26472# Putting comments in sed scripts is not portable.
26473#
26474# `end' is used to avoid that the second main sed command (meant for
26475# 0-ary CPP macros) applies to n-ary macro definitions.
26476# See the Autoconf documentation for `clear'.
26477cat >confdef2sed.sed <<\_ACEOF
26478s/[\\&,]/\\&/g
26479s,[\\$`],\\&,g
26480t clear
26481: clear
26482s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26483t end
26484s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26485: end
26486_ACEOF
26487# If some macros were called several times there might be several times
26488# the same #defines, which is useless. Nevertheless, we may not want to
26489# sort them, since we want the *last* AC-DEFINE to be honored.
26490uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26491sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26492rm -f confdef2sed.sed
26493
26494# This sed command replaces #undef with comments. This is necessary, for
26495# example, in the case of _POSIX_SOURCE, which is predefined and required
26496# on some systems where configure will not decide to define it.
26497cat >>conftest.undefs <<\_ACEOF
26498s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26499_ACEOF
26500
26501# Break up conftest.defines because some shells have a limit on the size
26502# of here documents, and old seds have small limits too (100 cmds).
26503echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26504echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26505echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26506echo ' :' >>$CONFIG_STATUS
26507rm -f conftest.tail
26508while grep . conftest.defines >/dev/null
26509do
26510 # Write a limited-size here document to $tmp/defines.sed.
26511 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26512 # Speed up: don't consider the non `#define' lines.
26513 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26514 # Work around the forget-to-reset-the-flag bug.
26515 echo 't clr' >>$CONFIG_STATUS
26516 echo ': clr' >>$CONFIG_STATUS
26517 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26518 echo 'CEOF
26519 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26520 rm -f $tmp/in
26521 mv $tmp/out $tmp/in
26522' >>$CONFIG_STATUS
26523 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26524 rm -f conftest.defines
26525 mv conftest.tail conftest.defines
26526done
26527rm -f conftest.defines
26528echo ' fi # grep' >>$CONFIG_STATUS
26529echo >>$CONFIG_STATUS
26530
26531# Break up conftest.undefs because some shells have a limit on the size
26532# of here documents, and old seds have small limits too (100 cmds).
26533echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26534rm -f conftest.tail
26535while grep . conftest.undefs >/dev/null
26536do
26537 # Write a limited-size here document to $tmp/undefs.sed.
26538 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26539 # Speed up: don't consider the non `#undef'
26540 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26541 # Work around the forget-to-reset-the-flag bug.
26542 echo 't clr' >>$CONFIG_STATUS
26543 echo ': clr' >>$CONFIG_STATUS
26544 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26545 echo 'CEOF
26546 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26547 rm -f $tmp/in
26548 mv $tmp/out $tmp/in
26549' >>$CONFIG_STATUS
26550 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26551 rm -f conftest.undefs
26552 mv conftest.tail conftest.undefs
26553done
26554rm -f conftest.undefs
26555
26556cat >>$CONFIG_STATUS <<\_ACEOF
26557 # Let's still pretend it is `configure' which instantiates (i.e., don't
26558 # use $as_me), people would be surprised to read:
26559 # /* config.h. Generated by config.status. */
26560 if test x"$ac_file" = x-; then
26561 echo "/* Generated by configure. */" >$tmp/config.h
26562 else
26563 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26564 fi
26565 cat $tmp/in >>$tmp/config.h
26566 rm -f $tmp/in
26567 if test x"$ac_file" != x-; then
26568 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26569 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26570echo "$as_me: $ac_file is unchanged" >&6;}
26571 else
26572 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26573$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26574 X"$ac_file" : 'X\(//\)[^/]' \| \
26575 X"$ac_file" : 'X\(//\)$' \| \
26576 X"$ac_file" : 'X\(/\)' \| \
26577 . : '\(.\)' 2>/dev/null ||
26578echo X"$ac_file" |
26579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26581 /^X\(\/\/\)$/{ s//\1/; q; }
26582 /^X\(\/\).*/{ s//\1/; q; }
26583 s/.*/./; q'`
26584 { if $as_mkdir_p; then
26585 mkdir -p "$ac_dir"
26586 else
26587 as_dir="$ac_dir"
26588 as_dirs=
26589 while test ! -d "$as_dir"; do
26590 as_dirs="$as_dir $as_dirs"
26591 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26592$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26593 X"$as_dir" : 'X\(//\)[^/]' \| \
26594 X"$as_dir" : 'X\(//\)$' \| \
26595 X"$as_dir" : 'X\(/\)' \| \
26596 . : '\(.\)' 2>/dev/null ||
26597echo X"$as_dir" |
26598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26600 /^X\(\/\/\)$/{ s//\1/; q; }
26601 /^X\(\/\).*/{ s//\1/; q; }
26602 s/.*/./; q'`
26603 done
26604 test ! -n "$as_dirs" || mkdir $as_dirs
26605 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26606echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26607 { (exit 1); exit 1; }; }; }
26608
26609 rm -f $ac_file
26610 mv $tmp/config.h $ac_file
26611 fi
26612 else
26613 cat $tmp/config.h
26614 rm -f $tmp/config.h
26615 fi
26616done
26617_ACEOF
26618
26619cat >>$CONFIG_STATUS <<\_ACEOF
26620
26621{ (exit 0); exit 0; }
26622_ACEOF
26623chmod +x $CONFIG_STATUS
26624ac_clean_files=$ac_clean_files_save
26625
26626
26627# configure is writing to config.log, and then calls config.status.
26628# config.status does its own redirection, appending to config.log.
26629# Unfortunately, on DOS this fails, as config.log is still kept open
26630# by configure, so config.status won't be able to write to it; its
26631# output is simply discarded. So we exec the FD to /dev/null,
26632# effectively closing config.log, so it can be properly (re)opened and
26633# appended to by config.status. When coming back to configure, we
26634# need to make the FD available again.
26635if test "$no_create" != yes; then
26636 ac_cs_success=:
26637 ac_config_status_args=
26638 test "$silent" = yes &&
26639 ac_config_status_args="$ac_config_status_args --quiet"
26640 exec 5>/dev/null
26641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26642 exec 5>>config.log
26643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26644 # would make configure fail if this is the last instruction.
26645 $ac_cs_success || { (exit 1); exit 1; }
26646fi
26647
26648
26649# Print summary of options
26650
26651# Someone please show me a better way :)
26652A=`eval echo ${prefix}` ; A=`eval echo ${A}`
26653B=`eval echo ${bindir}` ; B=`eval echo ${B}`
26654C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
26655D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
26656E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
26657F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
26658G=`eval echo ${piddir}` ; G=`eval echo ${G}`
26659H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
26660I=`eval echo ${user_path}` ; I=`eval echo ${I}`
26661J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
26662
26663echo ""
26664echo "OpenSSH has been configured with the following options:"
26665echo " User binaries: $B"
26666echo " System binaries: $C"
26667echo " Configuration files: $D"
26668echo " Askpass program: $E"
26669echo " Manual pages: $F"
26670echo " PID file: $G"
26671echo " Privilege separation chroot path: $H"
26672if test "x$external_path_file" = "x/etc/login.conf" ; then
26673echo " At runtime, sshd will use the path defined in $external_path_file"
26674echo " Make sure the path to scp is present, otherwise scp will not work"
26675else
26676echo " sshd default user PATH: $I"
26677 if test ! -z "$external_path_file"; then
26678echo " (If PATH is set in $external_path_file it will be used instead. If"
26679echo " used, ensure the path to scp is present, otherwise scp will not work.)"
26680 fi
26681fi
26682if test ! -z "$superuser_path" ; then
26683echo " sshd superuser user PATH: $J"
26684fi
26685echo " Manpage format: $MANTYPE"
26686echo " PAM support: $PAM_MSG"
26687echo " KerberosV support: $KRB5_MSG"
26688echo " Smartcard support: $SCARD_MSG"
26689echo " S/KEY support: $SKEY_MSG"
26690echo " TCP Wrappers support: $TCPW_MSG"
26691echo " MD5 password support: $MD5_MSG"
26692echo " libedit support: $LIBEDIT_MSG"
26693echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
26694echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
26695echo " BSD Auth support: $BSD_AUTH_MSG"
26696echo " Random number source: $RAND_MSG"
26697if test ! -z "$USE_RAND_HELPER" ; then
26698echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
26699fi
26700
26701echo ""
26702
26703echo " Host: ${host}"
26704echo " Compiler: ${CC}"
26705echo " Compiler flags: ${CFLAGS}"
26706echo "Preprocessor flags: ${CPPFLAGS}"
26707echo " Linker flags: ${LDFLAGS}"
26708echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
26709
26710echo ""
26711
26712if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
26713 echo "SVR4 style packages are supported with \"make package\""
26714 echo ""
26715fi
26716
26717if test "x$PAM_MSG" = "xyes" ; then
26718 echo "PAM is enabled. You may need to install a PAM control file "
26719 echo "for sshd, otherwise password authentication may fail. "
26720 echo "Example PAM control files can be found in the contrib/ "
26721 echo "subdirectory"
26722 echo ""
26723fi
26724
26725if test ! -z "$RAND_HELPER_CMDHASH" ; then
26726 echo "WARNING: you are using the builtin random number collection "
26727 echo "service. Please read WARNING.RNG and request that your OS "
26728 echo "vendor includes kernel-based random number collection in "
26729 echo "future versions of your OS."
26730 echo ""
26731fi
26732
26733if test ! -z "$NO_PEERCHECK" ; then
26734 echo "WARNING: the operating system that you are using does not "
26735 echo "appear to support either the getpeereid() API nor the "
26736 echo "SO_PEERCRED getsockopt() option. These facilities are used to "
26737 echo "enforce security checks to prevent unauthorised connections to "
26738 echo "ssh-agent. Their absence increases the risk that a malicious "
26739 echo "user can connect to your agent. "
26740 echo ""
26741fi
26742
26743if test "$AUDIT_MODULE" = "bsm" ; then
26744 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
26745 echo "See the Solaris section in README.platform for details."
26746fi