summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-05-01 11:28:49 +0000
committerColin Watson <cjwatson@debian.org>2004-05-01 11:28:49 +0000
commit16f1d21ea191deaaeeba719d01c0ad82aa044653 (patch)
tree0e52caec9e5c0e1ad3494e62bd1bc1b776a738a0 /configure
parentbd5f26f25dbbb93a9f9d3850c200a17a753ceee1 (diff)
parentf5bda272678ec6dccaa5f29379cf60cb855018e8 (diff)
Import OpenSSH 3.8.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18298
1 files changed, 18298 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..70fd4feaa
--- /dev/null
+++ b/configure
@@ -0,0 +1,18298 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
97cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="ssh.c"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
144
145# Initialize some variables set by options.
146ac_init_help=
147ac_init_version=false
148# The variables have the same names as the options, with
149# dashes changed to underlines.
150cache_file=/dev/null
151exec_prefix=NONE
152no_create=
153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
161verbose=
162x_includes=NONE
163x_libraries=NONE
164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
182
183# Identity of this package.
184PACKAGE_NAME=
185PACKAGE_TARNAME=
186PACKAGE_VERSION=
187PACKAGE_STRING=
188PACKAGE_BUGREPORT=
189
190ac_prev=
191for ac_option
192do
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
204 case $ac_option in
205
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
210
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
225
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
231
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
240
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
273
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
278
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
316
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
337
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
394
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
404
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
411
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
422
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
435
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
462
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
466 ;;
467
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
478 *)
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484 ;;
485
486 esac
487done
488
489if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
493fi
494
495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
497do
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504done
505
506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
509do
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516done
517
518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
523
524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551else
552 ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
561 fi
562fi
563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656
657System types:
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
660EOF
661fi
662
663if test -n "$ac_init_help"; then
664
665 cat <<\EOF
666
667Optional Features:
668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
670 --disable-largefile omit support for large files
671 --disable-strip Disable calling strip(1) on install
672 --disable-etc-default-login Disable using PATH from /etc/default/login no
673 --disable-lastlog disable use of lastlog even if detected no
674 --disable-utmp disable use of utmp even if detected no
675 --disable-utmpx disable use of utmpx even if detected no
676 --disable-wtmp disable use of wtmp even if detected no
677 --disable-wtmpx disable use of wtmpx even if detected no
678 --disable-libutil disable use of libutil (login() etc.) no
679 --disable-pututline disable use of pututline() etc. (uwtmp) no
680 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
681
682Optional Packages:
683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
685 --without-rpath Disable auto-added -R linker paths
686 --with-osfsia Enable Digital Unix SIA
687 --with-cflags Specify additional flags to pass to compiler
688 --with-cppflags Specify additional flags to pass to preprocessor
689 --with-ldflags Specify additional flags to pass to linker
690 --with-libs Specify additional libraries to link with
691 --with-zlib=PATH Use zlib in PATH
692 --without-zlib-version-check Disable zlib version check
693 --with-skey[=PATH] Enable S/Key support
694 (optionally in PATH)
695 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
696 (optionally in PATH)
697 --with-pam Enable PAM support
698 --with-ssl-dir=PATH Specify path to OpenSSL installation
699 --with-rand-helper Use subprocess to gather strong randomness
700 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
701 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
702 --with-entropy-timeout Specify entropy gathering command timeout (msec)
703 --with-privsep-user=user Specify non-privileged user for privilege separation
704 --with-sectok Enable smartcard support using libsectok
705 --with-opensc=PFX Enable smartcard support using OpenSC
706 --with-kerberos5=PATH Enable Kerberos 5 support
707 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
708 --with-xauth=PATH Specify path to xauth program
709 --with-mantype=man|cat|doc Set man page type
710 --with-md5-passwords Enable use of MD5 passwords
711 --without-shadow Disable shadow password support
712 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
713 --with-default-path= Specify default \$PATH environment for server
714 --with-superuser-path= Specify different path for super-user
715 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
716 --with-bsd-auth Enable BSD auth support
717 --with-pid-dir=PATH Specify location of ssh.pid file
718 --with-lastlog=FILE|DIR specify lastlog location common locations
719
720Some influential environment variables:
721 CC C compiler command
722 CFLAGS C compiler flags
723 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
724 nonstandard directory <lib dir>
725 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
726 headers in a nonstandard directory <include dir>
727 CPP C preprocessor
728
729Use these variables to override the choices made by `configure' or to help
730it to find libraries and programs with nonstandard names/locations.
731
732EOF
733fi
734
735if test "$ac_init_help" = "recursive"; then
736 # If there are subdirs, report their specific --help.
737 ac_popdir=`pwd`
738 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
739 cd $ac_subdir
740 # A "../" for each directory in /$ac_subdir.
741 ac_dots=`echo $ac_subdir |
742 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
743
744 case $srcdir in
745 .) # No --srcdir option. We are building in place.
746 ac_sub_srcdir=$srcdir ;;
747 [\\/]* | ?:[\\/]* ) # Absolute path.
748 ac_sub_srcdir=$srcdir/$ac_subdir ;;
749 *) # Relative path.
750 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
751 esac
752
753 # Check for guested configure; otherwise get Cygnus style configure.
754 if test -f $ac_sub_srcdir/configure.gnu; then
755 echo
756 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
757 elif test -f $ac_sub_srcdir/configure; then
758 echo
759 $SHELL $ac_sub_srcdir/configure --help=recursive
760 elif test -f $ac_sub_srcdir/configure.ac ||
761 test -f $ac_sub_srcdir/configure.in; then
762 echo
763 $ac_configure --help
764 else
765 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
766 fi
767 cd $ac_popdir
768 done
769fi
770
771test -n "$ac_init_help" && exit 0
772if $ac_init_version; then
773 cat <<\EOF
774
775Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
776Free Software Foundation, Inc.
777This configure script is free software; the Free Software Foundation
778gives unlimited permission to copy, distribute and modify it.
779EOF
780 exit 0
781fi
782exec 5>config.log
783cat >&5 <<EOF
784This file contains any messages produced by compilers while
785running configure, to aid debugging if configure makes a mistake.
786
787It was created by $as_me, which was
788generated by GNU Autoconf 2.52. Invocation command line was
789
790 $ $0 $@
791
792EOF
793{
794cat <<_ASUNAME
795## ---------- ##
796## Platform. ##
797## ---------- ##
798
799hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
800uname -m = `(uname -m) 2>/dev/null || echo unknown`
801uname -r = `(uname -r) 2>/dev/null || echo unknown`
802uname -s = `(uname -s) 2>/dev/null || echo unknown`
803uname -v = `(uname -v) 2>/dev/null || echo unknown`
804
805/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
806/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
807
808/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
809/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
810/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
811hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
812/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
813/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
814/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
815
816PATH = $PATH
817
818_ASUNAME
819} >&5
820
821cat >&5 <<EOF
822## ------------ ##
823## Core tests. ##
824## ------------ ##
825
826EOF
827
828# Keep a trace of the command line.
829# Strip out --no-create and --no-recursion so they do not pile up.
830# Also quote any args containing shell meta-characters.
831ac_configure_args=
832ac_sep=
833for ac_arg
834do
835 case $ac_arg in
836 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
837 | --no-cr | --no-c) ;;
838 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
839 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
840 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
841 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
842 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
843 ac_sep=" " ;;
844 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
845 ac_sep=" " ;;
846 esac
847 # Get rid of the leading space.
848done
849
850# When interrupted or exit'd, cleanup temporary files, and complete
851# config.log. We remove comments because anyway the quotes in there
852# would cause problems or look ugly.
853trap 'exit_status=$?
854 # Save into config.log some information that might help in debugging.
855 echo >&5
856 echo "## ----------------- ##" >&5
857 echo "## Cache variables. ##" >&5
858 echo "## ----------------- ##" >&5
859 echo >&5
860 # The following way of writing the cache mishandles newlines in values,
861{
862 (set) 2>&1 |
863 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
864 *ac_space=\ *)
865 sed -n \
866 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
868 ;;
869 *)
870 sed -n \
871 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
872 ;;
873 esac;
874} >&5
875 sed "/^$/d" confdefs.h >conftest.log
876 if test -s conftest.log; then
877 echo >&5
878 echo "## ------------ ##" >&5
879 echo "## confdefs.h. ##" >&5
880 echo "## ------------ ##" >&5
881 echo >&5
882 cat conftest.log >&5
883 fi
884 (echo; echo) >&5
885 test "$ac_signal" != 0 &&
886 echo "$as_me: caught signal $ac_signal" >&5
887 echo "$as_me: exit $exit_status" >&5
888 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
889 exit $exit_status
890 ' 0
891for ac_signal in 1 2 13 15; do
892 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
893done
894ac_signal=0
895
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo >confdefs.h
900
901# Let the site file select an alternate cache file if it wants to.
902# Prefer explicitly selected file to automatically selected ones.
903if test -z "$CONFIG_SITE"; then
904 if test "x$prefix" != xNONE; then
905 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
906 else
907 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
908 fi
909fi
910for ac_site_file in $CONFIG_SITE; do
911 if test -r "$ac_site_file"; then
912 { echo "$as_me:912: loading site script $ac_site_file" >&5
913echo "$as_me: loading site script $ac_site_file" >&6;}
914 cat "$ac_site_file" >&5
915 . "$ac_site_file"
916 fi
917done
918
919if test -r "$cache_file"; then
920 # Some versions of bash will fail to source /dev/null (special
921 # files actually), so we avoid doing that.
922 if test -f "$cache_file"; then
923 { echo "$as_me:923: loading cache $cache_file" >&5
924echo "$as_me: loading cache $cache_file" >&6;}
925 case $cache_file in
926 [\\/]* | ?:[\\/]* ) . $cache_file;;
927 *) . ./$cache_file;;
928 esac
929 fi
930else
931 { echo "$as_me:931: creating cache $cache_file" >&5
932echo "$as_me: creating cache $cache_file" >&6;}
933 >$cache_file
934fi
935
936# Check that the precious variables saved in the cache have kept the same
937# value.
938ac_cache_corrupted=false
939for ac_var in `(set) 2>&1 |
940 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
942 eval ac_new_set=\$ac_env_${ac_var}_set
943 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
944 eval ac_new_val="\$ac_env_${ac_var}_value"
945 case $ac_old_set,$ac_new_set in
946 set,)
947 { echo "$as_me:947: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
948echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
949 ac_cache_corrupted=: ;;
950 ,set)
951 { echo "$as_me:951: error: \`$ac_var' was not set in the previous run" >&5
952echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
953 ac_cache_corrupted=: ;;
954 ,);;
955 *)
956 if test "x$ac_old_val" != "x$ac_new_val"; then
957 { echo "$as_me:957: error: \`$ac_var' has changed since the previous run:" >&5
958echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
959 { echo "$as_me:959: former value: $ac_old_val" >&5
960echo "$as_me: former value: $ac_old_val" >&2;}
961 { echo "$as_me:961: current value: $ac_new_val" >&5
962echo "$as_me: current value: $ac_new_val" >&2;}
963 ac_cache_corrupted=:
964 fi;;
965 esac
966 # Pass precious variables to config.status. It doesn't matter if
967 # we pass some twice (in addition to the command line arguments).
968 if test "$ac_new_set" = set; then
969 case $ac_new_val in
970 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
971 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
972 ac_configure_args="$ac_configure_args '$ac_arg'"
973 ;;
974 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
975 ;;
976 esac
977 fi
978done
979if $ac_cache_corrupted; then
980 { echo "$as_me:980: error: changes in the environment can compromise the build" >&5
981echo "$as_me: error: changes in the environment can compromise the build" >&2;}
982 { { echo "$as_me:982: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
983echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
984 { (exit 1); exit 1; }; }
985fi
986
987ac_ext=c
988ac_cpp='$CPP $CPPFLAGS'
989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
991ac_compiler_gnu=$ac_cv_c_compiler_gnu
992
993case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
994 *c*,-n*) ECHO_N= ECHO_C='
995' ECHO_T=' ' ;;
996 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
997 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
998esac
999echo "#! $SHELL" >conftest.sh
1000echo "exit 0" >>conftest.sh
1001chmod +x conftest.sh
1002if { (echo "$as_me:1002: PATH=\".;.\"; conftest.sh") >&5
1003 (PATH=".;."; conftest.sh) 2>&5
1004 ac_status=$?
1005 echo "$as_me:1005: \$? = $ac_status" >&5
1006 (exit $ac_status); }; then
1007 ac_path_separator=';'
1008else
1009 ac_path_separator=:
1010fi
1011PATH_SEPARATOR="$ac_path_separator"
1012rm -f conftest.sh
1013
1014ac_config_headers="$ac_config_headers config.h"
1015
1016ac_ext=c
1017ac_cpp='$CPP $CPPFLAGS'
1018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1020ac_compiler_gnu=$ac_cv_c_compiler_gnu
1021if test -n "$ac_tool_prefix"; then
1022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1023set dummy ${ac_tool_prefix}gcc; ac_word=$2
1024echo "$as_me:1024: checking for $ac_word" >&5
1025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1026if test "${ac_cv_prog_CC+set}" = set; then
1027 echo $ECHO_N "(cached) $ECHO_C" >&6
1028else
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1031else
1032 ac_save_IFS=$IFS; IFS=$ac_path_separator
1033ac_dummy="$PATH"
1034for ac_dir in $ac_dummy; do
1035 IFS=$ac_save_IFS
1036 test -z "$ac_dir" && ac_dir=.
1037 $as_executable_p "$ac_dir/$ac_word" || continue
1038ac_cv_prog_CC="${ac_tool_prefix}gcc"
1039echo "$as_me:1039: found $ac_dir/$ac_word" >&5
1040break
1041done
1042
1043fi
1044fi
1045CC=$ac_cv_prog_CC
1046if test -n "$CC"; then
1047 echo "$as_me:1047: result: $CC" >&5
1048echo "${ECHO_T}$CC" >&6
1049else
1050 echo "$as_me:1050: result: no" >&5
1051echo "${ECHO_T}no" >&6
1052fi
1053
1054fi
1055if test -z "$ac_cv_prog_CC"; then
1056 ac_ct_CC=$CC
1057 # Extract the first word of "gcc", so it can be a program name with args.
1058set dummy gcc; ac_word=$2
1059echo "$as_me:1059: checking for $ac_word" >&5
1060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1062 echo $ECHO_N "(cached) $ECHO_C" >&6
1063else
1064 if test -n "$ac_ct_CC"; then
1065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1066else
1067 ac_save_IFS=$IFS; IFS=$ac_path_separator
1068ac_dummy="$PATH"
1069for ac_dir in $ac_dummy; do
1070 IFS=$ac_save_IFS
1071 test -z "$ac_dir" && ac_dir=.
1072 $as_executable_p "$ac_dir/$ac_word" || continue
1073ac_cv_prog_ac_ct_CC="gcc"
1074echo "$as_me:1074: found $ac_dir/$ac_word" >&5
1075break
1076done
1077
1078fi
1079fi
1080ac_ct_CC=$ac_cv_prog_ac_ct_CC
1081if test -n "$ac_ct_CC"; then
1082 echo "$as_me:1082: result: $ac_ct_CC" >&5
1083echo "${ECHO_T}$ac_ct_CC" >&6
1084else
1085 echo "$as_me:1085: result: no" >&5
1086echo "${ECHO_T}no" >&6
1087fi
1088
1089 CC=$ac_ct_CC
1090else
1091 CC="$ac_cv_prog_CC"
1092fi
1093
1094if test -z "$CC"; then
1095 if test -n "$ac_tool_prefix"; then
1096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1097set dummy ${ac_tool_prefix}cc; ac_word=$2
1098echo "$as_me:1098: checking for $ac_word" >&5
1099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1100if test "${ac_cv_prog_CC+set}" = set; then
1101 echo $ECHO_N "(cached) $ECHO_C" >&6
1102else
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC="$CC" # Let the user override the test.
1105else
1106 ac_save_IFS=$IFS; IFS=$ac_path_separator
1107ac_dummy="$PATH"
1108for ac_dir in $ac_dummy; do
1109 IFS=$ac_save_IFS
1110 test -z "$ac_dir" && ac_dir=.
1111 $as_executable_p "$ac_dir/$ac_word" || continue
1112ac_cv_prog_CC="${ac_tool_prefix}cc"
1113echo "$as_me:1113: found $ac_dir/$ac_word" >&5
1114break
1115done
1116
1117fi
1118fi
1119CC=$ac_cv_prog_CC
1120if test -n "$CC"; then
1121 echo "$as_me:1121: result: $CC" >&5
1122echo "${ECHO_T}$CC" >&6
1123else
1124 echo "$as_me:1124: result: no" >&5
1125echo "${ECHO_T}no" >&6
1126fi
1127
1128fi
1129if test -z "$ac_cv_prog_CC"; then
1130 ac_ct_CC=$CC
1131 # Extract the first word of "cc", so it can be a program name with args.
1132set dummy cc; ac_word=$2
1133echo "$as_me:1133: checking for $ac_word" >&5
1134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1136 echo $ECHO_N "(cached) $ECHO_C" >&6
1137else
1138 if test -n "$ac_ct_CC"; then
1139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1140else
1141 ac_save_IFS=$IFS; IFS=$ac_path_separator
1142ac_dummy="$PATH"
1143for ac_dir in $ac_dummy; do
1144 IFS=$ac_save_IFS
1145 test -z "$ac_dir" && ac_dir=.
1146 $as_executable_p "$ac_dir/$ac_word" || continue
1147ac_cv_prog_ac_ct_CC="cc"
1148echo "$as_me:1148: found $ac_dir/$ac_word" >&5
1149break
1150done
1151
1152fi
1153fi
1154ac_ct_CC=$ac_cv_prog_ac_ct_CC
1155if test -n "$ac_ct_CC"; then
1156 echo "$as_me:1156: result: $ac_ct_CC" >&5
1157echo "${ECHO_T}$ac_ct_CC" >&6
1158else
1159 echo "$as_me:1159: result: no" >&5
1160echo "${ECHO_T}no" >&6
1161fi
1162
1163 CC=$ac_ct_CC
1164else
1165 CC="$ac_cv_prog_CC"
1166fi
1167
1168fi
1169if test -z "$CC"; then
1170 # Extract the first word of "cc", so it can be a program name with args.
1171set dummy cc; ac_word=$2
1172echo "$as_me:1172: checking for $ac_word" >&5
1173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1174if test "${ac_cv_prog_CC+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1176else
1177 if test -n "$CC"; then
1178 ac_cv_prog_CC="$CC" # Let the user override the test.
1179else
1180 ac_prog_rejected=no
1181 ac_save_IFS=$IFS; IFS=$ac_path_separator
1182ac_dummy="$PATH"
1183for ac_dir in $ac_dummy; do
1184 IFS=$ac_save_IFS
1185 test -z "$ac_dir" && ac_dir=.
1186 $as_executable_p "$ac_dir/$ac_word" || continue
1187if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1188 ac_prog_rejected=yes
1189 continue
1190fi
1191ac_cv_prog_CC="cc"
1192echo "$as_me:1192: found $ac_dir/$ac_word" >&5
1193break
1194done
1195
1196if test $ac_prog_rejected = yes; then
1197 # We found a bogon in the path, so make sure we never use it.
1198 set dummy $ac_cv_prog_CC
1199 shift
1200 if test $# != 0; then
1201 # We chose a different compiler from the bogus one.
1202 # However, it has the same basename, so the bogon will be chosen
1203 # first if we set CC to just the basename; use the full file name.
1204 shift
1205 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1206 shift
1207 ac_cv_prog_CC="$@"
1208 fi
1209fi
1210fi
1211fi
1212CC=$ac_cv_prog_CC
1213if test -n "$CC"; then
1214 echo "$as_me:1214: result: $CC" >&5
1215echo "${ECHO_T}$CC" >&6
1216else
1217 echo "$as_me:1217: result: no" >&5
1218echo "${ECHO_T}no" >&6
1219fi
1220
1221fi
1222if test -z "$CC"; then
1223 if test -n "$ac_tool_prefix"; then
1224 for ac_prog in cl
1225 do
1226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1228echo "$as_me:1228: checking for $ac_word" >&5
1229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1230if test "${ac_cv_prog_CC+set}" = set; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1232else
1233 if test -n "$CC"; then
1234 ac_cv_prog_CC="$CC" # Let the user override the test.
1235else
1236 ac_save_IFS=$IFS; IFS=$ac_path_separator
1237ac_dummy="$PATH"
1238for ac_dir in $ac_dummy; do
1239 IFS=$ac_save_IFS
1240 test -z "$ac_dir" && ac_dir=.
1241 $as_executable_p "$ac_dir/$ac_word" || continue
1242ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1243echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1244break
1245done
1246
1247fi
1248fi
1249CC=$ac_cv_prog_CC
1250if test -n "$CC"; then
1251 echo "$as_me:1251: result: $CC" >&5
1252echo "${ECHO_T}$CC" >&6
1253else
1254 echo "$as_me:1254: result: no" >&5
1255echo "${ECHO_T}no" >&6
1256fi
1257
1258 test -n "$CC" && break
1259 done
1260fi
1261if test -z "$CC"; then
1262 ac_ct_CC=$CC
1263 for ac_prog in cl
1264do
1265 # Extract the first word of "$ac_prog", so it can be a program name with args.
1266set dummy $ac_prog; ac_word=$2
1267echo "$as_me:1267: checking for $ac_word" >&5
1268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1270 echo $ECHO_N "(cached) $ECHO_C" >&6
1271else
1272 if test -n "$ac_ct_CC"; then
1273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1274else
1275 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276ac_dummy="$PATH"
1277for ac_dir in $ac_dummy; do
1278 IFS=$ac_save_IFS
1279 test -z "$ac_dir" && ac_dir=.
1280 $as_executable_p "$ac_dir/$ac_word" || continue
1281ac_cv_prog_ac_ct_CC="$ac_prog"
1282echo "$as_me:1282: found $ac_dir/$ac_word" >&5
1283break
1284done
1285
1286fi
1287fi
1288ac_ct_CC=$ac_cv_prog_ac_ct_CC
1289if test -n "$ac_ct_CC"; then
1290 echo "$as_me:1290: result: $ac_ct_CC" >&5
1291echo "${ECHO_T}$ac_ct_CC" >&6
1292else
1293 echo "$as_me:1293: result: no" >&5
1294echo "${ECHO_T}no" >&6
1295fi
1296
1297 test -n "$ac_ct_CC" && break
1298done
1299
1300 CC=$ac_ct_CC
1301fi
1302
1303fi
1304
1305test -z "$CC" && { { echo "$as_me:1305: error: no acceptable cc found in \$PATH" >&5
1306echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1307 { (exit 1); exit 1; }; }
1308
1309# Provide some information about the compiler.
1310echo "$as_me:1310:" \
1311 "checking for C compiler version" >&5
1312ac_compiler=`set X $ac_compile; echo $2`
1313{ (eval echo "$as_me:1313: \"$ac_compiler --version </dev/null >&5\"") >&5
1314 (eval $ac_compiler --version </dev/null >&5) 2>&5
1315 ac_status=$?
1316 echo "$as_me:1316: \$? = $ac_status" >&5
1317 (exit $ac_status); }
1318{ (eval echo "$as_me:1318: \"$ac_compiler -v </dev/null >&5\"") >&5
1319 (eval $ac_compiler -v </dev/null >&5) 2>&5
1320 ac_status=$?
1321 echo "$as_me:1321: \$? = $ac_status" >&5
1322 (exit $ac_status); }
1323{ (eval echo "$as_me:1323: \"$ac_compiler -V </dev/null >&5\"") >&5
1324 (eval $ac_compiler -V </dev/null >&5) 2>&5
1325 ac_status=$?
1326 echo "$as_me:1326: \$? = $ac_status" >&5
1327 (exit $ac_status); }
1328
1329cat >conftest.$ac_ext <<_ACEOF
1330#line 1330 "configure"
1331#include "confdefs.h"
1332
1333int
1334main ()
1335{
1336
1337 ;
1338 return 0;
1339}
1340_ACEOF
1341ac_clean_files_save=$ac_clean_files
1342ac_clean_files="$ac_clean_files a.out a.exe"
1343# Try to create an executable without -o first, disregard a.out.
1344# It will help us diagnose broken compilers, and finding out an intuition
1345# of exeext.
1346echo "$as_me:1346: checking for C compiler default output" >&5
1347echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1348ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1349if { (eval echo "$as_me:1349: \"$ac_link_default\"") >&5
1350 (eval $ac_link_default) 2>&5
1351 ac_status=$?
1352 echo "$as_me:1352: \$? = $ac_status" >&5
1353 (exit $ac_status); }; then
1354 # Find the output, starting from the most likely. This scheme is
1355# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1356# resort.
1357for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1358 ls a.out conftest 2>/dev/null;
1359 ls a.* conftest.* 2>/dev/null`; do
1360 case $ac_file in
1361 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1362 a.out ) # We found the default executable, but exeext='' is most
1363 # certainly right.
1364 break;;
1365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1366 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1367 export ac_cv_exeext
1368 break;;
1369 * ) break;;
1370 esac
1371done
1372else
1373 echo "$as_me: failed program was:" >&5
1374cat conftest.$ac_ext >&5
1375{ { echo "$as_me:1375: error: C compiler cannot create executables" >&5
1376echo "$as_me: error: C compiler cannot create executables" >&2;}
1377 { (exit 77); exit 77; }; }
1378fi
1379
1380ac_exeext=$ac_cv_exeext
1381echo "$as_me:1381: result: $ac_file" >&5
1382echo "${ECHO_T}$ac_file" >&6
1383
1384# Check the compiler produces executables we can run. If not, either
1385# the compiler is broken, or we cross compile.
1386echo "$as_me:1386: checking whether the C compiler works" >&5
1387echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1388# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1389# If not cross compiling, check that we can run a simple program.
1390if test "$cross_compiling" != yes; then
1391 if { ac_try='./$ac_file'
1392 { (eval echo "$as_me:1392: \"$ac_try\"") >&5
1393 (eval $ac_try) 2>&5
1394 ac_status=$?
1395 echo "$as_me:1395: \$? = $ac_status" >&5
1396 (exit $ac_status); }; }; then
1397 cross_compiling=no
1398 else
1399 if test "$cross_compiling" = maybe; then
1400 cross_compiling=yes
1401 else
1402 { { echo "$as_me:1402: error: cannot run C compiled programs.
1403If you meant to cross compile, use \`--host'." >&5
1404echo "$as_me: error: cannot run C compiled programs.
1405If you meant to cross compile, use \`--host'." >&2;}
1406 { (exit 1); exit 1; }; }
1407 fi
1408 fi
1409fi
1410echo "$as_me:1410: result: yes" >&5
1411echo "${ECHO_T}yes" >&6
1412
1413rm -f a.out a.exe conftest$ac_cv_exeext
1414ac_clean_files=$ac_clean_files_save
1415# Check the compiler produces executables we can run. If not, either
1416# the compiler is broken, or we cross compile.
1417echo "$as_me:1417: checking whether we are cross compiling" >&5
1418echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1419echo "$as_me:1419: result: $cross_compiling" >&5
1420echo "${ECHO_T}$cross_compiling" >&6
1421
1422echo "$as_me:1422: checking for executable suffix" >&5
1423echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1424if { (eval echo "$as_me:1424: \"$ac_link\"") >&5
1425 (eval $ac_link) 2>&5
1426 ac_status=$?
1427 echo "$as_me:1427: \$? = $ac_status" >&5
1428 (exit $ac_status); }; then
1429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1430# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1431# work properly (i.e., refer to `conftest.exe'), while it won't with
1432# `rm'.
1433for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1434 case $ac_file in
1435 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1437 export ac_cv_exeext
1438 break;;
1439 * ) break;;
1440 esac
1441done
1442else
1443 { { echo "$as_me:1443: error: cannot compute EXEEXT: cannot compile and link" >&5
1444echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1445 { (exit 1); exit 1; }; }
1446fi
1447
1448rm -f conftest$ac_cv_exeext
1449echo "$as_me:1449: result: $ac_cv_exeext" >&5
1450echo "${ECHO_T}$ac_cv_exeext" >&6
1451
1452rm -f conftest.$ac_ext
1453EXEEXT=$ac_cv_exeext
1454ac_exeext=$EXEEXT
1455echo "$as_me:1455: checking for object suffix" >&5
1456echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1457if test "${ac_cv_objext+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459else
1460 cat >conftest.$ac_ext <<_ACEOF
1461#line 1461 "configure"
1462#include "confdefs.h"
1463
1464int
1465main ()
1466{
1467
1468 ;
1469 return 0;
1470}
1471_ACEOF
1472rm -f conftest.o conftest.obj
1473if { (eval echo "$as_me:1473: \"$ac_compile\"") >&5
1474 (eval $ac_compile) 2>&5
1475 ac_status=$?
1476 echo "$as_me:1476: \$? = $ac_status" >&5
1477 (exit $ac_status); }; then
1478 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1479 case $ac_file in
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1482 break;;
1483 esac
1484done
1485else
1486 echo "$as_me: failed program was:" >&5
1487cat conftest.$ac_ext >&5
1488{ { echo "$as_me:1488: error: cannot compute OBJEXT: cannot compile" >&5
1489echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493rm -f conftest.$ac_cv_objext conftest.$ac_ext
1494fi
1495echo "$as_me:1495: result: $ac_cv_objext" >&5
1496echo "${ECHO_T}$ac_cv_objext" >&6
1497OBJEXT=$ac_cv_objext
1498ac_objext=$OBJEXT
1499echo "$as_me:1499: checking whether we are using the GNU C compiler" >&5
1500echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1501if test "${ac_cv_c_compiler_gnu+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504 cat >conftest.$ac_ext <<_ACEOF
1505#line 1505 "configure"
1506#include "confdefs.h"
1507
1508int
1509main ()
1510{
1511#ifndef __GNUC__
1512 choke me
1513#endif
1514
1515 ;
1516 return 0;
1517}
1518_ACEOF
1519rm -f conftest.$ac_objext
1520if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521 (eval $ac_compile) 2>&5
1522 ac_status=$?
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); } &&
1525 { ac_try='test -s conftest.$ac_objext'
1526 { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 (eval $ac_try) 2>&5
1528 ac_status=$?
1529 echo "$as_me:1529: \$? = $ac_status" >&5
1530 (exit $ac_status); }; }; then
1531 ac_compiler_gnu=yes
1532else
1533 echo "$as_me: failed program was:" >&5
1534cat conftest.$ac_ext >&5
1535ac_compiler_gnu=no
1536fi
1537rm -f conftest.$ac_objext conftest.$ac_ext
1538ac_cv_c_compiler_gnu=$ac_compiler_gnu
1539
1540fi
1541echo "$as_me:1541: result: $ac_cv_c_compiler_gnu" >&5
1542echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1543GCC=`test $ac_compiler_gnu = yes && echo yes`
1544ac_test_CFLAGS=${CFLAGS+set}
1545ac_save_CFLAGS=$CFLAGS
1546CFLAGS="-g"
1547echo "$as_me:1547: checking whether $CC accepts -g" >&5
1548echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1549if test "${ac_cv_prog_cc_g+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 cat >conftest.$ac_ext <<_ACEOF
1553#line 1553 "configure"
1554#include "confdefs.h"
1555
1556int
1557main ()
1558{
1559
1560 ;
1561 return 0;
1562}
1563_ACEOF
1564rm -f conftest.$ac_objext
1565if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1567 ac_status=$?
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); } &&
1570 { ac_try='test -s conftest.$ac_objext'
1571 { (eval echo "$as_me:1571: \"$ac_try\"") >&5
1572 (eval $ac_try) 2>&5
1573 ac_status=$?
1574 echo "$as_me:1574: \$? = $ac_status" >&5
1575 (exit $ac_status); }; }; then
1576 ac_cv_prog_cc_g=yes
1577else
1578 echo "$as_me: failed program was:" >&5
1579cat conftest.$ac_ext >&5
1580ac_cv_prog_cc_g=no
1581fi
1582rm -f conftest.$ac_objext conftest.$ac_ext
1583fi
1584echo "$as_me:1584: result: $ac_cv_prog_cc_g" >&5
1585echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1586if test "$ac_test_CFLAGS" = set; then
1587 CFLAGS=$ac_save_CFLAGS
1588elif test $ac_cv_prog_cc_g = yes; then
1589 if test "$GCC" = yes; then
1590 CFLAGS="-g -O2"
1591 else
1592 CFLAGS="-g"
1593 fi
1594else
1595 if test "$GCC" = yes; then
1596 CFLAGS="-O2"
1597 else
1598 CFLAGS=
1599 fi
1600fi
1601# Some people use a C++ compiler to compile C. Since we use `exit',
1602# in C++ we need to declare it. In case someone uses the same compiler
1603# for both compiling C and C++ we need to have the C++ compiler decide
1604# the declaration of exit, since it's the most demanding environment.
1605cat >conftest.$ac_ext <<_ACEOF
1606#ifndef __cplusplus
1607 choke me
1608#endif
1609_ACEOF
1610rm -f conftest.$ac_objext
1611if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5
1612 (eval $ac_compile) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); } &&
1616 { ac_try='test -s conftest.$ac_objext'
1617 { (eval echo "$as_me:1617: \"$ac_try\"") >&5
1618 (eval $ac_try) 2>&5
1619 ac_status=$?
1620 echo "$as_me:1620: \$? = $ac_status" >&5
1621 (exit $ac_status); }; }; then
1622 for ac_declaration in \
1623 ''\
1624 '#include <stdlib.h>' \
1625 'extern "C" void std::exit (int) throw (); using std::exit;' \
1626 'extern "C" void std::exit (int); using std::exit;' \
1627 'extern "C" void exit (int) throw ();' \
1628 'extern "C" void exit (int);' \
1629 'void exit (int);'
1630do
1631 cat >conftest.$ac_ext <<_ACEOF
1632#line 1632 "configure"
1633#include "confdefs.h"
1634#include <stdlib.h>
1635$ac_declaration
1636int
1637main ()
1638{
1639exit (42);
1640 ;
1641 return 0;
1642}
1643_ACEOF
1644rm -f conftest.$ac_objext
1645if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
1646 (eval $ac_compile) 2>&5
1647 ac_status=$?
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); } &&
1650 { ac_try='test -s conftest.$ac_objext'
1651 { (eval echo "$as_me:1651: \"$ac_try\"") >&5
1652 (eval $ac_try) 2>&5
1653 ac_status=$?
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1656 :
1657else
1658 echo "$as_me: failed program was:" >&5
1659cat conftest.$ac_ext >&5
1660continue
1661fi
1662rm -f conftest.$ac_objext conftest.$ac_ext
1663 cat >conftest.$ac_ext <<_ACEOF
1664#line 1664 "configure"
1665#include "confdefs.h"
1666$ac_declaration
1667int
1668main ()
1669{
1670exit (42);
1671 ;
1672 return 0;
1673}
1674_ACEOF
1675rm -f conftest.$ac_objext
1676if { (eval echo "$as_me:1676: \"$ac_compile\"") >&5
1677 (eval $ac_compile) 2>&5
1678 ac_status=$?
1679 echo "$as_me:1679: \$? = $ac_status" >&5
1680 (exit $ac_status); } &&
1681 { ac_try='test -s conftest.$ac_objext'
1682 { (eval echo "$as_me:1682: \"$ac_try\"") >&5
1683 (eval $ac_try) 2>&5
1684 ac_status=$?
1685 echo "$as_me:1685: \$? = $ac_status" >&5
1686 (exit $ac_status); }; }; then
1687 break
1688else
1689 echo "$as_me: failed program was:" >&5
1690cat conftest.$ac_ext >&5
1691fi
1692rm -f conftest.$ac_objext conftest.$ac_ext
1693done
1694rm -f conftest*
1695if test -n "$ac_declaration"; then
1696 echo '#ifdef __cplusplus' >>confdefs.h
1697 echo $ac_declaration >>confdefs.h
1698 echo '#endif' >>confdefs.h
1699fi
1700
1701else
1702 echo "$as_me: failed program was:" >&5
1703cat conftest.$ac_ext >&5
1704fi
1705rm -f conftest.$ac_objext conftest.$ac_ext
1706ac_ext=c
1707ac_cpp='$CPP $CPPFLAGS'
1708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710ac_compiler_gnu=$ac_cv_c_compiler_gnu
1711
1712ac_aux_dir=
1713for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1714 if test -f $ac_dir/install-sh; then
1715 ac_aux_dir=$ac_dir
1716 ac_install_sh="$ac_aux_dir/install-sh -c"
1717 break
1718 elif test -f $ac_dir/install.sh; then
1719 ac_aux_dir=$ac_dir
1720 ac_install_sh="$ac_aux_dir/install.sh -c"
1721 break
1722 elif test -f $ac_dir/shtool; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/shtool install -c"
1725 break
1726 fi
1727done
1728if test -z "$ac_aux_dir"; then
1729 { { echo "$as_me:1729: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1730echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1731 { (exit 1); exit 1; }; }
1732fi
1733ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1734ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1735ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1736
1737# Make sure we can run config.sub.
1738$ac_config_sub sun4 >/dev/null 2>&1 ||
1739 { { echo "$as_me:1739: error: cannot run $ac_config_sub" >&5
1740echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743echo "$as_me:1743: checking build system type" >&5
1744echo $ECHO_N "checking build system type... $ECHO_C" >&6
1745if test "${ac_cv_build+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 ac_cv_build_alias=$build_alias
1749test -z "$ac_cv_build_alias" &&
1750 ac_cv_build_alias=`$ac_config_guess`
1751test -z "$ac_cv_build_alias" &&
1752 { { echo "$as_me:1752: error: cannot guess build type; you must specify one" >&5
1753echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754 { (exit 1); exit 1; }; }
1755ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1756 { { echo "$as_me:1756: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1757echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1758 { (exit 1); exit 1; }; }
1759
1760fi
1761echo "$as_me:1761: result: $ac_cv_build" >&5
1762echo "${ECHO_T}$ac_cv_build" >&6
1763build=$ac_cv_build
1764build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768echo "$as_me:1768: checking host system type" >&5
1769echo $ECHO_N "checking host system type... $ECHO_C" >&6
1770if test "${ac_cv_host+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 ac_cv_host_alias=$host_alias
1774test -z "$ac_cv_host_alias" &&
1775 ac_cv_host_alias=$ac_cv_build_alias
1776ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1777 { { echo "$as_me:1777: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1779 { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:1782: result: $ac_cv_host" >&5
1783echo "${ECHO_T}$ac_cv_host" >&6
1784host=$ac_cv_host
1785host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789echo "$as_me:1789: checking whether byte ordering is bigendian" >&5
1790echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1791if test "${ac_cv_c_bigendian+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794 ac_cv_c_bigendian=unknown
1795# See if sys/param.h defines the BYTE_ORDER macro.
1796cat >conftest.$ac_ext <<_ACEOF
1797#line 1797 "configure"
1798#include "confdefs.h"
1799#include <sys/types.h>
1800#include <sys/param.h>
1801
1802int
1803main ()
1804{
1805#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1806 bogus endian macros
1807#endif
1808
1809 ;
1810 return 0;
1811}
1812_ACEOF
1813rm -f conftest.$ac_objext
1814if { (eval echo "$as_me:1814: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1816 ac_status=$?
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); } &&
1819 { ac_try='test -s conftest.$ac_objext'
1820 { (eval echo "$as_me:1820: \"$ac_try\"") >&5
1821 (eval $ac_try) 2>&5
1822 ac_status=$?
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }; }; then
1825 # It does; now see whether it defined to BIG_ENDIAN or not.
1826cat >conftest.$ac_ext <<_ACEOF
1827#line 1827 "configure"
1828#include "confdefs.h"
1829#include <sys/types.h>
1830#include <sys/param.h>
1831
1832int
1833main ()
1834{
1835#if BYTE_ORDER != BIG_ENDIAN
1836 not big endian
1837#endif
1838
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843rm -f conftest.$ac_objext
1844if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1846 ac_status=$?
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); } &&
1849 { ac_try='test -s conftest.$ac_objext'
1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 ac_cv_c_bigendian=yes
1856else
1857 echo "$as_me: failed program was:" >&5
1858cat conftest.$ac_ext >&5
1859ac_cv_c_bigendian=no
1860fi
1861rm -f conftest.$ac_objext conftest.$ac_ext
1862else
1863 echo "$as_me: failed program was:" >&5
1864cat conftest.$ac_ext >&5
1865fi
1866rm -f conftest.$ac_objext conftest.$ac_ext
1867if test $ac_cv_c_bigendian = unknown; then
1868if test "$cross_compiling" = yes; then
1869 { { echo "$as_me:1869: error: cannot run test program while cross compiling" >&5
1870echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1871 { (exit 1); exit 1; }; }
1872else
1873 cat >conftest.$ac_ext <<_ACEOF
1874#line 1874 "configure"
1875#include "confdefs.h"
1876int
1877main ()
1878{
1879 /* Are we little or big endian? From Harbison&Steele. */
1880 union
1881 {
1882 long l;
1883 char c[sizeof (long)];
1884 } u;
1885 u.l = 1;
1886 exit (u.c[sizeof (long) - 1] == 1);
1887}
1888_ACEOF
1889rm -f conftest$ac_exeext
1890if { (eval echo "$as_me:1890: \"$ac_link\"") >&5
1891 (eval $ac_link) 2>&5
1892 ac_status=$?
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1896 (eval $ac_try) 2>&5
1897 ac_status=$?
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1900 ac_cv_c_bigendian=no
1901else
1902 echo "$as_me: program exited with status $ac_status" >&5
1903echo "$as_me: failed program was:" >&5
1904cat conftest.$ac_ext >&5
1905ac_cv_c_bigendian=yes
1906fi
1907rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1908fi
1909fi
1910fi
1911echo "$as_me:1911: result: $ac_cv_c_bigendian" >&5
1912echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1913if test $ac_cv_c_bigendian = yes; then
1914
1915cat >>confdefs.h <<\EOF
1916#define WORDS_BIGENDIAN 1
1917EOF
1918
1919fi
1920
1921# Checks for programs.
1922for ac_prog in mawk gawk nawk awk
1923do
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925set dummy $ac_prog; ac_word=$2
1926echo "$as_me:1926: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_AWK+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931 if test -n "$AWK"; then
1932 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1933else
1934 ac_save_IFS=$IFS; IFS=$ac_path_separator
1935ac_dummy="$PATH"
1936for ac_dir in $ac_dummy; do
1937 IFS=$ac_save_IFS
1938 test -z "$ac_dir" && ac_dir=.
1939 $as_executable_p "$ac_dir/$ac_word" || continue
1940ac_cv_prog_AWK="$ac_prog"
1941echo "$as_me:1941: found $ac_dir/$ac_word" >&5
1942break
1943done
1944
1945fi
1946fi
1947AWK=$ac_cv_prog_AWK
1948if test -n "$AWK"; then
1949 echo "$as_me:1949: result: $AWK" >&5
1950echo "${ECHO_T}$AWK" >&6
1951else
1952 echo "$as_me:1952: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956 test -n "$AWK" && break
1957done
1958
1959ac_ext=c
1960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964echo "$as_me:1964: checking how to run the C preprocessor" >&5
1965echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1966# On Suns, sometimes $CPP names a directory.
1967if test -n "$CPP" && test -d "$CPP"; then
1968 CPP=
1969fi
1970if test -z "$CPP"; then
1971 if test "${ac_cv_prog_CPP+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 # Double quotes because CPP needs to be expanded
1975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1976 do
1977 ac_preproc_ok=false
1978for ac_c_preproc_warn_flag in '' yes
1979do
1980 # Use a header file that comes with gcc, so configuring glibc
1981 # with a fresh cross-compiler works.
1982 # On the NeXT, cc -E runs the code through the compiler's parser,
1983 # not just through cpp. "Syntax error" is here to catch this case.
1984 cat >conftest.$ac_ext <<_ACEOF
1985#line 1985 "configure"
1986#include "confdefs.h"
1987#include <assert.h>
1988 Syntax error
1989_ACEOF
1990if { (eval echo "$as_me:1990: \"$ac_cpp conftest.$ac_ext\"") >&5
1991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1992 ac_status=$?
1993 egrep -v '^ *\+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); } >/dev/null; then
1998 if test -s conftest.err; then
1999 ac_cpp_err=$ac_c_preproc_warn_flag
2000 else
2001 ac_cpp_err=
2002 fi
2003else
2004 ac_cpp_err=yes
2005fi
2006if test -z "$ac_cpp_err"; then
2007 :
2008else
2009 echo "$as_me: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 # Broken: fails on valid input.
2012continue
2013fi
2014rm -f conftest.err conftest.$ac_ext
2015
2016 # OK, works on sane cases. Now check whether non-existent headers
2017 # can be detected and how.
2018 cat >conftest.$ac_ext <<_ACEOF
2019#line 2019 "configure"
2020#include "confdefs.h"
2021#include <ac_nonexistent.h>
2022_ACEOF
2023if { (eval echo "$as_me:2023: \"$ac_cpp conftest.$ac_ext\"") >&5
2024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2025 ac_status=$?
2026 egrep -v '^ *\+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); } >/dev/null; then
2031 if test -s conftest.err; then
2032 ac_cpp_err=$ac_c_preproc_warn_flag
2033 else
2034 ac_cpp_err=
2035 fi
2036else
2037 ac_cpp_err=yes
2038fi
2039if test -z "$ac_cpp_err"; then
2040 # Broken: success on invalid input.
2041continue
2042else
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 # Passes both tests.
2046ac_preproc_ok=:
2047break
2048fi
2049rm -f conftest.err conftest.$ac_ext
2050
2051done
2052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2053rm -f conftest.err conftest.$ac_ext
2054if $ac_preproc_ok; then
2055 break
2056fi
2057
2058 done
2059 ac_cv_prog_CPP=$CPP
2060
2061fi
2062 CPP=$ac_cv_prog_CPP
2063else
2064 ac_cv_prog_CPP=$CPP
2065fi
2066echo "$as_me:2066: result: $CPP" >&5
2067echo "${ECHO_T}$CPP" >&6
2068ac_preproc_ok=false
2069for ac_c_preproc_warn_flag in '' yes
2070do
2071 # Use a header file that comes with gcc, so configuring glibc
2072 # with a fresh cross-compiler works.
2073 # On the NeXT, cc -E runs the code through the compiler's parser,
2074 # not just through cpp. "Syntax error" is here to catch this case.
2075 cat >conftest.$ac_ext <<_ACEOF
2076#line 2076 "configure"
2077#include "confdefs.h"
2078#include <assert.h>
2079 Syntax error
2080_ACEOF
2081if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5
2082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2083 ac_status=$?
2084 egrep -v '^ *\+' conftest.er1 >conftest.err
2085 rm -f conftest.er1
2086 cat conftest.err >&5
2087 echo "$as_me:2087: \$? = $ac_status" >&5
2088 (exit $ac_status); } >/dev/null; then
2089 if test -s conftest.err; then
2090 ac_cpp_err=$ac_c_preproc_warn_flag
2091 else
2092 ac_cpp_err=
2093 fi
2094else
2095 ac_cpp_err=yes
2096fi
2097if test -z "$ac_cpp_err"; then
2098 :
2099else
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 # Broken: fails on valid input.
2103continue
2104fi
2105rm -f conftest.err conftest.$ac_ext
2106
2107 # OK, works on sane cases. Now check whether non-existent headers
2108 # can be detected and how.
2109 cat >conftest.$ac_ext <<_ACEOF
2110#line 2110 "configure"
2111#include "confdefs.h"
2112#include <ac_nonexistent.h>
2113_ACEOF
2114if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5
2115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2116 ac_status=$?
2117 egrep -v '^ *\+' conftest.er1 >conftest.err
2118 rm -f conftest.er1
2119 cat conftest.err >&5
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); } >/dev/null; then
2122 if test -s conftest.err; then
2123 ac_cpp_err=$ac_c_preproc_warn_flag
2124 else
2125 ac_cpp_err=
2126 fi
2127else
2128 ac_cpp_err=yes
2129fi
2130if test -z "$ac_cpp_err"; then
2131 # Broken: success on invalid input.
2132continue
2133else
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 # Passes both tests.
2137ac_preproc_ok=:
2138break
2139fi
2140rm -f conftest.err conftest.$ac_ext
2141
2142done
2143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2144rm -f conftest.err conftest.$ac_ext
2145if $ac_preproc_ok; then
2146 :
2147else
2148 { { echo "$as_me:2148: error: C preprocessor \"$CPP\" fails sanity check" >&5
2149echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2150 { (exit 1); exit 1; }; }
2151fi
2152
2153ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2162echo "$as_me:2162: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164if test "${ac_cv_prog_RANLIB+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 if test -n "$RANLIB"; then
2168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2169else
2170 ac_save_IFS=$IFS; IFS=$ac_path_separator
2171ac_dummy="$PATH"
2172for ac_dir in $ac_dummy; do
2173 IFS=$ac_save_IFS
2174 test -z "$ac_dir" && ac_dir=.
2175 $as_executable_p "$ac_dir/$ac_word" || continue
2176ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2177echo "$as_me:2177: found $ac_dir/$ac_word" >&5
2178break
2179done
2180
2181fi
2182fi
2183RANLIB=$ac_cv_prog_RANLIB
2184if test -n "$RANLIB"; then
2185 echo "$as_me:2185: result: $RANLIB" >&5
2186echo "${ECHO_T}$RANLIB" >&6
2187else
2188 echo "$as_me:2188: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192fi
2193if test -z "$ac_cv_prog_RANLIB"; then
2194 ac_ct_RANLIB=$RANLIB
2195 # Extract the first word of "ranlib", so it can be a program name with args.
2196set dummy ranlib; ac_word=$2
2197echo "$as_me:2197: checking for $ac_word" >&5
2198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 if test -n "$ac_ct_RANLIB"; then
2203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2204else
2205 ac_save_IFS=$IFS; IFS=$ac_path_separator
2206ac_dummy="$PATH"
2207for ac_dir in $ac_dummy; do
2208 IFS=$ac_save_IFS
2209 test -z "$ac_dir" && ac_dir=.
2210 $as_executable_p "$ac_dir/$ac_word" || continue
2211ac_cv_prog_ac_ct_RANLIB="ranlib"
2212echo "$as_me:2212: found $ac_dir/$ac_word" >&5
2213break
2214done
2215
2216 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2217fi
2218fi
2219ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2220if test -n "$ac_ct_RANLIB"; then
2221 echo "$as_me:2221: result: $ac_ct_RANLIB" >&5
2222echo "${ECHO_T}$ac_ct_RANLIB" >&6
2223else
2224 echo "$as_me:2224: result: no" >&5
2225echo "${ECHO_T}no" >&6
2226fi
2227
2228 RANLIB=$ac_ct_RANLIB
2229else
2230 RANLIB="$ac_cv_prog_RANLIB"
2231fi
2232
2233# Find a good install program. We prefer a C program (faster),
2234# so one script is as good as another. But avoid the broken or
2235# incompatible versions:
2236# SysV /etc/install, /usr/sbin/install
2237# SunOS /usr/etc/install
2238# IRIX /sbin/install
2239# AIX /bin/install
2240# AmigaOS /C/install, which installs bootblocks on floppy discs
2241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2242# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2244# ./install, which can be erroneously created by make from ./install.sh.
2245echo "$as_me:2245: checking for a BSD compatible install" >&5
2246echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2247if test -z "$INSTALL"; then
2248if test "${ac_cv_path_install+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 ac_save_IFS=$IFS; IFS=$ac_path_separator
2252 for ac_dir in $PATH; do
2253 IFS=$ac_save_IFS
2254 # Account for people who put trailing slashes in PATH elements.
2255 case $ac_dir/ in
2256 / | ./ | .// | /cC/* \
2257 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2258 | /usr/ucb/* ) ;;
2259 *)
2260 # OSF1 and SCO ODT 3.0 have their own names for install.
2261 # Don't use installbsd from OSF since it installs stuff as root
2262 # by default.
2263 for ac_prog in ginstall scoinst install; do
2264 if $as_executable_p "$ac_dir/$ac_prog"; then
2265 if test $ac_prog = install &&
2266 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2267 # AIX install. It has an incompatible calling convention.
2268 :
2269 elif test $ac_prog = install &&
2270 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2271 # program-specific install script used by HP pwplus--don't use.
2272 :
2273 else
2274 ac_cv_path_install="$ac_dir/$ac_prog -c"
2275 break 2
2276 fi
2277 fi
2278 done
2279 ;;
2280 esac
2281 done
2282
2283fi
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2286 else
2287 # As a last resort, use the slow shell script. We don't cache a
2288 # path for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the path is relative.
2291 INSTALL=$ac_install_sh
2292 fi
2293fi
2294echo "$as_me:2294: result: $INSTALL" >&5
2295echo "${ECHO_T}$INSTALL" >&6
2296
2297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298# It thinks the first close brace ends the variable substitution.
2299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2300
2301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2302
2303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2304
2305# Extract the first word of "ar", so it can be a program name with args.
2306set dummy ar; ac_word=$2
2307echo "$as_me:2307: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309if test "${ac_cv_path_AR+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 case $AR in
2313 [\\/]* | ?:[\\/]*)
2314 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2315 ;;
2316 *)
2317 ac_save_IFS=$IFS; IFS=$ac_path_separator
2318ac_dummy="$PATH"
2319for ac_dir in $ac_dummy; do
2320 IFS=$ac_save_IFS
2321 test -z "$ac_dir" && ac_dir=.
2322 if $as_executable_p "$ac_dir/$ac_word"; then
2323 ac_cv_path_AR="$ac_dir/$ac_word"
2324 echo "$as_me:2324: found $ac_dir/$ac_word" >&5
2325 break
2326fi
2327done
2328
2329 ;;
2330esac
2331fi
2332AR=$ac_cv_path_AR
2333
2334if test -n "$AR"; then
2335 echo "$as_me:2335: result: $AR" >&5
2336echo "${ECHO_T}$AR" >&6
2337else
2338 echo "$as_me:2338: result: no" >&5
2339echo "${ECHO_T}no" >&6
2340fi
2341
2342for ac_prog in perl5 perl
2343do
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345set dummy $ac_prog; ac_word=$2
2346echo "$as_me:2346: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348if test "${ac_cv_path_PERL+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 case $PERL in
2352 [\\/]* | ?:[\\/]*)
2353 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2354 ;;
2355 *)
2356 ac_save_IFS=$IFS; IFS=$ac_path_separator
2357ac_dummy="$PATH"
2358for ac_dir in $ac_dummy; do
2359 IFS=$ac_save_IFS
2360 test -z "$ac_dir" && ac_dir=.
2361 if $as_executable_p "$ac_dir/$ac_word"; then
2362 ac_cv_path_PERL="$ac_dir/$ac_word"
2363 echo "$as_me:2363: found $ac_dir/$ac_word" >&5
2364 break
2365fi
2366done
2367
2368 ;;
2369esac
2370fi
2371PERL=$ac_cv_path_PERL
2372
2373if test -n "$PERL"; then
2374 echo "$as_me:2374: result: $PERL" >&5
2375echo "${ECHO_T}$PERL" >&6
2376else
2377 echo "$as_me:2377: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379fi
2380
2381 test -n "$PERL" && break
2382done
2383
2384# Extract the first word of "sed", so it can be a program name with args.
2385set dummy sed; ac_word=$2
2386echo "$as_me:2386: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388if test "${ac_cv_path_SED+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 case $SED in
2392 [\\/]* | ?:[\\/]*)
2393 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2394 ;;
2395 *)
2396 ac_save_IFS=$IFS; IFS=$ac_path_separator
2397ac_dummy="$PATH"
2398for ac_dir in $ac_dummy; do
2399 IFS=$ac_save_IFS
2400 test -z "$ac_dir" && ac_dir=.
2401 if $as_executable_p "$ac_dir/$ac_word"; then
2402 ac_cv_path_SED="$ac_dir/$ac_word"
2403 echo "$as_me:2403: found $ac_dir/$ac_word" >&5
2404 break
2405fi
2406done
2407
2408 ;;
2409esac
2410fi
2411SED=$ac_cv_path_SED
2412
2413if test -n "$SED"; then
2414 echo "$as_me:2414: result: $SED" >&5
2415echo "${ECHO_T}$SED" >&6
2416else
2417 echo "$as_me:2417: result: no" >&5
2418echo "${ECHO_T}no" >&6
2419fi
2420
2421# Extract the first word of "ent", so it can be a program name with args.
2422set dummy ent; ac_word=$2
2423echo "$as_me:2423: checking for $ac_word" >&5
2424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425if test "${ac_cv_path_ENT+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428 case $ENT in
2429 [\\/]* | ?:[\\/]*)
2430 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2431 ;;
2432 *)
2433 ac_save_IFS=$IFS; IFS=$ac_path_separator
2434ac_dummy="$PATH"
2435for ac_dir in $ac_dummy; do
2436 IFS=$ac_save_IFS
2437 test -z "$ac_dir" && ac_dir=.
2438 if $as_executable_p "$ac_dir/$ac_word"; then
2439 ac_cv_path_ENT="$ac_dir/$ac_word"
2440 echo "$as_me:2440: found $ac_dir/$ac_word" >&5
2441 break
2442fi
2443done
2444
2445 ;;
2446esac
2447fi
2448ENT=$ac_cv_path_ENT
2449
2450if test -n "$ENT"; then
2451 echo "$as_me:2451: result: $ENT" >&5
2452echo "${ECHO_T}$ENT" >&6
2453else
2454 echo "$as_me:2454: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456fi
2457
2458# Extract the first word of "bash", so it can be a program name with args.
2459set dummy bash; ac_word=$2
2460echo "$as_me:2460: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 case $TEST_MINUS_S_SH in
2466 [\\/]* | ?:[\\/]*)
2467 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2468 ;;
2469 *)
2470 ac_save_IFS=$IFS; IFS=$ac_path_separator
2471ac_dummy="$PATH"
2472for ac_dir in $ac_dummy; do
2473 IFS=$ac_save_IFS
2474 test -z "$ac_dir" && ac_dir=.
2475 if $as_executable_p "$ac_dir/$ac_word"; then
2476 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2477 echo "$as_me:2477: found $ac_dir/$ac_word" >&5
2478 break
2479fi
2480done
2481
2482 ;;
2483esac
2484fi
2485TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2486
2487if test -n "$TEST_MINUS_S_SH"; then
2488 echo "$as_me:2488: result: $TEST_MINUS_S_SH" >&5
2489echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2490else
2491 echo "$as_me:2491: result: no" >&5
2492echo "${ECHO_T}no" >&6
2493fi
2494
2495# Extract the first word of "ksh", so it can be a program name with args.
2496set dummy ksh; ac_word=$2
2497echo "$as_me:2497: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 case $TEST_MINUS_S_SH in
2503 [\\/]* | ?:[\\/]*)
2504 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2505 ;;
2506 *)
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508ac_dummy="$PATH"
2509for ac_dir in $ac_dummy; do
2510 IFS=$ac_save_IFS
2511 test -z "$ac_dir" && ac_dir=.
2512 if $as_executable_p "$ac_dir/$ac_word"; then
2513 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2515 break
2516fi
2517done
2518
2519 ;;
2520esac
2521fi
2522TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2523
2524if test -n "$TEST_MINUS_S_SH"; then
2525 echo "$as_me:2525: result: $TEST_MINUS_S_SH" >&5
2526echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2527else
2528 echo "$as_me:2528: result: no" >&5
2529echo "${ECHO_T}no" >&6
2530fi
2531
2532# Extract the first word of "sh", so it can be a program name with args.
2533set dummy sh; ac_word=$2
2534echo "$as_me:2534: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 case $TEST_MINUS_S_SH in
2540 [\\/]* | ?:[\\/]*)
2541 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2542 ;;
2543 *)
2544 ac_save_IFS=$IFS; IFS=$ac_path_separator
2545ac_dummy="$PATH"
2546for ac_dir in $ac_dummy; do
2547 IFS=$ac_save_IFS
2548 test -z "$ac_dir" && ac_dir=.
2549 if $as_executable_p "$ac_dir/$ac_word"; then
2550 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2551 echo "$as_me:2551: found $ac_dir/$ac_word" >&5
2552 break
2553fi
2554done
2555
2556 ;;
2557esac
2558fi
2559TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2560
2561if test -n "$TEST_MINUS_S_SH"; then
2562 echo "$as_me:2562: result: $TEST_MINUS_S_SH" >&5
2563echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2564else
2565 echo "$as_me:2565: result: no" >&5
2566echo "${ECHO_T}no" >&6
2567fi
2568
2569# Extract the first word of "sh", so it can be a program name with args.
2570set dummy sh; ac_word=$2
2571echo "$as_me:2571: checking for $ac_word" >&5
2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573if test "${ac_cv_path_SH+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 case $SH in
2577 [\\/]* | ?:[\\/]*)
2578 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2579 ;;
2580 *)
2581 ac_save_IFS=$IFS; IFS=$ac_path_separator
2582ac_dummy="$PATH"
2583for ac_dir in $ac_dummy; do
2584 IFS=$ac_save_IFS
2585 test -z "$ac_dir" && ac_dir=.
2586 if $as_executable_p "$ac_dir/$ac_word"; then
2587 ac_cv_path_SH="$ac_dir/$ac_word"
2588 echo "$as_me:2588: found $ac_dir/$ac_word" >&5
2589 break
2590fi
2591done
2592
2593 ;;
2594esac
2595fi
2596SH=$ac_cv_path_SH
2597
2598if test -n "$SH"; then
2599 echo "$as_me:2599: result: $SH" >&5
2600echo "${ECHO_T}$SH" >&6
2601else
2602 echo "$as_me:2602: result: no" >&5
2603echo "${ECHO_T}no" >&6
2604fi
2605
2606# System features
2607# Check whether --enable-largefile or --disable-largefile was given.
2608if test "${enable_largefile+set}" = set; then
2609 enableval="$enable_largefile"
2610
2611fi;
2612if test "$enable_largefile" != no; then
2613
2614 echo "$as_me:2614: checking for special C compiler options needed for large files" >&5
2615echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2616if test "${ac_cv_sys_largefile_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 ac_cv_sys_largefile_CC=no
2620 if test "$GCC" != yes; then
2621 ac_save_CC=$CC
2622 while :; do
2623 # IRIX 6.2 and later do not support large files by default,
2624 # so use the C compiler's -n32 option if that helps.
2625 cat >conftest.$ac_ext <<_ACEOF
2626#line 2626 "configure"
2627#include "confdefs.h"
2628#include <sys/types.h>
2629 /* Check that off_t can represent 2**63 - 1 correctly.
2630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2631 since some C++ compilers masquerading as C compilers
2632 incorrectly reject 9223372036854775807. */
2633#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2635 && LARGE_OFF_T % 2147483647 == 1)
2636 ? 1 : -1];
2637int
2638main ()
2639{
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645 rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 break
2658else
2659 echo "$as_me: failed program was:" >&5
2660cat conftest.$ac_ext >&5
2661fi
2662rm -f conftest.$ac_objext
2663 CC="$CC -n32"
2664 rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:2665: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>&5
2667 ac_status=$?
2668 echo "$as_me:2668: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:2671: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_sys_largefile_CC=' -n32'; break
2677else
2678 echo "$as_me: failed program was:" >&5
2679cat conftest.$ac_ext >&5
2680fi
2681rm -f conftest.$ac_objext
2682 break
2683 done
2684 CC=$ac_save_CC
2685 rm -f conftest.$ac_ext
2686 fi
2687fi
2688echo "$as_me:2688: result: $ac_cv_sys_largefile_CC" >&5
2689echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2690 if test "$ac_cv_sys_largefile_CC" != no; then
2691 CC=$CC$ac_cv_sys_largefile_CC
2692 fi
2693
2694 echo "$as_me:2694: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2695echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2696if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 while :; do
2700 ac_cv_sys_file_offset_bits=no
2701 cat >conftest.$ac_ext <<_ACEOF
2702#line 2702 "configure"
2703#include "confdefs.h"
2704#include <sys/types.h>
2705 /* Check that off_t can represent 2**63 - 1 correctly.
2706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2707 since some C++ compilers masquerading as C compilers
2708 incorrectly reject 9223372036854775807. */
2709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2711 && LARGE_OFF_T % 2147483647 == 1)
2712 ? 1 : -1];
2713int
2714main ()
2715{
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2724 ac_status=$?
2725 echo "$as_me:2725: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 break
2734else
2735 echo "$as_me: failed program was:" >&5
2736cat conftest.$ac_ext >&5
2737fi
2738rm -f conftest.$ac_objext conftest.$ac_ext
2739 cat >conftest.$ac_ext <<_ACEOF
2740#line 2740 "configure"
2741#include "confdefs.h"
2742#define _FILE_OFFSET_BITS 64
2743#include <sys/types.h>
2744 /* Check that off_t can represent 2**63 - 1 correctly.
2745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2746 since some C++ compilers masquerading as C compilers
2747 incorrectly reject 9223372036854775807. */
2748#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2750 && LARGE_OFF_T % 2147483647 == 1)
2751 ? 1 : -1];
2752int
2753main ()
2754{
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2763 ac_status=$?
2764 echo "$as_me:2764: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 ac_cv_sys_file_offset_bits=64; break
2773else
2774 echo "$as_me: failed program was:" >&5
2775cat conftest.$ac_ext >&5
2776fi
2777rm -f conftest.$ac_objext conftest.$ac_ext
2778 break
2779done
2780fi
2781echo "$as_me:2781: result: $ac_cv_sys_file_offset_bits" >&5
2782echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2783if test "$ac_cv_sys_file_offset_bits" != no; then
2784
2785cat >>confdefs.h <<EOF
2786#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2787EOF
2788
2789fi
2790rm -f conftest*
2791 echo "$as_me:2791: checking for _LARGE_FILES value needed for large files" >&5
2792echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2793if test "${ac_cv_sys_large_files+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796 while :; do
2797 ac_cv_sys_large_files=no
2798 cat >conftest.$ac_ext <<_ACEOF
2799#line 2799 "configure"
2800#include "confdefs.h"
2801#include <sys/types.h>
2802 /* Check that off_t can represent 2**63 - 1 correctly.
2803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2804 since some C++ compilers masquerading as C compilers
2805 incorrectly reject 9223372036854775807. */
2806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2808 && LARGE_OFF_T % 2147483647 == 1)
2809 ? 1 : -1];
2810int
2811main ()
2812{
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
2819if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2821 ac_status=$?
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 break
2831else
2832 echo "$as_me: failed program was:" >&5
2833cat conftest.$ac_ext >&5
2834fi
2835rm -f conftest.$ac_objext conftest.$ac_ext
2836 cat >conftest.$ac_ext <<_ACEOF
2837#line 2837 "configure"
2838#include "confdefs.h"
2839#define _LARGE_FILES 1
2840#include <sys/types.h>
2841 /* Check that off_t can represent 2**63 - 1 correctly.
2842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2843 since some C++ compilers masquerading as C compilers
2844 incorrectly reject 9223372036854775807. */
2845#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2847 && LARGE_OFF_T % 2147483647 == 1)
2848 ? 1 : -1];
2849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2860 ac_status=$?
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_sys_large_files=1; break
2870else
2871 echo "$as_me: failed program was:" >&5
2872cat conftest.$ac_ext >&5
2873fi
2874rm -f conftest.$ac_objext conftest.$ac_ext
2875 break
2876done
2877fi
2878echo "$as_me:2878: result: $ac_cv_sys_large_files" >&5
2879echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2880if test "$ac_cv_sys_large_files" != no; then
2881
2882cat >>confdefs.h <<EOF
2883#define _LARGE_FILES $ac_cv_sys_large_files
2884EOF
2885
2886fi
2887rm -f conftest*
2888fi
2889
2890if test -z "$AR" ; then
2891 { { echo "$as_me:2891: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
2892echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
2893 { (exit 1); exit 1; }; }
2894fi
2895
2896# Use LOGIN_PROGRAM from environment if possible
2897if test ! -z "$LOGIN_PROGRAM" ; then
2898 cat >>confdefs.h <<EOF
2899#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
2900EOF
2901
2902else
2903 # Search for login
2904 # Extract the first word of "login", so it can be a program name with args.
2905set dummy login; ac_word=$2
2906echo "$as_me:2906: checking for $ac_word" >&5
2907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 case $LOGIN_PROGRAM_FALLBACK in
2912 [\\/]* | ?:[\\/]*)
2913 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
2914 ;;
2915 *)
2916 ac_save_IFS=$IFS; IFS=$ac_path_separator
2917ac_dummy="$PATH"
2918for ac_dir in $ac_dummy; do
2919 IFS=$ac_save_IFS
2920 test -z "$ac_dir" && ac_dir=.
2921 if $as_executable_p "$ac_dir/$ac_word"; then
2922 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word"
2923 echo "$as_me:2923: found $ac_dir/$ac_word" >&5
2924 break
2925fi
2926done
2927
2928 ;;
2929esac
2930fi
2931LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
2932
2933if test -n "$LOGIN_PROGRAM_FALLBACK"; then
2934 echo "$as_me:2934: result: $LOGIN_PROGRAM_FALLBACK" >&5
2935echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
2936else
2937 echo "$as_me:2937: result: no" >&5
2938echo "${ECHO_T}no" >&6
2939fi
2940
2941 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
2942 cat >>confdefs.h <<EOF
2943#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
2944EOF
2945
2946 fi
2947fi
2948
2949# Extract the first word of "passwd", so it can be a program name with args.
2950set dummy passwd; ac_word=$2
2951echo "$as_me:2951: checking for $ac_word" >&5
2952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2953if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 case $PATH_PASSWD_PROG in
2957 [\\/]* | ?:[\\/]*)
2958 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
2959 ;;
2960 *)
2961 ac_save_IFS=$IFS; IFS=$ac_path_separator
2962ac_dummy="$PATH"
2963for ac_dir in $ac_dummy; do
2964 IFS=$ac_save_IFS
2965 test -z "$ac_dir" && ac_dir=.
2966 if $as_executable_p "$ac_dir/$ac_word"; then
2967 ac_cv_path_PATH_PASSWD_PROG="$ac_dir/$ac_word"
2968 echo "$as_me:2968: found $ac_dir/$ac_word" >&5
2969 break
2970fi
2971done
2972
2973 ;;
2974esac
2975fi
2976PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
2977
2978if test -n "$PATH_PASSWD_PROG"; then
2979 echo "$as_me:2979: result: $PATH_PASSWD_PROG" >&5
2980echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
2981else
2982 echo "$as_me:2982: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984fi
2985
2986if test ! -z "$PATH_PASSWD_PROG" ; then
2987 cat >>confdefs.h <<EOF
2988#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
2989EOF
2990
2991fi
2992
2993if test -z "$LD" ; then
2994 LD=$CC
2995fi
2996
2997echo "$as_me:2997: checking for $CC option to accept ANSI C" >&5
2998echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2999if test "${ac_cv_prog_cc_stdc+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_cv_prog_cc_stdc=no
3003ac_save_CC=$CC
3004cat >conftest.$ac_ext <<_ACEOF
3005#line 3005 "configure"
3006#include "confdefs.h"
3007#include <stdarg.h>
3008#include <stdio.h>
3009#include <sys/types.h>
3010#include <sys/stat.h>
3011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012struct buf { int x; };
3013FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014static char *e (p, i)
3015 char **p;
3016 int i;
3017{
3018 return p[i];
3019}
3020static char *f (char * (*g) (char **, int), char **p, ...)
3021{
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3028}
3029int test (int i, double x);
3030struct s1 {int (*f) (int a);};
3031struct s2 {int (*f) (double a);};
3032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033int argc;
3034char **argv;
3035int
3036main ()
3037{
3038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043# Don't try gcc -ansi; that turns off useful extensions and
3044# breaks some systems' header files.
3045# AIX -qlanglvl=ansi
3046# Ultrix and OSF/1 -std1
3047# HP-UX 10.20 and later -Ae
3048# HP-UX older versions -Aa -D_HPUX_SOURCE
3049# SVR4 -Xc -D__EXTENSIONS__
3050for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3056 ac_status=$?
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:3060: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:3063: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_prog_cc_stdc=$ac_arg
3066break
3067else
3068 echo "$as_me: failed program was:" >&5
3069cat conftest.$ac_ext >&5
3070fi
3071rm -f conftest.$ac_objext
3072done
3073rm -f conftest.$ac_ext conftest.$ac_objext
3074CC=$ac_save_CC
3075
3076fi
3077
3078case "x$ac_cv_prog_cc_stdc" in
3079 x|xno)
3080 echo "$as_me:3080: result: none needed" >&5
3081echo "${ECHO_T}none needed" >&6 ;;
3082 *)
3083 echo "$as_me:3083: result: $ac_cv_prog_cc_stdc" >&5
3084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085 CC="$CC $ac_cv_prog_cc_stdc" ;;
3086esac
3087
3088echo "$as_me:3088: checking for inline" >&5
3089echo $ECHO_N "checking for inline... $ECHO_C" >&6
3090if test "${ac_cv_c_inline+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 ac_cv_c_inline=no
3094for ac_kw in inline __inline__ __inline; do
3095 cat >conftest.$ac_ext <<_ACEOF
3096#line 3096 "configure"
3097#include "confdefs.h"
3098#ifndef __cplusplus
3099static $ac_kw int static_foo () {return 0; }
3100$ac_kw int foo () {return 0; }
3101#endif
3102
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:3105: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3107 ac_status=$?
3108 echo "$as_me:3108: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:3111: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:3114: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_c_inline=$ac_kw; break
3117else
3118 echo "$as_me: failed program was:" >&5
3119cat conftest.$ac_ext >&5
3120fi
3121rm -f conftest.$ac_objext conftest.$ac_ext
3122done
3123
3124fi
3125echo "$as_me:3125: result: $ac_cv_c_inline" >&5
3126echo "${ECHO_T}$ac_cv_c_inline" >&6
3127case $ac_cv_c_inline in
3128 inline | yes) ;;
3129 no)
3130cat >>confdefs.h <<\EOF
3131#define inline
3132EOF
3133 ;;
3134 *) cat >>confdefs.h <<EOF
3135#define inline $ac_cv_c_inline
3136EOF
3137 ;;
3138esac
3139
3140if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3141 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3142fi
3143
3144# Check whether --with-rpath or --without-rpath was given.
3145if test "${with_rpath+set}" = set; then
3146 withval="$with_rpath"
3147
3148 if test "x$withval" = "xno" ; then
3149 need_dash_r=""
3150 fi
3151 if test "x$withval" = "xyes" ; then
3152 need_dash_r=1
3153 fi
3154
3155fi;
3156
3157# Check for some target-specific stuff
3158case "$host" in
3159*-*-aix*)
3160 echo "$as_me:3160: checking how to specify blibpath for linker ($LD)" >&5
3161echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
3162 if (test -z "$blibpath"); then
3163 blibpath="/usr/lib:/lib"
3164 fi
3165 saved_LDFLAGS="$LDFLAGS"
3166 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
3167 if (test -z "$blibflags"); then
3168 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
3169 cat >conftest.$ac_ext <<_ACEOF
3170#line 3170 "configure"
3171#include "confdefs.h"
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext conftest$ac_exeext
3182if { (eval echo "$as_me:3182: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>&5
3184 ac_status=$?
3185 echo "$as_me:3185: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:3188: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 blibflags=$tryflags
3194else
3195 echo "$as_me: failed program was:" >&5
3196cat conftest.$ac_ext >&5
3197fi
3198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 fi
3200 done
3201 if (test -z "$blibflags"); then
3202 echo "$as_me:3202: result: not found" >&5
3203echo "${ECHO_T}not found" >&6
3204 { { echo "$as_me:3204: error: *** must be able to specify blibpath on AIX - check config.log" >&5
3205echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
3206 { (exit 1); exit 1; }; }
3207 else
3208 echo "$as_me:3208: result: $blibflags" >&5
3209echo "${ECHO_T}$blibflags" >&6
3210 fi
3211 LDFLAGS="$saved_LDFLAGS"
3212 echo "$as_me:3212: checking for authenticate" >&5
3213echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3214if test "${ac_cv_func_authenticate+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 cat >conftest.$ac_ext <<_ACEOF
3218#line 3218 "configure"
3219#include "confdefs.h"
3220/* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char authenticate (); below. */
3222#include <assert.h>
3223/* Override any gcc2 internal prototype to avoid an error. */
3224#ifdef __cplusplus
3225extern "C"
3226#endif
3227/* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229char authenticate ();
3230char (*f) ();
3231
3232int
3233main ()
3234{
3235/* The GNU C library defines this for functions which it implements
3236 to always fail with ENOSYS. Some functions are actually named
3237 something starting with __ and the normal name is an alias. */
3238#if defined (__stub_authenticate) || defined (__stub___authenticate)
3239choke me
3240#else
3241f = authenticate;
3242#endif
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext conftest$ac_exeext
3249if { (eval echo "$as_me:3249: \"$ac_link\"") >&5
3250 (eval $ac_link) 2>&5
3251 ac_status=$?
3252 echo "$as_me:3252: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:3255: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:3258: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_func_authenticate=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263cat conftest.$ac_ext >&5
3264ac_cv_func_authenticate=no
3265fi
3266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3267fi
3268echo "$as_me:3268: result: $ac_cv_func_authenticate" >&5
3269echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3270if test $ac_cv_func_authenticate = yes; then
3271 cat >>confdefs.h <<\EOF
3272#define WITH_AIXAUTHENTICATE 1
3273EOF
3274
3275else
3276 echo "$as_me:3276: checking for authenticate in -ls" >&5
3277echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3278if test "${ac_cv_lib_s_authenticate+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281 ac_check_lib_save_LIBS=$LIBS
3282LIBS="-ls $LIBS"
3283cat >conftest.$ac_ext <<_ACEOF
3284#line 3284 "configure"
3285#include "confdefs.h"
3286
3287/* Override any gcc2 internal prototype to avoid an error. */
3288#ifdef __cplusplus
3289extern "C"
3290#endif
3291/* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3293char authenticate ();
3294int
3295main ()
3296{
3297authenticate ();
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302rm -f conftest.$ac_objext conftest$ac_exeext
3303if { (eval echo "$as_me:3303: \"$ac_link\"") >&5
3304 (eval $ac_link) 2>&5
3305 ac_status=$?
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -s conftest$ac_exeext'
3309 { (eval echo "$as_me:3309: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:3312: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_cv_lib_s_authenticate=yes
3315else
3316 echo "$as_me: failed program was:" >&5
3317cat conftest.$ac_ext >&5
3318ac_cv_lib_s_authenticate=no
3319fi
3320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3321LIBS=$ac_check_lib_save_LIBS
3322fi
3323echo "$as_me:3323: result: $ac_cv_lib_s_authenticate" >&5
3324echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3325if test $ac_cv_lib_s_authenticate = yes; then
3326 cat >>confdefs.h <<\EOF
3327#define WITH_AIXAUTHENTICATE 1
3328EOF
3329
3330 LIBS="$LIBS -ls"
3331
3332fi
3333
3334fi
3335
3336 echo "$as_me:3336: checking whether loginfailed is declared" >&5
3337echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
3338if test "${ac_cv_have_decl_loginfailed+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 cat >conftest.$ac_ext <<_ACEOF
3342#line 3342 "configure"
3343#include "confdefs.h"
3344#include <usersec.h>
3345
3346int
3347main ()
3348{
3349#ifndef loginfailed
3350 char *p = (char *) loginfailed;
3351#endif
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:3358: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>&5
3360 ac_status=$?
3361 echo "$as_me:3361: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (eval echo "$as_me:3364: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_cv_have_decl_loginfailed=yes
3370else
3371 echo "$as_me: failed program was:" >&5
3372cat conftest.$ac_ext >&5
3373ac_cv_have_decl_loginfailed=no
3374fi
3375rm -f conftest.$ac_objext conftest.$ac_ext
3376fi
3377echo "$as_me:3377: result: $ac_cv_have_decl_loginfailed" >&5
3378echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
3379if test $ac_cv_have_decl_loginfailed = yes; then
3380 echo "$as_me:3380: checking if loginfailed takes 4 arguments" >&5
3381echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3383#line 3383 "configure"
3384#include "confdefs.h"
3385#include <usersec.h>
3386int
3387main ()
3388{
3389(void)loginfailed("user","host","tty",0);
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3397 ac_status=$?
3398 echo "$as_me:3398: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:3401: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 echo "$as_me:3406: result: yes" >&5
3407echo "${ECHO_T}yes" >&6
3408 cat >>confdefs.h <<\EOF
3409#define AIX_LOGINFAILED_4ARG 1
3410EOF
3411
3412else
3413 echo "$as_me: failed program was:" >&5
3414cat conftest.$ac_ext >&5
3415echo "$as_me:3415: result: no" >&5
3416echo "${ECHO_T}no" >&6
3417
3418fi
3419rm -f conftest.$ac_objext conftest.$ac_ext
3420fi
3421
3422for ac_func in setauthdb
3423do
3424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3425echo "$as_me:3425: checking for $ac_func" >&5
3426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3427if eval "test \"\${$as_ac_var+set}\" = set"; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 cat >conftest.$ac_ext <<_ACEOF
3431#line 3431 "configure"
3432#include "confdefs.h"
3433/* System header to define __stub macros and hopefully few prototypes,
3434 which can conflict with char $ac_func (); below. */
3435#include <assert.h>
3436/* Override any gcc2 internal prototype to avoid an error. */
3437#ifdef __cplusplus
3438extern "C"
3439#endif
3440/* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442char $ac_func ();
3443char (*f) ();
3444
3445int
3446main ()
3447{
3448/* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3452choke me
3453#else
3454f = $ac_func;
3455#endif
3456
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext conftest$ac_exeext
3462if { (eval echo "$as_me:3462: \"$ac_link\"") >&5
3463 (eval $ac_link) 2>&5
3464 ac_status=$?
3465 echo "$as_me:3465: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 eval "$as_ac_var=yes"
3474else
3475 echo "$as_me: failed program was:" >&5
3476cat conftest.$ac_ext >&5
3477eval "$as_ac_var=no"
3478fi
3479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3480fi
3481echo "$as_me:3481: result: `eval echo '${'$as_ac_var'}'`" >&5
3482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3483if test `eval echo '${'$as_ac_var'}'` = yes; then
3484 cat >>confdefs.h <<EOF
3485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3486EOF
3487
3488fi
3489done
3490
3491 cat >>confdefs.h <<\EOF
3492#define BROKEN_GETADDRINFO 1
3493EOF
3494
3495 cat >>confdefs.h <<\EOF
3496#define BROKEN_REALPATH 1
3497EOF
3498
3499 cat >>confdefs.h <<\EOF
3500#define SETEUID_BREAKS_SETUID 1
3501EOF
3502
3503 cat >>confdefs.h <<\EOF
3504#define BROKEN_SETREUID 1
3505EOF
3506
3507 cat >>confdefs.h <<\EOF
3508#define BROKEN_SETREGID 1
3509EOF
3510
3511 cat >>confdefs.h <<\EOF
3512#define DISABLE_LASTLOG 1
3513EOF
3514
3515 cat >>confdefs.h <<\EOF
3516#define LOGIN_NEEDS_UTMPX 1
3517EOF
3518
3519 cat >>confdefs.h <<\EOF
3520#define SPT_TYPE SPT_REUSEARGV
3521EOF
3522
3523 ;;
3524*-*-cygwin*)
3525 check_for_libcrypt_later=1
3526 LIBS="$LIBS /usr/lib/textmode.o"
3527 cat >>confdefs.h <<\EOF
3528#define HAVE_CYGWIN 1
3529EOF
3530
3531 cat >>confdefs.h <<\EOF
3532#define USE_PIPES 1
3533EOF
3534
3535 cat >>confdefs.h <<\EOF
3536#define DISABLE_SHADOW 1
3537EOF
3538
3539 cat >>confdefs.h <<\EOF
3540#define IP_TOS_IS_BROKEN 1
3541EOF
3542
3543 cat >>confdefs.h <<\EOF
3544#define NO_X11_UNIX_SOCKETS 1
3545EOF
3546
3547 cat >>confdefs.h <<\EOF
3548#define NO_IPPORT_RESERVED_CONCEPT 1
3549EOF
3550
3551 cat >>confdefs.h <<\EOF
3552#define DISABLE_FD_PASSING 1
3553EOF
3554
3555 cat >>confdefs.h <<\EOF
3556#define SETGROUPS_NOOP 1
3557EOF
3558
3559 ;;
3560*-*-dgux*)
3561 cat >>confdefs.h <<\EOF
3562#define IP_TOS_IS_BROKEN 1
3563EOF
3564
3565 cat >>confdefs.h <<\EOF
3566#define SETEUID_BREAKS_SETUID 1
3567EOF
3568
3569 cat >>confdefs.h <<\EOF
3570#define BROKEN_SETREUID 1
3571EOF
3572
3573 cat >>confdefs.h <<\EOF
3574#define BROKEN_SETREGID 1
3575EOF
3576
3577 ;;
3578*-*-darwin*)
3579 echo "$as_me:3579: checking if we have working getaddrinfo" >&5
3580echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3581 if test "$cross_compiling" = yes; then
3582 echo "$as_me:3582: result: assume it is working" >&5
3583echo "${ECHO_T}assume it is working" >&6
3584else
3585 cat >conftest.$ac_ext <<_ACEOF
3586#line 3586 "configure"
3587#include "confdefs.h"
3588#include <mach-o/dyld.h>
3589main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3590 exit(0);
3591 else
3592 exit(1);
3593}
3594_ACEOF
3595rm -f conftest$ac_exeext
3596if { (eval echo "$as_me:3596: \"$ac_link\"") >&5
3597 (eval $ac_link) 2>&5
3598 ac_status=$?
3599 echo "$as_me:3599: \$? = $ac_status" >&5
3600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3601 { (eval echo "$as_me:3601: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:3604: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 echo "$as_me:3606: result: working" >&5
3607echo "${ECHO_T}working" >&6
3608else
3609 echo "$as_me: program exited with status $ac_status" >&5
3610echo "$as_me: failed program was:" >&5
3611cat conftest.$ac_ext >&5
3612echo "$as_me:3612: result: buggy" >&5
3613echo "${ECHO_T}buggy" >&6
3614 cat >>confdefs.h <<\EOF
3615#define BROKEN_GETADDRINFO 1
3616EOF
3617
3618fi
3619rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3620fi
3621 cat >>confdefs.h <<\EOF
3622#define SETEUID_BREAKS_SETUID 1
3623EOF
3624
3625 cat >>confdefs.h <<\EOF
3626#define BROKEN_SETREUID 1
3627EOF
3628
3629 cat >>confdefs.h <<\EOF
3630#define BROKEN_SETREGID 1
3631EOF
3632
3633 cat >>confdefs.h <<EOF
3634#define BIND_8_COMPAT 1
3635EOF
3636
3637 ;;
3638*-*-hpux10.26)
3639 if test -z "$GCC"; then
3640 CFLAGS="$CFLAGS -Ae"
3641 fi
3642 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3643 IPADDR_IN_DISPLAY=yes
3644 cat >>confdefs.h <<\EOF
3645#define HAVE_SECUREWARE 1
3646EOF
3647
3648 cat >>confdefs.h <<\EOF
3649#define USE_PIPES 1
3650EOF
3651
3652 cat >>confdefs.h <<\EOF
3653#define LOGIN_NO_ENDOPT 1
3654EOF
3655
3656 cat >>confdefs.h <<\EOF
3657#define LOGIN_NEEDS_UTMPX 1
3658EOF
3659
3660 cat >>confdefs.h <<\EOF
3661#define LOCKED_PASSWD_STRING "*"
3662EOF
3663
3664 cat >>confdefs.h <<\EOF
3665#define SPT_TYPE SPT_PSTAT
3666EOF
3667
3668 LIBS="$LIBS -lsec -lsecpw"
3669
3670echo "$as_me:3670: checking for t_error in -lxnet" >&5
3671echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3672if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 ac_check_lib_save_LIBS=$LIBS
3676LIBS="-lxnet $LIBS"
3677cat >conftest.$ac_ext <<_ACEOF
3678#line 3678 "configure"
3679#include "confdefs.h"
3680
3681/* Override any gcc2 internal prototype to avoid an error. */
3682#ifdef __cplusplus
3683extern "C"
3684#endif
3685/* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687char t_error ();
3688int
3689main ()
3690{
3691t_error ();
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
3697if { (eval echo "$as_me:3697: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 echo "$as_me:3700: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -s conftest$ac_exeext'
3703 { (eval echo "$as_me:3703: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_lib_xnet_t_error=yes
3709else
3710 echo "$as_me: failed program was:" >&5
3711cat conftest.$ac_ext >&5
3712ac_cv_lib_xnet_t_error=no
3713fi
3714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3715LIBS=$ac_check_lib_save_LIBS
3716fi
3717echo "$as_me:3717: result: $ac_cv_lib_xnet_t_error" >&5
3718echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3719if test $ac_cv_lib_xnet_t_error = yes; then
3720 cat >>confdefs.h <<EOF
3721#define HAVE_LIBXNET 1
3722EOF
3723
3724 LIBS="-lxnet $LIBS"
3725
3726else
3727 { { echo "$as_me:3727: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3728echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3729 { (exit 1); exit 1; }; }
3730fi
3731
3732 disable_ptmx_check=yes
3733 ;;
3734*-*-hpux10*)
3735 if test -z "$GCC"; then
3736 CFLAGS="$CFLAGS -Ae"
3737 fi
3738 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3739 IPADDR_IN_DISPLAY=yes
3740 cat >>confdefs.h <<\EOF
3741#define USE_PIPES 1
3742EOF
3743
3744 cat >>confdefs.h <<\EOF
3745#define LOGIN_NO_ENDOPT 1
3746EOF
3747
3748 cat >>confdefs.h <<\EOF
3749#define LOGIN_NEEDS_UTMPX 1
3750EOF
3751
3752 cat >>confdefs.h <<\EOF
3753#define LOCKED_PASSWD_STRING "*"
3754EOF
3755
3756 cat >>confdefs.h <<\EOF
3757#define SPT_TYPE SPT_PSTAT
3758EOF
3759
3760 LIBS="$LIBS -lsec"
3761
3762echo "$as_me:3762: checking for t_error in -lxnet" >&5
3763echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3764if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 ac_check_lib_save_LIBS=$LIBS
3768LIBS="-lxnet $LIBS"
3769cat >conftest.$ac_ext <<_ACEOF
3770#line 3770 "configure"
3771#include "confdefs.h"
3772
3773/* Override any gcc2 internal prototype to avoid an error. */
3774#ifdef __cplusplus
3775extern "C"
3776#endif
3777/* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3779char t_error ();
3780int
3781main ()
3782{
3783t_error ();
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:3789: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>&5
3791 ac_status=$?
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_lib_xnet_t_error=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803cat conftest.$ac_ext >&5
3804ac_cv_lib_xnet_t_error=no
3805fi
3806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807LIBS=$ac_check_lib_save_LIBS
3808fi
3809echo "$as_me:3809: result: $ac_cv_lib_xnet_t_error" >&5
3810echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3811if test $ac_cv_lib_xnet_t_error = yes; then
3812 cat >>confdefs.h <<EOF
3813#define HAVE_LIBXNET 1
3814EOF
3815
3816 LIBS="-lxnet $LIBS"
3817
3818else
3819 { { echo "$as_me:3819: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3820echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3821 { (exit 1); exit 1; }; }
3822fi
3823
3824 ;;
3825*-*-hpux11*)
3826 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3827 IPADDR_IN_DISPLAY=yes
3828 cat >>confdefs.h <<\EOF
3829#define PAM_SUN_CODEBASE 1
3830EOF
3831
3832 cat >>confdefs.h <<\EOF
3833#define USE_PIPES 1
3834EOF
3835
3836 cat >>confdefs.h <<\EOF
3837#define LOGIN_NO_ENDOPT 1
3838EOF
3839
3840 cat >>confdefs.h <<\EOF
3841#define LOGIN_NEEDS_UTMPX 1
3842EOF
3843
3844 cat >>confdefs.h <<\EOF
3845#define DISABLE_UTMP 1
3846EOF
3847
3848 cat >>confdefs.h <<\EOF
3849#define LOCKED_PASSWD_STRING "*"
3850EOF
3851
3852 cat >>confdefs.h <<\EOF
3853#define SPT_TYPE SPT_PSTAT
3854EOF
3855
3856 check_for_hpux_broken_getaddrinfo=1
3857 LIBS="$LIBS -lsec"
3858
3859echo "$as_me:3859: checking for t_error in -lxnet" >&5
3860echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3861if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 ac_check_lib_save_LIBS=$LIBS
3865LIBS="-lxnet $LIBS"
3866cat >conftest.$ac_ext <<_ACEOF
3867#line 3867 "configure"
3868#include "confdefs.h"
3869
3870/* Override any gcc2 internal prototype to avoid an error. */
3871#ifdef __cplusplus
3872extern "C"
3873#endif
3874/* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876char t_error ();
3877int
3878main ()
3879{
3880t_error ();
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885rm -f conftest.$ac_objext conftest$ac_exeext
3886if { (eval echo "$as_me:3886: \"$ac_link\"") >&5
3887 (eval $ac_link) 2>&5
3888 ac_status=$?
3889 echo "$as_me:3889: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_lib_xnet_t_error=yes
3898else
3899 echo "$as_me: failed program was:" >&5
3900cat conftest.$ac_ext >&5
3901ac_cv_lib_xnet_t_error=no
3902fi
3903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904LIBS=$ac_check_lib_save_LIBS
3905fi
3906echo "$as_me:3906: result: $ac_cv_lib_xnet_t_error" >&5
3907echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3908if test $ac_cv_lib_xnet_t_error = yes; then
3909 cat >>confdefs.h <<EOF
3910#define HAVE_LIBXNET 1
3911EOF
3912
3913 LIBS="-lxnet $LIBS"
3914
3915else
3916 { { echo "$as_me:3916: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3917echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3918 { (exit 1); exit 1; }; }
3919fi
3920
3921 ;;
3922*-*-irix5*)
3923 PATH="$PATH:/usr/etc"
3924 cat >>confdefs.h <<\EOF
3925#define BROKEN_INET_NTOA 1
3926EOF
3927
3928 cat >>confdefs.h <<\EOF
3929#define SETEUID_BREAKS_SETUID 1
3930EOF
3931
3932 cat >>confdefs.h <<\EOF
3933#define BROKEN_SETREUID 1
3934EOF
3935
3936 cat >>confdefs.h <<\EOF
3937#define BROKEN_SETREGID 1
3938EOF
3939
3940 cat >>confdefs.h <<\EOF
3941#define WITH_ABBREV_NO_TTY 1
3942EOF
3943
3944 cat >>confdefs.h <<\EOF
3945#define LOCKED_PASSWD_STRING "*LK*"
3946EOF
3947
3948 ;;
3949*-*-irix6*)
3950 PATH="$PATH:/usr/etc"
3951 cat >>confdefs.h <<\EOF
3952#define WITH_IRIX_ARRAY 1
3953EOF
3954
3955 cat >>confdefs.h <<\EOF
3956#define WITH_IRIX_PROJECT 1
3957EOF
3958
3959 cat >>confdefs.h <<\EOF
3960#define WITH_IRIX_AUDIT 1
3961EOF
3962
3963 echo "$as_me:3963: checking for jlimit_startjob" >&5
3964echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3965if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 cat >conftest.$ac_ext <<_ACEOF
3969#line 3969 "configure"
3970#include "confdefs.h"
3971/* System header to define __stub macros and hopefully few prototypes,
3972 which can conflict with char jlimit_startjob (); below. */
3973#include <assert.h>
3974/* Override any gcc2 internal prototype to avoid an error. */
3975#ifdef __cplusplus
3976extern "C"
3977#endif
3978/* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980char jlimit_startjob ();
3981char (*f) ();
3982
3983int
3984main ()
3985{
3986/* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3990choke me
3991#else
3992f = jlimit_startjob;
3993#endif
3994
3995 ;
3996 return 0;
3997}
3998_ACEOF
3999rm -f conftest.$ac_objext conftest$ac_exeext
4000if { (eval echo "$as_me:4000: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>&5
4002 ac_status=$?
4003 echo "$as_me:4003: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -s conftest$ac_exeext'
4006 { (eval echo "$as_me:4006: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:4009: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_func_jlimit_startjob=yes
4012else
4013 echo "$as_me: failed program was:" >&5
4014cat conftest.$ac_ext >&5
4015ac_cv_func_jlimit_startjob=no
4016fi
4017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4018fi
4019echo "$as_me:4019: result: $ac_cv_func_jlimit_startjob" >&5
4020echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4021if test $ac_cv_func_jlimit_startjob = yes; then
4022 cat >>confdefs.h <<\EOF
4023#define WITH_IRIX_JOBS 1
4024EOF
4025
4026fi
4027
4028 cat >>confdefs.h <<\EOF
4029#define BROKEN_INET_NTOA 1
4030EOF
4031
4032 cat >>confdefs.h <<\EOF
4033#define SETEUID_BREAKS_SETUID 1
4034EOF
4035
4036 cat >>confdefs.h <<\EOF
4037#define BROKEN_SETREUID 1
4038EOF
4039
4040 cat >>confdefs.h <<\EOF
4041#define BROKEN_SETREGID 1
4042EOF
4043
4044 cat >>confdefs.h <<\EOF
4045#define BROKEN_UPDWTMPX 1
4046EOF
4047
4048 cat >>confdefs.h <<\EOF
4049#define WITH_ABBREV_NO_TTY 1
4050EOF
4051
4052 cat >>confdefs.h <<\EOF
4053#define LOCKED_PASSWD_STRING "*LK*"
4054EOF
4055
4056 ;;
4057*-*-linux*)
4058 no_dev_ptmx=1
4059 check_for_libcrypt_later=1
4060 check_for_openpty_ctty_bug=1
4061 cat >>confdefs.h <<\EOF
4062#define DONT_TRY_OTHER_AF 1
4063EOF
4064
4065 cat >>confdefs.h <<\EOF
4066#define PAM_TTY_KLUDGE 1
4067EOF
4068
4069 cat >>confdefs.h <<\EOF
4070#define LOCKED_PASSWD_PREFIX "!"
4071EOF
4072
4073 cat >>confdefs.h <<\EOF
4074#define SPT_TYPE SPT_REUSEARGV
4075EOF
4076
4077 inet6_default_4in6=yes
4078 case `uname -r` in
4079 1.*|2.0.*)
4080 cat >>confdefs.h <<\EOF
4081#define BROKEN_CMSG_TYPE 1
4082EOF
4083
4084 ;;
4085 esac
4086 ;;
4087mips-sony-bsd|mips-sony-newsos4)
4088 cat >>confdefs.h <<\EOF
4089#define HAVE_NEWS4 1
4090EOF
4091
4092 SONY=1
4093 ;;
4094*-*-netbsd*)
4095 check_for_libcrypt_before=1
4096 if test "x$withval" != "xno" ; then
4097 need_dash_r=1
4098 fi
4099 ;;
4100*-*-freebsd*)
4101 check_for_libcrypt_later=1
4102 ;;
4103*-*-bsdi*)
4104 cat >>confdefs.h <<\EOF
4105#define SETEUID_BREAKS_SETUID 1
4106EOF
4107
4108 cat >>confdefs.h <<\EOF
4109#define BROKEN_SETREUID 1
4110EOF
4111
4112 cat >>confdefs.h <<\EOF
4113#define BROKEN_SETREGID 1
4114EOF
4115
4116 ;;
4117*-next-*)
4118 conf_lastlog_location="/usr/adm/lastlog"
4119 conf_utmp_location=/etc/utmp
4120 conf_wtmp_location=/usr/adm/wtmp
4121 MAIL=/usr/spool/mail
4122 cat >>confdefs.h <<\EOF
4123#define HAVE_NEXT 1
4124EOF
4125
4126 cat >>confdefs.h <<\EOF
4127#define BROKEN_REALPATH 1
4128EOF
4129
4130 cat >>confdefs.h <<\EOF
4131#define USE_PIPES 1
4132EOF
4133
4134 cat >>confdefs.h <<\EOF
4135#define BROKEN_SAVED_UIDS 1
4136EOF
4137
4138 ;;
4139*-*-solaris*)
4140 if test "x$withval" != "xno" ; then
4141 need_dash_r=1
4142 fi
4143 cat >>confdefs.h <<\EOF
4144#define PAM_SUN_CODEBASE 1
4145EOF
4146
4147 cat >>confdefs.h <<\EOF
4148#define LOGIN_NEEDS_UTMPX 1
4149EOF
4150
4151 cat >>confdefs.h <<\EOF
4152#define LOGIN_NEEDS_TERM 1
4153EOF
4154
4155 cat >>confdefs.h <<\EOF
4156#define PAM_TTY_KLUDGE 1
4157EOF
4158
4159 cat >>confdefs.h <<\EOF
4160#define LOCKED_PASSWD_STRING "*LK*"
4161EOF
4162
4163 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
4164 cat >>confdefs.h <<\EOF
4165#define SSHD_ACQUIRES_CTTY 1
4166EOF
4167
4168 external_path_file=/etc/default/login
4169 # hardwire lastlog location (can't detect it on some versions)
4170 conf_lastlog_location="/var/adm/lastlog"
4171 echo "$as_me:4171: checking for obsolete utmp and wtmp in solaris2.x" >&5
4172echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4173 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4174 if test "$sol2ver" -ge 8; then
4175 echo "$as_me:4175: result: yes" >&5
4176echo "${ECHO_T}yes" >&6
4177 cat >>confdefs.h <<\EOF
4178#define DISABLE_UTMP 1
4179EOF
4180
4181 cat >>confdefs.h <<\EOF
4182#define DISABLE_WTMP 1
4183EOF
4184
4185 else
4186 echo "$as_me:4186: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188 fi
4189 ;;
4190*-*-sunos4*)
4191 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4192
4193for ac_func in getpwanam
4194do
4195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4196echo "$as_me:4196: checking for $ac_func" >&5
4197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4198if eval "test \"\${$as_ac_var+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 cat >conftest.$ac_ext <<_ACEOF
4202#line 4202 "configure"
4203#include "confdefs.h"
4204/* System header to define __stub macros and hopefully few prototypes,
4205 which can conflict with char $ac_func (); below. */
4206#include <assert.h>
4207/* Override any gcc2 internal prototype to avoid an error. */
4208#ifdef __cplusplus
4209extern "C"
4210#endif
4211/* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213char $ac_func ();
4214char (*f) ();
4215
4216int
4217main ()
4218{
4219/* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4223choke me
4224#else
4225f = $ac_func;
4226#endif
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232rm -f conftest.$ac_objext conftest$ac_exeext
4233if { (eval echo "$as_me:4233: \"$ac_link\"") >&5
4234 (eval $ac_link) 2>&5
4235 ac_status=$?
4236 echo "$as_me:4236: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -s conftest$ac_exeext'
4239 { (eval echo "$as_me:4239: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 eval "$as_ac_var=yes"
4245else
4246 echo "$as_me: failed program was:" >&5
4247cat conftest.$ac_ext >&5
4248eval "$as_ac_var=no"
4249fi
4250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251fi
4252echo "$as_me:4252: result: `eval echo '${'$as_ac_var'}'`" >&5
4253echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4254if test `eval echo '${'$as_ac_var'}'` = yes; then
4255 cat >>confdefs.h <<EOF
4256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4257EOF
4258
4259fi
4260done
4261
4262 cat >>confdefs.h <<\EOF
4263#define PAM_SUN_CODEBASE 1
4264EOF
4265
4266 conf_utmp_location=/etc/utmp
4267 conf_wtmp_location=/var/adm/wtmp
4268 conf_lastlog_location=/var/adm/lastlog
4269 cat >>confdefs.h <<\EOF
4270#define USE_PIPES 1
4271EOF
4272
4273 ;;
4274*-ncr-sysv*)
4275 LIBS="$LIBS -lc89"
4276 cat >>confdefs.h <<\EOF
4277#define USE_PIPES 1
4278EOF
4279
4280 cat >>confdefs.h <<\EOF
4281#define SSHD_ACQUIRES_CTTY 1
4282EOF
4283
4284 cat >>confdefs.h <<\EOF
4285#define SETEUID_BREAKS_SETUID 1
4286EOF
4287
4288 cat >>confdefs.h <<\EOF
4289#define BROKEN_SETREUID 1
4290EOF
4291
4292 cat >>confdefs.h <<\EOF
4293#define BROKEN_SETREGID 1
4294EOF
4295
4296 ;;
4297*-sni-sysv*)
4298 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4299
4300echo "$as_me:4300: checking for dlsym in -ldl" >&5
4301echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4302if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305 ac_check_lib_save_LIBS=$LIBS
4306LIBS="-ldl $LIBS"
4307cat >conftest.$ac_ext <<_ACEOF
4308#line 4308 "configure"
4309#include "confdefs.h"
4310
4311/* Override any gcc2 internal prototype to avoid an error. */
4312#ifdef __cplusplus
4313extern "C"
4314#endif
4315/* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4317char dlsym ();
4318int
4319main ()
4320{
4321dlsym ();
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext conftest$ac_exeext
4327if { (eval echo "$as_me:4327: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>&5
4329 ac_status=$?
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest$ac_exeext'
4333 { (eval echo "$as_me:4333: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_lib_dl_dlsym=yes
4339else
4340 echo "$as_me: failed program was:" >&5
4341cat conftest.$ac_ext >&5
4342ac_cv_lib_dl_dlsym=no
4343fi
4344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4345LIBS=$ac_check_lib_save_LIBS
4346fi
4347echo "$as_me:4347: result: $ac_cv_lib_dl_dlsym" >&5
4348echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4349if test $ac_cv_lib_dl_dlsym = yes; then
4350 cat >>confdefs.h <<EOF
4351#define HAVE_LIBDL 1
4352EOF
4353
4354 LIBS="-ldl $LIBS"
4355
4356fi
4357
4358 IPADDR_IN_DISPLAY=yes
4359 cat >>confdefs.h <<\EOF
4360#define USE_PIPES 1
4361EOF
4362
4363 cat >>confdefs.h <<\EOF
4364#define IP_TOS_IS_BROKEN 1
4365EOF
4366
4367 cat >>confdefs.h <<\EOF
4368#define SETEUID_BREAKS_SETUID 1
4369EOF
4370
4371 cat >>confdefs.h <<\EOF
4372#define BROKEN_SETREUID 1
4373EOF
4374
4375 cat >>confdefs.h <<\EOF
4376#define BROKEN_SETREGID 1
4377EOF
4378
4379 cat >>confdefs.h <<\EOF
4380#define SSHD_ACQUIRES_CTTY 1
4381EOF
4382
4383 external_path_file=/etc/default/login
4384 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4385 # Attention: always take care to bind libsocket and libnsl before libc,
4386 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4387 ;;
4388*-*-sysv4.2*)
4389 cat >>confdefs.h <<\EOF
4390#define USE_PIPES 1
4391EOF
4392
4393 cat >>confdefs.h <<\EOF
4394#define SETEUID_BREAKS_SETUID 1
4395EOF
4396
4397 cat >>confdefs.h <<\EOF
4398#define BROKEN_SETREUID 1
4399EOF
4400
4401 cat >>confdefs.h <<\EOF
4402#define BROKEN_SETREGID 1
4403EOF
4404
4405 ;;
4406*-*-sysv5*)
4407 cat >>confdefs.h <<\EOF
4408#define USE_PIPES 1
4409EOF
4410
4411 cat >>confdefs.h <<\EOF
4412#define SETEUID_BREAKS_SETUID 1
4413EOF
4414
4415 cat >>confdefs.h <<\EOF
4416#define BROKEN_SETREUID 1
4417EOF
4418
4419 cat >>confdefs.h <<\EOF
4420#define BROKEN_SETREGID 1
4421EOF
4422
4423 ;;
4424*-*-sysv*)
4425 ;;
4426*-*-sco3.2v4*)
4427 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize"
4428 LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm"
4429 RANLIB=true
4430 no_dev_ptmx=1
4431 cat >>confdefs.h <<\EOF
4432#define BROKEN_SYS_TERMIO_H 1
4433EOF
4434
4435 cat >>confdefs.h <<\EOF
4436#define USE_PIPES 1
4437EOF
4438
4439 cat >>confdefs.h <<\EOF
4440#define HAVE_SECUREWARE 1
4441EOF
4442
4443 cat >>confdefs.h <<\EOF
4444#define DISABLE_SHADOW 1
4445EOF
4446
4447 cat >>confdefs.h <<\EOF
4448#define BROKEN_SAVED_UIDS 1
4449EOF
4450
4451 cat >>confdefs.h <<\EOF
4452#define SETEUID_BREAKS_SETUID 1
4453EOF
4454
4455 cat >>confdefs.h <<\EOF
4456#define BROKEN_SETREUID 1
4457EOF
4458
4459 cat >>confdefs.h <<\EOF
4460#define BROKEN_SETREGID 1
4461EOF
4462
4463 cat >>confdefs.h <<\EOF
4464#define WITH_ABBREV_NO_TTY 1
4465EOF
4466
4467for ac_func in getluid setluid
4468do
4469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4470echo "$as_me:4470: checking for $ac_func" >&5
4471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4472if eval "test \"\${$as_ac_var+set}\" = set"; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 cat >conftest.$ac_ext <<_ACEOF
4476#line 4476 "configure"
4477#include "confdefs.h"
4478/* System header to define __stub macros and hopefully few prototypes,
4479 which can conflict with char $ac_func (); below. */
4480#include <assert.h>
4481/* Override any gcc2 internal prototype to avoid an error. */
4482#ifdef __cplusplus
4483extern "C"
4484#endif
4485/* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4487char $ac_func ();
4488char (*f) ();
4489
4490int
4491main ()
4492{
4493/* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497choke me
4498#else
4499f = $ac_func;
4500#endif
4501
4502 ;
4503 return 0;
4504}
4505_ACEOF
4506rm -f conftest.$ac_objext conftest$ac_exeext
4507if { (eval echo "$as_me:4507: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:4510: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:4513: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:4516: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 eval "$as_ac_var=yes"
4519else
4520 echo "$as_me: failed program was:" >&5
4521cat conftest.$ac_ext >&5
4522eval "$as_ac_var=no"
4523fi
4524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525fi
4526echo "$as_me:4526: result: `eval echo '${'$as_ac_var'}'`" >&5
4527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4528if test `eval echo '${'$as_ac_var'}'` = yes; then
4529 cat >>confdefs.h <<EOF
4530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4531EOF
4532
4533fi
4534done
4535
4536 MANTYPE=man
4537 do_sco3_extra_lib_check=yes
4538 ;;
4539*-*-sco3.2v5*)
4540 if test -z "$GCC"; then
4541 CFLAGS="$CFLAGS -belf"
4542 fi
4543 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4544 no_dev_ptmx=1
4545 cat >>confdefs.h <<\EOF
4546#define USE_PIPES 1
4547EOF
4548
4549 cat >>confdefs.h <<\EOF
4550#define HAVE_SECUREWARE 1
4551EOF
4552
4553 cat >>confdefs.h <<\EOF
4554#define DISABLE_SHADOW 1
4555EOF
4556
4557 cat >>confdefs.h <<\EOF
4558#define DISABLE_FD_PASSING 1
4559EOF
4560
4561 cat >>confdefs.h <<\EOF
4562#define SETEUID_BREAKS_SETUID 1
4563EOF
4564
4565 cat >>confdefs.h <<\EOF
4566#define BROKEN_SETREUID 1
4567EOF
4568
4569 cat >>confdefs.h <<\EOF
4570#define BROKEN_SETREGID 1
4571EOF
4572
4573 cat >>confdefs.h <<\EOF
4574#define WITH_ABBREV_NO_TTY 1
4575EOF
4576
4577for ac_func in getluid setluid
4578do
4579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4580echo "$as_me:4580: checking for $ac_func" >&5
4581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4582if eval "test \"\${$as_ac_var+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 cat >conftest.$ac_ext <<_ACEOF
4586#line 4586 "configure"
4587#include "confdefs.h"
4588/* System header to define __stub macros and hopefully few prototypes,
4589 which can conflict with char $ac_func (); below. */
4590#include <assert.h>
4591/* Override any gcc2 internal prototype to avoid an error. */
4592#ifdef __cplusplus
4593extern "C"
4594#endif
4595/* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4597char $ac_func ();
4598char (*f) ();
4599
4600int
4601main ()
4602{
4603/* The GNU C library defines this for functions which it implements
4604 to always fail with ENOSYS. Some functions are actually named
4605 something starting with __ and the normal name is an alias. */
4606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4607choke me
4608#else
4609f = $ac_func;
4610#endif
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:4617: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>&5
4619 ac_status=$?
4620 echo "$as_me:4620: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -s conftest$ac_exeext'
4623 { (eval echo "$as_me:4623: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:4626: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 eval "$as_ac_var=yes"
4629else
4630 echo "$as_me: failed program was:" >&5
4631cat conftest.$ac_ext >&5
4632eval "$as_ac_var=no"
4633fi
4634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4635fi
4636echo "$as_me:4636: result: `eval echo '${'$as_ac_var'}'`" >&5
4637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4638if test `eval echo '${'$as_ac_var'}'` = yes; then
4639 cat >>confdefs.h <<EOF
4640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4641EOF
4642
4643fi
4644done
4645
4646 MANTYPE=man
4647 ;;
4648*-*-unicosmk*)
4649 cat >>confdefs.h <<\EOF
4650#define NO_SSH_LASTLOG 1
4651EOF
4652
4653 cat >>confdefs.h <<\EOF
4654#define SETEUID_BREAKS_SETUID 1
4655EOF
4656
4657 cat >>confdefs.h <<\EOF
4658#define BROKEN_SETREUID 1
4659EOF
4660
4661 cat >>confdefs.h <<\EOF
4662#define BROKEN_SETREGID 1
4663EOF
4664
4665 cat >>confdefs.h <<\EOF
4666#define USE_PIPES 1
4667EOF
4668
4669 cat >>confdefs.h <<\EOF
4670#define DISABLE_FD_PASSING 1
4671EOF
4672
4673 LDFLAGS="$LDFLAGS"
4674 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4675 MANTYPE=cat
4676 ;;
4677*-*-unicosmp*)
4678 cat >>confdefs.h <<\EOF
4679#define SETEUID_BREAKS_SETUID 1
4680EOF
4681
4682 cat >>confdefs.h <<\EOF
4683#define BROKEN_SETREUID 1
4684EOF
4685
4686 cat >>confdefs.h <<\EOF
4687#define BROKEN_SETREGID 1
4688EOF
4689
4690 cat >>confdefs.h <<\EOF
4691#define WITH_ABBREV_NO_TTY 1
4692EOF
4693
4694 cat >>confdefs.h <<\EOF
4695#define USE_PIPES 1
4696EOF
4697
4698 cat >>confdefs.h <<\EOF
4699#define DISABLE_FD_PASSING 1
4700EOF
4701
4702 LDFLAGS="$LDFLAGS"
4703 LIBS="$LIBS -lgen -lacid -ldb"
4704 MANTYPE=cat
4705 ;;
4706*-*-unicos*)
4707 cat >>confdefs.h <<\EOF
4708#define SETEUID_BREAKS_SETUID 1
4709EOF
4710
4711 cat >>confdefs.h <<\EOF
4712#define BROKEN_SETREUID 1
4713EOF
4714
4715 cat >>confdefs.h <<\EOF
4716#define BROKEN_SETREGID 1
4717EOF
4718
4719 cat >>confdefs.h <<\EOF
4720#define USE_PIPES 1
4721EOF
4722
4723 cat >>confdefs.h <<\EOF
4724#define DISABLE_FD_PASSING 1
4725EOF
4726
4727 cat >>confdefs.h <<\EOF
4728#define NO_SSH_LASTLOG 1
4729EOF
4730
4731 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4732 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4733 MANTYPE=cat
4734 ;;
4735*-dec-osf*)
4736 echo "$as_me:4736: checking for Digital Unix SIA" >&5
4737echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4738 no_osfsia=""
4739
4740# Check whether --with-osfsia or --without-osfsia was given.
4741if test "${with_osfsia+set}" = set; then
4742 withval="$with_osfsia"
4743
4744 if test "x$withval" = "xno" ; then
4745 echo "$as_me:4745: result: disabled" >&5
4746echo "${ECHO_T}disabled" >&6
4747 no_osfsia=1
4748 fi
4749
4750fi;
4751 if test -z "$no_osfsia" ; then
4752 if test -f /etc/sia/matrix.conf; then
4753 echo "$as_me:4753: result: yes" >&5
4754echo "${ECHO_T}yes" >&6
4755 cat >>confdefs.h <<\EOF
4756#define HAVE_OSF_SIA 1
4757EOF
4758
4759 cat >>confdefs.h <<\EOF
4760#define DISABLE_LOGIN 1
4761EOF
4762
4763 cat >>confdefs.h <<\EOF
4764#define DISABLE_FD_PASSING 1
4765EOF
4766
4767 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4768 else
4769 echo "$as_me:4769: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771 cat >>confdefs.h <<\EOF
4772#define LOCKED_PASSWD_SUBSTR "Nologin"
4773EOF
4774
4775 fi
4776 fi
4777 cat >>confdefs.h <<\EOF
4778#define BROKEN_GETADDRINFO 1
4779EOF
4780
4781 cat >>confdefs.h <<\EOF
4782#define SETEUID_BREAKS_SETUID 1
4783EOF
4784
4785 cat >>confdefs.h <<\EOF
4786#define BROKEN_SETREUID 1
4787EOF
4788
4789 cat >>confdefs.h <<\EOF
4790#define BROKEN_SETREGID 1
4791EOF
4792
4793 ;;
4794
4795*-*-nto-qnx)
4796 cat >>confdefs.h <<\EOF
4797#define USE_PIPES 1
4798EOF
4799
4800 cat >>confdefs.h <<\EOF
4801#define NO_X11_UNIX_SOCKETS 1
4802EOF
4803
4804 cat >>confdefs.h <<\EOF
4805#define MISSING_NFDBITS 1
4806EOF
4807
4808 cat >>confdefs.h <<\EOF
4809#define MISSING_HOWMANY 1
4810EOF
4811
4812 cat >>confdefs.h <<\EOF
4813#define MISSING_FD_MASK 1
4814EOF
4815
4816 ;;
4817esac
4818
4819# Allow user to specify flags
4820
4821# Check whether --with-cflags or --without-cflags was given.
4822if test "${with_cflags+set}" = set; then
4823 withval="$with_cflags"
4824
4825 if test "x$withval" != "xno" ; then
4826 CFLAGS="$CFLAGS $withval"
4827 fi
4828
4829fi;
4830
4831# Check whether --with-cppflags or --without-cppflags was given.
4832if test "${with_cppflags+set}" = set; then
4833 withval="$with_cppflags"
4834
4835 if test "x$withval" != "xno"; then
4836 CPPFLAGS="$CPPFLAGS $withval"
4837 fi
4838
4839fi;
4840
4841# Check whether --with-ldflags or --without-ldflags was given.
4842if test "${with_ldflags+set}" = set; then
4843 withval="$with_ldflags"
4844
4845 if test "x$withval" != "xno" ; then
4846 LDFLAGS="$LDFLAGS $withval"
4847 fi
4848
4849fi;
4850
4851# Check whether --with-libs or --without-libs was given.
4852if test "${with_libs+set}" = set; then
4853 withval="$with_libs"
4854
4855 if test "x$withval" != "xno" ; then
4856 LIBS="$LIBS $withval"
4857 fi
4858
4859fi;
4860
4861echo "$as_me:4861: checking compiler and flags for sanity" >&5
4862echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
4863if test "$cross_compiling" = yes; then
4864 { { echo "$as_me:4864: error: cannot run test program while cross compiling" >&5
4865echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4866 { (exit 1); exit 1; }; }
4867else
4868 cat >conftest.$ac_ext <<_ACEOF
4869#line 4869 "configure"
4870#include "confdefs.h"
4871
4872#include <stdio.h>
4873int main(){exit(0);}
4874
4875_ACEOF
4876rm -f conftest$ac_exeext
4877if { (eval echo "$as_me:4877: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>&5
4879 ac_status=$?
4880 echo "$as_me:4880: \$? = $ac_status" >&5
4881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882 { (eval echo "$as_me:4882: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:4885: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 echo "$as_me:4887: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
4889else
4890 echo "$as_me: program exited with status $ac_status" >&5
4891echo "$as_me: failed program was:" >&5
4892cat conftest.$ac_ext >&5
4893
4894 echo "$as_me:4894: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896 { { echo "$as_me:4896: error: *** compiler cannot create working executables, check config.log ***" >&5
4897echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
4898 { (exit 1); exit 1; }; }
4899
4900fi
4901rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4902fi
4903
4904# Checks for header files.
4905
4906for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \
4907 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4908 login_cap.h maillock.h netdb.h netgroup.h \
4909 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \
4910 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4911 strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \
4912 sys/cdefs.h sys/mman.h sys/prctl.h sys/pstat.h sys/ptms.h \
4913 sys/select.h sys/stat.h sys/stream.h sys/stropts.h \
4914 sys/sysmacros.h sys/time.h sys/timers.h sys/un.h time.h tmpdir.h \
4915 ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h
4916do
4917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4918echo "$as_me:4918: checking for $ac_header" >&5
4919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4920if eval "test \"\${$as_ac_Header+set}\" = set"; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 cat >conftest.$ac_ext <<_ACEOF
4924#line 4924 "configure"
4925#include "confdefs.h"
4926#include <$ac_header>
4927_ACEOF
4928if { (eval echo "$as_me:4928: \"$ac_cpp conftest.$ac_ext\"") >&5
4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4930 ac_status=$?
4931 egrep -v '^ *\+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:4934: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null; then
4936 if test -s conftest.err; then
4937 ac_cpp_err=$ac_c_preproc_warn_flag
4938 else
4939 ac_cpp_err=
4940 fi
4941else
4942 ac_cpp_err=yes
4943fi
4944if test -z "$ac_cpp_err"; then
4945 eval "$as_ac_Header=yes"
4946else
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 eval "$as_ac_Header=no"
4950fi
4951rm -f conftest.err conftest.$ac_ext
4952fi
4953echo "$as_me:4953: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4955if test `eval echo '${'$as_ac_Header'}'` = yes; then
4956 cat >>confdefs.h <<EOF
4957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4958EOF
4959
4960fi
4961done
4962
4963# Checks for libraries.
4964echo "$as_me:4964: checking for yp_match" >&5
4965echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4966if test "${ac_cv_func_yp_match+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969 cat >conftest.$ac_ext <<_ACEOF
4970#line 4970 "configure"
4971#include "confdefs.h"
4972/* System header to define __stub macros and hopefully few prototypes,
4973 which can conflict with char yp_match (); below. */
4974#include <assert.h>
4975/* Override any gcc2 internal prototype to avoid an error. */
4976#ifdef __cplusplus
4977extern "C"
4978#endif
4979/* We use char because int might match the return type of a gcc2
4980 builtin and then its argument prototype would still apply. */
4981char yp_match ();
4982char (*f) ();
4983
4984int
4985main ()
4986{
4987/* The GNU C library defines this for functions which it implements
4988 to always fail with ENOSYS. Some functions are actually named
4989 something starting with __ and the normal name is an alias. */
4990#if defined (__stub_yp_match) || defined (__stub___yp_match)
4991choke me
4992#else
4993f = yp_match;
4994#endif
4995
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext conftest$ac_exeext
5001if { (eval echo "$as_me:5001: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>&5
5003 ac_status=$?
5004 echo "$as_me:5004: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:5007: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:5010: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_func_yp_match=yes
5013else
5014 echo "$as_me: failed program was:" >&5
5015cat conftest.$ac_ext >&5
5016ac_cv_func_yp_match=no
5017fi
5018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5019fi
5020echo "$as_me:5020: result: $ac_cv_func_yp_match" >&5
5021echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5022if test $ac_cv_func_yp_match = yes; then
5023 :
5024else
5025
5026echo "$as_me:5026: checking for yp_match in -lnsl" >&5
5027echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5028if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031 ac_check_lib_save_LIBS=$LIBS
5032LIBS="-lnsl $LIBS"
5033cat >conftest.$ac_ext <<_ACEOF
5034#line 5034 "configure"
5035#include "confdefs.h"
5036
5037/* Override any gcc2 internal prototype to avoid an error. */
5038#ifdef __cplusplus
5039extern "C"
5040#endif
5041/* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5043char yp_match ();
5044int
5045main ()
5046{
5047yp_match ();
5048 ;
5049 return 0;
5050}
5051_ACEOF
5052rm -f conftest.$ac_objext conftest$ac_exeext
5053if { (eval echo "$as_me:5053: \"$ac_link\"") >&5
5054 (eval $ac_link) 2>&5
5055 ac_status=$?
5056 echo "$as_me:5056: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -s conftest$ac_exeext'
5059 { (eval echo "$as_me:5059: \"$ac_try\"") >&5
5060 (eval $ac_try) 2>&5
5061 ac_status=$?
5062 echo "$as_me:5062: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5064 ac_cv_lib_nsl_yp_match=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067cat conftest.$ac_ext >&5
5068ac_cv_lib_nsl_yp_match=no
5069fi
5070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5071LIBS=$ac_check_lib_save_LIBS
5072fi
5073echo "$as_me:5073: result: $ac_cv_lib_nsl_yp_match" >&5
5074echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5075if test $ac_cv_lib_nsl_yp_match = yes; then
5076 cat >>confdefs.h <<EOF
5077#define HAVE_LIBNSL 1
5078EOF
5079
5080 LIBS="-lnsl $LIBS"
5081
5082fi
5083
5084fi
5085
5086echo "$as_me:5086: checking for setsockopt" >&5
5087echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5088if test "${ac_cv_func_setsockopt+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090else
5091 cat >conftest.$ac_ext <<_ACEOF
5092#line 5092 "configure"
5093#include "confdefs.h"
5094/* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char setsockopt (); below. */
5096#include <assert.h>
5097/* Override any gcc2 internal prototype to avoid an error. */
5098#ifdef __cplusplus
5099extern "C"
5100#endif
5101/* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5103char setsockopt ();
5104char (*f) ();
5105
5106int
5107main ()
5108{
5109/* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5113choke me
5114#else
5115f = setsockopt;
5116#endif
5117
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest.$ac_objext conftest$ac_exeext
5123if { (eval echo "$as_me:5123: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:5126: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:5129: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:5132: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_func_setsockopt=yes
5135else
5136 echo "$as_me: failed program was:" >&5
5137cat conftest.$ac_ext >&5
5138ac_cv_func_setsockopt=no
5139fi
5140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5141fi
5142echo "$as_me:5142: result: $ac_cv_func_setsockopt" >&5
5143echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5144if test $ac_cv_func_setsockopt = yes; then
5145 :
5146else
5147
5148echo "$as_me:5148: checking for setsockopt in -lsocket" >&5
5149echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5150if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 ac_check_lib_save_LIBS=$LIBS
5154LIBS="-lsocket $LIBS"
5155cat >conftest.$ac_ext <<_ACEOF
5156#line 5156 "configure"
5157#include "confdefs.h"
5158
5159/* Override any gcc2 internal prototype to avoid an error. */
5160#ifdef __cplusplus
5161extern "C"
5162#endif
5163/* We use char because int might match the return type of a gcc2
5164 builtin and then its argument prototype would still apply. */
5165char setsockopt ();
5166int
5167main ()
5168{
5169setsockopt ();
5170 ;
5171 return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext conftest$ac_exeext
5175if { (eval echo "$as_me:5175: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>&5
5177 ac_status=$?
5178 echo "$as_me:5178: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -s conftest$ac_exeext'
5181 { (eval echo "$as_me:5181: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:5184: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_lib_socket_setsockopt=yes
5187else
5188 echo "$as_me: failed program was:" >&5
5189cat conftest.$ac_ext >&5
5190ac_cv_lib_socket_setsockopt=no
5191fi
5192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5193LIBS=$ac_check_lib_save_LIBS
5194fi
5195echo "$as_me:5195: result: $ac_cv_lib_socket_setsockopt" >&5
5196echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5197if test $ac_cv_lib_socket_setsockopt = yes; then
5198 cat >>confdefs.h <<EOF
5199#define HAVE_LIBSOCKET 1
5200EOF
5201
5202 LIBS="-lsocket $LIBS"
5203
5204fi
5205
5206fi
5207
5208if test "x$with_tcp_wrappers" != "xno" ; then
5209 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5210 echo "$as_me:5210: checking for innetgr in -lrpc" >&5
5211echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5212if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215 ac_check_lib_save_LIBS=$LIBS
5216LIBS="-lrpc -lyp -lrpc $LIBS"
5217cat >conftest.$ac_ext <<_ACEOF
5218#line 5218 "configure"
5219#include "confdefs.h"
5220
5221/* Override any gcc2 internal prototype to avoid an error. */
5222#ifdef __cplusplus
5223extern "C"
5224#endif
5225/* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5227char innetgr ();
5228int
5229main ()
5230{
5231innetgr ();
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236rm -f conftest.$ac_objext conftest$ac_exeext
5237if { (eval echo "$as_me:5237: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>&5
5239 ac_status=$?
5240 echo "$as_me:5240: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -s conftest$ac_exeext'
5243 { (eval echo "$as_me:5243: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:5246: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_lib_rpc_innetgr=yes
5249else
5250 echo "$as_me: failed program was:" >&5
5251cat conftest.$ac_ext >&5
5252ac_cv_lib_rpc_innetgr=no
5253fi
5254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5255LIBS=$ac_check_lib_save_LIBS
5256fi
5257echo "$as_me:5257: result: $ac_cv_lib_rpc_innetgr" >&5
5258echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5259if test $ac_cv_lib_rpc_innetgr = yes; then
5260 LIBS="-lrpc -lyp -lrpc $LIBS"
5261fi
5262
5263 fi
5264fi
5265
5266for ac_func in dirname
5267do
5268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5269echo "$as_me:5269: checking for $ac_func" >&5
5270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5271if eval "test \"\${$as_ac_var+set}\" = set"; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273else
5274 cat >conftest.$ac_ext <<_ACEOF
5275#line 5275 "configure"
5276#include "confdefs.h"
5277/* System header to define __stub macros and hopefully few prototypes,
5278 which can conflict with char $ac_func (); below. */
5279#include <assert.h>
5280/* Override any gcc2 internal prototype to avoid an error. */
5281#ifdef __cplusplus
5282extern "C"
5283#endif
5284/* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5286char $ac_func ();
5287char (*f) ();
5288
5289int
5290main ()
5291{
5292/* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5296choke me
5297#else
5298f = $ac_func;
5299#endif
5300
5301 ;
5302 return 0;
5303}
5304_ACEOF
5305rm -f conftest.$ac_objext conftest$ac_exeext
5306if { (eval echo "$as_me:5306: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5308 ac_status=$?
5309 echo "$as_me:5309: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:5312: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:5315: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 eval "$as_ac_var=yes"
5318else
5319 echo "$as_me: failed program was:" >&5
5320cat conftest.$ac_ext >&5
5321eval "$as_ac_var=no"
5322fi
5323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5324fi
5325echo "$as_me:5325: result: `eval echo '${'$as_ac_var'}'`" >&5
5326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5327if test `eval echo '${'$as_ac_var'}'` = yes; then
5328 cat >>confdefs.h <<EOF
5329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5330EOF
5331
5332for ac_header in libgen.h
5333do
5334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5335echo "$as_me:5335: checking for $ac_header" >&5
5336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5337if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340 cat >conftest.$ac_ext <<_ACEOF
5341#line 5341 "configure"
5342#include "confdefs.h"
5343#include <$ac_header>
5344_ACEOF
5345if { (eval echo "$as_me:5345: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347 ac_status=$?
5348 egrep -v '^ *\+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:5351: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null; then
5353 if test -s conftest.err; then
5354 ac_cpp_err=$ac_c_preproc_warn_flag
5355 else
5356 ac_cpp_err=
5357 fi
5358else
5359 ac_cpp_err=yes
5360fi
5361if test -z "$ac_cpp_err"; then
5362 eval "$as_ac_Header=yes"
5363else
5364 echo "$as_me: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5366 eval "$as_ac_Header=no"
5367fi
5368rm -f conftest.err conftest.$ac_ext
5369fi
5370echo "$as_me:5370: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5372if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373 cat >>confdefs.h <<EOF
5374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375EOF
5376
5377fi
5378done
5379
5380else
5381
5382 echo "$as_me:5382: checking for dirname in -lgen" >&5
5383echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
5384if test "${ac_cv_lib_gen_dirname+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 ac_check_lib_save_LIBS=$LIBS
5388LIBS="-lgen $LIBS"
5389cat >conftest.$ac_ext <<_ACEOF
5390#line 5390 "configure"
5391#include "confdefs.h"
5392
5393/* Override any gcc2 internal prototype to avoid an error. */
5394#ifdef __cplusplus
5395extern "C"
5396#endif
5397/* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5399char dirname ();
5400int
5401main ()
5402{
5403dirname ();
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext conftest$ac_exeext
5409if { (eval echo "$as_me:5409: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>&5
5411 ac_status=$?
5412 echo "$as_me:5412: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:5415: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:5418: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_lib_gen_dirname=yes
5421else
5422 echo "$as_me: failed program was:" >&5
5423cat conftest.$ac_ext >&5
5424ac_cv_lib_gen_dirname=no
5425fi
5426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427LIBS=$ac_check_lib_save_LIBS
5428fi
5429echo "$as_me:5429: result: $ac_cv_lib_gen_dirname" >&5
5430echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
5431if test $ac_cv_lib_gen_dirname = yes; then
5432
5433 echo "$as_me:5433: checking for broken dirname" >&5
5434echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
5435if test "${ac_cv_have_broken_dirname+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438
5439 save_LIBS="$LIBS"
5440 LIBS="$LIBS -lgen"
5441 if test "$cross_compiling" = yes; then
5442 { { echo "$as_me:5442: error: cannot run test program while cross compiling" >&5
5443echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5444 { (exit 1); exit 1; }; }
5445else
5446 cat >conftest.$ac_ext <<_ACEOF
5447#line 5447 "configure"
5448#include "confdefs.h"
5449
5450#include <libgen.h>
5451#include <string.h>
5452
5453int main(int argc, char **argv) {
5454 char *s, buf[32];
5455
5456 strncpy(buf,"/etc", 32);
5457 s = dirname(buf);
5458 if (!s || strncmp(s, "/", 32) != 0) {
5459 exit(1);
5460 } else {
5461 exit(0);
5462 }
5463}
5464
5465_ACEOF
5466rm -f conftest$ac_exeext
5467if { (eval echo "$as_me:5467: \"$ac_link\"") >&5
5468 (eval $ac_link) 2>&5
5469 ac_status=$?
5470 echo "$as_me:5470: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472 { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:5475: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_have_broken_dirname="no"
5478else
5479 echo "$as_me: program exited with status $ac_status" >&5
5480echo "$as_me: failed program was:" >&5
5481cat conftest.$ac_ext >&5
5482 ac_cv_have_broken_dirname="yes"
5483
5484fi
5485rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5486fi
5487 LIBS="$save_LIBS"
5488
5489fi
5490echo "$as_me:5490: result: $ac_cv_have_broken_dirname" >&5
5491echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
5492 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
5493 LIBS="$LIBS -lgen"
5494 cat >>confdefs.h <<\EOF
5495#define HAVE_DIRNAME 1
5496EOF
5497
5498for ac_header in libgen.h
5499do
5500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5501echo "$as_me:5501: checking for $ac_header" >&5
5502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5503if eval "test \"\${$as_ac_Header+set}\" = set"; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506 cat >conftest.$ac_ext <<_ACEOF
5507#line 5507 "configure"
5508#include "confdefs.h"
5509#include <$ac_header>
5510_ACEOF
5511if { (eval echo "$as_me:5511: \"$ac_cpp conftest.$ac_ext\"") >&5
5512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513 ac_status=$?
5514 egrep -v '^ *\+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_c_preproc_warn_flag
5521 else
5522 ac_cpp_err=
5523 fi
5524else
5525 ac_cpp_err=yes
5526fi
5527if test -z "$ac_cpp_err"; then
5528 eval "$as_ac_Header=yes"
5529else
5530 echo "$as_me: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 eval "$as_ac_Header=no"
5533fi
5534rm -f conftest.err conftest.$ac_ext
5535fi
5536echo "$as_me:5536: result: `eval echo '${'$as_ac_Header'}'`" >&5
5537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538if test `eval echo '${'$as_ac_Header'}'` = yes; then
5539 cat >>confdefs.h <<EOF
5540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541EOF
5542
5543fi
5544done
5545
5546 fi
5547
5548fi
5549
5550fi
5551done
5552
5553echo "$as_me:5553: checking for getspnam" >&5
5554echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5555if test "${ac_cv_func_getspnam+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 cat >conftest.$ac_ext <<_ACEOF
5559#line 5559 "configure"
5560#include "confdefs.h"
5561/* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char getspnam (); below. */
5563#include <assert.h>
5564/* Override any gcc2 internal prototype to avoid an error. */
5565#ifdef __cplusplus
5566extern "C"
5567#endif
5568/* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5570char getspnam ();
5571char (*f) ();
5572
5573int
5574main ()
5575{
5576/* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579#if defined (__stub_getspnam) || defined (__stub___getspnam)
5580choke me
5581#else
5582f = getspnam;
5583#endif
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext conftest$ac_exeext
5590if { (eval echo "$as_me:5590: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:5593: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -s conftest$ac_exeext'
5596 { (eval echo "$as_me:5596: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:5599: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_cv_func_getspnam=yes
5602else
5603 echo "$as_me: failed program was:" >&5
5604cat conftest.$ac_ext >&5
5605ac_cv_func_getspnam=no
5606fi
5607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5608fi
5609echo "$as_me:5609: result: $ac_cv_func_getspnam" >&5
5610echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5611if test $ac_cv_func_getspnam = yes; then
5612 :
5613else
5614 echo "$as_me:5614: checking for getspnam in -lgen" >&5
5615echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5616if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 ac_check_lib_save_LIBS=$LIBS
5620LIBS="-lgen $LIBS"
5621cat >conftest.$ac_ext <<_ACEOF
5622#line 5622 "configure"
5623#include "confdefs.h"
5624
5625/* Override any gcc2 internal prototype to avoid an error. */
5626#ifdef __cplusplus
5627extern "C"
5628#endif
5629/* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5631char getspnam ();
5632int
5633main ()
5634{
5635getspnam ();
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640rm -f conftest.$ac_objext conftest$ac_exeext
5641if { (eval echo "$as_me:5641: \"$ac_link\"") >&5
5642 (eval $ac_link) 2>&5
5643 ac_status=$?
5644 echo "$as_me:5644: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:5647: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_gen_getspnam=yes
5653else
5654 echo "$as_me: failed program was:" >&5
5655cat conftest.$ac_ext >&5
5656ac_cv_lib_gen_getspnam=no
5657fi
5658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659LIBS=$ac_check_lib_save_LIBS
5660fi
5661echo "$as_me:5661: result: $ac_cv_lib_gen_getspnam" >&5
5662echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5663if test $ac_cv_lib_gen_getspnam = yes; then
5664 LIBS="$LIBS -lgen"
5665fi
5666
5667fi
5668
5669echo "$as_me:5669: checking for library containing basename" >&5
5670echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
5671if test "${ac_cv_search_basename+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 ac_func_search_save_LIBS=$LIBS
5675ac_cv_search_basename=no
5676cat >conftest.$ac_ext <<_ACEOF
5677#line 5677 "configure"
5678#include "confdefs.h"
5679
5680/* Override any gcc2 internal prototype to avoid an error. */
5681#ifdef __cplusplus
5682extern "C"
5683#endif
5684/* We use char because int might match the return type of a gcc2
5685 builtin and then its argument prototype would still apply. */
5686char basename ();
5687int
5688main ()
5689{
5690basename ();
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext conftest$ac_exeext
5696if { (eval echo "$as_me:5696: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 echo "$as_me:5699: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:5702: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:5705: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_search_basename="none required"
5708else
5709 echo "$as_me: failed program was:" >&5
5710cat conftest.$ac_ext >&5
5711fi
5712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5713if test "$ac_cv_search_basename" = no; then
5714 for ac_lib in gen; do
5715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5716 cat >conftest.$ac_ext <<_ACEOF
5717#line 5717 "configure"
5718#include "confdefs.h"
5719
5720/* Override any gcc2 internal prototype to avoid an error. */
5721#ifdef __cplusplus
5722extern "C"
5723#endif
5724/* We use char because int might match the return type of a gcc2
5725 builtin and then its argument prototype would still apply. */
5726char basename ();
5727int
5728main ()
5729{
5730basename ();
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext conftest$ac_exeext
5736if { (eval echo "$as_me:5736: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>&5
5738 ac_status=$?
5739 echo "$as_me:5739: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:5742: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:5745: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_search_basename="-l$ac_lib"
5748break
5749else
5750 echo "$as_me: failed program was:" >&5
5751cat conftest.$ac_ext >&5
5752fi
5753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 done
5755fi
5756LIBS=$ac_func_search_save_LIBS
5757fi
5758echo "$as_me:5758: result: $ac_cv_search_basename" >&5
5759echo "${ECHO_T}$ac_cv_search_basename" >&6
5760if test "$ac_cv_search_basename" != no; then
5761 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
5762 cat >>confdefs.h <<\EOF
5763#define HAVE_BASENAME 1
5764EOF
5765
5766fi
5767
5768# Check whether --with-zlib or --without-zlib was given.
5769if test "${with_zlib+set}" = set; then
5770 withval="$with_zlib"
5771
5772 if test "x$withval" = "xno" ; then
5773 { { echo "$as_me:5773: error: *** zlib is required ***" >&5
5774echo "$as_me: error: *** zlib is required ***" >&2;}
5775 { (exit 1); exit 1; }; }
5776 fi
5777 if test -d "$withval/lib"; then
5778 if test -n "${need_dash_r}"; then
5779 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5780 else
5781 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5782 fi
5783 else
5784 if test -n "${need_dash_r}"; then
5785 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5786 else
5787 LDFLAGS="-L${withval} ${LDFLAGS}"
5788 fi
5789 fi
5790 if test -d "$withval/include"; then
5791 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5792 else
5793 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5794 fi
5795
5796fi;
5797
5798echo "$as_me:5798: checking for deflate in -lz" >&5
5799echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5800if test "${ac_cv_lib_z_deflate+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803 ac_check_lib_save_LIBS=$LIBS
5804LIBS="-lz $LIBS"
5805cat >conftest.$ac_ext <<_ACEOF
5806#line 5806 "configure"
5807#include "confdefs.h"
5808
5809/* Override any gcc2 internal prototype to avoid an error. */
5810#ifdef __cplusplus
5811extern "C"
5812#endif
5813/* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5815char deflate ();
5816int
5817main ()
5818{
5819deflate ();
5820 ;
5821 return 0;
5822}
5823_ACEOF
5824rm -f conftest.$ac_objext conftest$ac_exeext
5825if { (eval echo "$as_me:5825: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>&5
5827 ac_status=$?
5828 echo "$as_me:5828: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:5831: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_lib_z_deflate=yes
5837else
5838 echo "$as_me: failed program was:" >&5
5839cat conftest.$ac_ext >&5
5840ac_cv_lib_z_deflate=no
5841fi
5842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS
5844fi
5845echo "$as_me:5845: result: $ac_cv_lib_z_deflate" >&5
5846echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5847if test $ac_cv_lib_z_deflate = yes; then
5848 cat >>confdefs.h <<EOF
5849#define HAVE_LIBZ 1
5850EOF
5851
5852 LIBS="-lz $LIBS"
5853
5854else
5855
5856 saved_CPPFLAGS="$CPPFLAGS"
5857 saved_LDFLAGS="$LDFLAGS"
5858 save_LIBS="$LIBS"
5859 if test -n "${need_dash_r}"; then
5860 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
5861 else
5862 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
5863 fi
5864 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
5865 LIBS="$LIBS -lz"
5866 cat >conftest.$ac_ext <<_ACEOF
5867#line 5867 "configure"
5868#include "confdefs.h"
5869
5870/* Override any gcc2 internal prototype to avoid an error. */
5871#ifdef __cplusplus
5872extern "C"
5873#endif
5874/* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876char deflate ();
5877int
5878main ()
5879{
5880deflate ();
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885rm -f conftest.$ac_objext conftest$ac_exeext
5886if { (eval echo "$as_me:5886: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>&5
5888 ac_status=$?
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -s conftest$ac_exeext'
5892 { (eval echo "$as_me:5892: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:5895: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 cat >>confdefs.h <<\EOF
5898#define HAVE_LIBZ 1
5899EOF
5900
5901else
5902 echo "$as_me: failed program was:" >&5
5903cat conftest.$ac_ext >&5
5904
5905 { { echo "$as_me:5905: error: *** zlib missing - please install first or check config.log ***" >&5
5906echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5907 { (exit 1); exit 1; }; }
5908
5909fi
5910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911
5912fi
5913
5914echo "$as_me:5914: checking for zlib.h" >&5
5915echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5916if test "${ac_cv_header_zlib_h+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 cat >conftest.$ac_ext <<_ACEOF
5920#line 5920 "configure"
5921#include "confdefs.h"
5922#include <zlib.h>
5923_ACEOF
5924if { (eval echo "$as_me:5924: \"$ac_cpp conftest.$ac_ext\"") >&5
5925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5926 ac_status=$?
5927 egrep -v '^ *\+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:5930: \$? = $ac_status" >&5
5931 (exit $ac_status); } >/dev/null; then
5932 if test -s conftest.err; then
5933 ac_cpp_err=$ac_c_preproc_warn_flag
5934 else
5935 ac_cpp_err=
5936 fi
5937else
5938 ac_cpp_err=yes
5939fi
5940if test -z "$ac_cpp_err"; then
5941 ac_cv_header_zlib_h=yes
5942else
5943 echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 ac_cv_header_zlib_h=no
5946fi
5947rm -f conftest.err conftest.$ac_ext
5948fi
5949echo "$as_me:5949: result: $ac_cv_header_zlib_h" >&5
5950echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5951if test $ac_cv_header_zlib_h = yes; then
5952 :
5953else
5954 { { echo "$as_me:5954: error: *** zlib.h missing - please install first or check config.log ***" >&5
5955echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
5956 { (exit 1); exit 1; }; }
5957fi
5958
5959# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
5960if test "${with_zlib_version_check+set}" = set; then
5961 withval="$with_zlib_version_check"
5962 if test "x$withval" = "xno" ; then
5963 zlib_check_nonfatal=1
5964 fi
5965
5966fi;
5967
5968echo "$as_me:5968: checking for zlib 1.1.4 or greater" >&5
5969echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6
5970if test "$cross_compiling" = yes; then
5971 { { echo "$as_me:5971: error: cannot run test program while cross compiling" >&5
5972echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5973 { (exit 1); exit 1; }; }
5974else
5975 cat >conftest.$ac_ext <<_ACEOF
5976#line 5976 "configure"
5977#include "confdefs.h"
5978
5979#include <zlib.h>
5980int main()
5981{
5982 int a, b, c, v;
5983 if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3)
5984 exit(1);
5985 v = a*1000000 + b*1000 + c;
5986 if (v >= 1001004)
5987 exit(0);
5988 exit(2);
5989}
5990
5991_ACEOF
5992rm -f conftest$ac_exeext
5993if { (eval echo "$as_me:5993: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>&5
5995 ac_status=$?
5996 echo "$as_me:5996: \$? = $ac_status" >&5
5997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5998 { (eval echo "$as_me:5998: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:6001: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 echo "$as_me:6003: result: yes" >&5
6004echo "${ECHO_T}yes" >&6
6005else
6006 echo "$as_me: program exited with status $ac_status" >&5
6007echo "$as_me: failed program was:" >&5
6008cat conftest.$ac_ext >&5
6009 echo "$as_me:6009: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 if test -z "$zlib_check_nonfatal" ; then
6012 { { echo "$as_me:6012: error: *** zlib too old - check config.log ***
6013Your reported zlib version has known security problems. It's possible your
6014vendor has fixed these problems without changing the version number. If you
6015are sure this is the case, you can disable the check by running
6016\"./configure --without-zlib-version-check\".
6017If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5
6018echo "$as_me: error: *** zlib too old - check config.log ***
6019Your reported zlib version has known security problems. It's possible your
6020vendor has fixed these problems without changing the version number. If you
6021are sure this is the case, you can disable the check by running
6022\"./configure --without-zlib-version-check\".
6023If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;}
6024 { (exit 1); exit 1; }; }
6025 else
6026 { echo "$as_me:6026: WARNING: zlib version may have security problems" >&5
6027echo "$as_me: WARNING: zlib version may have security problems" >&2;}
6028 fi
6029
6030fi
6031rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6032fi
6033
6034echo "$as_me:6034: checking for strcasecmp" >&5
6035echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
6036if test "${ac_cv_func_strcasecmp+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039 cat >conftest.$ac_ext <<_ACEOF
6040#line 6040 "configure"
6041#include "confdefs.h"
6042/* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char strcasecmp (); below. */
6044#include <assert.h>
6045/* Override any gcc2 internal prototype to avoid an error. */
6046#ifdef __cplusplus
6047extern "C"
6048#endif
6049/* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051char strcasecmp ();
6052char (*f) ();
6053
6054int
6055main ()
6056{
6057/* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6061choke me
6062#else
6063f = strcasecmp;
6064#endif
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070rm -f conftest.$ac_objext conftest$ac_exeext
6071if { (eval echo "$as_me:6071: \"$ac_link\"") >&5
6072 (eval $ac_link) 2>&5
6073 ac_status=$?
6074 echo "$as_me:6074: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (eval echo "$as_me:6077: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:6080: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_func_strcasecmp=yes
6083else
6084 echo "$as_me: failed program was:" >&5
6085cat conftest.$ac_ext >&5
6086ac_cv_func_strcasecmp=no
6087fi
6088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6089fi
6090echo "$as_me:6090: result: $ac_cv_func_strcasecmp" >&5
6091echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
6092if test $ac_cv_func_strcasecmp = yes; then
6093 :
6094else
6095 echo "$as_me:6095: checking for strcasecmp in -lresolv" >&5
6096echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
6097if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 ac_check_lib_save_LIBS=$LIBS
6101LIBS="-lresolv $LIBS"
6102cat >conftest.$ac_ext <<_ACEOF
6103#line 6103 "configure"
6104#include "confdefs.h"
6105
6106/* Override any gcc2 internal prototype to avoid an error. */
6107#ifdef __cplusplus
6108extern "C"
6109#endif
6110/* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112char strcasecmp ();
6113int
6114main ()
6115{
6116strcasecmp ();
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext conftest$ac_exeext
6122if { (eval echo "$as_me:6122: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6124 ac_status=$?
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:6128: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_lib_resolv_strcasecmp=yes
6134else
6135 echo "$as_me: failed program was:" >&5
6136cat conftest.$ac_ext >&5
6137ac_cv_lib_resolv_strcasecmp=no
6138fi
6139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6140LIBS=$ac_check_lib_save_LIBS
6141fi
6142echo "$as_me:6142: result: $ac_cv_lib_resolv_strcasecmp" >&5
6143echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
6144if test $ac_cv_lib_resolv_strcasecmp = yes; then
6145 LIBS="$LIBS -lresolv"
6146fi
6147
6148fi
6149
6150echo "$as_me:6150: checking for utimes" >&5
6151echo $ECHO_N "checking for utimes... $ECHO_C" >&6
6152if test "${ac_cv_func_utimes+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155 cat >conftest.$ac_ext <<_ACEOF
6156#line 6156 "configure"
6157#include "confdefs.h"
6158/* System header to define __stub macros and hopefully few prototypes,
6159 which can conflict with char utimes (); below. */
6160#include <assert.h>
6161/* Override any gcc2 internal prototype to avoid an error. */
6162#ifdef __cplusplus
6163extern "C"
6164#endif
6165/* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6167char utimes ();
6168char (*f) ();
6169
6170int
6171main ()
6172{
6173/* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176#if defined (__stub_utimes) || defined (__stub___utimes)
6177choke me
6178#else
6179f = utimes;
6180#endif
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext conftest$ac_exeext
6187if { (eval echo "$as_me:6187: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>&5
6189 ac_status=$?
6190 echo "$as_me:6190: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:6193: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:6196: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_func_utimes=yes
6199else
6200 echo "$as_me: failed program was:" >&5
6201cat conftest.$ac_ext >&5
6202ac_cv_func_utimes=no
6203fi
6204rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6205fi
6206echo "$as_me:6206: result: $ac_cv_func_utimes" >&5
6207echo "${ECHO_T}$ac_cv_func_utimes" >&6
6208if test $ac_cv_func_utimes = yes; then
6209 :
6210else
6211 echo "$as_me:6211: checking for utimes in -lc89" >&5
6212echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
6213if test "${ac_cv_lib_c89_utimes+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 ac_check_lib_save_LIBS=$LIBS
6217LIBS="-lc89 $LIBS"
6218cat >conftest.$ac_ext <<_ACEOF
6219#line 6219 "configure"
6220#include "confdefs.h"
6221
6222/* Override any gcc2 internal prototype to avoid an error. */
6223#ifdef __cplusplus
6224extern "C"
6225#endif
6226/* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228char utimes ();
6229int
6230main ()
6231{
6232utimes ();
6233 ;
6234 return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (eval echo "$as_me:6238: \"$ac_link\"") >&5
6239 (eval $ac_link) 2>&5
6240 ac_status=$?
6241 echo "$as_me:6241: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:6244: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_lib_c89_utimes=yes
6250else
6251 echo "$as_me: failed program was:" >&5
6252cat conftest.$ac_ext >&5
6253ac_cv_lib_c89_utimes=no
6254fi
6255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6256LIBS=$ac_check_lib_save_LIBS
6257fi
6258echo "$as_me:6258: result: $ac_cv_lib_c89_utimes" >&5
6259echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
6260if test $ac_cv_lib_c89_utimes = yes; then
6261 cat >>confdefs.h <<\EOF
6262#define HAVE_UTIMES 1
6263EOF
6264
6265 LIBS="$LIBS -lc89"
6266fi
6267
6268fi
6269
6270for ac_header in libutil.h
6271do
6272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273echo "$as_me:6273: checking for $ac_header" >&5
6274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 cat >conftest.$ac_ext <<_ACEOF
6279#line 6279 "configure"
6280#include "confdefs.h"
6281#include <$ac_header>
6282_ACEOF
6283if { (eval echo "$as_me:6283: \"$ac_cpp conftest.$ac_ext\"") >&5
6284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285 ac_status=$?
6286 egrep -v '^ *\+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null; then
6291 if test -s conftest.err; then
6292 ac_cpp_err=$ac_c_preproc_warn_flag
6293 else
6294 ac_cpp_err=
6295 fi
6296else
6297 ac_cpp_err=yes
6298fi
6299if test -z "$ac_cpp_err"; then
6300 eval "$as_ac_Header=yes"
6301else
6302 echo "$as_me: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 eval "$as_ac_Header=no"
6305fi
6306rm -f conftest.err conftest.$ac_ext
6307fi
6308echo "$as_me:6308: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311 cat >>confdefs.h <<EOF
6312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313EOF
6314
6315fi
6316done
6317
6318echo "$as_me:6318: checking for library containing login" >&5
6319echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6320if test "${ac_cv_search_login+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323 ac_func_search_save_LIBS=$LIBS
6324ac_cv_search_login=no
6325cat >conftest.$ac_ext <<_ACEOF
6326#line 6326 "configure"
6327#include "confdefs.h"
6328
6329/* Override any gcc2 internal prototype to avoid an error. */
6330#ifdef __cplusplus
6331extern "C"
6332#endif
6333/* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335char login ();
6336int
6337main ()
6338{
6339login ();
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344rm -f conftest.$ac_objext conftest$ac_exeext
6345if { (eval echo "$as_me:6345: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:6351: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:6354: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_search_login="none required"
6357else
6358 echo "$as_me: failed program was:" >&5
6359cat conftest.$ac_ext >&5
6360fi
6361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6362if test "$ac_cv_search_login" = no; then
6363 for ac_lib in util bsd; do
6364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6365 cat >conftest.$ac_ext <<_ACEOF
6366#line 6366 "configure"
6367#include "confdefs.h"
6368
6369/* Override any gcc2 internal prototype to avoid an error. */
6370#ifdef __cplusplus
6371extern "C"
6372#endif
6373/* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6375char login ();
6376int
6377main ()
6378{
6379login ();
6380 ;
6381 return 0;
6382}
6383_ACEOF
6384rm -f conftest.$ac_objext conftest$ac_exeext
6385if { (eval echo "$as_me:6385: \"$ac_link\"") >&5
6386 (eval $ac_link) 2>&5
6387 ac_status=$?
6388 echo "$as_me:6388: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -s conftest$ac_exeext'
6391 { (eval echo "$as_me:6391: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:6394: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_cv_search_login="-l$ac_lib"
6397break
6398else
6399 echo "$as_me: failed program was:" >&5
6400cat conftest.$ac_ext >&5
6401fi
6402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6403 done
6404fi
6405LIBS=$ac_func_search_save_LIBS
6406fi
6407echo "$as_me:6407: result: $ac_cv_search_login" >&5
6408echo "${ECHO_T}$ac_cv_search_login" >&6
6409if test "$ac_cv_search_login" != no; then
6410 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6411 cat >>confdefs.h <<\EOF
6412#define HAVE_LOGIN 1
6413EOF
6414
6415fi
6416
6417for ac_func in logout updwtmp logwtmp
6418do
6419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6420echo "$as_me:6420: checking for $ac_func" >&5
6421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6422if eval "test \"\${$as_ac_var+set}\" = set"; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425 cat >conftest.$ac_ext <<_ACEOF
6426#line 6426 "configure"
6427#include "confdefs.h"
6428/* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char $ac_func (); below. */
6430#include <assert.h>
6431/* Override any gcc2 internal prototype to avoid an error. */
6432#ifdef __cplusplus
6433extern "C"
6434#endif
6435/* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6437char $ac_func ();
6438char (*f) ();
6439
6440int
6441main ()
6442{
6443/* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447choke me
6448#else
6449f = $ac_func;
6450#endif
6451
6452 ;
6453 return 0;
6454}
6455_ACEOF
6456rm -f conftest.$ac_objext conftest$ac_exeext
6457if { (eval echo "$as_me:6457: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>&5
6459 ac_status=$?
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:6463: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:6466: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 eval "$as_ac_var=yes"
6469else
6470 echo "$as_me: failed program was:" >&5
6471cat conftest.$ac_ext >&5
6472eval "$as_ac_var=no"
6473fi
6474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475fi
6476echo "$as_me:6476: result: `eval echo '${'$as_ac_var'}'`" >&5
6477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6478if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<EOF
6480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481EOF
6482
6483fi
6484done
6485
6486for ac_func in strftime
6487do
6488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6489echo "$as_me:6489: checking for $ac_func" >&5
6490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6491if eval "test \"\${$as_ac_var+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 cat >conftest.$ac_ext <<_ACEOF
6495#line 6495 "configure"
6496#include "confdefs.h"
6497/* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func (); below. */
6499#include <assert.h>
6500/* Override any gcc2 internal prototype to avoid an error. */
6501#ifdef __cplusplus
6502extern "C"
6503#endif
6504/* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506char $ac_func ();
6507char (*f) ();
6508
6509int
6510main ()
6511{
6512/* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6516choke me
6517#else
6518f = $ac_func;
6519#endif
6520
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext conftest$ac_exeext
6526if { (eval echo "$as_me:6526: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>&5
6528 ac_status=$?
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -s conftest$ac_exeext'
6532 { (eval echo "$as_me:6532: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:6535: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 eval "$as_ac_var=yes"
6538else
6539 echo "$as_me: failed program was:" >&5
6540cat conftest.$ac_ext >&5
6541eval "$as_ac_var=no"
6542fi
6543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6544fi
6545echo "$as_me:6545: result: `eval echo '${'$as_ac_var'}'`" >&5
6546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6547if test `eval echo '${'$as_ac_var'}'` = yes; then
6548 cat >>confdefs.h <<EOF
6549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6550EOF
6551
6552else
6553 # strftime is in -lintl on SCO UNIX.
6554echo "$as_me:6554: checking for strftime in -lintl" >&5
6555echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6556if test "${ac_cv_lib_intl_strftime+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559 ac_check_lib_save_LIBS=$LIBS
6560LIBS="-lintl $LIBS"
6561cat >conftest.$ac_ext <<_ACEOF
6562#line 6562 "configure"
6563#include "confdefs.h"
6564
6565/* Override any gcc2 internal prototype to avoid an error. */
6566#ifdef __cplusplus
6567extern "C"
6568#endif
6569/* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571char strftime ();
6572int
6573main ()
6574{
6575strftime ();
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext conftest$ac_exeext
6581if { (eval echo "$as_me:6581: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>&5
6583 ac_status=$?
6584 echo "$as_me:6584: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:6587: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:6590: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_lib_intl_strftime=yes
6593else
6594 echo "$as_me: failed program was:" >&5
6595cat conftest.$ac_ext >&5
6596ac_cv_lib_intl_strftime=no
6597fi
6598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599LIBS=$ac_check_lib_save_LIBS
6600fi
6601echo "$as_me:6601: result: $ac_cv_lib_intl_strftime" >&5
6602echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6603if test $ac_cv_lib_intl_strftime = yes; then
6604 cat >>confdefs.h <<\EOF
6605#define HAVE_STRFTIME 1
6606EOF
6607
6608LIBS="-lintl $LIBS"
6609fi
6610
6611fi
6612done
6613
6614# Check for ALTDIRFUNC glob() extension
6615echo "$as_me:6615: checking for GLOB_ALTDIRFUNC support" >&5
6616echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6617cat >conftest.$ac_ext <<_ACEOF
6618#line 6618 "configure"
6619#include "confdefs.h"
6620
6621 #include <glob.h>
6622 #ifdef GLOB_ALTDIRFUNC
6623 FOUNDIT
6624 #endif
6625
6626_ACEOF
6627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 egrep "FOUNDIT" >/dev/null 2>&1; then
6629
6630 cat >>confdefs.h <<\EOF
6631#define GLOB_HAS_ALTDIRFUNC 1
6632EOF
6633
6634 echo "$as_me:6634: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636
6637else
6638
6639 echo "$as_me:6639: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641
6642fi
6643rm -f conftest*
6644
6645# Check for g.gl_matchc glob() extension
6646echo "$as_me:6646: checking for gl_matchc field in glob_t" >&5
6647echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6648cat >conftest.$ac_ext <<_ACEOF
6649#line 6649 "configure"
6650#include "confdefs.h"
6651
6652 #include <glob.h>
6653 int main(void){glob_t g; g.gl_matchc = 1;}
6654
6655_ACEOF
6656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657 egrep "FOUNDIT" >/dev/null 2>&1; then
6658
6659 cat >>confdefs.h <<\EOF
6660#define GLOB_HAS_GL_MATCHC 1
6661EOF
6662
6663 echo "$as_me:6663: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665
6666else
6667
6668 echo "$as_me:6668: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670
6671fi
6672rm -f conftest*
6673
6674echo "$as_me:6674: checking whether struct dirent allocates space for d_name" >&5
6675echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6676if test "$cross_compiling" = yes; then
6677 { { echo "$as_me:6677: error: cannot run test program while cross compiling" >&5
6678echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6679 { (exit 1); exit 1; }; }
6680else
6681 cat >conftest.$ac_ext <<_ACEOF
6682#line 6682 "configure"
6683#include "confdefs.h"
6684
6685#include <sys/types.h>
6686#include <dirent.h>
6687int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6688
6689_ACEOF
6690rm -f conftest$ac_exeext
6691if { (eval echo "$as_me:6691: \"$ac_link\"") >&5
6692 (eval $ac_link) 2>&5
6693 ac_status=$?
6694 echo "$as_me:6694: \$? = $ac_status" >&5
6695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6696 { (eval echo "$as_me:6696: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:6699: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 echo "$as_me:6701: result: yes" >&5
6702echo "${ECHO_T}yes" >&6
6703else
6704 echo "$as_me: program exited with status $ac_status" >&5
6705echo "$as_me: failed program was:" >&5
6706cat conftest.$ac_ext >&5
6707
6708 echo "$as_me:6708: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 cat >>confdefs.h <<\EOF
6711#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6712EOF
6713
6714fi
6715rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6716fi
6717
6718# Check whether user wants S/Key support
6719SKEY_MSG="no"
6720
6721# Check whether --with-skey or --without-skey was given.
6722if test "${with_skey+set}" = set; then
6723 withval="$with_skey"
6724
6725 if test "x$withval" != "xno" ; then
6726
6727 if test "x$withval" != "xyes" ; then
6728 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6729 LDFLAGS="$LDFLAGS -L${withval}/lib"
6730 fi
6731
6732 cat >>confdefs.h <<\EOF
6733#define SKEY 1
6734EOF
6735
6736 LIBS="-lskey $LIBS"
6737 SKEY_MSG="yes"
6738
6739 echo "$as_me:6739: checking for s/key support" >&5
6740echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6741 if test "$cross_compiling" = yes; then
6742 { { echo "$as_me:6742: error: cannot run test program while cross compiling" >&5
6743echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6744 { (exit 1); exit 1; }; }
6745else
6746 cat >conftest.$ac_ext <<_ACEOF
6747#line 6747 "configure"
6748#include "confdefs.h"
6749
6750#include <stdio.h>
6751#include <skey.h>
6752int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6753
6754_ACEOF
6755rm -f conftest$ac_exeext
6756if { (eval echo "$as_me:6756: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>&5
6758 ac_status=$?
6759 echo "$as_me:6759: \$? = $ac_status" >&5
6760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6761 { (eval echo "$as_me:6761: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:6764: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 echo "$as_me:6766: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768else
6769 echo "$as_me: program exited with status $ac_status" >&5
6770echo "$as_me: failed program was:" >&5
6771cat conftest.$ac_ext >&5
6772
6773 echo "$as_me:6773: result: no" >&5
6774echo "${ECHO_T}no" >&6
6775 { { echo "$as_me:6775: error: ** Incomplete or missing s/key libraries." >&5
6776echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6777 { (exit 1); exit 1; }; }
6778
6779fi
6780rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6781fi
6782 echo "$as_me:6782: checking if skeychallenge takes 4 arguments" >&5
6783echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785#line 6785 "configure"
6786#include "confdefs.h"
6787#include <stdio.h>
6788 #include <skey.h>
6789int
6790main ()
6791{
6792(void)skeychallenge(NULL,"name","",0);
6793 ;
6794 return 0;
6795}
6796_ACEOF
6797rm -f conftest.$ac_objext
6798if { (eval echo "$as_me:6798: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>&5
6800 ac_status=$?
6801 echo "$as_me:6801: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:6804: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:6807: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 echo "$as_me:6809: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 cat >>confdefs.h <<\EOF
6812#define SKEYCHALLENGE_4ARG 1
6813EOF
6814
6815else
6816 echo "$as_me: failed program was:" >&5
6817cat conftest.$ac_ext >&5
6818echo "$as_me:6818: result: no" >&5
6819echo "${ECHO_T}no" >&6
6820
6821fi
6822rm -f conftest.$ac_objext conftest.$ac_ext
6823 fi
6824
6825fi;
6826
6827# Check whether user wants TCP wrappers support
6828TCPW_MSG="no"
6829
6830# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6831if test "${with_tcp_wrappers+set}" = set; then
6832 withval="$with_tcp_wrappers"
6833
6834 if test "x$withval" != "xno" ; then
6835 saved_LIBS="$LIBS"
6836 saved_LDFLAGS="$LDFLAGS"
6837 saved_CPPFLAGS="$CPPFLAGS"
6838 if test -n "${withval}" -a "${withval}" != "yes"; then
6839 if test -d "${withval}/lib"; then
6840 if test -n "${need_dash_r}"; then
6841 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6842 else
6843 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6844 fi
6845 else
6846 if test -n "${need_dash_r}"; then
6847 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6848 else
6849 LDFLAGS="-L${withval} ${LDFLAGS}"
6850 fi
6851 fi
6852 if test -d "${withval}/include"; then
6853 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6854 else
6855 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6856 fi
6857 fi
6858 LIBWRAP="-lwrap"
6859 LIBS="$LIBWRAP $LIBS"
6860 echo "$as_me:6860: checking for libwrap" >&5
6861echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6862 cat >conftest.$ac_ext <<_ACEOF
6863#line 6863 "configure"
6864#include "confdefs.h"
6865
6866#include <sys/types.h>
6867#include <sys/socket.h>
6868#include <netinet/in.h>
6869#include <tcpd.h>
6870 int deny_severity = 0, allow_severity = 0;
6871
6872int
6873main ()
6874{
6875hosts_access(0);
6876 ;
6877 return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext conftest$ac_exeext
6881if { (eval echo "$as_me:6881: \"$ac_link\"") >&5
6882 (eval $ac_link) 2>&5
6883 ac_status=$?
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:6887: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:6890: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892
6893 echo "$as_me:6893: result: yes" >&5
6894echo "${ECHO_T}yes" >&6
6895 cat >>confdefs.h <<\EOF
6896#define LIBWRAP 1
6897EOF
6898
6899 TCPW_MSG="yes"
6900
6901else
6902 echo "$as_me: failed program was:" >&5
6903cat conftest.$ac_ext >&5
6904
6905 { { echo "$as_me:6905: error: *** libwrap missing" >&5
6906echo "$as_me: error: *** libwrap missing" >&2;}
6907 { (exit 1); exit 1; }; }
6908
6909fi
6910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6911 LIBS="$saved_LIBS"
6912 fi
6913
6914fi;
6915
6916for ac_func in \
6917 arc4random __b64_ntop b64_ntop __b64_pton b64_pton \
6918 bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
6919 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6920 getpeereid _getpty getrlimit getttyent glob inet_aton \
6921 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
6922 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
6923 pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \
6924 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
6925 setproctitle setregid setreuid setrlimit \
6926 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
6927 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
6928 truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \
6929
6930do
6931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6932echo "$as_me:6932: checking for $ac_func" >&5
6933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6934if eval "test \"\${$as_ac_var+set}\" = set"; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 cat >conftest.$ac_ext <<_ACEOF
6938#line 6938 "configure"
6939#include "confdefs.h"
6940/* System header to define __stub macros and hopefully few prototypes,
6941 which can conflict with char $ac_func (); below. */
6942#include <assert.h>
6943/* Override any gcc2 internal prototype to avoid an error. */
6944#ifdef __cplusplus
6945extern "C"
6946#endif
6947/* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949char $ac_func ();
6950char (*f) ();
6951
6952int
6953main ()
6954{
6955/* The GNU C library defines this for functions which it implements
6956 to always fail with ENOSYS. Some functions are actually named
6957 something starting with __ and the normal name is an alias. */
6958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6959choke me
6960#else
6961f = $ac_func;
6962#endif
6963
6964 ;
6965 return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
6969if { (eval echo "$as_me:6969: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>&5
6971 ac_status=$?
6972 echo "$as_me:6972: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest$ac_exeext'
6975 { (eval echo "$as_me:6975: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 eval "$as_ac_var=yes"
6981else
6982 echo "$as_me: failed program was:" >&5
6983cat conftest.$ac_ext >&5
6984eval "$as_ac_var=no"
6985fi
6986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6987fi
6988echo "$as_me:6988: result: `eval echo '${'$as_ac_var'}'`" >&5
6989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6990if test `eval echo '${'$as_ac_var'}'` = yes; then
6991 cat >>confdefs.h <<EOF
6992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6993EOF
6994
6995fi
6996done
6997
6998# IRIX has a const char return value for gai_strerror()
6999
7000for ac_func in gai_strerror
7001do
7002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7003echo "$as_me:7003: checking for $ac_func" >&5
7004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7005if eval "test \"\${$as_ac_var+set}\" = set"; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 cat >conftest.$ac_ext <<_ACEOF
7009#line 7009 "configure"
7010#include "confdefs.h"
7011/* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func (); below. */
7013#include <assert.h>
7014/* Override any gcc2 internal prototype to avoid an error. */
7015#ifdef __cplusplus
7016extern "C"
7017#endif
7018/* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7020char $ac_func ();
7021char (*f) ();
7022
7023int
7024main ()
7025{
7026/* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7030choke me
7031#else
7032f = $ac_func;
7033#endif
7034
7035 ;
7036 return 0;
7037}
7038_ACEOF
7039rm -f conftest.$ac_objext conftest$ac_exeext
7040if { (eval echo "$as_me:7040: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7042 ac_status=$?
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:7046: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:7049: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 eval "$as_ac_var=yes"
7052else
7053 echo "$as_me: failed program was:" >&5
7054cat conftest.$ac_ext >&5
7055eval "$as_ac_var=no"
7056fi
7057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058fi
7059echo "$as_me:7059: result: `eval echo '${'$as_ac_var'}'`" >&5
7060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7061if test `eval echo '${'$as_ac_var'}'` = yes; then
7062 cat >>confdefs.h <<EOF
7063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7064EOF
7065
7066 cat >>confdefs.h <<\EOF
7067#define HAVE_GAI_STRERROR 1
7068EOF
7069
7070 cat >conftest.$ac_ext <<_ACEOF
7071#line 7071 "configure"
7072#include "confdefs.h"
7073
7074#include <sys/types.h>
7075#include <sys/socket.h>
7076#include <netdb.h>
7077
7078const char *gai_strerror(int);
7079int
7080main ()
7081{
7082
7083char *str;
7084
7085str = gai_strerror(0);
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:7091: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>&5
7093 ac_status=$?
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:7097: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:7100: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102
7103cat >>confdefs.h <<\EOF
7104#define HAVE_CONST_GAI_STRERROR_PROTO 1
7105EOF
7106
7107else
7108 echo "$as_me: failed program was:" >&5
7109cat conftest.$ac_ext >&5
7110fi
7111rm -f conftest.$ac_objext conftest.$ac_ext
7112fi
7113done
7114
7115echo "$as_me:7115: checking for library containing nanosleep" >&5
7116echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
7117if test "${ac_cv_search_nanosleep+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120 ac_func_search_save_LIBS=$LIBS
7121ac_cv_search_nanosleep=no
7122cat >conftest.$ac_ext <<_ACEOF
7123#line 7123 "configure"
7124#include "confdefs.h"
7125
7126/* Override any gcc2 internal prototype to avoid an error. */
7127#ifdef __cplusplus
7128extern "C"
7129#endif
7130/* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7132char nanosleep ();
7133int
7134main ()
7135{
7136nanosleep ();
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext conftest$ac_exeext
7142if { (eval echo "$as_me:7142: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7144 ac_status=$?
7145 echo "$as_me:7145: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -s conftest$ac_exeext'
7148 { (eval echo "$as_me:7148: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:7151: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_search_nanosleep="none required"
7154else
7155 echo "$as_me: failed program was:" >&5
7156cat conftest.$ac_ext >&5
7157fi
7158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7159if test "$ac_cv_search_nanosleep" = no; then
7160 for ac_lib in rt posix4; do
7161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163#line 7163 "configure"
7164#include "confdefs.h"
7165
7166/* Override any gcc2 internal prototype to avoid an error. */
7167#ifdef __cplusplus
7168extern "C"
7169#endif
7170/* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172char nanosleep ();
7173int
7174main ()
7175{
7176nanosleep ();
7177 ;
7178 return 0;
7179}
7180_ACEOF
7181rm -f conftest.$ac_objext conftest$ac_exeext
7182if { (eval echo "$as_me:7182: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>&5
7184 ac_status=$?
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:7188: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_search_nanosleep="-l$ac_lib"
7194break
7195else
7196 echo "$as_me: failed program was:" >&5
7197cat conftest.$ac_ext >&5
7198fi
7199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7200 done
7201fi
7202LIBS=$ac_func_search_save_LIBS
7203fi
7204echo "$as_me:7204: result: $ac_cv_search_nanosleep" >&5
7205echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
7206if test "$ac_cv_search_nanosleep" != no; then
7207 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
7208 cat >>confdefs.h <<\EOF
7209#define HAVE_NANOSLEEP 1
7210EOF
7211
7212fi
7213
7214echo "$as_me:7214: checking for ANSI C header files" >&5
7215echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7216if test "${ac_cv_header_stdc+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 cat >conftest.$ac_ext <<_ACEOF
7220#line 7220 "configure"
7221#include "confdefs.h"
7222#include <stdlib.h>
7223#include <stdarg.h>
7224#include <string.h>
7225#include <float.h>
7226
7227_ACEOF
7228if { (eval echo "$as_me:7228: \"$ac_cpp conftest.$ac_ext\"") >&5
7229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7230 ac_status=$?
7231 egrep -v '^ *\+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:7234: \$? = $ac_status" >&5
7235 (exit $ac_status); } >/dev/null; then
7236 if test -s conftest.err; then
7237 ac_cpp_err=$ac_c_preproc_warn_flag
7238 else
7239 ac_cpp_err=
7240 fi
7241else
7242 ac_cpp_err=yes
7243fi
7244if test -z "$ac_cpp_err"; then
7245 ac_cv_header_stdc=yes
7246else
7247 echo "$as_me: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7249 ac_cv_header_stdc=no
7250fi
7251rm -f conftest.err conftest.$ac_ext
7252
7253if test $ac_cv_header_stdc = yes; then
7254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7255 cat >conftest.$ac_ext <<_ACEOF
7256#line 7256 "configure"
7257#include "confdefs.h"
7258#include <string.h>
7259
7260_ACEOF
7261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7262 egrep "memchr" >/dev/null 2>&1; then
7263 :
7264else
7265 ac_cv_header_stdc=no
7266fi
7267rm -f conftest*
7268
7269fi
7270
7271if test $ac_cv_header_stdc = yes; then
7272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7273 cat >conftest.$ac_ext <<_ACEOF
7274#line 7274 "configure"
7275#include "confdefs.h"
7276#include <stdlib.h>
7277
7278_ACEOF
7279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280 egrep "free" >/dev/null 2>&1; then
7281 :
7282else
7283 ac_cv_header_stdc=no
7284fi
7285rm -f conftest*
7286
7287fi
7288
7289if test $ac_cv_header_stdc = yes; then
7290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7291 if test "$cross_compiling" = yes; then
7292 :
7293else
7294 cat >conftest.$ac_ext <<_ACEOF
7295#line 7295 "configure"
7296#include "confdefs.h"
7297#include <ctype.h>
7298#if ((' ' & 0x0FF) == 0x020)
7299# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7300# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7301#else
7302# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7303 || ('j' <= (c) && (c) <= 'r') \
7304 || ('s' <= (c) && (c) <= 'z'))
7305# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7306#endif
7307
7308#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7309int
7310main ()
7311{
7312 int i;
7313 for (i = 0; i < 256; i++)
7314 if (XOR (islower (i), ISLOWER (i))
7315 || toupper (i) != TOUPPER (i))
7316 exit(2);
7317 exit (0);
7318}
7319_ACEOF
7320rm -f conftest$ac_exeext
7321if { (eval echo "$as_me:7321: \"$ac_link\"") >&5
7322 (eval $ac_link) 2>&5
7323 ac_status=$?
7324 echo "$as_me:7324: \$? = $ac_status" >&5
7325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7326 { (eval echo "$as_me:7326: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 :
7332else
7333 echo "$as_me: program exited with status $ac_status" >&5
7334echo "$as_me: failed program was:" >&5
7335cat conftest.$ac_ext >&5
7336ac_cv_header_stdc=no
7337fi
7338rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7339fi
7340fi
7341fi
7342echo "$as_me:7342: result: $ac_cv_header_stdc" >&5
7343echo "${ECHO_T}$ac_cv_header_stdc" >&6
7344if test $ac_cv_header_stdc = yes; then
7345
7346cat >>confdefs.h <<\EOF
7347#define STDC_HEADERS 1
7348EOF
7349
7350fi
7351
7352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7353
7354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7355 inttypes.h stdint.h unistd.h
7356do
7357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7358echo "$as_me:7358: checking for $ac_header" >&5
7359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7360if eval "test \"\${$as_ac_Header+set}\" = set"; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363 cat >conftest.$ac_ext <<_ACEOF
7364#line 7364 "configure"
7365#include "confdefs.h"
7366$ac_includes_default
7367#include <$ac_header>
7368_ACEOF
7369rm -f conftest.$ac_objext
7370if { (eval echo "$as_me:7370: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -s conftest.$ac_objext'
7376 { (eval echo "$as_me:7376: \"$ac_try\"") >&5
7377 (eval $ac_try) 2>&5
7378 ac_status=$?
7379 echo "$as_me:7379: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
7381 eval "$as_ac_Header=yes"
7382else
7383 echo "$as_me: failed program was:" >&5
7384cat conftest.$ac_ext >&5
7385eval "$as_ac_Header=no"
7386fi
7387rm -f conftest.$ac_objext conftest.$ac_ext
7388fi
7389echo "$as_me:7389: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391if test `eval echo '${'$as_ac_Header'}'` = yes; then
7392 cat >>confdefs.h <<EOF
7393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7394EOF
7395
7396fi
7397done
7398
7399echo "$as_me:7399: checking whether strsep is declared" >&5
7400echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7401if test "${ac_cv_have_decl_strsep+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 cat >conftest.$ac_ext <<_ACEOF
7405#line 7405 "configure"
7406#include "confdefs.h"
7407$ac_includes_default
7408int
7409main ()
7410{
7411#ifndef strsep
7412 char *p = (char *) strsep;
7413#endif
7414
7415 ;
7416 return 0;
7417}
7418_ACEOF
7419rm -f conftest.$ac_objext
7420if { (eval echo "$as_me:7420: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:7426: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_cv_have_decl_strsep=yes
7432else
7433 echo "$as_me: failed program was:" >&5
7434cat conftest.$ac_ext >&5
7435ac_cv_have_decl_strsep=no
7436fi
7437rm -f conftest.$ac_objext conftest.$ac_ext
7438fi
7439echo "$as_me:7439: result: $ac_cv_have_decl_strsep" >&5
7440echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7441if test $ac_cv_have_decl_strsep = yes; then
7442
7443for ac_func in strsep
7444do
7445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7446echo "$as_me:7446: checking for $ac_func" >&5
7447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7448if eval "test \"\${$as_ac_var+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 cat >conftest.$ac_ext <<_ACEOF
7452#line 7452 "configure"
7453#include "confdefs.h"
7454/* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func (); below. */
7456#include <assert.h>
7457/* Override any gcc2 internal prototype to avoid an error. */
7458#ifdef __cplusplus
7459extern "C"
7460#endif
7461/* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463char $ac_func ();
7464char (*f) ();
7465
7466int
7467main ()
7468{
7469/* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7473choke me
7474#else
7475f = $ac_func;
7476#endif
7477
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (eval echo "$as_me:7483: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7485 ac_status=$?
7486 echo "$as_me:7486: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -s conftest$ac_exeext'
7489 { (eval echo "$as_me:7489: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:7492: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 eval "$as_ac_var=yes"
7495else
7496 echo "$as_me: failed program was:" >&5
7497cat conftest.$ac_ext >&5
7498eval "$as_ac_var=no"
7499fi
7500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7501fi
7502echo "$as_me:7502: result: `eval echo '${'$as_ac_var'}'`" >&5
7503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7504if test `eval echo '${'$as_ac_var'}'` = yes; then
7505 cat >>confdefs.h <<EOF
7506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7507EOF
7508
7509fi
7510done
7511
7512fi
7513
7514echo "$as_me:7514: checking whether getrusage is declared" >&5
7515echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
7516if test "${ac_cv_have_decl_getrusage+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 cat >conftest.$ac_ext <<_ACEOF
7520#line 7520 "configure"
7521#include "confdefs.h"
7522$ac_includes_default
7523int
7524main ()
7525{
7526#ifndef getrusage
7527 char *p = (char *) getrusage;
7528#endif
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext
7535if { (eval echo "$as_me:7535: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7537 ac_status=$?
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:7541: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_have_decl_getrusage=yes
7547else
7548 echo "$as_me: failed program was:" >&5
7549cat conftest.$ac_ext >&5
7550ac_cv_have_decl_getrusage=no
7551fi
7552rm -f conftest.$ac_objext conftest.$ac_ext
7553fi
7554echo "$as_me:7554: result: $ac_cv_have_decl_getrusage" >&5
7555echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
7556if test $ac_cv_have_decl_getrusage = yes; then
7557
7558for ac_func in getrusage
7559do
7560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7561echo "$as_me:7561: checking for $ac_func" >&5
7562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7563if eval "test \"\${$as_ac_var+set}\" = set"; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566 cat >conftest.$ac_ext <<_ACEOF
7567#line 7567 "configure"
7568#include "confdefs.h"
7569/* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char $ac_func (); below. */
7571#include <assert.h>
7572/* Override any gcc2 internal prototype to avoid an error. */
7573#ifdef __cplusplus
7574extern "C"
7575#endif
7576/* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578char $ac_func ();
7579char (*f) ();
7580
7581int
7582main ()
7583{
7584/* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7588choke me
7589#else
7590f = $ac_func;
7591#endif
7592
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext conftest$ac_exeext
7598if { (eval echo "$as_me:7598: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7600 ac_status=$?
7601 echo "$as_me:7601: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:7604: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:7607: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 eval "$as_ac_var=yes"
7610else
7611 echo "$as_me: failed program was:" >&5
7612cat conftest.$ac_ext >&5
7613eval "$as_ac_var=no"
7614fi
7615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616fi
7617echo "$as_me:7617: result: `eval echo '${'$as_ac_var'}'`" >&5
7618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7619if test `eval echo '${'$as_ac_var'}'` = yes; then
7620 cat >>confdefs.h <<EOF
7621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7622EOF
7623
7624fi
7625done
7626
7627fi
7628
7629echo "$as_me:7629: checking whether tcsendbreak is declared" >&5
7630echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
7631if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 cat >conftest.$ac_ext <<_ACEOF
7635#line 7635 "configure"
7636#include "confdefs.h"
7637#include <termios.h>
7638
7639int
7640main ()
7641{
7642#ifndef tcsendbreak
7643 char *p = (char *) tcsendbreak;
7644#endif
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:7651: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
7653 ac_status=$?
7654 echo "$as_me:7654: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:7657: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_have_decl_tcsendbreak=yes
7663else
7664 echo "$as_me: failed program was:" >&5
7665cat conftest.$ac_ext >&5
7666ac_cv_have_decl_tcsendbreak=no
7667fi
7668rm -f conftest.$ac_objext conftest.$ac_ext
7669fi
7670echo "$as_me:7670: result: $ac_cv_have_decl_tcsendbreak" >&5
7671echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
7672if test $ac_cv_have_decl_tcsendbreak = yes; then
7673 cat >>confdefs.h <<\EOF
7674#define HAVE_TCSENDBREAK 1
7675EOF
7676
7677else
7678
7679for ac_func in tcsendbreak
7680do
7681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7682echo "$as_me:7682: checking for $ac_func" >&5
7683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7684if eval "test \"\${$as_ac_var+set}\" = set"; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687 cat >conftest.$ac_ext <<_ACEOF
7688#line 7688 "configure"
7689#include "confdefs.h"
7690/* System header to define __stub macros and hopefully few prototypes,
7691 which can conflict with char $ac_func (); below. */
7692#include <assert.h>
7693/* Override any gcc2 internal prototype to avoid an error. */
7694#ifdef __cplusplus
7695extern "C"
7696#endif
7697/* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699char $ac_func ();
7700char (*f) ();
7701
7702int
7703main ()
7704{
7705/* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7709choke me
7710#else
7711f = $ac_func;
7712#endif
7713
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext conftest$ac_exeext
7719if { (eval echo "$as_me:7719: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>&5
7721 ac_status=$?
7722 echo "$as_me:7722: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -s conftest$ac_exeext'
7725 { (eval echo "$as_me:7725: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:7728: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 eval "$as_ac_var=yes"
7731else
7732 echo "$as_me: failed program was:" >&5
7733cat conftest.$ac_ext >&5
7734eval "$as_ac_var=no"
7735fi
7736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7737fi
7738echo "$as_me:7738: result: `eval echo '${'$as_ac_var'}'`" >&5
7739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7740if test `eval echo '${'$as_ac_var'}'` = yes; then
7741 cat >>confdefs.h <<EOF
7742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7743EOF
7744
7745fi
7746done
7747
7748fi
7749
7750for ac_func in setresuid
7751do
7752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753echo "$as_me:7753: checking for $ac_func" >&5
7754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7755if eval "test \"\${$as_ac_var+set}\" = set"; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758 cat >conftest.$ac_ext <<_ACEOF
7759#line 7759 "configure"
7760#include "confdefs.h"
7761/* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char $ac_func (); below. */
7763#include <assert.h>
7764/* Override any gcc2 internal prototype to avoid an error. */
7765#ifdef __cplusplus
7766extern "C"
7767#endif
7768/* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7770char $ac_func ();
7771char (*f) ();
7772
7773int
7774main ()
7775{
7776/* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7780choke me
7781#else
7782f = $ac_func;
7783#endif
7784
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext conftest$ac_exeext
7790if { (eval echo "$as_me:7790: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>&5
7792 ac_status=$?
7793 echo "$as_me:7793: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (eval echo "$as_me:7796: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 eval "$as_ac_var=yes"
7802else
7803 echo "$as_me: failed program was:" >&5
7804cat conftest.$ac_ext >&5
7805eval "$as_ac_var=no"
7806fi
7807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7808fi
7809echo "$as_me:7809: result: `eval echo '${'$as_ac_var'}'`" >&5
7810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7811if test `eval echo '${'$as_ac_var'}'` = yes; then
7812 cat >>confdefs.h <<EOF
7813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7814EOF
7815
7816 echo "$as_me:7816: checking if setresuid seems to work" >&5
7817echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
7818 if test "$cross_compiling" = yes; then
7819 { { echo "$as_me:7819: error: cannot run test program while cross compiling" >&5
7820echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7821 { (exit 1); exit 1; }; }
7822else
7823 cat >conftest.$ac_ext <<_ACEOF
7824#line 7824 "configure"
7825#include "confdefs.h"
7826
7827#include <stdlib.h>
7828#include <errno.h>
7829int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
7830
7831_ACEOF
7832rm -f conftest$ac_exeext
7833if { (eval echo "$as_me:7833: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7835 ac_status=$?
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7838 { (eval echo "$as_me:7838: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:7841: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 echo "$as_me:7843: result: yes" >&5
7844echo "${ECHO_T}yes" >&6
7845else
7846 echo "$as_me: program exited with status $ac_status" >&5
7847echo "$as_me: failed program was:" >&5
7848cat conftest.$ac_ext >&5
7849cat >>confdefs.h <<\EOF
7850#define BROKEN_SETRESUID 1
7851EOF
7852
7853 echo "$as_me:7853: result: not implemented" >&5
7854echo "${ECHO_T}not implemented" >&6
7855
7856fi
7857rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7858fi
7859
7860fi
7861done
7862
7863for ac_func in setresgid
7864do
7865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7866echo "$as_me:7866: checking for $ac_func" >&5
7867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7868if eval "test \"\${$as_ac_var+set}\" = set"; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 cat >conftest.$ac_ext <<_ACEOF
7872#line 7872 "configure"
7873#include "confdefs.h"
7874/* System header to define __stub macros and hopefully few prototypes,
7875 which can conflict with char $ac_func (); below. */
7876#include <assert.h>
7877/* Override any gcc2 internal prototype to avoid an error. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881/* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883char $ac_func ();
7884char (*f) ();
7885
7886int
7887main ()
7888{
7889/* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7893choke me
7894#else
7895f = $ac_func;
7896#endif
7897
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902rm -f conftest.$ac_objext conftest$ac_exeext
7903if { (eval echo "$as_me:7903: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>&5
7905 ac_status=$?
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:7909: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 eval "$as_ac_var=yes"
7915else
7916 echo "$as_me: failed program was:" >&5
7917cat conftest.$ac_ext >&5
7918eval "$as_ac_var=no"
7919fi
7920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7921fi
7922echo "$as_me:7922: result: `eval echo '${'$as_ac_var'}'`" >&5
7923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7924if test `eval echo '${'$as_ac_var'}'` = yes; then
7925 cat >>confdefs.h <<EOF
7926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7927EOF
7928
7929 echo "$as_me:7929: checking if setresgid seems to work" >&5
7930echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
7931 if test "$cross_compiling" = yes; then
7932 { { echo "$as_me:7932: error: cannot run test program while cross compiling" >&5
7933echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7934 { (exit 1); exit 1; }; }
7935else
7936 cat >conftest.$ac_ext <<_ACEOF
7937#line 7937 "configure"
7938#include "confdefs.h"
7939
7940#include <stdlib.h>
7941#include <errno.h>
7942int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
7943
7944_ACEOF
7945rm -f conftest$ac_exeext
7946if { (eval echo "$as_me:7946: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>&5
7948 ac_status=$?
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7951 { (eval echo "$as_me:7951: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5
7953 ac_status=$?
7954 echo "$as_me:7954: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 echo "$as_me:7956: result: yes" >&5
7957echo "${ECHO_T}yes" >&6
7958else
7959 echo "$as_me: program exited with status $ac_status" >&5
7960echo "$as_me: failed program was:" >&5
7961cat conftest.$ac_ext >&5
7962cat >>confdefs.h <<\EOF
7963#define BROKEN_SETRESGID 1
7964EOF
7965
7966 echo "$as_me:7966: result: not implemented" >&5
7967echo "${ECHO_T}not implemented" >&6
7968
7969fi
7970rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7971fi
7972
7973fi
7974done
7975
7976for ac_func in gettimeofday time
7977do
7978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979echo "$as_me:7979: checking for $ac_func" >&5
7980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7981if eval "test \"\${$as_ac_var+set}\" = set"; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 cat >conftest.$ac_ext <<_ACEOF
7985#line 7985 "configure"
7986#include "confdefs.h"
7987/* System header to define __stub macros and hopefully few prototypes,
7988 which can conflict with char $ac_func (); below. */
7989#include <assert.h>
7990/* Override any gcc2 internal prototype to avoid an error. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994/* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996char $ac_func ();
7997char (*f) ();
7998
7999int
8000main ()
8001{
8002/* The GNU C library defines this for functions which it implements
8003 to always fail with ENOSYS. Some functions are actually named
8004 something starting with __ and the normal name is an alias. */
8005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8006choke me
8007#else
8008f = $ac_func;
8009#endif
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext conftest$ac_exeext
8016if { (eval echo "$as_me:8016: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>&5
8018 ac_status=$?
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:8022: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 eval "$as_ac_var=yes"
8028else
8029 echo "$as_me: failed program was:" >&5
8030cat conftest.$ac_ext >&5
8031eval "$as_ac_var=no"
8032fi
8033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8034fi
8035echo "$as_me:8035: result: `eval echo '${'$as_ac_var'}'`" >&5
8036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8037if test `eval echo '${'$as_ac_var'}'` = yes; then
8038 cat >>confdefs.h <<EOF
8039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8040EOF
8041
8042fi
8043done
8044
8045for ac_func in endutent getutent getutid getutline pututline setutent
8046do
8047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8048echo "$as_me:8048: checking for $ac_func" >&5
8049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8050if eval "test \"\${$as_ac_var+set}\" = set"; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 cat >conftest.$ac_ext <<_ACEOF
8054#line 8054 "configure"
8055#include "confdefs.h"
8056/* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char $ac_func (); below. */
8058#include <assert.h>
8059/* Override any gcc2 internal prototype to avoid an error. */
8060#ifdef __cplusplus
8061extern "C"
8062#endif
8063/* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065char $ac_func ();
8066char (*f) ();
8067
8068int
8069main ()
8070{
8071/* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075choke me
8076#else
8077f = $ac_func;
8078#endif
8079
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext conftest$ac_exeext
8085if { (eval echo "$as_me:8085: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>&5
8087 ac_status=$?
8088 echo "$as_me:8088: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:8091: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:8094: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 eval "$as_ac_var=yes"
8097else
8098 echo "$as_me: failed program was:" >&5
8099cat conftest.$ac_ext >&5
8100eval "$as_ac_var=no"
8101fi
8102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103fi
8104echo "$as_me:8104: result: `eval echo '${'$as_ac_var'}'`" >&5
8105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8106if test `eval echo '${'$as_ac_var'}'` = yes; then
8107 cat >>confdefs.h <<EOF
8108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8109EOF
8110
8111fi
8112done
8113
8114for ac_func in utmpname
8115do
8116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8117echo "$as_me:8117: checking for $ac_func" >&5
8118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8119if eval "test \"\${$as_ac_var+set}\" = set"; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 cat >conftest.$ac_ext <<_ACEOF
8123#line 8123 "configure"
8124#include "confdefs.h"
8125/* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below. */
8127#include <assert.h>
8128/* Override any gcc2 internal prototype to avoid an error. */
8129#ifdef __cplusplus
8130extern "C"
8131#endif
8132/* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134char $ac_func ();
8135char (*f) ();
8136
8137int
8138main ()
8139{
8140/* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8144choke me
8145#else
8146f = $ac_func;
8147#endif
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext conftest$ac_exeext
8154if { (eval echo "$as_me:8154: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8156 ac_status=$?
8157 echo "$as_me:8157: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:8160: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:8163: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 eval "$as_ac_var=yes"
8166else
8167 echo "$as_me: failed program was:" >&5
8168cat conftest.$ac_ext >&5
8169eval "$as_ac_var=no"
8170fi
8171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8172fi
8173echo "$as_me:8173: result: `eval echo '${'$as_ac_var'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8175if test `eval echo '${'$as_ac_var'}'` = yes; then
8176 cat >>confdefs.h <<EOF
8177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178EOF
8179
8180fi
8181done
8182
8183for ac_func in endutxent getutxent getutxid getutxline pututxline
8184do
8185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186echo "$as_me:8186: checking for $ac_func" >&5
8187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8188if eval "test \"\${$as_ac_var+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 cat >conftest.$ac_ext <<_ACEOF
8192#line 8192 "configure"
8193#include "confdefs.h"
8194/* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func (); below. */
8196#include <assert.h>
8197/* Override any gcc2 internal prototype to avoid an error. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201/* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203char $ac_func ();
8204char (*f) ();
8205
8206int
8207main ()
8208{
8209/* The GNU C library defines this for functions which it implements
8210 to always fail with ENOSYS. Some functions are actually named
8211 something starting with __ and the normal name is an alias. */
8212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8213choke me
8214#else
8215f = $ac_func;
8216#endif
8217
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext conftest$ac_exeext
8223if { (eval echo "$as_me:8223: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8225 ac_status=$?
8226 echo "$as_me:8226: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:8229: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 eval "$as_ac_var=yes"
8235else
8236 echo "$as_me: failed program was:" >&5
8237cat conftest.$ac_ext >&5
8238eval "$as_ac_var=no"
8239fi
8240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241fi
8242echo "$as_me:8242: result: `eval echo '${'$as_ac_var'}'`" >&5
8243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8244if test `eval echo '${'$as_ac_var'}'` = yes; then
8245 cat >>confdefs.h <<EOF
8246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8247EOF
8248
8249fi
8250done
8251
8252for ac_func in setutxent utmpxname
8253do
8254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255echo "$as_me:8255: checking for $ac_func" >&5
8256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8257if eval "test \"\${$as_ac_var+set}\" = set"; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 cat >conftest.$ac_ext <<_ACEOF
8261#line 8261 "configure"
8262#include "confdefs.h"
8263/* System header to define __stub macros and hopefully few prototypes,
8264 which can conflict with char $ac_func (); below. */
8265#include <assert.h>
8266/* Override any gcc2 internal prototype to avoid an error. */
8267#ifdef __cplusplus
8268extern "C"
8269#endif
8270/* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272char $ac_func ();
8273char (*f) ();
8274
8275int
8276main ()
8277{
8278/* The GNU C library defines this for functions which it implements
8279 to always fail with ENOSYS. Some functions are actually named
8280 something starting with __ and the normal name is an alias. */
8281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8282choke me
8283#else
8284f = $ac_func;
8285#endif
8286
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291rm -f conftest.$ac_objext conftest$ac_exeext
8292if { (eval echo "$as_me:8292: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>&5
8294 ac_status=$?
8295 echo "$as_me:8295: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:8298: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 eval "$as_ac_var=yes"
8304else
8305 echo "$as_me: failed program was:" >&5
8306cat conftest.$ac_ext >&5
8307eval "$as_ac_var=no"
8308fi
8309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8310fi
8311echo "$as_me:8311: result: `eval echo '${'$as_ac_var'}'`" >&5
8312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8313if test `eval echo '${'$as_ac_var'}'` = yes; then
8314 cat >>confdefs.h <<EOF
8315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8316EOF
8317
8318fi
8319done
8320
8321echo "$as_me:8321: checking for daemon" >&5
8322echo $ECHO_N "checking for daemon... $ECHO_C" >&6
8323if test "${ac_cv_func_daemon+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326 cat >conftest.$ac_ext <<_ACEOF
8327#line 8327 "configure"
8328#include "confdefs.h"
8329/* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char daemon (); below. */
8331#include <assert.h>
8332/* Override any gcc2 internal prototype to avoid an error. */
8333#ifdef __cplusplus
8334extern "C"
8335#endif
8336/* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8338char daemon ();
8339char (*f) ();
8340
8341int
8342main ()
8343{
8344/* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
8347#if defined (__stub_daemon) || defined (__stub___daemon)
8348choke me
8349#else
8350f = daemon;
8351#endif
8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357rm -f conftest.$ac_objext conftest$ac_exeext
8358if { (eval echo "$as_me:8358: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8360 ac_status=$?
8361 echo "$as_me:8361: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -s conftest$ac_exeext'
8364 { (eval echo "$as_me:8364: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:8367: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_func_daemon=yes
8370else
8371 echo "$as_me: failed program was:" >&5
8372cat conftest.$ac_ext >&5
8373ac_cv_func_daemon=no
8374fi
8375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8376fi
8377echo "$as_me:8377: result: $ac_cv_func_daemon" >&5
8378echo "${ECHO_T}$ac_cv_func_daemon" >&6
8379if test $ac_cv_func_daemon = yes; then
8380 cat >>confdefs.h <<\EOF
8381#define HAVE_DAEMON 1
8382EOF
8383
8384else
8385 echo "$as_me:8385: checking for daemon in -lbsd" >&5
8386echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
8387if test "${ac_cv_lib_bsd_daemon+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389else
8390 ac_check_lib_save_LIBS=$LIBS
8391LIBS="-lbsd $LIBS"
8392cat >conftest.$ac_ext <<_ACEOF
8393#line 8393 "configure"
8394#include "confdefs.h"
8395
8396/* Override any gcc2 internal prototype to avoid an error. */
8397#ifdef __cplusplus
8398extern "C"
8399#endif
8400/* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8402char daemon ();
8403int
8404main ()
8405{
8406daemon ();
8407 ;
8408 return 0;
8409}
8410_ACEOF
8411rm -f conftest.$ac_objext conftest$ac_exeext
8412if { (eval echo "$as_me:8412: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>&5
8414 ac_status=$?
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:8418: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:8421: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_bsd_daemon=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426cat conftest.$ac_ext >&5
8427ac_cv_lib_bsd_daemon=no
8428fi
8429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430LIBS=$ac_check_lib_save_LIBS
8431fi
8432echo "$as_me:8432: result: $ac_cv_lib_bsd_daemon" >&5
8433echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
8434if test $ac_cv_lib_bsd_daemon = yes; then
8435 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF
8436#define HAVE_DAEMON 1
8437EOF
8438
8439fi
8440
8441fi
8442
8443echo "$as_me:8443: checking for getpagesize" >&5
8444echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
8445if test "${ac_cv_func_getpagesize+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
8449#line 8449 "configure"
8450#include "confdefs.h"
8451/* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char getpagesize (); below. */
8453#include <assert.h>
8454/* Override any gcc2 internal prototype to avoid an error. */
8455#ifdef __cplusplus
8456extern "C"
8457#endif
8458/* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460char getpagesize ();
8461char (*f) ();
8462
8463int
8464main ()
8465{
8466/* The GNU C library defines this for functions which it implements
8467 to always fail with ENOSYS. Some functions are actually named
8468 something starting with __ and the normal name is an alias. */
8469#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
8470choke me
8471#else
8472f = getpagesize;
8473#endif
8474
8475 ;
8476 return 0;
8477}
8478_ACEOF
8479rm -f conftest.$ac_objext conftest$ac_exeext
8480if { (eval echo "$as_me:8480: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>&5
8482 ac_status=$?
8483 echo "$as_me:8483: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:8486: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:8489: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_cv_func_getpagesize=yes
8492else
8493 echo "$as_me: failed program was:" >&5
8494cat conftest.$ac_ext >&5
8495ac_cv_func_getpagesize=no
8496fi
8497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8498fi
8499echo "$as_me:8499: result: $ac_cv_func_getpagesize" >&5
8500echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
8501if test $ac_cv_func_getpagesize = yes; then
8502 cat >>confdefs.h <<\EOF
8503#define HAVE_GETPAGESIZE 1
8504EOF
8505
8506else
8507 echo "$as_me:8507: checking for getpagesize in -lucb" >&5
8508echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
8509if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512 ac_check_lib_save_LIBS=$LIBS
8513LIBS="-lucb $LIBS"
8514cat >conftest.$ac_ext <<_ACEOF
8515#line 8515 "configure"
8516#include "confdefs.h"
8517
8518/* Override any gcc2 internal prototype to avoid an error. */
8519#ifdef __cplusplus
8520extern "C"
8521#endif
8522/* We use char because int might match the return type of a gcc2
8523 builtin and then its argument prototype would still apply. */
8524char getpagesize ();
8525int
8526main ()
8527{
8528getpagesize ();
8529 ;
8530 return 0;
8531}
8532_ACEOF
8533rm -f conftest.$ac_objext conftest$ac_exeext
8534if { (eval echo "$as_me:8534: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>&5
8536 ac_status=$?
8537 echo "$as_me:8537: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:8540: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_lib_ucb_getpagesize=yes
8546else
8547 echo "$as_me: failed program was:" >&5
8548cat conftest.$ac_ext >&5
8549ac_cv_lib_ucb_getpagesize=no
8550fi
8551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8552LIBS=$ac_check_lib_save_LIBS
8553fi
8554echo "$as_me:8554: result: $ac_cv_lib_ucb_getpagesize" >&5
8555echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
8556if test $ac_cv_lib_ucb_getpagesize = yes; then
8557 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF
8558#define HAVE_GETPAGESIZE 1
8559EOF
8560
8561fi
8562
8563fi
8564
8565# Check for broken snprintf
8566if test "x$ac_cv_func_snprintf" = "xyes" ; then
8567 echo "$as_me:8567: checking whether snprintf correctly terminates long strings" >&5
8568echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
8569 if test "$cross_compiling" = yes; then
8570 { { echo "$as_me:8570: error: cannot run test program while cross compiling" >&5
8571echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8572 { (exit 1); exit 1; }; }
8573else
8574 cat >conftest.$ac_ext <<_ACEOF
8575#line 8575 "configure"
8576#include "confdefs.h"
8577
8578#include <stdio.h>
8579int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
8580
8581_ACEOF
8582rm -f conftest$ac_exeext
8583if { (eval echo "$as_me:8583: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>&5
8585 ac_status=$?
8586 echo "$as_me:8586: \$? = $ac_status" >&5
8587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8588 { (eval echo "$as_me:8588: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:8591: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 echo "$as_me:8593: result: yes" >&5
8594echo "${ECHO_T}yes" >&6
8595else
8596 echo "$as_me: program exited with status $ac_status" >&5
8597echo "$as_me: failed program was:" >&5
8598cat conftest.$ac_ext >&5
8599
8600 echo "$as_me:8600: result: no" >&5
8601echo "${ECHO_T}no" >&6
8602 cat >>confdefs.h <<\EOF
8603#define BROKEN_SNPRINTF 1
8604EOF
8605
8606 { echo "$as_me:8606: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
8607echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
8608
8609fi
8610rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8611fi
8612fi
8613
8614if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8615echo "$as_me:8615: checking for (overly) strict mkstemp" >&5
8616echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8617if test "$cross_compiling" = yes; then
8618
8619 echo "$as_me:8619: result: yes" >&5
8620echo "${ECHO_T}yes" >&6
8621 cat >>confdefs.h <<\EOF
8622#define HAVE_STRICT_MKSTEMP 1
8623EOF
8624
8625else
8626 cat >conftest.$ac_ext <<_ACEOF
8627#line 8627 "configure"
8628#include "confdefs.h"
8629
8630#include <stdlib.h>
8631main() { char template[]="conftest.mkstemp-test";
8632if (mkstemp(template) == -1)
8633 exit(1);
8634unlink(template); exit(0);
8635}
8636
8637_ACEOF
8638rm -f conftest$ac_exeext
8639if { (eval echo "$as_me:8639: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:8642: \$? = $ac_status" >&5
8643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8644 { (eval echo "$as_me:8644: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:8647: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649
8650 echo "$as_me:8650: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652
8653else
8654 echo "$as_me: program exited with status $ac_status" >&5
8655echo "$as_me: failed program was:" >&5
8656cat conftest.$ac_ext >&5
8657
8658 echo "$as_me:8658: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 cat >>confdefs.h <<\EOF
8661#define HAVE_STRICT_MKSTEMP 1
8662EOF
8663
8664fi
8665rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8666fi
8667fi
8668
8669if test ! -z "$check_for_openpty_ctty_bug"; then
8670 echo "$as_me:8670: checking if openpty correctly handles controlling tty" >&5
8671echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
8672 if test "$cross_compiling" = yes; then
8673 { { echo "$as_me:8673: error: cannot run test program while cross compiling" >&5
8674echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8675 { (exit 1); exit 1; }; }
8676else
8677 cat >conftest.$ac_ext <<_ACEOF
8678#line 8678 "configure"
8679#include "confdefs.h"
8680
8681#include <stdio.h>
8682#include <sys/fcntl.h>
8683#include <sys/types.h>
8684#include <sys/wait.h>
8685
8686int
8687main()
8688{
8689 pid_t pid;
8690 int fd, ptyfd, ttyfd, status;
8691
8692 pid = fork();
8693 if (pid < 0) { /* failed */
8694 exit(1);
8695 } else if (pid > 0) { /* parent */
8696 waitpid(pid, &status, 0);
8697 if (WIFEXITED(status))
8698 exit(WEXITSTATUS(status));
8699 else
8700 exit(2);
8701 } else { /* child */
8702 close(0); close(1); close(2);
8703 setsid();
8704 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
8705 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
8706 if (fd >= 0)
8707 exit(3); /* Acquired ctty: broken */
8708 else
8709 exit(0); /* Did not acquire ctty: OK */
8710 }
8711}
8712
8713_ACEOF
8714rm -f conftest$ac_exeext
8715if { (eval echo "$as_me:8715: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>&5
8717 ac_status=$?
8718 echo "$as_me:8718: \$? = $ac_status" >&5
8719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8720 { (eval echo "$as_me:8720: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:8723: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725
8726 echo "$as_me:8726: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728
8729else
8730 echo "$as_me: program exited with status $ac_status" >&5
8731echo "$as_me: failed program was:" >&5
8732cat conftest.$ac_ext >&5
8733
8734 echo "$as_me:8734: result: no" >&5
8735echo "${ECHO_T}no" >&6
8736 cat >>confdefs.h <<\EOF
8737#define SSHD_ACQUIRES_CTTY 1
8738EOF
8739
8740fi
8741rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8742fi
8743fi
8744
8745if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
8746 echo "$as_me:8746: checking if getaddrinfo seems to work" >&5
8747echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6
8748 if test "$cross_compiling" = yes; then
8749 { { echo "$as_me:8749: error: cannot run test program while cross compiling" >&5
8750echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8751 { (exit 1); exit 1; }; }
8752else
8753 cat >conftest.$ac_ext <<_ACEOF
8754#line 8754 "configure"
8755#include "confdefs.h"
8756
8757#include <stdio.h>
8758#include <sys/socket.h>
8759#include <netdb.h>
8760#include <errno.h>
8761#include <netinet/in.h>
8762
8763#define TEST_PORT "2222"
8764
8765int
8766main(void)
8767{
8768 int err, sock;
8769 struct addrinfo *gai_ai, *ai, hints;
8770 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
8771
8772 memset(&hints, 0, sizeof(hints));
8773 hints.ai_family = PF_UNSPEC;
8774 hints.ai_socktype = SOCK_STREAM;
8775 hints.ai_flags = AI_PASSIVE;
8776
8777 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
8778 if (err != 0) {
8779 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
8780 exit(1);
8781 }
8782
8783 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
8784 if (ai->ai_family != AF_INET6)
8785 continue;
8786
8787 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
8788 sizeof(ntop), strport, sizeof(strport),
8789 NI_NUMERICHOST|NI_NUMERICSERV);
8790
8791 if (err != 0) {
8792 if (err == EAI_SYSTEM)
8793 perror("getnameinfo EAI_SYSTEM");
8794 else
8795 fprintf(stderr, "getnameinfo failed: %s\n",
8796 gai_strerror(err));
8797 exit(2);
8798 }
8799
8800 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
8801 if (sock < 0)
8802 perror("socket");
8803 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
8804 if (errno == EBADF)
8805 exit(3);
8806 }
8807 }
8808 exit(0);
8809}
8810
8811_ACEOF
8812rm -f conftest$ac_exeext
8813if { (eval echo "$as_me:8813: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8815 ac_status=$?
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8818 { (eval echo "$as_me:8818: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823
8824 echo "$as_me:8824: result: yes" >&5
8825echo "${ECHO_T}yes" >&6
8826
8827else
8828 echo "$as_me: program exited with status $ac_status" >&5
8829echo "$as_me: failed program was:" >&5
8830cat conftest.$ac_ext >&5
8831
8832 echo "$as_me:8832: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834 cat >>confdefs.h <<\EOF
8835#define BROKEN_GETADDRINFO 1
8836EOF
8837
8838fi
8839rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8840fi
8841fi
8842
8843echo "$as_me:8843: checking whether getpgrp takes no argument" >&5
8844echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
8845if test "${ac_cv_func_getpgrp_void+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 # Use it with a single arg.
8849cat >conftest.$ac_ext <<_ACEOF
8850#line 8850 "configure"
8851#include "confdefs.h"
8852$ac_includes_default
8853int
8854main ()
8855{
8856getpgrp (0);
8857 ;
8858 return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext
8862if { (eval echo "$as_me:8862: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>&5
8864 ac_status=$?
8865 echo "$as_me:8865: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -s conftest.$ac_objext'
8868 { (eval echo "$as_me:8868: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_func_getpgrp_1=yes
8874else
8875 echo "$as_me: failed program was:" >&5
8876cat conftest.$ac_ext >&5
8877ac_func_getpgrp_1=no
8878fi
8879rm -f conftest.$ac_objext conftest.$ac_ext
8880# Use it with no arg.
8881cat >conftest.$ac_ext <<_ACEOF
8882#line 8882 "configure"
8883#include "confdefs.h"
8884$ac_includes_default
8885int
8886main ()
8887{
8888getpgrp ();
8889 ;
8890 return 0;
8891}
8892_ACEOF
8893rm -f conftest.$ac_objext
8894if { (eval echo "$as_me:8894: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>&5
8896 ac_status=$?
8897 echo "$as_me:8897: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:8900: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:8903: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_func_getpgrp_0=yes
8906else
8907 echo "$as_me: failed program was:" >&5
8908cat conftest.$ac_ext >&5
8909ac_func_getpgrp_0=no
8910fi
8911rm -f conftest.$ac_objext conftest.$ac_ext
8912# If both static checks agree, we are done.
8913case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
8914 yes:no) ac_cv_func_getpgrp_void=yes;;
8915 no:yes) ac_cv_func_getpgrp_void=false;;
8916 *) if test "$cross_compiling" = yes; then
8917 { { echo "$as_me:8917: error: cannot check getpgrp if cross compiling" >&5
8918echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
8919 { (exit 1); exit 1; }; }
8920else
8921 cat >conftest.$ac_ext <<_ACEOF
8922#line 8922 "configure"
8923#include "confdefs.h"
8924$ac_includes_default
8925
8926/*
8927 * If this system has a BSD-style getpgrp(),
8928 * which takes a pid argument, exit unsuccessfully.
8929 *
8930 * Snarfed from Chet Ramey's bash pgrp.c test program
8931 */
8932
8933int pid;
8934int pg1, pg2, pg3, pg4;
8935int ng, np, s, child;
8936
8937int
8938main ()
8939{
8940 pid = getpid ();
8941 pg1 = getpgrp (0);
8942 pg2 = getpgrp ();
8943 pg3 = getpgrp (pid);
8944 pg4 = getpgrp (1);
8945
8946 /* If all of these values are the same, it's pretty sure that we're
8947 on a system that ignores getpgrp's first argument. */
8948 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
8949 exit (0);
8950
8951 child = fork ();
8952 if (child < 0)
8953 exit(1);
8954 else if (child == 0)
8955 {
8956 np = getpid ();
8957 /* If this is Sys V, this will not work; pgrp will be set to np
8958 because setpgrp just changes a pgrp to be the same as the
8959 pid. */
8960 setpgrp (np, pg1);
8961 ng = getpgrp (0); /* Same result for Sys V and BSD */
8962 if (ng == pg1)
8963 exit (1);
8964 else
8965 exit (0);
8966 }
8967 else
8968 {
8969 wait (&s);
8970 exit (s>>8);
8971 }
8972}
8973
8974_ACEOF
8975rm -f conftest$ac_exeext
8976if { (eval echo "$as_me:8976: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>&5
8978 ac_status=$?
8979 echo "$as_me:8979: \$? = $ac_status" >&5
8980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8981 { (eval echo "$as_me:8981: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:8984: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_func_getpgrp_void=yes
8987else
8988 echo "$as_me: program exited with status $ac_status" >&5
8989echo "$as_me: failed program was:" >&5
8990cat conftest.$ac_ext >&5
8991ac_cv_func_getpgrp_void=no
8992fi
8993rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8994fi;;
8995esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
8996
8997fi
8998echo "$as_me:8998: result: $ac_cv_func_getpgrp_void" >&5
8999echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
9000if test $ac_cv_func_getpgrp_void = yes; then
9001
9002cat >>confdefs.h <<\EOF
9003#define GETPGRP_VOID 1
9004EOF
9005
9006fi
9007
9008# Check for PAM libs
9009PAM_MSG="no"
9010
9011# Check whether --with-pam or --without-pam was given.
9012if test "${with_pam+set}" = set; then
9013 withval="$with_pam"
9014
9015 if test "x$withval" != "xno" ; then
9016 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
9017 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
9018 { { echo "$as_me:9018: error: PAM headers not found" >&5
9019echo "$as_me: error: PAM headers not found" >&2;}
9020 { (exit 1); exit 1; }; }
9021 fi
9022
9023echo "$as_me:9023: checking for dlopen in -ldl" >&5
9024echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9025if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028 ac_check_lib_save_LIBS=$LIBS
9029LIBS="-ldl $LIBS"
9030cat >conftest.$ac_ext <<_ACEOF
9031#line 9031 "configure"
9032#include "confdefs.h"
9033
9034/* Override any gcc2 internal prototype to avoid an error. */
9035#ifdef __cplusplus
9036extern "C"
9037#endif
9038/* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040char dlopen ();
9041int
9042main ()
9043{
9044dlopen ();
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049rm -f conftest.$ac_objext conftest$ac_exeext
9050if { (eval echo "$as_me:9050: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>&5
9052 ac_status=$?
9053 echo "$as_me:9053: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -s conftest$ac_exeext'
9056 { (eval echo "$as_me:9056: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_lib_dl_dlopen=yes
9062else
9063 echo "$as_me: failed program was:" >&5
9064cat conftest.$ac_ext >&5
9065ac_cv_lib_dl_dlopen=no
9066fi
9067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
9069fi
9070echo "$as_me:9070: result: $ac_cv_lib_dl_dlopen" >&5
9071echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9072if test $ac_cv_lib_dl_dlopen = yes; then
9073 cat >>confdefs.h <<EOF
9074#define HAVE_LIBDL 1
9075EOF
9076
9077 LIBS="-ldl $LIBS"
9078
9079fi
9080
9081echo "$as_me:9081: checking for pam_set_item in -lpam" >&5
9082echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
9083if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086 ac_check_lib_save_LIBS=$LIBS
9087LIBS="-lpam $LIBS"
9088cat >conftest.$ac_ext <<_ACEOF
9089#line 9089 "configure"
9090#include "confdefs.h"
9091
9092/* Override any gcc2 internal prototype to avoid an error. */
9093#ifdef __cplusplus
9094extern "C"
9095#endif
9096/* We use char because int might match the return type of a gcc2
9097 builtin and then its argument prototype would still apply. */
9098char pam_set_item ();
9099int
9100main ()
9101{
9102pam_set_item ();
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (eval echo "$as_me:9108: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9110 ac_status=$?
9111 echo "$as_me:9111: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (eval echo "$as_me:9114: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_lib_pam_pam_set_item=yes
9120else
9121 echo "$as_me: failed program was:" >&5
9122cat conftest.$ac_ext >&5
9123ac_cv_lib_pam_pam_set_item=no
9124fi
9125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9126LIBS=$ac_check_lib_save_LIBS
9127fi
9128echo "$as_me:9128: result: $ac_cv_lib_pam_pam_set_item" >&5
9129echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
9130if test $ac_cv_lib_pam_pam_set_item = yes; then
9131 cat >>confdefs.h <<EOF
9132#define HAVE_LIBPAM 1
9133EOF
9134
9135 LIBS="-lpam $LIBS"
9136
9137else
9138 { { echo "$as_me:9138: error: *** libpam missing" >&5
9139echo "$as_me: error: *** libpam missing" >&2;}
9140 { (exit 1); exit 1; }; }
9141fi
9142
9143for ac_func in pam_getenvlist
9144do
9145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9146echo "$as_me:9146: checking for $ac_func" >&5
9147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9148if eval "test \"\${$as_ac_var+set}\" = set"; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9150else
9151 cat >conftest.$ac_ext <<_ACEOF
9152#line 9152 "configure"
9153#include "confdefs.h"
9154/* System header to define __stub macros and hopefully few prototypes,
9155 which can conflict with char $ac_func (); below. */
9156#include <assert.h>
9157/* Override any gcc2 internal prototype to avoid an error. */
9158#ifdef __cplusplus
9159extern "C"
9160#endif
9161/* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9163char $ac_func ();
9164char (*f) ();
9165
9166int
9167main ()
9168{
9169/* The GNU C library defines this for functions which it implements
9170 to always fail with ENOSYS. Some functions are actually named
9171 something starting with __ and the normal name is an alias. */
9172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173choke me
9174#else
9175f = $ac_func;
9176#endif
9177
9178 ;
9179 return 0;
9180}
9181_ACEOF
9182rm -f conftest.$ac_objext conftest$ac_exeext
9183if { (eval echo "$as_me:9183: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9185 ac_status=$?
9186 echo "$as_me:9186: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:9189: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:9192: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 eval "$as_ac_var=yes"
9195else
9196 echo "$as_me: failed program was:" >&5
9197cat conftest.$ac_ext >&5
9198eval "$as_ac_var=no"
9199fi
9200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9201fi
9202echo "$as_me:9202: result: `eval echo '${'$as_ac_var'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204if test `eval echo '${'$as_ac_var'}'` = yes; then
9205 cat >>confdefs.h <<EOF
9206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9207EOF
9208
9209fi
9210done
9211
9212for ac_func in pam_putenv
9213do
9214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9215echo "$as_me:9215: checking for $ac_func" >&5
9216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9217if eval "test \"\${$as_ac_var+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220 cat >conftest.$ac_ext <<_ACEOF
9221#line 9221 "configure"
9222#include "confdefs.h"
9223/* System header to define __stub macros and hopefully few prototypes,
9224 which can conflict with char $ac_func (); below. */
9225#include <assert.h>
9226/* Override any gcc2 internal prototype to avoid an error. */
9227#ifdef __cplusplus
9228extern "C"
9229#endif
9230/* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9232char $ac_func ();
9233char (*f) ();
9234
9235int
9236main ()
9237{
9238/* The GNU C library defines this for functions which it implements
9239 to always fail with ENOSYS. Some functions are actually named
9240 something starting with __ and the normal name is an alias. */
9241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9242choke me
9243#else
9244f = $ac_func;
9245#endif
9246
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:9252: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9254 ac_status=$?
9255 echo "$as_me:9255: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:9258: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:9261: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 eval "$as_ac_var=yes"
9264else
9265 echo "$as_me: failed program was:" >&5
9266cat conftest.$ac_ext >&5
9267eval "$as_ac_var=no"
9268fi
9269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9270fi
9271echo "$as_me:9271: result: `eval echo '${'$as_ac_var'}'`" >&5
9272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9273if test `eval echo '${'$as_ac_var'}'` = yes; then
9274 cat >>confdefs.h <<EOF
9275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9276EOF
9277
9278fi
9279done
9280
9281 PAM_MSG="yes"
9282
9283 cat >>confdefs.h <<\EOF
9284#define USE_PAM 1
9285EOF
9286
9287 if test $ac_cv_lib_dl_dlopen = yes; then
9288 LIBPAM="-lpam -ldl"
9289 else
9290 LIBPAM="-lpam"
9291 fi
9292
9293 fi
9294
9295fi;
9296
9297# Check for older PAM
9298if test "x$PAM_MSG" = "xyes" ; then
9299 # Check PAM strerror arguments (old PAM)
9300 echo "$as_me:9300: checking whether pam_strerror takes only one argument" >&5
9301echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9303#line 9303 "configure"
9304#include "confdefs.h"
9305
9306#include <stdlib.h>
9307#if defined(HAVE_SECURITY_PAM_APPL_H)
9308#include <security/pam_appl.h>
9309#elif defined (HAVE_PAM_PAM_APPL_H)
9310#include <pam/pam_appl.h>
9311#endif
9312
9313int
9314main ()
9315{
9316(void)pam_strerror((pam_handle_t *)NULL, -1);
9317 ;
9318 return 0;
9319}
9320_ACEOF
9321rm -f conftest.$ac_objext
9322if { (eval echo "$as_me:9322: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>&5
9324 ac_status=$?
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -s conftest.$ac_objext'
9328 { (eval echo "$as_me:9328: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:9331: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 echo "$as_me:9333: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335else
9336 echo "$as_me: failed program was:" >&5
9337cat conftest.$ac_ext >&5
9338
9339 cat >>confdefs.h <<\EOF
9340#define HAVE_OLD_PAM 1
9341EOF
9342
9343 echo "$as_me:9343: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 PAM_MSG="yes (old library)"
9346
9347fi
9348rm -f conftest.$ac_objext conftest.$ac_ext
9349fi
9350
9351# Search for OpenSSL
9352saved_CPPFLAGS="$CPPFLAGS"
9353saved_LDFLAGS="$LDFLAGS"
9354
9355# Check whether --with-ssl-dir or --without-ssl-dir was given.
9356if test "${with_ssl_dir+set}" = set; then
9357 withval="$with_ssl_dir"
9358
9359 if test "x$withval" != "xno" ; then
9360 if test -d "$withval/lib"; then
9361 if test -n "${need_dash_r}"; then
9362 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9363 else
9364 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9365 fi
9366 else
9367 if test -n "${need_dash_r}"; then
9368 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9369 else
9370 LDFLAGS="-L${withval} ${LDFLAGS}"
9371 fi
9372 fi
9373 if test -d "$withval/include"; then
9374 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9375 else
9376 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9377 fi
9378 fi
9379
9380fi;
9381LIBS="-lcrypto $LIBS"
9382cat >conftest.$ac_ext <<_ACEOF
9383#line 9383 "configure"
9384#include "confdefs.h"
9385
9386/* Override any gcc2 internal prototype to avoid an error. */
9387#ifdef __cplusplus
9388extern "C"
9389#endif
9390/* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9392char RAND_add ();
9393int
9394main ()
9395{
9396RAND_add ();
9397 ;
9398 return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (eval echo "$as_me:9402: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9404 ac_status=$?
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:9408: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 cat >>confdefs.h <<\EOF
9414#define HAVE_OPENSSL 1
9415EOF
9416
9417else
9418 echo "$as_me: failed program was:" >&5
9419cat conftest.$ac_ext >&5
9420
9421 if test -n "${need_dash_r}"; then
9422 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
9423 else
9424 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
9425 fi
9426 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
9427 cat >conftest.$ac_ext <<_ACEOF
9428#line 9428 "configure"
9429#include "confdefs.h"
9430
9431/* Override any gcc2 internal prototype to avoid an error. */
9432#ifdef __cplusplus
9433extern "C"
9434#endif
9435/* We use char because int might match the return type of a gcc2
9436 builtin and then its argument prototype would still apply. */
9437char RAND_add ();
9438int
9439main ()
9440{
9441RAND_add ();
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (eval echo "$as_me:9447: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9449 ac_status=$?
9450 echo "$as_me:9450: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -s conftest$ac_exeext'
9453 { (eval echo "$as_me:9453: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:9456: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 cat >>confdefs.h <<\EOF
9459#define HAVE_OPENSSL 1
9460EOF
9461
9462else
9463 echo "$as_me: failed program was:" >&5
9464cat conftest.$ac_ext >&5
9465
9466 { { echo "$as_me:9466: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
9467echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
9468 { (exit 1); exit 1; }; }
9469
9470fi
9471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9472
9473fi
9474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9475
9476# Determine OpenSSL header version
9477echo "$as_me:9477: checking OpenSSL header version" >&5
9478echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
9479if test "$cross_compiling" = yes; then
9480 { { echo "$as_me:9480: error: cannot run test program while cross compiling" >&5
9481echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9482 { (exit 1); exit 1; }; }
9483else
9484 cat >conftest.$ac_ext <<_ACEOF
9485#line 9485 "configure"
9486#include "confdefs.h"
9487
9488#include <stdio.h>
9489#include <string.h>
9490#include <openssl/opensslv.h>
9491#define DATA "conftest.sslincver"
9492int main(void) {
9493 FILE *fd;
9494 int rc;
9495
9496 fd = fopen(DATA,"w");
9497 if(fd == NULL)
9498 exit(1);
9499
9500 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
9501 exit(1);
9502
9503 exit(0);
9504}
9505
9506_ACEOF
9507rm -f conftest$ac_exeext
9508if { (eval echo "$as_me:9508: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>&5
9510 ac_status=$?
9511 echo "$as_me:9511: \$? = $ac_status" >&5
9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513 { (eval echo "$as_me:9513: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518
9519 ssl_header_ver=`cat conftest.sslincver`
9520 echo "$as_me:9520: result: $ssl_header_ver" >&5
9521echo "${ECHO_T}$ssl_header_ver" >&6
9522
9523else
9524 echo "$as_me: program exited with status $ac_status" >&5
9525echo "$as_me: failed program was:" >&5
9526cat conftest.$ac_ext >&5
9527
9528 echo "$as_me:9528: result: not found" >&5
9529echo "${ECHO_T}not found" >&6
9530 { { echo "$as_me:9530: error: OpenSSL version header not found." >&5
9531echo "$as_me: error: OpenSSL version header not found." >&2;}
9532 { (exit 1); exit 1; }; }
9533
9534fi
9535rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9536fi
9537
9538# Determine OpenSSL library version
9539echo "$as_me:9539: checking OpenSSL library version" >&5
9540echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
9541if test "$cross_compiling" = yes; then
9542 { { echo "$as_me:9542: error: cannot run test program while cross compiling" >&5
9543echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9544 { (exit 1); exit 1; }; }
9545else
9546 cat >conftest.$ac_ext <<_ACEOF
9547#line 9547 "configure"
9548#include "confdefs.h"
9549
9550#include <stdio.h>
9551#include <string.h>
9552#include <openssl/opensslv.h>
9553#include <openssl/crypto.h>
9554#define DATA "conftest.ssllibver"
9555int main(void) {
9556 FILE *fd;
9557 int rc;
9558
9559 fd = fopen(DATA,"w");
9560 if(fd == NULL)
9561 exit(1);
9562
9563 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9564 exit(1);
9565
9566 exit(0);
9567}
9568
9569_ACEOF
9570rm -f conftest$ac_exeext
9571if { (eval echo "$as_me:9571: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9573 ac_status=$?
9574 echo "$as_me:9574: \$? = $ac_status" >&5
9575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9576 { (eval echo "$as_me:9576: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:9579: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581
9582 ssl_library_ver=`cat conftest.ssllibver`
9583 echo "$as_me:9583: result: $ssl_library_ver" >&5
9584echo "${ECHO_T}$ssl_library_ver" >&6
9585
9586else
9587 echo "$as_me: program exited with status $ac_status" >&5
9588echo "$as_me: failed program was:" >&5
9589cat conftest.$ac_ext >&5
9590
9591 echo "$as_me:9591: result: not found" >&5
9592echo "${ECHO_T}not found" >&6
9593 { { echo "$as_me:9593: error: OpenSSL library not found." >&5
9594echo "$as_me: error: OpenSSL library not found." >&2;}
9595 { (exit 1); exit 1; }; }
9596
9597fi
9598rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9599fi
9600
9601# Sanity check OpenSSL headers
9602echo "$as_me:9602: checking whether OpenSSL's headers match the library" >&5
9603echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
9604if test "$cross_compiling" = yes; then
9605 { { echo "$as_me:9605: error: cannot run test program while cross compiling" >&5
9606echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9607 { (exit 1); exit 1; }; }
9608else
9609 cat >conftest.$ac_ext <<_ACEOF
9610#line 9610 "configure"
9611#include "confdefs.h"
9612
9613#include <string.h>
9614#include <openssl/opensslv.h>
9615int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9616
9617_ACEOF
9618rm -f conftest$ac_exeext
9619if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>&5
9621 ac_status=$?
9622 echo "$as_me:9622: \$? = $ac_status" >&5
9623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9624 { (eval echo "$as_me:9624: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:9627: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629
9630 echo "$as_me:9630: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632
9633else
9634 echo "$as_me: program exited with status $ac_status" >&5
9635echo "$as_me: failed program was:" >&5
9636cat conftest.$ac_ext >&5
9637
9638 echo "$as_me:9638: result: no" >&5
9639echo "${ECHO_T}no" >&6
9640 { { echo "$as_me:9640: error: Your OpenSSL headers do not match your library.
9641Check config.log for details.
9642Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
9643echo "$as_me: error: Your OpenSSL headers do not match your library.
9644Check config.log for details.
9645Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
9646 { (exit 1); exit 1; }; }
9647
9648fi
9649rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9650fi
9651
9652# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
9653# because the system crypt() is more featureful.
9654if test "x$check_for_libcrypt_before" = "x1"; then
9655
9656echo "$as_me:9656: checking for crypt in -lcrypt" >&5
9657echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9658if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661 ac_check_lib_save_LIBS=$LIBS
9662LIBS="-lcrypt $LIBS"
9663cat >conftest.$ac_ext <<_ACEOF
9664#line 9664 "configure"
9665#include "confdefs.h"
9666
9667/* Override any gcc2 internal prototype to avoid an error. */
9668#ifdef __cplusplus
9669extern "C"
9670#endif
9671/* We use char because int might match the return type of a gcc2
9672 builtin and then its argument prototype would still apply. */
9673char crypt ();
9674int
9675main ()
9676{
9677crypt ();
9678 ;
9679 return 0;
9680}
9681_ACEOF
9682rm -f conftest.$ac_objext conftest$ac_exeext
9683if { (eval echo "$as_me:9683: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>&5
9685 ac_status=$?
9686 echo "$as_me:9686: \$? = $ac_status" >&5
9687 (exit $ac_status); } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:9689: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:9692: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_lib_crypt_crypt=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697cat conftest.$ac_ext >&5
9698ac_cv_lib_crypt_crypt=no
9699fi
9700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9701LIBS=$ac_check_lib_save_LIBS
9702fi
9703echo "$as_me:9703: result: $ac_cv_lib_crypt_crypt" >&5
9704echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9705if test $ac_cv_lib_crypt_crypt = yes; then
9706 cat >>confdefs.h <<EOF
9707#define HAVE_LIBCRYPT 1
9708EOF
9709
9710 LIBS="-lcrypt $LIBS"
9711
9712fi
9713
9714fi
9715
9716# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9717# version in OpenSSL.
9718if test "x$check_for_libcrypt_later" = "x1"; then
9719 echo "$as_me:9719: checking for crypt in -lcrypt" >&5
9720echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9721if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724 ac_check_lib_save_LIBS=$LIBS
9725LIBS="-lcrypt $LIBS"
9726cat >conftest.$ac_ext <<_ACEOF
9727#line 9727 "configure"
9728#include "confdefs.h"
9729
9730/* Override any gcc2 internal prototype to avoid an error. */
9731#ifdef __cplusplus
9732extern "C"
9733#endif
9734/* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736char crypt ();
9737int
9738main ()
9739{
9740crypt ();
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext conftest$ac_exeext
9746if { (eval echo "$as_me:9746: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>&5
9748 ac_status=$?
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:9752: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:9755: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_crypt_crypt=yes
9758else
9759 echo "$as_me: failed program was:" >&5
9760cat conftest.$ac_ext >&5
9761ac_cv_lib_crypt_crypt=no
9762fi
9763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9764LIBS=$ac_check_lib_save_LIBS
9765fi
9766echo "$as_me:9766: result: $ac_cv_lib_crypt_crypt" >&5
9767echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9768if test $ac_cv_lib_crypt_crypt = yes; then
9769 LIBS="$LIBS -lcrypt"
9770fi
9771
9772fi
9773
9774### Configure cryptographic random number support
9775
9776# Check wheter OpenSSL seeds itself
9777echo "$as_me:9777: checking whether OpenSSL's PRNG is internally seeded" >&5
9778echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
9779if test "$cross_compiling" = yes; then
9780 { { echo "$as_me:9780: error: cannot run test program while cross compiling" >&5
9781echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9782 { (exit 1); exit 1; }; }
9783else
9784 cat >conftest.$ac_ext <<_ACEOF
9785#line 9785 "configure"
9786#include "confdefs.h"
9787
9788#include <string.h>
9789#include <openssl/rand.h>
9790int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
9791
9792_ACEOF
9793rm -f conftest$ac_exeext
9794if { (eval echo "$as_me:9794: \"$ac_link\"") >&5
9795 (eval $ac_link) 2>&5
9796 ac_status=$?
9797 echo "$as_me:9797: \$? = $ac_status" >&5
9798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9799 { (eval echo "$as_me:9799: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804
9805 OPENSSL_SEEDS_ITSELF=yes
9806 echo "$as_me:9806: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808
9809else
9810 echo "$as_me: program exited with status $ac_status" >&5
9811echo "$as_me: failed program was:" >&5
9812cat conftest.$ac_ext >&5
9813
9814 echo "$as_me:9814: result: no" >&5
9815echo "${ECHO_T}no" >&6
9816 # Default to use of the rand helper if OpenSSL doesn't
9817 # seed itself
9818 USE_RAND_HELPER=yes
9819
9820fi
9821rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9822fi
9823
9824# Do we want to force the use of the rand helper?
9825
9826# Check whether --with-rand-helper or --without-rand-helper was given.
9827if test "${with_rand_helper+set}" = set; then
9828 withval="$with_rand_helper"
9829
9830 if test "x$withval" = "xno" ; then
9831 # Force use of OpenSSL's internal RNG, even if
9832 # the previous test showed it to be unseeded.
9833 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
9834 { echo "$as_me:9834: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
9835echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
9836 OPENSSL_SEEDS_ITSELF=yes
9837 USE_RAND_HELPER=""
9838 fi
9839 else
9840 USE_RAND_HELPER=yes
9841 fi
9842
9843fi;
9844
9845# Which randomness source do we use?
9846if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
9847 # OpenSSL only
9848 cat >>confdefs.h <<\EOF
9849#define OPENSSL_PRNG_ONLY 1
9850EOF
9851
9852 RAND_MSG="OpenSSL internal ONLY"
9853 INSTALL_SSH_RAND_HELPER=""
9854elif test ! -z "$USE_RAND_HELPER" ; then
9855 # install rand helper
9856 RAND_MSG="ssh-rand-helper"
9857 INSTALL_SSH_RAND_HELPER="yes"
9858fi
9859
9860### Configuration of ssh-rand-helper
9861
9862# PRNGD TCP socket
9863
9864# Check whether --with-prngd-port or --without-prngd-port was given.
9865if test "${with_prngd_port+set}" = set; then
9866 withval="$with_prngd_port"
9867
9868 case "$withval" in
9869 no)
9870 withval=""
9871 ;;
9872 [0-9]*)
9873 ;;
9874 *)
9875 { { echo "$as_me:9875: error: You must specify a numeric port number for --with-prngd-port" >&5
9876echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
9877 { (exit 1); exit 1; }; }
9878 ;;
9879 esac
9880 if test ! -z "$withval" ; then
9881 PRNGD_PORT="$withval"
9882 cat >>confdefs.h <<EOF
9883#define PRNGD_PORT $PRNGD_PORT
9884EOF
9885
9886 fi
9887
9888fi;
9889
9890# PRNGD Unix domain socket
9891
9892# Check whether --with-prngd-socket or --without-prngd-socket was given.
9893if test "${with_prngd_socket+set}" = set; then
9894 withval="$with_prngd_socket"
9895
9896 case "$withval" in
9897 yes)
9898 withval="/var/run/egd-pool"
9899 ;;
9900 no)
9901 withval=""
9902 ;;
9903 /*)
9904 ;;
9905 *)
9906 { { echo "$as_me:9906: error: You must specify an absolute path to the entropy socket" >&5
9907echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
9908 { (exit 1); exit 1; }; }
9909 ;;
9910 esac
9911
9912 if test ! -z "$withval" ; then
9913 if test ! -z "$PRNGD_PORT" ; then
9914 { { echo "$as_me:9914: error: You may not specify both a PRNGD/EGD port and socket" >&5
9915echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
9916 { (exit 1); exit 1; }; }
9917 fi
9918 if test ! -r "$withval" ; then
9919 { echo "$as_me:9919: WARNING: Entropy socket is not readable" >&5
9920echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
9921 fi
9922 PRNGD_SOCKET="$withval"
9923 cat >>confdefs.h <<EOF
9924#define PRNGD_SOCKET "$PRNGD_SOCKET"
9925EOF
9926
9927 fi
9928
9929else
9930
9931 # Check for existing socket only if we don't have a random device already
9932 if test "$USE_RAND_HELPER" = yes ; then
9933 echo "$as_me:9933: checking for PRNGD/EGD socket" >&5
9934echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
9935 # Insert other locations here
9936 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9937 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
9938 PRNGD_SOCKET="$sock"
9939 cat >>confdefs.h <<EOF
9940#define PRNGD_SOCKET "$PRNGD_SOCKET"
9941EOF
9942
9943 break;
9944 fi
9945 done
9946 if test ! -z "$PRNGD_SOCKET" ; then
9947 echo "$as_me:9947: result: $PRNGD_SOCKET" >&5
9948echo "${ECHO_T}$PRNGD_SOCKET" >&6
9949 else
9950 echo "$as_me:9950: result: not found" >&5
9951echo "${ECHO_T}not found" >&6
9952 fi
9953 fi
9954
9955fi;
9956
9957# Change default command timeout for hashing entropy source
9958entropy_timeout=200
9959
9960# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
9961if test "${with_entropy_timeout+set}" = set; then
9962 withval="$with_entropy_timeout"
9963
9964 if test "x$withval" != "xno" ; then
9965 entropy_timeout=$withval
9966 fi
9967
9968fi;
9969cat >>confdefs.h <<EOF
9970#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
9971EOF
9972
9973SSH_PRIVSEP_USER=sshd
9974
9975# Check whether --with-privsep-user or --without-privsep-user was given.
9976if test "${with_privsep_user+set}" = set; then
9977 withval="$with_privsep_user"
9978
9979 if test -n "$withval"; then
9980 SSH_PRIVSEP_USER=$withval
9981 fi
9982
9983fi;
9984cat >>confdefs.h <<EOF
9985#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9986EOF
9987
9988# We do this little dance with the search path to insure
9989# that programs that we select for use by installed programs
9990# (which may be run by the super-user) come from trusted
9991# locations before they come from the user's private area.
9992# This should help avoid accidentally configuring some
9993# random version of a program in someone's personal bin.
9994
9995OPATH=$PATH
9996PATH=/bin:/usr/bin
9997test -h /bin 2> /dev/null && PATH=/usr/bin
9998test -d /sbin && PATH=$PATH:/sbin
9999test -d /usr/sbin && PATH=$PATH:/usr/sbin
10000PATH=$PATH:/etc:$OPATH
10001
10002# These programs are used by the command hashing source to gather entropy
10003
10004 # Extract the first word of "ls", so it can be a program name with args.
10005set dummy ls; ac_word=$2
10006echo "$as_me:10006: checking for $ac_word" >&5
10007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10008if test "${ac_cv_path_PROG_LS+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 case $PROG_LS in
10012 [\\/]* | ?:[\\/]*)
10013 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
10014 ;;
10015 *)
10016 ac_save_IFS=$IFS; IFS=$ac_path_separator
10017ac_dummy="$PATH"
10018for ac_dir in $ac_dummy; do
10019 IFS=$ac_save_IFS
10020 test -z "$ac_dir" && ac_dir=.
10021 if $as_executable_p "$ac_dir/$ac_word"; then
10022 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
10023 echo "$as_me:10023: found $ac_dir/$ac_word" >&5
10024 break
10025fi
10026done
10027
10028 ;;
10029esac
10030fi
10031PROG_LS=$ac_cv_path_PROG_LS
10032
10033if test -n "$PROG_LS"; then
10034 echo "$as_me:10034: result: $PROG_LS" >&5
10035echo "${ECHO_T}$PROG_LS" >&6
10036else
10037 echo "$as_me:10037: result: no" >&5
10038echo "${ECHO_T}no" >&6
10039fi
10040
10041 if test -z "$PROG_LS" ; then
10042 PROG_LS="undef"
10043 fi
10044
10045 # Extract the first word of "netstat", so it can be a program name with args.
10046set dummy netstat; ac_word=$2
10047echo "$as_me:10047: checking for $ac_word" >&5
10048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10049if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052 case $PROG_NETSTAT in
10053 [\\/]* | ?:[\\/]*)
10054 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
10055 ;;
10056 *)
10057 ac_save_IFS=$IFS; IFS=$ac_path_separator
10058ac_dummy="$PATH"
10059for ac_dir in $ac_dummy; do
10060 IFS=$ac_save_IFS
10061 test -z "$ac_dir" && ac_dir=.
10062 if $as_executable_p "$ac_dir/$ac_word"; then
10063 ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word"
10064 echo "$as_me:10064: found $ac_dir/$ac_word" >&5
10065 break
10066fi
10067done
10068
10069 ;;
10070esac
10071fi
10072PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
10073
10074if test -n "$PROG_NETSTAT"; then
10075 echo "$as_me:10075: result: $PROG_NETSTAT" >&5
10076echo "${ECHO_T}$PROG_NETSTAT" >&6
10077else
10078 echo "$as_me:10078: result: no" >&5
10079echo "${ECHO_T}no" >&6
10080fi
10081
10082 if test -z "$PROG_NETSTAT" ; then
10083 PROG_NETSTAT="undef"
10084 fi
10085
10086 # Extract the first word of "arp", so it can be a program name with args.
10087set dummy arp; ac_word=$2
10088echo "$as_me:10088: checking for $ac_word" >&5
10089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10090if test "${ac_cv_path_PROG_ARP+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
10093 case $PROG_ARP in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
10096 ;;
10097 *)
10098 ac_save_IFS=$IFS; IFS=$ac_path_separator
10099ac_dummy="$PATH"
10100for ac_dir in $ac_dummy; do
10101 IFS=$ac_save_IFS
10102 test -z "$ac_dir" && ac_dir=.
10103 if $as_executable_p "$ac_dir/$ac_word"; then
10104 ac_cv_path_PROG_ARP="$ac_dir/$ac_word"
10105 echo "$as_me:10105: found $ac_dir/$ac_word" >&5
10106 break
10107fi
10108done
10109
10110 ;;
10111esac
10112fi
10113PROG_ARP=$ac_cv_path_PROG_ARP
10114
10115if test -n "$PROG_ARP"; then
10116 echo "$as_me:10116: result: $PROG_ARP" >&5
10117echo "${ECHO_T}$PROG_ARP" >&6
10118else
10119 echo "$as_me:10119: result: no" >&5
10120echo "${ECHO_T}no" >&6
10121fi
10122
10123 if test -z "$PROG_ARP" ; then
10124 PROG_ARP="undef"
10125 fi
10126
10127 # Extract the first word of "ifconfig", so it can be a program name with args.
10128set dummy ifconfig; ac_word=$2
10129echo "$as_me:10129: checking for $ac_word" >&5
10130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10131if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 case $PROG_IFCONFIG in
10135 [\\/]* | ?:[\\/]*)
10136 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
10137 ;;
10138 *)
10139 ac_save_IFS=$IFS; IFS=$ac_path_separator
10140ac_dummy="$PATH"
10141for ac_dir in $ac_dummy; do
10142 IFS=$ac_save_IFS
10143 test -z "$ac_dir" && ac_dir=.
10144 if $as_executable_p "$ac_dir/$ac_word"; then
10145 ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word"
10146 echo "$as_me:10146: found $ac_dir/$ac_word" >&5
10147 break
10148fi
10149done
10150
10151 ;;
10152esac
10153fi
10154PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
10155
10156if test -n "$PROG_IFCONFIG"; then
10157 echo "$as_me:10157: result: $PROG_IFCONFIG" >&5
10158echo "${ECHO_T}$PROG_IFCONFIG" >&6
10159else
10160 echo "$as_me:10160: result: no" >&5
10161echo "${ECHO_T}no" >&6
10162fi
10163
10164 if test -z "$PROG_IFCONFIG" ; then
10165 PROG_IFCONFIG="undef"
10166 fi
10167
10168 # Extract the first word of "jstat", so it can be a program name with args.
10169set dummy jstat; ac_word=$2
10170echo "$as_me:10170: checking for $ac_word" >&5
10171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10172if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175 case $PROG_JSTAT in
10176 [\\/]* | ?:[\\/]*)
10177 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
10178 ;;
10179 *)
10180 ac_save_IFS=$IFS; IFS=$ac_path_separator
10181ac_dummy="$PATH"
10182for ac_dir in $ac_dummy; do
10183 IFS=$ac_save_IFS
10184 test -z "$ac_dir" && ac_dir=.
10185 if $as_executable_p "$ac_dir/$ac_word"; then
10186 ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word"
10187 echo "$as_me:10187: found $ac_dir/$ac_word" >&5
10188 break
10189fi
10190done
10191
10192 ;;
10193esac
10194fi
10195PROG_JSTAT=$ac_cv_path_PROG_JSTAT
10196
10197if test -n "$PROG_JSTAT"; then
10198 echo "$as_me:10198: result: $PROG_JSTAT" >&5
10199echo "${ECHO_T}$PROG_JSTAT" >&6
10200else
10201 echo "$as_me:10201: result: no" >&5
10202echo "${ECHO_T}no" >&6
10203fi
10204
10205 if test -z "$PROG_JSTAT" ; then
10206 PROG_JSTAT="undef"
10207 fi
10208
10209 # Extract the first word of "ps", so it can be a program name with args.
10210set dummy ps; ac_word=$2
10211echo "$as_me:10211: checking for $ac_word" >&5
10212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10213if test "${ac_cv_path_PROG_PS+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 case $PROG_PS in
10217 [\\/]* | ?:[\\/]*)
10218 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
10219 ;;
10220 *)
10221 ac_save_IFS=$IFS; IFS=$ac_path_separator
10222ac_dummy="$PATH"
10223for ac_dir in $ac_dummy; do
10224 IFS=$ac_save_IFS
10225 test -z "$ac_dir" && ac_dir=.
10226 if $as_executable_p "$ac_dir/$ac_word"; then
10227 ac_cv_path_PROG_PS="$ac_dir/$ac_word"
10228 echo "$as_me:10228: found $ac_dir/$ac_word" >&5
10229 break
10230fi
10231done
10232
10233 ;;
10234esac
10235fi
10236PROG_PS=$ac_cv_path_PROG_PS
10237
10238if test -n "$PROG_PS"; then
10239 echo "$as_me:10239: result: $PROG_PS" >&5
10240echo "${ECHO_T}$PROG_PS" >&6
10241else
10242 echo "$as_me:10242: result: no" >&5
10243echo "${ECHO_T}no" >&6
10244fi
10245
10246 if test -z "$PROG_PS" ; then
10247 PROG_PS="undef"
10248 fi
10249
10250 # Extract the first word of "sar", so it can be a program name with args.
10251set dummy sar; ac_word=$2
10252echo "$as_me:10252: checking for $ac_word" >&5
10253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10254if test "${ac_cv_path_PROG_SAR+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257 case $PROG_SAR in
10258 [\\/]* | ?:[\\/]*)
10259 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
10260 ;;
10261 *)
10262 ac_save_IFS=$IFS; IFS=$ac_path_separator
10263ac_dummy="$PATH"
10264for ac_dir in $ac_dummy; do
10265 IFS=$ac_save_IFS
10266 test -z "$ac_dir" && ac_dir=.
10267 if $as_executable_p "$ac_dir/$ac_word"; then
10268 ac_cv_path_PROG_SAR="$ac_dir/$ac_word"
10269 echo "$as_me:10269: found $ac_dir/$ac_word" >&5
10270 break
10271fi
10272done
10273
10274 ;;
10275esac
10276fi
10277PROG_SAR=$ac_cv_path_PROG_SAR
10278
10279if test -n "$PROG_SAR"; then
10280 echo "$as_me:10280: result: $PROG_SAR" >&5
10281echo "${ECHO_T}$PROG_SAR" >&6
10282else
10283 echo "$as_me:10283: result: no" >&5
10284echo "${ECHO_T}no" >&6
10285fi
10286
10287 if test -z "$PROG_SAR" ; then
10288 PROG_SAR="undef"
10289 fi
10290
10291 # Extract the first word of "w", so it can be a program name with args.
10292set dummy w; ac_word=$2
10293echo "$as_me:10293: checking for $ac_word" >&5
10294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10295if test "${ac_cv_path_PROG_W+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 case $PROG_W in
10299 [\\/]* | ?:[\\/]*)
10300 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
10301 ;;
10302 *)
10303 ac_save_IFS=$IFS; IFS=$ac_path_separator
10304ac_dummy="$PATH"
10305for ac_dir in $ac_dummy; do
10306 IFS=$ac_save_IFS
10307 test -z "$ac_dir" && ac_dir=.
10308 if $as_executable_p "$ac_dir/$ac_word"; then
10309 ac_cv_path_PROG_W="$ac_dir/$ac_word"
10310 echo "$as_me:10310: found $ac_dir/$ac_word" >&5
10311 break
10312fi
10313done
10314
10315 ;;
10316esac
10317fi
10318PROG_W=$ac_cv_path_PROG_W
10319
10320if test -n "$PROG_W"; then
10321 echo "$as_me:10321: result: $PROG_W" >&5
10322echo "${ECHO_T}$PROG_W" >&6
10323else
10324 echo "$as_me:10324: result: no" >&5
10325echo "${ECHO_T}no" >&6
10326fi
10327
10328 if test -z "$PROG_W" ; then
10329 PROG_W="undef"
10330 fi
10331
10332 # Extract the first word of "who", so it can be a program name with args.
10333set dummy who; ac_word=$2
10334echo "$as_me:10334: checking for $ac_word" >&5
10335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10336if test "${ac_cv_path_PROG_WHO+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339 case $PROG_WHO in
10340 [\\/]* | ?:[\\/]*)
10341 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
10342 ;;
10343 *)
10344 ac_save_IFS=$IFS; IFS=$ac_path_separator
10345ac_dummy="$PATH"
10346for ac_dir in $ac_dummy; do
10347 IFS=$ac_save_IFS
10348 test -z "$ac_dir" && ac_dir=.
10349 if $as_executable_p "$ac_dir/$ac_word"; then
10350 ac_cv_path_PROG_WHO="$ac_dir/$ac_word"
10351 echo "$as_me:10351: found $ac_dir/$ac_word" >&5
10352 break
10353fi
10354done
10355
10356 ;;
10357esac
10358fi
10359PROG_WHO=$ac_cv_path_PROG_WHO
10360
10361if test -n "$PROG_WHO"; then
10362 echo "$as_me:10362: result: $PROG_WHO" >&5
10363echo "${ECHO_T}$PROG_WHO" >&6
10364else
10365 echo "$as_me:10365: result: no" >&5
10366echo "${ECHO_T}no" >&6
10367fi
10368
10369 if test -z "$PROG_WHO" ; then
10370 PROG_WHO="undef"
10371 fi
10372
10373 # Extract the first word of "last", so it can be a program name with args.
10374set dummy last; ac_word=$2
10375echo "$as_me:10375: checking for $ac_word" >&5
10376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10377if test "${ac_cv_path_PROG_LAST+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380 case $PROG_LAST in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
10383 ;;
10384 *)
10385 ac_save_IFS=$IFS; IFS=$ac_path_separator
10386ac_dummy="$PATH"
10387for ac_dir in $ac_dummy; do
10388 IFS=$ac_save_IFS
10389 test -z "$ac_dir" && ac_dir=.
10390 if $as_executable_p "$ac_dir/$ac_word"; then
10391 ac_cv_path_PROG_LAST="$ac_dir/$ac_word"
10392 echo "$as_me:10392: found $ac_dir/$ac_word" >&5
10393 break
10394fi
10395done
10396
10397 ;;
10398esac
10399fi
10400PROG_LAST=$ac_cv_path_PROG_LAST
10401
10402if test -n "$PROG_LAST"; then
10403 echo "$as_me:10403: result: $PROG_LAST" >&5
10404echo "${ECHO_T}$PROG_LAST" >&6
10405else
10406 echo "$as_me:10406: result: no" >&5
10407echo "${ECHO_T}no" >&6
10408fi
10409
10410 if test -z "$PROG_LAST" ; then
10411 PROG_LAST="undef"
10412 fi
10413
10414 # Extract the first word of "lastlog", so it can be a program name with args.
10415set dummy lastlog; ac_word=$2
10416echo "$as_me:10416: checking for $ac_word" >&5
10417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10418if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421 case $PROG_LASTLOG in
10422 [\\/]* | ?:[\\/]*)
10423 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
10424 ;;
10425 *)
10426 ac_save_IFS=$IFS; IFS=$ac_path_separator
10427ac_dummy="$PATH"
10428for ac_dir in $ac_dummy; do
10429 IFS=$ac_save_IFS
10430 test -z "$ac_dir" && ac_dir=.
10431 if $as_executable_p "$ac_dir/$ac_word"; then
10432 ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word"
10433 echo "$as_me:10433: found $ac_dir/$ac_word" >&5
10434 break
10435fi
10436done
10437
10438 ;;
10439esac
10440fi
10441PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
10442
10443if test -n "$PROG_LASTLOG"; then
10444 echo "$as_me:10444: result: $PROG_LASTLOG" >&5
10445echo "${ECHO_T}$PROG_LASTLOG" >&6
10446else
10447 echo "$as_me:10447: result: no" >&5
10448echo "${ECHO_T}no" >&6
10449fi
10450
10451 if test -z "$PROG_LASTLOG" ; then
10452 PROG_LASTLOG="undef"
10453 fi
10454
10455 # Extract the first word of "df", so it can be a program name with args.
10456set dummy df; ac_word=$2
10457echo "$as_me:10457: checking for $ac_word" >&5
10458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10459if test "${ac_cv_path_PROG_DF+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462 case $PROG_DF in
10463 [\\/]* | ?:[\\/]*)
10464 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
10465 ;;
10466 *)
10467 ac_save_IFS=$IFS; IFS=$ac_path_separator
10468ac_dummy="$PATH"
10469for ac_dir in $ac_dummy; do
10470 IFS=$ac_save_IFS
10471 test -z "$ac_dir" && ac_dir=.
10472 if $as_executable_p "$ac_dir/$ac_word"; then
10473 ac_cv_path_PROG_DF="$ac_dir/$ac_word"
10474 echo "$as_me:10474: found $ac_dir/$ac_word" >&5
10475 break
10476fi
10477done
10478
10479 ;;
10480esac
10481fi
10482PROG_DF=$ac_cv_path_PROG_DF
10483
10484if test -n "$PROG_DF"; then
10485 echo "$as_me:10485: result: $PROG_DF" >&5
10486echo "${ECHO_T}$PROG_DF" >&6
10487else
10488 echo "$as_me:10488: result: no" >&5
10489echo "${ECHO_T}no" >&6
10490fi
10491
10492 if test -z "$PROG_DF" ; then
10493 PROG_DF="undef"
10494 fi
10495
10496 # Extract the first word of "vmstat", so it can be a program name with args.
10497set dummy vmstat; ac_word=$2
10498echo "$as_me:10498: checking for $ac_word" >&5
10499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10500if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502else
10503 case $PROG_VMSTAT in
10504 [\\/]* | ?:[\\/]*)
10505 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
10506 ;;
10507 *)
10508 ac_save_IFS=$IFS; IFS=$ac_path_separator
10509ac_dummy="$PATH"
10510for ac_dir in $ac_dummy; do
10511 IFS=$ac_save_IFS
10512 test -z "$ac_dir" && ac_dir=.
10513 if $as_executable_p "$ac_dir/$ac_word"; then
10514 ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word"
10515 echo "$as_me:10515: found $ac_dir/$ac_word" >&5
10516 break
10517fi
10518done
10519
10520 ;;
10521esac
10522fi
10523PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
10524
10525if test -n "$PROG_VMSTAT"; then
10526 echo "$as_me:10526: result: $PROG_VMSTAT" >&5
10527echo "${ECHO_T}$PROG_VMSTAT" >&6
10528else
10529 echo "$as_me:10529: result: no" >&5
10530echo "${ECHO_T}no" >&6
10531fi
10532
10533 if test -z "$PROG_VMSTAT" ; then
10534 PROG_VMSTAT="undef"
10535 fi
10536
10537 # Extract the first word of "uptime", so it can be a program name with args.
10538set dummy uptime; ac_word=$2
10539echo "$as_me:10539: checking for $ac_word" >&5
10540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10541if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543else
10544 case $PROG_UPTIME in
10545 [\\/]* | ?:[\\/]*)
10546 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
10547 ;;
10548 *)
10549 ac_save_IFS=$IFS; IFS=$ac_path_separator
10550ac_dummy="$PATH"
10551for ac_dir in $ac_dummy; do
10552 IFS=$ac_save_IFS
10553 test -z "$ac_dir" && ac_dir=.
10554 if $as_executable_p "$ac_dir/$ac_word"; then
10555 ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word"
10556 echo "$as_me:10556: found $ac_dir/$ac_word" >&5
10557 break
10558fi
10559done
10560
10561 ;;
10562esac
10563fi
10564PROG_UPTIME=$ac_cv_path_PROG_UPTIME
10565
10566if test -n "$PROG_UPTIME"; then
10567 echo "$as_me:10567: result: $PROG_UPTIME" >&5
10568echo "${ECHO_T}$PROG_UPTIME" >&6
10569else
10570 echo "$as_me:10570: result: no" >&5
10571echo "${ECHO_T}no" >&6
10572fi
10573
10574 if test -z "$PROG_UPTIME" ; then
10575 PROG_UPTIME="undef"
10576 fi
10577
10578 # Extract the first word of "ipcs", so it can be a program name with args.
10579set dummy ipcs; ac_word=$2
10580echo "$as_me:10580: checking for $ac_word" >&5
10581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582if test "${ac_cv_path_PROG_IPCS+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585 case $PROG_IPCS in
10586 [\\/]* | ?:[\\/]*)
10587 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
10588 ;;
10589 *)
10590 ac_save_IFS=$IFS; IFS=$ac_path_separator
10591ac_dummy="$PATH"
10592for ac_dir in $ac_dummy; do
10593 IFS=$ac_save_IFS
10594 test -z "$ac_dir" && ac_dir=.
10595 if $as_executable_p "$ac_dir/$ac_word"; then
10596 ac_cv_path_PROG_IPCS="$ac_dir/$ac_word"
10597 echo "$as_me:10597: found $ac_dir/$ac_word" >&5
10598 break
10599fi
10600done
10601
10602 ;;
10603esac
10604fi
10605PROG_IPCS=$ac_cv_path_PROG_IPCS
10606
10607if test -n "$PROG_IPCS"; then
10608 echo "$as_me:10608: result: $PROG_IPCS" >&5
10609echo "${ECHO_T}$PROG_IPCS" >&6
10610else
10611 echo "$as_me:10611: result: no" >&5
10612echo "${ECHO_T}no" >&6
10613fi
10614
10615 if test -z "$PROG_IPCS" ; then
10616 PROG_IPCS="undef"
10617 fi
10618
10619 # Extract the first word of "tail", so it can be a program name with args.
10620set dummy tail; ac_word=$2
10621echo "$as_me:10621: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_path_PROG_TAIL+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else
10626 case $PROG_TAIL in
10627 [\\/]* | ?:[\\/]*)
10628 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
10629 ;;
10630 *)
10631 ac_save_IFS=$IFS; IFS=$ac_path_separator
10632ac_dummy="$PATH"
10633for ac_dir in $ac_dummy; do
10634 IFS=$ac_save_IFS
10635 test -z "$ac_dir" && ac_dir=.
10636 if $as_executable_p "$ac_dir/$ac_word"; then
10637 ac_cv_path_PROG_TAIL="$ac_dir/$ac_word"
10638 echo "$as_me:10638: found $ac_dir/$ac_word" >&5
10639 break
10640fi
10641done
10642
10643 ;;
10644esac
10645fi
10646PROG_TAIL=$ac_cv_path_PROG_TAIL
10647
10648if test -n "$PROG_TAIL"; then
10649 echo "$as_me:10649: result: $PROG_TAIL" >&5
10650echo "${ECHO_T}$PROG_TAIL" >&6
10651else
10652 echo "$as_me:10652: result: no" >&5
10653echo "${ECHO_T}no" >&6
10654fi
10655
10656 if test -z "$PROG_TAIL" ; then
10657 PROG_TAIL="undef"
10658 fi
10659
10660# restore PATH
10661PATH=$OPATH
10662
10663# Where does ssh-rand-helper get its randomness from?
10664INSTALL_SSH_PRNG_CMDS=""
10665if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
10666 if test ! -z "$PRNGD_PORT" ; then
10667 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
10668 elif test ! -z "$PRNGD_SOCKET" ; then
10669 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
10670 else
10671 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
10672 RAND_HELPER_CMDHASH=yes
10673 INSTALL_SSH_PRNG_CMDS="yes"
10674 fi
10675fi
10676
10677# Cheap hack to ensure NEWS-OS libraries are arranged right.
10678if test ! -z "$SONY" ; then
10679 LIBS="$LIBS -liberty";
10680fi
10681
10682# Checks for data types
10683echo "$as_me:10683: checking for char" >&5
10684echo $ECHO_N "checking for char... $ECHO_C" >&6
10685if test "${ac_cv_type_char+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687else
10688 cat >conftest.$ac_ext <<_ACEOF
10689#line 10689 "configure"
10690#include "confdefs.h"
10691$ac_includes_default
10692int
10693main ()
10694{
10695if ((char *) 0)
10696 return 0;
10697if (sizeof (char))
10698 return 0;
10699 ;
10700 return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (eval echo "$as_me:10704: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10706 ac_status=$?
10707 echo "$as_me:10707: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:10710: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_type_char=yes
10716else
10717 echo "$as_me: failed program was:" >&5
10718cat conftest.$ac_ext >&5
10719ac_cv_type_char=no
10720fi
10721rm -f conftest.$ac_objext conftest.$ac_ext
10722fi
10723echo "$as_me:10723: result: $ac_cv_type_char" >&5
10724echo "${ECHO_T}$ac_cv_type_char" >&6
10725
10726echo "$as_me:10726: checking size of char" >&5
10727echo $ECHO_N "checking size of char... $ECHO_C" >&6
10728if test "${ac_cv_sizeof_char+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730else
10731 if test "$ac_cv_type_char" = yes; then
10732 if test "$cross_compiling" = yes; then
10733 # Depending upon the size, compute the lo and hi bounds.
10734cat >conftest.$ac_ext <<_ACEOF
10735#line 10735 "configure"
10736#include "confdefs.h"
10737$ac_includes_default
10738int
10739main ()
10740{
10741int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
10742 ;
10743 return 0;
10744}
10745_ACEOF
10746rm -f conftest.$ac_objext
10747if { (eval echo "$as_me:10747: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>&5
10749 ac_status=$?
10750 echo "$as_me:10750: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:10753: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_lo=0 ac_mid=0
10759 while :; do
10760 cat >conftest.$ac_ext <<_ACEOF
10761#line 10761 "configure"
10762#include "confdefs.h"
10763$ac_includes_default
10764int
10765main ()
10766{
10767int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext
10773if { (eval echo "$as_me:10773: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>&5
10775 ac_status=$?
10776 echo "$as_me:10776: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:10779: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:10782: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_hi=$ac_mid; break
10785else
10786 echo "$as_me: failed program was:" >&5
10787cat conftest.$ac_ext >&5
10788ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10789fi
10790rm -f conftest.$ac_objext conftest.$ac_ext
10791 done
10792else
10793 echo "$as_me: failed program was:" >&5
10794cat conftest.$ac_ext >&5
10795ac_hi=-1 ac_mid=-1
10796 while :; do
10797 cat >conftest.$ac_ext <<_ACEOF
10798#line 10798 "configure"
10799#include "confdefs.h"
10800$ac_includes_default
10801int
10802main ()
10803{
10804int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:10810: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>&5
10812 ac_status=$?
10813 echo "$as_me:10813: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:10816: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:10819: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_lo=$ac_mid; break
10822else
10823 echo "$as_me: failed program was:" >&5
10824cat conftest.$ac_ext >&5
10825ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10826fi
10827rm -f conftest.$ac_objext conftest.$ac_ext
10828 done
10829fi
10830rm -f conftest.$ac_objext conftest.$ac_ext
10831# Binary search between lo and hi bounds.
10832while test "x$ac_lo" != "x$ac_hi"; do
10833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10834 cat >conftest.$ac_ext <<_ACEOF
10835#line 10835 "configure"
10836#include "confdefs.h"
10837$ac_includes_default
10838int
10839main ()
10840{
10841int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
10842 ;
10843 return 0;
10844}
10845_ACEOF
10846rm -f conftest.$ac_objext
10847if { (eval echo "$as_me:10847: \"$ac_compile\"") >&5
10848 (eval $ac_compile) 2>&5
10849 ac_status=$?
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (eval echo "$as_me:10853: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_hi=$ac_mid
10859else
10860 echo "$as_me: failed program was:" >&5
10861cat conftest.$ac_ext >&5
10862ac_lo=`expr $ac_mid + 1`
10863fi
10864rm -f conftest.$ac_objext conftest.$ac_ext
10865done
10866ac_cv_sizeof_char=$ac_lo
10867else
10868 if test "$cross_compiling" = yes; then
10869 { { echo "$as_me:10869: error: cannot run test program while cross compiling" >&5
10870echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10871 { (exit 1); exit 1; }; }
10872else
10873 cat >conftest.$ac_ext <<_ACEOF
10874#line 10874 "configure"
10875#include "confdefs.h"
10876$ac_includes_default
10877int
10878main ()
10879{
10880FILE *f = fopen ("conftest.val", "w");
10881if (!f)
10882 exit (1);
10883fprintf (f, "%d", (sizeof (char)));
10884fclose (f);
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889rm -f conftest$ac_exeext
10890if { (eval echo "$as_me:10890: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>&5
10892 ac_status=$?
10893 echo "$as_me:10893: \$? = $ac_status" >&5
10894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10895 { (eval echo "$as_me:10895: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_sizeof_char=`cat conftest.val`
10901else
10902 echo "$as_me: program exited with status $ac_status" >&5
10903echo "$as_me: failed program was:" >&5
10904cat conftest.$ac_ext >&5
10905fi
10906rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10907fi
10908fi
10909rm -f conftest.val
10910else
10911 ac_cv_sizeof_char=0
10912fi
10913fi
10914echo "$as_me:10914: result: $ac_cv_sizeof_char" >&5
10915echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10916cat >>confdefs.h <<EOF
10917#define SIZEOF_CHAR $ac_cv_sizeof_char
10918EOF
10919
10920echo "$as_me:10920: checking for short int" >&5
10921echo $ECHO_N "checking for short int... $ECHO_C" >&6
10922if test "${ac_cv_type_short_int+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926#line 10926 "configure"
10927#include "confdefs.h"
10928$ac_includes_default
10929int
10930main ()
10931{
10932if ((short int *) 0)
10933 return 0;
10934if (sizeof (short int))
10935 return 0;
10936 ;
10937 return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>&5
10943 ac_status=$?
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:10947: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:10950: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_type_short_int=yes
10953else
10954 echo "$as_me: failed program was:" >&5
10955cat conftest.$ac_ext >&5
10956ac_cv_type_short_int=no
10957fi
10958rm -f conftest.$ac_objext conftest.$ac_ext
10959fi
10960echo "$as_me:10960: result: $ac_cv_type_short_int" >&5
10961echo "${ECHO_T}$ac_cv_type_short_int" >&6
10962
10963echo "$as_me:10963: checking size of short int" >&5
10964echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10965if test "${ac_cv_sizeof_short_int+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 if test "$ac_cv_type_short_int" = yes; then
10969 if test "$cross_compiling" = yes; then
10970 # Depending upon the size, compute the lo and hi bounds.
10971cat >conftest.$ac_ext <<_ACEOF
10972#line 10972 "configure"
10973#include "confdefs.h"
10974$ac_includes_default
10975int
10976main ()
10977{
10978int _array_ [1 - 2 * !((sizeof (short int)) >= 0)]
10979 ;
10980 return 0;
10981}
10982_ACEOF
10983rm -f conftest.$ac_objext
10984if { (eval echo "$as_me:10984: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>&5
10986 ac_status=$?
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (eval echo "$as_me:10990: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:10993: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 ac_lo=0 ac_mid=0
10996 while :; do
10997 cat >conftest.$ac_ext <<_ACEOF
10998#line 10998 "configure"
10999#include "confdefs.h"
11000$ac_includes_default
11001int
11002main ()
11003{
11004int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)]
11005 ;
11006 return 0;
11007}
11008_ACEOF
11009rm -f conftest.$ac_objext
11010if { (eval echo "$as_me:11010: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>&5
11012 ac_status=$?
11013 echo "$as_me:11013: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -s conftest.$ac_objext'
11016 { (eval echo "$as_me:11016: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:11019: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_hi=$ac_mid; break
11022else
11023 echo "$as_me: failed program was:" >&5
11024cat conftest.$ac_ext >&5
11025ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11026fi
11027rm -f conftest.$ac_objext conftest.$ac_ext
11028 done
11029else
11030 echo "$as_me: failed program was:" >&5
11031cat conftest.$ac_ext >&5
11032ac_hi=-1 ac_mid=-1
11033 while :; do
11034 cat >conftest.$ac_ext <<_ACEOF
11035#line 11035 "configure"
11036#include "confdefs.h"
11037$ac_includes_default
11038int
11039main ()
11040{
11041int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)]
11042 ;
11043 return 0;
11044}
11045_ACEOF
11046rm -f conftest.$ac_objext
11047if { (eval echo "$as_me:11047: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11049 ac_status=$?
11050 echo "$as_me:11050: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (eval echo "$as_me:11053: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:11056: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 ac_lo=$ac_mid; break
11059else
11060 echo "$as_me: failed program was:" >&5
11061cat conftest.$ac_ext >&5
11062ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11063fi
11064rm -f conftest.$ac_objext conftest.$ac_ext
11065 done
11066fi
11067rm -f conftest.$ac_objext conftest.$ac_ext
11068# Binary search between lo and hi bounds.
11069while test "x$ac_lo" != "x$ac_hi"; do
11070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11071 cat >conftest.$ac_ext <<_ACEOF
11072#line 11072 "configure"
11073#include "confdefs.h"
11074$ac_includes_default
11075int
11076main ()
11077{
11078int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)]
11079 ;
11080 return 0;
11081}
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (eval echo "$as_me:11084: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>&5
11086 ac_status=$?
11087 echo "$as_me:11087: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:11090: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:11093: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_hi=$ac_mid
11096else
11097 echo "$as_me: failed program was:" >&5
11098cat conftest.$ac_ext >&5
11099ac_lo=`expr $ac_mid + 1`
11100fi
11101rm -f conftest.$ac_objext conftest.$ac_ext
11102done
11103ac_cv_sizeof_short_int=$ac_lo
11104else
11105 if test "$cross_compiling" = yes; then
11106 { { echo "$as_me:11106: error: cannot run test program while cross compiling" >&5
11107echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11108 { (exit 1); exit 1; }; }
11109else
11110 cat >conftest.$ac_ext <<_ACEOF
11111#line 11111 "configure"
11112#include "confdefs.h"
11113$ac_includes_default
11114int
11115main ()
11116{
11117FILE *f = fopen ("conftest.val", "w");
11118if (!f)
11119 exit (1);
11120fprintf (f, "%d", (sizeof (short int)));
11121fclose (f);
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126rm -f conftest$ac_exeext
11127if { (eval echo "$as_me:11127: \"$ac_link\"") >&5
11128 (eval $ac_link) 2>&5
11129 ac_status=$?
11130 echo "$as_me:11130: \$? = $ac_status" >&5
11131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11132 { (eval echo "$as_me:11132: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_sizeof_short_int=`cat conftest.val`
11138else
11139 echo "$as_me: program exited with status $ac_status" >&5
11140echo "$as_me: failed program was:" >&5
11141cat conftest.$ac_ext >&5
11142fi
11143rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11144fi
11145fi
11146rm -f conftest.val
11147else
11148 ac_cv_sizeof_short_int=0
11149fi
11150fi
11151echo "$as_me:11151: result: $ac_cv_sizeof_short_int" >&5
11152echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
11153cat >>confdefs.h <<EOF
11154#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11155EOF
11156
11157echo "$as_me:11157: checking for int" >&5
11158echo $ECHO_N "checking for int... $ECHO_C" >&6
11159if test "${ac_cv_type_int+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 cat >conftest.$ac_ext <<_ACEOF
11163#line 11163 "configure"
11164#include "confdefs.h"
11165$ac_includes_default
11166int
11167main ()
11168{
11169if ((int *) 0)
11170 return 0;
11171if (sizeof (int))
11172 return 0;
11173 ;
11174 return 0;
11175}
11176_ACEOF
11177rm -f conftest.$ac_objext
11178if { (eval echo "$as_me:11178: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11180 ac_status=$?
11181 echo "$as_me:11181: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:11184: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:11187: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_type_int=yes
11190else
11191 echo "$as_me: failed program was:" >&5
11192cat conftest.$ac_ext >&5
11193ac_cv_type_int=no
11194fi
11195rm -f conftest.$ac_objext conftest.$ac_ext
11196fi
11197echo "$as_me:11197: result: $ac_cv_type_int" >&5
11198echo "${ECHO_T}$ac_cv_type_int" >&6
11199
11200echo "$as_me:11200: checking size of int" >&5
11201echo $ECHO_N "checking size of int... $ECHO_C" >&6
11202if test "${ac_cv_sizeof_int+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204else
11205 if test "$ac_cv_type_int" = yes; then
11206 if test "$cross_compiling" = yes; then
11207 # Depending upon the size, compute the lo and hi bounds.
11208cat >conftest.$ac_ext <<_ACEOF
11209#line 11209 "configure"
11210#include "confdefs.h"
11211$ac_includes_default
11212int
11213main ()
11214{
11215int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
11216 ;
11217 return 0;
11218}
11219_ACEOF
11220rm -f conftest.$ac_objext
11221if { (eval echo "$as_me:11221: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>&5
11223 ac_status=$?
11224 echo "$as_me:11224: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -s conftest.$ac_objext'
11227 { (eval echo "$as_me:11227: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_lo=0 ac_mid=0
11233 while :; do
11234 cat >conftest.$ac_ext <<_ACEOF
11235#line 11235 "configure"
11236#include "confdefs.h"
11237$ac_includes_default
11238int
11239main ()
11240{
11241int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (eval echo "$as_me:11247: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>&5
11249 ac_status=$?
11250 echo "$as_me:11250: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:11253: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:11256: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_hi=$ac_mid; break
11259else
11260 echo "$as_me: failed program was:" >&5
11261cat conftest.$ac_ext >&5
11262ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11263fi
11264rm -f conftest.$ac_objext conftest.$ac_ext
11265 done
11266else
11267 echo "$as_me: failed program was:" >&5
11268cat conftest.$ac_ext >&5
11269ac_hi=-1 ac_mid=-1
11270 while :; do
11271 cat >conftest.$ac_ext <<_ACEOF
11272#line 11272 "configure"
11273#include "confdefs.h"
11274$ac_includes_default
11275int
11276main ()
11277{
11278int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
11279 ;
11280 return 0;
11281}
11282_ACEOF
11283rm -f conftest.$ac_objext
11284if { (eval echo "$as_me:11284: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>&5
11286 ac_status=$?
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (eval echo "$as_me:11290: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:11293: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 ac_lo=$ac_mid; break
11296else
11297 echo "$as_me: failed program was:" >&5
11298cat conftest.$ac_ext >&5
11299ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11300fi
11301rm -f conftest.$ac_objext conftest.$ac_ext
11302 done
11303fi
11304rm -f conftest.$ac_objext conftest.$ac_ext
11305# Binary search between lo and hi bounds.
11306while test "x$ac_lo" != "x$ac_hi"; do
11307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11308 cat >conftest.$ac_ext <<_ACEOF
11309#line 11309 "configure"
11310#include "confdefs.h"
11311$ac_includes_default
11312int
11313main ()
11314{
11315int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (eval echo "$as_me:11321: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>&5
11323 ac_status=$?
11324 echo "$as_me:11324: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:11327: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:11330: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_hi=$ac_mid
11333else
11334 echo "$as_me: failed program was:" >&5
11335cat conftest.$ac_ext >&5
11336ac_lo=`expr $ac_mid + 1`
11337fi
11338rm -f conftest.$ac_objext conftest.$ac_ext
11339done
11340ac_cv_sizeof_int=$ac_lo
11341else
11342 if test "$cross_compiling" = yes; then
11343 { { echo "$as_me:11343: error: cannot run test program while cross compiling" >&5
11344echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11345 { (exit 1); exit 1; }; }
11346else
11347 cat >conftest.$ac_ext <<_ACEOF
11348#line 11348 "configure"
11349#include "confdefs.h"
11350$ac_includes_default
11351int
11352main ()
11353{
11354FILE *f = fopen ("conftest.val", "w");
11355if (!f)
11356 exit (1);
11357fprintf (f, "%d", (sizeof (int)));
11358fclose (f);
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363rm -f conftest$ac_exeext
11364if { (eval echo "$as_me:11364: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11366 ac_status=$?
11367 echo "$as_me:11367: \$? = $ac_status" >&5
11368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11369 { (eval echo "$as_me:11369: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:11372: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_sizeof_int=`cat conftest.val`
11375else
11376 echo "$as_me: program exited with status $ac_status" >&5
11377echo "$as_me: failed program was:" >&5
11378cat conftest.$ac_ext >&5
11379fi
11380rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11381fi
11382fi
11383rm -f conftest.val
11384else
11385 ac_cv_sizeof_int=0
11386fi
11387fi
11388echo "$as_me:11388: result: $ac_cv_sizeof_int" >&5
11389echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11390cat >>confdefs.h <<EOF
11391#define SIZEOF_INT $ac_cv_sizeof_int
11392EOF
11393
11394echo "$as_me:11394: checking for long int" >&5
11395echo $ECHO_N "checking for long int... $ECHO_C" >&6
11396if test "${ac_cv_type_long_int+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398else
11399 cat >conftest.$ac_ext <<_ACEOF
11400#line 11400 "configure"
11401#include "confdefs.h"
11402$ac_includes_default
11403int
11404main ()
11405{
11406if ((long int *) 0)
11407 return 0;
11408if (sizeof (long int))
11409 return 0;
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (eval echo "$as_me:11415: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>&5
11417 ac_status=$?
11418 echo "$as_me:11418: \$? = $ac_status" >&5
11419 (exit $ac_status); } &&
11420 { ac_try='test -s conftest.$ac_objext'
11421 { (eval echo "$as_me:11421: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:11424: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_cv_type_long_int=yes
11427else
11428 echo "$as_me: failed program was:" >&5
11429cat conftest.$ac_ext >&5
11430ac_cv_type_long_int=no
11431fi
11432rm -f conftest.$ac_objext conftest.$ac_ext
11433fi
11434echo "$as_me:11434: result: $ac_cv_type_long_int" >&5
11435echo "${ECHO_T}$ac_cv_type_long_int" >&6
11436
11437echo "$as_me:11437: checking size of long int" >&5
11438echo $ECHO_N "checking size of long int... $ECHO_C" >&6
11439if test "${ac_cv_sizeof_long_int+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441else
11442 if test "$ac_cv_type_long_int" = yes; then
11443 if test "$cross_compiling" = yes; then
11444 # Depending upon the size, compute the lo and hi bounds.
11445cat >conftest.$ac_ext <<_ACEOF
11446#line 11446 "configure"
11447#include "confdefs.h"
11448$ac_includes_default
11449int
11450main ()
11451{
11452int _array_ [1 - 2 * !((sizeof (long int)) >= 0)]
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext
11458if { (eval echo "$as_me:11458: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>&5
11460 ac_status=$?
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:11464: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:11467: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_lo=0 ac_mid=0
11470 while :; do
11471 cat >conftest.$ac_ext <<_ACEOF
11472#line 11472 "configure"
11473#include "confdefs.h"
11474$ac_includes_default
11475int
11476main ()
11477{
11478int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
11479 ;
11480 return 0;
11481}
11482_ACEOF
11483rm -f conftest.$ac_objext
11484if { (eval echo "$as_me:11484: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>&5
11486 ac_status=$?
11487 echo "$as_me:11487: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -s conftest.$ac_objext'
11490 { (eval echo "$as_me:11490: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:11493: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_hi=$ac_mid; break
11496else
11497 echo "$as_me: failed program was:" >&5
11498cat conftest.$ac_ext >&5
11499ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11500fi
11501rm -f conftest.$ac_objext conftest.$ac_ext
11502 done
11503else
11504 echo "$as_me: failed program was:" >&5
11505cat conftest.$ac_ext >&5
11506ac_hi=-1 ac_mid=-1
11507 while :; do
11508 cat >conftest.$ac_ext <<_ACEOF
11509#line 11509 "configure"
11510#include "confdefs.h"
11511$ac_includes_default
11512int
11513main ()
11514{
11515int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)]
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext
11521if { (eval echo "$as_me:11521: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>&5
11523 ac_status=$?
11524 echo "$as_me:11524: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:11527: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:11530: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_lo=$ac_mid; break
11533else
11534 echo "$as_me: failed program was:" >&5
11535cat conftest.$ac_ext >&5
11536ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11537fi
11538rm -f conftest.$ac_objext conftest.$ac_ext
11539 done
11540fi
11541rm -f conftest.$ac_objext conftest.$ac_ext
11542# Binary search between lo and hi bounds.
11543while test "x$ac_lo" != "x$ac_hi"; do
11544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11545 cat >conftest.$ac_ext <<_ACEOF
11546#line 11546 "configure"
11547#include "confdefs.h"
11548$ac_includes_default
11549int
11550main ()
11551{
11552int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext
11558if { (eval echo "$as_me:11558: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11560 ac_status=$?
11561 echo "$as_me:11561: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:11564: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:11567: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 ac_hi=$ac_mid
11570else
11571 echo "$as_me: failed program was:" >&5
11572cat conftest.$ac_ext >&5
11573ac_lo=`expr $ac_mid + 1`
11574fi
11575rm -f conftest.$ac_objext conftest.$ac_ext
11576done
11577ac_cv_sizeof_long_int=$ac_lo
11578else
11579 if test "$cross_compiling" = yes; then
11580 { { echo "$as_me:11580: error: cannot run test program while cross compiling" >&5
11581echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11582 { (exit 1); exit 1; }; }
11583else
11584 cat >conftest.$ac_ext <<_ACEOF
11585#line 11585 "configure"
11586#include "confdefs.h"
11587$ac_includes_default
11588int
11589main ()
11590{
11591FILE *f = fopen ("conftest.val", "w");
11592if (!f)
11593 exit (1);
11594fprintf (f, "%d", (sizeof (long int)));
11595fclose (f);
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest$ac_exeext
11601if { (eval echo "$as_me:11601: \"$ac_link\"") >&5
11602 (eval $ac_link) 2>&5
11603 ac_status=$?
11604 echo "$as_me:11604: \$? = $ac_status" >&5
11605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11606 { (eval echo "$as_me:11606: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_cv_sizeof_long_int=`cat conftest.val`
11612else
11613 echo "$as_me: program exited with status $ac_status" >&5
11614echo "$as_me: failed program was:" >&5
11615cat conftest.$ac_ext >&5
11616fi
11617rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11618fi
11619fi
11620rm -f conftest.val
11621else
11622 ac_cv_sizeof_long_int=0
11623fi
11624fi
11625echo "$as_me:11625: result: $ac_cv_sizeof_long_int" >&5
11626echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11627cat >>confdefs.h <<EOF
11628#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11629EOF
11630
11631echo "$as_me:11631: checking for long long int" >&5
11632echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11633if test "${ac_cv_type_long_long_int+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 cat >conftest.$ac_ext <<_ACEOF
11637#line 11637 "configure"
11638#include "confdefs.h"
11639$ac_includes_default
11640int
11641main ()
11642{
11643if ((long long int *) 0)
11644 return 0;
11645if (sizeof (long long int))
11646 return 0;
11647 ;
11648 return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (eval echo "$as_me:11652: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11654 ac_status=$?
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:11658: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:11661: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_type_long_long_int=yes
11664else
11665 echo "$as_me: failed program was:" >&5
11666cat conftest.$ac_ext >&5
11667ac_cv_type_long_long_int=no
11668fi
11669rm -f conftest.$ac_objext conftest.$ac_ext
11670fi
11671echo "$as_me:11671: result: $ac_cv_type_long_long_int" >&5
11672echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11673
11674echo "$as_me:11674: checking size of long long int" >&5
11675echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11676if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 if test "$ac_cv_type_long_long_int" = yes; then
11680 if test "$cross_compiling" = yes; then
11681 # Depending upon the size, compute the lo and hi bounds.
11682cat >conftest.$ac_ext <<_ACEOF
11683#line 11683 "configure"
11684#include "confdefs.h"
11685$ac_includes_default
11686int
11687main ()
11688{
11689int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)]
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext
11695if { (eval echo "$as_me:11695: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>&5
11697 ac_status=$?
11698 echo "$as_me:11698: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:11701: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:11704: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_lo=0 ac_mid=0
11707 while :; do
11708 cat >conftest.$ac_ext <<_ACEOF
11709#line 11709 "configure"
11710#include "confdefs.h"
11711$ac_includes_default
11712int
11713main ()
11714{
11715int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11716 ;
11717 return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext
11721if { (eval echo "$as_me:11721: \"$ac_compile\"") >&5
11722 (eval $ac_compile) 2>&5
11723 ac_status=$?
11724 echo "$as_me:11724: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (eval echo "$as_me:11727: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:11730: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_hi=$ac_mid; break
11733else
11734 echo "$as_me: failed program was:" >&5
11735cat conftest.$ac_ext >&5
11736ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11737fi
11738rm -f conftest.$ac_objext conftest.$ac_ext
11739 done
11740else
11741 echo "$as_me: failed program was:" >&5
11742cat conftest.$ac_ext >&5
11743ac_hi=-1 ac_mid=-1
11744 while :; do
11745 cat >conftest.$ac_ext <<_ACEOF
11746#line 11746 "configure"
11747#include "confdefs.h"
11748$ac_includes_default
11749int
11750main ()
11751{
11752int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)]
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:11758: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>&5
11760 ac_status=$?
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (eval echo "$as_me:11764: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:11767: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_lo=$ac_mid; break
11770else
11771 echo "$as_me: failed program was:" >&5
11772cat conftest.$ac_ext >&5
11773ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11774fi
11775rm -f conftest.$ac_objext conftest.$ac_ext
11776 done
11777fi
11778rm -f conftest.$ac_objext conftest.$ac_ext
11779# Binary search between lo and hi bounds.
11780while test "x$ac_lo" != "x$ac_hi"; do
11781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11782 cat >conftest.$ac_ext <<_ACEOF
11783#line 11783 "configure"
11784#include "confdefs.h"
11785$ac_includes_default
11786int
11787main ()
11788{
11789int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11790 ;
11791 return 0;
11792}
11793_ACEOF
11794rm -f conftest.$ac_objext
11795if { (eval echo "$as_me:11795: \"$ac_compile\"") >&5
11796 (eval $ac_compile) 2>&5
11797 ac_status=$?
11798 echo "$as_me:11798: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:11801: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:11804: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_hi=$ac_mid
11807else
11808 echo "$as_me: failed program was:" >&5
11809cat conftest.$ac_ext >&5
11810ac_lo=`expr $ac_mid + 1`
11811fi
11812rm -f conftest.$ac_objext conftest.$ac_ext
11813done
11814ac_cv_sizeof_long_long_int=$ac_lo
11815else
11816 if test "$cross_compiling" = yes; then
11817 { { echo "$as_me:11817: error: cannot run test program while cross compiling" >&5
11818echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11819 { (exit 1); exit 1; }; }
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
11822#line 11822 "configure"
11823#include "confdefs.h"
11824$ac_includes_default
11825int
11826main ()
11827{
11828FILE *f = fopen ("conftest.val", "w");
11829if (!f)
11830 exit (1);
11831fprintf (f, "%d", (sizeof (long long int)));
11832fclose (f);
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest$ac_exeext
11838if { (eval echo "$as_me:11838: \"$ac_link\"") >&5
11839 (eval $ac_link) 2>&5
11840 ac_status=$?
11841 echo "$as_me:11841: \$? = $ac_status" >&5
11842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11843 { (eval echo "$as_me:11843: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:11846: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_sizeof_long_long_int=`cat conftest.val`
11849else
11850 echo "$as_me: program exited with status $ac_status" >&5
11851echo "$as_me: failed program was:" >&5
11852cat conftest.$ac_ext >&5
11853fi
11854rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11855fi
11856fi
11857rm -f conftest.val
11858else
11859 ac_cv_sizeof_long_long_int=0
11860fi
11861fi
11862echo "$as_me:11862: result: $ac_cv_sizeof_long_long_int" >&5
11863echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11864cat >>confdefs.h <<EOF
11865#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11866EOF
11867
11868# Sanity check long long for some platforms (AIX)
11869if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11870 ac_cv_sizeof_long_long_int=0
11871fi
11872
11873# More checks for data types
11874echo "$as_me:11874: checking for u_int type" >&5
11875echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11876if test "${ac_cv_have_u_int+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878else
11879
11880 cat >conftest.$ac_ext <<_ACEOF
11881#line 11881 "configure"
11882#include "confdefs.h"
11883 #include <sys/types.h>
11884int
11885main ()
11886{
11887 u_int a; a = 1;
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892rm -f conftest.$ac_objext
11893if { (eval echo "$as_me:11893: \"$ac_compile\"") >&5
11894 (eval $ac_compile) 2>&5
11895 ac_status=$?
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (eval echo "$as_me:11899: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:11902: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_cv_have_u_int="yes"
11905else
11906 echo "$as_me: failed program was:" >&5
11907cat conftest.$ac_ext >&5
11908 ac_cv_have_u_int="no"
11909
11910fi
11911rm -f conftest.$ac_objext conftest.$ac_ext
11912
11913fi
11914echo "$as_me:11914: result: $ac_cv_have_u_int" >&5
11915echo "${ECHO_T}$ac_cv_have_u_int" >&6
11916if test "x$ac_cv_have_u_int" = "xyes" ; then
11917 cat >>confdefs.h <<\EOF
11918#define HAVE_U_INT 1
11919EOF
11920
11921 have_u_int=1
11922fi
11923
11924echo "$as_me:11924: checking for intXX_t types" >&5
11925echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11926if test "${ac_cv_have_intxx_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929
11930 cat >conftest.$ac_ext <<_ACEOF
11931#line 11931 "configure"
11932#include "confdefs.h"
11933 #include <sys/types.h>
11934int
11935main ()
11936{
11937 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 echo "$as_me:11946: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:11949: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:11952: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_have_intxx_t="yes"
11955else
11956 echo "$as_me: failed program was:" >&5
11957cat conftest.$ac_ext >&5
11958 ac_cv_have_intxx_t="no"
11959
11960fi
11961rm -f conftest.$ac_objext conftest.$ac_ext
11962
11963fi
11964echo "$as_me:11964: result: $ac_cv_have_intxx_t" >&5
11965echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11966if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11967 cat >>confdefs.h <<\EOF
11968#define HAVE_INTXX_T 1
11969EOF
11970
11971 have_intxx_t=1
11972fi
11973
11974if (test -z "$have_intxx_t" && \
11975 test "x$ac_cv_header_stdint_h" = "xyes")
11976then
11977 echo "$as_me:11977: checking for intXX_t types in stdint.h" >&5
11978echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11980#line 11980 "configure"
11981#include "confdefs.h"
11982 #include <stdint.h>
11983int
11984main ()
11985{
11986 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext
11992if { (eval echo "$as_me:11992: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>&5
11994 ac_status=$?
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003
12004 cat >>confdefs.h <<\EOF
12005#define HAVE_INTXX_T 1
12006EOF
12007
12008 echo "$as_me:12008: result: yes" >&5
12009echo "${ECHO_T}yes" >&6
12010
12011else
12012 echo "$as_me: failed program was:" >&5
12013cat conftest.$ac_ext >&5
12014 echo "$as_me:12014: result: no" >&5
12015echo "${ECHO_T}no" >&6
12016
12017fi
12018rm -f conftest.$ac_objext conftest.$ac_ext
12019fi
12020
12021echo "$as_me:12021: checking for int64_t type" >&5
12022echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
12023if test "${ac_cv_have_int64_t+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026
12027 cat >conftest.$ac_ext <<_ACEOF
12028#line 12028 "configure"
12029#include "confdefs.h"
12030
12031#include <sys/types.h>
12032#ifdef HAVE_STDINT_H
12033# include <stdint.h>
12034#endif
12035#include <sys/socket.h>
12036#ifdef HAVE_SYS_BITYPES_H
12037# include <sys/bitypes.h>
12038#endif
12039
12040int
12041main ()
12042{
12043 int64_t a; a = 1;
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext
12049if { (eval echo "$as_me:12049: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>&5
12051 ac_status=$?
12052 echo "$as_me:12052: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:12055: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:12058: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_have_int64_t="yes"
12061else
12062 echo "$as_me: failed program was:" >&5
12063cat conftest.$ac_ext >&5
12064 ac_cv_have_int64_t="no"
12065
12066fi
12067rm -f conftest.$ac_objext conftest.$ac_ext
12068
12069fi
12070echo "$as_me:12070: result: $ac_cv_have_int64_t" >&5
12071echo "${ECHO_T}$ac_cv_have_int64_t" >&6
12072if test "x$ac_cv_have_int64_t" = "xyes" ; then
12073 cat >>confdefs.h <<\EOF
12074#define HAVE_INT64_T 1
12075EOF
12076
12077fi
12078
12079echo "$as_me:12079: checking for u_intXX_t types" >&5
12080echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
12081if test "${ac_cv_have_u_intxx_t+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084
12085 cat >conftest.$ac_ext <<_ACEOF
12086#line 12086 "configure"
12087#include "confdefs.h"
12088 #include <sys/types.h>
12089int
12090main ()
12091{
12092 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (eval echo "$as_me:12098: \"$ac_compile\"") >&5
12099 (eval $ac_compile) 2>&5
12100 ac_status=$?
12101 echo "$as_me:12101: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:12104: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:12107: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_have_u_intxx_t="yes"
12110else
12111 echo "$as_me: failed program was:" >&5
12112cat conftest.$ac_ext >&5
12113 ac_cv_have_u_intxx_t="no"
12114
12115fi
12116rm -f conftest.$ac_objext conftest.$ac_ext
12117
12118fi
12119echo "$as_me:12119: result: $ac_cv_have_u_intxx_t" >&5
12120echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
12121if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12122 cat >>confdefs.h <<\EOF
12123#define HAVE_U_INTXX_T 1
12124EOF
12125
12126 have_u_intxx_t=1
12127fi
12128
12129if test -z "$have_u_intxx_t" ; then
12130 echo "$as_me:12130: checking for u_intXX_t types in sys/socket.h" >&5
12131echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12133#line 12133 "configure"
12134#include "confdefs.h"
12135 #include <sys/socket.h>
12136int
12137main ()
12138{
12139 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext
12145if { (eval echo "$as_me:12145: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12147 ac_status=$?
12148 echo "$as_me:12148: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:12151: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:12154: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156
12157 cat >>confdefs.h <<\EOF
12158#define HAVE_U_INTXX_T 1
12159EOF
12160
12161 echo "$as_me:12161: result: yes" >&5
12162echo "${ECHO_T}yes" >&6
12163
12164else
12165 echo "$as_me: failed program was:" >&5
12166cat conftest.$ac_ext >&5
12167 echo "$as_me:12167: result: no" >&5
12168echo "${ECHO_T}no" >&6
12169
12170fi
12171rm -f conftest.$ac_objext conftest.$ac_ext
12172fi
12173
12174echo "$as_me:12174: checking for u_int64_t types" >&5
12175echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
12176if test "${ac_cv_have_u_int64_t+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178else
12179
12180 cat >conftest.$ac_ext <<_ACEOF
12181#line 12181 "configure"
12182#include "confdefs.h"
12183 #include <sys/types.h>
12184int
12185main ()
12186{
12187 u_int64_t a; a = 1;
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192rm -f conftest.$ac_objext
12193if { (eval echo "$as_me:12193: \"$ac_compile\"") >&5
12194 (eval $ac_compile) 2>&5
12195 ac_status=$?
12196 echo "$as_me:12196: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -s conftest.$ac_objext'
12199 { (eval echo "$as_me:12199: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:12202: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_have_u_int64_t="yes"
12205else
12206 echo "$as_me: failed program was:" >&5
12207cat conftest.$ac_ext >&5
12208 ac_cv_have_u_int64_t="no"
12209
12210fi
12211rm -f conftest.$ac_objext conftest.$ac_ext
12212
12213fi
12214echo "$as_me:12214: result: $ac_cv_have_u_int64_t" >&5
12215echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
12216if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12217 cat >>confdefs.h <<\EOF
12218#define HAVE_U_INT64_T 1
12219EOF
12220
12221 have_u_int64_t=1
12222fi
12223
12224if test -z "$have_u_int64_t" ; then
12225 echo "$as_me:12225: checking for u_int64_t type in sys/bitypes.h" >&5
12226echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
12227 cat >conftest.$ac_ext <<_ACEOF
12228#line 12228 "configure"
12229#include "confdefs.h"
12230 #include <sys/bitypes.h>
12231int
12232main ()
12233{
12234 u_int64_t a; a = 1
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (eval echo "$as_me:12240: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>&5
12242 ac_status=$?
12243 echo "$as_me:12243: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:12246: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251
12252 cat >>confdefs.h <<\EOF
12253#define HAVE_U_INT64_T 1
12254EOF
12255
12256 echo "$as_me:12256: result: yes" >&5
12257echo "${ECHO_T}yes" >&6
12258
12259else
12260 echo "$as_me: failed program was:" >&5
12261cat conftest.$ac_ext >&5
12262 echo "$as_me:12262: result: no" >&5
12263echo "${ECHO_T}no" >&6
12264
12265fi
12266rm -f conftest.$ac_objext conftest.$ac_ext
12267fi
12268
12269if test -z "$have_u_intxx_t" ; then
12270 echo "$as_me:12270: checking for uintXX_t types" >&5
12271echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12272if test "${ac_cv_have_uintxx_t+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274else
12275
12276 cat >conftest.$ac_ext <<_ACEOF
12277#line 12277 "configure"
12278#include "confdefs.h"
12279
12280#include <sys/types.h>
12281
12282int
12283main ()
12284{
12285 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12286 ;
12287 return 0;
12288}
12289_ACEOF
12290rm -f conftest.$ac_objext
12291if { (eval echo "$as_me:12291: \"$ac_compile\"") >&5
12292 (eval $ac_compile) 2>&5
12293 ac_status=$?
12294 echo "$as_me:12294: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (eval echo "$as_me:12297: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:12300: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_have_uintxx_t="yes"
12303else
12304 echo "$as_me: failed program was:" >&5
12305cat conftest.$ac_ext >&5
12306 ac_cv_have_uintxx_t="no"
12307
12308fi
12309rm -f conftest.$ac_objext conftest.$ac_ext
12310
12311fi
12312echo "$as_me:12312: result: $ac_cv_have_uintxx_t" >&5
12313echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12314 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12315 cat >>confdefs.h <<\EOF
12316#define HAVE_UINTXX_T 1
12317EOF
12318
12319 fi
12320fi
12321
12322if test -z "$have_uintxx_t" ; then
12323 echo "$as_me:12323: checking for uintXX_t types in stdint.h" >&5
12324echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12326#line 12326 "configure"
12327#include "confdefs.h"
12328 #include <stdint.h>
12329int
12330main ()
12331{
12332 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (eval echo "$as_me:12338: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12340 ac_status=$?
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:12344: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349
12350 cat >>confdefs.h <<\EOF
12351#define HAVE_UINTXX_T 1
12352EOF
12353
12354 echo "$as_me:12354: result: yes" >&5
12355echo "${ECHO_T}yes" >&6
12356
12357else
12358 echo "$as_me: failed program was:" >&5
12359cat conftest.$ac_ext >&5
12360 echo "$as_me:12360: result: no" >&5
12361echo "${ECHO_T}no" >&6
12362
12363fi
12364rm -f conftest.$ac_objext conftest.$ac_ext
12365fi
12366
12367if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12368 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12369then
12370 echo "$as_me:12370: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12371echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12372 cat >conftest.$ac_ext <<_ACEOF
12373#line 12373 "configure"
12374#include "confdefs.h"
12375
12376#include <sys/bitypes.h>
12377
12378int
12379main ()
12380{
12381
12382 int8_t a; int16_t b; int32_t c;
12383 u_int8_t e; u_int16_t f; u_int32_t g;
12384 a = b = c = e = f = g = 1;
12385
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390rm -f conftest.$ac_objext
12391if { (eval echo "$as_me:12391: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>&5
12393 ac_status=$?
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:12397: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402
12403 cat >>confdefs.h <<\EOF
12404#define HAVE_U_INTXX_T 1
12405EOF
12406
12407 cat >>confdefs.h <<\EOF
12408#define HAVE_INTXX_T 1
12409EOF
12410
12411 echo "$as_me:12411: result: yes" >&5
12412echo "${ECHO_T}yes" >&6
12413
12414else
12415 echo "$as_me: failed program was:" >&5
12416cat conftest.$ac_ext >&5
12417echo "$as_me:12417: result: no" >&5
12418echo "${ECHO_T}no" >&6
12419
12420fi
12421rm -f conftest.$ac_objext conftest.$ac_ext
12422fi
12423
12424echo "$as_me:12424: checking for u_char" >&5
12425echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12426if test "${ac_cv_have_u_char+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429
12430 cat >conftest.$ac_ext <<_ACEOF
12431#line 12431 "configure"
12432#include "confdefs.h"
12433
12434#include <sys/types.h>
12435
12436int
12437main ()
12438{
12439 u_char foo; foo = 125;
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:12445: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>&5
12447 ac_status=$?
12448 echo "$as_me:12448: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -s conftest.$ac_objext'
12451 { (eval echo "$as_me:12451: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:12454: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_have_u_char="yes"
12457else
12458 echo "$as_me: failed program was:" >&5
12459cat conftest.$ac_ext >&5
12460 ac_cv_have_u_char="no"
12461
12462fi
12463rm -f conftest.$ac_objext conftest.$ac_ext
12464
12465fi
12466echo "$as_me:12466: result: $ac_cv_have_u_char" >&5
12467echo "${ECHO_T}$ac_cv_have_u_char" >&6
12468if test "x$ac_cv_have_u_char" = "xyes" ; then
12469 cat >>confdefs.h <<\EOF
12470#define HAVE_U_CHAR 1
12471EOF
12472
12473fi
12474
12475 echo "$as_me:12475: checking for socklen_t" >&5
12476echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12477if test "${ac_cv_type_socklen_t+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 cat >conftest.$ac_ext <<_ACEOF
12481#line 12481 "configure"
12482#include "confdefs.h"
12483#include <sys/types.h>
12484#include <sys/socket.h>
12485
12486int
12487main ()
12488{
12489if ((socklen_t *) 0)
12490 return 0;
12491if (sizeof (socklen_t))
12492 return 0;
12493 ;
12494 return 0;
12495}
12496_ACEOF
12497rm -f conftest.$ac_objext
12498if { (eval echo "$as_me:12498: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>&5
12500 ac_status=$?
12501 echo "$as_me:12501: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -s conftest.$ac_objext'
12504 { (eval echo "$as_me:12504: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:12507: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_type_socklen_t=yes
12510else
12511 echo "$as_me: failed program was:" >&5
12512cat conftest.$ac_ext >&5
12513ac_cv_type_socklen_t=no
12514fi
12515rm -f conftest.$ac_objext conftest.$ac_ext
12516fi
12517echo "$as_me:12517: result: $ac_cv_type_socklen_t" >&5
12518echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12519if test $ac_cv_type_socklen_t = yes; then
12520 :
12521else
12522
12523 echo "$as_me:12523: checking for socklen_t equivalent" >&5
12524echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12525 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527else
12528
12529 # Systems have either "struct sockaddr *" or
12530 # "void *" as the second argument to getpeername
12531 curl_cv_socklen_t_equiv=
12532 for arg2 in "struct sockaddr" void; do
12533 for t in int size_t unsigned long "unsigned long"; do
12534 cat >conftest.$ac_ext <<_ACEOF
12535#line 12535 "configure"
12536#include "confdefs.h"
12537
12538 #include <sys/types.h>
12539 #include <sys/socket.h>
12540
12541 int getpeername (int, $arg2 *, $t *);
12542
12543int
12544main ()
12545{
12546
12547 $t len;
12548 getpeername(0,0,&len);
12549
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554rm -f conftest.$ac_objext
12555if { (eval echo "$as_me:12555: \"$ac_compile\"") >&5
12556 (eval $ac_compile) 2>&5
12557 ac_status=$?
12558 echo "$as_me:12558: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:12561: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:12564: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566
12567 curl_cv_socklen_t_equiv="$t"
12568 break
12569
12570else
12571 echo "$as_me: failed program was:" >&5
12572cat conftest.$ac_ext >&5
12573fi
12574rm -f conftest.$ac_objext conftest.$ac_ext
12575 done
12576 done
12577
12578 if test "x$curl_cv_socklen_t_equiv" = x; then
12579 { { echo "$as_me:12579: error: Cannot find a type to use in place of socklen_t" >&5
12580echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12581 { (exit 1); exit 1; }; }
12582 fi
12583
12584fi
12585
12586 echo "$as_me:12586: result: $curl_cv_socklen_t_equiv" >&5
12587echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12588
12589cat >>confdefs.h <<EOF
12590#define socklen_t $curl_cv_socklen_t_equiv
12591EOF
12592
12593fi
12594
12595echo "$as_me:12595: checking for sig_atomic_t" >&5
12596echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12597if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599else
12600 cat >conftest.$ac_ext <<_ACEOF
12601#line 12601 "configure"
12602#include "confdefs.h"
12603#include <signal.h>
12604
12605int
12606main ()
12607{
12608if ((sig_atomic_t *) 0)
12609 return 0;
12610if (sizeof (sig_atomic_t))
12611 return 0;
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (eval echo "$as_me:12617: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>&5
12619 ac_status=$?
12620 echo "$as_me:12620: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -s conftest.$ac_objext'
12623 { (eval echo "$as_me:12623: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:12626: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_type_sig_atomic_t=yes
12629else
12630 echo "$as_me: failed program was:" >&5
12631cat conftest.$ac_ext >&5
12632ac_cv_type_sig_atomic_t=no
12633fi
12634rm -f conftest.$ac_objext conftest.$ac_ext
12635fi
12636echo "$as_me:12636: result: $ac_cv_type_sig_atomic_t" >&5
12637echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12638if test $ac_cv_type_sig_atomic_t = yes; then
12639
12640cat >>confdefs.h <<EOF
12641#define HAVE_SIG_ATOMIC_T 1
12642EOF
12643
12644fi
12645
12646echo "$as_me:12646: checking for size_t" >&5
12647echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12648if test "${ac_cv_have_size_t+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
12651
12652 cat >conftest.$ac_ext <<_ACEOF
12653#line 12653 "configure"
12654#include "confdefs.h"
12655
12656#include <sys/types.h>
12657
12658int
12659main ()
12660{
12661 size_t foo; foo = 1235;
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666rm -f conftest.$ac_objext
12667if { (eval echo "$as_me:12667: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12669 ac_status=$?
12670 echo "$as_me:12670: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:12673: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_have_size_t="yes"
12679else
12680 echo "$as_me: failed program was:" >&5
12681cat conftest.$ac_ext >&5
12682 ac_cv_have_size_t="no"
12683
12684fi
12685rm -f conftest.$ac_objext conftest.$ac_ext
12686
12687fi
12688echo "$as_me:12688: result: $ac_cv_have_size_t" >&5
12689echo "${ECHO_T}$ac_cv_have_size_t" >&6
12690if test "x$ac_cv_have_size_t" = "xyes" ; then
12691 cat >>confdefs.h <<\EOF
12692#define HAVE_SIZE_T 1
12693EOF
12694
12695fi
12696
12697echo "$as_me:12697: checking for ssize_t" >&5
12698echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12699if test "${ac_cv_have_ssize_t+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702
12703 cat >conftest.$ac_ext <<_ACEOF
12704#line 12704 "configure"
12705#include "confdefs.h"
12706
12707#include <sys/types.h>
12708
12709int
12710main ()
12711{
12712 ssize_t foo; foo = 1235;
12713 ;
12714 return 0;
12715}
12716_ACEOF
12717rm -f conftest.$ac_objext
12718if { (eval echo "$as_me:12718: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12720 ac_status=$?
12721 echo "$as_me:12721: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:12724: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_have_ssize_t="yes"
12730else
12731 echo "$as_me: failed program was:" >&5
12732cat conftest.$ac_ext >&5
12733 ac_cv_have_ssize_t="no"
12734
12735fi
12736rm -f conftest.$ac_objext conftest.$ac_ext
12737
12738fi
12739echo "$as_me:12739: result: $ac_cv_have_ssize_t" >&5
12740echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12741if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12742 cat >>confdefs.h <<\EOF
12743#define HAVE_SSIZE_T 1
12744EOF
12745
12746fi
12747
12748echo "$as_me:12748: checking for clock_t" >&5
12749echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12750if test "${ac_cv_have_clock_t+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753
12754 cat >conftest.$ac_ext <<_ACEOF
12755#line 12755 "configure"
12756#include "confdefs.h"
12757
12758#include <time.h>
12759
12760int
12761main ()
12762{
12763 clock_t foo; foo = 1235;
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext
12769if { (eval echo "$as_me:12769: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 echo "$as_me:12772: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -s conftest.$ac_objext'
12775 { (eval echo "$as_me:12775: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 echo "$as_me:12778: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 ac_cv_have_clock_t="yes"
12781else
12782 echo "$as_me: failed program was:" >&5
12783cat conftest.$ac_ext >&5
12784 ac_cv_have_clock_t="no"
12785
12786fi
12787rm -f conftest.$ac_objext conftest.$ac_ext
12788
12789fi
12790echo "$as_me:12790: result: $ac_cv_have_clock_t" >&5
12791echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12792if test "x$ac_cv_have_clock_t" = "xyes" ; then
12793 cat >>confdefs.h <<\EOF
12794#define HAVE_CLOCK_T 1
12795EOF
12796
12797fi
12798
12799echo "$as_me:12799: checking for sa_family_t" >&5
12800echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12801if test "${ac_cv_have_sa_family_t+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804
12805 cat >conftest.$ac_ext <<_ACEOF
12806#line 12806 "configure"
12807#include "confdefs.h"
12808
12809#include <sys/types.h>
12810#include <sys/socket.h>
12811
12812int
12813main ()
12814{
12815 sa_family_t foo; foo = 1235;
12816 ;
12817 return 0;
12818}
12819_ACEOF
12820rm -f conftest.$ac_objext
12821if { (eval echo "$as_me:12821: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>&5
12823 ac_status=$?
12824 echo "$as_me:12824: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -s conftest.$ac_objext'
12827 { (eval echo "$as_me:12827: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:12830: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ac_cv_have_sa_family_t="yes"
12833else
12834 echo "$as_me: failed program was:" >&5
12835cat conftest.$ac_ext >&5
12836 cat >conftest.$ac_ext <<_ACEOF
12837#line 12837 "configure"
12838#include "confdefs.h"
12839
12840#include <sys/types.h>
12841#include <sys/socket.h>
12842#include <netinet/in.h>
12843
12844int
12845main ()
12846{
12847 sa_family_t foo; foo = 1235;
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext
12853if { (eval echo "$as_me:12853: \"$ac_compile\"") >&5
12854 (eval $ac_compile) 2>&5
12855 ac_status=$?
12856 echo "$as_me:12856: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -s conftest.$ac_objext'
12859 { (eval echo "$as_me:12859: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:12862: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_have_sa_family_t="yes"
12865else
12866 echo "$as_me: failed program was:" >&5
12867cat conftest.$ac_ext >&5
12868 ac_cv_have_sa_family_t="no"
12869
12870fi
12871rm -f conftest.$ac_objext conftest.$ac_ext
12872
12873fi
12874rm -f conftest.$ac_objext conftest.$ac_ext
12875
12876fi
12877echo "$as_me:12877: result: $ac_cv_have_sa_family_t" >&5
12878echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12879if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12880 cat >>confdefs.h <<\EOF
12881#define HAVE_SA_FAMILY_T 1
12882EOF
12883
12884fi
12885
12886echo "$as_me:12886: checking for pid_t" >&5
12887echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12888if test "${ac_cv_have_pid_t+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891
12892 cat >conftest.$ac_ext <<_ACEOF
12893#line 12893 "configure"
12894#include "confdefs.h"
12895
12896#include <sys/types.h>
12897
12898int
12899main ()
12900{
12901 pid_t foo; foo = 1235;
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext
12907if { (eval echo "$as_me:12907: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>&5
12909 ac_status=$?
12910 echo "$as_me:12910: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest.$ac_objext'
12913 { (eval echo "$as_me:12913: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_have_pid_t="yes"
12919else
12920 echo "$as_me: failed program was:" >&5
12921cat conftest.$ac_ext >&5
12922 ac_cv_have_pid_t="no"
12923
12924fi
12925rm -f conftest.$ac_objext conftest.$ac_ext
12926
12927fi
12928echo "$as_me:12928: result: $ac_cv_have_pid_t" >&5
12929echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12930if test "x$ac_cv_have_pid_t" = "xyes" ; then
12931 cat >>confdefs.h <<\EOF
12932#define HAVE_PID_T 1
12933EOF
12934
12935fi
12936
12937echo "$as_me:12937: checking for mode_t" >&5
12938echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12939if test "${ac_cv_have_mode_t+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
12942
12943 cat >conftest.$ac_ext <<_ACEOF
12944#line 12944 "configure"
12945#include "confdefs.h"
12946
12947#include <sys/types.h>
12948
12949int
12950main ()
12951{
12952 mode_t foo; foo = 1235;
12953 ;
12954 return 0;
12955}
12956_ACEOF
12957rm -f conftest.$ac_objext
12958if { (eval echo "$as_me:12958: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12960 ac_status=$?
12961 echo "$as_me:12961: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -s conftest.$ac_objext'
12964 { (eval echo "$as_me:12964: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:12967: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_have_mode_t="yes"
12970else
12971 echo "$as_me: failed program was:" >&5
12972cat conftest.$ac_ext >&5
12973 ac_cv_have_mode_t="no"
12974
12975fi
12976rm -f conftest.$ac_objext conftest.$ac_ext
12977
12978fi
12979echo "$as_me:12979: result: $ac_cv_have_mode_t" >&5
12980echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12981if test "x$ac_cv_have_mode_t" = "xyes" ; then
12982 cat >>confdefs.h <<\EOF
12983#define HAVE_MODE_T 1
12984EOF
12985
12986fi
12987
12988echo "$as_me:12988: checking for struct sockaddr_storage" >&5
12989echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12990if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993
12994 cat >conftest.$ac_ext <<_ACEOF
12995#line 12995 "configure"
12996#include "confdefs.h"
12997
12998#include <sys/types.h>
12999#include <sys/socket.h>
13000
13001int
13002main ()
13003{
13004 struct sockaddr_storage s;
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009rm -f conftest.$ac_objext
13010if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13012 ac_status=$?
13013 echo "$as_me:13013: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -s conftest.$ac_objext'
13016 { (eval echo "$as_me:13016: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:13019: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_have_struct_sockaddr_storage="yes"
13022else
13023 echo "$as_me: failed program was:" >&5
13024cat conftest.$ac_ext >&5
13025 ac_cv_have_struct_sockaddr_storage="no"
13026
13027fi
13028rm -f conftest.$ac_objext conftest.$ac_ext
13029
13030fi
13031echo "$as_me:13031: result: $ac_cv_have_struct_sockaddr_storage" >&5
13032echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
13033if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13034 cat >>confdefs.h <<\EOF
13035#define HAVE_STRUCT_SOCKADDR_STORAGE 1
13036EOF
13037
13038fi
13039
13040echo "$as_me:13040: checking for struct sockaddr_in6" >&5
13041echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13042if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044else
13045
13046 cat >conftest.$ac_ext <<_ACEOF
13047#line 13047 "configure"
13048#include "confdefs.h"
13049
13050#include <sys/types.h>
13051#include <netinet/in.h>
13052
13053int
13054main ()
13055{
13056 struct sockaddr_in6 s; s.sin6_family = 0;
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext
13062if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>&5
13064 ac_status=$?
13065 echo "$as_me:13065: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -s conftest.$ac_objext'
13068 { (eval echo "$as_me:13068: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:13071: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_have_struct_sockaddr_in6="yes"
13074else
13075 echo "$as_me: failed program was:" >&5
13076cat conftest.$ac_ext >&5
13077 ac_cv_have_struct_sockaddr_in6="no"
13078
13079fi
13080rm -f conftest.$ac_objext conftest.$ac_ext
13081
13082fi
13083echo "$as_me:13083: result: $ac_cv_have_struct_sockaddr_in6" >&5
13084echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
13085if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13086 cat >>confdefs.h <<\EOF
13087#define HAVE_STRUCT_SOCKADDR_IN6 1
13088EOF
13089
13090fi
13091
13092echo "$as_me:13092: checking for struct in6_addr" >&5
13093echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
13094if test "${ac_cv_have_struct_in6_addr+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097
13098 cat >conftest.$ac_ext <<_ACEOF
13099#line 13099 "configure"
13100#include "confdefs.h"
13101
13102#include <sys/types.h>
13103#include <netinet/in.h>
13104
13105int
13106main ()
13107{
13108 struct in6_addr s; s.s6_addr[0] = 0;
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
13114if { (eval echo "$as_me:13114: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>&5
13116 ac_status=$?
13117 echo "$as_me:13117: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:13120: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:13123: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_have_struct_in6_addr="yes"
13126else
13127 echo "$as_me: failed program was:" >&5
13128cat conftest.$ac_ext >&5
13129 ac_cv_have_struct_in6_addr="no"
13130
13131fi
13132rm -f conftest.$ac_objext conftest.$ac_ext
13133
13134fi
13135echo "$as_me:13135: result: $ac_cv_have_struct_in6_addr" >&5
13136echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13137if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13138 cat >>confdefs.h <<\EOF
13139#define HAVE_STRUCT_IN6_ADDR 1
13140EOF
13141
13142fi
13143
13144echo "$as_me:13144: checking for struct addrinfo" >&5
13145echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13146if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148else
13149
13150 cat >conftest.$ac_ext <<_ACEOF
13151#line 13151 "configure"
13152#include "confdefs.h"
13153
13154#include <sys/types.h>
13155#include <sys/socket.h>
13156#include <netdb.h>
13157
13158int
13159main ()
13160{
13161 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166rm -f conftest.$ac_objext
13167if { (eval echo "$as_me:13167: \"$ac_compile\"") >&5
13168 (eval $ac_compile) 2>&5
13169 ac_status=$?
13170 echo "$as_me:13170: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -s conftest.$ac_objext'
13173 { (eval echo "$as_me:13173: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:13176: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_cv_have_struct_addrinfo="yes"
13179else
13180 echo "$as_me: failed program was:" >&5
13181cat conftest.$ac_ext >&5
13182 ac_cv_have_struct_addrinfo="no"
13183
13184fi
13185rm -f conftest.$ac_objext conftest.$ac_ext
13186
13187fi
13188echo "$as_me:13188: result: $ac_cv_have_struct_addrinfo" >&5
13189echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13190if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13191 cat >>confdefs.h <<\EOF
13192#define HAVE_STRUCT_ADDRINFO 1
13193EOF
13194
13195fi
13196
13197echo "$as_me:13197: checking for struct timeval" >&5
13198echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13199if test "${ac_cv_have_struct_timeval+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202
13203 cat >conftest.$ac_ext <<_ACEOF
13204#line 13204 "configure"
13205#include "confdefs.h"
13206 #include <sys/time.h>
13207int
13208main ()
13209{
13210 struct timeval tv; tv.tv_sec = 1;
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
13216if { (eval echo "$as_me:13216: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>&5
13218 ac_status=$?
13219 echo "$as_me:13219: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:13222: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:13225: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_have_struct_timeval="yes"
13228else
13229 echo "$as_me: failed program was:" >&5
13230cat conftest.$ac_ext >&5
13231 ac_cv_have_struct_timeval="no"
13232
13233fi
13234rm -f conftest.$ac_objext conftest.$ac_ext
13235
13236fi
13237echo "$as_me:13237: result: $ac_cv_have_struct_timeval" >&5
13238echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13239if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13240 cat >>confdefs.h <<\EOF
13241#define HAVE_STRUCT_TIMEVAL 1
13242EOF
13243
13244 have_struct_timeval=1
13245fi
13246
13247echo "$as_me:13247: checking for struct timespec" >&5
13248echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13249if test "${ac_cv_type_struct_timespec+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251else
13252 cat >conftest.$ac_ext <<_ACEOF
13253#line 13253 "configure"
13254#include "confdefs.h"
13255$ac_includes_default
13256int
13257main ()
13258{
13259if ((struct timespec *) 0)
13260 return 0;
13261if (sizeof (struct timespec))
13262 return 0;
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext
13268if { (eval echo "$as_me:13268: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:13271: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:13274: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:13277: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_type_struct_timespec=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282cat conftest.$ac_ext >&5
13283ac_cv_type_struct_timespec=no
13284fi
13285rm -f conftest.$ac_objext conftest.$ac_ext
13286fi
13287echo "$as_me:13287: result: $ac_cv_type_struct_timespec" >&5
13288echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
13289if test $ac_cv_type_struct_timespec = yes; then
13290
13291cat >>confdefs.h <<EOF
13292#define HAVE_STRUCT_TIMESPEC 1
13293EOF
13294
13295fi
13296
13297# We need int64_t or else certian parts of the compile will fail.
13298if test "x$ac_cv_have_int64_t" = "xno" -a \
13299 "x$ac_cv_sizeof_long_int" != "x8" -a \
13300 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13301 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13302 echo "an alternative compiler (I.E., GCC) before continuing."
13303 echo ""
13304 exit 1;
13305else
13306 if test "$cross_compiling" = yes; then
13307 { { echo "$as_me:13307: error: cannot run test program while cross compiling" >&5
13308echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13309 { (exit 1); exit 1; }; }
13310else
13311 cat >conftest.$ac_ext <<_ACEOF
13312#line 13312 "configure"
13313#include "confdefs.h"
13314
13315#include <stdio.h>
13316#include <string.h>
13317#ifdef HAVE_SNPRINTF
13318main()
13319{
13320 char buf[50];
13321 char expected_out[50];
13322 int mazsize = 50 ;
13323#if (SIZEOF_LONG_INT == 8)
13324 long int num = 0x7fffffffffffffff;
13325#else
13326 long long num = 0x7fffffffffffffffll;
13327#endif
13328 strcpy(expected_out, "9223372036854775807");
13329 snprintf(buf, mazsize, "%lld", num);
13330 if(strcmp(buf, expected_out) != 0)
13331 exit(1);
13332 exit(0);
13333}
13334#else
13335main() { exit(0); }
13336#endif
13337
13338_ACEOF
13339rm -f conftest$ac_exeext
13340if { (eval echo "$as_me:13340: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>&5
13342 ac_status=$?
13343 echo "$as_me:13343: \$? = $ac_status" >&5
13344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13345 { (eval echo "$as_me:13345: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:13348: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 true
13351else
13352 echo "$as_me: program exited with status $ac_status" >&5
13353echo "$as_me: failed program was:" >&5
13354cat conftest.$ac_ext >&5
13355 cat >>confdefs.h <<\EOF
13356#define BROKEN_SNPRINTF 1
13357EOF
13358
13359fi
13360rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13361fi
13362fi
13363
13364# look for field 'ut_host' in header 'utmp.h'
13365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13367 echo "$as_me:13367: checking for ut_host field in utmp.h" >&5
13368echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13369 if eval "test \"\${$ossh_varname+set}\" = set"; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372
13373 cat >conftest.$ac_ext <<_ACEOF
13374#line 13374 "configure"
13375#include "confdefs.h"
13376#include <utmp.h>
13377
13378_ACEOF
13379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 egrep "ut_host" >/dev/null 2>&1; then
13381 eval "$ossh_varname=yes"
13382else
13383 eval "$ossh_varname=no"
13384fi
13385rm -f conftest*
13386
13387fi
13388
13389 ossh_result=`eval 'echo $'"$ossh_varname"`
13390 if test -n "`echo $ossh_varname`"; then
13391 echo "$as_me:13391: result: $ossh_result" >&5
13392echo "${ECHO_T}$ossh_result" >&6
13393 if test "x$ossh_result" = "xyes"; then
13394 cat >>confdefs.h <<\EOF
13395#define HAVE_HOST_IN_UTMP 1
13396EOF
13397
13398 fi
13399 else
13400 echo "$as_me:13400: result: no" >&5
13401echo "${ECHO_T}no" >&6
13402 fi
13403
13404# look for field 'ut_host' in header 'utmpx.h'
13405 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13406 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13407 echo "$as_me:13407: checking for ut_host field in utmpx.h" >&5
13408echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13409 if eval "test \"\${$ossh_varname+set}\" = set"; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412
13413 cat >conftest.$ac_ext <<_ACEOF
13414#line 13414 "configure"
13415#include "confdefs.h"
13416#include <utmpx.h>
13417
13418_ACEOF
13419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13420 egrep "ut_host" >/dev/null 2>&1; then
13421 eval "$ossh_varname=yes"
13422else
13423 eval "$ossh_varname=no"
13424fi
13425rm -f conftest*
13426
13427fi
13428
13429 ossh_result=`eval 'echo $'"$ossh_varname"`
13430 if test -n "`echo $ossh_varname`"; then
13431 echo "$as_me:13431: result: $ossh_result" >&5
13432echo "${ECHO_T}$ossh_result" >&6
13433 if test "x$ossh_result" = "xyes"; then
13434 cat >>confdefs.h <<\EOF
13435#define HAVE_HOST_IN_UTMPX 1
13436EOF
13437
13438 fi
13439 else
13440 echo "$as_me:13440: result: no" >&5
13441echo "${ECHO_T}no" >&6
13442 fi
13443
13444# look for field 'syslen' in header 'utmpx.h'
13445 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13446 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13447 echo "$as_me:13447: checking for syslen field in utmpx.h" >&5
13448echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13449 if eval "test \"\${$ossh_varname+set}\" = set"; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452
13453 cat >conftest.$ac_ext <<_ACEOF
13454#line 13454 "configure"
13455#include "confdefs.h"
13456#include <utmpx.h>
13457
13458_ACEOF
13459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13460 egrep "syslen" >/dev/null 2>&1; then
13461 eval "$ossh_varname=yes"
13462else
13463 eval "$ossh_varname=no"
13464fi
13465rm -f conftest*
13466
13467fi
13468
13469 ossh_result=`eval 'echo $'"$ossh_varname"`
13470 if test -n "`echo $ossh_varname`"; then
13471 echo "$as_me:13471: result: $ossh_result" >&5
13472echo "${ECHO_T}$ossh_result" >&6
13473 if test "x$ossh_result" = "xyes"; then
13474 cat >>confdefs.h <<\EOF
13475#define HAVE_SYSLEN_IN_UTMPX 1
13476EOF
13477
13478 fi
13479 else
13480 echo "$as_me:13480: result: no" >&5
13481echo "${ECHO_T}no" >&6
13482 fi
13483
13484# look for field 'ut_pid' in header 'utmp.h'
13485 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13486 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13487 echo "$as_me:13487: checking for ut_pid field in utmp.h" >&5
13488echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13489 if eval "test \"\${$ossh_varname+set}\" = set"; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492
13493 cat >conftest.$ac_ext <<_ACEOF
13494#line 13494 "configure"
13495#include "confdefs.h"
13496#include <utmp.h>
13497
13498_ACEOF
13499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500 egrep "ut_pid" >/dev/null 2>&1; then
13501 eval "$ossh_varname=yes"
13502else
13503 eval "$ossh_varname=no"
13504fi
13505rm -f conftest*
13506
13507fi
13508
13509 ossh_result=`eval 'echo $'"$ossh_varname"`
13510 if test -n "`echo $ossh_varname`"; then
13511 echo "$as_me:13511: result: $ossh_result" >&5
13512echo "${ECHO_T}$ossh_result" >&6
13513 if test "x$ossh_result" = "xyes"; then
13514 cat >>confdefs.h <<\EOF
13515#define HAVE_PID_IN_UTMP 1
13516EOF
13517
13518 fi
13519 else
13520 echo "$as_me:13520: result: no" >&5
13521echo "${ECHO_T}no" >&6
13522 fi
13523
13524# look for field 'ut_type' in header 'utmp.h'
13525 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13526 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13527 echo "$as_me:13527: checking for ut_type field in utmp.h" >&5
13528echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13529 if eval "test \"\${$ossh_varname+set}\" = set"; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531else
13532
13533 cat >conftest.$ac_ext <<_ACEOF
13534#line 13534 "configure"
13535#include "confdefs.h"
13536#include <utmp.h>
13537
13538_ACEOF
13539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13540 egrep "ut_type" >/dev/null 2>&1; then
13541 eval "$ossh_varname=yes"
13542else
13543 eval "$ossh_varname=no"
13544fi
13545rm -f conftest*
13546
13547fi
13548
13549 ossh_result=`eval 'echo $'"$ossh_varname"`
13550 if test -n "`echo $ossh_varname`"; then
13551 echo "$as_me:13551: result: $ossh_result" >&5
13552echo "${ECHO_T}$ossh_result" >&6
13553 if test "x$ossh_result" = "xyes"; then
13554 cat >>confdefs.h <<\EOF
13555#define HAVE_TYPE_IN_UTMP 1
13556EOF
13557
13558 fi
13559 else
13560 echo "$as_me:13560: result: no" >&5
13561echo "${ECHO_T}no" >&6
13562 fi
13563
13564# look for field 'ut_type' in header 'utmpx.h'
13565 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13566 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13567 echo "$as_me:13567: checking for ut_type field in utmpx.h" >&5
13568echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13569 if eval "test \"\${$ossh_varname+set}\" = set"; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572
13573 cat >conftest.$ac_ext <<_ACEOF
13574#line 13574 "configure"
13575#include "confdefs.h"
13576#include <utmpx.h>
13577
13578_ACEOF
13579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13580 egrep "ut_type" >/dev/null 2>&1; then
13581 eval "$ossh_varname=yes"
13582else
13583 eval "$ossh_varname=no"
13584fi
13585rm -f conftest*
13586
13587fi
13588
13589 ossh_result=`eval 'echo $'"$ossh_varname"`
13590 if test -n "`echo $ossh_varname`"; then
13591 echo "$as_me:13591: result: $ossh_result" >&5
13592echo "${ECHO_T}$ossh_result" >&6
13593 if test "x$ossh_result" = "xyes"; then
13594 cat >>confdefs.h <<\EOF
13595#define HAVE_TYPE_IN_UTMPX 1
13596EOF
13597
13598 fi
13599 else
13600 echo "$as_me:13600: result: no" >&5
13601echo "${ECHO_T}no" >&6
13602 fi
13603
13604# look for field 'ut_tv' in header 'utmp.h'
13605 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13606 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13607 echo "$as_me:13607: checking for ut_tv field in utmp.h" >&5
13608echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13609 if eval "test \"\${$ossh_varname+set}\" = set"; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612
13613 cat >conftest.$ac_ext <<_ACEOF
13614#line 13614 "configure"
13615#include "confdefs.h"
13616#include <utmp.h>
13617
13618_ACEOF
13619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13620 egrep "ut_tv" >/dev/null 2>&1; then
13621 eval "$ossh_varname=yes"
13622else
13623 eval "$ossh_varname=no"
13624fi
13625rm -f conftest*
13626
13627fi
13628
13629 ossh_result=`eval 'echo $'"$ossh_varname"`
13630 if test -n "`echo $ossh_varname`"; then
13631 echo "$as_me:13631: result: $ossh_result" >&5
13632echo "${ECHO_T}$ossh_result" >&6
13633 if test "x$ossh_result" = "xyes"; then
13634 cat >>confdefs.h <<\EOF
13635#define HAVE_TV_IN_UTMP 1
13636EOF
13637
13638 fi
13639 else
13640 echo "$as_me:13640: result: no" >&5
13641echo "${ECHO_T}no" >&6
13642 fi
13643
13644# look for field 'ut_id' in header 'utmp.h'
13645 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13646 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13647 echo "$as_me:13647: checking for ut_id field in utmp.h" >&5
13648echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13649 if eval "test \"\${$ossh_varname+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652
13653 cat >conftest.$ac_ext <<_ACEOF
13654#line 13654 "configure"
13655#include "confdefs.h"
13656#include <utmp.h>
13657
13658_ACEOF
13659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 egrep "ut_id" >/dev/null 2>&1; then
13661 eval "$ossh_varname=yes"
13662else
13663 eval "$ossh_varname=no"
13664fi
13665rm -f conftest*
13666
13667fi
13668
13669 ossh_result=`eval 'echo $'"$ossh_varname"`
13670 if test -n "`echo $ossh_varname`"; then
13671 echo "$as_me:13671: result: $ossh_result" >&5
13672echo "${ECHO_T}$ossh_result" >&6
13673 if test "x$ossh_result" = "xyes"; then
13674 cat >>confdefs.h <<\EOF
13675#define HAVE_ID_IN_UTMP 1
13676EOF
13677
13678 fi
13679 else
13680 echo "$as_me:13680: result: no" >&5
13681echo "${ECHO_T}no" >&6
13682 fi
13683
13684# look for field 'ut_id' in header 'utmpx.h'
13685 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13686 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13687 echo "$as_me:13687: checking for ut_id field in utmpx.h" >&5
13688echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13689 if eval "test \"\${$ossh_varname+set}\" = set"; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691else
13692
13693 cat >conftest.$ac_ext <<_ACEOF
13694#line 13694 "configure"
13695#include "confdefs.h"
13696#include <utmpx.h>
13697
13698_ACEOF
13699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13700 egrep "ut_id" >/dev/null 2>&1; then
13701 eval "$ossh_varname=yes"
13702else
13703 eval "$ossh_varname=no"
13704fi
13705rm -f conftest*
13706
13707fi
13708
13709 ossh_result=`eval 'echo $'"$ossh_varname"`
13710 if test -n "`echo $ossh_varname`"; then
13711 echo "$as_me:13711: result: $ossh_result" >&5
13712echo "${ECHO_T}$ossh_result" >&6
13713 if test "x$ossh_result" = "xyes"; then
13714 cat >>confdefs.h <<\EOF
13715#define HAVE_ID_IN_UTMPX 1
13716EOF
13717
13718 fi
13719 else
13720 echo "$as_me:13720: result: no" >&5
13721echo "${ECHO_T}no" >&6
13722 fi
13723
13724# look for field 'ut_addr' in header 'utmp.h'
13725 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13726 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13727 echo "$as_me:13727: checking for ut_addr field in utmp.h" >&5
13728echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13729 if eval "test \"\${$ossh_varname+set}\" = set"; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731else
13732
13733 cat >conftest.$ac_ext <<_ACEOF
13734#line 13734 "configure"
13735#include "confdefs.h"
13736#include <utmp.h>
13737
13738_ACEOF
13739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13740 egrep "ut_addr" >/dev/null 2>&1; then
13741 eval "$ossh_varname=yes"
13742else
13743 eval "$ossh_varname=no"
13744fi
13745rm -f conftest*
13746
13747fi
13748
13749 ossh_result=`eval 'echo $'"$ossh_varname"`
13750 if test -n "`echo $ossh_varname`"; then
13751 echo "$as_me:13751: result: $ossh_result" >&5
13752echo "${ECHO_T}$ossh_result" >&6
13753 if test "x$ossh_result" = "xyes"; then
13754 cat >>confdefs.h <<\EOF
13755#define HAVE_ADDR_IN_UTMP 1
13756EOF
13757
13758 fi
13759 else
13760 echo "$as_me:13760: result: no" >&5
13761echo "${ECHO_T}no" >&6
13762 fi
13763
13764# look for field 'ut_addr' in header 'utmpx.h'
13765 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13766 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13767 echo "$as_me:13767: checking for ut_addr field in utmpx.h" >&5
13768echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13769 if eval "test \"\${$ossh_varname+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772
13773 cat >conftest.$ac_ext <<_ACEOF
13774#line 13774 "configure"
13775#include "confdefs.h"
13776#include <utmpx.h>
13777
13778_ACEOF
13779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 egrep "ut_addr" >/dev/null 2>&1; then
13781 eval "$ossh_varname=yes"
13782else
13783 eval "$ossh_varname=no"
13784fi
13785rm -f conftest*
13786
13787fi
13788
13789 ossh_result=`eval 'echo $'"$ossh_varname"`
13790 if test -n "`echo $ossh_varname`"; then
13791 echo "$as_me:13791: result: $ossh_result" >&5
13792echo "${ECHO_T}$ossh_result" >&6
13793 if test "x$ossh_result" = "xyes"; then
13794 cat >>confdefs.h <<\EOF
13795#define HAVE_ADDR_IN_UTMPX 1
13796EOF
13797
13798 fi
13799 else
13800 echo "$as_me:13800: result: no" >&5
13801echo "${ECHO_T}no" >&6
13802 fi
13803
13804# look for field 'ut_addr_v6' in header 'utmp.h'
13805 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13806 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13807 echo "$as_me:13807: checking for ut_addr_v6 field in utmp.h" >&5
13808echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13809 if eval "test \"\${$ossh_varname+set}\" = set"; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811else
13812
13813 cat >conftest.$ac_ext <<_ACEOF
13814#line 13814 "configure"
13815#include "confdefs.h"
13816#include <utmp.h>
13817
13818_ACEOF
13819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13820 egrep "ut_addr_v6" >/dev/null 2>&1; then
13821 eval "$ossh_varname=yes"
13822else
13823 eval "$ossh_varname=no"
13824fi
13825rm -f conftest*
13826
13827fi
13828
13829 ossh_result=`eval 'echo $'"$ossh_varname"`
13830 if test -n "`echo $ossh_varname`"; then
13831 echo "$as_me:13831: result: $ossh_result" >&5
13832echo "${ECHO_T}$ossh_result" >&6
13833 if test "x$ossh_result" = "xyes"; then
13834 cat >>confdefs.h <<\EOF
13835#define HAVE_ADDR_V6_IN_UTMP 1
13836EOF
13837
13838 fi
13839 else
13840 echo "$as_me:13840: result: no" >&5
13841echo "${ECHO_T}no" >&6
13842 fi
13843
13844# look for field 'ut_addr_v6' in header 'utmpx.h'
13845 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13846 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13847 echo "$as_me:13847: checking for ut_addr_v6 field in utmpx.h" >&5
13848echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13849 if eval "test \"\${$ossh_varname+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852
13853 cat >conftest.$ac_ext <<_ACEOF
13854#line 13854 "configure"
13855#include "confdefs.h"
13856#include <utmpx.h>
13857
13858_ACEOF
13859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13860 egrep "ut_addr_v6" >/dev/null 2>&1; then
13861 eval "$ossh_varname=yes"
13862else
13863 eval "$ossh_varname=no"
13864fi
13865rm -f conftest*
13866
13867fi
13868
13869 ossh_result=`eval 'echo $'"$ossh_varname"`
13870 if test -n "`echo $ossh_varname`"; then
13871 echo "$as_me:13871: result: $ossh_result" >&5
13872echo "${ECHO_T}$ossh_result" >&6
13873 if test "x$ossh_result" = "xyes"; then
13874 cat >>confdefs.h <<\EOF
13875#define HAVE_ADDR_V6_IN_UTMPX 1
13876EOF
13877
13878 fi
13879 else
13880 echo "$as_me:13880: result: no" >&5
13881echo "${ECHO_T}no" >&6
13882 fi
13883
13884# look for field 'ut_exit' in header 'utmp.h'
13885 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13886 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13887 echo "$as_me:13887: checking for ut_exit field in utmp.h" >&5
13888echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13889 if eval "test \"\${$ossh_varname+set}\" = set"; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891else
13892
13893 cat >conftest.$ac_ext <<_ACEOF
13894#line 13894 "configure"
13895#include "confdefs.h"
13896#include <utmp.h>
13897
13898_ACEOF
13899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13900 egrep "ut_exit" >/dev/null 2>&1; then
13901 eval "$ossh_varname=yes"
13902else
13903 eval "$ossh_varname=no"
13904fi
13905rm -f conftest*
13906
13907fi
13908
13909 ossh_result=`eval 'echo $'"$ossh_varname"`
13910 if test -n "`echo $ossh_varname`"; then
13911 echo "$as_me:13911: result: $ossh_result" >&5
13912echo "${ECHO_T}$ossh_result" >&6
13913 if test "x$ossh_result" = "xyes"; then
13914 cat >>confdefs.h <<\EOF
13915#define HAVE_EXIT_IN_UTMP 1
13916EOF
13917
13918 fi
13919 else
13920 echo "$as_me:13920: result: no" >&5
13921echo "${ECHO_T}no" >&6
13922 fi
13923
13924# look for field 'ut_time' in header 'utmp.h'
13925 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13926 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13927 echo "$as_me:13927: checking for ut_time field in utmp.h" >&5
13928echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13929 if eval "test \"\${$ossh_varname+set}\" = set"; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931else
13932
13933 cat >conftest.$ac_ext <<_ACEOF
13934#line 13934 "configure"
13935#include "confdefs.h"
13936#include <utmp.h>
13937
13938_ACEOF
13939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13940 egrep "ut_time" >/dev/null 2>&1; then
13941 eval "$ossh_varname=yes"
13942else
13943 eval "$ossh_varname=no"
13944fi
13945rm -f conftest*
13946
13947fi
13948
13949 ossh_result=`eval 'echo $'"$ossh_varname"`
13950 if test -n "`echo $ossh_varname`"; then
13951 echo "$as_me:13951: result: $ossh_result" >&5
13952echo "${ECHO_T}$ossh_result" >&6
13953 if test "x$ossh_result" = "xyes"; then
13954 cat >>confdefs.h <<\EOF
13955#define HAVE_TIME_IN_UTMP 1
13956EOF
13957
13958 fi
13959 else
13960 echo "$as_me:13960: result: no" >&5
13961echo "${ECHO_T}no" >&6
13962 fi
13963
13964# look for field 'ut_time' in header 'utmpx.h'
13965 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13966 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13967 echo "$as_me:13967: checking for ut_time field in utmpx.h" >&5
13968echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13969 if eval "test \"\${$ossh_varname+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972
13973 cat >conftest.$ac_ext <<_ACEOF
13974#line 13974 "configure"
13975#include "confdefs.h"
13976#include <utmpx.h>
13977
13978_ACEOF
13979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 egrep "ut_time" >/dev/null 2>&1; then
13981 eval "$ossh_varname=yes"
13982else
13983 eval "$ossh_varname=no"
13984fi
13985rm -f conftest*
13986
13987fi
13988
13989 ossh_result=`eval 'echo $'"$ossh_varname"`
13990 if test -n "`echo $ossh_varname`"; then
13991 echo "$as_me:13991: result: $ossh_result" >&5
13992echo "${ECHO_T}$ossh_result" >&6
13993 if test "x$ossh_result" = "xyes"; then
13994 cat >>confdefs.h <<\EOF
13995#define HAVE_TIME_IN_UTMPX 1
13996EOF
13997
13998 fi
13999 else
14000 echo "$as_me:14000: result: no" >&5
14001echo "${ECHO_T}no" >&6
14002 fi
14003
14004# look for field 'ut_tv' in header 'utmpx.h'
14005 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14006 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
14007 echo "$as_me:14007: checking for ut_tv field in utmpx.h" >&5
14008echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
14009 if eval "test \"\${$ossh_varname+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012
14013 cat >conftest.$ac_ext <<_ACEOF
14014#line 14014 "configure"
14015#include "confdefs.h"
14016#include <utmpx.h>
14017
14018_ACEOF
14019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14020 egrep "ut_tv" >/dev/null 2>&1; then
14021 eval "$ossh_varname=yes"
14022else
14023 eval "$ossh_varname=no"
14024fi
14025rm -f conftest*
14026
14027fi
14028
14029 ossh_result=`eval 'echo $'"$ossh_varname"`
14030 if test -n "`echo $ossh_varname`"; then
14031 echo "$as_me:14031: result: $ossh_result" >&5
14032echo "${ECHO_T}$ossh_result" >&6
14033 if test "x$ossh_result" = "xyes"; then
14034 cat >>confdefs.h <<\EOF
14035#define HAVE_TV_IN_UTMPX 1
14036EOF
14037
14038 fi
14039 else
14040 echo "$as_me:14040: result: no" >&5
14041echo "${ECHO_T}no" >&6
14042 fi
14043
14044echo "$as_me:14044: checking for struct stat.st_blksize" >&5
14045echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14046if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 cat >conftest.$ac_ext <<_ACEOF
14050#line 14050 "configure"
14051#include "confdefs.h"
14052$ac_includes_default
14053int
14054main ()
14055{
14056static struct stat ac_aggr;
14057if (ac_aggr.st_blksize)
14058return 0;
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063rm -f conftest.$ac_objext
14064if { (eval echo "$as_me:14064: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>&5
14066 ac_status=$?
14067 echo "$as_me:14067: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:14070: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_cv_member_struct_stat_st_blksize=yes
14076else
14077 echo "$as_me: failed program was:" >&5
14078cat conftest.$ac_ext >&5
14079ac_cv_member_struct_stat_st_blksize=no
14080fi
14081rm -f conftest.$ac_objext conftest.$ac_ext
14082fi
14083echo "$as_me:14083: result: $ac_cv_member_struct_stat_st_blksize" >&5
14084echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14085if test $ac_cv_member_struct_stat_st_blksize = yes; then
14086
14087cat >>confdefs.h <<EOF
14088#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14089EOF
14090
14091fi
14092
14093echo "$as_me:14093: checking for ss_family field in struct sockaddr_storage" >&5
14094echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14095if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098
14099 cat >conftest.$ac_ext <<_ACEOF
14100#line 14100 "configure"
14101#include "confdefs.h"
14102
14103#include <sys/types.h>
14104#include <sys/socket.h>
14105
14106int
14107main ()
14108{
14109 struct sockaddr_storage s; s.ss_family = 1;
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext
14115if { (eval echo "$as_me:14115: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>&5
14117 ac_status=$?
14118 echo "$as_me:14118: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -s conftest.$ac_objext'
14121 { (eval echo "$as_me:14121: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:14124: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_have_ss_family_in_struct_ss="yes"
14127else
14128 echo "$as_me: failed program was:" >&5
14129cat conftest.$ac_ext >&5
14130 ac_cv_have_ss_family_in_struct_ss="no"
14131fi
14132rm -f conftest.$ac_objext conftest.$ac_ext
14133
14134fi
14135echo "$as_me:14135: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14136echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14137if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14138 cat >>confdefs.h <<\EOF
14139#define HAVE_SS_FAMILY_IN_SS 1
14140EOF
14141
14142fi
14143
14144echo "$as_me:14144: checking for __ss_family field in struct sockaddr_storage" >&5
14145echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14146if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149
14150 cat >conftest.$ac_ext <<_ACEOF
14151#line 14151 "configure"
14152#include "confdefs.h"
14153
14154#include <sys/types.h>
14155#include <sys/socket.h>
14156
14157int
14158main ()
14159{
14160 struct sockaddr_storage s; s.__ss_family = 1;
14161 ;
14162 return 0;
14163}
14164_ACEOF
14165rm -f conftest.$ac_objext
14166if { (eval echo "$as_me:14166: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>&5
14168 ac_status=$?
14169 echo "$as_me:14169: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:14172: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:14175: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_have___ss_family_in_struct_ss="yes"
14178else
14179 echo "$as_me: failed program was:" >&5
14180cat conftest.$ac_ext >&5
14181 ac_cv_have___ss_family_in_struct_ss="no"
14182
14183fi
14184rm -f conftest.$ac_objext conftest.$ac_ext
14185
14186fi
14187echo "$as_me:14187: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14188echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14189if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14190 cat >>confdefs.h <<\EOF
14191#define HAVE___SS_FAMILY_IN_SS 1
14192EOF
14193
14194fi
14195
14196echo "$as_me:14196: checking for pw_class field in struct passwd" >&5
14197echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14198if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200else
14201
14202 cat >conftest.$ac_ext <<_ACEOF
14203#line 14203 "configure"
14204#include "confdefs.h"
14205
14206#include <pwd.h>
14207
14208int
14209main ()
14210{
14211 struct passwd p; p.pw_class = 0;
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (eval echo "$as_me:14217: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>&5
14219 ac_status=$?
14220 echo "$as_me:14220: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:14223: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_have_pw_class_in_struct_passwd="yes"
14229else
14230 echo "$as_me: failed program was:" >&5
14231cat conftest.$ac_ext >&5
14232 ac_cv_have_pw_class_in_struct_passwd="no"
14233
14234fi
14235rm -f conftest.$ac_objext conftest.$ac_ext
14236
14237fi
14238echo "$as_me:14238: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14239echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14240if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14241 cat >>confdefs.h <<\EOF
14242#define HAVE_PW_CLASS_IN_PASSWD 1
14243EOF
14244
14245fi
14246
14247echo "$as_me:14247: checking for pw_expire field in struct passwd" >&5
14248echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14249if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252
14253 cat >conftest.$ac_ext <<_ACEOF
14254#line 14254 "configure"
14255#include "confdefs.h"
14256
14257#include <pwd.h>
14258
14259int
14260main ()
14261{
14262 struct passwd p; p.pw_expire = 0;
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
14268if { (eval echo "$as_me:14268: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>&5
14270 ac_status=$?
14271 echo "$as_me:14271: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:14274: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:14277: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_have_pw_expire_in_struct_passwd="yes"
14280else
14281 echo "$as_me: failed program was:" >&5
14282cat conftest.$ac_ext >&5
14283 ac_cv_have_pw_expire_in_struct_passwd="no"
14284
14285fi
14286rm -f conftest.$ac_objext conftest.$ac_ext
14287
14288fi
14289echo "$as_me:14289: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14290echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14291if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14292 cat >>confdefs.h <<\EOF
14293#define HAVE_PW_EXPIRE_IN_PASSWD 1
14294EOF
14295
14296fi
14297
14298echo "$as_me:14298: checking for pw_change field in struct passwd" >&5
14299echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14300if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302else
14303
14304 cat >conftest.$ac_ext <<_ACEOF
14305#line 14305 "configure"
14306#include "confdefs.h"
14307
14308#include <pwd.h>
14309
14310int
14311main ()
14312{
14313 struct passwd p; p.pw_change = 0;
14314 ;
14315 return 0;
14316}
14317_ACEOF
14318rm -f conftest.$ac_objext
14319if { (eval echo "$as_me:14319: \"$ac_compile\"") >&5
14320 (eval $ac_compile) 2>&5
14321 ac_status=$?
14322 echo "$as_me:14322: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (eval echo "$as_me:14325: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_have_pw_change_in_struct_passwd="yes"
14331else
14332 echo "$as_me: failed program was:" >&5
14333cat conftest.$ac_ext >&5
14334 ac_cv_have_pw_change_in_struct_passwd="no"
14335
14336fi
14337rm -f conftest.$ac_objext conftest.$ac_ext
14338
14339fi
14340echo "$as_me:14340: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14341echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14342if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14343 cat >>confdefs.h <<\EOF
14344#define HAVE_PW_CHANGE_IN_PASSWD 1
14345EOF
14346
14347fi
14348
14349echo "$as_me:14349: checking for msg_accrights field in struct msghdr" >&5
14350echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14351if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354
14355 if test "$cross_compiling" = yes; then
14356 { { echo "$as_me:14356: error: cannot run test program while cross compiling" >&5
14357echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14358 { (exit 1); exit 1; }; }
14359else
14360 cat >conftest.$ac_ext <<_ACEOF
14361#line 14361 "configure"
14362#include "confdefs.h"
14363
14364#include <sys/types.h>
14365#include <sys/socket.h>
14366#include <sys/uio.h>
14367int main() {
14368#ifdef msg_accrights
14369exit(1);
14370#endif
14371struct msghdr m;
14372m.msg_accrights = 0;
14373exit(0);
14374}
14375
14376_ACEOF
14377rm -f conftest$ac_exeext
14378if { (eval echo "$as_me:14378: \"$ac_link\"") >&5
14379 (eval $ac_link) 2>&5
14380 ac_status=$?
14381 echo "$as_me:14381: \$? = $ac_status" >&5
14382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14383 { (eval echo "$as_me:14383: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:14386: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_have_accrights_in_msghdr="yes"
14389else
14390 echo "$as_me: program exited with status $ac_status" >&5
14391echo "$as_me: failed program was:" >&5
14392cat conftest.$ac_ext >&5
14393 ac_cv_have_accrights_in_msghdr="no"
14394
14395fi
14396rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14397fi
14398
14399fi
14400echo "$as_me:14400: result: $ac_cv_have_accrights_in_msghdr" >&5
14401echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14402if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14403 cat >>confdefs.h <<\EOF
14404#define HAVE_ACCRIGHTS_IN_MSGHDR 1
14405EOF
14406
14407fi
14408
14409echo "$as_me:14409: checking for msg_control field in struct msghdr" >&5
14410echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14411if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413else
14414
14415 if test "$cross_compiling" = yes; then
14416 { { echo "$as_me:14416: error: cannot run test program while cross compiling" >&5
14417echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14418 { (exit 1); exit 1; }; }
14419else
14420 cat >conftest.$ac_ext <<_ACEOF
14421#line 14421 "configure"
14422#include "confdefs.h"
14423
14424#include <sys/types.h>
14425#include <sys/socket.h>
14426#include <sys/uio.h>
14427int main() {
14428#ifdef msg_control
14429exit(1);
14430#endif
14431struct msghdr m;
14432m.msg_control = 0;
14433exit(0);
14434}
14435
14436_ACEOF
14437rm -f conftest$ac_exeext
14438if { (eval echo "$as_me:14438: \"$ac_link\"") >&5
14439 (eval $ac_link) 2>&5
14440 ac_status=$?
14441 echo "$as_me:14441: \$? = $ac_status" >&5
14442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14443 { (eval echo "$as_me:14443: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_have_control_in_msghdr="yes"
14449else
14450 echo "$as_me: program exited with status $ac_status" >&5
14451echo "$as_me: failed program was:" >&5
14452cat conftest.$ac_ext >&5
14453 ac_cv_have_control_in_msghdr="no"
14454
14455fi
14456rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14457fi
14458
14459fi
14460echo "$as_me:14460: result: $ac_cv_have_control_in_msghdr" >&5
14461echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14462if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14463 cat >>confdefs.h <<\EOF
14464#define HAVE_CONTROL_IN_MSGHDR 1
14465EOF
14466
14467fi
14468
14469echo "$as_me:14469: checking if libc defines __progname" >&5
14470echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14471if test "${ac_cv_libc_defines___progname+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474
14475 cat >conftest.$ac_ext <<_ACEOF
14476#line 14476 "configure"
14477#include "confdefs.h"
14478
14479int
14480main ()
14481{
14482 extern char *__progname; printf("%s", __progname);
14483 ;
14484 return 0;
14485}
14486_ACEOF
14487rm -f conftest.$ac_objext conftest$ac_exeext
14488if { (eval echo "$as_me:14488: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>&5
14490 ac_status=$?
14491 echo "$as_me:14491: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:14494: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:14497: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_libc_defines___progname="yes"
14500else
14501 echo "$as_me: failed program was:" >&5
14502cat conftest.$ac_ext >&5
14503 ac_cv_libc_defines___progname="no"
14504
14505fi
14506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14507
14508fi
14509echo "$as_me:14509: result: $ac_cv_libc_defines___progname" >&5
14510echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14511if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14512 cat >>confdefs.h <<\EOF
14513#define HAVE___PROGNAME 1
14514EOF
14515
14516fi
14517
14518echo "$as_me:14518: checking whether $CC implements __FUNCTION__" >&5
14519echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14520if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523
14524 cat >conftest.$ac_ext <<_ACEOF
14525#line 14525 "configure"
14526#include "confdefs.h"
14527
14528#include <stdio.h>
14529
14530int
14531main ()
14532{
14533 printf("%s", __FUNCTION__);
14534 ;
14535 return 0;
14536}
14537_ACEOF
14538rm -f conftest.$ac_objext conftest$ac_exeext
14539if { (eval echo "$as_me:14539: \"$ac_link\"") >&5
14540 (eval $ac_link) 2>&5
14541 ac_status=$?
14542 echo "$as_me:14542: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (eval echo "$as_me:14545: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 echo "$as_me:14548: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 ac_cv_cc_implements___FUNCTION__="yes"
14551else
14552 echo "$as_me: failed program was:" >&5
14553cat conftest.$ac_ext >&5
14554 ac_cv_cc_implements___FUNCTION__="no"
14555
14556fi
14557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14558
14559fi
14560echo "$as_me:14560: result: $ac_cv_cc_implements___FUNCTION__" >&5
14561echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14562if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14563 cat >>confdefs.h <<\EOF
14564#define HAVE___FUNCTION__ 1
14565EOF
14566
14567fi
14568
14569echo "$as_me:14569: checking whether $CC implements __func__" >&5
14570echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14571if test "${ac_cv_cc_implements___func__+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
14574
14575 cat >conftest.$ac_ext <<_ACEOF
14576#line 14576 "configure"
14577#include "confdefs.h"
14578
14579#include <stdio.h>
14580
14581int
14582main ()
14583{
14584 printf("%s", __func__);
14585 ;
14586 return 0;
14587}
14588_ACEOF
14589rm -f conftest.$ac_objext conftest$ac_exeext
14590if { (eval echo "$as_me:14590: \"$ac_link\"") >&5
14591 (eval $ac_link) 2>&5
14592 ac_status=$?
14593 echo "$as_me:14593: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -s conftest$ac_exeext'
14596 { (eval echo "$as_me:14596: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:14599: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 ac_cv_cc_implements___func__="yes"
14602else
14603 echo "$as_me: failed program was:" >&5
14604cat conftest.$ac_ext >&5
14605 ac_cv_cc_implements___func__="no"
14606
14607fi
14608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14609
14610fi
14611echo "$as_me:14611: result: $ac_cv_cc_implements___func__" >&5
14612echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14613if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14614 cat >>confdefs.h <<\EOF
14615#define HAVE___func__ 1
14616EOF
14617
14618fi
14619
14620echo "$as_me:14620: checking whether getopt has optreset support" >&5
14621echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14622if test "${ac_cv_have_getopt_optreset+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624else
14625
14626 cat >conftest.$ac_ext <<_ACEOF
14627#line 14627 "configure"
14628#include "confdefs.h"
14629
14630#include <getopt.h>
14631
14632int
14633main ()
14634{
14635 extern int optreset; optreset = 0;
14636 ;
14637 return 0;
14638}
14639_ACEOF
14640rm -f conftest.$ac_objext conftest$ac_exeext
14641if { (eval echo "$as_me:14641: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>&5
14643 ac_status=$?
14644 echo "$as_me:14644: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -s conftest$ac_exeext'
14647 { (eval echo "$as_me:14647: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:14650: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_have_getopt_optreset="yes"
14653else
14654 echo "$as_me: failed program was:" >&5
14655cat conftest.$ac_ext >&5
14656 ac_cv_have_getopt_optreset="no"
14657
14658fi
14659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14660
14661fi
14662echo "$as_me:14662: result: $ac_cv_have_getopt_optreset" >&5
14663echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14664if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14665 cat >>confdefs.h <<\EOF
14666#define HAVE_GETOPT_OPTRESET 1
14667EOF
14668
14669fi
14670
14671echo "$as_me:14671: checking if libc defines sys_errlist" >&5
14672echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14673if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675else
14676
14677 cat >conftest.$ac_ext <<_ACEOF
14678#line 14678 "configure"
14679#include "confdefs.h"
14680
14681int
14682main ()
14683{
14684 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext conftest$ac_exeext
14690if { (eval echo "$as_me:14690: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>&5
14692 ac_status=$?
14693 echo "$as_me:14693: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (eval echo "$as_me:14696: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:14699: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_libc_defines_sys_errlist="yes"
14702else
14703 echo "$as_me: failed program was:" >&5
14704cat conftest.$ac_ext >&5
14705 ac_cv_libc_defines_sys_errlist="no"
14706
14707fi
14708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14709
14710fi
14711echo "$as_me:14711: result: $ac_cv_libc_defines_sys_errlist" >&5
14712echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14713if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14714 cat >>confdefs.h <<\EOF
14715#define HAVE_SYS_ERRLIST 1
14716EOF
14717
14718fi
14719
14720echo "$as_me:14720: checking if libc defines sys_nerr" >&5
14721echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14722if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724else
14725
14726 cat >conftest.$ac_ext <<_ACEOF
14727#line 14727 "configure"
14728#include "confdefs.h"
14729
14730int
14731main ()
14732{
14733 extern int sys_nerr; printf("%i", sys_nerr);
14734 ;
14735 return 0;
14736}
14737_ACEOF
14738rm -f conftest.$ac_objext conftest$ac_exeext
14739if { (eval echo "$as_me:14739: \"$ac_link\"") >&5
14740 (eval $ac_link) 2>&5
14741 ac_status=$?
14742 echo "$as_me:14742: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (eval echo "$as_me:14745: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_libc_defines_sys_nerr="yes"
14751else
14752 echo "$as_me: failed program was:" >&5
14753cat conftest.$ac_ext >&5
14754 ac_cv_libc_defines_sys_nerr="no"
14755
14756fi
14757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758
14759fi
14760echo "$as_me:14760: result: $ac_cv_libc_defines_sys_nerr" >&5
14761echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14762if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14763 cat >>confdefs.h <<\EOF
14764#define HAVE_SYS_NERR 1
14765EOF
14766
14767fi
14768
14769SCARD_MSG="no"
14770# Check whether user wants sectok support
14771
14772# Check whether --with-sectok or --without-sectok was given.
14773if test "${with_sectok+set}" = set; then
14774 withval="$with_sectok"
14775
14776 if test "x$withval" != "xno" ; then
14777 if test "x$withval" != "xyes" ; then
14778 CPPFLAGS="$CPPFLAGS -I${withval}"
14779 LDFLAGS="$LDFLAGS -L${withval}"
14780 if test ! -z "$need_dash_r" ; then
14781 LDFLAGS="$LDFLAGS -R${withval}"
14782 fi
14783 if test ! -z "$blibpath" ; then
14784 blibpath="$blibpath:${withval}"
14785 fi
14786 fi
14787
14788for ac_header in sectok.h
14789do
14790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14791echo "$as_me:14791: checking for $ac_header" >&5
14792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14793if eval "test \"\${$as_ac_Header+set}\" = set"; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
14796 cat >conftest.$ac_ext <<_ACEOF
14797#line 14797 "configure"
14798#include "confdefs.h"
14799#include <$ac_header>
14800_ACEOF
14801if { (eval echo "$as_me:14801: \"$ac_cpp conftest.$ac_ext\"") >&5
14802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14803 ac_status=$?
14804 egrep -v '^ *\+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:14807: \$? = $ac_status" >&5
14808 (exit $ac_status); } >/dev/null; then
14809 if test -s conftest.err; then
14810 ac_cpp_err=$ac_c_preproc_warn_flag
14811 else
14812 ac_cpp_err=
14813 fi
14814else
14815 ac_cpp_err=yes
14816fi
14817if test -z "$ac_cpp_err"; then
14818 eval "$as_ac_Header=yes"
14819else
14820 echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 eval "$as_ac_Header=no"
14823fi
14824rm -f conftest.err conftest.$ac_ext
14825fi
14826echo "$as_me:14826: result: `eval echo '${'$as_ac_Header'}'`" >&5
14827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14828if test `eval echo '${'$as_ac_Header'}'` = yes; then
14829 cat >>confdefs.h <<EOF
14830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14831EOF
14832
14833fi
14834done
14835
14836 if test "$ac_cv_header_sectok_h" != yes; then
14837 { { echo "$as_me:14837: error: Can't find sectok.h" >&5
14838echo "$as_me: error: Can't find sectok.h" >&2;}
14839 { (exit 1); exit 1; }; }
14840 fi
14841
14842echo "$as_me:14842: checking for sectok_open in -lsectok" >&5
14843echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14844if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 ac_check_lib_save_LIBS=$LIBS
14848LIBS="-lsectok $LIBS"
14849cat >conftest.$ac_ext <<_ACEOF
14850#line 14850 "configure"
14851#include "confdefs.h"
14852
14853/* Override any gcc2 internal prototype to avoid an error. */
14854#ifdef __cplusplus
14855extern "C"
14856#endif
14857/* We use char because int might match the return type of a gcc2
14858 builtin and then its argument prototype would still apply. */
14859char sectok_open ();
14860int
14861main ()
14862{
14863sectok_open ();
14864 ;
14865 return 0;
14866}
14867_ACEOF
14868rm -f conftest.$ac_objext conftest$ac_exeext
14869if { (eval echo "$as_me:14869: \"$ac_link\"") >&5
14870 (eval $ac_link) 2>&5
14871 ac_status=$?
14872 echo "$as_me:14872: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -s conftest$ac_exeext'
14875 { (eval echo "$as_me:14875: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:14878: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_lib_sectok_sectok_open=yes
14881else
14882 echo "$as_me: failed program was:" >&5
14883cat conftest.$ac_ext >&5
14884ac_cv_lib_sectok_sectok_open=no
14885fi
14886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14887LIBS=$ac_check_lib_save_LIBS
14888fi
14889echo "$as_me:14889: result: $ac_cv_lib_sectok_sectok_open" >&5
14890echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14891if test $ac_cv_lib_sectok_sectok_open = yes; then
14892 cat >>confdefs.h <<EOF
14893#define HAVE_LIBSECTOK 1
14894EOF
14895
14896 LIBS="-lsectok $LIBS"
14897
14898fi
14899
14900 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14901 { { echo "$as_me:14901: error: Can't find libsectok" >&5
14902echo "$as_me: error: Can't find libsectok" >&2;}
14903 { (exit 1); exit 1; }; }
14904 fi
14905 cat >>confdefs.h <<\EOF
14906#define SMARTCARD 1
14907EOF
14908
14909 cat >>confdefs.h <<\EOF
14910#define USE_SECTOK 1
14911EOF
14912
14913 SCARD_MSG="yes, using sectok"
14914 fi
14915
14916fi;
14917
14918# Check whether user wants OpenSC support
14919
14920# Check whether --with-opensc or --without-opensc was given.
14921if test "${with_opensc+set}" = set; then
14922 withval="$with_opensc"
14923 opensc_config_prefix="$withval"
14924else
14925 opensc_config_prefix=""
14926fi;
14927if test x$opensc_config_prefix != x ; then
14928 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14929 # Extract the first word of "opensc-config", so it can be a program name with args.
14930set dummy opensc-config; ac_word=$2
14931echo "$as_me:14931: checking for $ac_word" >&5
14932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14933if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936 case $OPENSC_CONFIG in
14937 [\\/]* | ?:[\\/]*)
14938 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14939 ;;
14940 *)
14941 ac_save_IFS=$IFS; IFS=$ac_path_separator
14942ac_dummy="$PATH"
14943for ac_dir in $ac_dummy; do
14944 IFS=$ac_save_IFS
14945 test -z "$ac_dir" && ac_dir=.
14946 if $as_executable_p "$ac_dir/$ac_word"; then
14947 ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word"
14948 echo "$as_me:14948: found $ac_dir/$ac_word" >&5
14949 break
14950fi
14951done
14952
14953 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14954 ;;
14955esac
14956fi
14957OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14958
14959if test -n "$OPENSC_CONFIG"; then
14960 echo "$as_me:14960: result: $OPENSC_CONFIG" >&5
14961echo "${ECHO_T}$OPENSC_CONFIG" >&6
14962else
14963 echo "$as_me:14963: result: no" >&5
14964echo "${ECHO_T}no" >&6
14965fi
14966
14967 if test "$OPENSC_CONFIG" != "no"; then
14968 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14969 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14970 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14971 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14972 cat >>confdefs.h <<\EOF
14973#define SMARTCARD 1
14974EOF
14975
14976 cat >>confdefs.h <<\EOF
14977#define USE_OPENSC 1
14978EOF
14979
14980 SCARD_MSG="yes, using OpenSC"
14981 fi
14982fi
14983
14984# Check libraries needed by DNS fingerprint support
14985echo "$as_me:14985: checking for library containing getrrsetbyname" >&5
14986echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
14987if test "${ac_cv_search_getrrsetbyname+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 ac_func_search_save_LIBS=$LIBS
14991ac_cv_search_getrrsetbyname=no
14992cat >conftest.$ac_ext <<_ACEOF
14993#line 14993 "configure"
14994#include "confdefs.h"
14995
14996/* Override any gcc2 internal prototype to avoid an error. */
14997#ifdef __cplusplus
14998extern "C"
14999#endif
15000/* We use char because int might match the return type of a gcc2
15001 builtin and then its argument prototype would still apply. */
15002char getrrsetbyname ();
15003int
15004main ()
15005{
15006getrrsetbyname ();
15007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext conftest$ac_exeext
15012if { (eval echo "$as_me:15012: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>&5
15014 ac_status=$?
15015 echo "$as_me:15015: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -s conftest$ac_exeext'
15018 { (eval echo "$as_me:15018: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:15021: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_search_getrrsetbyname="none required"
15024else
15025 echo "$as_me: failed program was:" >&5
15026cat conftest.$ac_ext >&5
15027fi
15028rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15029if test "$ac_cv_search_getrrsetbyname" = no; then
15030 for ac_lib in resolv; do
15031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15032 cat >conftest.$ac_ext <<_ACEOF
15033#line 15033 "configure"
15034#include "confdefs.h"
15035
15036/* Override any gcc2 internal prototype to avoid an error. */
15037#ifdef __cplusplus
15038extern "C"
15039#endif
15040/* We use char because int might match the return type of a gcc2
15041 builtin and then its argument prototype would still apply. */
15042char getrrsetbyname ();
15043int
15044main ()
15045{
15046getrrsetbyname ();
15047 ;
15048 return 0;
15049}
15050_ACEOF
15051rm -f conftest.$ac_objext conftest$ac_exeext
15052if { (eval echo "$as_me:15052: \"$ac_link\"") >&5
15053 (eval $ac_link) 2>&5
15054 ac_status=$?
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:15058: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:15061: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_search_getrrsetbyname="-l$ac_lib"
15064break
15065else
15066 echo "$as_me: failed program was:" >&5
15067cat conftest.$ac_ext >&5
15068fi
15069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15070 done
15071fi
15072LIBS=$ac_func_search_save_LIBS
15073fi
15074echo "$as_me:15074: result: $ac_cv_search_getrrsetbyname" >&5
15075echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
15076if test "$ac_cv_search_getrrsetbyname" != no; then
15077 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
15078 cat >>confdefs.h <<\EOF
15079#define HAVE_GETRRSETBYNAME 1
15080EOF
15081
15082else
15083
15084 # Needed by our getrrsetbyname()
15085 echo "$as_me:15085: checking for library containing res_query" >&5
15086echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
15087if test "${ac_cv_search_res_query+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15089else
15090 ac_func_search_save_LIBS=$LIBS
15091ac_cv_search_res_query=no
15092cat >conftest.$ac_ext <<_ACEOF
15093#line 15093 "configure"
15094#include "confdefs.h"
15095
15096/* Override any gcc2 internal prototype to avoid an error. */
15097#ifdef __cplusplus
15098extern "C"
15099#endif
15100/* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15102char res_query ();
15103int
15104main ()
15105{
15106res_query ();
15107 ;
15108 return 0;
15109}
15110_ACEOF
15111rm -f conftest.$ac_objext conftest$ac_exeext
15112if { (eval echo "$as_me:15112: \"$ac_link\"") >&5
15113 (eval $ac_link) 2>&5
15114 ac_status=$?
15115 echo "$as_me:15115: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -s conftest$ac_exeext'
15118 { (eval echo "$as_me:15118: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:15121: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_cv_search_res_query="none required"
15124else
15125 echo "$as_me: failed program was:" >&5
15126cat conftest.$ac_ext >&5
15127fi
15128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15129if test "$ac_cv_search_res_query" = no; then
15130 for ac_lib in resolv; do
15131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15132 cat >conftest.$ac_ext <<_ACEOF
15133#line 15133 "configure"
15134#include "confdefs.h"
15135
15136/* Override any gcc2 internal prototype to avoid an error. */
15137#ifdef __cplusplus
15138extern "C"
15139#endif
15140/* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142char res_query ();
15143int
15144main ()
15145{
15146res_query ();
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext conftest$ac_exeext
15152if { (eval echo "$as_me:15152: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>&5
15154 ac_status=$?
15155 echo "$as_me:15155: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:15158: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:15161: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 ac_cv_search_res_query="-l$ac_lib"
15164break
15165else
15166 echo "$as_me: failed program was:" >&5
15167cat conftest.$ac_ext >&5
15168fi
15169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15170 done
15171fi
15172LIBS=$ac_func_search_save_LIBS
15173fi
15174echo "$as_me:15174: result: $ac_cv_search_res_query" >&5
15175echo "${ECHO_T}$ac_cv_search_res_query" >&6
15176if test "$ac_cv_search_res_query" != no; then
15177 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
15178
15179fi
15180
15181 echo "$as_me:15181: checking for library containing dn_expand" >&5
15182echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
15183if test "${ac_cv_search_dn_expand+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else
15186 ac_func_search_save_LIBS=$LIBS
15187ac_cv_search_dn_expand=no
15188cat >conftest.$ac_ext <<_ACEOF
15189#line 15189 "configure"
15190#include "confdefs.h"
15191
15192/* Override any gcc2 internal prototype to avoid an error. */
15193#ifdef __cplusplus
15194extern "C"
15195#endif
15196/* We use char because int might match the return type of a gcc2
15197 builtin and then its argument prototype would still apply. */
15198char dn_expand ();
15199int
15200main ()
15201{
15202dn_expand ();
15203 ;
15204 return 0;
15205}
15206_ACEOF
15207rm -f conftest.$ac_objext conftest$ac_exeext
15208if { (eval echo "$as_me:15208: \"$ac_link\"") >&5
15209 (eval $ac_link) 2>&5
15210 ac_status=$?
15211 echo "$as_me:15211: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:15214: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_cv_search_dn_expand="none required"
15220else
15221 echo "$as_me: failed program was:" >&5
15222cat conftest.$ac_ext >&5
15223fi
15224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15225if test "$ac_cv_search_dn_expand" = no; then
15226 for ac_lib in resolv; do
15227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15228 cat >conftest.$ac_ext <<_ACEOF
15229#line 15229 "configure"
15230#include "confdefs.h"
15231
15232/* Override any gcc2 internal prototype to avoid an error. */
15233#ifdef __cplusplus
15234extern "C"
15235#endif
15236/* We use char because int might match the return type of a gcc2
15237 builtin and then its argument prototype would still apply. */
15238char dn_expand ();
15239int
15240main ()
15241{
15242dn_expand ();
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247rm -f conftest.$ac_objext conftest$ac_exeext
15248if { (eval echo "$as_me:15248: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>&5
15250 ac_status=$?
15251 echo "$as_me:15251: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (eval echo "$as_me:15254: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:15257: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_search_dn_expand="-l$ac_lib"
15260break
15261else
15262 echo "$as_me: failed program was:" >&5
15263cat conftest.$ac_ext >&5
15264fi
15265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15266 done
15267fi
15268LIBS=$ac_func_search_save_LIBS
15269fi
15270echo "$as_me:15270: result: $ac_cv_search_dn_expand" >&5
15271echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
15272if test "$ac_cv_search_dn_expand" != no; then
15273 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
15274
15275fi
15276
15277for ac_func in _getshort _getlong
15278do
15279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15280echo "$as_me:15280: checking for $ac_func" >&5
15281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15282if eval "test \"\${$as_ac_var+set}\" = set"; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 cat >conftest.$ac_ext <<_ACEOF
15286#line 15286 "configure"
15287#include "confdefs.h"
15288/* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char $ac_func (); below. */
15290#include <assert.h>
15291/* Override any gcc2 internal prototype to avoid an error. */
15292#ifdef __cplusplus
15293extern "C"
15294#endif
15295/* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15297char $ac_func ();
15298char (*f) ();
15299
15300int
15301main ()
15302{
15303/* The GNU C library defines this for functions which it implements
15304 to always fail with ENOSYS. Some functions are actually named
15305 something starting with __ and the normal name is an alias. */
15306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15307choke me
15308#else
15309f = $ac_func;
15310#endif
15311
15312 ;
15313 return 0;
15314}
15315_ACEOF
15316rm -f conftest.$ac_objext conftest$ac_exeext
15317if { (eval echo "$as_me:15317: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>&5
15319 ac_status=$?
15320 echo "$as_me:15320: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -s conftest$ac_exeext'
15323 { (eval echo "$as_me:15323: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 eval "$as_ac_var=yes"
15329else
15330 echo "$as_me: failed program was:" >&5
15331cat conftest.$ac_ext >&5
15332eval "$as_ac_var=no"
15333fi
15334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15335fi
15336echo "$as_me:15336: result: `eval echo '${'$as_ac_var'}'`" >&5
15337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15338if test `eval echo '${'$as_ac_var'}'` = yes; then
15339 cat >>confdefs.h <<EOF
15340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15341EOF
15342
15343fi
15344done
15345
15346 echo "$as_me:15346: checking for HEADER.ad" >&5
15347echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
15348if test "${ac_cv_member_HEADER_ad+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 cat >conftest.$ac_ext <<_ACEOF
15352#line 15352 "configure"
15353#include "confdefs.h"
15354#include <arpa/nameser.h>
15355
15356int
15357main ()
15358{
15359static HEADER ac_aggr;
15360if (ac_aggr.ad)
15361return 0;
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366rm -f conftest.$ac_objext
15367if { (eval echo "$as_me:15367: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>&5
15369 ac_status=$?
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:15373: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:15376: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_cv_member_HEADER_ad=yes
15379else
15380 echo "$as_me: failed program was:" >&5
15381cat conftest.$ac_ext >&5
15382ac_cv_member_HEADER_ad=no
15383fi
15384rm -f conftest.$ac_objext conftest.$ac_ext
15385fi
15386echo "$as_me:15386: result: $ac_cv_member_HEADER_ad" >&5
15387echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
15388if test $ac_cv_member_HEADER_ad = yes; then
15389 cat >>confdefs.h <<\EOF
15390#define HAVE_HEADER_AD 1
15391EOF
15392
15393fi
15394
15395fi
15396
15397# Check whether user wants Kerberos 5 support
15398KRB5_MSG="no"
15399
15400# Check whether --with-kerberos5 or --without-kerberos5 was given.
15401if test "${with_kerberos5+set}" = set; then
15402 withval="$with_kerberos5"
15403 if test "x$withval" != "xno" ; then
15404 if test "x$withval" = "xyes" ; then
15405 KRB5ROOT="/usr/local"
15406 else
15407 KRB5ROOT=${withval}
15408 fi
15409
15410 cat >>confdefs.h <<\EOF
15411#define KRB5 1
15412EOF
15413
15414 KRB5_MSG="yes"
15415
15416 echo "$as_me:15416: checking for krb5-config" >&5
15417echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
15418 if test -x $KRB5ROOT/bin/krb5-config ; then
15419 KRB5CONF=$KRB5ROOT/bin/krb5-config
15420 echo "$as_me:15420: result: $KRB5CONF" >&5
15421echo "${ECHO_T}$KRB5CONF" >&6
15422
15423 echo "$as_me:15423: checking for gssapi support" >&5
15424echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
15425 if $KRB5CONF | grep gssapi >/dev/null ; then
15426 echo "$as_me:15426: result: yes" >&5
15427echo "${ECHO_T}yes" >&6
15428 cat >>confdefs.h <<\EOF
15429#define GSSAPI 1
15430EOF
15431
15432 k5confopts=gssapi
15433 else
15434 echo "$as_me:15434: result: no" >&5
15435echo "${ECHO_T}no" >&6
15436 k5confopts=""
15437 fi
15438 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15439 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15440 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15441 echo "$as_me:15441: checking whether we are using Heimdal" >&5
15442echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15443 cat >conftest.$ac_ext <<_ACEOF
15444#line 15444 "configure"
15445#include "confdefs.h"
15446 #include <krb5.h>
15447int
15448main ()
15449{
15450 char *tmp = heimdal_version;
15451 ;
15452 return 0;
15453}
15454_ACEOF
15455rm -f conftest.$ac_objext
15456if { (eval echo "$as_me:15456: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>&5
15458 ac_status=$?
15459 echo "$as_me:15459: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -s conftest.$ac_objext'
15462 { (eval echo "$as_me:15462: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:15465: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467 echo "$as_me:15467: result: yes" >&5
15468echo "${ECHO_T}yes" >&6
15469 cat >>confdefs.h <<\EOF
15470#define HEIMDAL 1
15471EOF
15472
15473else
15474 echo "$as_me: failed program was:" >&5
15475cat conftest.$ac_ext >&5
15476echo "$as_me:15476: result: no" >&5
15477echo "${ECHO_T}no" >&6
15478
15479fi
15480rm -f conftest.$ac_objext conftest.$ac_ext
15481 else
15482 echo "$as_me:15482: result: no" >&5
15483echo "${ECHO_T}no" >&6
15484 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15485 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15486 echo "$as_me:15486: checking whether we are using Heimdal" >&5
15487echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15489#line 15489 "configure"
15490#include "confdefs.h"
15491 #include <krb5.h>
15492int
15493main ()
15494{
15495 char *tmp = heimdal_version;
15496 ;
15497 return 0;
15498}
15499_ACEOF
15500rm -f conftest.$ac_objext
15501if { (eval echo "$as_me:15501: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>&5
15503 ac_status=$?
15504 echo "$as_me:15504: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:15507: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:15510: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 echo "$as_me:15512: result: yes" >&5
15513echo "${ECHO_T}yes" >&6
15514 cat >>confdefs.h <<\EOF
15515#define HEIMDAL 1
15516EOF
15517
15518 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15519
15520else
15521 echo "$as_me: failed program was:" >&5
15522cat conftest.$ac_ext >&5
15523 echo "$as_me:15523: result: no" >&5
15524echo "${ECHO_T}no" >&6
15525 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15526
15527fi
15528rm -f conftest.$ac_objext conftest.$ac_ext
15529 echo "$as_me:15529: checking for library containing dn_expand" >&5
15530echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
15531if test "${ac_cv_search_dn_expand+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533else
15534 ac_func_search_save_LIBS=$LIBS
15535ac_cv_search_dn_expand=no
15536cat >conftest.$ac_ext <<_ACEOF
15537#line 15537 "configure"
15538#include "confdefs.h"
15539
15540/* Override any gcc2 internal prototype to avoid an error. */
15541#ifdef __cplusplus
15542extern "C"
15543#endif
15544/* We use char because int might match the return type of a gcc2
15545 builtin and then its argument prototype would still apply. */
15546char dn_expand ();
15547int
15548main ()
15549{
15550dn_expand ();
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext conftest$ac_exeext
15556if { (eval echo "$as_me:15556: \"$ac_link\"") >&5
15557 (eval $ac_link) 2>&5
15558 ac_status=$?
15559 echo "$as_me:15559: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -s conftest$ac_exeext'
15562 { (eval echo "$as_me:15562: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:15565: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_search_dn_expand="none required"
15568else
15569 echo "$as_me: failed program was:" >&5
15570cat conftest.$ac_ext >&5
15571fi
15572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15573if test "$ac_cv_search_dn_expand" = no; then
15574 for ac_lib in resolv; do
15575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15576 cat >conftest.$ac_ext <<_ACEOF
15577#line 15577 "configure"
15578#include "confdefs.h"
15579
15580/* Override any gcc2 internal prototype to avoid an error. */
15581#ifdef __cplusplus
15582extern "C"
15583#endif
15584/* We use char because int might match the return type of a gcc2
15585 builtin and then its argument prototype would still apply. */
15586char dn_expand ();
15587int
15588main ()
15589{
15590dn_expand ();
15591 ;
15592 return 0;
15593}
15594_ACEOF
15595rm -f conftest.$ac_objext conftest$ac_exeext
15596if { (eval echo "$as_me:15596: \"$ac_link\"") >&5
15597 (eval $ac_link) 2>&5
15598 ac_status=$?
15599 echo "$as_me:15599: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -s conftest$ac_exeext'
15602 { (eval echo "$as_me:15602: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:15605: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_search_dn_expand="-l$ac_lib"
15608break
15609else
15610 echo "$as_me: failed program was:" >&5
15611cat conftest.$ac_ext >&5
15612fi
15613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15614 done
15615fi
15616LIBS=$ac_func_search_save_LIBS
15617fi
15618echo "$as_me:15618: result: $ac_cv_search_dn_expand" >&5
15619echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
15620if test "$ac_cv_search_dn_expand" != no; then
15621 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
15622
15623fi
15624
15625 echo "$as_me:15625: checking for gss_init_sec_context in -lgssapi" >&5
15626echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
15627if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else
15630 ac_check_lib_save_LIBS=$LIBS
15631LIBS="-lgssapi $K5LIBS $LIBS"
15632cat >conftest.$ac_ext <<_ACEOF
15633#line 15633 "configure"
15634#include "confdefs.h"
15635
15636/* Override any gcc2 internal prototype to avoid an error. */
15637#ifdef __cplusplus
15638extern "C"
15639#endif
15640/* We use char because int might match the return type of a gcc2
15641 builtin and then its argument prototype would still apply. */
15642char gss_init_sec_context ();
15643int
15644main ()
15645{
15646gss_init_sec_context ();
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext conftest$ac_exeext
15652if { (eval echo "$as_me:15652: \"$ac_link\"") >&5
15653 (eval $ac_link) 2>&5
15654 ac_status=$?
15655 echo "$as_me:15655: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:15658: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_gssapi_gss_init_sec_context=yes
15664else
15665 echo "$as_me: failed program was:" >&5
15666cat conftest.$ac_ext >&5
15667ac_cv_lib_gssapi_gss_init_sec_context=no
15668fi
15669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15670LIBS=$ac_check_lib_save_LIBS
15671fi
15672echo "$as_me:15672: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15673echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
15674if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
15675 cat >>confdefs.h <<\EOF
15676#define GSSAPI 1
15677EOF
15678
15679 K5LIBS="-lgssapi $K5LIBS"
15680else
15681 echo "$as_me:15681: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15682echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
15683if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685else
15686 ac_check_lib_save_LIBS=$LIBS
15687LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15688cat >conftest.$ac_ext <<_ACEOF
15689#line 15689 "configure"
15690#include "confdefs.h"
15691
15692/* Override any gcc2 internal prototype to avoid an error. */
15693#ifdef __cplusplus
15694extern "C"
15695#endif
15696/* We use char because int might match the return type of a gcc2
15697 builtin and then its argument prototype would still apply. */
15698char gss_init_sec_context ();
15699int
15700main ()
15701{
15702gss_init_sec_context ();
15703 ;
15704 return 0;
15705}
15706_ACEOF
15707rm -f conftest.$ac_objext conftest$ac_exeext
15708if { (eval echo "$as_me:15708: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>&5
15710 ac_status=$?
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -s conftest$ac_exeext'
15714 { (eval echo "$as_me:15714: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:15717: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15720else
15721 echo "$as_me: failed program was:" >&5
15722cat conftest.$ac_ext >&5
15723ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15724fi
15725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15726LIBS=$ac_check_lib_save_LIBS
15727fi
15728echo "$as_me:15728: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15729echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
15730if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
15731 cat >>confdefs.h <<\EOF
15732#define GSSAPI 1
15733EOF
15734
15735 K5LIBS="-lgssapi_krb5 $K5LIBS"
15736else
15737 { echo "$as_me:15737: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15738echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15739fi
15740
15741fi
15742
15743 echo "$as_me:15743: checking for gssapi.h" >&5
15744echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
15745if test "${ac_cv_header_gssapi_h+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748 cat >conftest.$ac_ext <<_ACEOF
15749#line 15749 "configure"
15750#include "confdefs.h"
15751#include <gssapi.h>
15752_ACEOF
15753if { (eval echo "$as_me:15753: \"$ac_cpp conftest.$ac_ext\"") >&5
15754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15755 ac_status=$?
15756 egrep -v '^ *\+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:15759: \$? = $ac_status" >&5
15760 (exit $ac_status); } >/dev/null; then
15761 if test -s conftest.err; then
15762 ac_cpp_err=$ac_c_preproc_warn_flag
15763 else
15764 ac_cpp_err=
15765 fi
15766else
15767 ac_cpp_err=yes
15768fi
15769if test -z "$ac_cpp_err"; then
15770 ac_cv_header_gssapi_h=yes
15771else
15772 echo "$as_me: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15774 ac_cv_header_gssapi_h=no
15775fi
15776rm -f conftest.err conftest.$ac_ext
15777fi
15778echo "$as_me:15778: result: $ac_cv_header_gssapi_h" >&5
15779echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
15780if test $ac_cv_header_gssapi_h = yes; then
15781 :
15782else
15783 unset ac_cv_header_gssapi_h
15784 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15785
15786for ac_header in gssapi.h
15787do
15788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15789echo "$as_me:15789: checking for $ac_header" >&5
15790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15791if eval "test \"\${$as_ac_Header+set}\" = set"; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793else
15794 cat >conftest.$ac_ext <<_ACEOF
15795#line 15795 "configure"
15796#include "confdefs.h"
15797#include <$ac_header>
15798_ACEOF
15799if { (eval echo "$as_me:15799: \"$ac_cpp conftest.$ac_ext\"") >&5
15800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15801 ac_status=$?
15802 egrep -v '^ *\+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 (exit $ac_status); } >/dev/null; then
15807 if test -s conftest.err; then
15808 ac_cpp_err=$ac_c_preproc_warn_flag
15809 else
15810 ac_cpp_err=
15811 fi
15812else
15813 ac_cpp_err=yes
15814fi
15815if test -z "$ac_cpp_err"; then
15816 eval "$as_ac_Header=yes"
15817else
15818 echo "$as_me: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 eval "$as_ac_Header=no"
15821fi
15822rm -f conftest.err conftest.$ac_ext
15823fi
15824echo "$as_me:15824: result: `eval echo '${'$as_ac_Header'}'`" >&5
15825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15826if test `eval echo '${'$as_ac_Header'}'` = yes; then
15827 cat >>confdefs.h <<EOF
15828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15829EOF
15830
15831else
15832 { echo "$as_me:15832: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15833echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15834
15835fi
15836done
15837
15838fi
15839
15840 oldCPP="$CPPFLAGS"
15841 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15842 echo "$as_me:15842: checking for gssapi_krb5.h" >&5
15843echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
15844if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 cat >conftest.$ac_ext <<_ACEOF
15848#line 15848 "configure"
15849#include "confdefs.h"
15850#include <gssapi_krb5.h>
15851_ACEOF
15852if { (eval echo "$as_me:15852: \"$ac_cpp conftest.$ac_ext\"") >&5
15853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15854 ac_status=$?
15855 egrep -v '^ *\+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); } >/dev/null; then
15860 if test -s conftest.err; then
15861 ac_cpp_err=$ac_c_preproc_warn_flag
15862 else
15863 ac_cpp_err=
15864 fi
15865else
15866 ac_cpp_err=yes
15867fi
15868if test -z "$ac_cpp_err"; then
15869 ac_cv_header_gssapi_krb5_h=yes
15870else
15871 echo "$as_me: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15873 ac_cv_header_gssapi_krb5_h=no
15874fi
15875rm -f conftest.err conftest.$ac_ext
15876fi
15877echo "$as_me:15877: result: $ac_cv_header_gssapi_krb5_h" >&5
15878echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
15879if test $ac_cv_header_gssapi_krb5_h = yes; then
15880 :
15881else
15882 CPPFLAGS="$oldCPP"
15883fi
15884
15885 fi
15886 if test ! -z "$need_dash_r" ; then
15887 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15888 fi
15889 if test ! -z "$blibpath" ; then
15890 blibpath="$blibpath:${KRB5ROOT}/lib"
15891 fi
15892 fi
15893
15894for ac_header in gssapi.h gssapi/gssapi.h
15895do
15896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897echo "$as_me:15897: checking for $ac_header" >&5
15898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15899if eval "test \"\${$as_ac_Header+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901else
15902 cat >conftest.$ac_ext <<_ACEOF
15903#line 15903 "configure"
15904#include "confdefs.h"
15905#include <$ac_header>
15906_ACEOF
15907if { (eval echo "$as_me:15907: \"$ac_cpp conftest.$ac_ext\"") >&5
15908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15909 ac_status=$?
15910 egrep -v '^ *\+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:15913: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null; then
15915 if test -s conftest.err; then
15916 ac_cpp_err=$ac_c_preproc_warn_flag
15917 else
15918 ac_cpp_err=
15919 fi
15920else
15921 ac_cpp_err=yes
15922fi
15923if test -z "$ac_cpp_err"; then
15924 eval "$as_ac_Header=yes"
15925else
15926 echo "$as_me: failed program was:" >&5
15927 cat conftest.$ac_ext >&5
15928 eval "$as_ac_Header=no"
15929fi
15930rm -f conftest.err conftest.$ac_ext
15931fi
15932echo "$as_me:15932: result: `eval echo '${'$as_ac_Header'}'`" >&5
15933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15934if test `eval echo '${'$as_ac_Header'}'` = yes; then
15935 cat >>confdefs.h <<EOF
15936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15937EOF
15938
15939fi
15940done
15941
15942for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15943do
15944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15945echo "$as_me:15945: checking for $ac_header" >&5
15946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15947if eval "test \"\${$as_ac_Header+set}\" = set"; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949else
15950 cat >conftest.$ac_ext <<_ACEOF
15951#line 15951 "configure"
15952#include "confdefs.h"
15953#include <$ac_header>
15954_ACEOF
15955if { (eval echo "$as_me:15955: \"$ac_cpp conftest.$ac_ext\"") >&5
15956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15957 ac_status=$?
15958 egrep -v '^ *\+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev/null; then
15963 if test -s conftest.err; then
15964 ac_cpp_err=$ac_c_preproc_warn_flag
15965 else
15966 ac_cpp_err=
15967 fi
15968else
15969 ac_cpp_err=yes
15970fi
15971if test -z "$ac_cpp_err"; then
15972 eval "$as_ac_Header=yes"
15973else
15974 echo "$as_me: failed program was:" >&5
15975 cat conftest.$ac_ext >&5
15976 eval "$as_ac_Header=no"
15977fi
15978rm -f conftest.err conftest.$ac_ext
15979fi
15980echo "$as_me:15980: result: `eval echo '${'$as_ac_Header'}'`" >&5
15981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15982if test `eval echo '${'$as_ac_Header'}'` = yes; then
15983 cat >>confdefs.h <<EOF
15984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15985EOF
15986
15987fi
15988done
15989
15990for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15991do
15992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15993echo "$as_me:15993: checking for $ac_header" >&5
15994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15995if eval "test \"\${$as_ac_Header+set}\" = set"; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15997else
15998 cat >conftest.$ac_ext <<_ACEOF
15999#line 15999 "configure"
16000#include "confdefs.h"
16001#include <$ac_header>
16002_ACEOF
16003if { (eval echo "$as_me:16003: \"$ac_cpp conftest.$ac_ext\"") >&5
16004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16005 ac_status=$?
16006 egrep -v '^ *\+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:16009: \$? = $ac_status" >&5
16010 (exit $ac_status); } >/dev/null; then
16011 if test -s conftest.err; then
16012 ac_cpp_err=$ac_c_preproc_warn_flag
16013 else
16014 ac_cpp_err=
16015 fi
16016else
16017 ac_cpp_err=yes
16018fi
16019if test -z "$ac_cpp_err"; then
16020 eval "$as_ac_Header=yes"
16021else
16022 echo "$as_me: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 eval "$as_ac_Header=no"
16025fi
16026rm -f conftest.err conftest.$ac_ext
16027fi
16028echo "$as_me:16028: result: `eval echo '${'$as_ac_Header'}'`" >&5
16029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031 cat >>confdefs.h <<EOF
16032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033EOF
16034
16035fi
16036done
16037
16038 LIBS="$LIBS $K5LIBS"
16039 echo "$as_me:16039: checking for library containing k_hasafs" >&5
16040echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
16041if test "${ac_cv_search_k_hasafs+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16043else
16044 ac_func_search_save_LIBS=$LIBS
16045ac_cv_search_k_hasafs=no
16046cat >conftest.$ac_ext <<_ACEOF
16047#line 16047 "configure"
16048#include "confdefs.h"
16049
16050/* Override any gcc2 internal prototype to avoid an error. */
16051#ifdef __cplusplus
16052extern "C"
16053#endif
16054/* We use char because int might match the return type of a gcc2
16055 builtin and then its argument prototype would still apply. */
16056char k_hasafs ();
16057int
16058main ()
16059{
16060k_hasafs ();
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext conftest$ac_exeext
16066if { (eval echo "$as_me:16066: \"$ac_link\"") >&5
16067 (eval $ac_link) 2>&5
16068 ac_status=$?
16069 echo "$as_me:16069: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -s conftest$ac_exeext'
16072 { (eval echo "$as_me:16072: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:16075: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 ac_cv_search_k_hasafs="none required"
16078else
16079 echo "$as_me: failed program was:" >&5
16080cat conftest.$ac_ext >&5
16081fi
16082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16083if test "$ac_cv_search_k_hasafs" = no; then
16084 for ac_lib in kafs; do
16085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16087#line 16087 "configure"
16088#include "confdefs.h"
16089
16090/* Override any gcc2 internal prototype to avoid an error. */
16091#ifdef __cplusplus
16092extern "C"
16093#endif
16094/* We use char because int might match the return type of a gcc2
16095 builtin and then its argument prototype would still apply. */
16096char k_hasafs ();
16097int
16098main ()
16099{
16100k_hasafs ();
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext conftest$ac_exeext
16106if { (eval echo "$as_me:16106: \"$ac_link\"") >&5
16107 (eval $ac_link) 2>&5
16108 ac_status=$?
16109 echo "$as_me:16109: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -s conftest$ac_exeext'
16112 { (eval echo "$as_me:16112: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:16115: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 ac_cv_search_k_hasafs="-l$ac_lib"
16118break
16119else
16120 echo "$as_me: failed program was:" >&5
16121cat conftest.$ac_ext >&5
16122fi
16123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16124 done
16125fi
16126LIBS=$ac_func_search_save_LIBS
16127fi
16128echo "$as_me:16128: result: $ac_cv_search_k_hasafs" >&5
16129echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
16130if test "$ac_cv_search_k_hasafs" != no; then
16131 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
16132 cat >>confdefs.h <<\EOF
16133#define USE_AFS 1
16134EOF
16135
16136fi
16137
16138 echo "$as_me:16138: checking for library containing krb5_init_ets" >&5
16139echo $ECHO_N "checking for library containing krb5_init_ets... $ECHO_C" >&6
16140if test "${ac_cv_search_krb5_init_ets+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142else
16143 ac_func_search_save_LIBS=$LIBS
16144ac_cv_search_krb5_init_ets=no
16145cat >conftest.$ac_ext <<_ACEOF
16146#line 16146 "configure"
16147#include "confdefs.h"
16148
16149/* Override any gcc2 internal prototype to avoid an error. */
16150#ifdef __cplusplus
16151extern "C"
16152#endif
16153/* We use char because int might match the return type of a gcc2
16154 builtin and then its argument prototype would still apply. */
16155char krb5_init_ets ();
16156int
16157main ()
16158{
16159krb5_init_ets ();
16160 ;
16161 return 0;
16162}
16163_ACEOF
16164rm -f conftest.$ac_objext conftest$ac_exeext
16165if { (eval echo "$as_me:16165: \"$ac_link\"") >&5
16166 (eval $ac_link) 2>&5
16167 ac_status=$?
16168 echo "$as_me:16168: \$? = $ac_status" >&5
16169 (exit $ac_status); } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:16171: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16173 ac_status=$?
16174 echo "$as_me:16174: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_cv_search_krb5_init_ets="none required"
16177else
16178 echo "$as_me: failed program was:" >&5
16179cat conftest.$ac_ext >&5
16180fi
16181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16182if test "$ac_cv_search_krb5_init_ets" = no; then
16183 for ac_lib in $K5LIBS; do
16184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16185 cat >conftest.$ac_ext <<_ACEOF
16186#line 16186 "configure"
16187#include "confdefs.h"
16188
16189/* Override any gcc2 internal prototype to avoid an error. */
16190#ifdef __cplusplus
16191extern "C"
16192#endif
16193/* We use char because int might match the return type of a gcc2
16194 builtin and then its argument prototype would still apply. */
16195char krb5_init_ets ();
16196int
16197main ()
16198{
16199krb5_init_ets ();
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204rm -f conftest.$ac_objext conftest$ac_exeext
16205if { (eval echo "$as_me:16205: \"$ac_link\"") >&5
16206 (eval $ac_link) 2>&5
16207 ac_status=$?
16208 echo "$as_me:16208: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:16211: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:16214: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_search_krb5_init_ets="-l$ac_lib"
16217break
16218else
16219 echo "$as_me: failed program was:" >&5
16220cat conftest.$ac_ext >&5
16221fi
16222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16223 done
16224fi
16225LIBS=$ac_func_search_save_LIBS
16226fi
16227echo "$as_me:16227: result: $ac_cv_search_krb5_init_ets" >&5
16228echo "${ECHO_T}$ac_cv_search_krb5_init_ets" >&6
16229if test "$ac_cv_search_krb5_init_ets" != no; then
16230 test "$ac_cv_search_krb5_init_ets" = "none required" || LIBS="$ac_cv_search_krb5_init_ets $LIBS"
16231 cat >>confdefs.h <<\EOF
16232#define KRB5_INIT_ETS 1
16233EOF
16234
16235fi
16236
16237fi;
16238
16239# Looking for programs, paths and files
16240
16241PRIVSEP_PATH=/var/empty
16242
16243# Check whether --with-privsep-path or --without-privsep-path was given.
16244if test "${with_privsep_path+set}" = set; then
16245 withval="$with_privsep_path"
16246
16247 if test "x$withval" != "$no" ; then
16248 PRIVSEP_PATH=$withval
16249 fi
16250
16251fi;
16252
16253# Check whether --with-xauth or --without-xauth was given.
16254if test "${with_xauth+set}" = set; then
16255 withval="$with_xauth"
16256
16257 if test "x$withval" != "xno" ; then
16258 xauth_path=$withval
16259 fi
16260
16261else
16262
16263 TestPath="$PATH"
16264 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
16265 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
16266 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
16267 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
16268 # Extract the first word of "xauth", so it can be a program name with args.
16269set dummy xauth; ac_word=$2
16270echo "$as_me:16270: checking for $ac_word" >&5
16271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16272if test "${ac_cv_path_xauth_path+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274else
16275 case $xauth_path in
16276 [\\/]* | ?:[\\/]*)
16277 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
16278 ;;
16279 *)
16280 ac_save_IFS=$IFS; IFS=$ac_path_separator
16281ac_dummy="$TestPath"
16282for ac_dir in $ac_dummy; do
16283 IFS=$ac_save_IFS
16284 test -z "$ac_dir" && ac_dir=.
16285 if $as_executable_p "$ac_dir/$ac_word"; then
16286 ac_cv_path_xauth_path="$ac_dir/$ac_word"
16287 echo "$as_me:16287: found $ac_dir/$ac_word" >&5
16288 break
16289fi
16290done
16291
16292 ;;
16293esac
16294fi
16295xauth_path=$ac_cv_path_xauth_path
16296
16297if test -n "$xauth_path"; then
16298 echo "$as_me:16298: result: $xauth_path" >&5
16299echo "${ECHO_T}$xauth_path" >&6
16300else
16301 echo "$as_me:16301: result: no" >&5
16302echo "${ECHO_T}no" >&6
16303fi
16304
16305 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
16306 xauth_path="/usr/openwin/bin/xauth"
16307 fi
16308
16309fi;
16310
16311STRIP_OPT=-s
16312# Check whether --enable-strip or --disable-strip was given.
16313if test "${enable_strip+set}" = set; then
16314 enableval="$enable_strip"
16315
16316 if test "x$enableval" = "xno" ; then
16317 STRIP_OPT=
16318 fi
16319
16320fi;
16321
16322if test -z "$xauth_path" ; then
16323 XAUTH_PATH="undefined"
16324
16325else
16326 cat >>confdefs.h <<EOF
16327#define XAUTH_PATH "$xauth_path"
16328EOF
16329
16330 XAUTH_PATH=$xauth_path
16331
16332fi
16333
16334# Check for mail directory (last resort if we cannot get it from headers)
16335if test ! -z "$MAIL" ; then
16336 maildir=`dirname $MAIL`
16337 cat >>confdefs.h <<EOF
16338#define MAIL_DIRECTORY "$maildir"
16339EOF
16340
16341fi
16342
16343if test -z "$no_dev_ptmx" ; then
16344 if test "x$disable_ptmx_check" != "xyes" ; then
16345 echo "$as_me:16345: checking for \"/dev/ptmx\"" >&5
16346echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
16347if test "${ac_cv_file___dev_ptmx_+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349else
16350 test "$cross_compiling" = yes &&
16351 { { echo "$as_me:16351: error: cannot check for file existence when cross compiling" >&5
16352echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16353 { (exit 1); exit 1; }; }
16354if test -r ""/dev/ptmx""; then
16355 ac_cv_file___dev_ptmx_=yes
16356else
16357 ac_cv_file___dev_ptmx_=no
16358fi
16359fi
16360echo "$as_me:16360: result: $ac_cv_file___dev_ptmx_" >&5
16361echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
16362if test $ac_cv_file___dev_ptmx_ = yes; then
16363
16364 cat >>confdefs.h <<EOF
16365#define HAVE_DEV_PTMX 1
16366EOF
16367
16368 have_dev_ptmx=1
16369
16370fi
16371
16372 fi
16373fi
16374echo "$as_me:16374: checking for \"/dev/ptc\"" >&5
16375echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
16376if test "${ac_cv_file___dev_ptc_+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378else
16379 test "$cross_compiling" = yes &&
16380 { { echo "$as_me:16380: error: cannot check for file existence when cross compiling" >&5
16381echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16382 { (exit 1); exit 1; }; }
16383if test -r ""/dev/ptc""; then
16384 ac_cv_file___dev_ptc_=yes
16385else
16386 ac_cv_file___dev_ptc_=no
16387fi
16388fi
16389echo "$as_me:16389: result: $ac_cv_file___dev_ptc_" >&5
16390echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
16391if test $ac_cv_file___dev_ptc_ = yes; then
16392
16393 cat >>confdefs.h <<EOF
16394#define HAVE_DEV_PTS_AND_PTC 1
16395EOF
16396
16397 have_dev_ptc=1
16398
16399fi
16400
16401# Options from here on. Some of these are preset by platform above
16402
16403# Check whether --with-mantype or --without-mantype was given.
16404if test "${with_mantype+set}" = set; then
16405 withval="$with_mantype"
16406
16407 case "$withval" in
16408 man|cat|doc)
16409 MANTYPE=$withval
16410 ;;
16411 *)
16412 { { echo "$as_me:16412: error: invalid man type: $withval" >&5
16413echo "$as_me: error: invalid man type: $withval" >&2;}
16414 { (exit 1); exit 1; }; }
16415 ;;
16416 esac
16417
16418fi;
16419if test -z "$MANTYPE"; then
16420 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
16421 for ac_prog in nroff awf
16422do
16423 # Extract the first word of "$ac_prog", so it can be a program name with args.
16424set dummy $ac_prog; ac_word=$2
16425echo "$as_me:16425: checking for $ac_word" >&5
16426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16427if test "${ac_cv_path_NROFF+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429else
16430 case $NROFF in
16431 [\\/]* | ?:[\\/]*)
16432 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
16433 ;;
16434 *)
16435 ac_save_IFS=$IFS; IFS=$ac_path_separator
16436ac_dummy="$TestPath"
16437for ac_dir in $ac_dummy; do
16438 IFS=$ac_save_IFS
16439 test -z "$ac_dir" && ac_dir=.
16440 if $as_executable_p "$ac_dir/$ac_word"; then
16441 ac_cv_path_NROFF="$ac_dir/$ac_word"
16442 echo "$as_me:16442: found $ac_dir/$ac_word" >&5
16443 break
16444fi
16445done
16446
16447 ;;
16448esac
16449fi
16450NROFF=$ac_cv_path_NROFF
16451
16452if test -n "$NROFF"; then
16453 echo "$as_me:16453: result: $NROFF" >&5
16454echo "${ECHO_T}$NROFF" >&6
16455else
16456 echo "$as_me:16456: result: no" >&5
16457echo "${ECHO_T}no" >&6
16458fi
16459
16460 test -n "$NROFF" && break
16461done
16462test -n "$NROFF" || NROFF="/bin/false"
16463
16464 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
16465 MANTYPE=doc
16466 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
16467 MANTYPE=man
16468 else
16469 MANTYPE=cat
16470 fi
16471fi
16472
16473if test "$MANTYPE" = "doc"; then
16474 mansubdir=man;
16475else
16476 mansubdir=$MANTYPE;
16477fi
16478
16479# Check whether to enable MD5 passwords
16480MD5_MSG="no"
16481
16482# Check whether --with-md5-passwords or --without-md5-passwords was given.
16483if test "${with_md5_passwords+set}" = set; then
16484 withval="$with_md5_passwords"
16485
16486 if test "x$withval" != "xno" ; then
16487 cat >>confdefs.h <<\EOF
16488#define HAVE_MD5_PASSWORDS 1
16489EOF
16490
16491 MD5_MSG="yes"
16492 fi
16493
16494fi;
16495
16496# Whether to disable shadow password support
16497
16498# Check whether --with-shadow or --without-shadow was given.
16499if test "${with_shadow+set}" = set; then
16500 withval="$with_shadow"
16501
16502 if test "x$withval" = "xno" ; then
16503 cat >>confdefs.h <<\EOF
16504#define DISABLE_SHADOW 1
16505EOF
16506
16507 disable_shadow=yes
16508 fi
16509
16510fi;
16511
16512if test -z "$disable_shadow" ; then
16513 echo "$as_me:16513: checking if the systems has expire shadow information" >&5
16514echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16516#line 16516 "configure"
16517#include "confdefs.h"
16518
16519#include <sys/types.h>
16520#include <shadow.h>
16521 struct spwd sp;
16522
16523int
16524main ()
16525{
16526 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:16532: \"$ac_compile\"") >&5
16533 (eval $ac_compile) 2>&5
16534 ac_status=$?
16535 echo "$as_me:16535: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -s conftest.$ac_objext'
16538 { (eval echo "$as_me:16538: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:16541: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 sp_expire_available=yes
16544else
16545 echo "$as_me: failed program was:" >&5
16546cat conftest.$ac_ext >&5
16547
16548fi
16549rm -f conftest.$ac_objext conftest.$ac_ext
16550
16551 if test "x$sp_expire_available" = "xyes" ; then
16552 echo "$as_me:16552: result: yes" >&5
16553echo "${ECHO_T}yes" >&6
16554 cat >>confdefs.h <<\EOF
16555#define HAS_SHADOW_EXPIRE 1
16556EOF
16557
16558 else
16559 echo "$as_me:16559: result: no" >&5
16560echo "${ECHO_T}no" >&6
16561 fi
16562fi
16563
16564# Use ip address instead of hostname in $DISPLAY
16565if test ! -z "$IPADDR_IN_DISPLAY" ; then
16566 DISPLAY_HACK_MSG="yes"
16567 cat >>confdefs.h <<\EOF
16568#define IPADDR_IN_DISPLAY 1
16569EOF
16570
16571else
16572 DISPLAY_HACK_MSG="no"
16573
16574# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16575if test "${with_ipaddr_display+set}" = set; then
16576 withval="$with_ipaddr_display"
16577
16578 if test "x$withval" != "xno" ; then
16579 cat >>confdefs.h <<\EOF
16580#define IPADDR_IN_DISPLAY 1
16581EOF
16582
16583 DISPLAY_HACK_MSG="yes"
16584 fi
16585
16586fi;
16587fi
16588
16589# check for /etc/default/login and use it if present.
16590# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
16591if test "${enable_etc_default_login+set}" = set; then
16592 enableval="$enable_etc_default_login"
16593
16594else
16595
16596echo "$as_me:16596: checking for \"/etc/default/login\"" >&5
16597echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
16598if test "${ac_cv_file___etc_default_login_+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601 test "$cross_compiling" = yes &&
16602 { { echo "$as_me:16602: error: cannot check for file existence when cross compiling" >&5
16603echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16604 { (exit 1); exit 1; }; }
16605if test -r ""/etc/default/login""; then
16606 ac_cv_file___etc_default_login_=yes
16607else
16608 ac_cv_file___etc_default_login_=no
16609fi
16610fi
16611echo "$as_me:16611: result: $ac_cv_file___etc_default_login_" >&5
16612echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
16613if test $ac_cv_file___etc_default_login_ = yes; then
16614 external_path_file=/etc/default/login
16615fi
16616
16617if test "x$external_path_file" = "x/etc/default/login"; then
16618 cat >>confdefs.h <<\EOF
16619#define HAVE_ETC_DEFAULT_LOGIN 1
16620EOF
16621
16622fi
16623
16624fi;
16625
16626if test $ac_cv_func_login_getcapbool = "yes" -a \
16627 $ac_cv_header_login_cap_h = "yes" ; then
16628 external_path_file=/etc/login.conf
16629fi
16630
16631# Whether to mess with the default path
16632SERVER_PATH_MSG="(default)"
16633
16634# Check whether --with-default-path or --without-default-path was given.
16635if test "${with_default_path+set}" = set; then
16636 withval="$with_default_path"
16637
16638 if test "x$external_path_file" = "x/etc/login.conf" ; then
16639 { echo "$as_me:16639: WARNING:
16640--with-default-path=PATH has no effect on this system.
16641Edit /etc/login.conf instead." >&5
16642echo "$as_me: WARNING:
16643--with-default-path=PATH has no effect on this system.
16644Edit /etc/login.conf instead." >&2;}
16645 elif test "x$withval" != "xno" ; then
16646 if test ! -z "$external_path_file" ; then
16647 { echo "$as_me:16647: WARNING:
16648--with-default-path=PATH will only be used if PATH is not defined in
16649$external_path_file ." >&5
16650echo "$as_me: WARNING:
16651--with-default-path=PATH will only be used if PATH is not defined in
16652$external_path_file ." >&2;}
16653 fi
16654 user_path="$withval"
16655 SERVER_PATH_MSG="$withval"
16656 fi
16657
16658else
16659 if test "x$external_path_file" = "x/etc/login.conf" ; then
16660 { echo "$as_me:16660: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16661echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16662 else
16663 if test ! -z "$external_path_file" ; then
16664 { echo "$as_me:16664: WARNING:
16665If PATH is defined in $external_path_file, ensure the path to scp is included,
16666otherwise scp will not work." >&5
16667echo "$as_me: WARNING:
16668If PATH is defined in $external_path_file, ensure the path to scp is included,
16669otherwise scp will not work." >&2;}
16670 fi
16671 if test "$cross_compiling" = yes; then
16672 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16673
16674else
16675 cat >conftest.$ac_ext <<_ACEOF
16676#line 16676 "configure"
16677#include "confdefs.h"
16678
16679/* find out what STDPATH is */
16680#include <stdio.h>
16681#ifdef HAVE_PATHS_H
16682# include <paths.h>
16683#endif
16684#ifndef _PATH_STDPATH
16685# ifdef _PATH_USERPATH /* Irix */
16686# define _PATH_STDPATH _PATH_USERPATH
16687# else
16688# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16689# endif
16690#endif
16691#include <sys/types.h>
16692#include <sys/stat.h>
16693#include <fcntl.h>
16694#define DATA "conftest.stdpath"
16695
16696main()
16697{
16698 FILE *fd;
16699 int rc;
16700
16701 fd = fopen(DATA,"w");
16702 if(fd == NULL)
16703 exit(1);
16704
16705 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16706 exit(1);
16707
16708 exit(0);
16709}
16710
16711_ACEOF
16712rm -f conftest$ac_exeext
16713if { (eval echo "$as_me:16713: \"$ac_link\"") >&5
16714 (eval $ac_link) 2>&5
16715 ac_status=$?
16716 echo "$as_me:16716: \$? = $ac_status" >&5
16717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16718 { (eval echo "$as_me:16718: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:16721: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 user_path=`cat conftest.stdpath`
16724else
16725 echo "$as_me: program exited with status $ac_status" >&5
16726echo "$as_me: failed program was:" >&5
16727cat conftest.$ac_ext >&5
16728 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16729fi
16730rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16731fi
16732# make sure $bindir is in USER_PATH so scp will work
16733 t_bindir=`eval echo ${bindir}`
16734 case $t_bindir in
16735 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16736 esac
16737 case $t_bindir in
16738 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16739 esac
16740 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16741 if test $? -ne 0 ; then
16742 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16743 if test $? -ne 0 ; then
16744 user_path=$user_path:$t_bindir
16745 echo "$as_me:16745: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16746echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16747 fi
16748 fi
16749 fi
16750
16751fi;
16752if test "x$external_path_file" != "x/etc/login.conf" ; then
16753 cat >>confdefs.h <<EOF
16754#define USER_PATH "$user_path"
16755EOF
16756
16757fi
16758
16759# Set superuser path separately to user path
16760
16761# Check whether --with-superuser-path or --without-superuser-path was given.
16762if test "${with_superuser_path+set}" = set; then
16763 withval="$with_superuser_path"
16764
16765 if test "x$withval" != "xno" ; then
16766 cat >>confdefs.h <<EOF
16767#define SUPERUSER_PATH "$withval"
16768EOF
16769
16770 superuser_path=$withval
16771 fi
16772
16773fi;
16774
16775echo "$as_me:16775: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16776echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16777IPV4_IN6_HACK_MSG="no"
16778
16779# Check whether --with-4in6 or --without-4in6 was given.
16780if test "${with_4in6+set}" = set; then
16781 withval="$with_4in6"
16782
16783 if test "x$withval" != "xno" ; then
16784 echo "$as_me:16784: result: yes" >&5
16785echo "${ECHO_T}yes" >&6
16786 cat >>confdefs.h <<\EOF
16787#define IPV4_IN_IPV6 1
16788EOF
16789
16790 IPV4_IN6_HACK_MSG="yes"
16791 else
16792 echo "$as_me:16792: result: no" >&5
16793echo "${ECHO_T}no" >&6
16794 fi
16795
16796else
16797
16798 if test "x$inet6_default_4in6" = "xyes"; then
16799 echo "$as_me:16799: result: yes (default)" >&5
16800echo "${ECHO_T}yes (default)" >&6
16801 cat >>confdefs.h <<\EOF
16802#define IPV4_IN_IPV6 1
16803EOF
16804
16805 IPV4_IN6_HACK_MSG="yes"
16806 else
16807 echo "$as_me:16807: result: no (default)" >&5
16808echo "${ECHO_T}no (default)" >&6
16809 fi
16810
16811fi;
16812
16813# Whether to enable BSD auth support
16814BSD_AUTH_MSG=no
16815
16816# Check whether --with-bsd-auth or --without-bsd-auth was given.
16817if test "${with_bsd_auth+set}" = set; then
16818 withval="$with_bsd_auth"
16819
16820 if test "x$withval" != "xno" ; then
16821 cat >>confdefs.h <<\EOF
16822#define BSD_AUTH 1
16823EOF
16824
16825 BSD_AUTH_MSG=yes
16826 fi
16827
16828fi;
16829
16830# Where to place sshd.pid
16831piddir=/var/run
16832# make sure the directory exists
16833if test ! -d $piddir ; then
16834 piddir=`eval echo ${sysconfdir}`
16835 case $piddir in
16836 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16837 esac
16838fi
16839
16840# Check whether --with-pid-dir or --without-pid-dir was given.
16841if test "${with_pid_dir+set}" = set; then
16842 withval="$with_pid_dir"
16843
16844 if test "x$withval" != "xno" ; then
16845 piddir=$withval
16846 if test ! -d $piddir ; then
16847 { echo "$as_me:16847: WARNING: ** no $piddir directory on this system **" >&5
16848echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16849 fi
16850 fi
16851
16852fi;
16853
16854cat >>confdefs.h <<EOF
16855#define _PATH_SSH_PIDDIR "$piddir"
16856EOF
16857
16858# Check whether --enable-lastlog or --disable-lastlog was given.
16859if test "${enable_lastlog+set}" = set; then
16860 enableval="$enable_lastlog"
16861
16862 if test "x$enableval" = "xno" ; then
16863 cat >>confdefs.h <<\EOF
16864#define DISABLE_LASTLOG 1
16865EOF
16866
16867 fi
16868
16869fi;
16870# Check whether --enable-utmp or --disable-utmp was given.
16871if test "${enable_utmp+set}" = set; then
16872 enableval="$enable_utmp"
16873
16874 if test "x$enableval" = "xno" ; then
16875 cat >>confdefs.h <<\EOF
16876#define DISABLE_UTMP 1
16877EOF
16878
16879 fi
16880
16881fi;
16882# Check whether --enable-utmpx or --disable-utmpx was given.
16883if test "${enable_utmpx+set}" = set; then
16884 enableval="$enable_utmpx"
16885
16886 if test "x$enableval" = "xno" ; then
16887 cat >>confdefs.h <<\EOF
16888#define DISABLE_UTMPX 1
16889EOF
16890
16891 fi
16892
16893fi;
16894# Check whether --enable-wtmp or --disable-wtmp was given.
16895if test "${enable_wtmp+set}" = set; then
16896 enableval="$enable_wtmp"
16897
16898 if test "x$enableval" = "xno" ; then
16899 cat >>confdefs.h <<\EOF
16900#define DISABLE_WTMP 1
16901EOF
16902
16903 fi
16904
16905fi;
16906# Check whether --enable-wtmpx or --disable-wtmpx was given.
16907if test "${enable_wtmpx+set}" = set; then
16908 enableval="$enable_wtmpx"
16909
16910 if test "x$enableval" = "xno" ; then
16911 cat >>confdefs.h <<\EOF
16912#define DISABLE_WTMPX 1
16913EOF
16914
16915 fi
16916
16917fi;
16918# Check whether --enable-libutil or --disable-libutil was given.
16919if test "${enable_libutil+set}" = set; then
16920 enableval="$enable_libutil"
16921
16922 if test "x$enableval" = "xno" ; then
16923 cat >>confdefs.h <<\EOF
16924#define DISABLE_LOGIN 1
16925EOF
16926
16927 fi
16928
16929fi;
16930# Check whether --enable-pututline or --disable-pututline was given.
16931if test "${enable_pututline+set}" = set; then
16932 enableval="$enable_pututline"
16933
16934 if test "x$enableval" = "xno" ; then
16935 cat >>confdefs.h <<\EOF
16936#define DISABLE_PUTUTLINE 1
16937EOF
16938
16939 fi
16940
16941fi;
16942# Check whether --enable-pututxline or --disable-pututxline was given.
16943if test "${enable_pututxline+set}" = set; then
16944 enableval="$enable_pututxline"
16945
16946 if test "x$enableval" = "xno" ; then
16947 cat >>confdefs.h <<\EOF
16948#define DISABLE_PUTUTXLINE 1
16949EOF
16950
16951 fi
16952
16953fi;
16954
16955# Check whether --with-lastlog or --without-lastlog was given.
16956if test "${with_lastlog+set}" = set; then
16957 withval="$with_lastlog"
16958
16959 if test "x$withval" = "xno" ; then
16960 cat >>confdefs.h <<\EOF
16961#define DISABLE_LASTLOG 1
16962EOF
16963
16964 else
16965 conf_lastlog_location=$withval
16966 fi
16967
16968fi;
16969
16970echo "$as_me:16970: checking if your system defines LASTLOG_FILE" >&5
16971echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16972cat >conftest.$ac_ext <<_ACEOF
16973#line 16973 "configure"
16974#include "confdefs.h"
16975
16976#include <sys/types.h>
16977#include <utmp.h>
16978#ifdef HAVE_LASTLOG_H
16979# include <lastlog.h>
16980#endif
16981#ifdef HAVE_PATHS_H
16982# include <paths.h>
16983#endif
16984#ifdef HAVE_LOGIN_H
16985# include <login.h>
16986#endif
16987
16988int
16989main ()
16990{
16991 char *lastlog = LASTLOG_FILE;
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:16997: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>&5
16999 ac_status=$?
17000 echo "$as_me:17000: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -s conftest.$ac_objext'
17003 { (eval echo "$as_me:17003: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:17006: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 echo "$as_me:17008: result: yes" >&5
17009echo "${ECHO_T}yes" >&6
17010else
17011 echo "$as_me: failed program was:" >&5
17012cat conftest.$ac_ext >&5
17013
17014 echo "$as_me:17014: result: no" >&5
17015echo "${ECHO_T}no" >&6
17016 echo "$as_me:17016: checking if your system defines _PATH_LASTLOG" >&5
17017echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17019#line 17019 "configure"
17020#include "confdefs.h"
17021
17022#include <sys/types.h>
17023#include <utmp.h>
17024#ifdef HAVE_LASTLOG_H
17025# include <lastlog.h>
17026#endif
17027#ifdef HAVE_PATHS_H
17028# include <paths.h>
17029#endif
17030
17031int
17032main ()
17033{
17034 char *lastlog = _PATH_LASTLOG;
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext
17040if { (eval echo "$as_me:17040: \"$ac_compile\"") >&5
17041 (eval $ac_compile) 2>&5
17042 ac_status=$?
17043 echo "$as_me:17043: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -s conftest.$ac_objext'
17046 { (eval echo "$as_me:17046: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 echo "$as_me:17051: result: yes" >&5
17052echo "${ECHO_T}yes" >&6
17053else
17054 echo "$as_me: failed program was:" >&5
17055cat conftest.$ac_ext >&5
17056
17057 echo "$as_me:17057: result: no" >&5
17058echo "${ECHO_T}no" >&6
17059 system_lastlog_path=no
17060
17061fi
17062rm -f conftest.$ac_objext conftest.$ac_ext
17063
17064fi
17065rm -f conftest.$ac_objext conftest.$ac_ext
17066
17067if test -z "$conf_lastlog_location"; then
17068 if test x"$system_lastlog_path" = x"no" ; then
17069 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
17070 if (test -d "$f" || test -f "$f") ; then
17071 conf_lastlog_location=$f
17072 fi
17073 done
17074 if test -z "$conf_lastlog_location"; then
17075 { echo "$as_me:17075: WARNING: ** Cannot find lastlog **" >&5
17076echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
17077 fi
17078 fi
17079fi
17080
17081if test -n "$conf_lastlog_location"; then
17082 cat >>confdefs.h <<EOF
17083#define CONF_LASTLOG_FILE "$conf_lastlog_location"
17084EOF
17085
17086fi
17087
17088echo "$as_me:17088: checking if your system defines UTMP_FILE" >&5
17089echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
17090cat >conftest.$ac_ext <<_ACEOF
17091#line 17091 "configure"
17092#include "confdefs.h"
17093
17094#include <sys/types.h>
17095#include <utmp.h>
17096#ifdef HAVE_PATHS_H
17097# include <paths.h>
17098#endif
17099
17100int
17101main ()
17102{
17103 char *utmp = UTMP_FILE;
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (eval echo "$as_me:17109: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>&5
17111 ac_status=$?
17112 echo "$as_me:17112: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (eval echo "$as_me:17115: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:17118: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 echo "$as_me:17120: result: yes" >&5
17121echo "${ECHO_T}yes" >&6
17122else
17123 echo "$as_me: failed program was:" >&5
17124cat conftest.$ac_ext >&5
17125 echo "$as_me:17125: result: no" >&5
17126echo "${ECHO_T}no" >&6
17127 system_utmp_path=no
17128
17129fi
17130rm -f conftest.$ac_objext conftest.$ac_ext
17131if test -z "$conf_utmp_location"; then
17132 if test x"$system_utmp_path" = x"no" ; then
17133 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
17134 if test -f $f ; then
17135 conf_utmp_location=$f
17136 fi
17137 done
17138 if test -z "$conf_utmp_location"; then
17139 cat >>confdefs.h <<\EOF
17140#define DISABLE_UTMP 1
17141EOF
17142
17143 fi
17144 fi
17145fi
17146if test -n "$conf_utmp_location"; then
17147 cat >>confdefs.h <<EOF
17148#define CONF_UTMP_FILE "$conf_utmp_location"
17149EOF
17150
17151fi
17152
17153echo "$as_me:17153: checking if your system defines WTMP_FILE" >&5
17154echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
17155cat >conftest.$ac_ext <<_ACEOF
17156#line 17156 "configure"
17157#include "confdefs.h"
17158
17159#include <sys/types.h>
17160#include <utmp.h>
17161#ifdef HAVE_PATHS_H
17162# include <paths.h>
17163#endif
17164
17165int
17166main ()
17167{
17168 char *wtmp = WTMP_FILE;
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext
17174if { (eval echo "$as_me:17174: \"$ac_compile\"") >&5
17175 (eval $ac_compile) 2>&5
17176 ac_status=$?
17177 echo "$as_me:17177: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:17180: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:17183: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 echo "$as_me:17185: result: yes" >&5
17186echo "${ECHO_T}yes" >&6
17187else
17188 echo "$as_me: failed program was:" >&5
17189cat conftest.$ac_ext >&5
17190 echo "$as_me:17190: result: no" >&5
17191echo "${ECHO_T}no" >&6
17192 system_wtmp_path=no
17193
17194fi
17195rm -f conftest.$ac_objext conftest.$ac_ext
17196if test -z "$conf_wtmp_location"; then
17197 if test x"$system_wtmp_path" = x"no" ; then
17198 for f in /usr/adm/wtmp /var/log/wtmp; do
17199 if test -f $f ; then
17200 conf_wtmp_location=$f
17201 fi
17202 done
17203 if test -z "$conf_wtmp_location"; then
17204 cat >>confdefs.h <<\EOF
17205#define DISABLE_WTMP 1
17206EOF
17207
17208 fi
17209 fi
17210fi
17211if test -n "$conf_wtmp_location"; then
17212 cat >>confdefs.h <<EOF
17213#define CONF_WTMP_FILE "$conf_wtmp_location"
17214EOF
17215
17216fi
17217
17218echo "$as_me:17218: checking if your system defines UTMPX_FILE" >&5
17219echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
17220cat >conftest.$ac_ext <<_ACEOF
17221#line 17221 "configure"
17222#include "confdefs.h"
17223
17224#include <sys/types.h>
17225#include <utmp.h>
17226#ifdef HAVE_UTMPX_H
17227#include <utmpx.h>
17228#endif
17229#ifdef HAVE_PATHS_H
17230# include <paths.h>
17231#endif
17232
17233int
17234main ()
17235{
17236 char *utmpx = UTMPX_FILE;
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:17242: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>&5
17244 ac_status=$?
17245 echo "$as_me:17245: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:17248: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:17251: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 echo "$as_me:17253: result: yes" >&5
17254echo "${ECHO_T}yes" >&6
17255else
17256 echo "$as_me: failed program was:" >&5
17257cat conftest.$ac_ext >&5
17258 echo "$as_me:17258: result: no" >&5
17259echo "${ECHO_T}no" >&6
17260 system_utmpx_path=no
17261
17262fi
17263rm -f conftest.$ac_objext conftest.$ac_ext
17264if test -z "$conf_utmpx_location"; then
17265 if test x"$system_utmpx_path" = x"no" ; then
17266 cat >>confdefs.h <<\EOF
17267#define DISABLE_UTMPX 1
17268EOF
17269
17270 fi
17271else
17272 cat >>confdefs.h <<EOF
17273#define CONF_UTMPX_FILE "$conf_utmpx_location"
17274EOF
17275
17276fi
17277
17278echo "$as_me:17278: checking if your system defines WTMPX_FILE" >&5
17279echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
17280cat >conftest.$ac_ext <<_ACEOF
17281#line 17281 "configure"
17282#include "confdefs.h"
17283
17284#include <sys/types.h>
17285#include <utmp.h>
17286#ifdef HAVE_UTMPX_H
17287#include <utmpx.h>
17288#endif
17289#ifdef HAVE_PATHS_H
17290# include <paths.h>
17291#endif
17292
17293int
17294main ()
17295{
17296 char *wtmpx = WTMPX_FILE;
17297 ;
17298 return 0;
17299}
17300_ACEOF
17301rm -f conftest.$ac_objext
17302if { (eval echo "$as_me:17302: \"$ac_compile\"") >&5
17303 (eval $ac_compile) 2>&5
17304 ac_status=$?
17305 echo "$as_me:17305: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -s conftest.$ac_objext'
17308 { (eval echo "$as_me:17308: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:17311: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 echo "$as_me:17313: result: yes" >&5
17314echo "${ECHO_T}yes" >&6
17315else
17316 echo "$as_me: failed program was:" >&5
17317cat conftest.$ac_ext >&5
17318 echo "$as_me:17318: result: no" >&5
17319echo "${ECHO_T}no" >&6
17320 system_wtmpx_path=no
17321
17322fi
17323rm -f conftest.$ac_objext conftest.$ac_ext
17324if test -z "$conf_wtmpx_location"; then
17325 if test x"$system_wtmpx_path" = x"no" ; then
17326 cat >>confdefs.h <<\EOF
17327#define DISABLE_WTMPX 1
17328EOF
17329
17330 fi
17331else
17332 cat >>confdefs.h <<EOF
17333#define CONF_WTMPX_FILE "$conf_wtmpx_location"
17334EOF
17335
17336fi
17337
17338if test ! -z "$blibpath" ; then
17339 LDFLAGS="$LDFLAGS $blibflags$blibpath"
17340 { echo "$as_me:17340: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
17341echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
17342fi
17343
17344if test "$PAM_MSG" = yes ; then
17345 LIBS=`echo $LIBS | sed 's/-lpam //'`
17346fi
17347if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
17348 LIBS=`echo $LIBS | sed 's/-ldl //'`
17349fi
17350
17351ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
17352
17353cat >confcache <<\_ACEOF
17354# This file is a shell script that caches the results of configure
17355# tests run on this system so they can be shared between configure
17356# scripts and configure runs, see configure's option --config-cache.
17357# It is not useful on other systems. If it contains results you don't
17358# want to keep, you may remove or edit it.
17359#
17360# config.status only pays attention to the cache file if you give it
17361# the --recheck option to rerun configure.
17362#
17363# `ac_cv_env_foo' variables (set or unset) will be overriden when
17364# loading this file, other *unset* `ac_cv_foo' will be assigned the
17365# following values.
17366
17367_ACEOF
17368
17369# The following way of writing the cache mishandles newlines in values,
17370# but we know of no workaround that is simple, portable, and efficient.
17371# So, don't put newlines in cache variables' values.
17372# Ultrix sh set writes to stderr and can't be redirected directly,
17373# and sets the high bit in the cache file unless we assign to the vars.
17374{
17375 (set) 2>&1 |
17376 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17377 *ac_space=\ *)
17378 # `set' does not quote correctly, so add quotes (double-quote
17379 # substitution turns \\\\ into \\, and sed turns \\ into \).
17380 sed -n \
17381 "s/'/'\\\\''/g;
17382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17383 ;;
17384 *)
17385 # `set' quotes correctly as required by POSIX, so do not add quotes.
17386 sed -n \
17387 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17388 ;;
17389 esac;
17390} |
17391 sed '
17392 t clear
17393 : clear
17394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17395 t end
17396 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17397 : end' >>confcache
17398if cmp -s $cache_file confcache; then :; else
17399 if test -w $cache_file; then
17400 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17401 cat confcache >$cache_file
17402 else
17403 echo "not updating unwritable cache $cache_file"
17404 fi
17405fi
17406rm -f confcache
17407
17408test "x$prefix" = xNONE && prefix=$ac_default_prefix
17409# Let make expand exec_prefix.
17410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17411
17412# VPATH may cause trouble with some makes, so we remove $(srcdir),
17413# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17414# trailing colons and then remove the whole line if VPATH becomes empty
17415# (actually we leave an empty line to preserve line numbers).
17416if test "x$srcdir" = x.; then
17417 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17418s/:*\$(srcdir):*/:/;
17419s/:*\${srcdir}:*/:/;
17420s/:*@srcdir@:*/:/;
17421s/^\([^=]*=[ ]*\):*/\1/;
17422s/:*$//;
17423s/^[^=]*=[ ]*$//;
17424}'
17425fi
17426
17427DEFS=-DHAVE_CONFIG_H
17428
17429: ${CONFIG_STATUS=./config.status}
17430ac_clean_files_save=$ac_clean_files
17431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17432{ echo "$as_me:17432: creating $CONFIG_STATUS" >&5
17433echo "$as_me: creating $CONFIG_STATUS" >&6;}
17434cat >$CONFIG_STATUS <<_ACEOF
17435#! $SHELL
17436# Generated automatically by configure.
17437# Run this file to recreate the current configuration.
17438# Compiler output produced by configure, useful for debugging
17439# configure, is in config.log if it exists.
17440
17441debug=false
17442SHELL=\${CONFIG_SHELL-$SHELL}
17443ac_cs_invocation="\$0 \$@"
17444
17445_ACEOF
17446
17447cat >>$CONFIG_STATUS <<\_ACEOF
17448# Be Bourne compatible
17449if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17450 emulate sh
17451 NULLCMD=:
17452elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17453 set -o posix
17454fi
17455
17456# Name of the executable.
17457as_me=`echo "$0" |sed 's,.*[\\/],,'`
17458
17459if expr a : '\(a\)' >/dev/null 2>&1; then
17460 as_expr=expr
17461else
17462 as_expr=false
17463fi
17464
17465rm -f conf$$ conf$$.exe conf$$.file
17466echo >conf$$.file
17467if ln -s conf$$.file conf$$ 2>/dev/null; then
17468 # We could just check for DJGPP; but this test a) works b) is more generic
17469 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17470 if test -f conf$$.exe; then
17471 # Don't use ln at all; we don't have any links
17472 as_ln_s='cp -p'
17473 else
17474 as_ln_s='ln -s'
17475 fi
17476elif ln conf$$.file conf$$ 2>/dev/null; then
17477 as_ln_s=ln
17478else
17479 as_ln_s='cp -p'
17480fi
17481rm -f conf$$ conf$$.exe conf$$.file
17482
17483as_executable_p="test -f"
17484
17485# Support unset when possible.
17486if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17487 as_unset=unset
17488else
17489 as_unset=false
17490fi
17491
17492# NLS nuisances.
17493$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17494$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17495$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17496$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17497$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17498$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17499$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17500$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17501
17502# IFS
17503# We need space, tab and new line, in precisely that order.
17504as_nl='
17505'
17506IFS=" $as_nl"
17507
17508# CDPATH.
17509$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17510
17511exec 6>&1
17512
17513_ACEOF
17514
17515# Files that config.status was made for.
17516if test -n "$ac_config_files"; then
17517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17518fi
17519
17520if test -n "$ac_config_headers"; then
17521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17522fi
17523
17524if test -n "$ac_config_links"; then
17525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17526fi
17527
17528if test -n "$ac_config_commands"; then
17529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17530fi
17531
17532cat >>$CONFIG_STATUS <<\EOF
17533
17534ac_cs_usage="\
17535\`$as_me' instantiates files from templates according to the
17536current configuration.
17537
17538Usage: $0 [OPTIONS] [FILE]...
17539
17540 -h, --help print this help, then exit
17541 -V, --version print version number, then exit
17542 -d, --debug don't remove temporary files
17543 --recheck update $as_me by reconfiguring in the same conditions
17544 --file=FILE[:TEMPLATE]
17545 instantiate the configuration file FILE
17546 --header=FILE[:TEMPLATE]
17547 instantiate the configuration header FILE
17548
17549Configuration files:
17550$config_files
17551
17552Configuration headers:
17553$config_headers
17554
17555Report bugs to <bug-autoconf@gnu.org>."
17556EOF
17557
17558cat >>$CONFIG_STATUS <<EOF
17559ac_cs_version="\\
17560config.status
17561configured by $0, generated by GNU Autoconf 2.52,
17562 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17563
17564Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17565Free Software Foundation, Inc.
17566This config.status script is free software; the Free Software Foundation
17567gives unlimited permission to copy, distribute and modify it."
17568srcdir=$srcdir
17569INSTALL="$INSTALL"
17570EOF
17571
17572cat >>$CONFIG_STATUS <<\EOF
17573# If no file are specified by the user, then we need to provide default
17574# value. By we need to know if files were specified by the user.
17575ac_need_defaults=:
17576while test $# != 0
17577do
17578 case $1 in
17579 --*=*)
17580 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17581 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17582 shift
17583 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17584 shift
17585 ;;
17586 -*);;
17587 *) # This is not an option, so the user has probably given explicit
17588 # arguments.
17589 ac_need_defaults=false;;
17590 esac
17591
17592 case $1 in
17593 # Handling of the options.
17594EOF
17595cat >>$CONFIG_STATUS <<EOF
17596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17597 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17598 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17599EOF
17600cat >>$CONFIG_STATUS <<\EOF
17601 --version | --vers* | -V )
17602 echo "$ac_cs_version"; exit 0 ;;
17603 --he | --h)
17604 # Conflict between --help and --header
17605 { { echo "$as_me:17605: error: ambiguous option: $1
17606Try \`$0 --help' for more information." >&5
17607echo "$as_me: error: ambiguous option: $1
17608Try \`$0 --help' for more information." >&2;}
17609 { (exit 1); exit 1; }; };;
17610 --help | --hel | -h )
17611 echo "$ac_cs_usage"; exit 0 ;;
17612 --debug | --d* | -d )
17613 debug=: ;;
17614 --file | --fil | --fi | --f )
17615 shift
17616 CONFIG_FILES="$CONFIG_FILES $1"
17617 ac_need_defaults=false;;
17618 --header | --heade | --head | --hea )
17619 shift
17620 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17621 ac_need_defaults=false;;
17622
17623 # This is an error.
17624 -*) { { echo "$as_me:17624: error: unrecognized option: $1
17625Try \`$0 --help' for more information." >&5
17626echo "$as_me: error: unrecognized option: $1
17627Try \`$0 --help' for more information." >&2;}
17628 { (exit 1); exit 1; }; } ;;
17629
17630 *) ac_config_targets="$ac_config_targets $1" ;;
17631
17632 esac
17633 shift
17634done
17635
17636exec 5>>config.log
17637cat >&5 << _ACEOF
17638
17639## ----------------------- ##
17640## Running config.status. ##
17641## ----------------------- ##
17642
17643This file was extended by $as_me 2.52, executed with
17644 CONFIG_FILES = $CONFIG_FILES
17645 CONFIG_HEADERS = $CONFIG_HEADERS
17646 CONFIG_LINKS = $CONFIG_LINKS
17647 CONFIG_COMMANDS = $CONFIG_COMMANDS
17648 > $ac_cs_invocation
17649on `(hostname || uname -n) 2>/dev/null | sed 1q`
17650
17651_ACEOF
17652EOF
17653
17654cat >>$CONFIG_STATUS <<\EOF
17655for ac_config_target in $ac_config_targets
17656do
17657 case "$ac_config_target" in
17658 # Handling of arguments.
17659 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17660 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17661 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17662 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17663 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17664 *) { { echo "$as_me:17664: error: invalid argument: $ac_config_target" >&5
17665echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17666 { (exit 1); exit 1; }; };;
17667 esac
17668done
17669
17670# If the user did not use the arguments to specify the items to instantiate,
17671# then the envvar interface is used. Set only those that are not.
17672# We use the long form for the default assignment because of an extremely
17673# bizarre bug on SunOS 4.1.3.
17674if $ac_need_defaults; then
17675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17677fi
17678
17679# Create a temporary directory, and hook for its removal unless debugging.
17680$debug ||
17681{
17682 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17683 trap '{ (exit 1); exit 1; }' 1 2 13 15
17684}
17685
17686# Create a (secure) tmp directory for tmp files.
17687: ${TMPDIR=/tmp}
17688{
17689 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17690 test -n "$tmp" && test -d "$tmp"
17691} ||
17692{
17693 tmp=$TMPDIR/cs$$-$RANDOM
17694 (umask 077 && mkdir $tmp)
17695} ||
17696{
17697 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17698 { (exit 1); exit 1; }
17699}
17700
17701EOF
17702
17703cat >>$CONFIG_STATUS <<EOF
17704
17705#
17706# CONFIG_FILES section.
17707#
17708
17709# No need to generate the scripts if there are no CONFIG_FILES.
17710# This happens for instance when ./config.status config.h
17711if test -n "\$CONFIG_FILES"; then
17712 # Protect against being on the right side of a sed subst in config.status.
17713 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17714 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17715s,@SHELL@,$SHELL,;t t
17716s,@exec_prefix@,$exec_prefix,;t t
17717s,@prefix@,$prefix,;t t
17718s,@program_transform_name@,$program_transform_name,;t t
17719s,@bindir@,$bindir,;t t
17720s,@sbindir@,$sbindir,;t t
17721s,@libexecdir@,$libexecdir,;t t
17722s,@datadir@,$datadir,;t t
17723s,@sysconfdir@,$sysconfdir,;t t
17724s,@sharedstatedir@,$sharedstatedir,;t t
17725s,@localstatedir@,$localstatedir,;t t
17726s,@libdir@,$libdir,;t t
17727s,@includedir@,$includedir,;t t
17728s,@oldincludedir@,$oldincludedir,;t t
17729s,@infodir@,$infodir,;t t
17730s,@mandir@,$mandir,;t t
17731s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17732s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17733s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17734s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17735s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17736s,@build_alias@,$build_alias,;t t
17737s,@host_alias@,$host_alias,;t t
17738s,@target_alias@,$target_alias,;t t
17739s,@ECHO_C@,$ECHO_C,;t t
17740s,@ECHO_N@,$ECHO_N,;t t
17741s,@ECHO_T@,$ECHO_T,;t t
17742s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17743s,@DEFS@,$DEFS,;t t
17744s,@LIBS@,$LIBS,;t t
17745s,@CC@,$CC,;t t
17746s,@CFLAGS@,$CFLAGS,;t t
17747s,@LDFLAGS@,$LDFLAGS,;t t
17748s,@CPPFLAGS@,$CPPFLAGS,;t t
17749s,@ac_ct_CC@,$ac_ct_CC,;t t
17750s,@EXEEXT@,$EXEEXT,;t t
17751s,@OBJEXT@,$OBJEXT,;t t
17752s,@build@,$build,;t t
17753s,@build_cpu@,$build_cpu,;t t
17754s,@build_vendor@,$build_vendor,;t t
17755s,@build_os@,$build_os,;t t
17756s,@host@,$host,;t t
17757s,@host_cpu@,$host_cpu,;t t
17758s,@host_vendor@,$host_vendor,;t t
17759s,@host_os@,$host_os,;t t
17760s,@AWK@,$AWK,;t t
17761s,@CPP@,$CPP,;t t
17762s,@RANLIB@,$RANLIB,;t t
17763s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17764s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17765s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17766s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17767s,@AR@,$AR,;t t
17768s,@PERL@,$PERL,;t t
17769s,@SED@,$SED,;t t
17770s,@ENT@,$ENT,;t t
17771s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17772s,@SH@,$SH,;t t
17773s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17774s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
17775s,@LD@,$LD,;t t
17776s,@LIBWRAP@,$LIBWRAP,;t t
17777s,@LIBPAM@,$LIBPAM,;t t
17778s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17779s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17780s,@PROG_LS@,$PROG_LS,;t t
17781s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17782s,@PROG_ARP@,$PROG_ARP,;t t
17783s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17784s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17785s,@PROG_PS@,$PROG_PS,;t t
17786s,@PROG_SAR@,$PROG_SAR,;t t
17787s,@PROG_W@,$PROG_W,;t t
17788s,@PROG_WHO@,$PROG_WHO,;t t
17789s,@PROG_LAST@,$PROG_LAST,;t t
17790s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17791s,@PROG_DF@,$PROG_DF,;t t
17792s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17793s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17794s,@PROG_IPCS@,$PROG_IPCS,;t t
17795s,@PROG_TAIL@,$PROG_TAIL,;t t
17796s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17797s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17798s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17799s,@xauth_path@,$xauth_path,;t t
17800s,@STRIP_OPT@,$STRIP_OPT,;t t
17801s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17802s,@NROFF@,$NROFF,;t t
17803s,@MANTYPE@,$MANTYPE,;t t
17804s,@mansubdir@,$mansubdir,;t t
17805s,@user_path@,$user_path,;t t
17806s,@piddir@,$piddir,;t t
17807CEOF
17808
17809EOF
17810
17811 cat >>$CONFIG_STATUS <<\EOF
17812 # Split the substitutions into bite-sized pieces for seds with
17813 # small command number limits, like on Digital OSF/1 and HP-UX.
17814 ac_max_sed_lines=48
17815 ac_sed_frag=1 # Number of current file.
17816 ac_beg=1 # First line for current file.
17817 ac_end=$ac_max_sed_lines # Line after last line for current file.
17818 ac_more_lines=:
17819 ac_sed_cmds=
17820 while $ac_more_lines; do
17821 if test $ac_beg -gt 1; then
17822 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17823 else
17824 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17825 fi
17826 if test ! -s $tmp/subs.frag; then
17827 ac_more_lines=false
17828 else
17829 # The purpose of the label and of the branching condition is to
17830 # speed up the sed processing (if there are no `@' at all, there
17831 # is no need to browse any of the substitutions).
17832 # These are the two extra sed commands mentioned above.
17833 (echo ':t
17834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17835 if test -z "$ac_sed_cmds"; then
17836 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17837 else
17838 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17839 fi
17840 ac_sed_frag=`expr $ac_sed_frag + 1`
17841 ac_beg=$ac_end
17842 ac_end=`expr $ac_end + $ac_max_sed_lines`
17843 fi
17844 done
17845 if test -z "$ac_sed_cmds"; then
17846 ac_sed_cmds=cat
17847 fi
17848fi # test -n "$CONFIG_FILES"
17849
17850EOF
17851cat >>$CONFIG_STATUS <<\EOF
17852for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17854 case $ac_file in
17855 - | *:- | *:-:* ) # input from stdin
17856 cat >$tmp/stdin
17857 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17859 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17861 * ) ac_file_in=$ac_file.in ;;
17862 esac
17863
17864 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17865 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17866 X"$ac_file" : 'X\(//\)[^/]' \| \
17867 X"$ac_file" : 'X\(//\)$' \| \
17868 X"$ac_file" : 'X\(/\)' \| \
17869 . : '\(.\)' 2>/dev/null ||
17870echo X"$ac_file" |
17871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17873 /^X\(\/\/\)$/{ s//\1/; q; }
17874 /^X\(\/\).*/{ s//\1/; q; }
17875 s/.*/./; q'`
17876 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17877 { case "$ac_dir" in
17878 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17879 *) as_incr_dir=.;;
17880esac
17881as_dummy="$ac_dir"
17882for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17883 case $as_mkdir_dir in
17884 # Skip DOS drivespec
17885 ?:) as_incr_dir=$as_mkdir_dir ;;
17886 *)
17887 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17888 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17889 ;;
17890 esac
17891done; }
17892
17893 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17894 # A "../" for each directory in $ac_dir_suffix.
17895 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17896 else
17897 ac_dir_suffix= ac_dots=
17898 fi
17899
17900 case $srcdir in
17901 .) ac_srcdir=.
17902 if test -z "$ac_dots"; then
17903 ac_top_srcdir=.
17904 else
17905 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17906 fi ;;
17907 [\\/]* | ?:[\\/]* )
17908 ac_srcdir=$srcdir$ac_dir_suffix;
17909 ac_top_srcdir=$srcdir ;;
17910 *) # Relative path.
17911 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17912 ac_top_srcdir=$ac_dots$srcdir ;;
17913 esac
17914
17915 case $INSTALL in
17916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17917 *) ac_INSTALL=$ac_dots$INSTALL ;;
17918 esac
17919
17920 if test x"$ac_file" != x-; then
17921 { echo "$as_me:17921: creating $ac_file" >&5
17922echo "$as_me: creating $ac_file" >&6;}
17923 rm -f "$ac_file"
17924 fi
17925 # Let's still pretend it is `configure' which instantiates (i.e., don't
17926 # use $as_me), people would be surprised to read:
17927 # /* config.h. Generated automatically by config.status. */
17928 configure_input="Generated automatically from `echo $ac_file_in |
17929 sed 's,.*/,,'` by configure."
17930
17931 # First look for the input files in the build tree, otherwise in the
17932 # src tree.
17933 ac_file_inputs=`IFS=:
17934 for f in $ac_file_in; do
17935 case $f in
17936 -) echo $tmp/stdin ;;
17937 [\\/$]*)
17938 # Absolute (can't be DOS-style, as IFS=:)
17939 test -f "$f" || { { echo "$as_me:17939: error: cannot find input file: $f" >&5
17940echo "$as_me: error: cannot find input file: $f" >&2;}
17941 { (exit 1); exit 1; }; }
17942 echo $f;;
17943 *) # Relative
17944 if test -f "$f"; then
17945 # Build tree
17946 echo $f
17947 elif test -f "$srcdir/$f"; then
17948 # Source tree
17949 echo $srcdir/$f
17950 else
17951 # /dev/null tree
17952 { { echo "$as_me:17952: error: cannot find input file: $f" >&5
17953echo "$as_me: error: cannot find input file: $f" >&2;}
17954 { (exit 1); exit 1; }; }
17955 fi;;
17956 esac
17957 done` || { (exit 1); exit 1; }
17958EOF
17959cat >>$CONFIG_STATUS <<EOF
17960 sed "$ac_vpsub
17961$extrasub
17962EOF
17963cat >>$CONFIG_STATUS <<\EOF
17964:t
17965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17966s,@configure_input@,$configure_input,;t t
17967s,@srcdir@,$ac_srcdir,;t t
17968s,@top_srcdir@,$ac_top_srcdir,;t t
17969s,@INSTALL@,$ac_INSTALL,;t t
17970" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17971 rm -f $tmp/stdin
17972 if test x"$ac_file" != x-; then
17973 mv $tmp/out $ac_file
17974 else
17975 cat $tmp/out
17976 rm -f $tmp/out
17977 fi
17978
17979done
17980EOF
17981cat >>$CONFIG_STATUS <<\EOF
17982
17983#
17984# CONFIG_HEADER section.
17985#
17986
17987# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17988# NAME is the cpp macro being defined and VALUE is the value it is being given.
17989#
17990# ac_d sets the value in "#define NAME VALUE" lines.
17991ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17992ac_dB='[ ].*$,\1#\2'
17993ac_dC=' '
17994ac_dD=',;t'
17995# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17996ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17997ac_uB='$,\1#\2define\3'
17998ac_uC=' '
17999ac_uD=',;t'
18000
18001for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18003 case $ac_file in
18004 - | *:- | *:-:* ) # input from stdin
18005 cat >$tmp/stdin
18006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18010 * ) ac_file_in=$ac_file.in ;;
18011 esac
18012
18013 test x"$ac_file" != x- && { echo "$as_me:18013: creating $ac_file" >&5
18014echo "$as_me: creating $ac_file" >&6;}
18015
18016 # First look for the input files in the build tree, otherwise in the
18017 # src tree.
18018 ac_file_inputs=`IFS=:
18019 for f in $ac_file_in; do
18020 case $f in
18021 -) echo $tmp/stdin ;;
18022 [\\/$]*)
18023 # Absolute (can't be DOS-style, as IFS=:)
18024 test -f "$f" || { { echo "$as_me:18024: error: cannot find input file: $f" >&5
18025echo "$as_me: error: cannot find input file: $f" >&2;}
18026 { (exit 1); exit 1; }; }
18027 echo $f;;
18028 *) # Relative
18029 if test -f "$f"; then
18030 # Build tree
18031 echo $f
18032 elif test -f "$srcdir/$f"; then
18033 # Source tree
18034 echo $srcdir/$f
18035 else
18036 # /dev/null tree
18037 { { echo "$as_me:18037: error: cannot find input file: $f" >&5
18038echo "$as_me: error: cannot find input file: $f" >&2;}
18039 { (exit 1); exit 1; }; }
18040 fi;;
18041 esac
18042 done` || { (exit 1); exit 1; }
18043 # Remove the trailing spaces.
18044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18045
18046EOF
18047
18048# Transform confdefs.h into two sed scripts, `conftest.defines' and
18049# `conftest.undefs', that substitutes the proper values into
18050# config.h.in to produce config.h. The first handles `#define'
18051# templates, and the second `#undef' templates.
18052# And first: Protect against being on the right side of a sed subst in
18053# config.status. Protect against being in an unquoted here document
18054# in config.status.
18055rm -f conftest.defines conftest.undefs
18056# Using a here document instead of a string reduces the quoting nightmare.
18057# Putting comments in sed scripts is not portable.
18058#
18059# `end' is used to avoid that the second main sed command (meant for
18060# 0-ary CPP macros) applies to n-ary macro definitions.
18061# See the Autoconf documentation for `clear'.
18062cat >confdef2sed.sed <<\EOF
18063s/[\\&,]/\\&/g
18064s,[\\$`],\\&,g
18065t clear
18066: clear
18067s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18068t end
18069s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18070: end
18071EOF
18072# If some macros were called several times there might be several times
18073# the same #defines, which is useless. Nevertheless, we may not want to
18074# sort them, since we want the *last* AC-DEFINE to be honored.
18075uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18076sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18077rm -f confdef2sed.sed
18078
18079# This sed command replaces #undef with comments. This is necessary, for
18080# example, in the case of _POSIX_SOURCE, which is predefined and required
18081# on some systems where configure will not decide to define it.
18082cat >>conftest.undefs <<\EOF
18083s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18084EOF
18085
18086# Break up conftest.defines because some shells have a limit on the size
18087# of here documents, and old seds have small limits too (100 cmds).
18088echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18089echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18090echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18091echo ' :' >>$CONFIG_STATUS
18092rm -f conftest.tail
18093while grep . conftest.defines >/dev/null
18094do
18095 # Write a limited-size here document to $tmp/defines.sed.
18096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18097 # Speed up: don't consider the non `#define' lines.
18098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18099 # Work around the forget-to-reset-the-flag bug.
18100 echo 't clr' >>$CONFIG_STATUS
18101 echo ': clr' >>$CONFIG_STATUS
18102 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18103 echo 'CEOF
18104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18105 rm -f $tmp/in
18106 mv $tmp/out $tmp/in
18107' >>$CONFIG_STATUS
18108 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18109 rm -f conftest.defines
18110 mv conftest.tail conftest.defines
18111done
18112rm -f conftest.defines
18113echo ' fi # egrep' >>$CONFIG_STATUS
18114echo >>$CONFIG_STATUS
18115
18116# Break up conftest.undefs because some shells have a limit on the size
18117# of here documents, and old seds have small limits too (100 cmds).
18118echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18119rm -f conftest.tail
18120while grep . conftest.undefs >/dev/null
18121do
18122 # Write a limited-size here document to $tmp/undefs.sed.
18123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18124 # Speed up: don't consider the non `#undef'
18125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18126 # Work around the forget-to-reset-the-flag bug.
18127 echo 't clr' >>$CONFIG_STATUS
18128 echo ': clr' >>$CONFIG_STATUS
18129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18130 echo 'CEOF
18131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18132 rm -f $tmp/in
18133 mv $tmp/out $tmp/in
18134' >>$CONFIG_STATUS
18135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18136 rm -f conftest.undefs
18137 mv conftest.tail conftest.undefs
18138done
18139rm -f conftest.undefs
18140
18141cat >>$CONFIG_STATUS <<\EOF
18142 # Let's still pretend it is `configure' which instantiates (i.e., don't
18143 # use $as_me), people would be surprised to read:
18144 # /* config.h. Generated automatically by config.status. */
18145 if test x"$ac_file" = x-; then
18146 echo "/* Generated automatically by configure. */" >$tmp/config.h
18147 else
18148 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18149 fi
18150 cat $tmp/in >>$tmp/config.h
18151 rm -f $tmp/in
18152 if test x"$ac_file" != x-; then
18153 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18154 { echo "$as_me:18154: $ac_file is unchanged" >&5
18155echo "$as_me: $ac_file is unchanged" >&6;}
18156 else
18157 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18158 X"$ac_file" : 'X\(//\)[^/]' \| \
18159 X"$ac_file" : 'X\(//\)$' \| \
18160 X"$ac_file" : 'X\(/\)' \| \
18161 . : '\(.\)' 2>/dev/null ||
18162echo X"$ac_file" |
18163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18165 /^X\(\/\/\)$/{ s//\1/; q; }
18166 /^X\(\/\).*/{ s//\1/; q; }
18167 s/.*/./; q'`
18168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18169 { case "$ac_dir" in
18170 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18171 *) as_incr_dir=.;;
18172esac
18173as_dummy="$ac_dir"
18174for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18175 case $as_mkdir_dir in
18176 # Skip DOS drivespec
18177 ?:) as_incr_dir=$as_mkdir_dir ;;
18178 *)
18179 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18180 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18181 ;;
18182 esac
18183done; }
18184
18185 fi
18186 rm -f $ac_file
18187 mv $tmp/config.h $ac_file
18188 fi
18189 else
18190 cat $tmp/config.h
18191 rm -f $tmp/config.h
18192 fi
18193done
18194EOF
18195
18196cat >>$CONFIG_STATUS <<\EOF
18197
18198{ (exit 0); exit 0; }
18199EOF
18200chmod +x $CONFIG_STATUS
18201ac_clean_files=$ac_clean_files_save
18202
18203# configure is writing to config.log, and then calls config.status.
18204# config.status does its own redirection, appending to config.log.
18205# Unfortunately, on DOS this fails, as config.log is still kept open
18206# by configure, so config.status won't be able to write to it; its
18207# output is simply discarded. So we exec the FD to /dev/null,
18208# effectively closing config.log, so it can be properly (re)opened and
18209# appended to by config.status. When coming back to configure, we
18210# need to make the FD available again.
18211if test "$no_create" != yes; then
18212 ac_cs_success=:
18213 exec 5>/dev/null
18214 $SHELL $CONFIG_STATUS || ac_cs_success=false
18215 exec 5>>config.log
18216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18217 # would make configure fail if this is the last instruction.
18218 $ac_cs_success || { (exit 1); exit 1; }
18219fi
18220
18221# Print summary of options
18222
18223# Someone please show me a better way :)
18224A=`eval echo ${prefix}` ; A=`eval echo ${A}`
18225B=`eval echo ${bindir}` ; B=`eval echo ${B}`
18226C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
18227D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
18228E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
18229F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
18230G=`eval echo ${piddir}` ; G=`eval echo ${G}`
18231H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
18232I=`eval echo ${user_path}` ; I=`eval echo ${I}`
18233J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
18234
18235echo ""
18236echo "OpenSSH has been configured with the following options:"
18237echo " User binaries: $B"
18238echo " System binaries: $C"
18239echo " Configuration files: $D"
18240echo " Askpass program: $E"
18241echo " Manual pages: $F"
18242echo " PID file: $G"
18243echo " Privilege separation chroot path: $H"
18244if test "x$external_path_file" = "x/etc/login.conf" ; then
18245echo " At runtime, sshd will use the path defined in $external_path_file"
18246echo " Make sure the path to scp is present, otherwise scp will not work"
18247else
18248echo " sshd default user PATH: $I"
18249 if test ! -z "$external_path_file"; then
18250echo " (If PATH is set in $external_path_file it will be used instead. If"
18251echo " used, ensure the path to scp is present, otherwise scp will not work.)"
18252 fi
18253fi
18254if test ! -z "$superuser_path" ; then
18255echo " sshd superuser user PATH: $J"
18256fi
18257echo " Manpage format: $MANTYPE"
18258echo " PAM support: $PAM_MSG"
18259echo " KerberosV support: $KRB5_MSG"
18260echo " Smartcard support: $SCARD_MSG"
18261echo " S/KEY support: $SKEY_MSG"
18262echo " TCP Wrappers support: $TCPW_MSG"
18263echo " MD5 password support: $MD5_MSG"
18264echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18265echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18266echo " BSD Auth support: $BSD_AUTH_MSG"
18267echo " Random number source: $RAND_MSG"
18268if test ! -z "$USE_RAND_HELPER" ; then
18269echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
18270fi
18271
18272echo ""
18273
18274echo " Host: ${host}"
18275echo " Compiler: ${CC}"
18276echo " Compiler flags: ${CFLAGS}"
18277echo "Preprocessor flags: ${CPPFLAGS}"
18278echo " Linker flags: ${LDFLAGS}"
18279echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
18280
18281echo ""
18282
18283if test "x$PAM_MSG" = "xyes" ; then
18284 echo "PAM is enabled. You may need to install a PAM control file "
18285 echo "for sshd, otherwise password authentication may fail. "
18286 echo "Example PAM control files can be found in the contrib/ "
18287 echo "subdirectory"
18288 echo ""
18289fi
18290
18291if test ! -z "$RAND_HELPER_CMDHASH" ; then
18292 echo "WARNING: you are using the builtin random number collection "
18293 echo "service. Please read WARNING.RNG and request that your OS "
18294 echo "vendor includes kernel-based random number collection in "
18295 echo "future versions of your OS."
18296 echo ""
18297fi
18298