summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-23 17:49:41 +0000
committerColin Watson <cjwatson@debian.org>2003-09-23 17:49:41 +0000
commit45431c9b4677608680cd071768cbf156b316a7e8 (patch)
tree9dd03d2cda2d52d8457ec7ae06902fbe0496e1e0 /configure
parent6dbe10d82295512af03b81649c26841381318996 (diff)
parent9221adce6959801664fd4a340c19e6b69107ad0b (diff)
Import OpenSSH 3.7.1p2.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17200
1 files changed, 17200 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..5c78dac53
--- /dev/null
+++ b/configure
@@ -0,0 +1,17200 @@
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 --with-osfsia Enable Digital Unix SIA
686 --with-cflags Specify additional flags to pass to compiler
687 --with-cppflags Specify additional flags to pass to preprocessor
688 --with-ldflags Specify additional flags to pass to linker
689 --with-libs Specify additional libraries to link with
690 --without-rpath Disable auto-added -R linker paths
691 --with-zlib=PATH Use zlib in PATH
692 --with-skey[=PATH] Enable S/Key support
693 (optionally in PATH)
694 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
695 (optionally in PATH)
696 --with-pam Enable PAM support
697 --with-ssl-dir=PATH Specify path to OpenSSL installation
698 --with-rand-helper Use subprocess to gather strong randomness
699 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
700 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
701 --with-entropy-timeout Specify entropy gathering command timeout (msec)
702 --with-privsep-user=user Specify non-privileged user for privilege separation
703 --with-sectok Enable smartcard support using libsectok
704 --with-opensc=PFX Enable smartcard support using OpenSC
705 --with-dns Support for fetching keys from DNS (experimental)
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
2949if test -z "$LD" ; then
2950 LD=$CC
2951fi
2952
2953echo "$as_me:2953: checking for $CC option to accept ANSI C" >&5
2954echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2955if test "${ac_cv_prog_cc_stdc+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958 ac_cv_prog_cc_stdc=no
2959ac_save_CC=$CC
2960cat >conftest.$ac_ext <<_ACEOF
2961#line 2961 "configure"
2962#include "confdefs.h"
2963#include <stdarg.h>
2964#include <stdio.h>
2965#include <sys/types.h>
2966#include <sys/stat.h>
2967/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2968struct buf { int x; };
2969FILE * (*rcsopen) (struct buf *, struct stat *, int);
2970static char *e (p, i)
2971 char **p;
2972 int i;
2973{
2974 return p[i];
2975}
2976static char *f (char * (*g) (char **, int), char **p, ...)
2977{
2978 char *s;
2979 va_list v;
2980 va_start (v,p);
2981 s = g (p, va_arg (v,int));
2982 va_end (v);
2983 return s;
2984}
2985int test (int i, double x);
2986struct s1 {int (*f) (int a);};
2987struct s2 {int (*f) (double a);};
2988int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2989int argc;
2990char **argv;
2991int
2992main ()
2993{
2994return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999# Don't try gcc -ansi; that turns off useful extensions and
3000# breaks some systems' header files.
3001# AIX -qlanglvl=ansi
3002# Ultrix and OSF/1 -std1
3003# HP-UX 10.20 and later -Ae
3004# HP-UX older versions -Aa -D_HPUX_SOURCE
3005# SVR4 -Xc -D__EXTENSIONS__
3006for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3007do
3008 CC="$ac_save_CC $ac_arg"
3009 rm -f conftest.$ac_objext
3010if { (eval echo "$as_me:3010: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>&5
3012 ac_status=$?
3013 echo "$as_me:3013: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:3016: \"$ac_try\"") >&5
3017 (eval $ac_try) 2>&5
3018 ac_status=$?
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 ac_cv_prog_cc_stdc=$ac_arg
3022break
3023else
3024 echo "$as_me: failed program was:" >&5
3025cat conftest.$ac_ext >&5
3026fi
3027rm -f conftest.$ac_objext
3028done
3029rm -f conftest.$ac_ext conftest.$ac_objext
3030CC=$ac_save_CC
3031
3032fi
3033
3034case "x$ac_cv_prog_cc_stdc" in
3035 x|xno)
3036 echo "$as_me:3036: result: none needed" >&5
3037echo "${ECHO_T}none needed" >&6 ;;
3038 *)
3039 echo "$as_me:3039: result: $ac_cv_prog_cc_stdc" >&5
3040echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3041 CC="$CC $ac_cv_prog_cc_stdc" ;;
3042esac
3043
3044echo "$as_me:3044: checking for inline" >&5
3045echo $ECHO_N "checking for inline... $ECHO_C" >&6
3046if test "${ac_cv_c_inline+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 ac_cv_c_inline=no
3050for ac_kw in inline __inline__ __inline; do
3051 cat >conftest.$ac_ext <<_ACEOF
3052#line 3052 "configure"
3053#include "confdefs.h"
3054#ifndef __cplusplus
3055static $ac_kw int static_foo () {return 0; }
3056$ac_kw int foo () {return 0; }
3057#endif
3058
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (eval echo "$as_me:3061: \"$ac_compile\"") >&5
3062 (eval $ac_compile) 2>&5
3063 ac_status=$?
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:3067: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_c_inline=$ac_kw; break
3073else
3074 echo "$as_me: failed program was:" >&5
3075cat conftest.$ac_ext >&5
3076fi
3077rm -f conftest.$ac_objext conftest.$ac_ext
3078done
3079
3080fi
3081echo "$as_me:3081: result: $ac_cv_c_inline" >&5
3082echo "${ECHO_T}$ac_cv_c_inline" >&6
3083case $ac_cv_c_inline in
3084 inline | yes) ;;
3085 no)
3086cat >>confdefs.h <<\EOF
3087#define inline
3088EOF
3089 ;;
3090 *) cat >>confdefs.h <<EOF
3091#define inline $ac_cv_c_inline
3092EOF
3093 ;;
3094esac
3095
3096if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3097 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3098fi
3099
3100# Check for some target-specific stuff
3101case "$host" in
3102*-*-aix*)
3103 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3104 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3105 echo "$as_me:3105: checking how to specify blibpath for linker ($LD)" >&5
3106echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
3107 if (test -z "$blibpath"); then
3108 blibpath="/usr/lib:/lib:/usr/local/lib"
3109 fi
3110 saved_LDFLAGS="$LDFLAGS"
3111 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
3112 if (test -z "$blibflags"); then
3113 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
3114 cat >conftest.$ac_ext <<_ACEOF
3115#line 3115 "configure"
3116#include "confdefs.h"
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext conftest$ac_exeext
3127if { (eval echo "$as_me:3127: \"$ac_link\"") >&5
3128 (eval $ac_link) 2>&5
3129 ac_status=$?
3130 echo "$as_me:3130: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -s conftest$ac_exeext'
3133 { (eval echo "$as_me:3133: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:3136: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 blibflags=$tryflags
3139else
3140 echo "$as_me: failed program was:" >&5
3141cat conftest.$ac_ext >&5
3142fi
3143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3144 fi
3145 done
3146 if (test -z "$blibflags"); then
3147 echo "$as_me:3147: result: not found" >&5
3148echo "${ECHO_T}not found" >&6
3149 { { echo "$as_me:3149: error: *** must be able to specify blibpath on AIX - check config.log" >&5
3150echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
3151 { (exit 1); exit 1; }; }
3152 else
3153 echo "$as_me:3153: result: $blibflags" >&5
3154echo "${ECHO_T}$blibflags" >&6
3155 fi
3156 LDFLAGS="$saved_LDFLAGS"
3157 echo "$as_me:3157: checking for authenticate" >&5
3158echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3159if test "${ac_cv_func_authenticate+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 cat >conftest.$ac_ext <<_ACEOF
3163#line 3163 "configure"
3164#include "confdefs.h"
3165/* System header to define __stub macros and hopefully few prototypes,
3166 which can conflict with char authenticate (); below. */
3167#include <assert.h>
3168/* Override any gcc2 internal prototype to avoid an error. */
3169#ifdef __cplusplus
3170extern "C"
3171#endif
3172/* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3174char authenticate ();
3175char (*f) ();
3176
3177int
3178main ()
3179{
3180/* The GNU C library defines this for functions which it implements
3181 to always fail with ENOSYS. Some functions are actually named
3182 something starting with __ and the normal name is an alias. */
3183#if defined (__stub_authenticate) || defined (__stub___authenticate)
3184choke me
3185#else
3186f = authenticate;
3187#endif
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext conftest$ac_exeext
3194if { (eval echo "$as_me:3194: \"$ac_link\"") >&5
3195 (eval $ac_link) 2>&5
3196 ac_status=$?
3197 echo "$as_me:3197: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest$ac_exeext'
3200 { (eval echo "$as_me:3200: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:3203: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_cv_func_authenticate=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208cat conftest.$ac_ext >&5
3209ac_cv_func_authenticate=no
3210fi
3211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3212fi
3213echo "$as_me:3213: result: $ac_cv_func_authenticate" >&5
3214echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3215if test $ac_cv_func_authenticate = yes; then
3216 cat >>confdefs.h <<\EOF
3217#define WITH_AIXAUTHENTICATE 1
3218EOF
3219
3220else
3221 echo "$as_me:3221: checking for authenticate in -ls" >&5
3222echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3223if test "${ac_cv_lib_s_authenticate+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226 ac_check_lib_save_LIBS=$LIBS
3227LIBS="-ls $LIBS"
3228cat >conftest.$ac_ext <<_ACEOF
3229#line 3229 "configure"
3230#include "confdefs.h"
3231
3232/* Override any gcc2 internal prototype to avoid an error. */
3233#ifdef __cplusplus
3234extern "C"
3235#endif
3236/* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3238char authenticate ();
3239int
3240main ()
3241{
3242authenticate ();
3243 ;
3244 return 0;
3245}
3246_ACEOF
3247rm -f conftest.$ac_objext conftest$ac_exeext
3248if { (eval echo "$as_me:3248: \"$ac_link\"") >&5
3249 (eval $ac_link) 2>&5
3250 ac_status=$?
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:3254: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_s_authenticate=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262cat conftest.$ac_ext >&5
3263ac_cv_lib_s_authenticate=no
3264fi
3265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266LIBS=$ac_check_lib_save_LIBS
3267fi
3268echo "$as_me:3268: result: $ac_cv_lib_s_authenticate" >&5
3269echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3270if test $ac_cv_lib_s_authenticate = yes; then
3271 cat >>confdefs.h <<\EOF
3272#define WITH_AIXAUTHENTICATE 1
3273EOF
3274
3275 LIBS="$LIBS -ls"
3276
3277fi
3278
3279fi
3280
3281 echo "$as_me:3281: checking whether loginfailed is declared" >&5
3282echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
3283if test "${ac_cv_have_decl_loginfailed+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 cat >conftest.$ac_ext <<_ACEOF
3287#line 3287 "configure"
3288#include "confdefs.h"
3289#include <usersec.h>
3290
3291int
3292main ()
3293{
3294#ifndef loginfailed
3295 char *p = (char *) loginfailed;
3296#endif
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302rm -f conftest.$ac_objext
3303if { (eval echo "$as_me:3303: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3305 ac_status=$?
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -s conftest.$ac_objext'
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_have_decl_loginfailed=yes
3315else
3316 echo "$as_me: failed program was:" >&5
3317cat conftest.$ac_ext >&5
3318ac_cv_have_decl_loginfailed=no
3319fi
3320rm -f conftest.$ac_objext conftest.$ac_ext
3321fi
3322echo "$as_me:3322: result: $ac_cv_have_decl_loginfailed" >&5
3323echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
3324if test $ac_cv_have_decl_loginfailed = yes; then
3325 echo "$as_me:3325: checking if loginfailed takes 4 arguments" >&5
3326echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3328#line 3328 "configure"
3329#include "confdefs.h"
3330#include <usersec.h>
3331int
3332main ()
3333{
3334(void)loginfailed("user","host","tty",0);
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3342 ac_status=$?
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:3346: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 echo "$as_me:3351: result: yes" >&5
3352echo "${ECHO_T}yes" >&6
3353 cat >>confdefs.h <<\EOF
3354#define AIX_LOGINFAILED_4ARG 1
3355EOF
3356
3357else
3358 echo "$as_me: failed program was:" >&5
3359cat conftest.$ac_ext >&5
3360echo "$as_me:3360: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362
3363fi
3364rm -f conftest.$ac_objext conftest.$ac_ext
3365fi
3366
3367for ac_func in setauthdb
3368do
3369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3370echo "$as_me:3370: checking for $ac_func" >&5
3371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3372if eval "test \"\${$as_ac_var+set}\" = set"; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 cat >conftest.$ac_ext <<_ACEOF
3376#line 3376 "configure"
3377#include "confdefs.h"
3378/* System header to define __stub macros and hopefully few prototypes,
3379 which can conflict with char $ac_func (); below. */
3380#include <assert.h>
3381/* Override any gcc2 internal prototype to avoid an error. */
3382#ifdef __cplusplus
3383extern "C"
3384#endif
3385/* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387char $ac_func ();
3388char (*f) ();
3389
3390int
3391main ()
3392{
3393/* The GNU C library defines this for functions which it implements
3394 to always fail with ENOSYS. Some functions are actually named
3395 something starting with __ and the normal name is an alias. */
3396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3397choke me
3398#else
3399f = $ac_func;
3400#endif
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.$ac_objext conftest$ac_exeext
3407if { (eval echo "$as_me:3407: \"$ac_link\"") >&5
3408 (eval $ac_link) 2>&5
3409 ac_status=$?
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -s conftest$ac_exeext'
3413 { (eval echo "$as_me:3413: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:3416: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 eval "$as_ac_var=yes"
3419else
3420 echo "$as_me: failed program was:" >&5
3421cat conftest.$ac_ext >&5
3422eval "$as_ac_var=no"
3423fi
3424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3425fi
3426echo "$as_me:3426: result: `eval echo '${'$as_ac_var'}'`" >&5
3427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3428if test `eval echo '${'$as_ac_var'}'` = yes; then
3429 cat >>confdefs.h <<EOF
3430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3431EOF
3432
3433fi
3434done
3435
3436 cat >>confdefs.h <<\EOF
3437#define BROKEN_GETADDRINFO 1
3438EOF
3439
3440 cat >>confdefs.h <<\EOF
3441#define BROKEN_REALPATH 1
3442EOF
3443
3444 cat >>confdefs.h <<\EOF
3445#define SETEUID_BREAKS_SETUID 1
3446EOF
3447
3448 cat >>confdefs.h <<\EOF
3449#define BROKEN_SETREUID 1
3450EOF
3451
3452 cat >>confdefs.h <<\EOF
3453#define BROKEN_SETREGID 1
3454EOF
3455
3456 cat >>confdefs.h <<\EOF
3457#define DISABLE_LASTLOG 1
3458EOF
3459
3460 cat >>confdefs.h <<\EOF
3461#define LOGIN_NEEDS_UTMPX 1
3462EOF
3463
3464 cat >>confdefs.h <<\EOF
3465#define SPT_TYPE SPT_REUSEARGV
3466EOF
3467
3468 ;;
3469*-*-cygwin*)
3470 check_for_libcrypt_later=1
3471 LIBS="$LIBS /usr/lib/textmode.o"
3472 cat >>confdefs.h <<\EOF
3473#define HAVE_CYGWIN 1
3474EOF
3475
3476 cat >>confdefs.h <<\EOF
3477#define USE_PIPES 1
3478EOF
3479
3480 cat >>confdefs.h <<\EOF
3481#define DISABLE_SHADOW 1
3482EOF
3483
3484 cat >>confdefs.h <<\EOF
3485#define IP_TOS_IS_BROKEN 1
3486EOF
3487
3488 cat >>confdefs.h <<\EOF
3489#define NO_X11_UNIX_SOCKETS 1
3490EOF
3491
3492 cat >>confdefs.h <<\EOF
3493#define NO_IPPORT_RESERVED_CONCEPT 1
3494EOF
3495
3496 cat >>confdefs.h <<\EOF
3497#define DISABLE_FD_PASSING 1
3498EOF
3499
3500 cat >>confdefs.h <<\EOF
3501#define SETGROUPS_NOOP 1
3502EOF
3503
3504 ;;
3505*-*-dgux*)
3506 cat >>confdefs.h <<\EOF
3507#define IP_TOS_IS_BROKEN 1
3508EOF
3509
3510 ;;
3511*-*-darwin*)
3512 echo "$as_me:3512: checking if we have working getaddrinfo" >&5
3513echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3514 if test "$cross_compiling" = yes; then
3515 echo "$as_me:3515: result: assume it is working" >&5
3516echo "${ECHO_T}assume it is working" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
3519#line 3519 "configure"
3520#include "confdefs.h"
3521#include <mach-o/dyld.h>
3522main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3523 exit(0);
3524 else
3525 exit(1);
3526}
3527_ACEOF
3528rm -f conftest$ac_exeext
3529if { (eval echo "$as_me:3529: \"$ac_link\"") >&5
3530 (eval $ac_link) 2>&5
3531 ac_status=$?
3532 echo "$as_me:3532: \$? = $ac_status" >&5
3533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3534 { (eval echo "$as_me:3534: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:3537: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 echo "$as_me:3539: result: working" >&5
3540echo "${ECHO_T}working" >&6
3541else
3542 echo "$as_me: program exited with status $ac_status" >&5
3543echo "$as_me: failed program was:" >&5
3544cat conftest.$ac_ext >&5
3545echo "$as_me:3545: result: buggy" >&5
3546echo "${ECHO_T}buggy" >&6
3547 cat >>confdefs.h <<\EOF
3548#define BROKEN_GETADDRINFO 1
3549EOF
3550
3551fi
3552rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3553fi
3554 cat >>confdefs.h <<\EOF
3555#define SETEUID_BREAKS_SETUID 1
3556EOF
3557
3558 cat >>confdefs.h <<\EOF
3559#define BROKEN_SETREUID 1
3560EOF
3561
3562 cat >>confdefs.h <<\EOF
3563#define BROKEN_SETREGID 1
3564EOF
3565
3566 ;;
3567*-*-hpux10.26)
3568 if test -z "$GCC"; then
3569 CFLAGS="$CFLAGS -Ae"
3570 fi
3571 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3572 IPADDR_IN_DISPLAY=yes
3573 cat >>confdefs.h <<\EOF
3574#define HAVE_SECUREWARE 1
3575EOF
3576
3577 cat >>confdefs.h <<\EOF
3578#define USE_PIPES 1
3579EOF
3580
3581 cat >>confdefs.h <<\EOF
3582#define LOGIN_NO_ENDOPT 1
3583EOF
3584
3585 cat >>confdefs.h <<\EOF
3586#define LOGIN_NEEDS_UTMPX 1
3587EOF
3588
3589 cat >>confdefs.h <<\EOF
3590#define DISABLE_SHADOW 1
3591EOF
3592
3593 cat >>confdefs.h <<\EOF
3594#define DISABLE_UTMP 1
3595EOF
3596
3597 cat >>confdefs.h <<\EOF
3598#define LOCKED_PASSWD_STRING "*"
3599EOF
3600
3601 cat >>confdefs.h <<\EOF
3602#define SPT_TYPE SPT_PSTAT
3603EOF
3604
3605 LIBS="$LIBS -lsec -lsecpw"
3606
3607echo "$as_me:3607: checking for t_error in -lxnet" >&5
3608echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3609if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612 ac_check_lib_save_LIBS=$LIBS
3613LIBS="-lxnet $LIBS"
3614cat >conftest.$ac_ext <<_ACEOF
3615#line 3615 "configure"
3616#include "confdefs.h"
3617
3618/* Override any gcc2 internal prototype to avoid an error. */
3619#ifdef __cplusplus
3620extern "C"
3621#endif
3622/* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624char t_error ();
3625int
3626main ()
3627{
3628t_error ();
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633rm -f conftest.$ac_objext conftest$ac_exeext
3634if { (eval echo "$as_me:3634: \"$ac_link\"") >&5
3635 (eval $ac_link) 2>&5
3636 ac_status=$?
3637 echo "$as_me:3637: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -s conftest$ac_exeext'
3640 { (eval echo "$as_me:3640: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:3643: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_lib_xnet_t_error=yes
3646else
3647 echo "$as_me: failed program was:" >&5
3648cat conftest.$ac_ext >&5
3649ac_cv_lib_xnet_t_error=no
3650fi
3651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3652LIBS=$ac_check_lib_save_LIBS
3653fi
3654echo "$as_me:3654: result: $ac_cv_lib_xnet_t_error" >&5
3655echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3656if test $ac_cv_lib_xnet_t_error = yes; then
3657 cat >>confdefs.h <<EOF
3658#define HAVE_LIBXNET 1
3659EOF
3660
3661 LIBS="-lxnet $LIBS"
3662
3663else
3664 { { echo "$as_me:3664: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3665echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3666 { (exit 1); exit 1; }; }
3667fi
3668
3669 disable_ptmx_check=yes
3670 ;;
3671*-*-hpux10*)
3672 if test -z "$GCC"; then
3673 CFLAGS="$CFLAGS -Ae"
3674 fi
3675 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3676 IPADDR_IN_DISPLAY=yes
3677 cat >>confdefs.h <<\EOF
3678#define USE_PIPES 1
3679EOF
3680
3681 cat >>confdefs.h <<\EOF
3682#define LOGIN_NO_ENDOPT 1
3683EOF
3684
3685 cat >>confdefs.h <<\EOF
3686#define LOGIN_NEEDS_UTMPX 1
3687EOF
3688
3689 cat >>confdefs.h <<\EOF
3690#define DISABLE_SHADOW 1
3691EOF
3692
3693 cat >>confdefs.h <<\EOF
3694#define DISABLE_UTMP 1
3695EOF
3696
3697 cat >>confdefs.h <<\EOF
3698#define LOCKED_PASSWD_STRING "*"
3699EOF
3700
3701 cat >>confdefs.h <<\EOF
3702#define SPT_TYPE SPT_PSTAT
3703EOF
3704
3705 LIBS="$LIBS -lsec"
3706
3707echo "$as_me:3707: checking for t_error in -lxnet" >&5
3708echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3709if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 ac_check_lib_save_LIBS=$LIBS
3713LIBS="-lxnet $LIBS"
3714cat >conftest.$ac_ext <<_ACEOF
3715#line 3715 "configure"
3716#include "confdefs.h"
3717
3718/* Override any gcc2 internal prototype to avoid an error. */
3719#ifdef __cplusplus
3720extern "C"
3721#endif
3722/* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3724char t_error ();
3725int
3726main ()
3727{
3728t_error ();
3729 ;
3730 return 0;
3731}
3732_ACEOF
3733rm -f conftest.$ac_objext conftest$ac_exeext
3734if { (eval echo "$as_me:3734: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3736 ac_status=$?
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_lib_xnet_t_error=yes
3746else
3747 echo "$as_me: failed program was:" >&5
3748cat conftest.$ac_ext >&5
3749ac_cv_lib_xnet_t_error=no
3750fi
3751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752LIBS=$ac_check_lib_save_LIBS
3753fi
3754echo "$as_me:3754: result: $ac_cv_lib_xnet_t_error" >&5
3755echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3756if test $ac_cv_lib_xnet_t_error = yes; then
3757 cat >>confdefs.h <<EOF
3758#define HAVE_LIBXNET 1
3759EOF
3760
3761 LIBS="-lxnet $LIBS"
3762
3763else
3764 { { echo "$as_me:3764: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3765echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768
3769 ;;
3770*-*-hpux11*)
3771 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3772 IPADDR_IN_DISPLAY=yes
3773 cat >>confdefs.h <<\EOF
3774#define PAM_SUN_CODEBASE 1
3775EOF
3776
3777 cat >>confdefs.h <<\EOF
3778#define USE_PIPES 1
3779EOF
3780
3781 cat >>confdefs.h <<\EOF
3782#define LOGIN_NO_ENDOPT 1
3783EOF
3784
3785 cat >>confdefs.h <<\EOF
3786#define LOGIN_NEEDS_UTMPX 1
3787EOF
3788
3789 cat >>confdefs.h <<\EOF
3790#define DISABLE_SHADOW 1
3791EOF
3792
3793 cat >>confdefs.h <<\EOF
3794#define DISABLE_UTMP 1
3795EOF
3796
3797 cat >>confdefs.h <<\EOF
3798#define LOCKED_PASSWD_STRING "*"
3799EOF
3800
3801 cat >>confdefs.h <<\EOF
3802#define SPT_TYPE SPT_PSTAT
3803EOF
3804
3805 LIBS="$LIBS -lsec"
3806
3807echo "$as_me:3807: checking for t_error in -lxnet" >&5
3808echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3809if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 ac_check_lib_save_LIBS=$LIBS
3813LIBS="-lxnet $LIBS"
3814cat >conftest.$ac_ext <<_ACEOF
3815#line 3815 "configure"
3816#include "confdefs.h"
3817
3818/* Override any gcc2 internal prototype to avoid an error. */
3819#ifdef __cplusplus
3820extern "C"
3821#endif
3822/* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824char t_error ();
3825int
3826main ()
3827{
3828t_error ();
3829 ;
3830 return 0;
3831}
3832_ACEOF
3833rm -f conftest.$ac_objext conftest$ac_exeext
3834if { (eval echo "$as_me:3834: \"$ac_link\"") >&5
3835 (eval $ac_link) 2>&5
3836 ac_status=$?
3837 echo "$as_me:3837: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:3840: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:3843: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_lib_xnet_t_error=yes
3846else
3847 echo "$as_me: failed program was:" >&5
3848cat conftest.$ac_ext >&5
3849ac_cv_lib_xnet_t_error=no
3850fi
3851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852LIBS=$ac_check_lib_save_LIBS
3853fi
3854echo "$as_me:3854: result: $ac_cv_lib_xnet_t_error" >&5
3855echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3856if test $ac_cv_lib_xnet_t_error = yes; then
3857 cat >>confdefs.h <<EOF
3858#define HAVE_LIBXNET 1
3859EOF
3860
3861 LIBS="-lxnet $LIBS"
3862
3863else
3864 { { echo "$as_me:3864: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3865echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3866 { (exit 1); exit 1; }; }
3867fi
3868
3869 ;;
3870*-*-irix5*)
3871 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3872 LDFLAGS="$LDFLAGS"
3873 PATH="$PATH:/usr/etc"
3874 cat >>confdefs.h <<\EOF
3875#define BROKEN_INET_NTOA 1
3876EOF
3877
3878 cat >>confdefs.h <<\EOF
3879#define WITH_ABBREV_NO_TTY 1
3880EOF
3881
3882 cat >>confdefs.h <<\EOF
3883#define LOCKED_PASSWD_STRING "*LK*"
3884EOF
3885
3886 ;;
3887*-*-irix6*)
3888 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3889 LDFLAGS="$LDFLAGS"
3890 PATH="$PATH:/usr/etc"
3891 cat >>confdefs.h <<\EOF
3892#define WITH_IRIX_ARRAY 1
3893EOF
3894
3895 cat >>confdefs.h <<\EOF
3896#define WITH_IRIX_PROJECT 1
3897EOF
3898
3899 cat >>confdefs.h <<\EOF
3900#define WITH_IRIX_AUDIT 1
3901EOF
3902
3903 echo "$as_me:3903: checking for jlimit_startjob" >&5
3904echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3905if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 cat >conftest.$ac_ext <<_ACEOF
3909#line 3909 "configure"
3910#include "confdefs.h"
3911/* System header to define __stub macros and hopefully few prototypes,
3912 which can conflict with char jlimit_startjob (); below. */
3913#include <assert.h>
3914/* Override any gcc2 internal prototype to avoid an error. */
3915#ifdef __cplusplus
3916extern "C"
3917#endif
3918/* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3920char jlimit_startjob ();
3921char (*f) ();
3922
3923int
3924main ()
3925{
3926/* The GNU C library defines this for functions which it implements
3927 to always fail with ENOSYS. Some functions are actually named
3928 something starting with __ and the normal name is an alias. */
3929#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3930choke me
3931#else
3932f = jlimit_startjob;
3933#endif
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext conftest$ac_exeext
3940if { (eval echo "$as_me:3940: \"$ac_link\"") >&5
3941 (eval $ac_link) 2>&5
3942 ac_status=$?
3943 echo "$as_me:3943: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:3946: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:3949: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_func_jlimit_startjob=yes
3952else
3953 echo "$as_me: failed program was:" >&5
3954cat conftest.$ac_ext >&5
3955ac_cv_func_jlimit_startjob=no
3956fi
3957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3958fi
3959echo "$as_me:3959: result: $ac_cv_func_jlimit_startjob" >&5
3960echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3961if test $ac_cv_func_jlimit_startjob = yes; then
3962 cat >>confdefs.h <<\EOF
3963#define WITH_IRIX_JOBS 1
3964EOF
3965
3966fi
3967
3968 cat >>confdefs.h <<\EOF
3969#define BROKEN_INET_NTOA 1
3970EOF
3971
3972 cat >>confdefs.h <<\EOF
3973#define SETEUID_BREAKS_SETUID 1
3974EOF
3975
3976 cat >>confdefs.h <<\EOF
3977#define BROKEN_SETREUID 1
3978EOF
3979
3980 cat >>confdefs.h <<\EOF
3981#define BROKEN_SETREGID 1
3982EOF
3983
3984 cat >>confdefs.h <<\EOF
3985#define WITH_ABBREV_NO_TTY 1
3986EOF
3987
3988 cat >>confdefs.h <<\EOF
3989#define LOCKED_PASSWD_STRING "*LK*"
3990EOF
3991
3992 ;;
3993*-*-linux*)
3994 no_dev_ptmx=1
3995 check_for_libcrypt_later=1
3996 check_for_openpty_ctty_bug=1
3997 cat >>confdefs.h <<\EOF
3998#define DONT_TRY_OTHER_AF 1
3999EOF
4000
4001 cat >>confdefs.h <<\EOF
4002#define PAM_TTY_KLUDGE 1
4003EOF
4004
4005 cat >>confdefs.h <<\EOF
4006#define LOCKED_PASSWD_PREFIX "!!"
4007EOF
4008
4009 cat >>confdefs.h <<\EOF
4010#define SPT_TYPE SPT_REUSEARGV
4011EOF
4012
4013 inet6_default_4in6=yes
4014 case `uname -r` in
4015 1.*|2.0.*)
4016 cat >>confdefs.h <<\EOF
4017#define BROKEN_CMSG_TYPE 1
4018EOF
4019
4020 ;;
4021 esac
4022 ;;
4023mips-sony-bsd|mips-sony-newsos4)
4024 cat >>confdefs.h <<\EOF
4025#define HAVE_NEWS4 1
4026EOF
4027
4028 SONY=1
4029 ;;
4030*-*-netbsd*)
4031 check_for_libcrypt_before=1
4032 need_dash_r=1
4033 ;;
4034*-*-freebsd*)
4035 check_for_libcrypt_later=1
4036 ;;
4037*-*-bsdi*)
4038 cat >>confdefs.h <<\EOF
4039#define SETEUID_BREAKS_SETUID 1
4040EOF
4041
4042 cat >>confdefs.h <<\EOF
4043#define BROKEN_SETREUID 1
4044EOF
4045
4046 cat >>confdefs.h <<\EOF
4047#define BROKEN_SETREGID 1
4048EOF
4049
4050 ;;
4051*-next-*)
4052 conf_lastlog_location="/usr/adm/lastlog"
4053 conf_utmp_location=/etc/utmp
4054 conf_wtmp_location=/usr/adm/wtmp
4055 MAIL=/usr/spool/mail
4056 cat >>confdefs.h <<\EOF
4057#define HAVE_NEXT 1
4058EOF
4059
4060 cat >>confdefs.h <<\EOF
4061#define BROKEN_REALPATH 1
4062EOF
4063
4064 cat >>confdefs.h <<\EOF
4065#define USE_PIPES 1
4066EOF
4067
4068 cat >>confdefs.h <<\EOF
4069#define BROKEN_SAVED_UIDS 1
4070EOF
4071
4072 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4073 CFLAGS="$CFLAGS"
4074 ;;
4075*-*-solaris*)
4076 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4077 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4078 need_dash_r=1
4079 cat >>confdefs.h <<\EOF
4080#define PAM_SUN_CODEBASE 1
4081EOF
4082
4083 cat >>confdefs.h <<\EOF
4084#define LOGIN_NEEDS_UTMPX 1
4085EOF
4086
4087 cat >>confdefs.h <<\EOF
4088#define LOGIN_NEEDS_TERM 1
4089EOF
4090
4091 cat >>confdefs.h <<\EOF
4092#define PAM_TTY_KLUDGE 1
4093EOF
4094
4095 cat >>confdefs.h <<\EOF
4096#define LOCKED_PASSWD_STRING "*LK*"
4097EOF
4098
4099 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
4100 cat >>confdefs.h <<\EOF
4101#define SSHD_ACQUIRES_CTTY 1
4102EOF
4103
4104 external_path_file=/etc/default/login
4105 # hardwire lastlog location (can't detect it on some versions)
4106 conf_lastlog_location="/var/adm/lastlog"
4107 echo "$as_me:4107: checking for obsolete utmp and wtmp in solaris2.x" >&5
4108echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4109 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4110 if test "$sol2ver" -ge 8; then
4111 echo "$as_me:4111: result: yes" >&5
4112echo "${ECHO_T}yes" >&6
4113 cat >>confdefs.h <<\EOF
4114#define DISABLE_UTMP 1
4115EOF
4116
4117 cat >>confdefs.h <<\EOF
4118#define DISABLE_WTMP 1
4119EOF
4120
4121 else
4122 echo "$as_me:4122: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124 fi
4125 ;;
4126*-*-sunos4*)
4127 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4128
4129for ac_func in getpwanam
4130do
4131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4132echo "$as_me:4132: checking for $ac_func" >&5
4133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4134if eval "test \"\${$as_ac_var+set}\" = set"; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 cat >conftest.$ac_ext <<_ACEOF
4138#line 4138 "configure"
4139#include "confdefs.h"
4140/* System header to define __stub macros and hopefully few prototypes,
4141 which can conflict with char $ac_func (); below. */
4142#include <assert.h>
4143/* Override any gcc2 internal prototype to avoid an error. */
4144#ifdef __cplusplus
4145extern "C"
4146#endif
4147/* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4149char $ac_func ();
4150char (*f) ();
4151
4152int
4153main ()
4154{
4155/* The GNU C library defines this for functions which it implements
4156 to always fail with ENOSYS. Some functions are actually named
4157 something starting with __ and the normal name is an alias. */
4158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4159choke me
4160#else
4161f = $ac_func;
4162#endif
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext conftest$ac_exeext
4169if { (eval echo "$as_me:4169: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>&5
4171 ac_status=$?
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -s conftest$ac_exeext'
4175 { (eval echo "$as_me:4175: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 eval "$as_ac_var=yes"
4181else
4182 echo "$as_me: failed program was:" >&5
4183cat conftest.$ac_ext >&5
4184eval "$as_ac_var=no"
4185fi
4186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4187fi
4188echo "$as_me:4188: result: `eval echo '${'$as_ac_var'}'`" >&5
4189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4190if test `eval echo '${'$as_ac_var'}'` = yes; then
4191 cat >>confdefs.h <<EOF
4192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4193EOF
4194
4195fi
4196done
4197
4198 cat >>confdefs.h <<\EOF
4199#define PAM_SUN_CODEBASE 1
4200EOF
4201
4202 conf_utmp_location=/etc/utmp
4203 conf_wtmp_location=/var/adm/wtmp
4204 conf_lastlog_location=/var/adm/lastlog
4205 cat >>confdefs.h <<\EOF
4206#define USE_PIPES 1
4207EOF
4208
4209 ;;
4210*-ncr-sysv*)
4211 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4212 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4213 LIBS="$LIBS -lc89"
4214 cat >>confdefs.h <<\EOF
4215#define USE_PIPES 1
4216EOF
4217
4218 cat >>confdefs.h <<\EOF
4219#define SSHD_ACQUIRES_CTTY 1
4220EOF
4221
4222 cat >>confdefs.h <<\EOF
4223#define SETEUID_BREAKS_SETUID 1
4224EOF
4225
4226 cat >>confdefs.h <<\EOF
4227#define BROKEN_SETREUID 1
4228EOF
4229
4230 cat >>confdefs.h <<\EOF
4231#define BROKEN_SETREGID 1
4232EOF
4233
4234 ;;
4235*-sni-sysv*)
4236 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4237 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4238 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4239 IPADDR_IN_DISPLAY=yes
4240 cat >>confdefs.h <<\EOF
4241#define USE_PIPES 1
4242EOF
4243
4244 cat >>confdefs.h <<\EOF
4245#define IP_TOS_IS_BROKEN 1
4246EOF
4247
4248 cat >>confdefs.h <<\EOF
4249#define SSHD_ACQUIRES_CTTY 1
4250EOF
4251
4252 external_path_file=/etc/default/login
4253 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4254 # Attention: always take care to bind libsocket and libnsl before libc,
4255 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4256 ;;
4257*-*-sysv4.2*)
4258 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4259 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4260 cat >>confdefs.h <<\EOF
4261#define USE_PIPES 1
4262EOF
4263
4264 cat >>confdefs.h <<\EOF
4265#define SETEUID_BREAKS_SETUID 1
4266EOF
4267
4268 cat >>confdefs.h <<\EOF
4269#define BROKEN_SETREUID 1
4270EOF
4271
4272 cat >>confdefs.h <<\EOF
4273#define BROKEN_SETREGID 1
4274EOF
4275
4276 ;;
4277*-*-sysv5*)
4278 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4279 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4280 cat >>confdefs.h <<\EOF
4281#define USE_PIPES 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*-*-sysv*)
4298 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4299 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4300 ;;
4301*-*-sco3.2v4*)
4302 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4303 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4304 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4305 RANLIB=true
4306 no_dev_ptmx=1
4307 cat >>confdefs.h <<\EOF
4308#define BROKEN_SYS_TERMIO_H 1
4309EOF
4310
4311 cat >>confdefs.h <<\EOF
4312#define USE_PIPES 1
4313EOF
4314
4315 cat >>confdefs.h <<\EOF
4316#define HAVE_SECUREWARE 1
4317EOF
4318
4319 cat >>confdefs.h <<\EOF
4320#define DISABLE_SHADOW 1
4321EOF
4322
4323 cat >>confdefs.h <<\EOF
4324#define BROKEN_SAVED_UIDS 1
4325EOF
4326
4327 cat >>confdefs.h <<\EOF
4328#define WITH_ABBREV_NO_TTY 1
4329EOF
4330
4331for ac_func in getluid setluid
4332do
4333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4334echo "$as_me:4334: checking for $ac_func" >&5
4335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4336if eval "test \"\${$as_ac_var+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 cat >conftest.$ac_ext <<_ACEOF
4340#line 4340 "configure"
4341#include "confdefs.h"
4342/* System header to define __stub macros and hopefully few prototypes,
4343 which can conflict with char $ac_func (); below. */
4344#include <assert.h>
4345/* Override any gcc2 internal prototype to avoid an error. */
4346#ifdef __cplusplus
4347extern "C"
4348#endif
4349/* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4351char $ac_func ();
4352char (*f) ();
4353
4354int
4355main ()
4356{
4357/* The GNU C library defines this for functions which it implements
4358 to always fail with ENOSYS. Some functions are actually named
4359 something starting with __ and the normal name is an alias. */
4360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4361choke me
4362#else
4363f = $ac_func;
4364#endif
4365
4366 ;
4367 return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext conftest$ac_exeext
4371if { (eval echo "$as_me:4371: \"$ac_link\"") >&5
4372 (eval $ac_link) 2>&5
4373 ac_status=$?
4374 echo "$as_me:4374: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:4377: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:4380: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 eval "$as_ac_var=yes"
4383else
4384 echo "$as_me: failed program was:" >&5
4385cat conftest.$ac_ext >&5
4386eval "$as_ac_var=no"
4387fi
4388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4389fi
4390echo "$as_me:4390: result: `eval echo '${'$as_ac_var'}'`" >&5
4391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4392if test `eval echo '${'$as_ac_var'}'` = yes; then
4393 cat >>confdefs.h <<EOF
4394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4395EOF
4396
4397fi
4398done
4399
4400 MANTYPE=man
4401 do_sco3_extra_lib_check=yes
4402 ;;
4403*-*-sco3.2v5*)
4404 if test -z "$GCC"; then
4405 CFLAGS="$CFLAGS -belf"
4406 fi
4407 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4408 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4409 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4410 no_dev_ptmx=1
4411 cat >>confdefs.h <<\EOF
4412#define USE_PIPES 1
4413EOF
4414
4415 cat >>confdefs.h <<\EOF
4416#define HAVE_SECUREWARE 1
4417EOF
4418
4419 cat >>confdefs.h <<\EOF
4420#define DISABLE_SHADOW 1
4421EOF
4422
4423 cat >>confdefs.h <<\EOF
4424#define DISABLE_FD_PASSING 1
4425EOF
4426
4427 cat >>confdefs.h <<\EOF
4428#define SETEUID_BREAKS_SETUID 1
4429EOF
4430
4431 cat >>confdefs.h <<\EOF
4432#define BROKEN_SETREUID 1
4433EOF
4434
4435 cat >>confdefs.h <<\EOF
4436#define BROKEN_SETREGID 1
4437EOF
4438
4439 cat >>confdefs.h <<\EOF
4440#define WITH_ABBREV_NO_TTY 1
4441EOF
4442
4443for ac_func in getluid setluid
4444do
4445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4446echo "$as_me:4446: checking for $ac_func" >&5
4447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4448if eval "test \"\${$as_ac_var+set}\" = set"; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 cat >conftest.$ac_ext <<_ACEOF
4452#line 4452 "configure"
4453#include "confdefs.h"
4454/* System header to define __stub macros and hopefully few prototypes,
4455 which can conflict with char $ac_func (); below. */
4456#include <assert.h>
4457/* Override any gcc2 internal prototype to avoid an error. */
4458#ifdef __cplusplus
4459extern "C"
4460#endif
4461/* We use char because int might match the return type of a gcc2
4462 builtin and then its argument prototype would still apply. */
4463char $ac_func ();
4464char (*f) ();
4465
4466int
4467main ()
4468{
4469/* The GNU C library defines this for functions which it implements
4470 to always fail with ENOSYS. Some functions are actually named
4471 something starting with __ and the normal name is an alias. */
4472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4473choke me
4474#else
4475f = $ac_func;
4476#endif
4477
4478 ;
4479 return 0;
4480}
4481_ACEOF
4482rm -f conftest.$ac_objext conftest$ac_exeext
4483if { (eval echo "$as_me:4483: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>&5
4485 ac_status=$?
4486 echo "$as_me:4486: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -s conftest$ac_exeext'
4489 { (eval echo "$as_me:4489: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 eval "$as_ac_var=yes"
4495else
4496 echo "$as_me: failed program was:" >&5
4497cat conftest.$ac_ext >&5
4498eval "$as_ac_var=no"
4499fi
4500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501fi
4502echo "$as_me:4502: result: `eval echo '${'$as_ac_var'}'`" >&5
4503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4504if test `eval echo '${'$as_ac_var'}'` = yes; then
4505 cat >>confdefs.h <<EOF
4506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4507EOF
4508
4509fi
4510done
4511
4512 MANTYPE=man
4513 ;;
4514*-*-unicosmk*)
4515 cat >>confdefs.h <<\EOF
4516#define USE_PIPES 1
4517EOF
4518
4519 cat >>confdefs.h <<\EOF
4520#define DISABLE_FD_PASSING 1
4521EOF
4522
4523 LDFLAGS="$LDFLAGS"
4524 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4525 MANTYPE=cat
4526 ;;
4527*-*-unicosmp*)
4528 cat >>confdefs.h <<\EOF
4529#define WITH_ABBREV_NO_TTY 1
4530EOF
4531
4532 cat >>confdefs.h <<\EOF
4533#define USE_PIPES 1
4534EOF
4535
4536 cat >>confdefs.h <<\EOF
4537#define DISABLE_FD_PASSING 1
4538EOF
4539
4540 LDFLAGS="$LDFLAGS"
4541 LIBS="$LIBS -lgen -lacid"
4542 MANTYPE=cat
4543 ;;
4544*-*-unicos*)
4545 cat >>confdefs.h <<\EOF
4546#define USE_PIPES 1
4547EOF
4548
4549 cat >>confdefs.h <<\EOF
4550#define DISABLE_FD_PASSING 1
4551EOF
4552
4553 cat >>confdefs.h <<\EOF
4554#define NO_SSH_LASTLOG 1
4555EOF
4556
4557 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4558 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4559 MANTYPE=cat
4560 ;;
4561*-dec-osf*)
4562 echo "$as_me:4562: checking for Digital Unix SIA" >&5
4563echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4564 no_osfsia=""
4565
4566# Check whether --with-osfsia or --without-osfsia was given.
4567if test "${with_osfsia+set}" = set; then
4568 withval="$with_osfsia"
4569
4570 if test "x$withval" = "xno" ; then
4571 echo "$as_me:4571: result: disabled" >&5
4572echo "${ECHO_T}disabled" >&6
4573 no_osfsia=1
4574 fi
4575
4576fi;
4577 if test -z "$no_osfsia" ; then
4578 if test -f /etc/sia/matrix.conf; then
4579 echo "$as_me:4579: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
4581 cat >>confdefs.h <<\EOF
4582#define HAVE_OSF_SIA 1
4583EOF
4584
4585 cat >>confdefs.h <<\EOF
4586#define DISABLE_LOGIN 1
4587EOF
4588
4589 cat >>confdefs.h <<\EOF
4590#define DISABLE_FD_PASSING 1
4591EOF
4592
4593 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4594 else
4595 echo "$as_me:4595: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597 fi
4598 fi
4599 cat >>confdefs.h <<\EOF
4600#define DISABLE_FD_PASSING 1
4601EOF
4602
4603 cat >>confdefs.h <<\EOF
4604#define BROKEN_GETADDRINFO 1
4605EOF
4606
4607 cat >>confdefs.h <<\EOF
4608#define SETEUID_BREAKS_SETUID 1
4609EOF
4610
4611 cat >>confdefs.h <<\EOF
4612#define BROKEN_SETREUID 1
4613EOF
4614
4615 cat >>confdefs.h <<\EOF
4616#define BROKEN_SETREGID 1
4617EOF
4618
4619 cat >>confdefs.h <<\EOF
4620#define LOCKED_PASSWD_SUBSTR "Nologin"
4621EOF
4622
4623 ;;
4624
4625*-*-nto-qnx)
4626 cat >>confdefs.h <<\EOF
4627#define USE_PIPES 1
4628EOF
4629
4630 cat >>confdefs.h <<\EOF
4631#define NO_X11_UNIX_SOCKETS 1
4632EOF
4633
4634 cat >>confdefs.h <<\EOF
4635#define MISSING_NFDBITS 1
4636EOF
4637
4638 cat >>confdefs.h <<\EOF
4639#define MISSING_HOWMANY 1
4640EOF
4641
4642 cat >>confdefs.h <<\EOF
4643#define MISSING_FD_MASK 1
4644EOF
4645
4646 ;;
4647esac
4648
4649# Allow user to specify flags
4650
4651# Check whether --with-cflags or --without-cflags was given.
4652if test "${with_cflags+set}" = set; then
4653 withval="$with_cflags"
4654
4655 if test "x$withval" != "xno" ; then
4656 CFLAGS="$CFLAGS $withval"
4657 fi
4658
4659fi;
4660
4661# Check whether --with-cppflags or --without-cppflags was given.
4662if test "${with_cppflags+set}" = set; then
4663 withval="$with_cppflags"
4664
4665 if test "x$withval" != "xno"; then
4666 CPPFLAGS="$CPPFLAGS $withval"
4667 fi
4668
4669fi;
4670
4671# Check whether --with-ldflags or --without-ldflags was given.
4672if test "${with_ldflags+set}" = set; then
4673 withval="$with_ldflags"
4674
4675 if test "x$withval" != "xno" ; then
4676 LDFLAGS="$LDFLAGS $withval"
4677 fi
4678
4679fi;
4680
4681# Check whether --with-libs or --without-libs was given.
4682if test "${with_libs+set}" = set; then
4683 withval="$with_libs"
4684
4685 if test "x$withval" != "xno" ; then
4686 LIBS="$LIBS $withval"
4687 fi
4688
4689fi;
4690
4691echo "$as_me:4691: checking compiler and flags for sanity" >&5
4692echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
4693if test "$cross_compiling" = yes; then
4694 { { echo "$as_me:4694: error: cannot run test program while cross compiling" >&5
4695echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4696 { (exit 1); exit 1; }; }
4697else
4698 cat >conftest.$ac_ext <<_ACEOF
4699#line 4699 "configure"
4700#include "confdefs.h"
4701
4702#include <stdio.h>
4703int main(){exit(0);}
4704
4705_ACEOF
4706rm -f conftest$ac_exeext
4707if { (eval echo "$as_me:4707: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>&5
4709 ac_status=$?
4710 echo "$as_me:4710: \$? = $ac_status" >&5
4711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4712 { (eval echo "$as_me:4712: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:4715: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 echo "$as_me:4717: result: yes" >&5
4718echo "${ECHO_T}yes" >&6
4719else
4720 echo "$as_me: program exited with status $ac_status" >&5
4721echo "$as_me: failed program was:" >&5
4722cat conftest.$ac_ext >&5
4723
4724 echo "$as_me:4724: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726 { { echo "$as_me:4726: error: *** compiler cannot create working executables, check config.log ***" >&5
4727echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
4728 { (exit 1); exit 1; }; }
4729
4730fi
4731rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732fi
4733
4734# Checks for header files.
4735
4736for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \
4737 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4738 login_cap.h maillock.h netdb.h netgroup.h \
4739 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4740 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4741 strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \
4742 sys/cdefs.h sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
4743 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
4744 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4745 util.h utime.h utmp.h utmpx.h vis.h
4746do
4747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748echo "$as_me:4748: checking for $ac_header" >&5
4749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754#line 4754 "configure"
4755#include "confdefs.h"
4756#include <$ac_header>
4757_ACEOF
4758if { (eval echo "$as_me:4758: \"$ac_cpp conftest.$ac_ext\"") >&5
4759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760 ac_status=$?
4761 egrep -v '^ *\+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:4764: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null; then
4766 if test -s conftest.err; then
4767 ac_cpp_err=$ac_c_preproc_warn_flag
4768 else
4769 ac_cpp_err=
4770 fi
4771else
4772 ac_cpp_err=yes
4773fi
4774if test -z "$ac_cpp_err"; then
4775 eval "$as_ac_Header=yes"
4776else
4777 echo "$as_me: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 eval "$as_ac_Header=no"
4780fi
4781rm -f conftest.err conftest.$ac_ext
4782fi
4783echo "$as_me:4783: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<EOF
4787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788EOF
4789
4790fi
4791done
4792
4793# Checks for libraries.
4794echo "$as_me:4794: checking for yp_match" >&5
4795echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4796if test "${ac_cv_func_yp_match+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799 cat >conftest.$ac_ext <<_ACEOF
4800#line 4800 "configure"
4801#include "confdefs.h"
4802/* System header to define __stub macros and hopefully few prototypes,
4803 which can conflict with char yp_match (); below. */
4804#include <assert.h>
4805/* Override any gcc2 internal prototype to avoid an error. */
4806#ifdef __cplusplus
4807extern "C"
4808#endif
4809/* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4811char yp_match ();
4812char (*f) ();
4813
4814int
4815main ()
4816{
4817/* The GNU C library defines this for functions which it implements
4818 to always fail with ENOSYS. Some functions are actually named
4819 something starting with __ and the normal name is an alias. */
4820#if defined (__stub_yp_match) || defined (__stub___yp_match)
4821choke me
4822#else
4823f = yp_match;
4824#endif
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830rm -f conftest.$ac_objext conftest$ac_exeext
4831if { (eval echo "$as_me:4831: \"$ac_link\"") >&5
4832 (eval $ac_link) 2>&5
4833 ac_status=$?
4834 echo "$as_me:4834: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -s conftest$ac_exeext'
4837 { (eval echo "$as_me:4837: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:4840: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 ac_cv_func_yp_match=yes
4843else
4844 echo "$as_me: failed program was:" >&5
4845cat conftest.$ac_ext >&5
4846ac_cv_func_yp_match=no
4847fi
4848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4849fi
4850echo "$as_me:4850: result: $ac_cv_func_yp_match" >&5
4851echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4852if test $ac_cv_func_yp_match = yes; then
4853 :
4854else
4855
4856echo "$as_me:4856: checking for yp_match in -lnsl" >&5
4857echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4858if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 ac_check_lib_save_LIBS=$LIBS
4862LIBS="-lnsl $LIBS"
4863cat >conftest.$ac_ext <<_ACEOF
4864#line 4864 "configure"
4865#include "confdefs.h"
4866
4867/* Override any gcc2 internal prototype to avoid an error. */
4868#ifdef __cplusplus
4869extern "C"
4870#endif
4871/* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4873char yp_match ();
4874int
4875main ()
4876{
4877yp_match ();
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext conftest$ac_exeext
4883if { (eval echo "$as_me:4883: \"$ac_link\"") >&5
4884 (eval $ac_link) 2>&5
4885 ac_status=$?
4886 echo "$as_me:4886: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -s conftest$ac_exeext'
4889 { (eval echo "$as_me:4889: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:4892: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 ac_cv_lib_nsl_yp_match=yes
4895else
4896 echo "$as_me: failed program was:" >&5
4897cat conftest.$ac_ext >&5
4898ac_cv_lib_nsl_yp_match=no
4899fi
4900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4901LIBS=$ac_check_lib_save_LIBS
4902fi
4903echo "$as_me:4903: result: $ac_cv_lib_nsl_yp_match" >&5
4904echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4905if test $ac_cv_lib_nsl_yp_match = yes; then
4906 cat >>confdefs.h <<EOF
4907#define HAVE_LIBNSL 1
4908EOF
4909
4910 LIBS="-lnsl $LIBS"
4911
4912fi
4913
4914fi
4915
4916echo "$as_me:4916: checking for setsockopt" >&5
4917echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4918if test "${ac_cv_func_setsockopt+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 cat >conftest.$ac_ext <<_ACEOF
4922#line 4922 "configure"
4923#include "confdefs.h"
4924/* System header to define __stub macros and hopefully few prototypes,
4925 which can conflict with char setsockopt (); below. */
4926#include <assert.h>
4927/* Override any gcc2 internal prototype to avoid an error. */
4928#ifdef __cplusplus
4929extern "C"
4930#endif
4931/* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4933char setsockopt ();
4934char (*f) ();
4935
4936int
4937main ()
4938{
4939/* The GNU C library defines this for functions which it implements
4940 to always fail with ENOSYS. Some functions are actually named
4941 something starting with __ and the normal name is an alias. */
4942#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4943choke me
4944#else
4945f = setsockopt;
4946#endif
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952rm -f conftest.$ac_objext conftest$ac_exeext
4953if { (eval echo "$as_me:4953: \"$ac_link\"") >&5
4954 (eval $ac_link) 2>&5
4955 ac_status=$?
4956 echo "$as_me:4956: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -s conftest$ac_exeext'
4959 { (eval echo "$as_me:4959: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:4962: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_cv_func_setsockopt=yes
4965else
4966 echo "$as_me: failed program was:" >&5
4967cat conftest.$ac_ext >&5
4968ac_cv_func_setsockopt=no
4969fi
4970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4971fi
4972echo "$as_me:4972: result: $ac_cv_func_setsockopt" >&5
4973echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4974if test $ac_cv_func_setsockopt = yes; then
4975 :
4976else
4977
4978echo "$as_me:4978: checking for setsockopt in -lsocket" >&5
4979echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4980if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983 ac_check_lib_save_LIBS=$LIBS
4984LIBS="-lsocket $LIBS"
4985cat >conftest.$ac_ext <<_ACEOF
4986#line 4986 "configure"
4987#include "confdefs.h"
4988
4989/* Override any gcc2 internal prototype to avoid an error. */
4990#ifdef __cplusplus
4991extern "C"
4992#endif
4993/* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995char setsockopt ();
4996int
4997main ()
4998{
4999setsockopt ();
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext conftest$ac_exeext
5005if { (eval echo "$as_me:5005: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5007 ac_status=$?
5008 echo "$as_me:5008: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:5011: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:5014: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_socket_setsockopt=yes
5017else
5018 echo "$as_me: failed program was:" >&5
5019cat conftest.$ac_ext >&5
5020ac_cv_lib_socket_setsockopt=no
5021fi
5022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023LIBS=$ac_check_lib_save_LIBS
5024fi
5025echo "$as_me:5025: result: $ac_cv_lib_socket_setsockopt" >&5
5026echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5027if test $ac_cv_lib_socket_setsockopt = yes; then
5028 cat >>confdefs.h <<EOF
5029#define HAVE_LIBSOCKET 1
5030EOF
5031
5032 LIBS="-lsocket $LIBS"
5033
5034fi
5035
5036fi
5037
5038if test "x$with_tcp_wrappers" != "xno" ; then
5039 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5040 echo "$as_me:5040: checking for innetgr in -lrpc" >&5
5041echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5042if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045 ac_check_lib_save_LIBS=$LIBS
5046LIBS="-lrpc -lyp -lrpc $LIBS"
5047cat >conftest.$ac_ext <<_ACEOF
5048#line 5048 "configure"
5049#include "confdefs.h"
5050
5051/* Override any gcc2 internal prototype to avoid an error. */
5052#ifdef __cplusplus
5053extern "C"
5054#endif
5055/* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057char innetgr ();
5058int
5059main ()
5060{
5061innetgr ();
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066rm -f conftest.$ac_objext conftest$ac_exeext
5067if { (eval echo "$as_me:5067: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>&5
5069 ac_status=$?
5070 echo "$as_me:5070: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -s conftest$ac_exeext'
5073 { (eval echo "$as_me:5073: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:5076: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_lib_rpc_innetgr=yes
5079else
5080 echo "$as_me: failed program was:" >&5
5081cat conftest.$ac_ext >&5
5082ac_cv_lib_rpc_innetgr=no
5083fi
5084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5085LIBS=$ac_check_lib_save_LIBS
5086fi
5087echo "$as_me:5087: result: $ac_cv_lib_rpc_innetgr" >&5
5088echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5089if test $ac_cv_lib_rpc_innetgr = yes; then
5090 LIBS="-lrpc -lyp -lrpc $LIBS"
5091fi
5092
5093 fi
5094fi
5095
5096for ac_func in dirname
5097do
5098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5099echo "$as_me:5099: checking for $ac_func" >&5
5100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5101if eval "test \"\${$as_ac_var+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105#line 5105 "configure"
5106#include "confdefs.h"
5107/* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char $ac_func (); below. */
5109#include <assert.h>
5110/* Override any gcc2 internal prototype to avoid an error. */
5111#ifdef __cplusplus
5112extern "C"
5113#endif
5114/* We use char because int might match the return type of a gcc2
5115 builtin and then its argument prototype would still apply. */
5116char $ac_func ();
5117char (*f) ();
5118
5119int
5120main ()
5121{
5122/* The GNU C library defines this for functions which it implements
5123 to always fail with ENOSYS. Some functions are actually named
5124 something starting with __ and the normal name is an alias. */
5125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5126choke me
5127#else
5128f = $ac_func;
5129#endif
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext conftest$ac_exeext
5136if { (eval echo "$as_me:5136: \"$ac_link\"") >&5
5137 (eval $ac_link) 2>&5
5138 ac_status=$?
5139 echo "$as_me:5139: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest$ac_exeext'
5142 { (eval echo "$as_me:5142: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:5145: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 eval "$as_ac_var=yes"
5148else
5149 echo "$as_me: failed program was:" >&5
5150cat conftest.$ac_ext >&5
5151eval "$as_ac_var=no"
5152fi
5153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5154fi
5155echo "$as_me:5155: result: `eval echo '${'$as_ac_var'}'`" >&5
5156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5157if test `eval echo '${'$as_ac_var'}'` = yes; then
5158 cat >>confdefs.h <<EOF
5159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5160EOF
5161
5162for ac_header in libgen.h
5163do
5164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5165echo "$as_me:5165: checking for $ac_header" >&5
5166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5167if eval "test \"\${$as_ac_Header+set}\" = set"; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170 cat >conftest.$ac_ext <<_ACEOF
5171#line 5171 "configure"
5172#include "confdefs.h"
5173#include <$ac_header>
5174_ACEOF
5175if { (eval echo "$as_me:5175: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177 ac_status=$?
5178 egrep -v '^ *\+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:5181: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_c_preproc_warn_flag
5185 else
5186 ac_cpp_err=
5187 fi
5188else
5189 ac_cpp_err=yes
5190fi
5191if test -z "$ac_cpp_err"; then
5192 eval "$as_ac_Header=yes"
5193else
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5196 eval "$as_ac_Header=no"
5197fi
5198rm -f conftest.err conftest.$ac_ext
5199fi
5200echo "$as_me:5200: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<EOF
5204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205EOF
5206
5207fi
5208done
5209
5210else
5211
5212 echo "$as_me:5212: checking for dirname in -lgen" >&5
5213echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
5214if test "${ac_cv_lib_gen_dirname+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217 ac_check_lib_save_LIBS=$LIBS
5218LIBS="-lgen $LIBS"
5219cat >conftest.$ac_ext <<_ACEOF
5220#line 5220 "configure"
5221#include "confdefs.h"
5222
5223/* Override any gcc2 internal prototype to avoid an error. */
5224#ifdef __cplusplus
5225extern "C"
5226#endif
5227/* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5229char dirname ();
5230int
5231main ()
5232{
5233dirname ();
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238rm -f conftest.$ac_objext conftest$ac_exeext
5239if { (eval echo "$as_me:5239: \"$ac_link\"") >&5
5240 (eval $ac_link) 2>&5
5241 ac_status=$?
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest$ac_exeext'
5245 { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_lib_gen_dirname=yes
5251else
5252 echo "$as_me: failed program was:" >&5
5253cat conftest.$ac_ext >&5
5254ac_cv_lib_gen_dirname=no
5255fi
5256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5257LIBS=$ac_check_lib_save_LIBS
5258fi
5259echo "$as_me:5259: result: $ac_cv_lib_gen_dirname" >&5
5260echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
5261if test $ac_cv_lib_gen_dirname = yes; then
5262
5263 echo "$as_me:5263: checking for broken dirname" >&5
5264echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
5265if test "${ac_cv_have_broken_dirname+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268
5269 save_LIBS="$LIBS"
5270 LIBS="$LIBS -lgen"
5271 if test "$cross_compiling" = yes; then
5272 { { echo "$as_me:5272: error: cannot run test program while cross compiling" >&5
5273echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5274 { (exit 1); exit 1; }; }
5275else
5276 cat >conftest.$ac_ext <<_ACEOF
5277#line 5277 "configure"
5278#include "confdefs.h"
5279
5280#include <libgen.h>
5281#include <string.h>
5282
5283int main(int argc, char **argv) {
5284 char *s, buf[32];
5285
5286 strncpy(buf,"/etc", 32);
5287 s = dirname(buf);
5288 if (!s || strncmp(s, "/", 32) != 0) {
5289 exit(1);
5290 } else {
5291 exit(0);
5292 }
5293}
5294
5295_ACEOF
5296rm -f conftest$ac_exeext
5297if { (eval echo "$as_me:5297: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>&5
5299 ac_status=$?
5300 echo "$as_me:5300: \$? = $ac_status" >&5
5301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5302 { (eval echo "$as_me:5302: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:5305: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_cv_have_broken_dirname="no"
5308else
5309 echo "$as_me: program exited with status $ac_status" >&5
5310echo "$as_me: failed program was:" >&5
5311cat conftest.$ac_ext >&5
5312 ac_cv_have_broken_dirname="yes"
5313
5314fi
5315rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316fi
5317 LIBS="$save_LIBS"
5318
5319fi
5320echo "$as_me:5320: result: $ac_cv_have_broken_dirname" >&5
5321echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
5322 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
5323 LIBS="$LIBS -lgen"
5324 cat >>confdefs.h <<\EOF
5325#define HAVE_DIRNAME 1
5326EOF
5327
5328for ac_header in libgen.h
5329do
5330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331echo "$as_me:5331: checking for $ac_header" >&5
5332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 cat >conftest.$ac_ext <<_ACEOF
5337#line 5337 "configure"
5338#include "confdefs.h"
5339#include <$ac_header>
5340_ACEOF
5341if { (eval echo "$as_me:5341: \"$ac_cpp conftest.$ac_ext\"") >&5
5342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5343 ac_status=$?
5344 egrep -v '^ *\+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:5347: \$? = $ac_status" >&5
5348 (exit $ac_status); } >/dev/null; then
5349 if test -s conftest.err; then
5350 ac_cpp_err=$ac_c_preproc_warn_flag
5351 else
5352 ac_cpp_err=
5353 fi
5354else
5355 ac_cpp_err=yes
5356fi
5357if test -z "$ac_cpp_err"; then
5358 eval "$as_ac_Header=yes"
5359else
5360 echo "$as_me: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5362 eval "$as_ac_Header=no"
5363fi
5364rm -f conftest.err conftest.$ac_ext
5365fi
5366echo "$as_me:5366: result: `eval echo '${'$as_ac_Header'}'`" >&5
5367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5368if test `eval echo '${'$as_ac_Header'}'` = yes; then
5369 cat >>confdefs.h <<EOF
5370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5371EOF
5372
5373fi
5374done
5375
5376 fi
5377
5378fi
5379
5380fi
5381done
5382
5383echo "$as_me:5383: checking for getspnam" >&5
5384echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5385if test "${ac_cv_func_getspnam+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 cat >conftest.$ac_ext <<_ACEOF
5389#line 5389 "configure"
5390#include "confdefs.h"
5391/* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char getspnam (); below. */
5393#include <assert.h>
5394/* Override any gcc2 internal prototype to avoid an error. */
5395#ifdef __cplusplus
5396extern "C"
5397#endif
5398/* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5400char getspnam ();
5401char (*f) ();
5402
5403int
5404main ()
5405{
5406/* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */
5409#if defined (__stub_getspnam) || defined (__stub___getspnam)
5410choke me
5411#else
5412f = getspnam;
5413#endif
5414
5415 ;
5416 return 0;
5417}
5418_ACEOF
5419rm -f conftest.$ac_objext conftest$ac_exeext
5420if { (eval echo "$as_me:5420: \"$ac_link\"") >&5
5421 (eval $ac_link) 2>&5
5422 ac_status=$?
5423 echo "$as_me:5423: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (eval echo "$as_me:5426: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:5429: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_func_getspnam=yes
5432else
5433 echo "$as_me: failed program was:" >&5
5434cat conftest.$ac_ext >&5
5435ac_cv_func_getspnam=no
5436fi
5437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5438fi
5439echo "$as_me:5439: result: $ac_cv_func_getspnam" >&5
5440echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5441if test $ac_cv_func_getspnam = yes; then
5442 :
5443else
5444 echo "$as_me:5444: checking for getspnam in -lgen" >&5
5445echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5446if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 ac_check_lib_save_LIBS=$LIBS
5450LIBS="-lgen $LIBS"
5451cat >conftest.$ac_ext <<_ACEOF
5452#line 5452 "configure"
5453#include "confdefs.h"
5454
5455/* Override any gcc2 internal prototype to avoid an error. */
5456#ifdef __cplusplus
5457extern "C"
5458#endif
5459/* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461char getspnam ();
5462int
5463main ()
5464{
5465getspnam ();
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext conftest$ac_exeext
5471if { (eval echo "$as_me:5471: \"$ac_link\"") >&5
5472 (eval $ac_link) 2>&5
5473 ac_status=$?
5474 echo "$as_me:5474: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest$ac_exeext'
5477 { (eval echo "$as_me:5477: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:5480: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_lib_gen_getspnam=yes
5483else
5484 echo "$as_me: failed program was:" >&5
5485cat conftest.$ac_ext >&5
5486ac_cv_lib_gen_getspnam=no
5487fi
5488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5489LIBS=$ac_check_lib_save_LIBS
5490fi
5491echo "$as_me:5491: result: $ac_cv_lib_gen_getspnam" >&5
5492echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5493if test $ac_cv_lib_gen_getspnam = yes; then
5494 LIBS="$LIBS -lgen"
5495fi
5496
5497fi
5498
5499echo "$as_me:5499: checking for library containing basename" >&5
5500echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
5501if test "${ac_cv_search_basename+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 ac_func_search_save_LIBS=$LIBS
5505ac_cv_search_basename=no
5506cat >conftest.$ac_ext <<_ACEOF
5507#line 5507 "configure"
5508#include "confdefs.h"
5509
5510/* Override any gcc2 internal prototype to avoid an error. */
5511#ifdef __cplusplus
5512extern "C"
5513#endif
5514/* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516char basename ();
5517int
5518main ()
5519{
5520basename ();
5521 ;
5522 return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext conftest$ac_exeext
5526if { (eval echo "$as_me:5526: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>&5
5528 ac_status=$?
5529 echo "$as_me:5529: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:5532: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:5535: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_search_basename="none required"
5538else
5539 echo "$as_me: failed program was:" >&5
5540cat conftest.$ac_ext >&5
5541fi
5542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543if test "$ac_cv_search_basename" = no; then
5544 for ac_lib in gen; do
5545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5546 cat >conftest.$ac_ext <<_ACEOF
5547#line 5547 "configure"
5548#include "confdefs.h"
5549
5550/* Override any gcc2 internal prototype to avoid an error. */
5551#ifdef __cplusplus
5552extern "C"
5553#endif
5554/* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5556char basename ();
5557int
5558main ()
5559{
5560basename ();
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext conftest$ac_exeext
5566if { (eval echo "$as_me:5566: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5568 ac_status=$?
5569 echo "$as_me:5569: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:5572: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:5575: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_search_basename="-l$ac_lib"
5578break
5579else
5580 echo "$as_me: failed program was:" >&5
5581cat conftest.$ac_ext >&5
5582fi
5583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5584 done
5585fi
5586LIBS=$ac_func_search_save_LIBS
5587fi
5588echo "$as_me:5588: result: $ac_cv_search_basename" >&5
5589echo "${ECHO_T}$ac_cv_search_basename" >&6
5590if test "$ac_cv_search_basename" != no; then
5591 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
5592 cat >>confdefs.h <<\EOF
5593#define HAVE_BASENAME 1
5594EOF
5595
5596fi
5597
5598# Check whether --with-rpath or --without-rpath was given.
5599if test "${with_rpath+set}" = set; then
5600 withval="$with_rpath"
5601
5602 if test "x$withval" = "xno" ; then
5603 need_dash_r=""
5604 fi
5605 if test "x$withval" = "xyes" ; then
5606 need_dash_r=1
5607 fi
5608
5609fi;
5610
5611# Check whether --with-zlib or --without-zlib was given.
5612if test "${with_zlib+set}" = set; then
5613 withval="$with_zlib"
5614
5615 if test "x$withval" = "xno" ; then
5616 { { echo "$as_me:5616: error: *** zlib is required ***" >&5
5617echo "$as_me: error: *** zlib is required ***" >&2;}
5618 { (exit 1); exit 1; }; }
5619 fi
5620 if test -d "$withval/lib"; then
5621 if test -n "${need_dash_r}"; then
5622 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5623 else
5624 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5625 fi
5626 else
5627 if test -n "${need_dash_r}"; then
5628 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5629 else
5630 LDFLAGS="-L${withval} ${LDFLAGS}"
5631 fi
5632 fi
5633 if test -d "$withval/include"; then
5634 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5635 else
5636 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5637 fi
5638
5639fi;
5640
5641echo "$as_me:5641: checking for deflate in -lz" >&5
5642echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5643if test "${ac_cv_lib_z_deflate+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 ac_check_lib_save_LIBS=$LIBS
5647LIBS="-lz $LIBS"
5648cat >conftest.$ac_ext <<_ACEOF
5649#line 5649 "configure"
5650#include "confdefs.h"
5651
5652/* Override any gcc2 internal prototype to avoid an error. */
5653#ifdef __cplusplus
5654extern "C"
5655#endif
5656/* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5658char deflate ();
5659int
5660main ()
5661{
5662deflate ();
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667rm -f conftest.$ac_objext conftest$ac_exeext
5668if { (eval echo "$as_me:5668: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>&5
5670 ac_status=$?
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:5674: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:5677: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_lib_z_deflate=yes
5680else
5681 echo "$as_me: failed program was:" >&5
5682cat conftest.$ac_ext >&5
5683ac_cv_lib_z_deflate=no
5684fi
5685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5686LIBS=$ac_check_lib_save_LIBS
5687fi
5688echo "$as_me:5688: result: $ac_cv_lib_z_deflate" >&5
5689echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5690if test $ac_cv_lib_z_deflate = yes; then
5691 cat >>confdefs.h <<EOF
5692#define HAVE_LIBZ 1
5693EOF
5694
5695 LIBS="-lz $LIBS"
5696
5697else
5698 { { echo "$as_me:5698: error: *** zlib missing - please install first or check config.log ***" >&5
5699echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5700 { (exit 1); exit 1; }; }
5701fi
5702
5703echo "$as_me:5703: checking for strcasecmp" >&5
5704echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5705if test "${ac_cv_func_strcasecmp+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 cat >conftest.$ac_ext <<_ACEOF
5709#line 5709 "configure"
5710#include "confdefs.h"
5711/* System header to define __stub macros and hopefully few prototypes,
5712 which can conflict with char strcasecmp (); below. */
5713#include <assert.h>
5714/* Override any gcc2 internal prototype to avoid an error. */
5715#ifdef __cplusplus
5716extern "C"
5717#endif
5718/* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5720char strcasecmp ();
5721char (*f) ();
5722
5723int
5724main ()
5725{
5726/* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5730choke me
5731#else
5732f = strcasecmp;
5733#endif
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext conftest$ac_exeext
5740if { (eval echo "$as_me:5740: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5742 ac_status=$?
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:5746: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:5749: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_func_strcasecmp=yes
5752else
5753 echo "$as_me: failed program was:" >&5
5754cat conftest.$ac_ext >&5
5755ac_cv_func_strcasecmp=no
5756fi
5757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758fi
5759echo "$as_me:5759: result: $ac_cv_func_strcasecmp" >&5
5760echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5761if test $ac_cv_func_strcasecmp = yes; then
5762 :
5763else
5764 echo "$as_me:5764: checking for strcasecmp in -lresolv" >&5
5765echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5766if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769 ac_check_lib_save_LIBS=$LIBS
5770LIBS="-lresolv $LIBS"
5771cat >conftest.$ac_ext <<_ACEOF
5772#line 5772 "configure"
5773#include "confdefs.h"
5774
5775/* Override any gcc2 internal prototype to avoid an error. */
5776#ifdef __cplusplus
5777extern "C"
5778#endif
5779/* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */
5781char strcasecmp ();
5782int
5783main ()
5784{
5785strcasecmp ();
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext conftest$ac_exeext
5791if { (eval echo "$as_me:5791: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>&5
5793 ac_status=$?
5794 echo "$as_me:5794: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -s conftest$ac_exeext'
5797 { (eval echo "$as_me:5797: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:5800: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_lib_resolv_strcasecmp=yes
5803else
5804 echo "$as_me: failed program was:" >&5
5805cat conftest.$ac_ext >&5
5806ac_cv_lib_resolv_strcasecmp=no
5807fi
5808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809LIBS=$ac_check_lib_save_LIBS
5810fi
5811echo "$as_me:5811: result: $ac_cv_lib_resolv_strcasecmp" >&5
5812echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5813if test $ac_cv_lib_resolv_strcasecmp = yes; then
5814 LIBS="$LIBS -lresolv"
5815fi
5816
5817fi
5818
5819echo "$as_me:5819: checking for utimes" >&5
5820echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5821if test "${ac_cv_func_utimes+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 cat >conftest.$ac_ext <<_ACEOF
5825#line 5825 "configure"
5826#include "confdefs.h"
5827/* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char utimes (); below. */
5829#include <assert.h>
5830/* Override any gcc2 internal prototype to avoid an error. */
5831#ifdef __cplusplus
5832extern "C"
5833#endif
5834/* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5836char utimes ();
5837char (*f) ();
5838
5839int
5840main ()
5841{
5842/* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845#if defined (__stub_utimes) || defined (__stub___utimes)
5846choke me
5847#else
5848f = utimes;
5849#endif
5850
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext conftest$ac_exeext
5856if { (eval echo "$as_me:5856: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5858 ac_status=$?
5859 echo "$as_me:5859: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest$ac_exeext'
5862 { (eval echo "$as_me:5862: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:5865: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_cv_func_utimes=yes
5868else
5869 echo "$as_me: failed program was:" >&5
5870cat conftest.$ac_ext >&5
5871ac_cv_func_utimes=no
5872fi
5873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5874fi
5875echo "$as_me:5875: result: $ac_cv_func_utimes" >&5
5876echo "${ECHO_T}$ac_cv_func_utimes" >&6
5877if test $ac_cv_func_utimes = yes; then
5878 :
5879else
5880 echo "$as_me:5880: checking for utimes in -lc89" >&5
5881echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5882if test "${ac_cv_lib_c89_utimes+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 ac_check_lib_save_LIBS=$LIBS
5886LIBS="-lc89 $LIBS"
5887cat >conftest.$ac_ext <<_ACEOF
5888#line 5888 "configure"
5889#include "confdefs.h"
5890
5891/* Override any gcc2 internal prototype to avoid an error. */
5892#ifdef __cplusplus
5893extern "C"
5894#endif
5895/* We use char because int might match the return type of a gcc2
5896 builtin and then its argument prototype would still apply. */
5897char utimes ();
5898int
5899main ()
5900{
5901utimes ();
5902 ;
5903 return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext conftest$ac_exeext
5907if { (eval echo "$as_me:5907: \"$ac_link\"") >&5
5908 (eval $ac_link) 2>&5
5909 ac_status=$?
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:5913: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:5916: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_lib_c89_utimes=yes
5919else
5920 echo "$as_me: failed program was:" >&5
5921cat conftest.$ac_ext >&5
5922ac_cv_lib_c89_utimes=no
5923fi
5924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5925LIBS=$ac_check_lib_save_LIBS
5926fi
5927echo "$as_me:5927: result: $ac_cv_lib_c89_utimes" >&5
5928echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5929if test $ac_cv_lib_c89_utimes = yes; then
5930 cat >>confdefs.h <<\EOF
5931#define HAVE_UTIMES 1
5932EOF
5933
5934 LIBS="$LIBS -lc89"
5935fi
5936
5937fi
5938
5939for ac_header in libutil.h
5940do
5941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942echo "$as_me:5942: checking for $ac_header" >&5
5943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5944if eval "test \"\${$as_ac_Header+set}\" = set"; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 cat >conftest.$ac_ext <<_ACEOF
5948#line 5948 "configure"
5949#include "confdefs.h"
5950#include <$ac_header>
5951_ACEOF
5952if { (eval echo "$as_me:5952: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 egrep -v '^ *\+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:5958: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_c_preproc_warn_flag
5962 else
5963 ac_cpp_err=
5964 fi
5965else
5966 ac_cpp_err=yes
5967fi
5968if test -z "$ac_cpp_err"; then
5969 eval "$as_ac_Header=yes"
5970else
5971 echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 eval "$as_ac_Header=no"
5974fi
5975rm -f conftest.err conftest.$ac_ext
5976fi
5977echo "$as_me:5977: result: `eval echo '${'$as_ac_Header'}'`" >&5
5978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5979if test `eval echo '${'$as_ac_Header'}'` = yes; then
5980 cat >>confdefs.h <<EOF
5981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982EOF
5983
5984fi
5985done
5986
5987echo "$as_me:5987: checking for library containing login" >&5
5988echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5989if test "${ac_cv_search_login+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 ac_func_search_save_LIBS=$LIBS
5993ac_cv_search_login=no
5994cat >conftest.$ac_ext <<_ACEOF
5995#line 5995 "configure"
5996#include "confdefs.h"
5997
5998/* Override any gcc2 internal prototype to avoid an error. */
5999#ifdef __cplusplus
6000extern "C"
6001#endif
6002/* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6004char login ();
6005int
6006main ()
6007{
6008login ();
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (eval echo "$as_me:6014: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6016 ac_status=$?
6017 echo "$as_me:6017: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_search_login="none required"
6026else
6027 echo "$as_me: failed program was:" >&5
6028cat conftest.$ac_ext >&5
6029fi
6030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6031if test "$ac_cv_search_login" = no; then
6032 for ac_lib in util bsd; do
6033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6034 cat >conftest.$ac_ext <<_ACEOF
6035#line 6035 "configure"
6036#include "confdefs.h"
6037
6038/* Override any gcc2 internal prototype to avoid an error. */
6039#ifdef __cplusplus
6040extern "C"
6041#endif
6042/* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6044char login ();
6045int
6046main ()
6047{
6048login ();
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext conftest$ac_exeext
6054if { (eval echo "$as_me:6054: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>&5
6056 ac_status=$?
6057 echo "$as_me:6057: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest$ac_exeext'
6060 { (eval echo "$as_me:6060: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:6063: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_search_login="-l$ac_lib"
6066break
6067else
6068 echo "$as_me: failed program was:" >&5
6069cat conftest.$ac_ext >&5
6070fi
6071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6072 done
6073fi
6074LIBS=$ac_func_search_save_LIBS
6075fi
6076echo "$as_me:6076: result: $ac_cv_search_login" >&5
6077echo "${ECHO_T}$ac_cv_search_login" >&6
6078if test "$ac_cv_search_login" != no; then
6079 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6080 cat >>confdefs.h <<\EOF
6081#define HAVE_LOGIN 1
6082EOF
6083
6084fi
6085
6086for ac_func in logout updwtmp logwtmp
6087do
6088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6089echo "$as_me:6089: checking for $ac_func" >&5
6090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6091if eval "test \"\${$as_ac_var+set}\" = set"; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 cat >conftest.$ac_ext <<_ACEOF
6095#line 6095 "configure"
6096#include "confdefs.h"
6097/* System header to define __stub macros and hopefully few prototypes,
6098 which can conflict with char $ac_func (); below. */
6099#include <assert.h>
6100/* Override any gcc2 internal prototype to avoid an error. */
6101#ifdef __cplusplus
6102extern "C"
6103#endif
6104/* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106char $ac_func ();
6107char (*f) ();
6108
6109int
6110main ()
6111{
6112/* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116choke me
6117#else
6118f = $ac_func;
6119#endif
6120
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125rm -f conftest.$ac_objext conftest$ac_exeext
6126if { (eval echo "$as_me:6126: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6128 ac_status=$?
6129 echo "$as_me:6129: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:6132: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:6135: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 eval "$as_ac_var=yes"
6138else
6139 echo "$as_me: failed program was:" >&5
6140cat conftest.$ac_ext >&5
6141eval "$as_ac_var=no"
6142fi
6143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6144fi
6145echo "$as_me:6145: result: `eval echo '${'$as_ac_var'}'`" >&5
6146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6147if test `eval echo '${'$as_ac_var'}'` = yes; then
6148 cat >>confdefs.h <<EOF
6149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6150EOF
6151
6152fi
6153done
6154
6155for ac_func in strftime
6156do
6157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6158echo "$as_me:6158: checking for $ac_func" >&5
6159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6160if eval "test \"\${$as_ac_var+set}\" = set"; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163 cat >conftest.$ac_ext <<_ACEOF
6164#line 6164 "configure"
6165#include "confdefs.h"
6166/* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func (); below. */
6168#include <assert.h>
6169/* Override any gcc2 internal prototype to avoid an error. */
6170#ifdef __cplusplus
6171extern "C"
6172#endif
6173/* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175char $ac_func ();
6176char (*f) ();
6177
6178int
6179main ()
6180{
6181/* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185choke me
6186#else
6187f = $ac_func;
6188#endif
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194rm -f conftest.$ac_objext conftest$ac_exeext
6195if { (eval echo "$as_me:6195: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
6197 ac_status=$?
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:6201: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:6204: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 eval "$as_ac_var=yes"
6207else
6208 echo "$as_me: failed program was:" >&5
6209cat conftest.$ac_ext >&5
6210eval "$as_ac_var=no"
6211fi
6212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6213fi
6214echo "$as_me:6214: result: `eval echo '${'$as_ac_var'}'`" >&5
6215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6216if test `eval echo '${'$as_ac_var'}'` = yes; then
6217 cat >>confdefs.h <<EOF
6218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6219EOF
6220
6221else
6222 # strftime is in -lintl on SCO UNIX.
6223echo "$as_me:6223: checking for strftime in -lintl" >&5
6224echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6225if test "${ac_cv_lib_intl_strftime+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228 ac_check_lib_save_LIBS=$LIBS
6229LIBS="-lintl $LIBS"
6230cat >conftest.$ac_ext <<_ACEOF
6231#line 6231 "configure"
6232#include "confdefs.h"
6233
6234/* Override any gcc2 internal prototype to avoid an error. */
6235#ifdef __cplusplus
6236extern "C"
6237#endif
6238/* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240char strftime ();
6241int
6242main ()
6243{
6244strftime ();
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext conftest$ac_exeext
6250if { (eval echo "$as_me:6250: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>&5
6252 ac_status=$?
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:6256: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 ac_cv_lib_intl_strftime=yes
6262else
6263 echo "$as_me: failed program was:" >&5
6264cat conftest.$ac_ext >&5
6265ac_cv_lib_intl_strftime=no
6266fi
6267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6268LIBS=$ac_check_lib_save_LIBS
6269fi
6270echo "$as_me:6270: result: $ac_cv_lib_intl_strftime" >&5
6271echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6272if test $ac_cv_lib_intl_strftime = yes; then
6273 cat >>confdefs.h <<\EOF
6274#define HAVE_STRFTIME 1
6275EOF
6276
6277LIBS="-lintl $LIBS"
6278fi
6279
6280fi
6281done
6282
6283# Check for ALTDIRFUNC glob() extension
6284echo "$as_me:6284: checking for GLOB_ALTDIRFUNC support" >&5
6285echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6286cat >conftest.$ac_ext <<_ACEOF
6287#line 6287 "configure"
6288#include "confdefs.h"
6289
6290 #include <glob.h>
6291 #ifdef GLOB_ALTDIRFUNC
6292 FOUNDIT
6293 #endif
6294
6295_ACEOF
6296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 egrep "FOUNDIT" >/dev/null 2>&1; then
6298
6299 cat >>confdefs.h <<\EOF
6300#define GLOB_HAS_ALTDIRFUNC 1
6301EOF
6302
6303 echo "$as_me:6303: result: yes" >&5
6304echo "${ECHO_T}yes" >&6
6305
6306else
6307
6308 echo "$as_me:6308: result: no" >&5
6309echo "${ECHO_T}no" >&6
6310
6311fi
6312rm -f conftest*
6313
6314# Check for g.gl_matchc glob() extension
6315echo "$as_me:6315: checking for gl_matchc field in glob_t" >&5
6316echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6317cat >conftest.$ac_ext <<_ACEOF
6318#line 6318 "configure"
6319#include "confdefs.h"
6320
6321 #include <glob.h>
6322 int main(void){glob_t g; g.gl_matchc = 1;}
6323
6324_ACEOF
6325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326 egrep "FOUNDIT" >/dev/null 2>&1; then
6327
6328 cat >>confdefs.h <<\EOF
6329#define GLOB_HAS_GL_MATCHC 1
6330EOF
6331
6332 echo "$as_me:6332: result: yes" >&5
6333echo "${ECHO_T}yes" >&6
6334
6335else
6336
6337 echo "$as_me:6337: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339
6340fi
6341rm -f conftest*
6342
6343echo "$as_me:6343: checking whether struct dirent allocates space for d_name" >&5
6344echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6345if test "$cross_compiling" = yes; then
6346 { { echo "$as_me:6346: error: cannot run test program while cross compiling" >&5
6347echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6348 { (exit 1); exit 1; }; }
6349else
6350 cat >conftest.$ac_ext <<_ACEOF
6351#line 6351 "configure"
6352#include "confdefs.h"
6353
6354#include <sys/types.h>
6355#include <dirent.h>
6356int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6357
6358_ACEOF
6359rm -f conftest$ac_exeext
6360if { (eval echo "$as_me:6360: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6362 ac_status=$?
6363 echo "$as_me:6363: \$? = $ac_status" >&5
6364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6365 { (eval echo "$as_me:6365: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 echo "$as_me:6370: result: yes" >&5
6371echo "${ECHO_T}yes" >&6
6372else
6373 echo "$as_me: program exited with status $ac_status" >&5
6374echo "$as_me: failed program was:" >&5
6375cat conftest.$ac_ext >&5
6376
6377 echo "$as_me:6377: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 cat >>confdefs.h <<\EOF
6380#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6381EOF
6382
6383fi
6384rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6385fi
6386
6387# Check whether user wants S/Key support
6388SKEY_MSG="no"
6389
6390# Check whether --with-skey or --without-skey was given.
6391if test "${with_skey+set}" = set; then
6392 withval="$with_skey"
6393
6394 if test "x$withval" != "xno" ; then
6395
6396 if test "x$withval" != "xyes" ; then
6397 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6398 LDFLAGS="$LDFLAGS -L${withval}/lib"
6399 fi
6400
6401 cat >>confdefs.h <<\EOF
6402#define SKEY 1
6403EOF
6404
6405 LIBS="-lskey $LIBS"
6406 SKEY_MSG="yes"
6407
6408 echo "$as_me:6408: checking for s/key support" >&5
6409echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6410 if test "$cross_compiling" = yes; then
6411 { { echo "$as_me:6411: error: cannot run test program while cross compiling" >&5
6412echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6413 { (exit 1); exit 1; }; }
6414else
6415 cat >conftest.$ac_ext <<_ACEOF
6416#line 6416 "configure"
6417#include "confdefs.h"
6418
6419#include <stdio.h>
6420#include <skey.h>
6421int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6422
6423_ACEOF
6424rm -f conftest$ac_exeext
6425if { (eval echo "$as_me:6425: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6430 { (eval echo "$as_me:6430: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 echo "$as_me:6435: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437else
6438 echo "$as_me: program exited with status $ac_status" >&5
6439echo "$as_me: failed program was:" >&5
6440cat conftest.$ac_ext >&5
6441
6442 echo "$as_me:6442: result: no" >&5
6443echo "${ECHO_T}no" >&6
6444 { { echo "$as_me:6444: error: ** Incomplete or missing s/key libraries." >&5
6445echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6446 { (exit 1); exit 1; }; }
6447
6448fi
6449rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6450fi
6451 fi
6452
6453fi;
6454
6455# Check whether user wants TCP wrappers support
6456TCPW_MSG="no"
6457
6458# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6459if test "${with_tcp_wrappers+set}" = set; then
6460 withval="$with_tcp_wrappers"
6461
6462 if test "x$withval" != "xno" ; then
6463 saved_LIBS="$LIBS"
6464 saved_LDFLAGS="$LDFLAGS"
6465 saved_CPPFLAGS="$CPPFLAGS"
6466 if test -n "${withval}" -a "${withval}" != "yes"; then
6467 if test -d "${withval}/lib"; then
6468 if test -n "${need_dash_r}"; then
6469 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6470 else
6471 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6472 fi
6473 else
6474 if test -n "${need_dash_r}"; then
6475 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6476 else
6477 LDFLAGS="-L${withval} ${LDFLAGS}"
6478 fi
6479 fi
6480 if test -d "${withval}/include"; then
6481 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6482 else
6483 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6484 fi
6485 fi
6486 LIBWRAP="-lwrap"
6487 LIBS="$LIBWRAP $LIBS"
6488 echo "$as_me:6488: checking for libwrap" >&5
6489echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6490 cat >conftest.$ac_ext <<_ACEOF
6491#line 6491 "configure"
6492#include "confdefs.h"
6493
6494#include <tcpd.h>
6495 int deny_severity = 0, allow_severity = 0;
6496
6497int
6498main ()
6499{
6500hosts_access(0);
6501 ;
6502 return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext conftest$ac_exeext
6506if { (eval echo "$as_me:6506: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>&5
6508 ac_status=$?
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:6512: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517
6518 echo "$as_me:6518: result: yes" >&5
6519echo "${ECHO_T}yes" >&6
6520 cat >>confdefs.h <<\EOF
6521#define LIBWRAP 1
6522EOF
6523
6524 TCPW_MSG="yes"
6525
6526else
6527 echo "$as_me: failed program was:" >&5
6528cat conftest.$ac_ext >&5
6529
6530 { { echo "$as_me:6530: error: *** libwrap missing" >&5
6531echo "$as_me: error: *** libwrap missing" >&2;}
6532 { (exit 1); exit 1; }; }
6533
6534fi
6535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS="$saved_LIBS"
6537 fi
6538
6539fi;
6540
6541for ac_func in \
6542 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename \
6543 bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
6544 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6545 getpeereid _getpty getrlimit getttyent glob inet_aton \
6546 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
6547 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
6548 pstat readpassphrase realpath recvmsg rresvport_af sendmsg \
6549 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
6550 setproctitle setregid setresgid setresuid setreuid setrlimit \
6551 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
6552 strlcat strlcpy strmode strnvis sysconf tcgetpgrp \
6553 truncate utimes vhangup vsnprintf waitpid \
6554
6555do
6556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6557echo "$as_me:6557: checking for $ac_func" >&5
6558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6559if eval "test \"\${$as_ac_var+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 cat >conftest.$ac_ext <<_ACEOF
6563#line 6563 "configure"
6564#include "confdefs.h"
6565/* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func (); below. */
6567#include <assert.h>
6568/* Override any gcc2 internal prototype to avoid an error. */
6569#ifdef __cplusplus
6570extern "C"
6571#endif
6572/* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6574char $ac_func ();
6575char (*f) ();
6576
6577int
6578main ()
6579{
6580/* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584choke me
6585#else
6586f = $ac_func;
6587#endif
6588
6589 ;
6590 return 0;
6591}
6592_ACEOF
6593rm -f conftest.$ac_objext conftest$ac_exeext
6594if { (eval echo "$as_me:6594: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 echo "$as_me:6597: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest$ac_exeext'
6600 { (eval echo "$as_me:6600: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:6603: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 eval "$as_ac_var=yes"
6606else
6607 echo "$as_me: failed program was:" >&5
6608cat conftest.$ac_ext >&5
6609eval "$as_ac_var=no"
6610fi
6611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612fi
6613echo "$as_me:6613: result: `eval echo '${'$as_ac_var'}'`" >&5
6614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6615if test `eval echo '${'$as_ac_var'}'` = yes; then
6616 cat >>confdefs.h <<EOF
6617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6618EOF
6619
6620fi
6621done
6622
6623# IRIX has a const char return value for gai_strerror()
6624
6625for ac_func in gai_strerror
6626do
6627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6628echo "$as_me:6628: checking for $ac_func" >&5
6629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6630if eval "test \"\${$as_ac_var+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 cat >conftest.$ac_ext <<_ACEOF
6634#line 6634 "configure"
6635#include "confdefs.h"
6636/* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char $ac_func (); below. */
6638#include <assert.h>
6639/* Override any gcc2 internal prototype to avoid an error. */
6640#ifdef __cplusplus
6641extern "C"
6642#endif
6643/* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645char $ac_func ();
6646char (*f) ();
6647
6648int
6649main ()
6650{
6651/* The GNU C library defines this for functions which it implements
6652 to always fail with ENOSYS. Some functions are actually named
6653 something starting with __ and the normal name is an alias. */
6654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6655choke me
6656#else
6657f = $ac_func;
6658#endif
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext conftest$ac_exeext
6665if { (eval echo "$as_me:6665: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6667 ac_status=$?
6668 echo "$as_me:6668: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:6671: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:6674: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 eval "$as_ac_var=yes"
6677else
6678 echo "$as_me: failed program was:" >&5
6679cat conftest.$ac_ext >&5
6680eval "$as_ac_var=no"
6681fi
6682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6683fi
6684echo "$as_me:6684: result: `eval echo '${'$as_ac_var'}'`" >&5
6685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6686if test `eval echo '${'$as_ac_var'}'` = yes; then
6687 cat >>confdefs.h <<EOF
6688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6689EOF
6690
6691 cat >>confdefs.h <<\EOF
6692#define HAVE_GAI_STRERROR 1
6693EOF
6694
6695 cat >conftest.$ac_ext <<_ACEOF
6696#line 6696 "configure"
6697#include "confdefs.h"
6698
6699#include <sys/types.h>
6700#include <sys/socket.h>
6701#include <netdb.h>
6702
6703const char *gai_strerror(int);
6704int
6705main ()
6706{
6707
6708char *str;
6709
6710str = gai_strerror(0);
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715rm -f conftest.$ac_objext
6716if { (eval echo "$as_me:6716: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:6722: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727
6728cat >>confdefs.h <<\EOF
6729#define HAVE_CONST_GAI_STRERROR_PROTO 1
6730EOF
6731
6732else
6733 echo "$as_me: failed program was:" >&5
6734cat conftest.$ac_ext >&5
6735fi
6736rm -f conftest.$ac_objext conftest.$ac_ext
6737fi
6738done
6739
6740echo "$as_me:6740: checking for library containing nanosleep" >&5
6741echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
6742if test "${ac_cv_search_nanosleep+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 ac_func_search_save_LIBS=$LIBS
6746ac_cv_search_nanosleep=no
6747cat >conftest.$ac_ext <<_ACEOF
6748#line 6748 "configure"
6749#include "confdefs.h"
6750
6751/* Override any gcc2 internal prototype to avoid an error. */
6752#ifdef __cplusplus
6753extern "C"
6754#endif
6755/* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6757char nanosleep ();
6758int
6759main ()
6760{
6761nanosleep ();
6762 ;
6763 return 0;
6764}
6765_ACEOF
6766rm -f conftest.$ac_objext conftest$ac_exeext
6767if { (eval echo "$as_me:6767: \"$ac_link\"") >&5
6768 (eval $ac_link) 2>&5
6769 ac_status=$?
6770 echo "$as_me:6770: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:6773: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:6776: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_search_nanosleep="none required"
6779else
6780 echo "$as_me: failed program was:" >&5
6781cat conftest.$ac_ext >&5
6782fi
6783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6784if test "$ac_cv_search_nanosleep" = no; then
6785 for ac_lib in rt posix4; do
6786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6787 cat >conftest.$ac_ext <<_ACEOF
6788#line 6788 "configure"
6789#include "confdefs.h"
6790
6791/* Override any gcc2 internal prototype to avoid an error. */
6792#ifdef __cplusplus
6793extern "C"
6794#endif
6795/* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797char nanosleep ();
6798int
6799main ()
6800{
6801nanosleep ();
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:6807: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>&5
6809 ac_status=$?
6810 echo "$as_me:6810: \$? = $ac_status" >&5
6811 (exit $ac_status); } &&
6812 { ac_try='test -s conftest$ac_exeext'
6813 { (eval echo "$as_me:6813: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:6816: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_cv_search_nanosleep="-l$ac_lib"
6819break
6820else
6821 echo "$as_me: failed program was:" >&5
6822cat conftest.$ac_ext >&5
6823fi
6824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6825 done
6826fi
6827LIBS=$ac_func_search_save_LIBS
6828fi
6829echo "$as_me:6829: result: $ac_cv_search_nanosleep" >&5
6830echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
6831if test "$ac_cv_search_nanosleep" != no; then
6832 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
6833 cat >>confdefs.h <<\EOF
6834#define HAVE_NANOSLEEP 1
6835EOF
6836
6837fi
6838
6839echo "$as_me:6839: checking for ANSI C header files" >&5
6840echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6841if test "${ac_cv_header_stdc+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844 cat >conftest.$ac_ext <<_ACEOF
6845#line 6845 "configure"
6846#include "confdefs.h"
6847#include <stdlib.h>
6848#include <stdarg.h>
6849#include <string.h>
6850#include <float.h>
6851
6852_ACEOF
6853if { (eval echo "$as_me:6853: \"$ac_cpp conftest.$ac_ext\"") >&5
6854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855 ac_status=$?
6856 egrep -v '^ *\+' conftest.er1 >conftest.err
6857 rm -f conftest.er1
6858 cat conftest.err >&5
6859 echo "$as_me:6859: \$? = $ac_status" >&5
6860 (exit $ac_status); } >/dev/null; then
6861 if test -s conftest.err; then
6862 ac_cpp_err=$ac_c_preproc_warn_flag
6863 else
6864 ac_cpp_err=
6865 fi
6866else
6867 ac_cpp_err=yes
6868fi
6869if test -z "$ac_cpp_err"; then
6870 ac_cv_header_stdc=yes
6871else
6872 echo "$as_me: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 ac_cv_header_stdc=no
6875fi
6876rm -f conftest.err conftest.$ac_ext
6877
6878if test $ac_cv_header_stdc = yes; then
6879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6880 cat >conftest.$ac_ext <<_ACEOF
6881#line 6881 "configure"
6882#include "confdefs.h"
6883#include <string.h>
6884
6885_ACEOF
6886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 egrep "memchr" >/dev/null 2>&1; then
6888 :
6889else
6890 ac_cv_header_stdc=no
6891fi
6892rm -f conftest*
6893
6894fi
6895
6896if test $ac_cv_header_stdc = yes; then
6897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6898 cat >conftest.$ac_ext <<_ACEOF
6899#line 6899 "configure"
6900#include "confdefs.h"
6901#include <stdlib.h>
6902
6903_ACEOF
6904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 egrep "free" >/dev/null 2>&1; then
6906 :
6907else
6908 ac_cv_header_stdc=no
6909fi
6910rm -f conftest*
6911
6912fi
6913
6914if test $ac_cv_header_stdc = yes; then
6915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6916 if test "$cross_compiling" = yes; then
6917 :
6918else
6919 cat >conftest.$ac_ext <<_ACEOF
6920#line 6920 "configure"
6921#include "confdefs.h"
6922#include <ctype.h>
6923#if ((' ' & 0x0FF) == 0x020)
6924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6926#else
6927# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6928 || ('j' <= (c) && (c) <= 'r') \
6929 || ('s' <= (c) && (c) <= 'z'))
6930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6931#endif
6932
6933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6934int
6935main ()
6936{
6937 int i;
6938 for (i = 0; i < 256; i++)
6939 if (XOR (islower (i), ISLOWER (i))
6940 || toupper (i) != TOUPPER (i))
6941 exit(2);
6942 exit (0);
6943}
6944_ACEOF
6945rm -f conftest$ac_exeext
6946if { (eval echo "$as_me:6946: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>&5
6948 ac_status=$?
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6951 { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 :
6957else
6958 echo "$as_me: program exited with status $ac_status" >&5
6959echo "$as_me: failed program was:" >&5
6960cat conftest.$ac_ext >&5
6961ac_cv_header_stdc=no
6962fi
6963rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6964fi
6965fi
6966fi
6967echo "$as_me:6967: result: $ac_cv_header_stdc" >&5
6968echo "${ECHO_T}$ac_cv_header_stdc" >&6
6969if test $ac_cv_header_stdc = yes; then
6970
6971cat >>confdefs.h <<\EOF
6972#define STDC_HEADERS 1
6973EOF
6974
6975fi
6976
6977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6978
6979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6980 inttypes.h stdint.h unistd.h
6981do
6982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6983echo "$as_me:6983: checking for $ac_header" >&5
6984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
6989#line 6989 "configure"
6990#include "confdefs.h"
6991$ac_includes_default
6992#include <$ac_header>
6993_ACEOF
6994rm -f conftest.$ac_objext
6995if { (eval echo "$as_me:6995: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:7001: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 eval "$as_ac_Header=yes"
7007else
7008 echo "$as_me: failed program was:" >&5
7009cat conftest.$ac_ext >&5
7010eval "$as_ac_Header=no"
7011fi
7012rm -f conftest.$ac_objext conftest.$ac_ext
7013fi
7014echo "$as_me:7014: result: `eval echo '${'$as_ac_Header'}'`" >&5
7015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016if test `eval echo '${'$as_ac_Header'}'` = yes; then
7017 cat >>confdefs.h <<EOF
7018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7019EOF
7020
7021fi
7022done
7023
7024echo "$as_me:7024: checking whether strsep is declared" >&5
7025echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7026if test "${ac_cv_have_decl_strsep+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 cat >conftest.$ac_ext <<_ACEOF
7030#line 7030 "configure"
7031#include "confdefs.h"
7032$ac_includes_default
7033int
7034main ()
7035{
7036#ifndef strsep
7037 char *p = (char *) strsep;
7038#endif
7039
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext
7045if { (eval echo "$as_me:7045: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>&5
7047 ac_status=$?
7048 echo "$as_me:7048: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -s conftest.$ac_objext'
7051 { (eval echo "$as_me:7051: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:7054: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_have_decl_strsep=yes
7057else
7058 echo "$as_me: failed program was:" >&5
7059cat conftest.$ac_ext >&5
7060ac_cv_have_decl_strsep=no
7061fi
7062rm -f conftest.$ac_objext conftest.$ac_ext
7063fi
7064echo "$as_me:7064: result: $ac_cv_have_decl_strsep" >&5
7065echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7066if test $ac_cv_have_decl_strsep = yes; then
7067
7068for ac_func in strsep
7069do
7070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071echo "$as_me:7071: checking for $ac_func" >&5
7072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7073if eval "test \"\${$as_ac_var+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 cat >conftest.$ac_ext <<_ACEOF
7077#line 7077 "configure"
7078#include "confdefs.h"
7079/* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func (); below. */
7081#include <assert.h>
7082/* Override any gcc2 internal prototype to avoid an error. */
7083#ifdef __cplusplus
7084extern "C"
7085#endif
7086/* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088char $ac_func ();
7089char (*f) ();
7090
7091int
7092main ()
7093{
7094/* The GNU C library defines this for functions which it implements
7095 to always fail with ENOSYS. Some functions are actually named
7096 something starting with __ and the normal name is an alias. */
7097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7098choke me
7099#else
7100f = $ac_func;
7101#endif
7102
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext conftest$ac_exeext
7108if { (eval echo "$as_me:7108: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -s conftest$ac_exeext'
7114 { (eval echo "$as_me:7114: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 eval "$as_ac_var=yes"
7120else
7121 echo "$as_me: failed program was:" >&5
7122cat conftest.$ac_ext >&5
7123eval "$as_ac_var=no"
7124fi
7125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7126fi
7127echo "$as_me:7127: result: `eval echo '${'$as_ac_var'}'`" >&5
7128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7129if test `eval echo '${'$as_ac_var'}'` = yes; then
7130 cat >>confdefs.h <<EOF
7131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7132EOF
7133
7134fi
7135done
7136
7137fi
7138
7139echo "$as_me:7139: checking whether getrusage is declared" >&5
7140echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
7141if test "${ac_cv_have_decl_getrusage+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 cat >conftest.$ac_ext <<_ACEOF
7145#line 7145 "configure"
7146#include "confdefs.h"
7147$ac_includes_default
7148int
7149main ()
7150{
7151#ifndef getrusage
7152 char *p = (char *) getrusage;
7153#endif
7154
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext
7160if { (eval echo "$as_me:7160: \"$ac_compile\"") >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 echo "$as_me:7163: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest.$ac_objext'
7166 { (eval echo "$as_me:7166: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 ac_cv_have_decl_getrusage=yes
7172else
7173 echo "$as_me: failed program was:" >&5
7174cat conftest.$ac_ext >&5
7175ac_cv_have_decl_getrusage=no
7176fi
7177rm -f conftest.$ac_objext conftest.$ac_ext
7178fi
7179echo "$as_me:7179: result: $ac_cv_have_decl_getrusage" >&5
7180echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
7181if test $ac_cv_have_decl_getrusage = yes; then
7182
7183for ac_func in getrusage
7184do
7185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7186echo "$as_me:7186: checking for $ac_func" >&5
7187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7188if eval "test \"\${$as_ac_var+set}\" = set"; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 cat >conftest.$ac_ext <<_ACEOF
7192#line 7192 "configure"
7193#include "confdefs.h"
7194/* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func (); below. */
7196#include <assert.h>
7197/* Override any gcc2 internal prototype to avoid an error. */
7198#ifdef __cplusplus
7199extern "C"
7200#endif
7201/* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7203char $ac_func ();
7204char (*f) ();
7205
7206int
7207main ()
7208{
7209/* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */
7212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213choke me
7214#else
7215f = $ac_func;
7216#endif
7217
7218 ;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest.$ac_objext conftest$ac_exeext
7223if { (eval echo "$as_me:7223: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>&5
7225 ac_status=$?
7226 echo "$as_me:7226: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -s conftest$ac_exeext'
7229 { (eval echo "$as_me:7229: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 eval "$as_ac_var=yes"
7235else
7236 echo "$as_me: failed program was:" >&5
7237cat conftest.$ac_ext >&5
7238eval "$as_ac_var=no"
7239fi
7240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241fi
7242echo "$as_me:7242: result: `eval echo '${'$as_ac_var'}'`" >&5
7243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7244if test `eval echo '${'$as_ac_var'}'` = yes; then
7245 cat >>confdefs.h <<EOF
7246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7247EOF
7248
7249fi
7250done
7251
7252fi
7253
7254echo "$as_me:7254: checking whether tcsendbreak is declared" >&5
7255echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
7256if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 cat >conftest.$ac_ext <<_ACEOF
7260#line 7260 "configure"
7261#include "confdefs.h"
7262#include <termios.h>
7263
7264int
7265main ()
7266{
7267#ifndef tcsendbreak
7268 char *p = (char *) tcsendbreak;
7269#endif
7270
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext
7276if { (eval echo "$as_me:7276: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 echo "$as_me:7279: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -s conftest.$ac_objext'
7282 { (eval echo "$as_me:7282: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:7285: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 ac_cv_have_decl_tcsendbreak=yes
7288else
7289 echo "$as_me: failed program was:" >&5
7290cat conftest.$ac_ext >&5
7291ac_cv_have_decl_tcsendbreak=no
7292fi
7293rm -f conftest.$ac_objext conftest.$ac_ext
7294fi
7295echo "$as_me:7295: result: $ac_cv_have_decl_tcsendbreak" >&5
7296echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
7297if test $ac_cv_have_decl_tcsendbreak = yes; then
7298 cat >>confdefs.h <<\EOF
7299#define HAVE_TCSENDBREAK 1
7300EOF
7301
7302else
7303
7304for ac_func in tcsendbreak
7305do
7306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307echo "$as_me:7307: checking for $ac_func" >&5
7308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 cat >conftest.$ac_ext <<_ACEOF
7313#line 7313 "configure"
7314#include "confdefs.h"
7315/* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func (); below. */
7317#include <assert.h>
7318/* Override any gcc2 internal prototype to avoid an error. */
7319#ifdef __cplusplus
7320extern "C"
7321#endif
7322/* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7324char $ac_func ();
7325char (*f) ();
7326
7327int
7328main ()
7329{
7330/* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7334choke me
7335#else
7336f = $ac_func;
7337#endif
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext conftest$ac_exeext
7344if { (eval echo "$as_me:7344: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:7350: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7356else
7357 echo "$as_me: failed program was:" >&5
7358cat conftest.$ac_ext >&5
7359eval "$as_ac_var=no"
7360fi
7361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362fi
7363echo "$as_me:7363: result: `eval echo '${'$as_ac_var'}'`" >&5
7364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7365if test `eval echo '${'$as_ac_var'}'` = yes; then
7366 cat >>confdefs.h <<EOF
7367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7368EOF
7369
7370fi
7371done
7372
7373fi
7374
7375for ac_func in gettimeofday time
7376do
7377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7378echo "$as_me:7378: checking for $ac_func" >&5
7379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_var+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 cat >conftest.$ac_ext <<_ACEOF
7384#line 7384 "configure"
7385#include "confdefs.h"
7386/* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char $ac_func (); below. */
7388#include <assert.h>
7389/* Override any gcc2 internal prototype to avoid an error. */
7390#ifdef __cplusplus
7391extern "C"
7392#endif
7393/* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395char $ac_func ();
7396char (*f) ();
7397
7398int
7399main ()
7400{
7401/* The GNU C library defines this for functions which it implements
7402 to always fail with ENOSYS. Some functions are actually named
7403 something starting with __ and the normal name is an alias. */
7404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7405choke me
7406#else
7407f = $ac_func;
7408#endif
7409
7410 ;
7411 return 0;
7412}
7413_ACEOF
7414rm -f conftest.$ac_objext conftest$ac_exeext
7415if { (eval echo "$as_me:7415: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7417 ac_status=$?
7418 echo "$as_me:7418: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -s conftest$ac_exeext'
7421 { (eval echo "$as_me:7421: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:7424: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 eval "$as_ac_var=yes"
7427else
7428 echo "$as_me: failed program was:" >&5
7429cat conftest.$ac_ext >&5
7430eval "$as_ac_var=no"
7431fi
7432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7433fi
7434echo "$as_me:7434: result: `eval echo '${'$as_ac_var'}'`" >&5
7435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7436if test `eval echo '${'$as_ac_var'}'` = yes; then
7437 cat >>confdefs.h <<EOF
7438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439EOF
7440
7441fi
7442done
7443
7444for ac_func in endutent getutent getutid getutline pututline setutent
7445do
7446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7447echo "$as_me:7447: checking for $ac_func" >&5
7448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7449if eval "test \"\${$as_ac_var+set}\" = set"; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452 cat >conftest.$ac_ext <<_ACEOF
7453#line 7453 "configure"
7454#include "confdefs.h"
7455/* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func (); below. */
7457#include <assert.h>
7458/* Override any gcc2 internal prototype to avoid an error. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462/* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464char $ac_func ();
7465char (*f) ();
7466
7467int
7468main ()
7469{
7470/* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474choke me
7475#else
7476f = $ac_func;
7477#endif
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext conftest$ac_exeext
7484if { (eval echo "$as_me:7484: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>&5
7486 ac_status=$?
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest$ac_exeext'
7490 { (eval echo "$as_me:7490: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:7493: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 eval "$as_ac_var=yes"
7496else
7497 echo "$as_me: failed program was:" >&5
7498cat conftest.$ac_ext >&5
7499eval "$as_ac_var=no"
7500fi
7501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7502fi
7503echo "$as_me:7503: result: `eval echo '${'$as_ac_var'}'`" >&5
7504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7505if test `eval echo '${'$as_ac_var'}'` = yes; then
7506 cat >>confdefs.h <<EOF
7507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7508EOF
7509
7510fi
7511done
7512
7513for ac_func in utmpname
7514do
7515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7516echo "$as_me:7516: checking for $ac_func" >&5
7517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7518if eval "test \"\${$as_ac_var+set}\" = set"; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 cat >conftest.$ac_ext <<_ACEOF
7522#line 7522 "configure"
7523#include "confdefs.h"
7524/* System header to define __stub macros and hopefully few prototypes,
7525 which can conflict with char $ac_func (); below. */
7526#include <assert.h>
7527/* Override any gcc2 internal prototype to avoid an error. */
7528#ifdef __cplusplus
7529extern "C"
7530#endif
7531/* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7533char $ac_func ();
7534char (*f) ();
7535
7536int
7537main ()
7538{
7539/* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7543choke me
7544#else
7545f = $ac_func;
7546#endif
7547
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (eval echo "$as_me:7553: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:7556: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:7559: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:7562: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 eval "$as_ac_var=yes"
7565else
7566 echo "$as_me: failed program was:" >&5
7567cat conftest.$ac_ext >&5
7568eval "$as_ac_var=no"
7569fi
7570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571fi
7572echo "$as_me:7572: result: `eval echo '${'$as_ac_var'}'`" >&5
7573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7574if test `eval echo '${'$as_ac_var'}'` = yes; then
7575 cat >>confdefs.h <<EOF
7576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7577EOF
7578
7579fi
7580done
7581
7582for ac_func in endutxent getutxent getutxid getutxline pututxline
7583do
7584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7585echo "$as_me:7585: checking for $ac_func" >&5
7586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7587if eval "test \"\${$as_ac_var+set}\" = set"; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590 cat >conftest.$ac_ext <<_ACEOF
7591#line 7591 "configure"
7592#include "confdefs.h"
7593/* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char $ac_func (); below. */
7595#include <assert.h>
7596/* Override any gcc2 internal prototype to avoid an error. */
7597#ifdef __cplusplus
7598extern "C"
7599#endif
7600/* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7602char $ac_func ();
7603char (*f) ();
7604
7605int
7606main ()
7607{
7608/* The GNU C library defines this for functions which it implements
7609 to always fail with ENOSYS. Some functions are actually named
7610 something starting with __ and the normal name is an alias. */
7611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7612choke me
7613#else
7614f = $ac_func;
7615#endif
7616
7617 ;
7618 return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext conftest$ac_exeext
7622if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7624 ac_status=$?
7625 echo "$as_me:7625: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:7631: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 eval "$as_ac_var=yes"
7634else
7635 echo "$as_me: failed program was:" >&5
7636cat conftest.$ac_ext >&5
7637eval "$as_ac_var=no"
7638fi
7639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640fi
7641echo "$as_me:7641: result: `eval echo '${'$as_ac_var'}'`" >&5
7642echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7643if test `eval echo '${'$as_ac_var'}'` = yes; then
7644 cat >>confdefs.h <<EOF
7645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7646EOF
7647
7648fi
7649done
7650
7651for ac_func in setutxent utmpxname
7652do
7653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7654echo "$as_me:7654: checking for $ac_func" >&5
7655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7656if eval "test \"\${$as_ac_var+set}\" = set"; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659 cat >conftest.$ac_ext <<_ACEOF
7660#line 7660 "configure"
7661#include "confdefs.h"
7662/* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below. */
7664#include <assert.h>
7665/* Override any gcc2 internal prototype to avoid an error. */
7666#ifdef __cplusplus
7667extern "C"
7668#endif
7669/* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671char $ac_func ();
7672char (*f) ();
7673
7674int
7675main ()
7676{
7677/* The GNU C library defines this for functions which it implements
7678 to always fail with ENOSYS. Some functions are actually named
7679 something starting with __ and the normal name is an alias. */
7680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7681choke me
7682#else
7683f = $ac_func;
7684#endif
7685
7686 ;
7687 return 0;
7688}
7689_ACEOF
7690rm -f conftest.$ac_objext conftest$ac_exeext
7691if { (eval echo "$as_me:7691: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>&5
7693 ac_status=$?
7694 echo "$as_me:7694: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:7697: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 eval "$as_ac_var=yes"
7703else
7704 echo "$as_me: failed program was:" >&5
7705cat conftest.$ac_ext >&5
7706eval "$as_ac_var=no"
7707fi
7708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7709fi
7710echo "$as_me:7710: result: `eval echo '${'$as_ac_var'}'`" >&5
7711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7712if test `eval echo '${'$as_ac_var'}'` = yes; then
7713 cat >>confdefs.h <<EOF
7714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715EOF
7716
7717fi
7718done
7719
7720echo "$as_me:7720: checking for daemon" >&5
7721echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7722if test "${ac_cv_func_daemon+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725 cat >conftest.$ac_ext <<_ACEOF
7726#line 7726 "configure"
7727#include "confdefs.h"
7728/* System header to define __stub macros and hopefully few prototypes,
7729 which can conflict with char daemon (); below. */
7730#include <assert.h>
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734#endif
7735/* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737char daemon ();
7738char (*f) ();
7739
7740int
7741main ()
7742{
7743/* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7746#if defined (__stub_daemon) || defined (__stub___daemon)
7747choke me
7748#else
7749f = daemon;
7750#endif
7751
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756rm -f conftest.$ac_objext conftest$ac_exeext
7757if { (eval echo "$as_me:7757: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>&5
7759 ac_status=$?
7760 echo "$as_me:7760: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:7763: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_func_daemon=yes
7769else
7770 echo "$as_me: failed program was:" >&5
7771cat conftest.$ac_ext >&5
7772ac_cv_func_daemon=no
7773fi
7774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7775fi
7776echo "$as_me:7776: result: $ac_cv_func_daemon" >&5
7777echo "${ECHO_T}$ac_cv_func_daemon" >&6
7778if test $ac_cv_func_daemon = yes; then
7779 cat >>confdefs.h <<\EOF
7780#define HAVE_DAEMON 1
7781EOF
7782
7783else
7784 echo "$as_me:7784: checking for daemon in -lbsd" >&5
7785echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7786if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 ac_check_lib_save_LIBS=$LIBS
7790LIBS="-lbsd $LIBS"
7791cat >conftest.$ac_ext <<_ACEOF
7792#line 7792 "configure"
7793#include "confdefs.h"
7794
7795/* Override any gcc2 internal prototype to avoid an error. */
7796#ifdef __cplusplus
7797extern "C"
7798#endif
7799/* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801char daemon ();
7802int
7803main ()
7804{
7805daemon ();
7806 ;
7807 return 0;
7808}
7809_ACEOF
7810rm -f conftest.$ac_objext conftest$ac_exeext
7811if { (eval echo "$as_me:7811: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>&5
7813 ac_status=$?
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -s conftest$ac_exeext'
7817 { (eval echo "$as_me:7817: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_lib_bsd_daemon=yes
7823else
7824 echo "$as_me: failed program was:" >&5
7825cat conftest.$ac_ext >&5
7826ac_cv_lib_bsd_daemon=no
7827fi
7828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829LIBS=$ac_check_lib_save_LIBS
7830fi
7831echo "$as_me:7831: result: $ac_cv_lib_bsd_daemon" >&5
7832echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7833if test $ac_cv_lib_bsd_daemon = yes; then
7834 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF
7835#define HAVE_DAEMON 1
7836EOF
7837
7838fi
7839
7840fi
7841
7842echo "$as_me:7842: checking for getpagesize" >&5
7843echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7844if test "${ac_cv_func_getpagesize+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 cat >conftest.$ac_ext <<_ACEOF
7848#line 7848 "configure"
7849#include "confdefs.h"
7850/* System header to define __stub macros and hopefully few prototypes,
7851 which can conflict with char getpagesize (); below. */
7852#include <assert.h>
7853/* Override any gcc2 internal prototype to avoid an error. */
7854#ifdef __cplusplus
7855extern "C"
7856#endif
7857/* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7859char getpagesize ();
7860char (*f) ();
7861
7862int
7863main ()
7864{
7865/* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7869choke me
7870#else
7871f = getpagesize;
7872#endif
7873
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878rm -f conftest.$ac_objext conftest$ac_exeext
7879if { (eval echo "$as_me:7879: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7881 ac_status=$?
7882 echo "$as_me:7882: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:7885: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:7888: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_getpagesize=yes
7891else
7892 echo "$as_me: failed program was:" >&5
7893cat conftest.$ac_ext >&5
7894ac_cv_func_getpagesize=no
7895fi
7896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7897fi
7898echo "$as_me:7898: result: $ac_cv_func_getpagesize" >&5
7899echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7900if test $ac_cv_func_getpagesize = yes; then
7901 cat >>confdefs.h <<\EOF
7902#define HAVE_GETPAGESIZE 1
7903EOF
7904
7905else
7906 echo "$as_me:7906: checking for getpagesize in -lucb" >&5
7907echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7908if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 ac_check_lib_save_LIBS=$LIBS
7912LIBS="-lucb $LIBS"
7913cat >conftest.$ac_ext <<_ACEOF
7914#line 7914 "configure"
7915#include "confdefs.h"
7916
7917/* Override any gcc2 internal prototype to avoid an error. */
7918#ifdef __cplusplus
7919extern "C"
7920#endif
7921/* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7923char getpagesize ();
7924int
7925main ()
7926{
7927getpagesize ();
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext conftest$ac_exeext
7933if { (eval echo "$as_me:7933: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7935 ac_status=$?
7936 echo "$as_me:7936: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:7939: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:7942: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_lib_ucb_getpagesize=yes
7945else
7946 echo "$as_me: failed program was:" >&5
7947cat conftest.$ac_ext >&5
7948ac_cv_lib_ucb_getpagesize=no
7949fi
7950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7951LIBS=$ac_check_lib_save_LIBS
7952fi
7953echo "$as_me:7953: result: $ac_cv_lib_ucb_getpagesize" >&5
7954echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7955if test $ac_cv_lib_ucb_getpagesize = yes; then
7956 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF
7957#define HAVE_GETPAGESIZE 1
7958EOF
7959
7960fi
7961
7962fi
7963
7964# Check for broken snprintf
7965if test "x$ac_cv_func_snprintf" = "xyes" ; then
7966 echo "$as_me:7966: checking whether snprintf correctly terminates long strings" >&5
7967echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7968 if test "$cross_compiling" = yes; then
7969 { { echo "$as_me:7969: error: cannot run test program while cross compiling" >&5
7970echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7971 { (exit 1); exit 1; }; }
7972else
7973 cat >conftest.$ac_ext <<_ACEOF
7974#line 7974 "configure"
7975#include "confdefs.h"
7976
7977#include <stdio.h>
7978int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
7979
7980_ACEOF
7981rm -f conftest$ac_exeext
7982if { (eval echo "$as_me:7982: \"$ac_link\"") >&5
7983 (eval $ac_link) 2>&5
7984 ac_status=$?
7985 echo "$as_me:7985: \$? = $ac_status" >&5
7986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7987 { (eval echo "$as_me:7987: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 echo "$as_me:7992: result: yes" >&5
7993echo "${ECHO_T}yes" >&6
7994else
7995 echo "$as_me: program exited with status $ac_status" >&5
7996echo "$as_me: failed program was:" >&5
7997cat conftest.$ac_ext >&5
7998
7999 echo "$as_me:7999: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001 cat >>confdefs.h <<\EOF
8002#define BROKEN_SNPRINTF 1
8003EOF
8004
8005 { echo "$as_me:8005: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
8006echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
8007
8008fi
8009rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8010fi
8011fi
8012
8013if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8014echo "$as_me:8014: checking for (overly) strict mkstemp" >&5
8015echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8016if test "$cross_compiling" = yes; then
8017
8018 echo "$as_me:8018: result: yes" >&5
8019echo "${ECHO_T}yes" >&6
8020 cat >>confdefs.h <<\EOF
8021#define HAVE_STRICT_MKSTEMP 1
8022EOF
8023
8024else
8025 cat >conftest.$ac_ext <<_ACEOF
8026#line 8026 "configure"
8027#include "confdefs.h"
8028
8029#include <stdlib.h>
8030main() { char template[]="conftest.mkstemp-test";
8031if (mkstemp(template) == -1)
8032 exit(1);
8033unlink(template); exit(0);
8034}
8035
8036_ACEOF
8037rm -f conftest$ac_exeext
8038if { (eval echo "$as_me:8038: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8040 ac_status=$?
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048
8049 echo "$as_me:8049: result: no" >&5
8050echo "${ECHO_T}no" >&6
8051
8052else
8053 echo "$as_me: program exited with status $ac_status" >&5
8054echo "$as_me: failed program was:" >&5
8055cat conftest.$ac_ext >&5
8056
8057 echo "$as_me:8057: result: yes" >&5
8058echo "${ECHO_T}yes" >&6
8059 cat >>confdefs.h <<\EOF
8060#define HAVE_STRICT_MKSTEMP 1
8061EOF
8062
8063fi
8064rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8065fi
8066fi
8067
8068if test ! -z "$check_for_openpty_ctty_bug"; then
8069 echo "$as_me:8069: checking if openpty correctly handles controlling tty" >&5
8070echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
8071 if test "$cross_compiling" = yes; then
8072 { { echo "$as_me:8072: error: cannot run test program while cross compiling" >&5
8073echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8074 { (exit 1); exit 1; }; }
8075else
8076 cat >conftest.$ac_ext <<_ACEOF
8077#line 8077 "configure"
8078#include "confdefs.h"
8079
8080#include <stdio.h>
8081#include <sys/fcntl.h>
8082#include <sys/types.h>
8083#include <sys/wait.h>
8084
8085int
8086main()
8087{
8088 pid_t pid;
8089 int fd, ptyfd, ttyfd, status;
8090
8091 pid = fork();
8092 if (pid < 0) { /* failed */
8093 exit(1);
8094 } else if (pid > 0) { /* parent */
8095 waitpid(pid, &status, 0);
8096 if (WIFEXITED(status))
8097 exit(WEXITSTATUS(status));
8098 else
8099 exit(2);
8100 } else { /* child */
8101 close(0); close(1); close(2);
8102 setsid();
8103 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
8104 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
8105 if (fd >= 0)
8106 exit(3); /* Acquired ctty: broken */
8107 else
8108 exit(0); /* Did not acquire ctty: OK */
8109 }
8110}
8111
8112_ACEOF
8113rm -f conftest$ac_exeext
8114if { (eval echo "$as_me:8114: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>&5
8116 ac_status=$?
8117 echo "$as_me:8117: \$? = $ac_status" >&5
8118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124
8125 echo "$as_me:8125: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127
8128else
8129 echo "$as_me: program exited with status $ac_status" >&5
8130echo "$as_me: failed program was:" >&5
8131cat conftest.$ac_ext >&5
8132
8133 echo "$as_me:8133: result: no" >&5
8134echo "${ECHO_T}no" >&6
8135 cat >>confdefs.h <<\EOF
8136#define SSHD_ACQUIRES_CTTY 1
8137EOF
8138
8139fi
8140rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8141fi
8142fi
8143
8144echo "$as_me:8144: checking whether getpgrp takes no argument" >&5
8145echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
8146if test "${ac_cv_func_getpgrp_void+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149 # Use it with a single arg.
8150cat >conftest.$ac_ext <<_ACEOF
8151#line 8151 "configure"
8152#include "confdefs.h"
8153$ac_includes_default
8154int
8155main ()
8156{
8157getpgrp (0);
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162rm -f conftest.$ac_objext
8163if { (eval echo "$as_me:8163: \"$ac_compile\"") >&5
8164 (eval $ac_compile) 2>&5
8165 ac_status=$?
8166 echo "$as_me:8166: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -s conftest.$ac_objext'
8169 { (eval echo "$as_me:8169: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:8172: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_func_getpgrp_1=yes
8175else
8176 echo "$as_me: failed program was:" >&5
8177cat conftest.$ac_ext >&5
8178ac_func_getpgrp_1=no
8179fi
8180rm -f conftest.$ac_objext conftest.$ac_ext
8181# Use it with no arg.
8182cat >conftest.$ac_ext <<_ACEOF
8183#line 8183 "configure"
8184#include "confdefs.h"
8185$ac_includes_default
8186int
8187main ()
8188{
8189getpgrp ();
8190 ;
8191 return 0;
8192}
8193_ACEOF
8194rm -f conftest.$ac_objext
8195if { (eval echo "$as_me:8195: \"$ac_compile\"") >&5
8196 (eval $ac_compile) 2>&5
8197 ac_status=$?
8198 echo "$as_me:8198: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:8201: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:8204: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_func_getpgrp_0=yes
8207else
8208 echo "$as_me: failed program was:" >&5
8209cat conftest.$ac_ext >&5
8210ac_func_getpgrp_0=no
8211fi
8212rm -f conftest.$ac_objext conftest.$ac_ext
8213# If both static checks agree, we are done.
8214case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
8215 yes:no) ac_cv_func_getpgrp_void=yes;;
8216 no:yes) ac_cv_func_getpgrp_void=false;;
8217 *) if test "$cross_compiling" = yes; then
8218 { { echo "$as_me:8218: error: cannot check getpgrp if cross compiling" >&5
8219echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
8220 { (exit 1); exit 1; }; }
8221else
8222 cat >conftest.$ac_ext <<_ACEOF
8223#line 8223 "configure"
8224#include "confdefs.h"
8225$ac_includes_default
8226
8227/*
8228 * If this system has a BSD-style getpgrp(),
8229 * which takes a pid argument, exit unsuccessfully.
8230 *
8231 * Snarfed from Chet Ramey's bash pgrp.c test program
8232 */
8233
8234int pid;
8235int pg1, pg2, pg3, pg4;
8236int ng, np, s, child;
8237
8238int
8239main ()
8240{
8241 pid = getpid ();
8242 pg1 = getpgrp (0);
8243 pg2 = getpgrp ();
8244 pg3 = getpgrp (pid);
8245 pg4 = getpgrp (1);
8246
8247 /* If all of these values are the same, it's pretty sure that we're
8248 on a system that ignores getpgrp's first argument. */
8249 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
8250 exit (0);
8251
8252 child = fork ();
8253 if (child < 0)
8254 exit(1);
8255 else if (child == 0)
8256 {
8257 np = getpid ();
8258 /* If this is Sys V, this will not work; pgrp will be set to np
8259 because setpgrp just changes a pgrp to be the same as the
8260 pid. */
8261 setpgrp (np, pg1);
8262 ng = getpgrp (0); /* Same result for Sys V and BSD */
8263 if (ng == pg1)
8264 exit (1);
8265 else
8266 exit (0);
8267 }
8268 else
8269 {
8270 wait (&s);
8271 exit (s>>8);
8272 }
8273}
8274
8275_ACEOF
8276rm -f conftest$ac_exeext
8277if { (eval echo "$as_me:8277: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8279 ac_status=$?
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8282 { (eval echo "$as_me:8282: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:8285: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_func_getpgrp_void=yes
8288else
8289 echo "$as_me: program exited with status $ac_status" >&5
8290echo "$as_me: failed program was:" >&5
8291cat conftest.$ac_ext >&5
8292ac_cv_func_getpgrp_void=no
8293fi
8294rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8295fi;;
8296esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
8297
8298fi
8299echo "$as_me:8299: result: $ac_cv_func_getpgrp_void" >&5
8300echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8301if test $ac_cv_func_getpgrp_void = yes; then
8302
8303cat >>confdefs.h <<\EOF
8304#define GETPGRP_VOID 1
8305EOF
8306
8307fi
8308
8309# Check for PAM libs
8310PAM_MSG="no"
8311
8312# Check whether --with-pam or --without-pam was given.
8313if test "${with_pam+set}" = set; then
8314 withval="$with_pam"
8315
8316 if test "x$withval" != "xno" ; then
8317 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
8318 { { echo "$as_me:8318: error: PAM headers not found" >&5
8319echo "$as_me: error: PAM headers not found" >&2;}
8320 { (exit 1); exit 1; }; }
8321 fi
8322
8323echo "$as_me:8323: checking for dlopen in -ldl" >&5
8324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 ac_check_lib_save_LIBS=$LIBS
8329LIBS="-ldl $LIBS"
8330cat >conftest.$ac_ext <<_ACEOF
8331#line 8331 "configure"
8332#include "confdefs.h"
8333
8334/* Override any gcc2 internal prototype to avoid an error. */
8335#ifdef __cplusplus
8336extern "C"
8337#endif
8338/* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340char dlopen ();
8341int
8342main ()
8343{
8344dlopen ();
8345 ;
8346 return 0;
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (eval echo "$as_me:8350: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>&5
8352 ac_status=$?
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (eval echo "$as_me:8356: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:8359: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_lib_dl_dlopen=yes
8362else
8363 echo "$as_me: failed program was:" >&5
8364cat conftest.$ac_ext >&5
8365ac_cv_lib_dl_dlopen=no
8366fi
8367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8368LIBS=$ac_check_lib_save_LIBS
8369fi
8370echo "$as_me:8370: result: $ac_cv_lib_dl_dlopen" >&5
8371echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8372if test $ac_cv_lib_dl_dlopen = yes; then
8373 cat >>confdefs.h <<EOF
8374#define HAVE_LIBDL 1
8375EOF
8376
8377 LIBS="-ldl $LIBS"
8378
8379fi
8380
8381echo "$as_me:8381: checking for pam_set_item in -lpam" >&5
8382echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8383if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 ac_check_lib_save_LIBS=$LIBS
8387LIBS="-lpam $LIBS"
8388cat >conftest.$ac_ext <<_ACEOF
8389#line 8389 "configure"
8390#include "confdefs.h"
8391
8392/* Override any gcc2 internal prototype to avoid an error. */
8393#ifdef __cplusplus
8394extern "C"
8395#endif
8396/* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8398char pam_set_item ();
8399int
8400main ()
8401{
8402pam_set_item ();
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (eval echo "$as_me:8408: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:8414: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_pam_pam_set_item=yes
8420else
8421 echo "$as_me: failed program was:" >&5
8422cat conftest.$ac_ext >&5
8423ac_cv_lib_pam_pam_set_item=no
8424fi
8425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:8428: result: $ac_cv_lib_pam_pam_set_item" >&5
8429echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8430if test $ac_cv_lib_pam_pam_set_item = yes; then
8431 cat >>confdefs.h <<EOF
8432#define HAVE_LIBPAM 1
8433EOF
8434
8435 LIBS="-lpam $LIBS"
8436
8437else
8438 { { echo "$as_me:8438: error: *** libpam missing" >&5
8439echo "$as_me: error: *** libpam missing" >&2;}
8440 { (exit 1); exit 1; }; }
8441fi
8442
8443for ac_func in pam_getenvlist
8444do
8445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8446echo "$as_me:8446: checking for $ac_func" >&5
8447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8448if eval "test \"\${$as_ac_var+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 cat >conftest.$ac_ext <<_ACEOF
8452#line 8452 "configure"
8453#include "confdefs.h"
8454/* System header to define __stub macros and hopefully few prototypes,
8455 which can conflict with char $ac_func (); below. */
8456#include <assert.h>
8457/* Override any gcc2 internal prototype to avoid an error. */
8458#ifdef __cplusplus
8459extern "C"
8460#endif
8461/* We use char because int might match the return type of a gcc2
8462 builtin and then its argument prototype would still apply. */
8463char $ac_func ();
8464char (*f) ();
8465
8466int
8467main ()
8468{
8469/* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8473choke me
8474#else
8475f = $ac_func;
8476#endif
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482rm -f conftest.$ac_objext conftest$ac_exeext
8483if { (eval echo "$as_me:8483: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>&5
8485 ac_status=$?
8486 echo "$as_me:8486: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:8489: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:8492: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 eval "$as_ac_var=yes"
8495else
8496 echo "$as_me: failed program was:" >&5
8497cat conftest.$ac_ext >&5
8498eval "$as_ac_var=no"
8499fi
8500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8501fi
8502echo "$as_me:8502: result: `eval echo '${'$as_ac_var'}'`" >&5
8503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8504if test `eval echo '${'$as_ac_var'}'` = yes; then
8505 cat >>confdefs.h <<EOF
8506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8507EOF
8508
8509fi
8510done
8511
8512for ac_func in pam_putenv
8513do
8514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8515echo "$as_me:8515: checking for $ac_func" >&5
8516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_var+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519else
8520 cat >conftest.$ac_ext <<_ACEOF
8521#line 8521 "configure"
8522#include "confdefs.h"
8523/* System header to define __stub macros and hopefully few prototypes,
8524 which can conflict with char $ac_func (); below. */
8525#include <assert.h>
8526/* Override any gcc2 internal prototype to avoid an error. */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532char $ac_func ();
8533char (*f) ();
8534
8535int
8536main ()
8537{
8538/* The GNU C library defines this for functions which it implements
8539 to always fail with ENOSYS. Some functions are actually named
8540 something starting with __ and the normal name is an alias. */
8541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8542choke me
8543#else
8544f = $ac_func;
8545#endif
8546
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (eval echo "$as_me:8552: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>&5
8554 ac_status=$?
8555 echo "$as_me:8555: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:8558: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:8561: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 eval "$as_ac_var=yes"
8564else
8565 echo "$as_me: failed program was:" >&5
8566cat conftest.$ac_ext >&5
8567eval "$as_ac_var=no"
8568fi
8569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8570fi
8571echo "$as_me:8571: result: `eval echo '${'$as_ac_var'}'`" >&5
8572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8573if test `eval echo '${'$as_ac_var'}'` = yes; then
8574 cat >>confdefs.h <<EOF
8575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8576EOF
8577
8578fi
8579done
8580
8581 disable_shadow=yes
8582 PAM_MSG="yes"
8583
8584 cat >>confdefs.h <<\EOF
8585#define USE_PAM 1
8586EOF
8587
8588 if test $ac_cv_lib_dl_dlopen = yes; then
8589 LIBPAM="-lpam -ldl"
8590 else
8591 LIBPAM="-lpam"
8592 fi
8593
8594 fi
8595
8596fi;
8597
8598# Check for older PAM
8599if test "x$PAM_MSG" = "xyes" ; then
8600 # Check PAM strerror arguments (old PAM)
8601 echo "$as_me:8601: checking whether pam_strerror takes only one argument" >&5
8602echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8604#line 8604 "configure"
8605#include "confdefs.h"
8606
8607#include <stdlib.h>
8608#include <security/pam_appl.h>
8609
8610int
8611main ()
8612{
8613(void)pam_strerror((pam_handle_t *)NULL, -1);
8614 ;
8615 return 0;
8616}
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (eval echo "$as_me:8619: \"$ac_compile\"") >&5
8620 (eval $ac_compile) 2>&5
8621 ac_status=$?
8622 echo "$as_me:8622: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:8625: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:8628: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 echo "$as_me:8630: result: no" >&5
8631echo "${ECHO_T}no" >&6
8632else
8633 echo "$as_me: failed program was:" >&5
8634cat conftest.$ac_ext >&5
8635
8636 cat >>confdefs.h <<\EOF
8637#define HAVE_OLD_PAM 1
8638EOF
8639
8640 echo "$as_me:8640: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
8642 PAM_MSG="yes (old library)"
8643
8644fi
8645rm -f conftest.$ac_objext conftest.$ac_ext
8646fi
8647
8648# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8649# because the system crypt() is more featureful.
8650if test "x$check_for_libcrypt_before" = "x1"; then
8651
8652echo "$as_me:8652: checking for crypt in -lcrypt" >&5
8653echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8654if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656else
8657 ac_check_lib_save_LIBS=$LIBS
8658LIBS="-lcrypt $LIBS"
8659cat >conftest.$ac_ext <<_ACEOF
8660#line 8660 "configure"
8661#include "confdefs.h"
8662
8663/* Override any gcc2 internal prototype to avoid an error. */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667/* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669char crypt ();
8670int
8671main ()
8672{
8673crypt ();
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext conftest$ac_exeext
8679if { (eval echo "$as_me:8679: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:8685: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:8688: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 ac_cv_lib_crypt_crypt=yes
8691else
8692 echo "$as_me: failed program was:" >&5
8693cat conftest.$ac_ext >&5
8694ac_cv_lib_crypt_crypt=no
8695fi
8696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8697LIBS=$ac_check_lib_save_LIBS
8698fi
8699echo "$as_me:8699: result: $ac_cv_lib_crypt_crypt" >&5
8700echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8701if test $ac_cv_lib_crypt_crypt = yes; then
8702 cat >>confdefs.h <<EOF
8703#define HAVE_LIBCRYPT 1
8704EOF
8705
8706 LIBS="-lcrypt $LIBS"
8707
8708fi
8709
8710fi
8711
8712# Search for OpenSSL
8713saved_CPPFLAGS="$CPPFLAGS"
8714saved_LDFLAGS="$LDFLAGS"
8715
8716# Check whether --with-ssl-dir or --without-ssl-dir was given.
8717if test "${with_ssl_dir+set}" = set; then
8718 withval="$with_ssl_dir"
8719
8720 if test "x$withval" != "xno" ; then
8721 if test -d "$withval/lib"; then
8722 if test -n "${need_dash_r}"; then
8723 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8724 else
8725 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8726 fi
8727 else
8728 if test -n "${need_dash_r}"; then
8729 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8730 else
8731 LDFLAGS="-L${withval} ${LDFLAGS}"
8732 fi
8733 fi
8734 if test -d "$withval/include"; then
8735 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8736 else
8737 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8738 fi
8739 fi
8740
8741fi;
8742LIBS="$LIBS -lcrypto"
8743cat >conftest.$ac_ext <<_ACEOF
8744#line 8744 "configure"
8745#include "confdefs.h"
8746
8747/* Override any gcc2 internal prototype to avoid an error. */
8748#ifdef __cplusplus
8749extern "C"
8750#endif
8751/* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8753char RAND_add ();
8754int
8755main ()
8756{
8757RAND_add ();
8758 ;
8759 return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext conftest$ac_exeext
8763if { (eval echo "$as_me:8763: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>&5
8765 ac_status=$?
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:8769: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 cat >>confdefs.h <<\EOF
8775#define HAVE_OPENSSL 1
8776EOF
8777
8778else
8779 echo "$as_me: failed program was:" >&5
8780cat conftest.$ac_ext >&5
8781
8782 if test -n "${need_dash_r}"; then
8783 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8784 else
8785 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8786 fi
8787 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8788 cat >conftest.$ac_ext <<_ACEOF
8789#line 8789 "configure"
8790#include "confdefs.h"
8791
8792/* Override any gcc2 internal prototype to avoid an error. */
8793#ifdef __cplusplus
8794extern "C"
8795#endif
8796/* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8798char RAND_add ();
8799int
8800main ()
8801{
8802RAND_add ();
8803 ;
8804 return 0;
8805}
8806_ACEOF
8807rm -f conftest.$ac_objext conftest$ac_exeext
8808if { (eval echo "$as_me:8808: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>&5
8810 ac_status=$?
8811 echo "$as_me:8811: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -s conftest$ac_exeext'
8814 { (eval echo "$as_me:8814: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:8817: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 cat >>confdefs.h <<\EOF
8820#define HAVE_OPENSSL 1
8821EOF
8822
8823else
8824 echo "$as_me: failed program was:" >&5
8825cat conftest.$ac_ext >&5
8826
8827 { { echo "$as_me:8827: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8828echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8829 { (exit 1); exit 1; }; }
8830
8831fi
8832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8833
8834fi
8835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8836
8837# Determine OpenSSL header version
8838echo "$as_me:8838: checking OpenSSL header version" >&5
8839echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8840if test "$cross_compiling" = yes; then
8841 { { echo "$as_me:8841: error: cannot run test program while cross compiling" >&5
8842echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8843 { (exit 1); exit 1; }; }
8844else
8845 cat >conftest.$ac_ext <<_ACEOF
8846#line 8846 "configure"
8847#include "confdefs.h"
8848
8849#include <stdio.h>
8850#include <string.h>
8851#include <openssl/opensslv.h>
8852#define DATA "conftest.sslincver"
8853int main(void) {
8854 FILE *fd;
8855 int rc;
8856
8857 fd = fopen(DATA,"w");
8858 if(fd == NULL)
8859 exit(1);
8860
8861 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8862 exit(1);
8863
8864 exit(0);
8865}
8866
8867_ACEOF
8868rm -f conftest$ac_exeext
8869if { (eval echo "$as_me:8869: \"$ac_link\"") >&5
8870 (eval $ac_link) 2>&5
8871 ac_status=$?
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8874 { (eval echo "$as_me:8874: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:8877: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879
8880 ssl_header_ver=`cat conftest.sslincver`
8881 echo "$as_me:8881: result: $ssl_header_ver" >&5
8882echo "${ECHO_T}$ssl_header_ver" >&6
8883
8884else
8885 echo "$as_me: program exited with status $ac_status" >&5
8886echo "$as_me: failed program was:" >&5
8887cat conftest.$ac_ext >&5
8888
8889 echo "$as_me:8889: result: not found" >&5
8890echo "${ECHO_T}not found" >&6
8891 { { echo "$as_me:8891: error: OpenSSL version header not found." >&5
8892echo "$as_me: error: OpenSSL version header not found." >&2;}
8893 { (exit 1); exit 1; }; }
8894
8895fi
8896rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8897fi
8898
8899# Determine OpenSSL library version
8900echo "$as_me:8900: checking OpenSSL library version" >&5
8901echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8902if test "$cross_compiling" = yes; then
8903 { { echo "$as_me:8903: error: cannot run test program while cross compiling" >&5
8904echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8905 { (exit 1); exit 1; }; }
8906else
8907 cat >conftest.$ac_ext <<_ACEOF
8908#line 8908 "configure"
8909#include "confdefs.h"
8910
8911#include <stdio.h>
8912#include <string.h>
8913#include <openssl/opensslv.h>
8914#include <openssl/crypto.h>
8915#define DATA "conftest.ssllibver"
8916int main(void) {
8917 FILE *fd;
8918 int rc;
8919
8920 fd = fopen(DATA,"w");
8921 if(fd == NULL)
8922 exit(1);
8923
8924 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
8925 exit(1);
8926
8927 exit(0);
8928}
8929
8930_ACEOF
8931rm -f conftest$ac_exeext
8932if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8934 ac_status=$?
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8937 { (eval echo "$as_me:8937: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:8940: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942
8943 ssl_library_ver=`cat conftest.ssllibver`
8944 echo "$as_me:8944: result: $ssl_library_ver" >&5
8945echo "${ECHO_T}$ssl_library_ver" >&6
8946
8947else
8948 echo "$as_me: program exited with status $ac_status" >&5
8949echo "$as_me: failed program was:" >&5
8950cat conftest.$ac_ext >&5
8951
8952 echo "$as_me:8952: result: not found" >&5
8953echo "${ECHO_T}not found" >&6
8954 { { echo "$as_me:8954: error: OpenSSL library not found." >&5
8955echo "$as_me: error: OpenSSL library not found." >&2;}
8956 { (exit 1); exit 1; }; }
8957
8958fi
8959rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8960fi
8961
8962# Sanity check OpenSSL headers
8963echo "$as_me:8963: checking whether OpenSSL's headers match the library" >&5
8964echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8965if test "$cross_compiling" = yes; then
8966 { { echo "$as_me:8966: error: cannot run test program while cross compiling" >&5
8967echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8968 { (exit 1); exit 1; }; }
8969else
8970 cat >conftest.$ac_ext <<_ACEOF
8971#line 8971 "configure"
8972#include "confdefs.h"
8973
8974#include <string.h>
8975#include <openssl/opensslv.h>
8976int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8977
8978_ACEOF
8979rm -f conftest$ac_exeext
8980if { (eval echo "$as_me:8980: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>&5
8982 ac_status=$?
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985 { (eval echo "$as_me:8985: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:8988: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990
8991 echo "$as_me:8991: result: yes" >&5
8992echo "${ECHO_T}yes" >&6
8993
8994else
8995 echo "$as_me: program exited with status $ac_status" >&5
8996echo "$as_me: failed program was:" >&5
8997cat conftest.$ac_ext >&5
8998
8999 echo "$as_me:8999: result: no" >&5
9000echo "${ECHO_T}no" >&6
9001 { { echo "$as_me:9001: error: Your OpenSSL headers do not match your library.
9002Check config.log for details.
9003Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
9004echo "$as_me: error: Your OpenSSL headers do not match your library.
9005Check config.log for details.
9006Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
9007 { (exit 1); exit 1; }; }
9008
9009fi
9010rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9011fi
9012
9013# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9014# version in OpenSSL. Skip this for PAM
9015if test "x$check_for_libcrypt_later" = "x1"; then
9016 echo "$as_me:9016: checking for crypt in -lcrypt" >&5
9017echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9018if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 ac_check_lib_save_LIBS=$LIBS
9022LIBS="-lcrypt $LIBS"
9023cat >conftest.$ac_ext <<_ACEOF
9024#line 9024 "configure"
9025#include "confdefs.h"
9026
9027/* Override any gcc2 internal prototype to avoid an error. */
9028#ifdef __cplusplus
9029extern "C"
9030#endif
9031/* We use char because int might match the return type of a gcc2
9032 builtin and then its argument prototype would still apply. */
9033char crypt ();
9034int
9035main ()
9036{
9037crypt ();
9038 ;
9039 return 0;
9040}
9041_ACEOF
9042rm -f conftest.$ac_objext conftest$ac_exeext
9043if { (eval echo "$as_me:9043: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>&5
9045 ac_status=$?
9046 echo "$as_me:9046: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:9049: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:9052: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_crypt_crypt=yes
9055else
9056 echo "$as_me: failed program was:" >&5
9057cat conftest.$ac_ext >&5
9058ac_cv_lib_crypt_crypt=no
9059fi
9060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061LIBS=$ac_check_lib_save_LIBS
9062fi
9063echo "$as_me:9063: result: $ac_cv_lib_crypt_crypt" >&5
9064echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9065if test $ac_cv_lib_crypt_crypt = yes; then
9066 LIBS="$LIBS -lcrypt"
9067fi
9068
9069fi
9070
9071### Configure cryptographic random number support
9072
9073# Check wheter OpenSSL seeds itself
9074echo "$as_me:9074: checking whether OpenSSL's PRNG is internally seeded" >&5
9075echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
9076if test "$cross_compiling" = yes; then
9077 { { echo "$as_me:9077: error: cannot run test program while cross compiling" >&5
9078echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9079 { (exit 1); exit 1; }; }
9080else
9081 cat >conftest.$ac_ext <<_ACEOF
9082#line 9082 "configure"
9083#include "confdefs.h"
9084
9085#include <string.h>
9086#include <openssl/rand.h>
9087int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
9088
9089_ACEOF
9090rm -f conftest$ac_exeext
9091if { (eval echo "$as_me:9091: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9093 ac_status=$?
9094 echo "$as_me:9094: \$? = $ac_status" >&5
9095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9096 { (eval echo "$as_me:9096: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:9099: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101
9102 OPENSSL_SEEDS_ITSELF=yes
9103 echo "$as_me:9103: result: yes" >&5
9104echo "${ECHO_T}yes" >&6
9105
9106else
9107 echo "$as_me: program exited with status $ac_status" >&5
9108echo "$as_me: failed program was:" >&5
9109cat conftest.$ac_ext >&5
9110
9111 echo "$as_me:9111: result: no" >&5
9112echo "${ECHO_T}no" >&6
9113 # Default to use of the rand helper if OpenSSL doesn't
9114 # seed itself
9115 USE_RAND_HELPER=yes
9116
9117fi
9118rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9119fi
9120
9121# Do we want to force the use of the rand helper?
9122
9123# Check whether --with-rand-helper or --without-rand-helper was given.
9124if test "${with_rand_helper+set}" = set; then
9125 withval="$with_rand_helper"
9126
9127 if test "x$withval" = "xno" ; then
9128 # Force use of OpenSSL's internal RNG, even if
9129 # the previous test showed it to be unseeded.
9130 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
9131 { echo "$as_me:9131: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
9132echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
9133 OPENSSL_SEEDS_ITSELF=yes
9134 USE_RAND_HELPER=""
9135 fi
9136 else
9137 USE_RAND_HELPER=yes
9138 fi
9139
9140fi;
9141
9142# Which randomness source do we use?
9143if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
9144 # OpenSSL only
9145 cat >>confdefs.h <<\EOF
9146#define OPENSSL_PRNG_ONLY 1
9147EOF
9148
9149 RAND_MSG="OpenSSL internal ONLY"
9150 INSTALL_SSH_RAND_HELPER=""
9151elif test ! -z "$USE_RAND_HELPER" ; then
9152 # install rand helper
9153 RAND_MSG="ssh-rand-helper"
9154 INSTALL_SSH_RAND_HELPER="yes"
9155fi
9156
9157### Configuration of ssh-rand-helper
9158
9159# PRNGD TCP socket
9160
9161# Check whether --with-prngd-port or --without-prngd-port was given.
9162if test "${with_prngd_port+set}" = set; then
9163 withval="$with_prngd_port"
9164
9165 case "$withval" in
9166 no)
9167 withval=""
9168 ;;
9169 [0-9]*)
9170 ;;
9171 *)
9172 { { echo "$as_me:9172: error: You must specify a numeric port number for --with-prngd-port" >&5
9173echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
9174 { (exit 1); exit 1; }; }
9175 ;;
9176 esac
9177 if test ! -z "$withval" ; then
9178 PRNGD_PORT="$withval"
9179 cat >>confdefs.h <<EOF
9180#define PRNGD_PORT $PRNGD_PORT
9181EOF
9182
9183 fi
9184
9185fi;
9186
9187# PRNGD Unix domain socket
9188
9189# Check whether --with-prngd-socket or --without-prngd-socket was given.
9190if test "${with_prngd_socket+set}" = set; then
9191 withval="$with_prngd_socket"
9192
9193 case "$withval" in
9194 yes)
9195 withval="/var/run/egd-pool"
9196 ;;
9197 no)
9198 withval=""
9199 ;;
9200 /*)
9201 ;;
9202 *)
9203 { { echo "$as_me:9203: error: You must specify an absolute path to the entropy socket" >&5
9204echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
9205 { (exit 1); exit 1; }; }
9206 ;;
9207 esac
9208
9209 if test ! -z "$withval" ; then
9210 if test ! -z "$PRNGD_PORT" ; then
9211 { { echo "$as_me:9211: error: You may not specify both a PRNGD/EGD port and socket" >&5
9212echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
9213 { (exit 1); exit 1; }; }
9214 fi
9215 if test ! -r "$withval" ; then
9216 { echo "$as_me:9216: WARNING: Entropy socket is not readable" >&5
9217echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
9218 fi
9219 PRNGD_SOCKET="$withval"
9220 cat >>confdefs.h <<EOF
9221#define PRNGD_SOCKET "$PRNGD_SOCKET"
9222EOF
9223
9224 fi
9225
9226else
9227
9228 # Check for existing socket only if we don't have a random device already
9229 if test "$USE_RAND_HELPER" = yes ; then
9230 echo "$as_me:9230: checking for PRNGD/EGD socket" >&5
9231echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
9232 # Insert other locations here
9233 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9234 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
9235 PRNGD_SOCKET="$sock"
9236 cat >>confdefs.h <<EOF
9237#define PRNGD_SOCKET "$PRNGD_SOCKET"
9238EOF
9239
9240 break;
9241 fi
9242 done
9243 if test ! -z "$PRNGD_SOCKET" ; then
9244 echo "$as_me:9244: result: $PRNGD_SOCKET" >&5
9245echo "${ECHO_T}$PRNGD_SOCKET" >&6
9246 else
9247 echo "$as_me:9247: result: not found" >&5
9248echo "${ECHO_T}not found" >&6
9249 fi
9250 fi
9251
9252fi;
9253
9254# Change default command timeout for hashing entropy source
9255entropy_timeout=200
9256
9257# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
9258if test "${with_entropy_timeout+set}" = set; then
9259 withval="$with_entropy_timeout"
9260
9261 if test "x$withval" != "xno" ; then
9262 entropy_timeout=$withval
9263 fi
9264
9265fi;
9266cat >>confdefs.h <<EOF
9267#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
9268EOF
9269
9270SSH_PRIVSEP_USER=sshd
9271
9272# Check whether --with-privsep-user or --without-privsep-user was given.
9273if test "${with_privsep_user+set}" = set; then
9274 withval="$with_privsep_user"
9275
9276 if test -n "$withval"; then
9277 SSH_PRIVSEP_USER=$withval
9278 fi
9279
9280fi;
9281cat >>confdefs.h <<EOF
9282#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9283EOF
9284
9285# We do this little dance with the search path to insure
9286# that programs that we select for use by installed programs
9287# (which may be run by the super-user) come from trusted
9288# locations before they come from the user's private area.
9289# This should help avoid accidentally configuring some
9290# random version of a program in someone's personal bin.
9291
9292OPATH=$PATH
9293PATH=/bin:/usr/bin
9294test -h /bin 2> /dev/null && PATH=/usr/bin
9295test -d /sbin && PATH=$PATH:/sbin
9296test -d /usr/sbin && PATH=$PATH:/usr/sbin
9297PATH=$PATH:/etc:$OPATH
9298
9299# These programs are used by the command hashing source to gather entropy
9300
9301 # Extract the first word of "ls", so it can be a program name with args.
9302set dummy ls; ac_word=$2
9303echo "$as_me:9303: checking for $ac_word" >&5
9304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9305if test "${ac_cv_path_PROG_LS+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307else
9308 case $PROG_LS in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9311 ;;
9312 *)
9313 ac_save_IFS=$IFS; IFS=$ac_path_separator
9314ac_dummy="$PATH"
9315for ac_dir in $ac_dummy; do
9316 IFS=$ac_save_IFS
9317 test -z "$ac_dir" && ac_dir=.
9318 if $as_executable_p "$ac_dir/$ac_word"; then
9319 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
9320 echo "$as_me:9320: found $ac_dir/$ac_word" >&5
9321 break
9322fi
9323done
9324
9325 ;;
9326esac
9327fi
9328PROG_LS=$ac_cv_path_PROG_LS
9329
9330if test -n "$PROG_LS"; then
9331 echo "$as_me:9331: result: $PROG_LS" >&5
9332echo "${ECHO_T}$PROG_LS" >&6
9333else
9334 echo "$as_me:9334: result: no" >&5
9335echo "${ECHO_T}no" >&6
9336fi
9337
9338 if test -z "$PROG_LS" ; then
9339 PROG_LS="undef"
9340 fi
9341
9342 # Extract the first word of "netstat", so it can be a program name with args.
9343set dummy netstat; ac_word=$2
9344echo "$as_me:9344: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9346if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 case $PROG_NETSTAT in
9350 [\\/]* | ?:[\\/]*)
9351 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9352 ;;
9353 *)
9354 ac_save_IFS=$IFS; IFS=$ac_path_separator
9355ac_dummy="$PATH"
9356for ac_dir in $ac_dummy; do
9357 IFS=$ac_save_IFS
9358 test -z "$ac_dir" && ac_dir=.
9359 if $as_executable_p "$ac_dir/$ac_word"; then
9360 ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word"
9361 echo "$as_me:9361: found $ac_dir/$ac_word" >&5
9362 break
9363fi
9364done
9365
9366 ;;
9367esac
9368fi
9369PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9370
9371if test -n "$PROG_NETSTAT"; then
9372 echo "$as_me:9372: result: $PROG_NETSTAT" >&5
9373echo "${ECHO_T}$PROG_NETSTAT" >&6
9374else
9375 echo "$as_me:9375: result: no" >&5
9376echo "${ECHO_T}no" >&6
9377fi
9378
9379 if test -z "$PROG_NETSTAT" ; then
9380 PROG_NETSTAT="undef"
9381 fi
9382
9383 # Extract the first word of "arp", so it can be a program name with args.
9384set dummy arp; ac_word=$2
9385echo "$as_me:9385: checking for $ac_word" >&5
9386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9387if test "${ac_cv_path_PROG_ARP+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389else
9390 case $PROG_ARP in
9391 [\\/]* | ?:[\\/]*)
9392 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9393 ;;
9394 *)
9395 ac_save_IFS=$IFS; IFS=$ac_path_separator
9396ac_dummy="$PATH"
9397for ac_dir in $ac_dummy; do
9398 IFS=$ac_save_IFS
9399 test -z "$ac_dir" && ac_dir=.
9400 if $as_executable_p "$ac_dir/$ac_word"; then
9401 ac_cv_path_PROG_ARP="$ac_dir/$ac_word"
9402 echo "$as_me:9402: found $ac_dir/$ac_word" >&5
9403 break
9404fi
9405done
9406
9407 ;;
9408esac
9409fi
9410PROG_ARP=$ac_cv_path_PROG_ARP
9411
9412if test -n "$PROG_ARP"; then
9413 echo "$as_me:9413: result: $PROG_ARP" >&5
9414echo "${ECHO_T}$PROG_ARP" >&6
9415else
9416 echo "$as_me:9416: result: no" >&5
9417echo "${ECHO_T}no" >&6
9418fi
9419
9420 if test -z "$PROG_ARP" ; then
9421 PROG_ARP="undef"
9422 fi
9423
9424 # Extract the first word of "ifconfig", so it can be a program name with args.
9425set dummy ifconfig; ac_word=$2
9426echo "$as_me:9426: checking for $ac_word" >&5
9427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9428if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431 case $PROG_IFCONFIG in
9432 [\\/]* | ?:[\\/]*)
9433 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9434 ;;
9435 *)
9436 ac_save_IFS=$IFS; IFS=$ac_path_separator
9437ac_dummy="$PATH"
9438for ac_dir in $ac_dummy; do
9439 IFS=$ac_save_IFS
9440 test -z "$ac_dir" && ac_dir=.
9441 if $as_executable_p "$ac_dir/$ac_word"; then
9442 ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word"
9443 echo "$as_me:9443: found $ac_dir/$ac_word" >&5
9444 break
9445fi
9446done
9447
9448 ;;
9449esac
9450fi
9451PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9452
9453if test -n "$PROG_IFCONFIG"; then
9454 echo "$as_me:9454: result: $PROG_IFCONFIG" >&5
9455echo "${ECHO_T}$PROG_IFCONFIG" >&6
9456else
9457 echo "$as_me:9457: result: no" >&5
9458echo "${ECHO_T}no" >&6
9459fi
9460
9461 if test -z "$PROG_IFCONFIG" ; then
9462 PROG_IFCONFIG="undef"
9463 fi
9464
9465 # Extract the first word of "jstat", so it can be a program name with args.
9466set dummy jstat; ac_word=$2
9467echo "$as_me:9467: checking for $ac_word" >&5
9468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9469if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472 case $PROG_JSTAT in
9473 [\\/]* | ?:[\\/]*)
9474 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9475 ;;
9476 *)
9477 ac_save_IFS=$IFS; IFS=$ac_path_separator
9478ac_dummy="$PATH"
9479for ac_dir in $ac_dummy; do
9480 IFS=$ac_save_IFS
9481 test -z "$ac_dir" && ac_dir=.
9482 if $as_executable_p "$ac_dir/$ac_word"; then
9483 ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word"
9484 echo "$as_me:9484: found $ac_dir/$ac_word" >&5
9485 break
9486fi
9487done
9488
9489 ;;
9490esac
9491fi
9492PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9493
9494if test -n "$PROG_JSTAT"; then
9495 echo "$as_me:9495: result: $PROG_JSTAT" >&5
9496echo "${ECHO_T}$PROG_JSTAT" >&6
9497else
9498 echo "$as_me:9498: result: no" >&5
9499echo "${ECHO_T}no" >&6
9500fi
9501
9502 if test -z "$PROG_JSTAT" ; then
9503 PROG_JSTAT="undef"
9504 fi
9505
9506 # Extract the first word of "ps", so it can be a program name with args.
9507set dummy ps; ac_word=$2
9508echo "$as_me:9508: checking for $ac_word" >&5
9509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9510if test "${ac_cv_path_PROG_PS+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 case $PROG_PS in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9516 ;;
9517 *)
9518 ac_save_IFS=$IFS; IFS=$ac_path_separator
9519ac_dummy="$PATH"
9520for ac_dir in $ac_dummy; do
9521 IFS=$ac_save_IFS
9522 test -z "$ac_dir" && ac_dir=.
9523 if $as_executable_p "$ac_dir/$ac_word"; then
9524 ac_cv_path_PROG_PS="$ac_dir/$ac_word"
9525 echo "$as_me:9525: found $ac_dir/$ac_word" >&5
9526 break
9527fi
9528done
9529
9530 ;;
9531esac
9532fi
9533PROG_PS=$ac_cv_path_PROG_PS
9534
9535if test -n "$PROG_PS"; then
9536 echo "$as_me:9536: result: $PROG_PS" >&5
9537echo "${ECHO_T}$PROG_PS" >&6
9538else
9539 echo "$as_me:9539: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543 if test -z "$PROG_PS" ; then
9544 PROG_PS="undef"
9545 fi
9546
9547 # Extract the first word of "sar", so it can be a program name with args.
9548set dummy sar; ac_word=$2
9549echo "$as_me:9549: checking for $ac_word" >&5
9550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9551if test "${ac_cv_path_PROG_SAR+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554 case $PROG_SAR in
9555 [\\/]* | ?:[\\/]*)
9556 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9557 ;;
9558 *)
9559 ac_save_IFS=$IFS; IFS=$ac_path_separator
9560ac_dummy="$PATH"
9561for ac_dir in $ac_dummy; do
9562 IFS=$ac_save_IFS
9563 test -z "$ac_dir" && ac_dir=.
9564 if $as_executable_p "$ac_dir/$ac_word"; then
9565 ac_cv_path_PROG_SAR="$ac_dir/$ac_word"
9566 echo "$as_me:9566: found $ac_dir/$ac_word" >&5
9567 break
9568fi
9569done
9570
9571 ;;
9572esac
9573fi
9574PROG_SAR=$ac_cv_path_PROG_SAR
9575
9576if test -n "$PROG_SAR"; then
9577 echo "$as_me:9577: result: $PROG_SAR" >&5
9578echo "${ECHO_T}$PROG_SAR" >&6
9579else
9580 echo "$as_me:9580: result: no" >&5
9581echo "${ECHO_T}no" >&6
9582fi
9583
9584 if test -z "$PROG_SAR" ; then
9585 PROG_SAR="undef"
9586 fi
9587
9588 # Extract the first word of "w", so it can be a program name with args.
9589set dummy w; ac_word=$2
9590echo "$as_me:9590: checking for $ac_word" >&5
9591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9592if test "${ac_cv_path_PROG_W+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595 case $PROG_W in
9596 [\\/]* | ?:[\\/]*)
9597 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9598 ;;
9599 *)
9600 ac_save_IFS=$IFS; IFS=$ac_path_separator
9601ac_dummy="$PATH"
9602for ac_dir in $ac_dummy; do
9603 IFS=$ac_save_IFS
9604 test -z "$ac_dir" && ac_dir=.
9605 if $as_executable_p "$ac_dir/$ac_word"; then
9606 ac_cv_path_PROG_W="$ac_dir/$ac_word"
9607 echo "$as_me:9607: found $ac_dir/$ac_word" >&5
9608 break
9609fi
9610done
9611
9612 ;;
9613esac
9614fi
9615PROG_W=$ac_cv_path_PROG_W
9616
9617if test -n "$PROG_W"; then
9618 echo "$as_me:9618: result: $PROG_W" >&5
9619echo "${ECHO_T}$PROG_W" >&6
9620else
9621 echo "$as_me:9621: result: no" >&5
9622echo "${ECHO_T}no" >&6
9623fi
9624
9625 if test -z "$PROG_W" ; then
9626 PROG_W="undef"
9627 fi
9628
9629 # Extract the first word of "who", so it can be a program name with args.
9630set dummy who; ac_word=$2
9631echo "$as_me:9631: checking for $ac_word" >&5
9632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9633if test "${ac_cv_path_PROG_WHO+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635else
9636 case $PROG_WHO in
9637 [\\/]* | ?:[\\/]*)
9638 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9639 ;;
9640 *)
9641 ac_save_IFS=$IFS; IFS=$ac_path_separator
9642ac_dummy="$PATH"
9643for ac_dir in $ac_dummy; do
9644 IFS=$ac_save_IFS
9645 test -z "$ac_dir" && ac_dir=.
9646 if $as_executable_p "$ac_dir/$ac_word"; then
9647 ac_cv_path_PROG_WHO="$ac_dir/$ac_word"
9648 echo "$as_me:9648: found $ac_dir/$ac_word" >&5
9649 break
9650fi
9651done
9652
9653 ;;
9654esac
9655fi
9656PROG_WHO=$ac_cv_path_PROG_WHO
9657
9658if test -n "$PROG_WHO"; then
9659 echo "$as_me:9659: result: $PROG_WHO" >&5
9660echo "${ECHO_T}$PROG_WHO" >&6
9661else
9662 echo "$as_me:9662: result: no" >&5
9663echo "${ECHO_T}no" >&6
9664fi
9665
9666 if test -z "$PROG_WHO" ; then
9667 PROG_WHO="undef"
9668 fi
9669
9670 # Extract the first word of "last", so it can be a program name with args.
9671set dummy last; ac_word=$2
9672echo "$as_me:9672: checking for $ac_word" >&5
9673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9674if test "${ac_cv_path_PROG_LAST+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677 case $PROG_LAST in
9678 [\\/]* | ?:[\\/]*)
9679 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9680 ;;
9681 *)
9682 ac_save_IFS=$IFS; IFS=$ac_path_separator
9683ac_dummy="$PATH"
9684for ac_dir in $ac_dummy; do
9685 IFS=$ac_save_IFS
9686 test -z "$ac_dir" && ac_dir=.
9687 if $as_executable_p "$ac_dir/$ac_word"; then
9688 ac_cv_path_PROG_LAST="$ac_dir/$ac_word"
9689 echo "$as_me:9689: found $ac_dir/$ac_word" >&5
9690 break
9691fi
9692done
9693
9694 ;;
9695esac
9696fi
9697PROG_LAST=$ac_cv_path_PROG_LAST
9698
9699if test -n "$PROG_LAST"; then
9700 echo "$as_me:9700: result: $PROG_LAST" >&5
9701echo "${ECHO_T}$PROG_LAST" >&6
9702else
9703 echo "$as_me:9703: result: no" >&5
9704echo "${ECHO_T}no" >&6
9705fi
9706
9707 if test -z "$PROG_LAST" ; then
9708 PROG_LAST="undef"
9709 fi
9710
9711 # Extract the first word of "lastlog", so it can be a program name with args.
9712set dummy lastlog; ac_word=$2
9713echo "$as_me:9713: checking for $ac_word" >&5
9714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9715if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717else
9718 case $PROG_LASTLOG in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9721 ;;
9722 *)
9723 ac_save_IFS=$IFS; IFS=$ac_path_separator
9724ac_dummy="$PATH"
9725for ac_dir in $ac_dummy; do
9726 IFS=$ac_save_IFS
9727 test -z "$ac_dir" && ac_dir=.
9728 if $as_executable_p "$ac_dir/$ac_word"; then
9729 ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word"
9730 echo "$as_me:9730: found $ac_dir/$ac_word" >&5
9731 break
9732fi
9733done
9734
9735 ;;
9736esac
9737fi
9738PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9739
9740if test -n "$PROG_LASTLOG"; then
9741 echo "$as_me:9741: result: $PROG_LASTLOG" >&5
9742echo "${ECHO_T}$PROG_LASTLOG" >&6
9743else
9744 echo "$as_me:9744: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746fi
9747
9748 if test -z "$PROG_LASTLOG" ; then
9749 PROG_LASTLOG="undef"
9750 fi
9751
9752 # Extract the first word of "df", so it can be a program name with args.
9753set dummy df; ac_word=$2
9754echo "$as_me:9754: checking for $ac_word" >&5
9755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9756if test "${ac_cv_path_PROG_DF+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759 case $PROG_DF in
9760 [\\/]* | ?:[\\/]*)
9761 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9762 ;;
9763 *)
9764 ac_save_IFS=$IFS; IFS=$ac_path_separator
9765ac_dummy="$PATH"
9766for ac_dir in $ac_dummy; do
9767 IFS=$ac_save_IFS
9768 test -z "$ac_dir" && ac_dir=.
9769 if $as_executable_p "$ac_dir/$ac_word"; then
9770 ac_cv_path_PROG_DF="$ac_dir/$ac_word"
9771 echo "$as_me:9771: found $ac_dir/$ac_word" >&5
9772 break
9773fi
9774done
9775
9776 ;;
9777esac
9778fi
9779PROG_DF=$ac_cv_path_PROG_DF
9780
9781if test -n "$PROG_DF"; then
9782 echo "$as_me:9782: result: $PROG_DF" >&5
9783echo "${ECHO_T}$PROG_DF" >&6
9784else
9785 echo "$as_me:9785: result: no" >&5
9786echo "${ECHO_T}no" >&6
9787fi
9788
9789 if test -z "$PROG_DF" ; then
9790 PROG_DF="undef"
9791 fi
9792
9793 # Extract the first word of "vmstat", so it can be a program name with args.
9794set dummy vmstat; ac_word=$2
9795echo "$as_me:9795: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 case $PROG_VMSTAT in
9801 [\\/]* | ?:[\\/]*)
9802 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9803 ;;
9804 *)
9805 ac_save_IFS=$IFS; IFS=$ac_path_separator
9806ac_dummy="$PATH"
9807for ac_dir in $ac_dummy; do
9808 IFS=$ac_save_IFS
9809 test -z "$ac_dir" && ac_dir=.
9810 if $as_executable_p "$ac_dir/$ac_word"; then
9811 ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word"
9812 echo "$as_me:9812: found $ac_dir/$ac_word" >&5
9813 break
9814fi
9815done
9816
9817 ;;
9818esac
9819fi
9820PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9821
9822if test -n "$PROG_VMSTAT"; then
9823 echo "$as_me:9823: result: $PROG_VMSTAT" >&5
9824echo "${ECHO_T}$PROG_VMSTAT" >&6
9825else
9826 echo "$as_me:9826: result: no" >&5
9827echo "${ECHO_T}no" >&6
9828fi
9829
9830 if test -z "$PROG_VMSTAT" ; then
9831 PROG_VMSTAT="undef"
9832 fi
9833
9834 # Extract the first word of "uptime", so it can be a program name with args.
9835set dummy uptime; ac_word=$2
9836echo "$as_me:9836: checking for $ac_word" >&5
9837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9838if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 case $PROG_UPTIME in
9842 [\\/]* | ?:[\\/]*)
9843 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9844 ;;
9845 *)
9846 ac_save_IFS=$IFS; IFS=$ac_path_separator
9847ac_dummy="$PATH"
9848for ac_dir in $ac_dummy; do
9849 IFS=$ac_save_IFS
9850 test -z "$ac_dir" && ac_dir=.
9851 if $as_executable_p "$ac_dir/$ac_word"; then
9852 ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word"
9853 echo "$as_me:9853: found $ac_dir/$ac_word" >&5
9854 break
9855fi
9856done
9857
9858 ;;
9859esac
9860fi
9861PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9862
9863if test -n "$PROG_UPTIME"; then
9864 echo "$as_me:9864: result: $PROG_UPTIME" >&5
9865echo "${ECHO_T}$PROG_UPTIME" >&6
9866else
9867 echo "$as_me:9867: result: no" >&5
9868echo "${ECHO_T}no" >&6
9869fi
9870
9871 if test -z "$PROG_UPTIME" ; then
9872 PROG_UPTIME="undef"
9873 fi
9874
9875 # Extract the first word of "ipcs", so it can be a program name with args.
9876set dummy ipcs; ac_word=$2
9877echo "$as_me:9877: checking for $ac_word" >&5
9878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9879if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 case $PROG_IPCS in
9883 [\\/]* | ?:[\\/]*)
9884 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9885 ;;
9886 *)
9887 ac_save_IFS=$IFS; IFS=$ac_path_separator
9888ac_dummy="$PATH"
9889for ac_dir in $ac_dummy; do
9890 IFS=$ac_save_IFS
9891 test -z "$ac_dir" && ac_dir=.
9892 if $as_executable_p "$ac_dir/$ac_word"; then
9893 ac_cv_path_PROG_IPCS="$ac_dir/$ac_word"
9894 echo "$as_me:9894: found $ac_dir/$ac_word" >&5
9895 break
9896fi
9897done
9898
9899 ;;
9900esac
9901fi
9902PROG_IPCS=$ac_cv_path_PROG_IPCS
9903
9904if test -n "$PROG_IPCS"; then
9905 echo "$as_me:9905: result: $PROG_IPCS" >&5
9906echo "${ECHO_T}$PROG_IPCS" >&6
9907else
9908 echo "$as_me:9908: result: no" >&5
9909echo "${ECHO_T}no" >&6
9910fi
9911
9912 if test -z "$PROG_IPCS" ; then
9913 PROG_IPCS="undef"
9914 fi
9915
9916 # Extract the first word of "tail", so it can be a program name with args.
9917set dummy tail; ac_word=$2
9918echo "$as_me:9918: checking for $ac_word" >&5
9919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9920if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 case $PROG_TAIL in
9924 [\\/]* | ?:[\\/]*)
9925 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9926 ;;
9927 *)
9928 ac_save_IFS=$IFS; IFS=$ac_path_separator
9929ac_dummy="$PATH"
9930for ac_dir in $ac_dummy; do
9931 IFS=$ac_save_IFS
9932 test -z "$ac_dir" && ac_dir=.
9933 if $as_executable_p "$ac_dir/$ac_word"; then
9934 ac_cv_path_PROG_TAIL="$ac_dir/$ac_word"
9935 echo "$as_me:9935: found $ac_dir/$ac_word" >&5
9936 break
9937fi
9938done
9939
9940 ;;
9941esac
9942fi
9943PROG_TAIL=$ac_cv_path_PROG_TAIL
9944
9945if test -n "$PROG_TAIL"; then
9946 echo "$as_me:9946: result: $PROG_TAIL" >&5
9947echo "${ECHO_T}$PROG_TAIL" >&6
9948else
9949 echo "$as_me:9949: result: no" >&5
9950echo "${ECHO_T}no" >&6
9951fi
9952
9953 if test -z "$PROG_TAIL" ; then
9954 PROG_TAIL="undef"
9955 fi
9956
9957# restore PATH
9958PATH=$OPATH
9959
9960# Where does ssh-rand-helper get its randomness from?
9961INSTALL_SSH_PRNG_CMDS=""
9962if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9963 if test ! -z "$PRNGD_PORT" ; then
9964 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9965 elif test ! -z "$PRNGD_SOCKET" ; then
9966 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9967 else
9968 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9969 RAND_HELPER_CMDHASH=yes
9970 INSTALL_SSH_PRNG_CMDS="yes"
9971 fi
9972fi
9973
9974# Cheap hack to ensure NEWS-OS libraries are arranged right.
9975if test ! -z "$SONY" ; then
9976 LIBS="$LIBS -liberty";
9977fi
9978
9979# Checks for data types
9980echo "$as_me:9980: checking for char" >&5
9981echo $ECHO_N "checking for char... $ECHO_C" >&6
9982if test "${ac_cv_type_char+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 cat >conftest.$ac_ext <<_ACEOF
9986#line 9986 "configure"
9987#include "confdefs.h"
9988$ac_includes_default
9989int
9990main ()
9991{
9992if ((char *) 0)
9993 return 0;
9994if (sizeof (char))
9995 return 0;
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext
10001if { (eval echo "$as_me:10001: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10003 ac_status=$?
10004 echo "$as_me:10004: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:10007: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:10010: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_type_char=yes
10013else
10014 echo "$as_me: failed program was:" >&5
10015cat conftest.$ac_ext >&5
10016ac_cv_type_char=no
10017fi
10018rm -f conftest.$ac_objext conftest.$ac_ext
10019fi
10020echo "$as_me:10020: result: $ac_cv_type_char" >&5
10021echo "${ECHO_T}$ac_cv_type_char" >&6
10022
10023echo "$as_me:10023: checking size of char" >&5
10024echo $ECHO_N "checking size of char... $ECHO_C" >&6
10025if test "${ac_cv_sizeof_char+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 if test "$ac_cv_type_char" = yes; then
10029 if test "$cross_compiling" = yes; then
10030 # Depending upon the size, compute the lo and hi bounds.
10031cat >conftest.$ac_ext <<_ACEOF
10032#line 10032 "configure"
10033#include "confdefs.h"
10034$ac_includes_default
10035int
10036main ()
10037{
10038int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext
10044if { (eval echo "$as_me:10044: \"$ac_compile\"") >&5
10045 (eval $ac_compile) 2>&5
10046 ac_status=$?
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_lo=0 ac_mid=0
10056 while :; do
10057 cat >conftest.$ac_ext <<_ACEOF
10058#line 10058 "configure"
10059#include "confdefs.h"
10060$ac_includes_default
10061int
10062main ()
10063{
10064int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
10065 ;
10066 return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext
10070if { (eval echo "$as_me:10070: \"$ac_compile\"") >&5
10071 (eval $ac_compile) 2>&5
10072 ac_status=$?
10073 echo "$as_me:10073: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:10076: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:10079: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_hi=$ac_mid; break
10082else
10083 echo "$as_me: failed program was:" >&5
10084cat conftest.$ac_ext >&5
10085ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10086fi
10087rm -f conftest.$ac_objext conftest.$ac_ext
10088 done
10089else
10090 echo "$as_me: failed program was:" >&5
10091cat conftest.$ac_ext >&5
10092ac_hi=-1 ac_mid=-1
10093 while :; do
10094 cat >conftest.$ac_ext <<_ACEOF
10095#line 10095 "configure"
10096#include "confdefs.h"
10097$ac_includes_default
10098int
10099main ()
10100{
10101int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext
10107if { (eval echo "$as_me:10107: \"$ac_compile\"") >&5
10108 (eval $ac_compile) 2>&5
10109 ac_status=$?
10110 echo "$as_me:10110: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -s conftest.$ac_objext'
10113 { (eval echo "$as_me:10113: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:10116: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_lo=$ac_mid; break
10119else
10120 echo "$as_me: failed program was:" >&5
10121cat conftest.$ac_ext >&5
10122ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10123fi
10124rm -f conftest.$ac_objext conftest.$ac_ext
10125 done
10126fi
10127rm -f conftest.$ac_objext conftest.$ac_ext
10128# Binary search between lo and hi bounds.
10129while test "x$ac_lo" != "x$ac_hi"; do
10130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10131 cat >conftest.$ac_ext <<_ACEOF
10132#line 10132 "configure"
10133#include "confdefs.h"
10134$ac_includes_default
10135int
10136main ()
10137{
10138int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
10139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext
10144if { (eval echo "$as_me:10144: \"$ac_compile\"") >&5
10145 (eval $ac_compile) 2>&5
10146 ac_status=$?
10147 echo "$as_me:10147: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -s conftest.$ac_objext'
10150 { (eval echo "$as_me:10150: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_hi=$ac_mid
10156else
10157 echo "$as_me: failed program was:" >&5
10158cat conftest.$ac_ext >&5
10159ac_lo=`expr $ac_mid + 1`
10160fi
10161rm -f conftest.$ac_objext conftest.$ac_ext
10162done
10163ac_cv_sizeof_char=$ac_lo
10164else
10165 if test "$cross_compiling" = yes; then
10166 { { echo "$as_me:10166: error: cannot run test program while cross compiling" >&5
10167echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10168 { (exit 1); exit 1; }; }
10169else
10170 cat >conftest.$ac_ext <<_ACEOF
10171#line 10171 "configure"
10172#include "confdefs.h"
10173$ac_includes_default
10174int
10175main ()
10176{
10177FILE *f = fopen ("conftest.val", "w");
10178if (!f)
10179 exit (1);
10180fprintf (f, "%d", (sizeof (char)));
10181fclose (f);
10182 ;
10183 return 0;
10184}
10185_ACEOF
10186rm -f conftest$ac_exeext
10187if { (eval echo "$as_me:10187: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>&5
10189 ac_status=$?
10190 echo "$as_me:10190: \$? = $ac_status" >&5
10191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10192 { (eval echo "$as_me:10192: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_sizeof_char=`cat conftest.val`
10198else
10199 echo "$as_me: program exited with status $ac_status" >&5
10200echo "$as_me: failed program was:" >&5
10201cat conftest.$ac_ext >&5
10202fi
10203rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204fi
10205fi
10206rm -f conftest.val
10207else
10208 ac_cv_sizeof_char=0
10209fi
10210fi
10211echo "$as_me:10211: result: $ac_cv_sizeof_char" >&5
10212echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10213cat >>confdefs.h <<EOF
10214#define SIZEOF_CHAR $ac_cv_sizeof_char
10215EOF
10216
10217echo "$as_me:10217: checking for short int" >&5
10218echo $ECHO_N "checking for short int... $ECHO_C" >&6
10219if test "${ac_cv_type_short_int+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 cat >conftest.$ac_ext <<_ACEOF
10223#line 10223 "configure"
10224#include "confdefs.h"
10225$ac_includes_default
10226int
10227main ()
10228{
10229if ((short int *) 0)
10230 return 0;
10231if (sizeof (short int))
10232 return 0;
10233 ;
10234 return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext
10238if { (eval echo "$as_me:10238: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>&5
10240 ac_status=$?
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_type_short_int=yes
10250else
10251 echo "$as_me: failed program was:" >&5
10252cat conftest.$ac_ext >&5
10253ac_cv_type_short_int=no
10254fi
10255rm -f conftest.$ac_objext conftest.$ac_ext
10256fi
10257echo "$as_me:10257: result: $ac_cv_type_short_int" >&5
10258echo "${ECHO_T}$ac_cv_type_short_int" >&6
10259
10260echo "$as_me:10260: checking size of short int" >&5
10261echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10262if test "${ac_cv_sizeof_short_int+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 if test "$ac_cv_type_short_int" = yes; then
10266 if test "$cross_compiling" = yes; then
10267 # Depending upon the size, compute the lo and hi bounds.
10268cat >conftest.$ac_ext <<_ACEOF
10269#line 10269 "configure"
10270#include "confdefs.h"
10271$ac_includes_default
10272int
10273main ()
10274{
10275int _array_ [1 - 2 * !((sizeof (short int)) >= 0)]
10276 ;
10277 return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext
10281if { (eval echo "$as_me:10281: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>&5
10283 ac_status=$?
10284 echo "$as_me:10284: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:10287: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:10290: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_lo=0 ac_mid=0
10293 while :; do
10294 cat >conftest.$ac_ext <<_ACEOF
10295#line 10295 "configure"
10296#include "confdefs.h"
10297$ac_includes_default
10298int
10299main ()
10300{
10301int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)]
10302 ;
10303 return 0;
10304}
10305_ACEOF
10306rm -f conftest.$ac_objext
10307if { (eval echo "$as_me:10307: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>&5
10309 ac_status=$?
10310 echo "$as_me:10310: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -s conftest.$ac_objext'
10313 { (eval echo "$as_me:10313: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_hi=$ac_mid; break
10319else
10320 echo "$as_me: failed program was:" >&5
10321cat conftest.$ac_ext >&5
10322ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10323fi
10324rm -f conftest.$ac_objext conftest.$ac_ext
10325 done
10326else
10327 echo "$as_me: failed program was:" >&5
10328cat conftest.$ac_ext >&5
10329ac_hi=-1 ac_mid=-1
10330 while :; do
10331 cat >conftest.$ac_ext <<_ACEOF
10332#line 10332 "configure"
10333#include "confdefs.h"
10334$ac_includes_default
10335int
10336main ()
10337{
10338int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)]
10339 ;
10340 return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext
10344if { (eval echo "$as_me:10344: \"$ac_compile\"") >&5
10345 (eval $ac_compile) 2>&5
10346 ac_status=$?
10347 echo "$as_me:10347: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -s conftest.$ac_objext'
10350 { (eval echo "$as_me:10350: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:10353: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_lo=$ac_mid; break
10356else
10357 echo "$as_me: failed program was:" >&5
10358cat conftest.$ac_ext >&5
10359ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10360fi
10361rm -f conftest.$ac_objext conftest.$ac_ext
10362 done
10363fi
10364rm -f conftest.$ac_objext conftest.$ac_ext
10365# Binary search between lo and hi bounds.
10366while test "x$ac_lo" != "x$ac_hi"; do
10367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10368 cat >conftest.$ac_ext <<_ACEOF
10369#line 10369 "configure"
10370#include "confdefs.h"
10371$ac_includes_default
10372int
10373main ()
10374{
10375int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)]
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext
10381if { (eval echo "$as_me:10381: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>&5
10383 ac_status=$?
10384 echo "$as_me:10384: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:10387: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:10390: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_hi=$ac_mid
10393else
10394 echo "$as_me: failed program was:" >&5
10395cat conftest.$ac_ext >&5
10396ac_lo=`expr $ac_mid + 1`
10397fi
10398rm -f conftest.$ac_objext conftest.$ac_ext
10399done
10400ac_cv_sizeof_short_int=$ac_lo
10401else
10402 if test "$cross_compiling" = yes; then
10403 { { echo "$as_me:10403: error: cannot run test program while cross compiling" >&5
10404echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10405 { (exit 1); exit 1; }; }
10406else
10407 cat >conftest.$ac_ext <<_ACEOF
10408#line 10408 "configure"
10409#include "confdefs.h"
10410$ac_includes_default
10411int
10412main ()
10413{
10414FILE *f = fopen ("conftest.val", "w");
10415if (!f)
10416 exit (1);
10417fprintf (f, "%d", (sizeof (short int)));
10418fclose (f);
10419 ;
10420 return 0;
10421}
10422_ACEOF
10423rm -f conftest$ac_exeext
10424if { (eval echo "$as_me:10424: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10426 ac_status=$?
10427 echo "$as_me:10427: \$? = $ac_status" >&5
10428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10429 { (eval echo "$as_me:10429: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:10432: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_sizeof_short_int=`cat conftest.val`
10435else
10436 echo "$as_me: program exited with status $ac_status" >&5
10437echo "$as_me: failed program was:" >&5
10438cat conftest.$ac_ext >&5
10439fi
10440rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10441fi
10442fi
10443rm -f conftest.val
10444else
10445 ac_cv_sizeof_short_int=0
10446fi
10447fi
10448echo "$as_me:10448: result: $ac_cv_sizeof_short_int" >&5
10449echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10450cat >>confdefs.h <<EOF
10451#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10452EOF
10453
10454echo "$as_me:10454: checking for int" >&5
10455echo $ECHO_N "checking for int... $ECHO_C" >&6
10456if test "${ac_cv_type_int+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 cat >conftest.$ac_ext <<_ACEOF
10460#line 10460 "configure"
10461#include "confdefs.h"
10462$ac_includes_default
10463int
10464main ()
10465{
10466if ((int *) 0)
10467 return 0;
10468if (sizeof (int))
10469 return 0;
10470 ;
10471 return 0;
10472}
10473_ACEOF
10474rm -f conftest.$ac_objext
10475if { (eval echo "$as_me:10475: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
10478 echo "$as_me:10478: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:10481: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:10484: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_type_int=yes
10487else
10488 echo "$as_me: failed program was:" >&5
10489cat conftest.$ac_ext >&5
10490ac_cv_type_int=no
10491fi
10492rm -f conftest.$ac_objext conftest.$ac_ext
10493fi
10494echo "$as_me:10494: result: $ac_cv_type_int" >&5
10495echo "${ECHO_T}$ac_cv_type_int" >&6
10496
10497echo "$as_me:10497: checking size of int" >&5
10498echo $ECHO_N "checking size of int... $ECHO_C" >&6
10499if test "${ac_cv_sizeof_int+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501else
10502 if test "$ac_cv_type_int" = yes; then
10503 if test "$cross_compiling" = yes; then
10504 # Depending upon the size, compute the lo and hi bounds.
10505cat >conftest.$ac_ext <<_ACEOF
10506#line 10506 "configure"
10507#include "confdefs.h"
10508$ac_includes_default
10509int
10510main ()
10511{
10512int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
10518if { (eval echo "$as_me:10518: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>&5
10520 ac_status=$?
10521 echo "$as_me:10521: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -s conftest.$ac_objext'
10524 { (eval echo "$as_me:10524: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_lo=0 ac_mid=0
10530 while :; do
10531 cat >conftest.$ac_ext <<_ACEOF
10532#line 10532 "configure"
10533#include "confdefs.h"
10534$ac_includes_default
10535int
10536main ()
10537{
10538int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext
10544if { (eval echo "$as_me:10544: \"$ac_compile\"") >&5
10545 (eval $ac_compile) 2>&5
10546 ac_status=$?
10547 echo "$as_me:10547: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -s conftest.$ac_objext'
10550 { (eval echo "$as_me:10550: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:10553: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_hi=$ac_mid; break
10556else
10557 echo "$as_me: failed program was:" >&5
10558cat conftest.$ac_ext >&5
10559ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10560fi
10561rm -f conftest.$ac_objext conftest.$ac_ext
10562 done
10563else
10564 echo "$as_me: failed program was:" >&5
10565cat conftest.$ac_ext >&5
10566ac_hi=-1 ac_mid=-1
10567 while :; do
10568 cat >conftest.$ac_ext <<_ACEOF
10569#line 10569 "configure"
10570#include "confdefs.h"
10571$ac_includes_default
10572int
10573main ()
10574{
10575int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext
10581if { (eval echo "$as_me:10581: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10583 ac_status=$?
10584 echo "$as_me:10584: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:10587: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:10590: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_lo=$ac_mid; break
10593else
10594 echo "$as_me: failed program was:" >&5
10595cat conftest.$ac_ext >&5
10596ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10597fi
10598rm -f conftest.$ac_objext conftest.$ac_ext
10599 done
10600fi
10601rm -f conftest.$ac_objext conftest.$ac_ext
10602# Binary search between lo and hi bounds.
10603while test "x$ac_lo" != "x$ac_hi"; do
10604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10605 cat >conftest.$ac_ext <<_ACEOF
10606#line 10606 "configure"
10607#include "confdefs.h"
10608$ac_includes_default
10609int
10610main ()
10611{
10612int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
10613 ;
10614 return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext
10618if { (eval echo "$as_me:10618: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>&5
10620 ac_status=$?
10621 echo "$as_me:10621: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -s conftest.$ac_objext'
10624 { (eval echo "$as_me:10624: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_hi=$ac_mid
10630else
10631 echo "$as_me: failed program was:" >&5
10632cat conftest.$ac_ext >&5
10633ac_lo=`expr $ac_mid + 1`
10634fi
10635rm -f conftest.$ac_objext conftest.$ac_ext
10636done
10637ac_cv_sizeof_int=$ac_lo
10638else
10639 if test "$cross_compiling" = yes; then
10640 { { echo "$as_me:10640: error: cannot run test program while cross compiling" >&5
10641echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10642 { (exit 1); exit 1; }; }
10643else
10644 cat >conftest.$ac_ext <<_ACEOF
10645#line 10645 "configure"
10646#include "confdefs.h"
10647$ac_includes_default
10648int
10649main ()
10650{
10651FILE *f = fopen ("conftest.val", "w");
10652if (!f)
10653 exit (1);
10654fprintf (f, "%d", (sizeof (int)));
10655fclose (f);
10656 ;
10657 return 0;
10658}
10659_ACEOF
10660rm -f conftest$ac_exeext
10661if { (eval echo "$as_me:10661: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10663 ac_status=$?
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10666 { (eval echo "$as_me:10666: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:10669: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_cv_sizeof_int=`cat conftest.val`
10672else
10673 echo "$as_me: program exited with status $ac_status" >&5
10674echo "$as_me: failed program was:" >&5
10675cat conftest.$ac_ext >&5
10676fi
10677rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10678fi
10679fi
10680rm -f conftest.val
10681else
10682 ac_cv_sizeof_int=0
10683fi
10684fi
10685echo "$as_me:10685: result: $ac_cv_sizeof_int" >&5
10686echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10687cat >>confdefs.h <<EOF
10688#define SIZEOF_INT $ac_cv_sizeof_int
10689EOF
10690
10691echo "$as_me:10691: checking for long int" >&5
10692echo $ECHO_N "checking for long int... $ECHO_C" >&6
10693if test "${ac_cv_type_long_int+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 cat >conftest.$ac_ext <<_ACEOF
10697#line 10697 "configure"
10698#include "confdefs.h"
10699$ac_includes_default
10700int
10701main ()
10702{
10703if ((long int *) 0)
10704 return 0;
10705if (sizeof (long int))
10706 return 0;
10707 ;
10708 return 0;
10709}
10710_ACEOF
10711rm -f conftest.$ac_objext
10712if { (eval echo "$as_me:10712: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10714 ac_status=$?
10715 echo "$as_me:10715: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -s conftest.$ac_objext'
10718 { (eval echo "$as_me:10718: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:10721: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_cv_type_long_int=yes
10724else
10725 echo "$as_me: failed program was:" >&5
10726cat conftest.$ac_ext >&5
10727ac_cv_type_long_int=no
10728fi
10729rm -f conftest.$ac_objext conftest.$ac_ext
10730fi
10731echo "$as_me:10731: result: $ac_cv_type_long_int" >&5
10732echo "${ECHO_T}$ac_cv_type_long_int" >&6
10733
10734echo "$as_me:10734: checking size of long int" >&5
10735echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10736if test "${ac_cv_sizeof_long_int+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739 if test "$ac_cv_type_long_int" = yes; then
10740 if test "$cross_compiling" = yes; then
10741 # Depending upon the size, compute the lo and hi bounds.
10742cat >conftest.$ac_ext <<_ACEOF
10743#line 10743 "configure"
10744#include "confdefs.h"
10745$ac_includes_default
10746int
10747main ()
10748{
10749int _array_ [1 - 2 * !((sizeof (long int)) >= 0)]
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext
10755if { (eval echo "$as_me:10755: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>&5
10757 ac_status=$?
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -s conftest.$ac_objext'
10761 { (eval echo "$as_me:10761: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:10764: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 ac_lo=0 ac_mid=0
10767 while :; do
10768 cat >conftest.$ac_ext <<_ACEOF
10769#line 10769 "configure"
10770#include "confdefs.h"
10771$ac_includes_default
10772int
10773main ()
10774{
10775int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
10776 ;
10777 return 0;
10778}
10779_ACEOF
10780rm -f conftest.$ac_objext
10781if { (eval echo "$as_me:10781: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10783 ac_status=$?
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:10787: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:10790: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_hi=$ac_mid; break
10793else
10794 echo "$as_me: failed program was:" >&5
10795cat conftest.$ac_ext >&5
10796ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10797fi
10798rm -f conftest.$ac_objext conftest.$ac_ext
10799 done
10800else
10801 echo "$as_me: failed program was:" >&5
10802cat conftest.$ac_ext >&5
10803ac_hi=-1 ac_mid=-1
10804 while :; do
10805 cat >conftest.$ac_ext <<_ACEOF
10806#line 10806 "configure"
10807#include "confdefs.h"
10808$ac_includes_default
10809int
10810main ()
10811{
10812int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)]
10813 ;
10814 return 0;
10815}
10816_ACEOF
10817rm -f conftest.$ac_objext
10818if { (eval echo "$as_me:10818: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>&5
10820 ac_status=$?
10821 echo "$as_me:10821: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:10824: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:10827: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_lo=$ac_mid; break
10830else
10831 echo "$as_me: failed program was:" >&5
10832cat conftest.$ac_ext >&5
10833ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10834fi
10835rm -f conftest.$ac_objext conftest.$ac_ext
10836 done
10837fi
10838rm -f conftest.$ac_objext conftest.$ac_ext
10839# Binary search between lo and hi bounds.
10840while test "x$ac_lo" != "x$ac_hi"; do
10841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10842 cat >conftest.$ac_ext <<_ACEOF
10843#line 10843 "configure"
10844#include "confdefs.h"
10845$ac_includes_default
10846int
10847main ()
10848{
10849int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (eval echo "$as_me:10855: \"$ac_compile\"") >&5
10856 (eval $ac_compile) 2>&5
10857 ac_status=$?
10858 echo "$as_me:10858: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -s conftest.$ac_objext'
10861 { (eval echo "$as_me:10861: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:10864: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_hi=$ac_mid
10867else
10868 echo "$as_me: failed program was:" >&5
10869cat conftest.$ac_ext >&5
10870ac_lo=`expr $ac_mid + 1`
10871fi
10872rm -f conftest.$ac_objext conftest.$ac_ext
10873done
10874ac_cv_sizeof_long_int=$ac_lo
10875else
10876 if test "$cross_compiling" = yes; then
10877 { { echo "$as_me:10877: error: cannot run test program while cross compiling" >&5
10878echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10879 { (exit 1); exit 1; }; }
10880else
10881 cat >conftest.$ac_ext <<_ACEOF
10882#line 10882 "configure"
10883#include "confdefs.h"
10884$ac_includes_default
10885int
10886main ()
10887{
10888FILE *f = fopen ("conftest.val", "w");
10889if (!f)
10890 exit (1);
10891fprintf (f, "%d", (sizeof (long int)));
10892fclose (f);
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897rm -f conftest$ac_exeext
10898if { (eval echo "$as_me:10898: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10900 ac_status=$?
10901 echo "$as_me:10901: \$? = $ac_status" >&5
10902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10903 { (eval echo "$as_me:10903: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:10906: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_cv_sizeof_long_int=`cat conftest.val`
10909else
10910 echo "$as_me: program exited with status $ac_status" >&5
10911echo "$as_me: failed program was:" >&5
10912cat conftest.$ac_ext >&5
10913fi
10914rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10915fi
10916fi
10917rm -f conftest.val
10918else
10919 ac_cv_sizeof_long_int=0
10920fi
10921fi
10922echo "$as_me:10922: result: $ac_cv_sizeof_long_int" >&5
10923echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10924cat >>confdefs.h <<EOF
10925#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10926EOF
10927
10928echo "$as_me:10928: checking for long long int" >&5
10929echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10930if test "${ac_cv_type_long_long_int+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933 cat >conftest.$ac_ext <<_ACEOF
10934#line 10934 "configure"
10935#include "confdefs.h"
10936$ac_includes_default
10937int
10938main ()
10939{
10940if ((long long int *) 0)
10941 return 0;
10942if (sizeof (long long int))
10943 return 0;
10944 ;
10945 return 0;
10946}
10947_ACEOF
10948rm -f conftest.$ac_objext
10949if { (eval echo "$as_me:10949: \"$ac_compile\"") >&5
10950 (eval $ac_compile) 2>&5
10951 ac_status=$?
10952 echo "$as_me:10952: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (eval echo "$as_me:10955: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:10958: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_type_long_long_int=yes
10961else
10962 echo "$as_me: failed program was:" >&5
10963cat conftest.$ac_ext >&5
10964ac_cv_type_long_long_int=no
10965fi
10966rm -f conftest.$ac_objext conftest.$ac_ext
10967fi
10968echo "$as_me:10968: result: $ac_cv_type_long_long_int" >&5
10969echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10970
10971echo "$as_me:10971: checking size of long long int" >&5
10972echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10973if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 if test "$ac_cv_type_long_long_int" = yes; then
10977 if test "$cross_compiling" = yes; then
10978 # Depending upon the size, compute the lo and hi bounds.
10979cat >conftest.$ac_ext <<_ACEOF
10980#line 10980 "configure"
10981#include "confdefs.h"
10982$ac_includes_default
10983int
10984main ()
10985{
10986int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)]
10987 ;
10988 return 0;
10989}
10990_ACEOF
10991rm -f conftest.$ac_objext
10992if { (eval echo "$as_me:10992: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>&5
10994 ac_status=$?
10995 echo "$as_me:10995: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:10998: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:11001: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_lo=0 ac_mid=0
11004 while :; do
11005 cat >conftest.$ac_ext <<_ACEOF
11006#line 11006 "configure"
11007#include "confdefs.h"
11008$ac_includes_default
11009int
11010main ()
11011{
11012int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11013 ;
11014 return 0;
11015}
11016_ACEOF
11017rm -f conftest.$ac_objext
11018if { (eval echo "$as_me:11018: \"$ac_compile\"") >&5
11019 (eval $ac_compile) 2>&5
11020 ac_status=$?
11021 echo "$as_me:11021: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:11024: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:11027: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_hi=$ac_mid; break
11030else
11031 echo "$as_me: failed program was:" >&5
11032cat conftest.$ac_ext >&5
11033ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11034fi
11035rm -f conftest.$ac_objext conftest.$ac_ext
11036 done
11037else
11038 echo "$as_me: failed program was:" >&5
11039cat conftest.$ac_ext >&5
11040ac_hi=-1 ac_mid=-1
11041 while :; do
11042 cat >conftest.$ac_ext <<_ACEOF
11043#line 11043 "configure"
11044#include "confdefs.h"
11045$ac_includes_default
11046int
11047main ()
11048{
11049int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)]
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (eval echo "$as_me:11055: \"$ac_compile\"") >&5
11056 (eval $ac_compile) 2>&5
11057 ac_status=$?
11058 echo "$as_me:11058: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -s conftest.$ac_objext'
11061 { (eval echo "$as_me:11061: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:11064: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
11066 ac_lo=$ac_mid; break
11067else
11068 echo "$as_me: failed program was:" >&5
11069cat conftest.$ac_ext >&5
11070ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11071fi
11072rm -f conftest.$ac_objext conftest.$ac_ext
11073 done
11074fi
11075rm -f conftest.$ac_objext conftest.$ac_ext
11076# Binary search between lo and hi bounds.
11077while test "x$ac_lo" != "x$ac_hi"; do
11078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11079 cat >conftest.$ac_ext <<_ACEOF
11080#line 11080 "configure"
11081#include "confdefs.h"
11082$ac_includes_default
11083int
11084main ()
11085{
11086int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (eval echo "$as_me:11092: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>&5
11094 ac_status=$?
11095 echo "$as_me:11095: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:11098: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:11101: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_hi=$ac_mid
11104else
11105 echo "$as_me: failed program was:" >&5
11106cat conftest.$ac_ext >&5
11107ac_lo=`expr $ac_mid + 1`
11108fi
11109rm -f conftest.$ac_objext conftest.$ac_ext
11110done
11111ac_cv_sizeof_long_long_int=$ac_lo
11112else
11113 if test "$cross_compiling" = yes; then
11114 { { echo "$as_me:11114: error: cannot run test program while cross compiling" >&5
11115echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11116 { (exit 1); exit 1; }; }
11117else
11118 cat >conftest.$ac_ext <<_ACEOF
11119#line 11119 "configure"
11120#include "confdefs.h"
11121$ac_includes_default
11122int
11123main ()
11124{
11125FILE *f = fopen ("conftest.val", "w");
11126if (!f)
11127 exit (1);
11128fprintf (f, "%d", (sizeof (long long int)));
11129fclose (f);
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134rm -f conftest$ac_exeext
11135if { (eval echo "$as_me:11135: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11137 ac_status=$?
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11140 { (eval echo "$as_me:11140: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_sizeof_long_long_int=`cat conftest.val`
11146else
11147 echo "$as_me: program exited with status $ac_status" >&5
11148echo "$as_me: failed program was:" >&5
11149cat conftest.$ac_ext >&5
11150fi
11151rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11152fi
11153fi
11154rm -f conftest.val
11155else
11156 ac_cv_sizeof_long_long_int=0
11157fi
11158fi
11159echo "$as_me:11159: result: $ac_cv_sizeof_long_long_int" >&5
11160echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11161cat >>confdefs.h <<EOF
11162#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11163EOF
11164
11165# Sanity check long long for some platforms (AIX)
11166if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11167 ac_cv_sizeof_long_long_int=0
11168fi
11169
11170# More checks for data types
11171echo "$as_me:11171: checking for u_int type" >&5
11172echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11173if test "${ac_cv_have_u_int+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176
11177 cat >conftest.$ac_ext <<_ACEOF
11178#line 11178 "configure"
11179#include "confdefs.h"
11180 #include <sys/types.h>
11181int
11182main ()
11183{
11184 u_int a; a = 1;
11185 ;
11186 return 0;
11187}
11188_ACEOF
11189rm -f conftest.$ac_objext
11190if { (eval echo "$as_me:11190: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>&5
11192 ac_status=$?
11193 echo "$as_me:11193: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:11196: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_have_u_int="yes"
11202else
11203 echo "$as_me: failed program was:" >&5
11204cat conftest.$ac_ext >&5
11205 ac_cv_have_u_int="no"
11206
11207fi
11208rm -f conftest.$ac_objext conftest.$ac_ext
11209
11210fi
11211echo "$as_me:11211: result: $ac_cv_have_u_int" >&5
11212echo "${ECHO_T}$ac_cv_have_u_int" >&6
11213if test "x$ac_cv_have_u_int" = "xyes" ; then
11214 cat >>confdefs.h <<\EOF
11215#define HAVE_U_INT 1
11216EOF
11217
11218 have_u_int=1
11219fi
11220
11221echo "$as_me:11221: checking for intXX_t types" >&5
11222echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11223if test "${ac_cv_have_intxx_t+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226
11227 cat >conftest.$ac_ext <<_ACEOF
11228#line 11228 "configure"
11229#include "confdefs.h"
11230 #include <sys/types.h>
11231int
11232main ()
11233{
11234 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:11240: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>&5
11242 ac_status=$?
11243 echo "$as_me:11243: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:11246: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:11249: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_have_intxx_t="yes"
11252else
11253 echo "$as_me: failed program was:" >&5
11254cat conftest.$ac_ext >&5
11255 ac_cv_have_intxx_t="no"
11256
11257fi
11258rm -f conftest.$ac_objext conftest.$ac_ext
11259
11260fi
11261echo "$as_me:11261: result: $ac_cv_have_intxx_t" >&5
11262echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11263if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11264 cat >>confdefs.h <<\EOF
11265#define HAVE_INTXX_T 1
11266EOF
11267
11268 have_intxx_t=1
11269fi
11270
11271if (test -z "$have_intxx_t" && \
11272 test "x$ac_cv_header_stdint_h" = "xyes")
11273then
11274 echo "$as_me:11274: checking for intXX_t types in stdint.h" >&5
11275echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11277#line 11277 "configure"
11278#include "confdefs.h"
11279 #include <stdint.h>
11280int
11281main ()
11282{
11283 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11284 ;
11285 return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext
11289if { (eval echo "$as_me:11289: \"$ac_compile\"") >&5
11290 (eval $ac_compile) 2>&5
11291 ac_status=$?
11292 echo "$as_me:11292: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest.$ac_objext'
11295 { (eval echo "$as_me:11295: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:11298: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300
11301 cat >>confdefs.h <<\EOF
11302#define HAVE_INTXX_T 1
11303EOF
11304
11305 echo "$as_me:11305: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
11307
11308else
11309 echo "$as_me: failed program was:" >&5
11310cat conftest.$ac_ext >&5
11311 echo "$as_me:11311: result: no" >&5
11312echo "${ECHO_T}no" >&6
11313
11314fi
11315rm -f conftest.$ac_objext conftest.$ac_ext
11316fi
11317
11318echo "$as_me:11318: checking for int64_t type" >&5
11319echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11320if test "${ac_cv_have_int64_t+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322else
11323
11324 cat >conftest.$ac_ext <<_ACEOF
11325#line 11325 "configure"
11326#include "confdefs.h"
11327
11328#include <sys/types.h>
11329#ifdef HAVE_STDINT_H
11330# include <stdint.h>
11331#endif
11332#include <sys/socket.h>
11333#ifdef HAVE_SYS_BITYPES_H
11334# include <sys/bitypes.h>
11335#endif
11336
11337int
11338main ()
11339{
11340 int64_t a; a = 1;
11341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (eval echo "$as_me:11346: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>&5
11348 ac_status=$?
11349 echo "$as_me:11349: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (eval echo "$as_me:11352: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:11355: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_cv_have_int64_t="yes"
11358else
11359 echo "$as_me: failed program was:" >&5
11360cat conftest.$ac_ext >&5
11361 ac_cv_have_int64_t="no"
11362
11363fi
11364rm -f conftest.$ac_objext conftest.$ac_ext
11365
11366fi
11367echo "$as_me:11367: result: $ac_cv_have_int64_t" >&5
11368echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11369if test "x$ac_cv_have_int64_t" = "xyes" ; then
11370 cat >>confdefs.h <<\EOF
11371#define HAVE_INT64_T 1
11372EOF
11373
11374fi
11375
11376echo "$as_me:11376: checking for u_intXX_t types" >&5
11377echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11378if test "${ac_cv_have_u_intxx_t+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381
11382 cat >conftest.$ac_ext <<_ACEOF
11383#line 11383 "configure"
11384#include "confdefs.h"
11385 #include <sys/types.h>
11386int
11387main ()
11388{
11389 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
11395if { (eval echo "$as_me:11395: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>&5
11397 ac_status=$?
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:11401: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_cv_have_u_intxx_t="yes"
11407else
11408 echo "$as_me: failed program was:" >&5
11409cat conftest.$ac_ext >&5
11410 ac_cv_have_u_intxx_t="no"
11411
11412fi
11413rm -f conftest.$ac_objext conftest.$ac_ext
11414
11415fi
11416echo "$as_me:11416: result: $ac_cv_have_u_intxx_t" >&5
11417echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11418if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11419 cat >>confdefs.h <<\EOF
11420#define HAVE_U_INTXX_T 1
11421EOF
11422
11423 have_u_intxx_t=1
11424fi
11425
11426if test -z "$have_u_intxx_t" ; then
11427 echo "$as_me:11427: checking for u_intXX_t types in sys/socket.h" >&5
11428echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11429 cat >conftest.$ac_ext <<_ACEOF
11430#line 11430 "configure"
11431#include "confdefs.h"
11432 #include <sys/socket.h>
11433int
11434main ()
11435{
11436 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext
11442if { (eval echo "$as_me:11442: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>&5
11444 ac_status=$?
11445 echo "$as_me:11445: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (eval echo "$as_me:11448: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:11451: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453
11454 cat >>confdefs.h <<\EOF
11455#define HAVE_U_INTXX_T 1
11456EOF
11457
11458 echo "$as_me:11458: result: yes" >&5
11459echo "${ECHO_T}yes" >&6
11460
11461else
11462 echo "$as_me: failed program was:" >&5
11463cat conftest.$ac_ext >&5
11464 echo "$as_me:11464: result: no" >&5
11465echo "${ECHO_T}no" >&6
11466
11467fi
11468rm -f conftest.$ac_objext conftest.$ac_ext
11469fi
11470
11471echo "$as_me:11471: checking for u_int64_t types" >&5
11472echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11473if test "${ac_cv_have_u_int64_t+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475else
11476
11477 cat >conftest.$ac_ext <<_ACEOF
11478#line 11478 "configure"
11479#include "confdefs.h"
11480 #include <sys/types.h>
11481int
11482main ()
11483{
11484 u_int64_t a; a = 1;
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext
11490if { (eval echo "$as_me:11490: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>&5
11492 ac_status=$?
11493 echo "$as_me:11493: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:11496: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:11499: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_have_u_int64_t="yes"
11502else
11503 echo "$as_me: failed program was:" >&5
11504cat conftest.$ac_ext >&5
11505 ac_cv_have_u_int64_t="no"
11506
11507fi
11508rm -f conftest.$ac_objext conftest.$ac_ext
11509
11510fi
11511echo "$as_me:11511: result: $ac_cv_have_u_int64_t" >&5
11512echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11513if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11514 cat >>confdefs.h <<\EOF
11515#define HAVE_U_INT64_T 1
11516EOF
11517
11518 have_u_int64_t=1
11519fi
11520
11521if test -z "$have_u_int64_t" ; then
11522 echo "$as_me:11522: checking for u_int64_t type in sys/bitypes.h" >&5
11523echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11525#line 11525 "configure"
11526#include "confdefs.h"
11527 #include <sys/bitypes.h>
11528int
11529main ()
11530{
11531 u_int64_t a; a = 1
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:11537: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>&5
11539 ac_status=$?
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 (exit $ac_status); } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:11543: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:11546: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548
11549 cat >>confdefs.h <<\EOF
11550#define HAVE_U_INT64_T 1
11551EOF
11552
11553 echo "$as_me:11553: result: yes" >&5
11554echo "${ECHO_T}yes" >&6
11555
11556else
11557 echo "$as_me: failed program was:" >&5
11558cat conftest.$ac_ext >&5
11559 echo "$as_me:11559: result: no" >&5
11560echo "${ECHO_T}no" >&6
11561
11562fi
11563rm -f conftest.$ac_objext conftest.$ac_ext
11564fi
11565
11566if test -z "$have_u_intxx_t" ; then
11567 echo "$as_me:11567: checking for uintXX_t types" >&5
11568echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11569if test "${ac_cv_have_uintxx_t+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571else
11572
11573 cat >conftest.$ac_ext <<_ACEOF
11574#line 11574 "configure"
11575#include "confdefs.h"
11576
11577#include <sys/types.h>
11578
11579int
11580main ()
11581{
11582 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:11588: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>&5
11590 ac_status=$?
11591 echo "$as_me:11591: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -s conftest.$ac_objext'
11594 { (eval echo "$as_me:11594: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:11597: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_have_uintxx_t="yes"
11600else
11601 echo "$as_me: failed program was:" >&5
11602cat conftest.$ac_ext >&5
11603 ac_cv_have_uintxx_t="no"
11604
11605fi
11606rm -f conftest.$ac_objext conftest.$ac_ext
11607
11608fi
11609echo "$as_me:11609: result: $ac_cv_have_uintxx_t" >&5
11610echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11611 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11612 cat >>confdefs.h <<\EOF
11613#define HAVE_UINTXX_T 1
11614EOF
11615
11616 fi
11617fi
11618
11619if test -z "$have_uintxx_t" ; then
11620 echo "$as_me:11620: checking for uintXX_t types in stdint.h" >&5
11621echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11623#line 11623 "configure"
11624#include "confdefs.h"
11625 #include <stdint.h>
11626int
11627main ()
11628{
11629 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11630 ;
11631 return 0;
11632}
11633_ACEOF
11634rm -f conftest.$ac_objext
11635if { (eval echo "$as_me:11635: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>&5
11637 ac_status=$?
11638 echo "$as_me:11638: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -s conftest.$ac_objext'
11641 { (eval echo "$as_me:11641: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:11644: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646
11647 cat >>confdefs.h <<\EOF
11648#define HAVE_UINTXX_T 1
11649EOF
11650
11651 echo "$as_me:11651: result: yes" >&5
11652echo "${ECHO_T}yes" >&6
11653
11654else
11655 echo "$as_me: failed program was:" >&5
11656cat conftest.$ac_ext >&5
11657 echo "$as_me:11657: result: no" >&5
11658echo "${ECHO_T}no" >&6
11659
11660fi
11661rm -f conftest.$ac_objext conftest.$ac_ext
11662fi
11663
11664if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11665 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11666then
11667 echo "$as_me:11667: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11668echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11669 cat >conftest.$ac_ext <<_ACEOF
11670#line 11670 "configure"
11671#include "confdefs.h"
11672
11673#include <sys/bitypes.h>
11674
11675int
11676main ()
11677{
11678
11679 int8_t a; int16_t b; int32_t c;
11680 u_int8_t e; u_int16_t f; u_int32_t g;
11681 a = b = c = e = f = g = 1;
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext
11688if { (eval echo "$as_me:11688: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:11691: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:11694: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:11697: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699
11700 cat >>confdefs.h <<\EOF
11701#define HAVE_U_INTXX_T 1
11702EOF
11703
11704 cat >>confdefs.h <<\EOF
11705#define HAVE_INTXX_T 1
11706EOF
11707
11708 echo "$as_me:11708: result: yes" >&5
11709echo "${ECHO_T}yes" >&6
11710
11711else
11712 echo "$as_me: failed program was:" >&5
11713cat conftest.$ac_ext >&5
11714echo "$as_me:11714: result: no" >&5
11715echo "${ECHO_T}no" >&6
11716
11717fi
11718rm -f conftest.$ac_objext conftest.$ac_ext
11719fi
11720
11721echo "$as_me:11721: checking for u_char" >&5
11722echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11723if test "${ac_cv_have_u_char+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726
11727 cat >conftest.$ac_ext <<_ACEOF
11728#line 11728 "configure"
11729#include "confdefs.h"
11730
11731#include <sys/types.h>
11732
11733int
11734main ()
11735{
11736 u_char foo; foo = 125;
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:11742: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>&5
11744 ac_status=$?
11745 echo "$as_me:11745: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:11748: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:11751: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_have_u_char="yes"
11754else
11755 echo "$as_me: failed program was:" >&5
11756cat conftest.$ac_ext >&5
11757 ac_cv_have_u_char="no"
11758
11759fi
11760rm -f conftest.$ac_objext conftest.$ac_ext
11761
11762fi
11763echo "$as_me:11763: result: $ac_cv_have_u_char" >&5
11764echo "${ECHO_T}$ac_cv_have_u_char" >&6
11765if test "x$ac_cv_have_u_char" = "xyes" ; then
11766 cat >>confdefs.h <<\EOF
11767#define HAVE_U_CHAR 1
11768EOF
11769
11770fi
11771
11772 echo "$as_me:11772: checking for socklen_t" >&5
11773echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11774if test "${ac_cv_type_socklen_t+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776else
11777 cat >conftest.$ac_ext <<_ACEOF
11778#line 11778 "configure"
11779#include "confdefs.h"
11780#include <sys/types.h>
11781#include <sys/socket.h>
11782
11783int
11784main ()
11785{
11786if ((socklen_t *) 0)
11787 return 0;
11788if (sizeof (socklen_t))
11789 return 0;
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_cv_type_socklen_t=yes
11807else
11808 echo "$as_me: failed program was:" >&5
11809cat conftest.$ac_ext >&5
11810ac_cv_type_socklen_t=no
11811fi
11812rm -f conftest.$ac_objext conftest.$ac_ext
11813fi
11814echo "$as_me:11814: result: $ac_cv_type_socklen_t" >&5
11815echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
11816if test $ac_cv_type_socklen_t = yes; then
11817 :
11818else
11819
11820 echo "$as_me:11820: checking for socklen_t equivalent" >&5
11821echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
11822 if test "${curl_cv_socklen_t_equiv+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825
11826 # Systems have either "struct sockaddr *" or
11827 # "void *" as the second argument to getpeername
11828 curl_cv_socklen_t_equiv=
11829 for arg2 in "struct sockaddr" void; do
11830 for t in int size_t unsigned long "unsigned long"; do
11831 cat >conftest.$ac_ext <<_ACEOF
11832#line 11832 "configure"
11833#include "confdefs.h"
11834
11835 #include <sys/types.h>
11836 #include <sys/socket.h>
11837
11838 int getpeername (int, $arg2 *, $t *);
11839
11840int
11841main ()
11842{
11843
11844 $t len;
11845 getpeername(0,0,&len);
11846
11847 ;
11848 return 0;
11849}
11850_ACEOF
11851rm -f conftest.$ac_objext
11852if { (eval echo "$as_me:11852: \"$ac_compile\"") >&5
11853 (eval $ac_compile) 2>&5
11854 ac_status=$?
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest.$ac_objext'
11858 { (eval echo "$as_me:11858: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863
11864 curl_cv_socklen_t_equiv="$t"
11865 break
11866
11867else
11868 echo "$as_me: failed program was:" >&5
11869cat conftest.$ac_ext >&5
11870fi
11871rm -f conftest.$ac_objext conftest.$ac_ext
11872 done
11873 done
11874
11875 if test "x$curl_cv_socklen_t_equiv" = x; then
11876 { { echo "$as_me:11876: error: Cannot find a type to use in place of socklen_t" >&5
11877echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
11878 { (exit 1); exit 1; }; }
11879 fi
11880
11881fi
11882
11883 echo "$as_me:11883: result: $curl_cv_socklen_t_equiv" >&5
11884echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
11885
11886cat >>confdefs.h <<EOF
11887#define socklen_t $curl_cv_socklen_t_equiv
11888EOF
11889
11890fi
11891
11892echo "$as_me:11892: checking for sig_atomic_t" >&5
11893echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
11894if test "${ac_cv_type_sig_atomic_t+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 cat >conftest.$ac_ext <<_ACEOF
11898#line 11898 "configure"
11899#include "confdefs.h"
11900#include <signal.h>
11901
11902int
11903main ()
11904{
11905if ((sig_atomic_t *) 0)
11906 return 0;
11907if (sizeof (sig_atomic_t))
11908 return 0;
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext
11914if { (eval echo "$as_me:11914: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>&5
11916 ac_status=$?
11917 echo "$as_me:11917: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -s conftest.$ac_objext'
11920 { (eval echo "$as_me:11920: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:11923: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_type_sig_atomic_t=yes
11926else
11927 echo "$as_me: failed program was:" >&5
11928cat conftest.$ac_ext >&5
11929ac_cv_type_sig_atomic_t=no
11930fi
11931rm -f conftest.$ac_objext conftest.$ac_ext
11932fi
11933echo "$as_me:11933: result: $ac_cv_type_sig_atomic_t" >&5
11934echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
11935if test $ac_cv_type_sig_atomic_t = yes; then
11936
11937cat >>confdefs.h <<EOF
11938#define HAVE_SIG_ATOMIC_T 1
11939EOF
11940
11941fi
11942
11943echo "$as_me:11943: checking for size_t" >&5
11944echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11945if test "${ac_cv_have_size_t+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948
11949 cat >conftest.$ac_ext <<_ACEOF
11950#line 11950 "configure"
11951#include "confdefs.h"
11952
11953#include <sys/types.h>
11954
11955int
11956main ()
11957{
11958 size_t foo; foo = 1235;
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:11964: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>&5
11966 ac_status=$?
11967 echo "$as_me:11967: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:11970: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:11973: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_have_size_t="yes"
11976else
11977 echo "$as_me: failed program was:" >&5
11978cat conftest.$ac_ext >&5
11979 ac_cv_have_size_t="no"
11980
11981fi
11982rm -f conftest.$ac_objext conftest.$ac_ext
11983
11984fi
11985echo "$as_me:11985: result: $ac_cv_have_size_t" >&5
11986echo "${ECHO_T}$ac_cv_have_size_t" >&6
11987if test "x$ac_cv_have_size_t" = "xyes" ; then
11988 cat >>confdefs.h <<\EOF
11989#define HAVE_SIZE_T 1
11990EOF
11991
11992fi
11993
11994echo "$as_me:11994: checking for ssize_t" >&5
11995echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11996if test "${ac_cv_have_ssize_t+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999
12000 cat >conftest.$ac_ext <<_ACEOF
12001#line 12001 "configure"
12002#include "confdefs.h"
12003
12004#include <sys/types.h>
12005
12006int
12007main ()
12008{
12009 ssize_t foo; foo = 1235;
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext
12015if { (eval echo "$as_me:12015: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>&5
12017 ac_status=$?
12018 echo "$as_me:12018: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:12021: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:12024: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_have_ssize_t="yes"
12027else
12028 echo "$as_me: failed program was:" >&5
12029cat conftest.$ac_ext >&5
12030 ac_cv_have_ssize_t="no"
12031
12032fi
12033rm -f conftest.$ac_objext conftest.$ac_ext
12034
12035fi
12036echo "$as_me:12036: result: $ac_cv_have_ssize_t" >&5
12037echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12038if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12039 cat >>confdefs.h <<\EOF
12040#define HAVE_SSIZE_T 1
12041EOF
12042
12043fi
12044
12045echo "$as_me:12045: checking for clock_t" >&5
12046echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12047if test "${ac_cv_have_clock_t+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050
12051 cat >conftest.$ac_ext <<_ACEOF
12052#line 12052 "configure"
12053#include "confdefs.h"
12054
12055#include <time.h>
12056
12057int
12058main ()
12059{
12060 clock_t foo; foo = 1235;
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (eval echo "$as_me:12066: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>&5
12068 ac_status=$?
12069 echo "$as_me:12069: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:12072: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_cv_have_clock_t="yes"
12078else
12079 echo "$as_me: failed program was:" >&5
12080cat conftest.$ac_ext >&5
12081 ac_cv_have_clock_t="no"
12082
12083fi
12084rm -f conftest.$ac_objext conftest.$ac_ext
12085
12086fi
12087echo "$as_me:12087: result: $ac_cv_have_clock_t" >&5
12088echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12089if test "x$ac_cv_have_clock_t" = "xyes" ; then
12090 cat >>confdefs.h <<\EOF
12091#define HAVE_CLOCK_T 1
12092EOF
12093
12094fi
12095
12096echo "$as_me:12096: checking for sa_family_t" >&5
12097echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12098if test "${ac_cv_have_sa_family_t+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101
12102 cat >conftest.$ac_ext <<_ACEOF
12103#line 12103 "configure"
12104#include "confdefs.h"
12105
12106#include <sys/types.h>
12107#include <sys/socket.h>
12108
12109int
12110main ()
12111{
12112 sa_family_t foo; foo = 1235;
12113 ;
12114 return 0;
12115}
12116_ACEOF
12117rm -f conftest.$ac_objext
12118if { (eval echo "$as_me:12118: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12120 ac_status=$?
12121 echo "$as_me:12121: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:12124: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:12127: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_have_sa_family_t="yes"
12130else
12131 echo "$as_me: failed program was:" >&5
12132cat conftest.$ac_ext >&5
12133 cat >conftest.$ac_ext <<_ACEOF
12134#line 12134 "configure"
12135#include "confdefs.h"
12136
12137#include <sys/types.h>
12138#include <sys/socket.h>
12139#include <netinet/in.h>
12140
12141int
12142main ()
12143{
12144 sa_family_t foo; foo = 1235;
12145 ;
12146 return 0;
12147}
12148_ACEOF
12149rm -f conftest.$ac_objext
12150if { (eval echo "$as_me:12150: \"$ac_compile\"") >&5
12151 (eval $ac_compile) 2>&5
12152 ac_status=$?
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:12156: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_cv_have_sa_family_t="yes"
12162else
12163 echo "$as_me: failed program was:" >&5
12164cat conftest.$ac_ext >&5
12165 ac_cv_have_sa_family_t="no"
12166
12167fi
12168rm -f conftest.$ac_objext conftest.$ac_ext
12169
12170fi
12171rm -f conftest.$ac_objext conftest.$ac_ext
12172
12173fi
12174echo "$as_me:12174: result: $ac_cv_have_sa_family_t" >&5
12175echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12176if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12177 cat >>confdefs.h <<\EOF
12178#define HAVE_SA_FAMILY_T 1
12179EOF
12180
12181fi
12182
12183echo "$as_me:12183: checking for pid_t" >&5
12184echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12185if test "${ac_cv_have_pid_t+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
12188
12189 cat >conftest.$ac_ext <<_ACEOF
12190#line 12190 "configure"
12191#include "confdefs.h"
12192
12193#include <sys/types.h>
12194
12195int
12196main ()
12197{
12198 pid_t foo; foo = 1235;
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203rm -f conftest.$ac_objext
12204if { (eval echo "$as_me:12204: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>&5
12206 ac_status=$?
12207 echo "$as_me:12207: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:12210: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:12213: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_have_pid_t="yes"
12216else
12217 echo "$as_me: failed program was:" >&5
12218cat conftest.$ac_ext >&5
12219 ac_cv_have_pid_t="no"
12220
12221fi
12222rm -f conftest.$ac_objext conftest.$ac_ext
12223
12224fi
12225echo "$as_me:12225: result: $ac_cv_have_pid_t" >&5
12226echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12227if test "x$ac_cv_have_pid_t" = "xyes" ; then
12228 cat >>confdefs.h <<\EOF
12229#define HAVE_PID_T 1
12230EOF
12231
12232fi
12233
12234echo "$as_me:12234: checking for mode_t" >&5
12235echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12236if test "${ac_cv_have_mode_t+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239
12240 cat >conftest.$ac_ext <<_ACEOF
12241#line 12241 "configure"
12242#include "confdefs.h"
12243
12244#include <sys/types.h>
12245
12246int
12247main ()
12248{
12249 mode_t foo; foo = 1235;
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext
12255if { (eval echo "$as_me:12255: \"$ac_compile\"") >&5
12256 (eval $ac_compile) 2>&5
12257 ac_status=$?
12258 echo "$as_me:12258: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -s conftest.$ac_objext'
12261 { (eval echo "$as_me:12261: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:12264: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 ac_cv_have_mode_t="yes"
12267else
12268 echo "$as_me: failed program was:" >&5
12269cat conftest.$ac_ext >&5
12270 ac_cv_have_mode_t="no"
12271
12272fi
12273rm -f conftest.$ac_objext conftest.$ac_ext
12274
12275fi
12276echo "$as_me:12276: result: $ac_cv_have_mode_t" >&5
12277echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12278if test "x$ac_cv_have_mode_t" = "xyes" ; then
12279 cat >>confdefs.h <<\EOF
12280#define HAVE_MODE_T 1
12281EOF
12282
12283fi
12284
12285echo "$as_me:12285: checking for struct sockaddr_storage" >&5
12286echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12287if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
12290
12291 cat >conftest.$ac_ext <<_ACEOF
12292#line 12292 "configure"
12293#include "confdefs.h"
12294
12295#include <sys/types.h>
12296#include <sys/socket.h>
12297
12298int
12299main ()
12300{
12301 struct sockaddr_storage s;
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306rm -f conftest.$ac_objext
12307if { (eval echo "$as_me:12307: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>&5
12309 ac_status=$?
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_have_struct_sockaddr_storage="yes"
12319else
12320 echo "$as_me: failed program was:" >&5
12321cat conftest.$ac_ext >&5
12322 ac_cv_have_struct_sockaddr_storage="no"
12323
12324fi
12325rm -f conftest.$ac_objext conftest.$ac_ext
12326
12327fi
12328echo "$as_me:12328: result: $ac_cv_have_struct_sockaddr_storage" >&5
12329echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12330if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12331 cat >>confdefs.h <<\EOF
12332#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12333EOF
12334
12335fi
12336
12337echo "$as_me:12337: checking for struct sockaddr_in6" >&5
12338echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12339if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342
12343 cat >conftest.$ac_ext <<_ACEOF
12344#line 12344 "configure"
12345#include "confdefs.h"
12346
12347#include <sys/types.h>
12348#include <netinet/in.h>
12349
12350int
12351main ()
12352{
12353 struct sockaddr_in6 s; s.sin6_family = 0;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext
12359if { (eval echo "$as_me:12359: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12361 ac_status=$?
12362 echo "$as_me:12362: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:12365: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:12368: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_have_struct_sockaddr_in6="yes"
12371else
12372 echo "$as_me: failed program was:" >&5
12373cat conftest.$ac_ext >&5
12374 ac_cv_have_struct_sockaddr_in6="no"
12375
12376fi
12377rm -f conftest.$ac_objext conftest.$ac_ext
12378
12379fi
12380echo "$as_me:12380: result: $ac_cv_have_struct_sockaddr_in6" >&5
12381echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12382if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12383 cat >>confdefs.h <<\EOF
12384#define HAVE_STRUCT_SOCKADDR_IN6 1
12385EOF
12386
12387fi
12388
12389echo "$as_me:12389: checking for struct in6_addr" >&5
12390echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12391if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394
12395 cat >conftest.$ac_ext <<_ACEOF
12396#line 12396 "configure"
12397#include "confdefs.h"
12398
12399#include <sys/types.h>
12400#include <netinet/in.h>
12401
12402int
12403main ()
12404{
12405 struct in6_addr s; s.s6_addr[0] = 0;
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410rm -f conftest.$ac_objext
12411if { (eval echo "$as_me:12411: \"$ac_compile\"") >&5
12412 (eval $ac_compile) 2>&5
12413 ac_status=$?
12414 echo "$as_me:12414: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:12417: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:12420: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 ac_cv_have_struct_in6_addr="yes"
12423else
12424 echo "$as_me: failed program was:" >&5
12425cat conftest.$ac_ext >&5
12426 ac_cv_have_struct_in6_addr="no"
12427
12428fi
12429rm -f conftest.$ac_objext conftest.$ac_ext
12430
12431fi
12432echo "$as_me:12432: result: $ac_cv_have_struct_in6_addr" >&5
12433echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12434if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12435 cat >>confdefs.h <<\EOF
12436#define HAVE_STRUCT_IN6_ADDR 1
12437EOF
12438
12439fi
12440
12441echo "$as_me:12441: checking for struct addrinfo" >&5
12442echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12443if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446
12447 cat >conftest.$ac_ext <<_ACEOF
12448#line 12448 "configure"
12449#include "confdefs.h"
12450
12451#include <sys/types.h>
12452#include <sys/socket.h>
12453#include <netdb.h>
12454
12455int
12456main ()
12457{
12458 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463rm -f conftest.$ac_objext
12464if { (eval echo "$as_me:12464: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>&5
12466 ac_status=$?
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_have_struct_addrinfo="yes"
12476else
12477 echo "$as_me: failed program was:" >&5
12478cat conftest.$ac_ext >&5
12479 ac_cv_have_struct_addrinfo="no"
12480
12481fi
12482rm -f conftest.$ac_objext conftest.$ac_ext
12483
12484fi
12485echo "$as_me:12485: result: $ac_cv_have_struct_addrinfo" >&5
12486echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12487if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12488 cat >>confdefs.h <<\EOF
12489#define HAVE_STRUCT_ADDRINFO 1
12490EOF
12491
12492fi
12493
12494echo "$as_me:12494: checking for struct timeval" >&5
12495echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12496if test "${ac_cv_have_struct_timeval+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499
12500 cat >conftest.$ac_ext <<_ACEOF
12501#line 12501 "configure"
12502#include "confdefs.h"
12503 #include <sys/time.h>
12504int
12505main ()
12506{
12507 struct timeval tv; tv.tv_sec = 1;
12508 ;
12509 return 0;
12510}
12511_ACEOF
12512rm -f conftest.$ac_objext
12513if { (eval echo "$as_me:12513: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 echo "$as_me:12516: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:12519: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:12522: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_have_struct_timeval="yes"
12525else
12526 echo "$as_me: failed program was:" >&5
12527cat conftest.$ac_ext >&5
12528 ac_cv_have_struct_timeval="no"
12529
12530fi
12531rm -f conftest.$ac_objext conftest.$ac_ext
12532
12533fi
12534echo "$as_me:12534: result: $ac_cv_have_struct_timeval" >&5
12535echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12536if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12537 cat >>confdefs.h <<\EOF
12538#define HAVE_STRUCT_TIMEVAL 1
12539EOF
12540
12541 have_struct_timeval=1
12542fi
12543
12544echo "$as_me:12544: checking for struct timespec" >&5
12545echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
12546if test "${ac_cv_type_struct_timespec+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548else
12549 cat >conftest.$ac_ext <<_ACEOF
12550#line 12550 "configure"
12551#include "confdefs.h"
12552$ac_includes_default
12553int
12554main ()
12555{
12556if ((struct timespec *) 0)
12557 return 0;
12558if (sizeof (struct timespec))
12559 return 0;
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext
12565if { (eval echo "$as_me:12565: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>&5
12567 ac_status=$?
12568 echo "$as_me:12568: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -s conftest.$ac_objext'
12571 { (eval echo "$as_me:12571: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_type_struct_timespec=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579cat conftest.$ac_ext >&5
12580ac_cv_type_struct_timespec=no
12581fi
12582rm -f conftest.$ac_objext conftest.$ac_ext
12583fi
12584echo "$as_me:12584: result: $ac_cv_type_struct_timespec" >&5
12585echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
12586if test $ac_cv_type_struct_timespec = yes; then
12587
12588cat >>confdefs.h <<EOF
12589#define HAVE_STRUCT_TIMESPEC 1
12590EOF
12591
12592fi
12593
12594# We need int64_t or else certian parts of the compile will fail.
12595if test "x$ac_cv_have_int64_t" = "xno" -a \
12596 "x$ac_cv_sizeof_long_int" != "x8" -a \
12597 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12598 echo "OpenSSH requires int64_t support. Contact your vendor or install"
12599 echo "an alternative compiler (I.E., GCC) before continuing."
12600 echo ""
12601 exit 1;
12602else
12603 if test "$cross_compiling" = yes; then
12604 { { echo "$as_me:12604: error: cannot run test program while cross compiling" >&5
12605echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12606 { (exit 1); exit 1; }; }
12607else
12608 cat >conftest.$ac_ext <<_ACEOF
12609#line 12609 "configure"
12610#include "confdefs.h"
12611
12612#include <stdio.h>
12613#include <string.h>
12614#ifdef HAVE_SNPRINTF
12615main()
12616{
12617 char buf[50];
12618 char expected_out[50];
12619 int mazsize = 50 ;
12620#if (SIZEOF_LONG_INT == 8)
12621 long int num = 0x7fffffffffffffff;
12622#else
12623 long long num = 0x7fffffffffffffffll;
12624#endif
12625 strcpy(expected_out, "9223372036854775807");
12626 snprintf(buf, mazsize, "%lld", num);
12627 if(strcmp(buf, expected_out) != 0)
12628 exit(1);
12629 exit(0);
12630}
12631#else
12632main() { exit(0); }
12633#endif
12634
12635_ACEOF
12636rm -f conftest$ac_exeext
12637if { (eval echo "$as_me:12637: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>&5
12639 ac_status=$?
12640 echo "$as_me:12640: \$? = $ac_status" >&5
12641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12642 { (eval echo "$as_me:12642: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:12645: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 true
12648else
12649 echo "$as_me: program exited with status $ac_status" >&5
12650echo "$as_me: failed program was:" >&5
12651cat conftest.$ac_ext >&5
12652 cat >>confdefs.h <<\EOF
12653#define BROKEN_SNPRINTF 1
12654EOF
12655
12656fi
12657rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12658fi
12659fi
12660
12661# look for field 'ut_host' in header 'utmp.h'
12662 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12663 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12664 echo "$as_me:12664: checking for ut_host field in utmp.h" >&5
12665echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12666 if eval "test \"\${$ossh_varname+set}\" = set"; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668else
12669
12670 cat >conftest.$ac_ext <<_ACEOF
12671#line 12671 "configure"
12672#include "confdefs.h"
12673#include <utmp.h>
12674
12675_ACEOF
12676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12677 egrep "ut_host" >/dev/null 2>&1; then
12678 eval "$ossh_varname=yes"
12679else
12680 eval "$ossh_varname=no"
12681fi
12682rm -f conftest*
12683
12684fi
12685
12686 ossh_result=`eval 'echo $'"$ossh_varname"`
12687 if test -n "`echo $ossh_varname`"; then
12688 echo "$as_me:12688: result: $ossh_result" >&5
12689echo "${ECHO_T}$ossh_result" >&6
12690 if test "x$ossh_result" = "xyes"; then
12691 cat >>confdefs.h <<\EOF
12692#define HAVE_HOST_IN_UTMP 1
12693EOF
12694
12695 fi
12696 else
12697 echo "$as_me:12697: result: no" >&5
12698echo "${ECHO_T}no" >&6
12699 fi
12700
12701# look for field 'ut_host' in header 'utmpx.h'
12702 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12703 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12704 echo "$as_me:12704: checking for ut_host field in utmpx.h" >&5
12705echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12706 if eval "test \"\${$ossh_varname+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709
12710 cat >conftest.$ac_ext <<_ACEOF
12711#line 12711 "configure"
12712#include "confdefs.h"
12713#include <utmpx.h>
12714
12715_ACEOF
12716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12717 egrep "ut_host" >/dev/null 2>&1; then
12718 eval "$ossh_varname=yes"
12719else
12720 eval "$ossh_varname=no"
12721fi
12722rm -f conftest*
12723
12724fi
12725
12726 ossh_result=`eval 'echo $'"$ossh_varname"`
12727 if test -n "`echo $ossh_varname`"; then
12728 echo "$as_me:12728: result: $ossh_result" >&5
12729echo "${ECHO_T}$ossh_result" >&6
12730 if test "x$ossh_result" = "xyes"; then
12731 cat >>confdefs.h <<\EOF
12732#define HAVE_HOST_IN_UTMPX 1
12733EOF
12734
12735 fi
12736 else
12737 echo "$as_me:12737: result: no" >&5
12738echo "${ECHO_T}no" >&6
12739 fi
12740
12741# look for field 'syslen' in header 'utmpx.h'
12742 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12743 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12744 echo "$as_me:12744: checking for syslen field in utmpx.h" >&5
12745echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
12746 if eval "test \"\${$ossh_varname+set}\" = set"; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749
12750 cat >conftest.$ac_ext <<_ACEOF
12751#line 12751 "configure"
12752#include "confdefs.h"
12753#include <utmpx.h>
12754
12755_ACEOF
12756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12757 egrep "syslen" >/dev/null 2>&1; then
12758 eval "$ossh_varname=yes"
12759else
12760 eval "$ossh_varname=no"
12761fi
12762rm -f conftest*
12763
12764fi
12765
12766 ossh_result=`eval 'echo $'"$ossh_varname"`
12767 if test -n "`echo $ossh_varname`"; then
12768 echo "$as_me:12768: result: $ossh_result" >&5
12769echo "${ECHO_T}$ossh_result" >&6
12770 if test "x$ossh_result" = "xyes"; then
12771 cat >>confdefs.h <<\EOF
12772#define HAVE_SYSLEN_IN_UTMPX 1
12773EOF
12774
12775 fi
12776 else
12777 echo "$as_me:12777: result: no" >&5
12778echo "${ECHO_T}no" >&6
12779 fi
12780
12781# look for field 'ut_pid' in header 'utmp.h'
12782 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12783 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12784 echo "$as_me:12784: checking for ut_pid field in utmp.h" >&5
12785echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
12786 if eval "test \"\${$ossh_varname+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789
12790 cat >conftest.$ac_ext <<_ACEOF
12791#line 12791 "configure"
12792#include "confdefs.h"
12793#include <utmp.h>
12794
12795_ACEOF
12796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12797 egrep "ut_pid" >/dev/null 2>&1; then
12798 eval "$ossh_varname=yes"
12799else
12800 eval "$ossh_varname=no"
12801fi
12802rm -f conftest*
12803
12804fi
12805
12806 ossh_result=`eval 'echo $'"$ossh_varname"`
12807 if test -n "`echo $ossh_varname`"; then
12808 echo "$as_me:12808: result: $ossh_result" >&5
12809echo "${ECHO_T}$ossh_result" >&6
12810 if test "x$ossh_result" = "xyes"; then
12811 cat >>confdefs.h <<\EOF
12812#define HAVE_PID_IN_UTMP 1
12813EOF
12814
12815 fi
12816 else
12817 echo "$as_me:12817: result: no" >&5
12818echo "${ECHO_T}no" >&6
12819 fi
12820
12821# look for field 'ut_type' in header 'utmp.h'
12822 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12823 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12824 echo "$as_me:12824: checking for ut_type field in utmp.h" >&5
12825echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
12826 if eval "test \"\${$ossh_varname+set}\" = set"; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828else
12829
12830 cat >conftest.$ac_ext <<_ACEOF
12831#line 12831 "configure"
12832#include "confdefs.h"
12833#include <utmp.h>
12834
12835_ACEOF
12836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12837 egrep "ut_type" >/dev/null 2>&1; then
12838 eval "$ossh_varname=yes"
12839else
12840 eval "$ossh_varname=no"
12841fi
12842rm -f conftest*
12843
12844fi
12845
12846 ossh_result=`eval 'echo $'"$ossh_varname"`
12847 if test -n "`echo $ossh_varname`"; then
12848 echo "$as_me:12848: result: $ossh_result" >&5
12849echo "${ECHO_T}$ossh_result" >&6
12850 if test "x$ossh_result" = "xyes"; then
12851 cat >>confdefs.h <<\EOF
12852#define HAVE_TYPE_IN_UTMP 1
12853EOF
12854
12855 fi
12856 else
12857 echo "$as_me:12857: result: no" >&5
12858echo "${ECHO_T}no" >&6
12859 fi
12860
12861# look for field 'ut_type' in header 'utmpx.h'
12862 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12863 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12864 echo "$as_me:12864: checking for ut_type field in utmpx.h" >&5
12865echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
12866 if eval "test \"\${$ossh_varname+set}\" = set"; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868else
12869
12870 cat >conftest.$ac_ext <<_ACEOF
12871#line 12871 "configure"
12872#include "confdefs.h"
12873#include <utmpx.h>
12874
12875_ACEOF
12876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12877 egrep "ut_type" >/dev/null 2>&1; then
12878 eval "$ossh_varname=yes"
12879else
12880 eval "$ossh_varname=no"
12881fi
12882rm -f conftest*
12883
12884fi
12885
12886 ossh_result=`eval 'echo $'"$ossh_varname"`
12887 if test -n "`echo $ossh_varname`"; then
12888 echo "$as_me:12888: result: $ossh_result" >&5
12889echo "${ECHO_T}$ossh_result" >&6
12890 if test "x$ossh_result" = "xyes"; then
12891 cat >>confdefs.h <<\EOF
12892#define HAVE_TYPE_IN_UTMPX 1
12893EOF
12894
12895 fi
12896 else
12897 echo "$as_me:12897: result: no" >&5
12898echo "${ECHO_T}no" >&6
12899 fi
12900
12901# look for field 'ut_tv' in header 'utmp.h'
12902 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12903 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
12904 echo "$as_me:12904: checking for ut_tv field in utmp.h" >&5
12905echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
12906 if eval "test \"\${$ossh_varname+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
12909
12910 cat >conftest.$ac_ext <<_ACEOF
12911#line 12911 "configure"
12912#include "confdefs.h"
12913#include <utmp.h>
12914
12915_ACEOF
12916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12917 egrep "ut_tv" >/dev/null 2>&1; then
12918 eval "$ossh_varname=yes"
12919else
12920 eval "$ossh_varname=no"
12921fi
12922rm -f conftest*
12923
12924fi
12925
12926 ossh_result=`eval 'echo $'"$ossh_varname"`
12927 if test -n "`echo $ossh_varname`"; then
12928 echo "$as_me:12928: result: $ossh_result" >&5
12929echo "${ECHO_T}$ossh_result" >&6
12930 if test "x$ossh_result" = "xyes"; then
12931 cat >>confdefs.h <<\EOF
12932#define HAVE_TV_IN_UTMP 1
12933EOF
12934
12935 fi
12936 else
12937 echo "$as_me:12937: result: no" >&5
12938echo "${ECHO_T}no" >&6
12939 fi
12940
12941# look for field 'ut_id' in header 'utmp.h'
12942 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12943 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12944 echo "$as_me:12944: checking for ut_id field in utmp.h" >&5
12945echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
12946 if eval "test \"\${$ossh_varname+set}\" = set"; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949
12950 cat >conftest.$ac_ext <<_ACEOF
12951#line 12951 "configure"
12952#include "confdefs.h"
12953#include <utmp.h>
12954
12955_ACEOF
12956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12957 egrep "ut_id" >/dev/null 2>&1; then
12958 eval "$ossh_varname=yes"
12959else
12960 eval "$ossh_varname=no"
12961fi
12962rm -f conftest*
12963
12964fi
12965
12966 ossh_result=`eval 'echo $'"$ossh_varname"`
12967 if test -n "`echo $ossh_varname`"; then
12968 echo "$as_me:12968: result: $ossh_result" >&5
12969echo "${ECHO_T}$ossh_result" >&6
12970 if test "x$ossh_result" = "xyes"; then
12971 cat >>confdefs.h <<\EOF
12972#define HAVE_ID_IN_UTMP 1
12973EOF
12974
12975 fi
12976 else
12977 echo "$as_me:12977: result: no" >&5
12978echo "${ECHO_T}no" >&6
12979 fi
12980
12981# look for field 'ut_id' in header 'utmpx.h'
12982 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12983 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12984 echo "$as_me:12984: checking for ut_id field in utmpx.h" >&5
12985echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
12986 if eval "test \"\${$ossh_varname+set}\" = set"; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989
12990 cat >conftest.$ac_ext <<_ACEOF
12991#line 12991 "configure"
12992#include "confdefs.h"
12993#include <utmpx.h>
12994
12995_ACEOF
12996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12997 egrep "ut_id" >/dev/null 2>&1; then
12998 eval "$ossh_varname=yes"
12999else
13000 eval "$ossh_varname=no"
13001fi
13002rm -f conftest*
13003
13004fi
13005
13006 ossh_result=`eval 'echo $'"$ossh_varname"`
13007 if test -n "`echo $ossh_varname`"; then
13008 echo "$as_me:13008: result: $ossh_result" >&5
13009echo "${ECHO_T}$ossh_result" >&6
13010 if test "x$ossh_result" = "xyes"; then
13011 cat >>confdefs.h <<\EOF
13012#define HAVE_ID_IN_UTMPX 1
13013EOF
13014
13015 fi
13016 else
13017 echo "$as_me:13017: result: no" >&5
13018echo "${ECHO_T}no" >&6
13019 fi
13020
13021# look for field 'ut_addr' in header 'utmp.h'
13022 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13023 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13024 echo "$as_me:13024: checking for ut_addr field in utmp.h" >&5
13025echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13026 if eval "test \"\${$ossh_varname+set}\" = set"; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028else
13029
13030 cat >conftest.$ac_ext <<_ACEOF
13031#line 13031 "configure"
13032#include "confdefs.h"
13033#include <utmp.h>
13034
13035_ACEOF
13036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13037 egrep "ut_addr" >/dev/null 2>&1; then
13038 eval "$ossh_varname=yes"
13039else
13040 eval "$ossh_varname=no"
13041fi
13042rm -f conftest*
13043
13044fi
13045
13046 ossh_result=`eval 'echo $'"$ossh_varname"`
13047 if test -n "`echo $ossh_varname`"; then
13048 echo "$as_me:13048: result: $ossh_result" >&5
13049echo "${ECHO_T}$ossh_result" >&6
13050 if test "x$ossh_result" = "xyes"; then
13051 cat >>confdefs.h <<\EOF
13052#define HAVE_ADDR_IN_UTMP 1
13053EOF
13054
13055 fi
13056 else
13057 echo "$as_me:13057: result: no" >&5
13058echo "${ECHO_T}no" >&6
13059 fi
13060
13061# look for field 'ut_addr' in header 'utmpx.h'
13062 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13063 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13064 echo "$as_me:13064: checking for ut_addr field in utmpx.h" >&5
13065echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13066 if eval "test \"\${$ossh_varname+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069
13070 cat >conftest.$ac_ext <<_ACEOF
13071#line 13071 "configure"
13072#include "confdefs.h"
13073#include <utmpx.h>
13074
13075_ACEOF
13076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077 egrep "ut_addr" >/dev/null 2>&1; then
13078 eval "$ossh_varname=yes"
13079else
13080 eval "$ossh_varname=no"
13081fi
13082rm -f conftest*
13083
13084fi
13085
13086 ossh_result=`eval 'echo $'"$ossh_varname"`
13087 if test -n "`echo $ossh_varname`"; then
13088 echo "$as_me:13088: result: $ossh_result" >&5
13089echo "${ECHO_T}$ossh_result" >&6
13090 if test "x$ossh_result" = "xyes"; then
13091 cat >>confdefs.h <<\EOF
13092#define HAVE_ADDR_IN_UTMPX 1
13093EOF
13094
13095 fi
13096 else
13097 echo "$as_me:13097: result: no" >&5
13098echo "${ECHO_T}no" >&6
13099 fi
13100
13101# look for field 'ut_addr_v6' in header 'utmp.h'
13102 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13103 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13104 echo "$as_me:13104: checking for ut_addr_v6 field in utmp.h" >&5
13105echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13106 if eval "test \"\${$ossh_varname+set}\" = set"; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109
13110 cat >conftest.$ac_ext <<_ACEOF
13111#line 13111 "configure"
13112#include "confdefs.h"
13113#include <utmp.h>
13114
13115_ACEOF
13116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13117 egrep "ut_addr_v6" >/dev/null 2>&1; then
13118 eval "$ossh_varname=yes"
13119else
13120 eval "$ossh_varname=no"
13121fi
13122rm -f conftest*
13123
13124fi
13125
13126 ossh_result=`eval 'echo $'"$ossh_varname"`
13127 if test -n "`echo $ossh_varname`"; then
13128 echo "$as_me:13128: result: $ossh_result" >&5
13129echo "${ECHO_T}$ossh_result" >&6
13130 if test "x$ossh_result" = "xyes"; then
13131 cat >>confdefs.h <<\EOF
13132#define HAVE_ADDR_V6_IN_UTMP 1
13133EOF
13134
13135 fi
13136 else
13137 echo "$as_me:13137: result: no" >&5
13138echo "${ECHO_T}no" >&6
13139 fi
13140
13141# look for field 'ut_addr_v6' in header 'utmpx.h'
13142 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13143 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13144 echo "$as_me:13144: checking for ut_addr_v6 field in utmpx.h" >&5
13145echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13146 if eval "test \"\${$ossh_varname+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#include <utmpx.h>
13154
13155_ACEOF
13156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13157 egrep "ut_addr_v6" >/dev/null 2>&1; then
13158 eval "$ossh_varname=yes"
13159else
13160 eval "$ossh_varname=no"
13161fi
13162rm -f conftest*
13163
13164fi
13165
13166 ossh_result=`eval 'echo $'"$ossh_varname"`
13167 if test -n "`echo $ossh_varname`"; then
13168 echo "$as_me:13168: result: $ossh_result" >&5
13169echo "${ECHO_T}$ossh_result" >&6
13170 if test "x$ossh_result" = "xyes"; then
13171 cat >>confdefs.h <<\EOF
13172#define HAVE_ADDR_V6_IN_UTMPX 1
13173EOF
13174
13175 fi
13176 else
13177 echo "$as_me:13177: result: no" >&5
13178echo "${ECHO_T}no" >&6
13179 fi
13180
13181# look for field 'ut_exit' in header 'utmp.h'
13182 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13183 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13184 echo "$as_me:13184: checking for ut_exit field in utmp.h" >&5
13185echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13186 if eval "test \"\${$ossh_varname+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188else
13189
13190 cat >conftest.$ac_ext <<_ACEOF
13191#line 13191 "configure"
13192#include "confdefs.h"
13193#include <utmp.h>
13194
13195_ACEOF
13196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13197 egrep "ut_exit" >/dev/null 2>&1; then
13198 eval "$ossh_varname=yes"
13199else
13200 eval "$ossh_varname=no"
13201fi
13202rm -f conftest*
13203
13204fi
13205
13206 ossh_result=`eval 'echo $'"$ossh_varname"`
13207 if test -n "`echo $ossh_varname`"; then
13208 echo "$as_me:13208: result: $ossh_result" >&5
13209echo "${ECHO_T}$ossh_result" >&6
13210 if test "x$ossh_result" = "xyes"; then
13211 cat >>confdefs.h <<\EOF
13212#define HAVE_EXIT_IN_UTMP 1
13213EOF
13214
13215 fi
13216 else
13217 echo "$as_me:13217: result: no" >&5
13218echo "${ECHO_T}no" >&6
13219 fi
13220
13221# look for field 'ut_time' in header 'utmp.h'
13222 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13223 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13224 echo "$as_me:13224: checking for ut_time field in utmp.h" >&5
13225echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13226 if eval "test \"\${$ossh_varname+set}\" = set"; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229
13230 cat >conftest.$ac_ext <<_ACEOF
13231#line 13231 "configure"
13232#include "confdefs.h"
13233#include <utmp.h>
13234
13235_ACEOF
13236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13237 egrep "ut_time" >/dev/null 2>&1; then
13238 eval "$ossh_varname=yes"
13239else
13240 eval "$ossh_varname=no"
13241fi
13242rm -f conftest*
13243
13244fi
13245
13246 ossh_result=`eval 'echo $'"$ossh_varname"`
13247 if test -n "`echo $ossh_varname`"; then
13248 echo "$as_me:13248: result: $ossh_result" >&5
13249echo "${ECHO_T}$ossh_result" >&6
13250 if test "x$ossh_result" = "xyes"; then
13251 cat >>confdefs.h <<\EOF
13252#define HAVE_TIME_IN_UTMP 1
13253EOF
13254
13255 fi
13256 else
13257 echo "$as_me:13257: result: no" >&5
13258echo "${ECHO_T}no" >&6
13259 fi
13260
13261# look for field 'ut_time' in header 'utmpx.h'
13262 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13263 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13264 echo "$as_me:13264: checking for ut_time field in utmpx.h" >&5
13265echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13266 if eval "test \"\${$ossh_varname+set}\" = set"; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268else
13269
13270 cat >conftest.$ac_ext <<_ACEOF
13271#line 13271 "configure"
13272#include "confdefs.h"
13273#include <utmpx.h>
13274
13275_ACEOF
13276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13277 egrep "ut_time" >/dev/null 2>&1; then
13278 eval "$ossh_varname=yes"
13279else
13280 eval "$ossh_varname=no"
13281fi
13282rm -f conftest*
13283
13284fi
13285
13286 ossh_result=`eval 'echo $'"$ossh_varname"`
13287 if test -n "`echo $ossh_varname`"; then
13288 echo "$as_me:13288: result: $ossh_result" >&5
13289echo "${ECHO_T}$ossh_result" >&6
13290 if test "x$ossh_result" = "xyes"; then
13291 cat >>confdefs.h <<\EOF
13292#define HAVE_TIME_IN_UTMPX 1
13293EOF
13294
13295 fi
13296 else
13297 echo "$as_me:13297: result: no" >&5
13298echo "${ECHO_T}no" >&6
13299 fi
13300
13301# look for field 'ut_tv' in header 'utmpx.h'
13302 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13303 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13304 echo "$as_me:13304: checking for ut_tv field in utmpx.h" >&5
13305echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13306 if eval "test \"\${$ossh_varname+set}\" = set"; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309
13310 cat >conftest.$ac_ext <<_ACEOF
13311#line 13311 "configure"
13312#include "confdefs.h"
13313#include <utmpx.h>
13314
13315_ACEOF
13316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317 egrep "ut_tv" >/dev/null 2>&1; then
13318 eval "$ossh_varname=yes"
13319else
13320 eval "$ossh_varname=no"
13321fi
13322rm -f conftest*
13323
13324fi
13325
13326 ossh_result=`eval 'echo $'"$ossh_varname"`
13327 if test -n "`echo $ossh_varname`"; then
13328 echo "$as_me:13328: result: $ossh_result" >&5
13329echo "${ECHO_T}$ossh_result" >&6
13330 if test "x$ossh_result" = "xyes"; then
13331 cat >>confdefs.h <<\EOF
13332#define HAVE_TV_IN_UTMPX 1
13333EOF
13334
13335 fi
13336 else
13337 echo "$as_me:13337: result: no" >&5
13338echo "${ECHO_T}no" >&6
13339 fi
13340
13341echo "$as_me:13341: checking for struct stat.st_blksize" >&5
13342echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13343if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345else
13346 cat >conftest.$ac_ext <<_ACEOF
13347#line 13347 "configure"
13348#include "confdefs.h"
13349$ac_includes_default
13350int
13351main ()
13352{
13353static struct stat ac_aggr;
13354if (ac_aggr.st_blksize)
13355return 0;
13356 ;
13357 return 0;
13358}
13359_ACEOF
13360rm -f conftest.$ac_objext
13361if { (eval echo "$as_me:13361: \"$ac_compile\"") >&5
13362 (eval $ac_compile) 2>&5
13363 ac_status=$?
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -s conftest.$ac_objext'
13367 { (eval echo "$as_me:13367: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:13370: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_member_struct_stat_st_blksize=yes
13373else
13374 echo "$as_me: failed program was:" >&5
13375cat conftest.$ac_ext >&5
13376ac_cv_member_struct_stat_st_blksize=no
13377fi
13378rm -f conftest.$ac_objext conftest.$ac_ext
13379fi
13380echo "$as_me:13380: result: $ac_cv_member_struct_stat_st_blksize" >&5
13381echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13382if test $ac_cv_member_struct_stat_st_blksize = yes; then
13383
13384cat >>confdefs.h <<EOF
13385#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13386EOF
13387
13388fi
13389
13390echo "$as_me:13390: checking for ss_family field in struct sockaddr_storage" >&5
13391echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13392if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
13395
13396 cat >conftest.$ac_ext <<_ACEOF
13397#line 13397 "configure"
13398#include "confdefs.h"
13399
13400#include <sys/types.h>
13401#include <sys/socket.h>
13402
13403int
13404main ()
13405{
13406 struct sockaddr_storage s; s.ss_family = 1;
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (eval echo "$as_me:13412: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>&5
13414 ac_status=$?
13415 echo "$as_me:13415: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (eval echo "$as_me:13418: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:13421: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_have_ss_family_in_struct_ss="yes"
13424else
13425 echo "$as_me: failed program was:" >&5
13426cat conftest.$ac_ext >&5
13427 ac_cv_have_ss_family_in_struct_ss="no"
13428fi
13429rm -f conftest.$ac_objext conftest.$ac_ext
13430
13431fi
13432echo "$as_me:13432: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13433echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13434if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13435 cat >>confdefs.h <<\EOF
13436#define HAVE_SS_FAMILY_IN_SS 1
13437EOF
13438
13439fi
13440
13441echo "$as_me:13441: checking for __ss_family field in struct sockaddr_storage" >&5
13442echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13443if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446
13447 cat >conftest.$ac_ext <<_ACEOF
13448#line 13448 "configure"
13449#include "confdefs.h"
13450
13451#include <sys/types.h>
13452#include <sys/socket.h>
13453
13454int
13455main ()
13456{
13457 struct sockaddr_storage s; s.__ss_family = 1;
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462rm -f conftest.$ac_objext
13463if { (eval echo "$as_me:13463: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:13466: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:13469: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_have___ss_family_in_struct_ss="yes"
13475else
13476 echo "$as_me: failed program was:" >&5
13477cat conftest.$ac_ext >&5
13478 ac_cv_have___ss_family_in_struct_ss="no"
13479
13480fi
13481rm -f conftest.$ac_objext conftest.$ac_ext
13482
13483fi
13484echo "$as_me:13484: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13485echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13486if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13487 cat >>confdefs.h <<\EOF
13488#define HAVE___SS_FAMILY_IN_SS 1
13489EOF
13490
13491fi
13492
13493echo "$as_me:13493: checking for pw_class field in struct passwd" >&5
13494echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13495if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497else
13498
13499 cat >conftest.$ac_ext <<_ACEOF
13500#line 13500 "configure"
13501#include "confdefs.h"
13502
13503#include <pwd.h>
13504
13505int
13506main ()
13507{
13508 struct passwd p; p.pw_class = 0;
13509 ;
13510 return 0;
13511}
13512_ACEOF
13513rm -f conftest.$ac_objext
13514if { (eval echo "$as_me:13514: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>&5
13516 ac_status=$?
13517 echo "$as_me:13517: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:13520: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:13523: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_have_pw_class_in_struct_passwd="yes"
13526else
13527 echo "$as_me: failed program was:" >&5
13528cat conftest.$ac_ext >&5
13529 ac_cv_have_pw_class_in_struct_passwd="no"
13530
13531fi
13532rm -f conftest.$ac_objext conftest.$ac_ext
13533
13534fi
13535echo "$as_me:13535: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13536echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13537if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13538 cat >>confdefs.h <<\EOF
13539#define HAVE_PW_CLASS_IN_PASSWD 1
13540EOF
13541
13542fi
13543
13544echo "$as_me:13544: checking for pw_expire field in struct passwd" >&5
13545echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13546if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548else
13549
13550 cat >conftest.$ac_ext <<_ACEOF
13551#line 13551 "configure"
13552#include "confdefs.h"
13553
13554#include <pwd.h>
13555
13556int
13557main ()
13558{
13559 struct passwd p; p.pw_expire = 0;
13560 ;
13561 return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext
13565if { (eval echo "$as_me:13565: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>&5
13567 ac_status=$?
13568 echo "$as_me:13568: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:13571: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:13574: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_have_pw_expire_in_struct_passwd="yes"
13577else
13578 echo "$as_me: failed program was:" >&5
13579cat conftest.$ac_ext >&5
13580 ac_cv_have_pw_expire_in_struct_passwd="no"
13581
13582fi
13583rm -f conftest.$ac_objext conftest.$ac_ext
13584
13585fi
13586echo "$as_me:13586: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13587echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13588if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13589 cat >>confdefs.h <<\EOF
13590#define HAVE_PW_EXPIRE_IN_PASSWD 1
13591EOF
13592
13593fi
13594
13595echo "$as_me:13595: checking for pw_change field in struct passwd" >&5
13596echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13597if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
13600
13601 cat >conftest.$ac_ext <<_ACEOF
13602#line 13602 "configure"
13603#include "confdefs.h"
13604
13605#include <pwd.h>
13606
13607int
13608main ()
13609{
13610 struct passwd p; p.pw_change = 0;
13611 ;
13612 return 0;
13613}
13614_ACEOF
13615rm -f conftest.$ac_objext
13616if { (eval echo "$as_me:13616: \"$ac_compile\"") >&5
13617 (eval $ac_compile) 2>&5
13618 ac_status=$?
13619 echo "$as_me:13619: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (eval echo "$as_me:13622: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:13625: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_have_pw_change_in_struct_passwd="yes"
13628else
13629 echo "$as_me: failed program was:" >&5
13630cat conftest.$ac_ext >&5
13631 ac_cv_have_pw_change_in_struct_passwd="no"
13632
13633fi
13634rm -f conftest.$ac_objext conftest.$ac_ext
13635
13636fi
13637echo "$as_me:13637: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13638echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13639if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13640 cat >>confdefs.h <<\EOF
13641#define HAVE_PW_CHANGE_IN_PASSWD 1
13642EOF
13643
13644fi
13645
13646echo "$as_me:13646: checking for msg_accrights field in struct msghdr" >&5
13647echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13648if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651
13652 if test "$cross_compiling" = yes; then
13653 { { echo "$as_me:13653: error: cannot run test program while cross compiling" >&5
13654echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13655 { (exit 1); exit 1; }; }
13656else
13657 cat >conftest.$ac_ext <<_ACEOF
13658#line 13658 "configure"
13659#include "confdefs.h"
13660
13661#include <sys/types.h>
13662#include <sys/socket.h>
13663#include <sys/uio.h>
13664int main() {
13665#ifdef msg_accrights
13666exit(1);
13667#endif
13668struct msghdr m;
13669m.msg_accrights = 0;
13670exit(0);
13671}
13672
13673_ACEOF
13674rm -f conftest$ac_exeext
13675if { (eval echo "$as_me:13675: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>&5
13677 ac_status=$?
13678 echo "$as_me:13678: \$? = $ac_status" >&5
13679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13680 { (eval echo "$as_me:13680: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13682 ac_status=$?
13683 echo "$as_me:13683: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_have_accrights_in_msghdr="yes"
13686else
13687 echo "$as_me: program exited with status $ac_status" >&5
13688echo "$as_me: failed program was:" >&5
13689cat conftest.$ac_ext >&5
13690 ac_cv_have_accrights_in_msghdr="no"
13691
13692fi
13693rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13694fi
13695
13696fi
13697echo "$as_me:13697: result: $ac_cv_have_accrights_in_msghdr" >&5
13698echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
13699if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13700 cat >>confdefs.h <<\EOF
13701#define HAVE_ACCRIGHTS_IN_MSGHDR 1
13702EOF
13703
13704fi
13705
13706echo "$as_me:13706: checking for msg_control field in struct msghdr" >&5
13707echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
13708if test "${ac_cv_have_control_in_msghdr+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711
13712 if test "$cross_compiling" = yes; then
13713 { { echo "$as_me:13713: error: cannot run test program while cross compiling" >&5
13714echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13715 { (exit 1); exit 1; }; }
13716else
13717 cat >conftest.$ac_ext <<_ACEOF
13718#line 13718 "configure"
13719#include "confdefs.h"
13720
13721#include <sys/types.h>
13722#include <sys/socket.h>
13723#include <sys/uio.h>
13724int main() {
13725#ifdef msg_control
13726exit(1);
13727#endif
13728struct msghdr m;
13729m.msg_control = 0;
13730exit(0);
13731}
13732
13733_ACEOF
13734rm -f conftest$ac_exeext
13735if { (eval echo "$as_me:13735: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13737 ac_status=$?
13738 echo "$as_me:13738: \$? = $ac_status" >&5
13739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13740 { (eval echo "$as_me:13740: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:13743: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_have_control_in_msghdr="yes"
13746else
13747 echo "$as_me: program exited with status $ac_status" >&5
13748echo "$as_me: failed program was:" >&5
13749cat conftest.$ac_ext >&5
13750 ac_cv_have_control_in_msghdr="no"
13751
13752fi
13753rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754fi
13755
13756fi
13757echo "$as_me:13757: result: $ac_cv_have_control_in_msghdr" >&5
13758echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
13759if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13760 cat >>confdefs.h <<\EOF
13761#define HAVE_CONTROL_IN_MSGHDR 1
13762EOF
13763
13764fi
13765
13766echo "$as_me:13766: checking if libc defines __progname" >&5
13767echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
13768if test "${ac_cv_libc_defines___progname+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770else
13771
13772 cat >conftest.$ac_ext <<_ACEOF
13773#line 13773 "configure"
13774#include "confdefs.h"
13775
13776int
13777main ()
13778{
13779 extern char *__progname; printf("%s", __progname);
13780 ;
13781 return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (eval echo "$as_me:13785: \"$ac_link\"") >&5
13786 (eval $ac_link) 2>&5
13787 ac_status=$?
13788 echo "$as_me:13788: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -s conftest$ac_exeext'
13791 { (eval echo "$as_me:13791: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:13794: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_libc_defines___progname="yes"
13797else
13798 echo "$as_me: failed program was:" >&5
13799cat conftest.$ac_ext >&5
13800 ac_cv_libc_defines___progname="no"
13801
13802fi
13803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13804
13805fi
13806echo "$as_me:13806: result: $ac_cv_libc_defines___progname" >&5
13807echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
13808if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13809 cat >>confdefs.h <<\EOF
13810#define HAVE___PROGNAME 1
13811EOF
13812
13813fi
13814
13815echo "$as_me:13815: checking whether $CC implements __FUNCTION__" >&5
13816echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
13817if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822#line 13822 "configure"
13823#include "confdefs.h"
13824
13825#include <stdio.h>
13826
13827int
13828main ()
13829{
13830 printf("%s", __FUNCTION__);
13831 ;
13832 return 0;
13833}
13834_ACEOF
13835rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (eval echo "$as_me:13836: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>&5
13838 ac_status=$?
13839 echo "$as_me:13839: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -s conftest$ac_exeext'
13842 { (eval echo "$as_me:13842: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:13845: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 ac_cv_cc_implements___FUNCTION__="yes"
13848else
13849 echo "$as_me: failed program was:" >&5
13850cat conftest.$ac_ext >&5
13851 ac_cv_cc_implements___FUNCTION__="no"
13852
13853fi
13854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13855
13856fi
13857echo "$as_me:13857: result: $ac_cv_cc_implements___FUNCTION__" >&5
13858echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
13859if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13860 cat >>confdefs.h <<\EOF
13861#define HAVE___FUNCTION__ 1
13862EOF
13863
13864fi
13865
13866echo "$as_me:13866: checking whether $CC implements __func__" >&5
13867echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
13868if test "${ac_cv_cc_implements___func__+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871
13872 cat >conftest.$ac_ext <<_ACEOF
13873#line 13873 "configure"
13874#include "confdefs.h"
13875
13876#include <stdio.h>
13877
13878int
13879main ()
13880{
13881 printf("%s", __func__);
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886rm -f conftest.$ac_objext conftest$ac_exeext
13887if { (eval echo "$as_me:13887: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13889 ac_status=$?
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:13893: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:13896: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_cc_implements___func__="yes"
13899else
13900 echo "$as_me: failed program was:" >&5
13901cat conftest.$ac_ext >&5
13902 ac_cv_cc_implements___func__="no"
13903
13904fi
13905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13906
13907fi
13908echo "$as_me:13908: result: $ac_cv_cc_implements___func__" >&5
13909echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
13910if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13911 cat >>confdefs.h <<\EOF
13912#define HAVE___func__ 1
13913EOF
13914
13915fi
13916
13917echo "$as_me:13917: checking whether getopt has optreset support" >&5
13918echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
13919if test "${ac_cv_have_getopt_optreset+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13921else
13922
13923 cat >conftest.$ac_ext <<_ACEOF
13924#line 13924 "configure"
13925#include "confdefs.h"
13926
13927#include <getopt.h>
13928
13929int
13930main ()
13931{
13932 extern int optreset; optreset = 0;
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext conftest$ac_exeext
13938if { (eval echo "$as_me:13938: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>&5
13940 ac_status=$?
13941 echo "$as_me:13941: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (eval echo "$as_me:13944: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:13947: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_have_getopt_optreset="yes"
13950else
13951 echo "$as_me: failed program was:" >&5
13952cat conftest.$ac_ext >&5
13953 ac_cv_have_getopt_optreset="no"
13954
13955fi
13956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13957
13958fi
13959echo "$as_me:13959: result: $ac_cv_have_getopt_optreset" >&5
13960echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
13961if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
13962 cat >>confdefs.h <<\EOF
13963#define HAVE_GETOPT_OPTRESET 1
13964EOF
13965
13966fi
13967
13968echo "$as_me:13968: checking if libc defines sys_errlist" >&5
13969echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
13970if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973
13974 cat >conftest.$ac_ext <<_ACEOF
13975#line 13975 "configure"
13976#include "confdefs.h"
13977
13978int
13979main ()
13980{
13981 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
13982 ;
13983 return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext conftest$ac_exeext
13987if { (eval echo "$as_me:13987: \"$ac_link\"") >&5
13988 (eval $ac_link) 2>&5
13989 ac_status=$?
13990 echo "$as_me:13990: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest$ac_exeext'
13993 { (eval echo "$as_me:13993: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:13996: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_libc_defines_sys_errlist="yes"
13999else
14000 echo "$as_me: failed program was:" >&5
14001cat conftest.$ac_ext >&5
14002 ac_cv_libc_defines_sys_errlist="no"
14003
14004fi
14005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14006
14007fi
14008echo "$as_me:14008: result: $ac_cv_libc_defines_sys_errlist" >&5
14009echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14010if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14011 cat >>confdefs.h <<\EOF
14012#define HAVE_SYS_ERRLIST 1
14013EOF
14014
14015fi
14016
14017echo "$as_me:14017: checking if libc defines sys_nerr" >&5
14018echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14019if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022
14023 cat >conftest.$ac_ext <<_ACEOF
14024#line 14024 "configure"
14025#include "confdefs.h"
14026
14027int
14028main ()
14029{
14030 extern int sys_nerr; printf("%i", sys_nerr);
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext conftest$ac_exeext
14036if { (eval echo "$as_me:14036: \"$ac_link\"") >&5
14037 (eval $ac_link) 2>&5
14038 ac_status=$?
14039 echo "$as_me:14039: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -s conftest$ac_exeext'
14042 { (eval echo "$as_me:14042: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_libc_defines_sys_nerr="yes"
14048else
14049 echo "$as_me: failed program was:" >&5
14050cat conftest.$ac_ext >&5
14051 ac_cv_libc_defines_sys_nerr="no"
14052
14053fi
14054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14055
14056fi
14057echo "$as_me:14057: result: $ac_cv_libc_defines_sys_nerr" >&5
14058echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14059if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14060 cat >>confdefs.h <<\EOF
14061#define HAVE_SYS_NERR 1
14062EOF
14063
14064fi
14065
14066SCARD_MSG="no"
14067# Check whether user wants sectok support
14068
14069# Check whether --with-sectok or --without-sectok was given.
14070if test "${with_sectok+set}" = set; then
14071 withval="$with_sectok"
14072
14073 if test "x$withval" != "xno" ; then
14074 if test "x$withval" != "xyes" ; then
14075 CPPFLAGS="$CPPFLAGS -I${withval}"
14076 LDFLAGS="$LDFLAGS -L${withval}"
14077 if test ! -z "$need_dash_r" ; then
14078 LDFLAGS="$LDFLAGS -R${withval}"
14079 fi
14080 if test ! -z "$blibpath" ; then
14081 blibpath="$blibpath:${withval}"
14082 fi
14083 fi
14084
14085for ac_header in sectok.h
14086do
14087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088echo "$as_me:14088: checking for $ac_header" >&5
14089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092else
14093 cat >conftest.$ac_ext <<_ACEOF
14094#line 14094 "configure"
14095#include "confdefs.h"
14096#include <$ac_header>
14097_ACEOF
14098if { (eval echo "$as_me:14098: \"$ac_cpp conftest.$ac_ext\"") >&5
14099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14100 ac_status=$?
14101 egrep -v '^ *\+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:14104: \$? = $ac_status" >&5
14105 (exit $ac_status); } >/dev/null; then
14106 if test -s conftest.err; then
14107 ac_cpp_err=$ac_c_preproc_warn_flag
14108 else
14109 ac_cpp_err=
14110 fi
14111else
14112 ac_cpp_err=yes
14113fi
14114if test -z "$ac_cpp_err"; then
14115 eval "$as_ac_Header=yes"
14116else
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 eval "$as_ac_Header=no"
14120fi
14121rm -f conftest.err conftest.$ac_ext
14122fi
14123echo "$as_me:14123: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125if test `eval echo '${'$as_ac_Header'}'` = yes; then
14126 cat >>confdefs.h <<EOF
14127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14128EOF
14129
14130fi
14131done
14132
14133 if test "$ac_cv_header_sectok_h" != yes; then
14134 { { echo "$as_me:14134: error: Can't find sectok.h" >&5
14135echo "$as_me: error: Can't find sectok.h" >&2;}
14136 { (exit 1); exit 1; }; }
14137 fi
14138
14139echo "$as_me:14139: checking for sectok_open in -lsectok" >&5
14140echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14141if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144 ac_check_lib_save_LIBS=$LIBS
14145LIBS="-lsectok $LIBS"
14146cat >conftest.$ac_ext <<_ACEOF
14147#line 14147 "configure"
14148#include "confdefs.h"
14149
14150/* Override any gcc2 internal prototype to avoid an error. */
14151#ifdef __cplusplus
14152extern "C"
14153#endif
14154/* We use char because int might match the return type of a gcc2
14155 builtin and then its argument prototype would still apply. */
14156char sectok_open ();
14157int
14158main ()
14159{
14160sectok_open ();
14161 ;
14162 return 0;
14163}
14164_ACEOF
14165rm -f conftest.$ac_objext conftest$ac_exeext
14166if { (eval echo "$as_me:14166: \"$ac_link\"") >&5
14167 (eval $ac_link) 2>&5
14168 ac_status=$?
14169 echo "$as_me:14169: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -s conftest$ac_exeext'
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_lib_sectok_sectok_open=yes
14178else
14179 echo "$as_me: failed program was:" >&5
14180cat conftest.$ac_ext >&5
14181ac_cv_lib_sectok_sectok_open=no
14182fi
14183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14184LIBS=$ac_check_lib_save_LIBS
14185fi
14186echo "$as_me:14186: result: $ac_cv_lib_sectok_sectok_open" >&5
14187echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14188if test $ac_cv_lib_sectok_sectok_open = yes; then
14189 cat >>confdefs.h <<EOF
14190#define HAVE_LIBSECTOK 1
14191EOF
14192
14193 LIBS="-lsectok $LIBS"
14194
14195fi
14196
14197 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14198 { { echo "$as_me:14198: error: Can't find libsectok" >&5
14199echo "$as_me: error: Can't find libsectok" >&2;}
14200 { (exit 1); exit 1; }; }
14201 fi
14202 cat >>confdefs.h <<\EOF
14203#define SMARTCARD 1
14204EOF
14205
14206 cat >>confdefs.h <<\EOF
14207#define USE_SECTOK 1
14208EOF
14209
14210 SCARD_MSG="yes, using sectok"
14211 fi
14212
14213fi;
14214
14215# Check whether user wants OpenSC support
14216
14217# Check whether --with-opensc or --without-opensc was given.
14218if test "${with_opensc+set}" = set; then
14219 withval="$with_opensc"
14220 opensc_config_prefix="$withval"
14221else
14222 opensc_config_prefix=""
14223fi;
14224if test x$opensc_config_prefix != x ; then
14225 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14226 # Extract the first word of "opensc-config", so it can be a program name with args.
14227set dummy opensc-config; ac_word=$2
14228echo "$as_me:14228: checking for $ac_word" >&5
14229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14230if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 case $OPENSC_CONFIG in
14234 [\\/]* | ?:[\\/]*)
14235 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14236 ;;
14237 *)
14238 ac_save_IFS=$IFS; IFS=$ac_path_separator
14239ac_dummy="$PATH"
14240for ac_dir in $ac_dummy; do
14241 IFS=$ac_save_IFS
14242 test -z "$ac_dir" && ac_dir=.
14243 if $as_executable_p "$ac_dir/$ac_word"; then
14244 ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word"
14245 echo "$as_me:14245: found $ac_dir/$ac_word" >&5
14246 break
14247fi
14248done
14249
14250 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14251 ;;
14252esac
14253fi
14254OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14255
14256if test -n "$OPENSC_CONFIG"; then
14257 echo "$as_me:14257: result: $OPENSC_CONFIG" >&5
14258echo "${ECHO_T}$OPENSC_CONFIG" >&6
14259else
14260 echo "$as_me:14260: result: no" >&5
14261echo "${ECHO_T}no" >&6
14262fi
14263
14264 if test "$OPENSC_CONFIG" != "no"; then
14265 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14266 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14267 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14268 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14269 cat >>confdefs.h <<\EOF
14270#define SMARTCARD 1
14271EOF
14272
14273 cat >>confdefs.h <<\EOF
14274#define USE_OPENSC 1
14275EOF
14276
14277 SCARD_MSG="yes, using OpenSC"
14278 fi
14279fi
14280
14281# Check whether user wants DNS support
14282DNS_MSG="no"
14283
14284# Check whether --with-dns or --without-dns was given.
14285if test "${with_dns+set}" = set; then
14286 withval="$with_dns"
14287
14288 if test "x$withval" != "xno" ; then
14289 DNS_MSG="yes"
14290 cat >>confdefs.h <<\EOF
14291#define DNS 1
14292EOF
14293
14294 echo "$as_me:14294: checking for library containing getrrsetbyname" >&5
14295echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
14296if test "${ac_cv_search_getrrsetbyname+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299 ac_func_search_save_LIBS=$LIBS
14300ac_cv_search_getrrsetbyname=no
14301cat >conftest.$ac_ext <<_ACEOF
14302#line 14302 "configure"
14303#include "confdefs.h"
14304
14305/* Override any gcc2 internal prototype to avoid an error. */
14306#ifdef __cplusplus
14307extern "C"
14308#endif
14309/* We use char because int might match the return type of a gcc2
14310 builtin and then its argument prototype would still apply. */
14311char getrrsetbyname ();
14312int
14313main ()
14314{
14315getrrsetbyname ();
14316 ;
14317 return 0;
14318}
14319_ACEOF
14320rm -f conftest.$ac_objext conftest$ac_exeext
14321if { (eval echo "$as_me:14321: \"$ac_link\"") >&5
14322 (eval $ac_link) 2>&5
14323 ac_status=$?
14324 echo "$as_me:14324: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest$ac_exeext'
14327 { (eval echo "$as_me:14327: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_search_getrrsetbyname="none required"
14333else
14334 echo "$as_me: failed program was:" >&5
14335cat conftest.$ac_ext >&5
14336fi
14337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14338if test "$ac_cv_search_getrrsetbyname" = no; then
14339 for ac_lib in resolv; do
14340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14341 cat >conftest.$ac_ext <<_ACEOF
14342#line 14342 "configure"
14343#include "confdefs.h"
14344
14345/* Override any gcc2 internal prototype to avoid an error. */
14346#ifdef __cplusplus
14347extern "C"
14348#endif
14349/* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351char getrrsetbyname ();
14352int
14353main ()
14354{
14355getrrsetbyname ();
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360rm -f conftest.$ac_objext conftest$ac_exeext
14361if { (eval echo "$as_me:14361: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14363 ac_status=$?
14364 echo "$as_me:14364: \$? = $ac_status" >&5
14365 (exit $ac_status); } &&
14366 { ac_try='test -s conftest$ac_exeext'
14367 { (eval echo "$as_me:14367: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:14370: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
14372 ac_cv_search_getrrsetbyname="-l$ac_lib"
14373break
14374else
14375 echo "$as_me: failed program was:" >&5
14376cat conftest.$ac_ext >&5
14377fi
14378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14379 done
14380fi
14381LIBS=$ac_func_search_save_LIBS
14382fi
14383echo "$as_me:14383: result: $ac_cv_search_getrrsetbyname" >&5
14384echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
14385if test "$ac_cv_search_getrrsetbyname" != no; then
14386 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
14387 cat >>confdefs.h <<\EOF
14388#define HAVE_GETRRSETBYNAME 1
14389EOF
14390
14391else
14392
14393 # Needed by our getrrsetbyname()
14394 echo "$as_me:14394: checking for library containing res_query" >&5
14395echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
14396if test "${ac_cv_search_res_query+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 ac_func_search_save_LIBS=$LIBS
14400ac_cv_search_res_query=no
14401cat >conftest.$ac_ext <<_ACEOF
14402#line 14402 "configure"
14403#include "confdefs.h"
14404
14405/* Override any gcc2 internal prototype to avoid an error. */
14406#ifdef __cplusplus
14407extern "C"
14408#endif
14409/* We use char because int might match the return type of a gcc2
14410 builtin and then its argument prototype would still apply. */
14411char res_query ();
14412int
14413main ()
14414{
14415res_query ();
14416 ;
14417 return 0;
14418}
14419_ACEOF
14420rm -f conftest.$ac_objext conftest$ac_exeext
14421if { (eval echo "$as_me:14421: \"$ac_link\"") >&5
14422 (eval $ac_link) 2>&5
14423 ac_status=$?
14424 echo "$as_me:14424: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:14427: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:14430: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_res_query="none required"
14433else
14434 echo "$as_me: failed program was:" >&5
14435cat conftest.$ac_ext >&5
14436fi
14437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14438if test "$ac_cv_search_res_query" = no; then
14439 for ac_lib in resolv; do
14440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14441 cat >conftest.$ac_ext <<_ACEOF
14442#line 14442 "configure"
14443#include "confdefs.h"
14444
14445/* Override any gcc2 internal prototype to avoid an error. */
14446#ifdef __cplusplus
14447extern "C"
14448#endif
14449/* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451char res_query ();
14452int
14453main ()
14454{
14455res_query ();
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext conftest$ac_exeext
14461if { (eval echo "$as_me:14461: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14463 ac_status=$?
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -s conftest$ac_exeext'
14467 { (eval echo "$as_me:14467: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_search_res_query="-l$ac_lib"
14473break
14474else
14475 echo "$as_me: failed program was:" >&5
14476cat conftest.$ac_ext >&5
14477fi
14478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14479 done
14480fi
14481LIBS=$ac_func_search_save_LIBS
14482fi
14483echo "$as_me:14483: result: $ac_cv_search_res_query" >&5
14484echo "${ECHO_T}$ac_cv_search_res_query" >&6
14485if test "$ac_cv_search_res_query" != no; then
14486 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
14487
14488fi
14489
14490 echo "$as_me:14490: checking for library containing dn_expand" >&5
14491echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
14492if test "${ac_cv_search_dn_expand+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 ac_func_search_save_LIBS=$LIBS
14496ac_cv_search_dn_expand=no
14497cat >conftest.$ac_ext <<_ACEOF
14498#line 14498 "configure"
14499#include "confdefs.h"
14500
14501/* Override any gcc2 internal prototype to avoid an error. */
14502#ifdef __cplusplus
14503extern "C"
14504#endif
14505/* We use char because int might match the return type of a gcc2
14506 builtin and then its argument prototype would still apply. */
14507char dn_expand ();
14508int
14509main ()
14510{
14511dn_expand ();
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516rm -f conftest.$ac_objext conftest$ac_exeext
14517if { (eval echo "$as_me:14517: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>&5
14519 ac_status=$?
14520 echo "$as_me:14520: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -s conftest$ac_exeext'
14523 { (eval echo "$as_me:14523: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:14526: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_search_dn_expand="none required"
14529else
14530 echo "$as_me: failed program was:" >&5
14531cat conftest.$ac_ext >&5
14532fi
14533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14534if test "$ac_cv_search_dn_expand" = no; then
14535 for ac_lib in resolv; do
14536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14537 cat >conftest.$ac_ext <<_ACEOF
14538#line 14538 "configure"
14539#include "confdefs.h"
14540
14541/* Override any gcc2 internal prototype to avoid an error. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545/* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14547char dn_expand ();
14548int
14549main ()
14550{
14551dn_expand ();
14552 ;
14553 return 0;
14554}
14555_ACEOF
14556rm -f conftest.$ac_objext conftest$ac_exeext
14557if { (eval echo "$as_me:14557: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>&5
14559 ac_status=$?
14560 echo "$as_me:14560: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -s conftest$ac_exeext'
14563 { (eval echo "$as_me:14563: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:14566: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_cv_search_dn_expand="-l$ac_lib"
14569break
14570else
14571 echo "$as_me: failed program was:" >&5
14572cat conftest.$ac_ext >&5
14573fi
14574rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14575 done
14576fi
14577LIBS=$ac_func_search_save_LIBS
14578fi
14579echo "$as_me:14579: result: $ac_cv_search_dn_expand" >&5
14580echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
14581if test "$ac_cv_search_dn_expand" != no; then
14582 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
14583
14584fi
14585
14586for ac_func in _getshort _getlong
14587do
14588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589echo "$as_me:14589: checking for $ac_func" >&5
14590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14591if eval "test \"\${$as_ac_var+set}\" = set"; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593else
14594 cat >conftest.$ac_ext <<_ACEOF
14595#line 14595 "configure"
14596#include "confdefs.h"
14597/* System header to define __stub macros and hopefully few prototypes,
14598 which can conflict with char $ac_func (); below. */
14599#include <assert.h>
14600/* Override any gcc2 internal prototype to avoid an error. */
14601#ifdef __cplusplus
14602extern "C"
14603#endif
14604/* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606char $ac_func ();
14607char (*f) ();
14608
14609int
14610main ()
14611{
14612/* The GNU C library defines this for functions which it implements
14613 to always fail with ENOSYS. Some functions are actually named
14614 something starting with __ and the normal name is an alias. */
14615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14616choke me
14617#else
14618f = $ac_func;
14619#endif
14620
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext conftest$ac_exeext
14626if { (eval echo "$as_me:14626: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>&5
14628 ac_status=$?
14629 echo "$as_me:14629: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -s conftest$ac_exeext'
14632 { (eval echo "$as_me:14632: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:14635: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 eval "$as_ac_var=yes"
14638else
14639 echo "$as_me: failed program was:" >&5
14640cat conftest.$ac_ext >&5
14641eval "$as_ac_var=no"
14642fi
14643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14644fi
14645echo "$as_me:14645: result: `eval echo '${'$as_ac_var'}'`" >&5
14646echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14647if test `eval echo '${'$as_ac_var'}'` = yes; then
14648 cat >>confdefs.h <<EOF
14649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14650EOF
14651
14652fi
14653done
14654
14655 echo "$as_me:14655: checking for HEADER.ad" >&5
14656echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
14657if test "${ac_cv_member_HEADER_ad+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659else
14660 cat >conftest.$ac_ext <<_ACEOF
14661#line 14661 "configure"
14662#include "confdefs.h"
14663#include <arpa/nameser.h>
14664
14665int
14666main ()
14667{
14668static HEADER ac_aggr;
14669if (ac_aggr.ad)
14670return 0;
14671 ;
14672 return 0;
14673}
14674_ACEOF
14675rm -f conftest.$ac_objext
14676if { (eval echo "$as_me:14676: \"$ac_compile\"") >&5
14677 (eval $ac_compile) 2>&5
14678 ac_status=$?
14679 echo "$as_me:14679: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:14682: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:14685: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_member_HEADER_ad=yes
14688else
14689 echo "$as_me: failed program was:" >&5
14690cat conftest.$ac_ext >&5
14691ac_cv_member_HEADER_ad=no
14692fi
14693rm -f conftest.$ac_objext conftest.$ac_ext
14694fi
14695echo "$as_me:14695: result: $ac_cv_member_HEADER_ad" >&5
14696echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
14697if test $ac_cv_member_HEADER_ad = yes; then
14698 cat >>confdefs.h <<\EOF
14699#define HAVE_HEADER_AD 1
14700EOF
14701
14702fi
14703
14704fi
14705
14706 fi
14707
14708fi;
14709
14710# Check whether user wants Kerberos 5 support
14711KRB5_MSG="no"
14712
14713# Check whether --with-kerberos5 or --without-kerberos5 was given.
14714if test "${with_kerberos5+set}" = set; then
14715 withval="$with_kerberos5"
14716
14717 if test "x$withval" != "xno" ; then
14718 if test "x$withval" = "xyes" ; then
14719 KRB5ROOT="/usr/local"
14720 else
14721 KRB5ROOT=${withval}
14722 fi
14723 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14724 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14725 cat >>confdefs.h <<\EOF
14726#define KRB5 1
14727EOF
14728
14729 KRB5_MSG="yes"
14730 echo "$as_me:14730: checking whether we are using Heimdal" >&5
14731echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14732 cat >conftest.$ac_ext <<_ACEOF
14733#line 14733 "configure"
14734#include "confdefs.h"
14735 #include <krb5.h>
14736int
14737main ()
14738{
14739 char *tmp = heimdal_version;
14740 ;
14741 return 0;
14742}
14743_ACEOF
14744rm -f conftest.$ac_objext
14745if { (eval echo "$as_me:14745: \"$ac_compile\"") >&5
14746 (eval $ac_compile) 2>&5
14747 ac_status=$?
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -s conftest.$ac_objext'
14751 { (eval echo "$as_me:14751: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:14754: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 echo "$as_me:14756: result: yes" >&5
14757echo "${ECHO_T}yes" >&6
14758 cat >>confdefs.h <<\EOF
14759#define HEIMDAL 1
14760EOF
14761
14762 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14763
14764else
14765 echo "$as_me: failed program was:" >&5
14766cat conftest.$ac_ext >&5
14767 echo "$as_me:14767: result: no" >&5
14768echo "${ECHO_T}no" >&6
14769 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14770
14771fi
14772rm -f conftest.$ac_objext conftest.$ac_ext
14773 if test ! -z "$need_dash_r" ; then
14774 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14775 fi
14776 if test ! -z "$blibpath" ; then
14777 blibpath="$blibpath:${KRB5ROOT}/lib"
14778 fi
14779 echo "$as_me:14779: checking for library containing dn_expand" >&5
14780echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
14781if test "${ac_cv_search_dn_expand+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14783else
14784 ac_func_search_save_LIBS=$LIBS
14785ac_cv_search_dn_expand=no
14786cat >conftest.$ac_ext <<_ACEOF
14787#line 14787 "configure"
14788#include "confdefs.h"
14789
14790/* Override any gcc2 internal prototype to avoid an error. */
14791#ifdef __cplusplus
14792extern "C"
14793#endif
14794/* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14796char dn_expand ();
14797int
14798main ()
14799{
14800dn_expand ();
14801 ;
14802 return 0;
14803}
14804_ACEOF
14805rm -f conftest.$ac_objext conftest$ac_exeext
14806if { (eval echo "$as_me:14806: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>&5
14808 ac_status=$?
14809 echo "$as_me:14809: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -s conftest$ac_exeext'
14812 { (eval echo "$as_me:14812: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:14815: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_search_dn_expand="none required"
14818else
14819 echo "$as_me: failed program was:" >&5
14820cat conftest.$ac_ext >&5
14821fi
14822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14823if test "$ac_cv_search_dn_expand" = no; then
14824 for ac_lib in resolv; do
14825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14826 cat >conftest.$ac_ext <<_ACEOF
14827#line 14827 "configure"
14828#include "confdefs.h"
14829
14830/* Override any gcc2 internal prototype to avoid an error. */
14831#ifdef __cplusplus
14832extern "C"
14833#endif
14834/* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836char dn_expand ();
14837int
14838main ()
14839{
14840dn_expand ();
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext conftest$ac_exeext
14846if { (eval echo "$as_me:14846: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>&5
14848 ac_status=$?
14849 echo "$as_me:14849: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
14851 { ac_try='test -s conftest$ac_exeext'
14852 { (eval echo "$as_me:14852: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:14855: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_cv_search_dn_expand="-l$ac_lib"
14858break
14859else
14860 echo "$as_me: failed program was:" >&5
14861cat conftest.$ac_ext >&5
14862fi
14863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14864 done
14865fi
14866LIBS=$ac_func_search_save_LIBS
14867fi
14868echo "$as_me:14868: result: $ac_cv_search_dn_expand" >&5
14869echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
14870if test "$ac_cv_search_dn_expand" != no; then
14871 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
14872
14873fi
14874
14875 echo "$as_me:14875: checking for gss_init_sec_context in -lgssapi" >&5
14876echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
14877if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879else
14880 ac_check_lib_save_LIBS=$LIBS
14881LIBS="-lgssapi $K5LIBS $LIBS"
14882cat >conftest.$ac_ext <<_ACEOF
14883#line 14883 "configure"
14884#include "confdefs.h"
14885
14886/* Override any gcc2 internal prototype to avoid an error. */
14887#ifdef __cplusplus
14888extern "C"
14889#endif
14890/* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892char gss_init_sec_context ();
14893int
14894main ()
14895{
14896gss_init_sec_context ();
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901rm -f conftest.$ac_objext conftest$ac_exeext
14902if { (eval echo "$as_me:14902: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>&5
14904 ac_status=$?
14905 echo "$as_me:14905: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -s conftest$ac_exeext'
14908 { (eval echo "$as_me:14908: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:14911: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_cv_lib_gssapi_gss_init_sec_context=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916cat conftest.$ac_ext >&5
14917ac_cv_lib_gssapi_gss_init_sec_context=no
14918fi
14919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14920LIBS=$ac_check_lib_save_LIBS
14921fi
14922echo "$as_me:14922: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14923echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
14924if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
14925 cat >>confdefs.h <<\EOF
14926#define GSSAPI 1
14927EOF
14928
14929 K5LIBS="-lgssapi $K5LIBS"
14930else
14931 echo "$as_me:14931: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14932echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
14933if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936 ac_check_lib_save_LIBS=$LIBS
14937LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14938cat >conftest.$ac_ext <<_ACEOF
14939#line 14939 "configure"
14940#include "confdefs.h"
14941
14942/* Override any gcc2 internal prototype to avoid an error. */
14943#ifdef __cplusplus
14944extern "C"
14945#endif
14946/* We use char because int might match the return type of a gcc2
14947 builtin and then its argument prototype would still apply. */
14948char gss_init_sec_context ();
14949int
14950main ()
14951{
14952gss_init_sec_context ();
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957rm -f conftest.$ac_objext conftest$ac_exeext
14958if { (eval echo "$as_me:14958: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>&5
14960 ac_status=$?
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:14964: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:14967: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972cat conftest.$ac_ext >&5
14973ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14974fi
14975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14976LIBS=$ac_check_lib_save_LIBS
14977fi
14978echo "$as_me:14978: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14979echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
14980if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
14981 cat >>confdefs.h <<\EOF
14982#define GSSAPI 1
14983EOF
14984
14985 K5LIBS="-lgssapi_krb5 $K5LIBS"
14986else
14987 { echo "$as_me:14987: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14988echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14989fi
14990
14991fi
14992
14993 echo "$as_me:14993: checking for gssapi.h" >&5
14994echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
14995if test "${ac_cv_header_gssapi_h+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998 cat >conftest.$ac_ext <<_ACEOF
14999#line 14999 "configure"
15000#include "confdefs.h"
15001#include <gssapi.h>
15002_ACEOF
15003if { (eval echo "$as_me:15003: \"$ac_cpp conftest.$ac_ext\"") >&5
15004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15005 ac_status=$?
15006 egrep -v '^ *\+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:15009: \$? = $ac_status" >&5
15010 (exit $ac_status); } >/dev/null; then
15011 if test -s conftest.err; then
15012 ac_cpp_err=$ac_c_preproc_warn_flag
15013 else
15014 ac_cpp_err=
15015 fi
15016else
15017 ac_cpp_err=yes
15018fi
15019if test -z "$ac_cpp_err"; then
15020 ac_cv_header_gssapi_h=yes
15021else
15022 echo "$as_me: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15024 ac_cv_header_gssapi_h=no
15025fi
15026rm -f conftest.err conftest.$ac_ext
15027fi
15028echo "$as_me:15028: result: $ac_cv_header_gssapi_h" >&5
15029echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
15030if test $ac_cv_header_gssapi_h = yes; then
15031 :
15032else
15033 unset ac_cv_header_gssapi_h
15034 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15035
15036for ac_header in gssapi.h
15037do
15038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039echo "$as_me:15039: checking for $ac_header" >&5
15040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15041if eval "test \"\${$as_ac_Header+set}\" = set"; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043else
15044 cat >conftest.$ac_ext <<_ACEOF
15045#line 15045 "configure"
15046#include "confdefs.h"
15047#include <$ac_header>
15048_ACEOF
15049if { (eval echo "$as_me:15049: \"$ac_cpp conftest.$ac_ext\"") >&5
15050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15051 ac_status=$?
15052 egrep -v '^ *\+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); } >/dev/null; then
15057 if test -s conftest.err; then
15058 ac_cpp_err=$ac_c_preproc_warn_flag
15059 else
15060 ac_cpp_err=
15061 fi
15062else
15063 ac_cpp_err=yes
15064fi
15065if test -z "$ac_cpp_err"; then
15066 eval "$as_ac_Header=yes"
15067else
15068 echo "$as_me: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 eval "$as_ac_Header=no"
15071fi
15072rm -f conftest.err conftest.$ac_ext
15073fi
15074echo "$as_me:15074: result: `eval echo '${'$as_ac_Header'}'`" >&5
15075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15076if test `eval echo '${'$as_ac_Header'}'` = yes; then
15077 cat >>confdefs.h <<EOF
15078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15079EOF
15080
15081else
15082 { echo "$as_me:15082: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15083echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15084
15085fi
15086done
15087
15088fi
15089
15090 oldCPP="$CPPFLAGS"
15091 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15092 echo "$as_me:15092: checking for gssapi_krb5.h" >&5
15093echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
15094if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096else
15097 cat >conftest.$ac_ext <<_ACEOF
15098#line 15098 "configure"
15099#include "confdefs.h"
15100#include <gssapi_krb5.h>
15101_ACEOF
15102if { (eval echo "$as_me:15102: \"$ac_cpp conftest.$ac_ext\"") >&5
15103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15104 ac_status=$?
15105 egrep -v '^ *\+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 echo "$as_me:15108: \$? = $ac_status" >&5
15109 (exit $ac_status); } >/dev/null; then
15110 if test -s conftest.err; then
15111 ac_cpp_err=$ac_c_preproc_warn_flag
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_cv_header_gssapi_krb5_h=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15123 ac_cv_header_gssapi_krb5_h=no
15124fi
15125rm -f conftest.err conftest.$ac_ext
15126fi
15127echo "$as_me:15127: result: $ac_cv_header_gssapi_krb5_h" >&5
15128echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
15129if test $ac_cv_header_gssapi_krb5_h = yes; then
15130 :
15131else
15132 CPPFLAGS="$oldCPP"
15133fi
15134
15135 KRB5=yes
15136 fi
15137
15138fi;
15139LIBS="$LIBS $K5LIBS"
15140
15141# Looking for programs, paths and files
15142
15143PRIVSEP_PATH=/var/empty
15144
15145# Check whether --with-privsep-path or --without-privsep-path was given.
15146if test "${with_privsep_path+set}" = set; then
15147 withval="$with_privsep_path"
15148
15149 if test "x$withval" != "$no" ; then
15150 PRIVSEP_PATH=$withval
15151 fi
15152
15153fi;
15154
15155# Check whether --with-xauth or --without-xauth was given.
15156if test "${with_xauth+set}" = set; then
15157 withval="$with_xauth"
15158
15159 if test "x$withval" != "xno" ; then
15160 xauth_path=$withval
15161 fi
15162
15163else
15164
15165 TestPath="$PATH"
15166 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15167 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15168 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15169 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15170 # Extract the first word of "xauth", so it can be a program name with args.
15171set dummy xauth; ac_word=$2
15172echo "$as_me:15172: checking for $ac_word" >&5
15173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15174if test "${ac_cv_path_xauth_path+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 case $xauth_path in
15178 [\\/]* | ?:[\\/]*)
15179 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15180 ;;
15181 *)
15182 ac_save_IFS=$IFS; IFS=$ac_path_separator
15183ac_dummy="$TestPath"
15184for ac_dir in $ac_dummy; do
15185 IFS=$ac_save_IFS
15186 test -z "$ac_dir" && ac_dir=.
15187 if $as_executable_p "$ac_dir/$ac_word"; then
15188 ac_cv_path_xauth_path="$ac_dir/$ac_word"
15189 echo "$as_me:15189: found $ac_dir/$ac_word" >&5
15190 break
15191fi
15192done
15193
15194 ;;
15195esac
15196fi
15197xauth_path=$ac_cv_path_xauth_path
15198
15199if test -n "$xauth_path"; then
15200 echo "$as_me:15200: result: $xauth_path" >&5
15201echo "${ECHO_T}$xauth_path" >&6
15202else
15203 echo "$as_me:15203: result: no" >&5
15204echo "${ECHO_T}no" >&6
15205fi
15206
15207 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15208 xauth_path="/usr/openwin/bin/xauth"
15209 fi
15210
15211fi;
15212
15213STRIP_OPT=-s
15214# Check whether --enable-strip or --disable-strip was given.
15215if test "${enable_strip+set}" = set; then
15216 enableval="$enable_strip"
15217
15218 if test "x$enableval" = "xno" ; then
15219 STRIP_OPT=
15220 fi
15221
15222fi;
15223
15224if test -z "$xauth_path" ; then
15225 XAUTH_PATH="undefined"
15226
15227else
15228 cat >>confdefs.h <<EOF
15229#define XAUTH_PATH "$xauth_path"
15230EOF
15231
15232 XAUTH_PATH=$xauth_path
15233
15234fi
15235
15236# Check for mail directory (last resort if we cannot get it from headers)
15237if test ! -z "$MAIL" ; then
15238 maildir=`dirname $MAIL`
15239 cat >>confdefs.h <<EOF
15240#define MAIL_DIRECTORY "$maildir"
15241EOF
15242
15243fi
15244
15245if test -z "$no_dev_ptmx" ; then
15246 if test "x$disable_ptmx_check" != "xyes" ; then
15247 echo "$as_me:15247: checking for \"/dev/ptmx\"" >&5
15248echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15249if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 test "$cross_compiling" = yes &&
15253 { { echo "$as_me:15253: error: cannot check for file existence when cross compiling" >&5
15254echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15255 { (exit 1); exit 1; }; }
15256if test -r ""/dev/ptmx""; then
15257 ac_cv_file___dev_ptmx_=yes
15258else
15259 ac_cv_file___dev_ptmx_=no
15260fi
15261fi
15262echo "$as_me:15262: result: $ac_cv_file___dev_ptmx_" >&5
15263echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15264if test $ac_cv_file___dev_ptmx_ = yes; then
15265
15266 cat >>confdefs.h <<EOF
15267#define HAVE_DEV_PTMX 1
15268EOF
15269
15270 have_dev_ptmx=1
15271
15272fi
15273
15274 fi
15275fi
15276echo "$as_me:15276: checking for \"/dev/ptc\"" >&5
15277echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15278if test "${ac_cv_file___dev_ptc_+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281 test "$cross_compiling" = yes &&
15282 { { echo "$as_me:15282: error: cannot check for file existence when cross compiling" >&5
15283echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15284 { (exit 1); exit 1; }; }
15285if test -r ""/dev/ptc""; then
15286 ac_cv_file___dev_ptc_=yes
15287else
15288 ac_cv_file___dev_ptc_=no
15289fi
15290fi
15291echo "$as_me:15291: result: $ac_cv_file___dev_ptc_" >&5
15292echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15293if test $ac_cv_file___dev_ptc_ = yes; then
15294
15295 cat >>confdefs.h <<EOF
15296#define HAVE_DEV_PTS_AND_PTC 1
15297EOF
15298
15299 have_dev_ptc=1
15300
15301fi
15302
15303# Options from here on. Some of these are preset by platform above
15304
15305# Check whether --with-mantype or --without-mantype was given.
15306if test "${with_mantype+set}" = set; then
15307 withval="$with_mantype"
15308
15309 case "$withval" in
15310 man|cat|doc)
15311 MANTYPE=$withval
15312 ;;
15313 *)
15314 { { echo "$as_me:15314: error: invalid man type: $withval" >&5
15315echo "$as_me: error: invalid man type: $withval" >&2;}
15316 { (exit 1); exit 1; }; }
15317 ;;
15318 esac
15319
15320fi;
15321if test -z "$MANTYPE"; then
15322 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15323 for ac_prog in nroff awf
15324do
15325 # Extract the first word of "$ac_prog", so it can be a program name with args.
15326set dummy $ac_prog; ac_word=$2
15327echo "$as_me:15327: checking for $ac_word" >&5
15328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15329if test "${ac_cv_path_NROFF+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331else
15332 case $NROFF in
15333 [\\/]* | ?:[\\/]*)
15334 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15335 ;;
15336 *)
15337 ac_save_IFS=$IFS; IFS=$ac_path_separator
15338ac_dummy="$TestPath"
15339for ac_dir in $ac_dummy; do
15340 IFS=$ac_save_IFS
15341 test -z "$ac_dir" && ac_dir=.
15342 if $as_executable_p "$ac_dir/$ac_word"; then
15343 ac_cv_path_NROFF="$ac_dir/$ac_word"
15344 echo "$as_me:15344: found $ac_dir/$ac_word" >&5
15345 break
15346fi
15347done
15348
15349 ;;
15350esac
15351fi
15352NROFF=$ac_cv_path_NROFF
15353
15354if test -n "$NROFF"; then
15355 echo "$as_me:15355: result: $NROFF" >&5
15356echo "${ECHO_T}$NROFF" >&6
15357else
15358 echo "$as_me:15358: result: no" >&5
15359echo "${ECHO_T}no" >&6
15360fi
15361
15362 test -n "$NROFF" && break
15363done
15364test -n "$NROFF" || NROFF="/bin/false"
15365
15366 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15367 MANTYPE=doc
15368 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15369 MANTYPE=man
15370 else
15371 MANTYPE=cat
15372 fi
15373fi
15374
15375if test "$MANTYPE" = "doc"; then
15376 mansubdir=man;
15377else
15378 mansubdir=$MANTYPE;
15379fi
15380
15381# Check whether to enable MD5 passwords
15382MD5_MSG="no"
15383
15384# Check whether --with-md5-passwords or --without-md5-passwords was given.
15385if test "${with_md5_passwords+set}" = set; then
15386 withval="$with_md5_passwords"
15387
15388 if test "x$withval" != "xno" ; then
15389 cat >>confdefs.h <<\EOF
15390#define HAVE_MD5_PASSWORDS 1
15391EOF
15392
15393 MD5_MSG="yes"
15394 fi
15395
15396fi;
15397
15398# Whether to disable shadow password support
15399
15400# Check whether --with-shadow or --without-shadow was given.
15401if test "${with_shadow+set}" = set; then
15402 withval="$with_shadow"
15403
15404 if test "x$withval" = "xno" ; then
15405 cat >>confdefs.h <<\EOF
15406#define DISABLE_SHADOW 1
15407EOF
15408
15409 disable_shadow=yes
15410 fi
15411
15412fi;
15413
15414if test -z "$disable_shadow" ; then
15415 echo "$as_me:15415: checking if the systems has expire shadow information" >&5
15416echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15418#line 15418 "configure"
15419#include "confdefs.h"
15420
15421#include <sys/types.h>
15422#include <shadow.h>
15423 struct spwd sp;
15424
15425int
15426main ()
15427{
15428 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15429 ;
15430 return 0;
15431}
15432_ACEOF
15433rm -f conftest.$ac_objext
15434if { (eval echo "$as_me:15434: \"$ac_compile\"") >&5
15435 (eval $ac_compile) 2>&5
15436 ac_status=$?
15437 echo "$as_me:15437: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:15440: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:15443: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 sp_expire_available=yes
15446else
15447 echo "$as_me: failed program was:" >&5
15448cat conftest.$ac_ext >&5
15449
15450fi
15451rm -f conftest.$ac_objext conftest.$ac_ext
15452
15453 if test "x$sp_expire_available" = "xyes" ; then
15454 echo "$as_me:15454: result: yes" >&5
15455echo "${ECHO_T}yes" >&6
15456 cat >>confdefs.h <<\EOF
15457#define HAS_SHADOW_EXPIRE 1
15458EOF
15459
15460 else
15461 echo "$as_me:15461: result: no" >&5
15462echo "${ECHO_T}no" >&6
15463 fi
15464fi
15465
15466# Use ip address instead of hostname in $DISPLAY
15467if test ! -z "$IPADDR_IN_DISPLAY" ; then
15468 DISPLAY_HACK_MSG="yes"
15469 cat >>confdefs.h <<\EOF
15470#define IPADDR_IN_DISPLAY 1
15471EOF
15472
15473else
15474 DISPLAY_HACK_MSG="no"
15475
15476# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15477if test "${with_ipaddr_display+set}" = set; then
15478 withval="$with_ipaddr_display"
15479
15480 if test "x$withval" != "xno" ; then
15481 cat >>confdefs.h <<\EOF
15482#define IPADDR_IN_DISPLAY 1
15483EOF
15484
15485 DISPLAY_HACK_MSG="yes"
15486 fi
15487
15488fi;
15489fi
15490
15491# check for /etc/default/login and use it if present.
15492# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
15493if test "${enable_etc_default_login+set}" = set; then
15494 enableval="$enable_etc_default_login"
15495
15496else
15497
15498echo "$as_me:15498: checking for \"/etc/default/login\"" >&5
15499echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
15500if test "${ac_cv_file___etc_default_login_+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
15503 test "$cross_compiling" = yes &&
15504 { { echo "$as_me:15504: error: cannot check for file existence when cross compiling" >&5
15505echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15506 { (exit 1); exit 1; }; }
15507if test -r ""/etc/default/login""; then
15508 ac_cv_file___etc_default_login_=yes
15509else
15510 ac_cv_file___etc_default_login_=no
15511fi
15512fi
15513echo "$as_me:15513: result: $ac_cv_file___etc_default_login_" >&5
15514echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
15515if test $ac_cv_file___etc_default_login_ = yes; then
15516 external_path_file=/etc/default/login
15517fi
15518
15519if test "x$external_path_file" = "x/etc/default/login"; then
15520 cat >>confdefs.h <<\EOF
15521#define HAVE_ETC_DEFAULT_LOGIN 1
15522EOF
15523
15524fi
15525
15526fi;
15527
15528if test $ac_cv_func_login_getcapbool = "yes" -a \
15529 $ac_cv_header_login_cap_h = "yes" ; then
15530 external_path_file=/etc/login.conf
15531fi
15532
15533# Whether to mess with the default path
15534SERVER_PATH_MSG="(default)"
15535
15536# Check whether --with-default-path or --without-default-path was given.
15537if test "${with_default_path+set}" = set; then
15538 withval="$with_default_path"
15539
15540 if test "x$external_path_file" = "x/etc/login.conf" ; then
15541 { echo "$as_me:15541: WARNING:
15542--with-default-path=PATH has no effect on this system.
15543Edit /etc/login.conf instead." >&5
15544echo "$as_me: WARNING:
15545--with-default-path=PATH has no effect on this system.
15546Edit /etc/login.conf instead." >&2;}
15547 elif test "x$withval" != "xno" ; then
15548 if test ! -z "$external_path_file" ; then
15549 { echo "$as_me:15549: WARNING:
15550--with-default-path=PATH will only be used if PATH is not defined in
15551$external_path_file ." >&5
15552echo "$as_me: WARNING:
15553--with-default-path=PATH will only be used if PATH is not defined in
15554$external_path_file ." >&2;}
15555 fi
15556 user_path="$withval"
15557 SERVER_PATH_MSG="$withval"
15558 fi
15559
15560else
15561 if test "x$external_path_file" = "x/etc/login.conf" ; then
15562 { echo "$as_me:15562: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15563echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15564 else
15565 if test ! -z "$external_path_file" ; then
15566 { echo "$as_me:15566: WARNING:
15567If PATH is defined in $external_path_file, ensure the path to scp is included,
15568otherwise scp will not work." >&5
15569echo "$as_me: WARNING:
15570If PATH is defined in $external_path_file, ensure the path to scp is included,
15571otherwise scp will not work." >&2;}
15572 fi
15573 if test "$cross_compiling" = yes; then
15574 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15575
15576else
15577 cat >conftest.$ac_ext <<_ACEOF
15578#line 15578 "configure"
15579#include "confdefs.h"
15580
15581/* find out what STDPATH is */
15582#include <stdio.h>
15583#ifdef HAVE_PATHS_H
15584# include <paths.h>
15585#endif
15586#ifndef _PATH_STDPATH
15587# ifdef _PATH_USERPATH /* Irix */
15588# define _PATH_STDPATH _PATH_USERPATH
15589# else
15590# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15591# endif
15592#endif
15593#include <sys/types.h>
15594#include <sys/stat.h>
15595#include <fcntl.h>
15596#define DATA "conftest.stdpath"
15597
15598main()
15599{
15600 FILE *fd;
15601 int rc;
15602
15603 fd = fopen(DATA,"w");
15604 if(fd == NULL)
15605 exit(1);
15606
15607 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15608 exit(1);
15609
15610 exit(0);
15611}
15612
15613_ACEOF
15614rm -f conftest$ac_exeext
15615if { (eval echo "$as_me:15615: \"$ac_link\"") >&5
15616 (eval $ac_link) 2>&5
15617 ac_status=$?
15618 echo "$as_me:15618: \$? = $ac_status" >&5
15619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15620 { (eval echo "$as_me:15620: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:15623: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 user_path=`cat conftest.stdpath`
15626else
15627 echo "$as_me: program exited with status $ac_status" >&5
15628echo "$as_me: failed program was:" >&5
15629cat conftest.$ac_ext >&5
15630 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15631fi
15632rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15633fi
15634# make sure $bindir is in USER_PATH so scp will work
15635 t_bindir=`eval echo ${bindir}`
15636 case $t_bindir in
15637 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15638 esac
15639 case $t_bindir in
15640 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15641 esac
15642 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15643 if test $? -ne 0 ; then
15644 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15645 if test $? -ne 0 ; then
15646 user_path=$user_path:$t_bindir
15647 echo "$as_me:15647: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15648echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15649 fi
15650 fi
15651 fi
15652
15653fi;
15654if test "x$external_path_file" != "x/etc/login.conf" ; then
15655 cat >>confdefs.h <<EOF
15656#define USER_PATH "$user_path"
15657EOF
15658
15659fi
15660
15661# Set superuser path separately to user path
15662
15663# Check whether --with-superuser-path or --without-superuser-path was given.
15664if test "${with_superuser_path+set}" = set; then
15665 withval="$with_superuser_path"
15666
15667 if test "x$withval" != "xno" ; then
15668 cat >>confdefs.h <<EOF
15669#define SUPERUSER_PATH "$withval"
15670EOF
15671
15672 superuser_path=$withval
15673 fi
15674
15675fi;
15676
15677echo "$as_me:15677: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15678echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15679IPV4_IN6_HACK_MSG="no"
15680
15681# Check whether --with-4in6 or --without-4in6 was given.
15682if test "${with_4in6+set}" = set; then
15683 withval="$with_4in6"
15684
15685 if test "x$withval" != "xno" ; then
15686 echo "$as_me:15686: result: yes" >&5
15687echo "${ECHO_T}yes" >&6
15688 cat >>confdefs.h <<\EOF
15689#define IPV4_IN_IPV6 1
15690EOF
15691
15692 IPV4_IN6_HACK_MSG="yes"
15693 else
15694 echo "$as_me:15694: result: no" >&5
15695echo "${ECHO_T}no" >&6
15696 fi
15697
15698else
15699
15700 if test "x$inet6_default_4in6" = "xyes"; then
15701 echo "$as_me:15701: result: yes (default)" >&5
15702echo "${ECHO_T}yes (default)" >&6
15703 cat >>confdefs.h <<\EOF
15704#define IPV4_IN_IPV6 1
15705EOF
15706
15707 IPV4_IN6_HACK_MSG="yes"
15708 else
15709 echo "$as_me:15709: result: no (default)" >&5
15710echo "${ECHO_T}no (default)" >&6
15711 fi
15712
15713fi;
15714
15715# Whether to enable BSD auth support
15716BSD_AUTH_MSG=no
15717
15718# Check whether --with-bsd-auth or --without-bsd-auth was given.
15719if test "${with_bsd_auth+set}" = set; then
15720 withval="$with_bsd_auth"
15721
15722 if test "x$withval" != "xno" ; then
15723 cat >>confdefs.h <<\EOF
15724#define BSD_AUTH 1
15725EOF
15726
15727 BSD_AUTH_MSG=yes
15728 fi
15729
15730fi;
15731
15732# Where to place sshd.pid
15733piddir=/var/run
15734# make sure the directory exists
15735if test ! -d $piddir ; then
15736 piddir=`eval echo ${sysconfdir}`
15737 case $piddir in
15738 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15739 esac
15740fi
15741
15742# Check whether --with-pid-dir or --without-pid-dir was given.
15743if test "${with_pid_dir+set}" = set; then
15744 withval="$with_pid_dir"
15745
15746 if test "x$withval" != "xno" ; then
15747 piddir=$withval
15748 if test ! -d $piddir ; then
15749 { echo "$as_me:15749: WARNING: ** no $piddir directory on this system **" >&5
15750echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15751 fi
15752 fi
15753
15754fi;
15755
15756cat >>confdefs.h <<EOF
15757#define _PATH_SSH_PIDDIR "$piddir"
15758EOF
15759
15760# Check whether --enable-lastlog or --disable-lastlog was given.
15761if test "${enable_lastlog+set}" = set; then
15762 enableval="$enable_lastlog"
15763
15764 if test "x$enableval" = "xno" ; then
15765 cat >>confdefs.h <<\EOF
15766#define DISABLE_LASTLOG 1
15767EOF
15768
15769 fi
15770
15771fi;
15772# Check whether --enable-utmp or --disable-utmp was given.
15773if test "${enable_utmp+set}" = set; then
15774 enableval="$enable_utmp"
15775
15776 if test "x$enableval" = "xno" ; then
15777 cat >>confdefs.h <<\EOF
15778#define DISABLE_UTMP 1
15779EOF
15780
15781 fi
15782
15783fi;
15784# Check whether --enable-utmpx or --disable-utmpx was given.
15785if test "${enable_utmpx+set}" = set; then
15786 enableval="$enable_utmpx"
15787
15788 if test "x$enableval" = "xno" ; then
15789 cat >>confdefs.h <<\EOF
15790#define DISABLE_UTMPX 1
15791EOF
15792
15793 fi
15794
15795fi;
15796# Check whether --enable-wtmp or --disable-wtmp was given.
15797if test "${enable_wtmp+set}" = set; then
15798 enableval="$enable_wtmp"
15799
15800 if test "x$enableval" = "xno" ; then
15801 cat >>confdefs.h <<\EOF
15802#define DISABLE_WTMP 1
15803EOF
15804
15805 fi
15806
15807fi;
15808# Check whether --enable-wtmpx or --disable-wtmpx was given.
15809if test "${enable_wtmpx+set}" = set; then
15810 enableval="$enable_wtmpx"
15811
15812 if test "x$enableval" = "xno" ; then
15813 cat >>confdefs.h <<\EOF
15814#define DISABLE_WTMPX 1
15815EOF
15816
15817 fi
15818
15819fi;
15820# Check whether --enable-libutil or --disable-libutil was given.
15821if test "${enable_libutil+set}" = set; then
15822 enableval="$enable_libutil"
15823
15824 if test "x$enableval" = "xno" ; then
15825 cat >>confdefs.h <<\EOF
15826#define DISABLE_LOGIN 1
15827EOF
15828
15829 fi
15830
15831fi;
15832# Check whether --enable-pututline or --disable-pututline was given.
15833if test "${enable_pututline+set}" = set; then
15834 enableval="$enable_pututline"
15835
15836 if test "x$enableval" = "xno" ; then
15837 cat >>confdefs.h <<\EOF
15838#define DISABLE_PUTUTLINE 1
15839EOF
15840
15841 fi
15842
15843fi;
15844# Check whether --enable-pututxline or --disable-pututxline was given.
15845if test "${enable_pututxline+set}" = set; then
15846 enableval="$enable_pututxline"
15847
15848 if test "x$enableval" = "xno" ; then
15849 cat >>confdefs.h <<\EOF
15850#define DISABLE_PUTUTXLINE 1
15851EOF
15852
15853 fi
15854
15855fi;
15856
15857# Check whether --with-lastlog or --without-lastlog was given.
15858if test "${with_lastlog+set}" = set; then
15859 withval="$with_lastlog"
15860
15861 if test "x$withval" = "xno" ; then
15862 cat >>confdefs.h <<\EOF
15863#define DISABLE_LASTLOG 1
15864EOF
15865
15866 else
15867 conf_lastlog_location=$withval
15868 fi
15869
15870fi;
15871
15872echo "$as_me:15872: checking if your system defines LASTLOG_FILE" >&5
15873echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
15874cat >conftest.$ac_ext <<_ACEOF
15875#line 15875 "configure"
15876#include "confdefs.h"
15877
15878#include <sys/types.h>
15879#include <utmp.h>
15880#ifdef HAVE_LASTLOG_H
15881# include <lastlog.h>
15882#endif
15883#ifdef HAVE_PATHS_H
15884# include <paths.h>
15885#endif
15886#ifdef HAVE_LOGIN_H
15887# include <login.h>
15888#endif
15889
15890int
15891main ()
15892{
15893 char *lastlog = LASTLOG_FILE;
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:15899: \"$ac_compile\"") >&5
15900 (eval $ac_compile) 2>&5
15901 ac_status=$?
15902 echo "$as_me:15902: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:15905: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:15908: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 echo "$as_me:15910: result: yes" >&5
15911echo "${ECHO_T}yes" >&6
15912else
15913 echo "$as_me: failed program was:" >&5
15914cat conftest.$ac_ext >&5
15915
15916 echo "$as_me:15916: result: no" >&5
15917echo "${ECHO_T}no" >&6
15918 echo "$as_me:15918: checking if your system defines _PATH_LASTLOG" >&5
15919echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15921#line 15921 "configure"
15922#include "confdefs.h"
15923
15924#include <sys/types.h>
15925#include <utmp.h>
15926#ifdef HAVE_LASTLOG_H
15927# include <lastlog.h>
15928#endif
15929#ifdef HAVE_PATHS_H
15930# include <paths.h>
15931#endif
15932
15933int
15934main ()
15935{
15936 char *lastlog = _PATH_LASTLOG;
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest.$ac_objext
15942if { (eval echo "$as_me:15942: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>&5
15944 ac_status=$?
15945 echo "$as_me:15945: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:15948: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:15951: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 echo "$as_me:15953: result: yes" >&5
15954echo "${ECHO_T}yes" >&6
15955else
15956 echo "$as_me: failed program was:" >&5
15957cat conftest.$ac_ext >&5
15958
15959 echo "$as_me:15959: result: no" >&5
15960echo "${ECHO_T}no" >&6
15961 system_lastlog_path=no
15962
15963fi
15964rm -f conftest.$ac_objext conftest.$ac_ext
15965
15966fi
15967rm -f conftest.$ac_objext conftest.$ac_ext
15968
15969if test -z "$conf_lastlog_location"; then
15970 if test x"$system_lastlog_path" = x"no" ; then
15971 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
15972 if (test -d "$f" || test -f "$f") ; then
15973 conf_lastlog_location=$f
15974 fi
15975 done
15976 if test -z "$conf_lastlog_location"; then
15977 { echo "$as_me:15977: WARNING: ** Cannot find lastlog **" >&5
15978echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15979 fi
15980 fi
15981fi
15982
15983if test -n "$conf_lastlog_location"; then
15984 cat >>confdefs.h <<EOF
15985#define CONF_LASTLOG_FILE "$conf_lastlog_location"
15986EOF
15987
15988fi
15989
15990echo "$as_me:15990: checking if your system defines UTMP_FILE" >&5
15991echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
15992cat >conftest.$ac_ext <<_ACEOF
15993#line 15993 "configure"
15994#include "confdefs.h"
15995
15996#include <sys/types.h>
15997#include <utmp.h>
15998#ifdef HAVE_PATHS_H
15999# include <paths.h>
16000#endif
16001
16002int
16003main ()
16004{
16005 char *utmp = UTMP_FILE;
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010rm -f conftest.$ac_objext
16011if { (eval echo "$as_me:16011: \"$ac_compile\"") >&5
16012 (eval $ac_compile) 2>&5
16013 ac_status=$?
16014 echo "$as_me:16014: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:16017: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:16020: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 echo "$as_me:16022: result: yes" >&5
16023echo "${ECHO_T}yes" >&6
16024else
16025 echo "$as_me: failed program was:" >&5
16026cat conftest.$ac_ext >&5
16027 echo "$as_me:16027: result: no" >&5
16028echo "${ECHO_T}no" >&6
16029 system_utmp_path=no
16030
16031fi
16032rm -f conftest.$ac_objext conftest.$ac_ext
16033if test -z "$conf_utmp_location"; then
16034 if test x"$system_utmp_path" = x"no" ; then
16035 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16036 if test -f $f ; then
16037 conf_utmp_location=$f
16038 fi
16039 done
16040 if test -z "$conf_utmp_location"; then
16041 cat >>confdefs.h <<\EOF
16042#define DISABLE_UTMP 1
16043EOF
16044
16045 fi
16046 fi
16047fi
16048if test -n "$conf_utmp_location"; then
16049 cat >>confdefs.h <<EOF
16050#define CONF_UTMP_FILE "$conf_utmp_location"
16051EOF
16052
16053fi
16054
16055echo "$as_me:16055: checking if your system defines WTMP_FILE" >&5
16056echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16057cat >conftest.$ac_ext <<_ACEOF
16058#line 16058 "configure"
16059#include "confdefs.h"
16060
16061#include <sys/types.h>
16062#include <utmp.h>
16063#ifdef HAVE_PATHS_H
16064# include <paths.h>
16065#endif
16066
16067int
16068main ()
16069{
16070 char *wtmp = WTMP_FILE;
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:16076: \"$ac_compile\"") >&5
16077 (eval $ac_compile) 2>&5
16078 ac_status=$?
16079 echo "$as_me:16079: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (eval echo "$as_me:16082: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:16085: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 echo "$as_me:16087: result: yes" >&5
16088echo "${ECHO_T}yes" >&6
16089else
16090 echo "$as_me: failed program was:" >&5
16091cat conftest.$ac_ext >&5
16092 echo "$as_me:16092: result: no" >&5
16093echo "${ECHO_T}no" >&6
16094 system_wtmp_path=no
16095
16096fi
16097rm -f conftest.$ac_objext conftest.$ac_ext
16098if test -z "$conf_wtmp_location"; then
16099 if test x"$system_wtmp_path" = x"no" ; then
16100 for f in /usr/adm/wtmp /var/log/wtmp; do
16101 if test -f $f ; then
16102 conf_wtmp_location=$f
16103 fi
16104 done
16105 if test -z "$conf_wtmp_location"; then
16106 cat >>confdefs.h <<\EOF
16107#define DISABLE_WTMP 1
16108EOF
16109
16110 fi
16111 fi
16112fi
16113if test -n "$conf_wtmp_location"; then
16114 cat >>confdefs.h <<EOF
16115#define CONF_WTMP_FILE "$conf_wtmp_location"
16116EOF
16117
16118fi
16119
16120echo "$as_me:16120: checking if your system defines UTMPX_FILE" >&5
16121echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16122cat >conftest.$ac_ext <<_ACEOF
16123#line 16123 "configure"
16124#include "confdefs.h"
16125
16126#include <sys/types.h>
16127#include <utmp.h>
16128#ifdef HAVE_UTMPX_H
16129#include <utmpx.h>
16130#endif
16131#ifdef HAVE_PATHS_H
16132# include <paths.h>
16133#endif
16134
16135int
16136main ()
16137{
16138 char *utmpx = UTMPX_FILE;
16139 ;
16140 return 0;
16141}
16142_ACEOF
16143rm -f conftest.$ac_objext
16144if { (eval echo "$as_me:16144: \"$ac_compile\"") >&5
16145 (eval $ac_compile) 2>&5
16146 ac_status=$?
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:16150: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:16153: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 echo "$as_me:16155: result: yes" >&5
16156echo "${ECHO_T}yes" >&6
16157else
16158 echo "$as_me: failed program was:" >&5
16159cat conftest.$ac_ext >&5
16160 echo "$as_me:16160: result: no" >&5
16161echo "${ECHO_T}no" >&6
16162 system_utmpx_path=no
16163
16164fi
16165rm -f conftest.$ac_objext conftest.$ac_ext
16166if test -z "$conf_utmpx_location"; then
16167 if test x"$system_utmpx_path" = x"no" ; then
16168 cat >>confdefs.h <<\EOF
16169#define DISABLE_UTMPX 1
16170EOF
16171
16172 fi
16173else
16174 cat >>confdefs.h <<EOF
16175#define CONF_UTMPX_FILE "$conf_utmpx_location"
16176EOF
16177
16178fi
16179
16180echo "$as_me:16180: checking if your system defines WTMPX_FILE" >&5
16181echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16182cat >conftest.$ac_ext <<_ACEOF
16183#line 16183 "configure"
16184#include "confdefs.h"
16185
16186#include <sys/types.h>
16187#include <utmp.h>
16188#ifdef HAVE_UTMPX_H
16189#include <utmpx.h>
16190#endif
16191#ifdef HAVE_PATHS_H
16192# include <paths.h>
16193#endif
16194
16195int
16196main ()
16197{
16198 char *wtmpx = WTMPX_FILE;
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:16204: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16206 ac_status=$?
16207 echo "$as_me:16207: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:16210: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:16213: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 echo "$as_me:16215: result: yes" >&5
16216echo "${ECHO_T}yes" >&6
16217else
16218 echo "$as_me: failed program was:" >&5
16219cat conftest.$ac_ext >&5
16220 echo "$as_me:16220: result: no" >&5
16221echo "${ECHO_T}no" >&6
16222 system_wtmpx_path=no
16223
16224fi
16225rm -f conftest.$ac_objext conftest.$ac_ext
16226if test -z "$conf_wtmpx_location"; then
16227 if test x"$system_wtmpx_path" = x"no" ; then
16228 cat >>confdefs.h <<\EOF
16229#define DISABLE_WTMPX 1
16230EOF
16231
16232 fi
16233else
16234 cat >>confdefs.h <<EOF
16235#define CONF_WTMPX_FILE "$conf_wtmpx_location"
16236EOF
16237
16238fi
16239
16240if test ! -z "$blibpath" ; then
16241 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16242 { echo "$as_me:16242: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16243echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16244fi
16245
16246if test "$PAM_MSG" = yes ; then
16247 LIBS=`echo $LIBS | sed 's/-lpam //'`
16248fi
16249if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16250 LIBS=`echo $LIBS | sed 's/-ldl //'`
16251fi
16252
16253ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16254
16255cat >confcache <<\_ACEOF
16256# This file is a shell script that caches the results of configure
16257# tests run on this system so they can be shared between configure
16258# scripts and configure runs, see configure's option --config-cache.
16259# It is not useful on other systems. If it contains results you don't
16260# want to keep, you may remove or edit it.
16261#
16262# config.status only pays attention to the cache file if you give it
16263# the --recheck option to rerun configure.
16264#
16265# `ac_cv_env_foo' variables (set or unset) will be overriden when
16266# loading this file, other *unset* `ac_cv_foo' will be assigned the
16267# following values.
16268
16269_ACEOF
16270
16271# The following way of writing the cache mishandles newlines in values,
16272# but we know of no workaround that is simple, portable, and efficient.
16273# So, don't put newlines in cache variables' values.
16274# Ultrix sh set writes to stderr and can't be redirected directly,
16275# and sets the high bit in the cache file unless we assign to the vars.
16276{
16277 (set) 2>&1 |
16278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16279 *ac_space=\ *)
16280 # `set' does not quote correctly, so add quotes (double-quote
16281 # substitution turns \\\\ into \\, and sed turns \\ into \).
16282 sed -n \
16283 "s/'/'\\\\''/g;
16284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16285 ;;
16286 *)
16287 # `set' quotes correctly as required by POSIX, so do not add quotes.
16288 sed -n \
16289 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16290 ;;
16291 esac;
16292} |
16293 sed '
16294 t clear
16295 : clear
16296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16297 t end
16298 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16299 : end' >>confcache
16300if cmp -s $cache_file confcache; then :; else
16301 if test -w $cache_file; then
16302 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16303 cat confcache >$cache_file
16304 else
16305 echo "not updating unwritable cache $cache_file"
16306 fi
16307fi
16308rm -f confcache
16309
16310test "x$prefix" = xNONE && prefix=$ac_default_prefix
16311# Let make expand exec_prefix.
16312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16313
16314# VPATH may cause trouble with some makes, so we remove $(srcdir),
16315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16316# trailing colons and then remove the whole line if VPATH becomes empty
16317# (actually we leave an empty line to preserve line numbers).
16318if test "x$srcdir" = x.; then
16319 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16320s/:*\$(srcdir):*/:/;
16321s/:*\${srcdir}:*/:/;
16322s/:*@srcdir@:*/:/;
16323s/^\([^=]*=[ ]*\):*/\1/;
16324s/:*$//;
16325s/^[^=]*=[ ]*$//;
16326}'
16327fi
16328
16329DEFS=-DHAVE_CONFIG_H
16330
16331: ${CONFIG_STATUS=./config.status}
16332ac_clean_files_save=$ac_clean_files
16333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16334{ echo "$as_me:16334: creating $CONFIG_STATUS" >&5
16335echo "$as_me: creating $CONFIG_STATUS" >&6;}
16336cat >$CONFIG_STATUS <<_ACEOF
16337#! $SHELL
16338# Generated automatically by configure.
16339# Run this file to recreate the current configuration.
16340# Compiler output produced by configure, useful for debugging
16341# configure, is in config.log if it exists.
16342
16343debug=false
16344SHELL=\${CONFIG_SHELL-$SHELL}
16345ac_cs_invocation="\$0 \$@"
16346
16347_ACEOF
16348
16349cat >>$CONFIG_STATUS <<\_ACEOF
16350# Be Bourne compatible
16351if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16352 emulate sh
16353 NULLCMD=:
16354elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16355 set -o posix
16356fi
16357
16358# Name of the executable.
16359as_me=`echo "$0" |sed 's,.*[\\/],,'`
16360
16361if expr a : '\(a\)' >/dev/null 2>&1; then
16362 as_expr=expr
16363else
16364 as_expr=false
16365fi
16366
16367rm -f conf$$ conf$$.exe conf$$.file
16368echo >conf$$.file
16369if ln -s conf$$.file conf$$ 2>/dev/null; then
16370 # We could just check for DJGPP; but this test a) works b) is more generic
16371 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16372 if test -f conf$$.exe; then
16373 # Don't use ln at all; we don't have any links
16374 as_ln_s='cp -p'
16375 else
16376 as_ln_s='ln -s'
16377 fi
16378elif ln conf$$.file conf$$ 2>/dev/null; then
16379 as_ln_s=ln
16380else
16381 as_ln_s='cp -p'
16382fi
16383rm -f conf$$ conf$$.exe conf$$.file
16384
16385as_executable_p="test -f"
16386
16387# Support unset when possible.
16388if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16389 as_unset=unset
16390else
16391 as_unset=false
16392fi
16393
16394# NLS nuisances.
16395$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16396$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16397$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16398$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16399$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16400$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16401$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16402$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16403
16404# IFS
16405# We need space, tab and new line, in precisely that order.
16406as_nl='
16407'
16408IFS=" $as_nl"
16409
16410# CDPATH.
16411$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16412
16413exec 6>&1
16414
16415_ACEOF
16416
16417# Files that config.status was made for.
16418if test -n "$ac_config_files"; then
16419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16420fi
16421
16422if test -n "$ac_config_headers"; then
16423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16424fi
16425
16426if test -n "$ac_config_links"; then
16427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16428fi
16429
16430if test -n "$ac_config_commands"; then
16431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16432fi
16433
16434cat >>$CONFIG_STATUS <<\EOF
16435
16436ac_cs_usage="\
16437\`$as_me' instantiates files from templates according to the
16438current configuration.
16439
16440Usage: $0 [OPTIONS] [FILE]...
16441
16442 -h, --help print this help, then exit
16443 -V, --version print version number, then exit
16444 -d, --debug don't remove temporary files
16445 --recheck update $as_me by reconfiguring in the same conditions
16446 --file=FILE[:TEMPLATE]
16447 instantiate the configuration file FILE
16448 --header=FILE[:TEMPLATE]
16449 instantiate the configuration header FILE
16450
16451Configuration files:
16452$config_files
16453
16454Configuration headers:
16455$config_headers
16456
16457Report bugs to <bug-autoconf@gnu.org>."
16458EOF
16459
16460cat >>$CONFIG_STATUS <<EOF
16461ac_cs_version="\\
16462config.status
16463configured by $0, generated by GNU Autoconf 2.52,
16464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16465
16466Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16467Free Software Foundation, Inc.
16468This config.status script is free software; the Free Software Foundation
16469gives unlimited permission to copy, distribute and modify it."
16470srcdir=$srcdir
16471INSTALL="$INSTALL"
16472EOF
16473
16474cat >>$CONFIG_STATUS <<\EOF
16475# If no file are specified by the user, then we need to provide default
16476# value. By we need to know if files were specified by the user.
16477ac_need_defaults=:
16478while test $# != 0
16479do
16480 case $1 in
16481 --*=*)
16482 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16483 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16484 shift
16485 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16486 shift
16487 ;;
16488 -*);;
16489 *) # This is not an option, so the user has probably given explicit
16490 # arguments.
16491 ac_need_defaults=false;;
16492 esac
16493
16494 case $1 in
16495 # Handling of the options.
16496EOF
16497cat >>$CONFIG_STATUS <<EOF
16498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16499 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16500 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16501EOF
16502cat >>$CONFIG_STATUS <<\EOF
16503 --version | --vers* | -V )
16504 echo "$ac_cs_version"; exit 0 ;;
16505 --he | --h)
16506 # Conflict between --help and --header
16507 { { echo "$as_me:16507: error: ambiguous option: $1
16508Try \`$0 --help' for more information." >&5
16509echo "$as_me: error: ambiguous option: $1
16510Try \`$0 --help' for more information." >&2;}
16511 { (exit 1); exit 1; }; };;
16512 --help | --hel | -h )
16513 echo "$ac_cs_usage"; exit 0 ;;
16514 --debug | --d* | -d )
16515 debug=: ;;
16516 --file | --fil | --fi | --f )
16517 shift
16518 CONFIG_FILES="$CONFIG_FILES $1"
16519 ac_need_defaults=false;;
16520 --header | --heade | --head | --hea )
16521 shift
16522 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16523 ac_need_defaults=false;;
16524
16525 # This is an error.
16526 -*) { { echo "$as_me:16526: error: unrecognized option: $1
16527Try \`$0 --help' for more information." >&5
16528echo "$as_me: error: unrecognized option: $1
16529Try \`$0 --help' for more information." >&2;}
16530 { (exit 1); exit 1; }; } ;;
16531
16532 *) ac_config_targets="$ac_config_targets $1" ;;
16533
16534 esac
16535 shift
16536done
16537
16538exec 5>>config.log
16539cat >&5 << _ACEOF
16540
16541## ----------------------- ##
16542## Running config.status. ##
16543## ----------------------- ##
16544
16545This file was extended by $as_me 2.52, executed with
16546 CONFIG_FILES = $CONFIG_FILES
16547 CONFIG_HEADERS = $CONFIG_HEADERS
16548 CONFIG_LINKS = $CONFIG_LINKS
16549 CONFIG_COMMANDS = $CONFIG_COMMANDS
16550 > $ac_cs_invocation
16551on `(hostname || uname -n) 2>/dev/null | sed 1q`
16552
16553_ACEOF
16554EOF
16555
16556cat >>$CONFIG_STATUS <<\EOF
16557for ac_config_target in $ac_config_targets
16558do
16559 case "$ac_config_target" in
16560 # Handling of arguments.
16561 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16562 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16563 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16564 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16565 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16566 *) { { echo "$as_me:16566: error: invalid argument: $ac_config_target" >&5
16567echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16568 { (exit 1); exit 1; }; };;
16569 esac
16570done
16571
16572# If the user did not use the arguments to specify the items to instantiate,
16573# then the envvar interface is used. Set only those that are not.
16574# We use the long form for the default assignment because of an extremely
16575# bizarre bug on SunOS 4.1.3.
16576if $ac_need_defaults; then
16577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16579fi
16580
16581# Create a temporary directory, and hook for its removal unless debugging.
16582$debug ||
16583{
16584 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16585 trap '{ (exit 1); exit 1; }' 1 2 13 15
16586}
16587
16588# Create a (secure) tmp directory for tmp files.
16589: ${TMPDIR=/tmp}
16590{
16591 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16592 test -n "$tmp" && test -d "$tmp"
16593} ||
16594{
16595 tmp=$TMPDIR/cs$$-$RANDOM
16596 (umask 077 && mkdir $tmp)
16597} ||
16598{
16599 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16600 { (exit 1); exit 1; }
16601}
16602
16603EOF
16604
16605cat >>$CONFIG_STATUS <<EOF
16606
16607#
16608# CONFIG_FILES section.
16609#
16610
16611# No need to generate the scripts if there are no CONFIG_FILES.
16612# This happens for instance when ./config.status config.h
16613if test -n "\$CONFIG_FILES"; then
16614 # Protect against being on the right side of a sed subst in config.status.
16615 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16616 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16617s,@SHELL@,$SHELL,;t t
16618s,@exec_prefix@,$exec_prefix,;t t
16619s,@prefix@,$prefix,;t t
16620s,@program_transform_name@,$program_transform_name,;t t
16621s,@bindir@,$bindir,;t t
16622s,@sbindir@,$sbindir,;t t
16623s,@libexecdir@,$libexecdir,;t t
16624s,@datadir@,$datadir,;t t
16625s,@sysconfdir@,$sysconfdir,;t t
16626s,@sharedstatedir@,$sharedstatedir,;t t
16627s,@localstatedir@,$localstatedir,;t t
16628s,@libdir@,$libdir,;t t
16629s,@includedir@,$includedir,;t t
16630s,@oldincludedir@,$oldincludedir,;t t
16631s,@infodir@,$infodir,;t t
16632s,@mandir@,$mandir,;t t
16633s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16634s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16635s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16636s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16637s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16638s,@build_alias@,$build_alias,;t t
16639s,@host_alias@,$host_alias,;t t
16640s,@target_alias@,$target_alias,;t t
16641s,@ECHO_C@,$ECHO_C,;t t
16642s,@ECHO_N@,$ECHO_N,;t t
16643s,@ECHO_T@,$ECHO_T,;t t
16644s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16645s,@DEFS@,$DEFS,;t t
16646s,@LIBS@,$LIBS,;t t
16647s,@CC@,$CC,;t t
16648s,@CFLAGS@,$CFLAGS,;t t
16649s,@LDFLAGS@,$LDFLAGS,;t t
16650s,@CPPFLAGS@,$CPPFLAGS,;t t
16651s,@ac_ct_CC@,$ac_ct_CC,;t t
16652s,@EXEEXT@,$EXEEXT,;t t
16653s,@OBJEXT@,$OBJEXT,;t t
16654s,@build@,$build,;t t
16655s,@build_cpu@,$build_cpu,;t t
16656s,@build_vendor@,$build_vendor,;t t
16657s,@build_os@,$build_os,;t t
16658s,@host@,$host,;t t
16659s,@host_cpu@,$host_cpu,;t t
16660s,@host_vendor@,$host_vendor,;t t
16661s,@host_os@,$host_os,;t t
16662s,@AWK@,$AWK,;t t
16663s,@CPP@,$CPP,;t t
16664s,@RANLIB@,$RANLIB,;t t
16665s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16666s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16667s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16668s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16669s,@AR@,$AR,;t t
16670s,@PERL@,$PERL,;t t
16671s,@SED@,$SED,;t t
16672s,@ENT@,$ENT,;t t
16673s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
16674s,@SH@,$SH,;t t
16675s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
16676s,@LD@,$LD,;t t
16677s,@LIBWRAP@,$LIBWRAP,;t t
16678s,@LIBPAM@,$LIBPAM,;t t
16679s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
16680s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
16681s,@PROG_LS@,$PROG_LS,;t t
16682s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
16683s,@PROG_ARP@,$PROG_ARP,;t t
16684s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
16685s,@PROG_JSTAT@,$PROG_JSTAT,;t t
16686s,@PROG_PS@,$PROG_PS,;t t
16687s,@PROG_SAR@,$PROG_SAR,;t t
16688s,@PROG_W@,$PROG_W,;t t
16689s,@PROG_WHO@,$PROG_WHO,;t t
16690s,@PROG_LAST@,$PROG_LAST,;t t
16691s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
16692s,@PROG_DF@,$PROG_DF,;t t
16693s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
16694s,@PROG_UPTIME@,$PROG_UPTIME,;t t
16695s,@PROG_IPCS@,$PROG_IPCS,;t t
16696s,@PROG_TAIL@,$PROG_TAIL,;t t
16697s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
16698s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
16699s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
16700s,@xauth_path@,$xauth_path,;t t
16701s,@STRIP_OPT@,$STRIP_OPT,;t t
16702s,@XAUTH_PATH@,$XAUTH_PATH,;t t
16703s,@NROFF@,$NROFF,;t t
16704s,@MANTYPE@,$MANTYPE,;t t
16705s,@mansubdir@,$mansubdir,;t t
16706s,@user_path@,$user_path,;t t
16707s,@piddir@,$piddir,;t t
16708CEOF
16709
16710EOF
16711
16712 cat >>$CONFIG_STATUS <<\EOF
16713 # Split the substitutions into bite-sized pieces for seds with
16714 # small command number limits, like on Digital OSF/1 and HP-UX.
16715 ac_max_sed_lines=48
16716 ac_sed_frag=1 # Number of current file.
16717 ac_beg=1 # First line for current file.
16718 ac_end=$ac_max_sed_lines # Line after last line for current file.
16719 ac_more_lines=:
16720 ac_sed_cmds=
16721 while $ac_more_lines; do
16722 if test $ac_beg -gt 1; then
16723 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16724 else
16725 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16726 fi
16727 if test ! -s $tmp/subs.frag; then
16728 ac_more_lines=false
16729 else
16730 # The purpose of the label and of the branching condition is to
16731 # speed up the sed processing (if there are no `@' at all, there
16732 # is no need to browse any of the substitutions).
16733 # These are the two extra sed commands mentioned above.
16734 (echo ':t
16735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16736 if test -z "$ac_sed_cmds"; then
16737 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16738 else
16739 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16740 fi
16741 ac_sed_frag=`expr $ac_sed_frag + 1`
16742 ac_beg=$ac_end
16743 ac_end=`expr $ac_end + $ac_max_sed_lines`
16744 fi
16745 done
16746 if test -z "$ac_sed_cmds"; then
16747 ac_sed_cmds=cat
16748 fi
16749fi # test -n "$CONFIG_FILES"
16750
16751EOF
16752cat >>$CONFIG_STATUS <<\EOF
16753for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16754 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16755 case $ac_file in
16756 - | *:- | *:-:* ) # input from stdin
16757 cat >$tmp/stdin
16758 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16760 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16762 * ) ac_file_in=$ac_file.in ;;
16763 esac
16764
16765 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16766 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16767 X"$ac_file" : 'X\(//\)[^/]' \| \
16768 X"$ac_file" : 'X\(//\)$' \| \
16769 X"$ac_file" : 'X\(/\)' \| \
16770 . : '\(.\)' 2>/dev/null ||
16771echo X"$ac_file" |
16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16774 /^X\(\/\/\)$/{ s//\1/; q; }
16775 /^X\(\/\).*/{ s//\1/; q; }
16776 s/.*/./; q'`
16777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16778 { case "$ac_dir" in
16779 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16780 *) as_incr_dir=.;;
16781esac
16782as_dummy="$ac_dir"
16783for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16784 case $as_mkdir_dir in
16785 # Skip DOS drivespec
16786 ?:) as_incr_dir=$as_mkdir_dir ;;
16787 *)
16788 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16789 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16790 ;;
16791 esac
16792done; }
16793
16794 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
16795 # A "../" for each directory in $ac_dir_suffix.
16796 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
16797 else
16798 ac_dir_suffix= ac_dots=
16799 fi
16800
16801 case $srcdir in
16802 .) ac_srcdir=.
16803 if test -z "$ac_dots"; then
16804 ac_top_srcdir=.
16805 else
16806 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16807 fi ;;
16808 [\\/]* | ?:[\\/]* )
16809 ac_srcdir=$srcdir$ac_dir_suffix;
16810 ac_top_srcdir=$srcdir ;;
16811 *) # Relative path.
16812 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16813 ac_top_srcdir=$ac_dots$srcdir ;;
16814 esac
16815
16816 case $INSTALL in
16817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16818 *) ac_INSTALL=$ac_dots$INSTALL ;;
16819 esac
16820
16821 if test x"$ac_file" != x-; then
16822 { echo "$as_me:16822: creating $ac_file" >&5
16823echo "$as_me: creating $ac_file" >&6;}
16824 rm -f "$ac_file"
16825 fi
16826 # Let's still pretend it is `configure' which instantiates (i.e., don't
16827 # use $as_me), people would be surprised to read:
16828 # /* config.h. Generated automatically by config.status. */
16829 configure_input="Generated automatically from `echo $ac_file_in |
16830 sed 's,.*/,,'` by configure."
16831
16832 # First look for the input files in the build tree, otherwise in the
16833 # src tree.
16834 ac_file_inputs=`IFS=:
16835 for f in $ac_file_in; do
16836 case $f in
16837 -) echo $tmp/stdin ;;
16838 [\\/$]*)
16839 # Absolute (can't be DOS-style, as IFS=:)
16840 test -f "$f" || { { echo "$as_me:16840: error: cannot find input file: $f" >&5
16841echo "$as_me: error: cannot find input file: $f" >&2;}
16842 { (exit 1); exit 1; }; }
16843 echo $f;;
16844 *) # Relative
16845 if test -f "$f"; then
16846 # Build tree
16847 echo $f
16848 elif test -f "$srcdir/$f"; then
16849 # Source tree
16850 echo $srcdir/$f
16851 else
16852 # /dev/null tree
16853 { { echo "$as_me:16853: error: cannot find input file: $f" >&5
16854echo "$as_me: error: cannot find input file: $f" >&2;}
16855 { (exit 1); exit 1; }; }
16856 fi;;
16857 esac
16858 done` || { (exit 1); exit 1; }
16859EOF
16860cat >>$CONFIG_STATUS <<EOF
16861 sed "$ac_vpsub
16862$extrasub
16863EOF
16864cat >>$CONFIG_STATUS <<\EOF
16865:t
16866/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16867s,@configure_input@,$configure_input,;t t
16868s,@srcdir@,$ac_srcdir,;t t
16869s,@top_srcdir@,$ac_top_srcdir,;t t
16870s,@INSTALL@,$ac_INSTALL,;t t
16871" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16872 rm -f $tmp/stdin
16873 if test x"$ac_file" != x-; then
16874 mv $tmp/out $ac_file
16875 else
16876 cat $tmp/out
16877 rm -f $tmp/out
16878 fi
16879
16880done
16881EOF
16882cat >>$CONFIG_STATUS <<\EOF
16883
16884#
16885# CONFIG_HEADER section.
16886#
16887
16888# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16889# NAME is the cpp macro being defined and VALUE is the value it is being given.
16890#
16891# ac_d sets the value in "#define NAME VALUE" lines.
16892ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16893ac_dB='[ ].*$,\1#\2'
16894ac_dC=' '
16895ac_dD=',;t'
16896# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16897ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16898ac_uB='$,\1#\2define\3'
16899ac_uC=' '
16900ac_uD=',;t'
16901
16902for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16904 case $ac_file in
16905 - | *:- | *:-:* ) # input from stdin
16906 cat >$tmp/stdin
16907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16911 * ) ac_file_in=$ac_file.in ;;
16912 esac
16913
16914 test x"$ac_file" != x- && { echo "$as_me:16914: creating $ac_file" >&5
16915echo "$as_me: creating $ac_file" >&6;}
16916
16917 # First look for the input files in the build tree, otherwise in the
16918 # src tree.
16919 ac_file_inputs=`IFS=:
16920 for f in $ac_file_in; do
16921 case $f in
16922 -) echo $tmp/stdin ;;
16923 [\\/$]*)
16924 # Absolute (can't be DOS-style, as IFS=:)
16925 test -f "$f" || { { echo "$as_me:16925: error: cannot find input file: $f" >&5
16926echo "$as_me: error: cannot find input file: $f" >&2;}
16927 { (exit 1); exit 1; }; }
16928 echo $f;;
16929 *) # Relative
16930 if test -f "$f"; then
16931 # Build tree
16932 echo $f
16933 elif test -f "$srcdir/$f"; then
16934 # Source tree
16935 echo $srcdir/$f
16936 else
16937 # /dev/null tree
16938 { { echo "$as_me:16938: error: cannot find input file: $f" >&5
16939echo "$as_me: error: cannot find input file: $f" >&2;}
16940 { (exit 1); exit 1; }; }
16941 fi;;
16942 esac
16943 done` || { (exit 1); exit 1; }
16944 # Remove the trailing spaces.
16945 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16946
16947EOF
16948
16949# Transform confdefs.h into two sed scripts, `conftest.defines' and
16950# `conftest.undefs', that substitutes the proper values into
16951# config.h.in to produce config.h. The first handles `#define'
16952# templates, and the second `#undef' templates.
16953# And first: Protect against being on the right side of a sed subst in
16954# config.status. Protect against being in an unquoted here document
16955# in config.status.
16956rm -f conftest.defines conftest.undefs
16957# Using a here document instead of a string reduces the quoting nightmare.
16958# Putting comments in sed scripts is not portable.
16959#
16960# `end' is used to avoid that the second main sed command (meant for
16961# 0-ary CPP macros) applies to n-ary macro definitions.
16962# See the Autoconf documentation for `clear'.
16963cat >confdef2sed.sed <<\EOF
16964s/[\\&,]/\\&/g
16965s,[\\$`],\\&,g
16966t clear
16967: clear
16968s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16969t end
16970s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16971: end
16972EOF
16973# If some macros were called several times there might be several times
16974# the same #defines, which is useless. Nevertheless, we may not want to
16975# sort them, since we want the *last* AC-DEFINE to be honored.
16976uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16977sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16978rm -f confdef2sed.sed
16979
16980# This sed command replaces #undef with comments. This is necessary, for
16981# example, in the case of _POSIX_SOURCE, which is predefined and required
16982# on some systems where configure will not decide to define it.
16983cat >>conftest.undefs <<\EOF
16984s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16985EOF
16986
16987# Break up conftest.defines because some shells have a limit on the size
16988# of here documents, and old seds have small limits too (100 cmds).
16989echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16990echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16991echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16992echo ' :' >>$CONFIG_STATUS
16993rm -f conftest.tail
16994while grep . conftest.defines >/dev/null
16995do
16996 # Write a limited-size here document to $tmp/defines.sed.
16997 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16998 # Speed up: don't consider the non `#define' lines.
16999 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17000 # Work around the forget-to-reset-the-flag bug.
17001 echo 't clr' >>$CONFIG_STATUS
17002 echo ': clr' >>$CONFIG_STATUS
17003 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17004 echo 'CEOF
17005 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17006 rm -f $tmp/in
17007 mv $tmp/out $tmp/in
17008' >>$CONFIG_STATUS
17009 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17010 rm -f conftest.defines
17011 mv conftest.tail conftest.defines
17012done
17013rm -f conftest.defines
17014echo ' fi # egrep' >>$CONFIG_STATUS
17015echo >>$CONFIG_STATUS
17016
17017# Break up conftest.undefs because some shells have a limit on the size
17018# of here documents, and old seds have small limits too (100 cmds).
17019echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17020rm -f conftest.tail
17021while grep . conftest.undefs >/dev/null
17022do
17023 # Write a limited-size here document to $tmp/undefs.sed.
17024 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17025 # Speed up: don't consider the non `#undef'
17026 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17027 # Work around the forget-to-reset-the-flag bug.
17028 echo 't clr' >>$CONFIG_STATUS
17029 echo ': clr' >>$CONFIG_STATUS
17030 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17031 echo 'CEOF
17032 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17033 rm -f $tmp/in
17034 mv $tmp/out $tmp/in
17035' >>$CONFIG_STATUS
17036 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17037 rm -f conftest.undefs
17038 mv conftest.tail conftest.undefs
17039done
17040rm -f conftest.undefs
17041
17042cat >>$CONFIG_STATUS <<\EOF
17043 # Let's still pretend it is `configure' which instantiates (i.e., don't
17044 # use $as_me), people would be surprised to read:
17045 # /* config.h. Generated automatically by config.status. */
17046 if test x"$ac_file" = x-; then
17047 echo "/* Generated automatically by configure. */" >$tmp/config.h
17048 else
17049 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
17050 fi
17051 cat $tmp/in >>$tmp/config.h
17052 rm -f $tmp/in
17053 if test x"$ac_file" != x-; then
17054 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17055 { echo "$as_me:17055: $ac_file is unchanged" >&5
17056echo "$as_me: $ac_file is unchanged" >&6;}
17057 else
17058 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17059 X"$ac_file" : 'X\(//\)[^/]' \| \
17060 X"$ac_file" : 'X\(//\)$' \| \
17061 X"$ac_file" : 'X\(/\)' \| \
17062 . : '\(.\)' 2>/dev/null ||
17063echo X"$ac_file" |
17064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17066 /^X\(\/\/\)$/{ s//\1/; q; }
17067 /^X\(\/\).*/{ s//\1/; q; }
17068 s/.*/./; q'`
17069 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17070 { case "$ac_dir" in
17071 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17072 *) as_incr_dir=.;;
17073esac
17074as_dummy="$ac_dir"
17075for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17076 case $as_mkdir_dir in
17077 # Skip DOS drivespec
17078 ?:) as_incr_dir=$as_mkdir_dir ;;
17079 *)
17080 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17081 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17082 ;;
17083 esac
17084done; }
17085
17086 fi
17087 rm -f $ac_file
17088 mv $tmp/config.h $ac_file
17089 fi
17090 else
17091 cat $tmp/config.h
17092 rm -f $tmp/config.h
17093 fi
17094done
17095EOF
17096
17097cat >>$CONFIG_STATUS <<\EOF
17098
17099{ (exit 0); exit 0; }
17100EOF
17101chmod +x $CONFIG_STATUS
17102ac_clean_files=$ac_clean_files_save
17103
17104# configure is writing to config.log, and then calls config.status.
17105# config.status does its own redirection, appending to config.log.
17106# Unfortunately, on DOS this fails, as config.log is still kept open
17107# by configure, so config.status won't be able to write to it; its
17108# output is simply discarded. So we exec the FD to /dev/null,
17109# effectively closing config.log, so it can be properly (re)opened and
17110# appended to by config.status. When coming back to configure, we
17111# need to make the FD available again.
17112if test "$no_create" != yes; then
17113 ac_cs_success=:
17114 exec 5>/dev/null
17115 $SHELL $CONFIG_STATUS || ac_cs_success=false
17116 exec 5>>config.log
17117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17118 # would make configure fail if this is the last instruction.
17119 $ac_cs_success || { (exit 1); exit 1; }
17120fi
17121
17122# Print summary of options
17123
17124# Someone please show me a better way :)
17125A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17126B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17127C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17128D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17129E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17130F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17131G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17132H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17133I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17134J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17135
17136echo ""
17137echo "OpenSSH has been configured with the following options:"
17138echo " User binaries: $B"
17139echo " System binaries: $C"
17140echo " Configuration files: $D"
17141echo " Askpass program: $E"
17142echo " Manual pages: $F"
17143echo " PID file: $G"
17144echo " Privilege separation chroot path: $H"
17145if test "x$external_path_file" = "x/etc/login.conf" ; then
17146echo " At runtime, sshd will use the path defined in $external_path_file"
17147echo " Make sure the path to scp is present, otherwise scp will not work"
17148else
17149echo " sshd default user PATH: $I"
17150 if test ! -z "$external_path_file"; then
17151echo " (If PATH is set in $external_path_file it will be used instead. If"
17152echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17153 fi
17154fi
17155if test ! -z "$superuser_path" ; then
17156echo " sshd superuser user PATH: $J"
17157fi
17158echo " Manpage format: $MANTYPE"
17159echo " DNS support: $DNS_MSG"
17160echo " PAM support: $PAM_MSG"
17161echo " KerberosV support: $KRB5_MSG"
17162echo " Smartcard support: $SCARD_MSG"
17163echo " S/KEY support: $SKEY_MSG"
17164echo " TCP Wrappers support: $TCPW_MSG"
17165echo " MD5 password support: $MD5_MSG"
17166echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17167echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17168echo " BSD Auth support: $BSD_AUTH_MSG"
17169echo " Random number source: $RAND_MSG"
17170if test ! -z "$USE_RAND_HELPER" ; then
17171echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17172fi
17173
17174echo ""
17175
17176echo " Host: ${host}"
17177echo " Compiler: ${CC}"
17178echo " Compiler flags: ${CFLAGS}"
17179echo "Preprocessor flags: ${CPPFLAGS}"
17180echo " Linker flags: ${LDFLAGS}"
17181echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17182
17183echo ""
17184
17185if test "x$PAM_MSG" = "xyes" ; then
17186 echo "PAM is enabled. You may need to install a PAM control file "
17187 echo "for sshd, otherwise password authentication may fail. "
17188 echo "Example PAM control files can be found in the contrib/ "
17189 echo "subdirectory"
17190 echo ""
17191fi
17192
17193if test ! -z "$RAND_HELPER_CMDHASH" ; then
17194 echo "WARNING: you are using the builtin random number collection "
17195 echo "service. Please read WARNING.RNG and request that your OS "
17196 echo "vendor includes kernel-based random number collection in "
17197 echo "future versions of your OS."
17198 echo ""
17199fi
17200