summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-03-01 01:21:46 +0000
committerColin Watson <cjwatson@debian.org>2004-03-01 01:21:46 +0000
commitf5bda272678ec6dccaa5f29379cf60cb855018e8 (patch)
treec225d6ba3d09bb5ece49c05fdbaeb02df3c94a28 /configure
parent3342470472b45f000576e9f79f55bb30c7d517b8 (diff)
parent45431c9b4677608680cd071768cbf156b316a7e8 (diff)
Import OpenSSH 3.8p1.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18044
1 files changed, 18044 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 000000000..c39957b7c
--- /dev/null
+++ b/configure
@@ -0,0 +1,18044 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
97cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="ssh.c"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
144
145# Initialize some variables set by options.
146ac_init_help=
147ac_init_version=false
148# The variables have the same names as the options, with
149# dashes changed to underlines.
150cache_file=/dev/null
151exec_prefix=NONE
152no_create=
153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
161verbose=
162x_includes=NONE
163x_libraries=NONE
164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
182
183# Identity of this package.
184PACKAGE_NAME=
185PACKAGE_TARNAME=
186PACKAGE_VERSION=
187PACKAGE_STRING=
188PACKAGE_BUGREPORT=
189
190ac_prev=
191for ac_option
192do
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
204 case $ac_option in
205
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
210
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
225
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
231
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
240
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
273
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
278
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
316
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
337
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
394
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
404
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
411
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
422
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
435
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
462
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
466 ;;
467
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
478 *)
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484 ;;
485
486 esac
487done
488
489if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
493fi
494
495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
497do
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504done
505
506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
509do
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516done
517
518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
523
524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551else
552 ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
561 fi
562fi
563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656
657System types:
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
660EOF
661fi
662
663if test -n "$ac_init_help"; then
664
665 cat <<\EOF
666
667Optional Features:
668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
670 --disable-largefile omit support for large files
671 --disable-strip Disable calling strip(1) on install
672 --disable-etc-default-login Disable using PATH from /etc/default/login no
673 --disable-lastlog disable use of lastlog even if detected no
674 --disable-utmp disable use of utmp even if detected no
675 --disable-utmpx disable use of utmpx even if detected no
676 --disable-wtmp disable use of wtmp even if detected no
677 --disable-wtmpx disable use of wtmpx even if detected no
678 --disable-libutil disable use of libutil (login() etc.) no
679 --disable-pututline disable use of pututline() etc. (uwtmp) no
680 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
681
682Optional Packages:
683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
685 --without-rpath Disable auto-added -R linker paths
686 --with-osfsia Enable Digital Unix SIA
687 --with-cflags Specify additional flags to pass to compiler
688 --with-cppflags Specify additional flags to pass to preprocessor
689 --with-ldflags Specify additional flags to pass to linker
690 --with-libs Specify additional libraries to link with
691 --with-zlib=PATH Use zlib in PATH
692 --without-zlib-version-check Disable zlib version check
693 --with-skey[=PATH] Enable S/Key support
694 (optionally in PATH)
695 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
696 (optionally in PATH)
697 --with-pam Enable PAM support
698 --with-ssl-dir=PATH Specify path to OpenSSL installation
699 --with-rand-helper Use subprocess to gather strong randomness
700 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
701 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
702 --with-entropy-timeout Specify entropy gathering command timeout (msec)
703 --with-privsep-user=user Specify non-privileged user for privilege separation
704 --with-sectok Enable smartcard support using libsectok
705 --with-opensc=PFX Enable smartcard support using OpenSC
706 --with-kerberos5=PATH Enable Kerberos 5 support
707 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
708 --with-xauth=PATH Specify path to xauth program
709 --with-mantype=man|cat|doc Set man page type
710 --with-md5-passwords Enable use of MD5 passwords
711 --without-shadow Disable shadow password support
712 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
713 --with-default-path= Specify default \$PATH environment for server
714 --with-superuser-path= Specify different path for super-user
715 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
716 --with-bsd-auth Enable BSD auth support
717 --with-pid-dir=PATH Specify location of ssh.pid file
718 --with-lastlog=FILE|DIR specify lastlog location common locations
719
720Some influential environment variables:
721 CC C compiler command
722 CFLAGS C compiler flags
723 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
724 nonstandard directory <lib dir>
725 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
726 headers in a nonstandard directory <include dir>
727 CPP C preprocessor
728
729Use these variables to override the choices made by `configure' or to help
730it to find libraries and programs with nonstandard names/locations.
731
732EOF
733fi
734
735if test "$ac_init_help" = "recursive"; then
736 # If there are subdirs, report their specific --help.
737 ac_popdir=`pwd`
738 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
739 cd $ac_subdir
740 # A "../" for each directory in /$ac_subdir.
741 ac_dots=`echo $ac_subdir |
742 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
743
744 case $srcdir in
745 .) # No --srcdir option. We are building in place.
746 ac_sub_srcdir=$srcdir ;;
747 [\\/]* | ?:[\\/]* ) # Absolute path.
748 ac_sub_srcdir=$srcdir/$ac_subdir ;;
749 *) # Relative path.
750 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
751 esac
752
753 # Check for guested configure; otherwise get Cygnus style configure.
754 if test -f $ac_sub_srcdir/configure.gnu; then
755 echo
756 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
757 elif test -f $ac_sub_srcdir/configure; then
758 echo
759 $SHELL $ac_sub_srcdir/configure --help=recursive
760 elif test -f $ac_sub_srcdir/configure.ac ||
761 test -f $ac_sub_srcdir/configure.in; then
762 echo
763 $ac_configure --help
764 else
765 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
766 fi
767 cd $ac_popdir
768 done
769fi
770
771test -n "$ac_init_help" && exit 0
772if $ac_init_version; then
773 cat <<\EOF
774
775Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
776Free Software Foundation, Inc.
777This configure script is free software; the Free Software Foundation
778gives unlimited permission to copy, distribute and modify it.
779EOF
780 exit 0
781fi
782exec 5>config.log
783cat >&5 <<EOF
784This file contains any messages produced by compilers while
785running configure, to aid debugging if configure makes a mistake.
786
787It was created by $as_me, which was
788generated by GNU Autoconf 2.52. Invocation command line was
789
790 $ $0 $@
791
792EOF
793{
794cat <<_ASUNAME
795## ---------- ##
796## Platform. ##
797## ---------- ##
798
799hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
800uname -m = `(uname -m) 2>/dev/null || echo unknown`
801uname -r = `(uname -r) 2>/dev/null || echo unknown`
802uname -s = `(uname -s) 2>/dev/null || echo unknown`
803uname -v = `(uname -v) 2>/dev/null || echo unknown`
804
805/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
806/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
807
808/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
809/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
810/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
811hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
812/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
813/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
814/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
815
816PATH = $PATH
817
818_ASUNAME
819} >&5
820
821cat >&5 <<EOF
822## ------------ ##
823## Core tests. ##
824## ------------ ##
825
826EOF
827
828# Keep a trace of the command line.
829# Strip out --no-create and --no-recursion so they do not pile up.
830# Also quote any args containing shell meta-characters.
831ac_configure_args=
832ac_sep=
833for ac_arg
834do
835 case $ac_arg in
836 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
837 | --no-cr | --no-c) ;;
838 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
839 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
840 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
841 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
842 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
843 ac_sep=" " ;;
844 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
845 ac_sep=" " ;;
846 esac
847 # Get rid of the leading space.
848done
849
850# When interrupted or exit'd, cleanup temporary files, and complete
851# config.log. We remove comments because anyway the quotes in there
852# would cause problems or look ugly.
853trap 'exit_status=$?
854 # Save into config.log some information that might help in debugging.
855 echo >&5
856 echo "## ----------------- ##" >&5
857 echo "## Cache variables. ##" >&5
858 echo "## ----------------- ##" >&5
859 echo >&5
860 # The following way of writing the cache mishandles newlines in values,
861{
862 (set) 2>&1 |
863 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
864 *ac_space=\ *)
865 sed -n \
866 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
868 ;;
869 *)
870 sed -n \
871 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
872 ;;
873 esac;
874} >&5
875 sed "/^$/d" confdefs.h >conftest.log
876 if test -s conftest.log; then
877 echo >&5
878 echo "## ------------ ##" >&5
879 echo "## confdefs.h. ##" >&5
880 echo "## ------------ ##" >&5
881 echo >&5
882 cat conftest.log >&5
883 fi
884 (echo; echo) >&5
885 test "$ac_signal" != 0 &&
886 echo "$as_me: caught signal $ac_signal" >&5
887 echo "$as_me: exit $exit_status" >&5
888 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
889 exit $exit_status
890 ' 0
891for ac_signal in 1 2 13 15; do
892 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
893done
894ac_signal=0
895
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo >confdefs.h
900
901# Let the site file select an alternate cache file if it wants to.
902# Prefer explicitly selected file to automatically selected ones.
903if test -z "$CONFIG_SITE"; then
904 if test "x$prefix" != xNONE; then
905 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
906 else
907 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
908 fi
909fi
910for ac_site_file in $CONFIG_SITE; do
911 if test -r "$ac_site_file"; then
912 { echo "$as_me:912: loading site script $ac_site_file" >&5
913echo "$as_me: loading site script $ac_site_file" >&6;}
914 cat "$ac_site_file" >&5
915 . "$ac_site_file"
916 fi
917done
918
919if test -r "$cache_file"; then
920 # Some versions of bash will fail to source /dev/null (special
921 # files actually), so we avoid doing that.
922 if test -f "$cache_file"; then
923 { echo "$as_me:923: loading cache $cache_file" >&5
924echo "$as_me: loading cache $cache_file" >&6;}
925 case $cache_file in
926 [\\/]* | ?:[\\/]* ) . $cache_file;;
927 *) . ./$cache_file;;
928 esac
929 fi
930else
931 { echo "$as_me:931: creating cache $cache_file" >&5
932echo "$as_me: creating cache $cache_file" >&6;}
933 >$cache_file
934fi
935
936# Check that the precious variables saved in the cache have kept the same
937# value.
938ac_cache_corrupted=false
939for ac_var in `(set) 2>&1 |
940 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
942 eval ac_new_set=\$ac_env_${ac_var}_set
943 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
944 eval ac_new_val="\$ac_env_${ac_var}_value"
945 case $ac_old_set,$ac_new_set in
946 set,)
947 { echo "$as_me:947: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
948echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
949 ac_cache_corrupted=: ;;
950 ,set)
951 { echo "$as_me:951: error: \`$ac_var' was not set in the previous run" >&5
952echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
953 ac_cache_corrupted=: ;;
954 ,);;
955 *)
956 if test "x$ac_old_val" != "x$ac_new_val"; then
957 { echo "$as_me:957: error: \`$ac_var' has changed since the previous run:" >&5
958echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
959 { echo "$as_me:959: former value: $ac_old_val" >&5
960echo "$as_me: former value: $ac_old_val" >&2;}
961 { echo "$as_me:961: current value: $ac_new_val" >&5
962echo "$as_me: current value: $ac_new_val" >&2;}
963 ac_cache_corrupted=:
964 fi;;
965 esac
966 # Pass precious variables to config.status. It doesn't matter if
967 # we pass some twice (in addition to the command line arguments).
968 if test "$ac_new_set" = set; then
969 case $ac_new_val in
970 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
971 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
972 ac_configure_args="$ac_configure_args '$ac_arg'"
973 ;;
974 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
975 ;;
976 esac
977 fi
978done
979if $ac_cache_corrupted; then
980 { echo "$as_me:980: error: changes in the environment can compromise the build" >&5
981echo "$as_me: error: changes in the environment can compromise the build" >&2;}
982 { { echo "$as_me:982: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
983echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
984 { (exit 1); exit 1; }; }
985fi
986
987ac_ext=c
988ac_cpp='$CPP $CPPFLAGS'
989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
991ac_compiler_gnu=$ac_cv_c_compiler_gnu
992
993case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
994 *c*,-n*) ECHO_N= ECHO_C='
995' ECHO_T=' ' ;;
996 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
997 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
998esac
999echo "#! $SHELL" >conftest.sh
1000echo "exit 0" >>conftest.sh
1001chmod +x conftest.sh
1002if { (echo "$as_me:1002: PATH=\".;.\"; conftest.sh") >&5
1003 (PATH=".;."; conftest.sh) 2>&5
1004 ac_status=$?
1005 echo "$as_me:1005: \$? = $ac_status" >&5
1006 (exit $ac_status); }; then
1007 ac_path_separator=';'
1008else
1009 ac_path_separator=:
1010fi
1011PATH_SEPARATOR="$ac_path_separator"
1012rm -f conftest.sh
1013
1014ac_config_headers="$ac_config_headers config.h"
1015
1016ac_ext=c
1017ac_cpp='$CPP $CPPFLAGS'
1018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1020ac_compiler_gnu=$ac_cv_c_compiler_gnu
1021if test -n "$ac_tool_prefix"; then
1022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1023set dummy ${ac_tool_prefix}gcc; ac_word=$2
1024echo "$as_me:1024: checking for $ac_word" >&5
1025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1026if test "${ac_cv_prog_CC+set}" = set; then
1027 echo $ECHO_N "(cached) $ECHO_C" >&6
1028else
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1031else
1032 ac_save_IFS=$IFS; IFS=$ac_path_separator
1033ac_dummy="$PATH"
1034for ac_dir in $ac_dummy; do
1035 IFS=$ac_save_IFS
1036 test -z "$ac_dir" && ac_dir=.
1037 $as_executable_p "$ac_dir/$ac_word" || continue
1038ac_cv_prog_CC="${ac_tool_prefix}gcc"
1039echo "$as_me:1039: found $ac_dir/$ac_word" >&5
1040break
1041done
1042
1043fi
1044fi
1045CC=$ac_cv_prog_CC
1046if test -n "$CC"; then
1047 echo "$as_me:1047: result: $CC" >&5
1048echo "${ECHO_T}$CC" >&6
1049else
1050 echo "$as_me:1050: result: no" >&5
1051echo "${ECHO_T}no" >&6
1052fi
1053
1054fi
1055if test -z "$ac_cv_prog_CC"; then
1056 ac_ct_CC=$CC
1057 # Extract the first word of "gcc", so it can be a program name with args.
1058set dummy gcc; ac_word=$2
1059echo "$as_me:1059: checking for $ac_word" >&5
1060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1062 echo $ECHO_N "(cached) $ECHO_C" >&6
1063else
1064 if test -n "$ac_ct_CC"; then
1065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1066else
1067 ac_save_IFS=$IFS; IFS=$ac_path_separator
1068ac_dummy="$PATH"
1069for ac_dir in $ac_dummy; do
1070 IFS=$ac_save_IFS
1071 test -z "$ac_dir" && ac_dir=.
1072 $as_executable_p "$ac_dir/$ac_word" || continue
1073ac_cv_prog_ac_ct_CC="gcc"
1074echo "$as_me:1074: found $ac_dir/$ac_word" >&5
1075break
1076done
1077
1078fi
1079fi
1080ac_ct_CC=$ac_cv_prog_ac_ct_CC
1081if test -n "$ac_ct_CC"; then
1082 echo "$as_me:1082: result: $ac_ct_CC" >&5
1083echo "${ECHO_T}$ac_ct_CC" >&6
1084else
1085 echo "$as_me:1085: result: no" >&5
1086echo "${ECHO_T}no" >&6
1087fi
1088
1089 CC=$ac_ct_CC
1090else
1091 CC="$ac_cv_prog_CC"
1092fi
1093
1094if test -z "$CC"; then
1095 if test -n "$ac_tool_prefix"; then
1096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1097set dummy ${ac_tool_prefix}cc; ac_word=$2
1098echo "$as_me:1098: checking for $ac_word" >&5
1099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1100if test "${ac_cv_prog_CC+set}" = set; then
1101 echo $ECHO_N "(cached) $ECHO_C" >&6
1102else
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC="$CC" # Let the user override the test.
1105else
1106 ac_save_IFS=$IFS; IFS=$ac_path_separator
1107ac_dummy="$PATH"
1108for ac_dir in $ac_dummy; do
1109 IFS=$ac_save_IFS
1110 test -z "$ac_dir" && ac_dir=.
1111 $as_executable_p "$ac_dir/$ac_word" || continue
1112ac_cv_prog_CC="${ac_tool_prefix}cc"
1113echo "$as_me:1113: found $ac_dir/$ac_word" >&5
1114break
1115done
1116
1117fi
1118fi
1119CC=$ac_cv_prog_CC
1120if test -n "$CC"; then
1121 echo "$as_me:1121: result: $CC" >&5
1122echo "${ECHO_T}$CC" >&6
1123else
1124 echo "$as_me:1124: result: no" >&5
1125echo "${ECHO_T}no" >&6
1126fi
1127
1128fi
1129if test -z "$ac_cv_prog_CC"; then
1130 ac_ct_CC=$CC
1131 # Extract the first word of "cc", so it can be a program name with args.
1132set dummy cc; ac_word=$2
1133echo "$as_me:1133: checking for $ac_word" >&5
1134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1136 echo $ECHO_N "(cached) $ECHO_C" >&6
1137else
1138 if test -n "$ac_ct_CC"; then
1139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1140else
1141 ac_save_IFS=$IFS; IFS=$ac_path_separator
1142ac_dummy="$PATH"
1143for ac_dir in $ac_dummy; do
1144 IFS=$ac_save_IFS
1145 test -z "$ac_dir" && ac_dir=.
1146 $as_executable_p "$ac_dir/$ac_word" || continue
1147ac_cv_prog_ac_ct_CC="cc"
1148echo "$as_me:1148: found $ac_dir/$ac_word" >&5
1149break
1150done
1151
1152fi
1153fi
1154ac_ct_CC=$ac_cv_prog_ac_ct_CC
1155if test -n "$ac_ct_CC"; then
1156 echo "$as_me:1156: result: $ac_ct_CC" >&5
1157echo "${ECHO_T}$ac_ct_CC" >&6
1158else
1159 echo "$as_me:1159: result: no" >&5
1160echo "${ECHO_T}no" >&6
1161fi
1162
1163 CC=$ac_ct_CC
1164else
1165 CC="$ac_cv_prog_CC"
1166fi
1167
1168fi
1169if test -z "$CC"; then
1170 # Extract the first word of "cc", so it can be a program name with args.
1171set dummy cc; ac_word=$2
1172echo "$as_me:1172: checking for $ac_word" >&5
1173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1174if test "${ac_cv_prog_CC+set}" = set; then
1175 echo $ECHO_N "(cached) $ECHO_C" >&6
1176else
1177 if test -n "$CC"; then
1178 ac_cv_prog_CC="$CC" # Let the user override the test.
1179else
1180 ac_prog_rejected=no
1181 ac_save_IFS=$IFS; IFS=$ac_path_separator
1182ac_dummy="$PATH"
1183for ac_dir in $ac_dummy; do
1184 IFS=$ac_save_IFS
1185 test -z "$ac_dir" && ac_dir=.
1186 $as_executable_p "$ac_dir/$ac_word" || continue
1187if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1188 ac_prog_rejected=yes
1189 continue
1190fi
1191ac_cv_prog_CC="cc"
1192echo "$as_me:1192: found $ac_dir/$ac_word" >&5
1193break
1194done
1195
1196if test $ac_prog_rejected = yes; then
1197 # We found a bogon in the path, so make sure we never use it.
1198 set dummy $ac_cv_prog_CC
1199 shift
1200 if test $# != 0; then
1201 # We chose a different compiler from the bogus one.
1202 # However, it has the same basename, so the bogon will be chosen
1203 # first if we set CC to just the basename; use the full file name.
1204 shift
1205 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1206 shift
1207 ac_cv_prog_CC="$@"
1208 fi
1209fi
1210fi
1211fi
1212CC=$ac_cv_prog_CC
1213if test -n "$CC"; then
1214 echo "$as_me:1214: result: $CC" >&5
1215echo "${ECHO_T}$CC" >&6
1216else
1217 echo "$as_me:1217: result: no" >&5
1218echo "${ECHO_T}no" >&6
1219fi
1220
1221fi
1222if test -z "$CC"; then
1223 if test -n "$ac_tool_prefix"; then
1224 for ac_prog in cl
1225 do
1226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1228echo "$as_me:1228: checking for $ac_word" >&5
1229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1230if test "${ac_cv_prog_CC+set}" = set; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1232else
1233 if test -n "$CC"; then
1234 ac_cv_prog_CC="$CC" # Let the user override the test.
1235else
1236 ac_save_IFS=$IFS; IFS=$ac_path_separator
1237ac_dummy="$PATH"
1238for ac_dir in $ac_dummy; do
1239 IFS=$ac_save_IFS
1240 test -z "$ac_dir" && ac_dir=.
1241 $as_executable_p "$ac_dir/$ac_word" || continue
1242ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1243echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1244break
1245done
1246
1247fi
1248fi
1249CC=$ac_cv_prog_CC
1250if test -n "$CC"; then
1251 echo "$as_me:1251: result: $CC" >&5
1252echo "${ECHO_T}$CC" >&6
1253else
1254 echo "$as_me:1254: result: no" >&5
1255echo "${ECHO_T}no" >&6
1256fi
1257
1258 test -n "$CC" && break
1259 done
1260fi
1261if test -z "$CC"; then
1262 ac_ct_CC=$CC
1263 for ac_prog in cl
1264do
1265 # Extract the first word of "$ac_prog", so it can be a program name with args.
1266set dummy $ac_prog; ac_word=$2
1267echo "$as_me:1267: checking for $ac_word" >&5
1268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1270 echo $ECHO_N "(cached) $ECHO_C" >&6
1271else
1272 if test -n "$ac_ct_CC"; then
1273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1274else
1275 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276ac_dummy="$PATH"
1277for ac_dir in $ac_dummy; do
1278 IFS=$ac_save_IFS
1279 test -z "$ac_dir" && ac_dir=.
1280 $as_executable_p "$ac_dir/$ac_word" || continue
1281ac_cv_prog_ac_ct_CC="$ac_prog"
1282echo "$as_me:1282: found $ac_dir/$ac_word" >&5
1283break
1284done
1285
1286fi
1287fi
1288ac_ct_CC=$ac_cv_prog_ac_ct_CC
1289if test -n "$ac_ct_CC"; then
1290 echo "$as_me:1290: result: $ac_ct_CC" >&5
1291echo "${ECHO_T}$ac_ct_CC" >&6
1292else
1293 echo "$as_me:1293: result: no" >&5
1294echo "${ECHO_T}no" >&6
1295fi
1296
1297 test -n "$ac_ct_CC" && break
1298done
1299
1300 CC=$ac_ct_CC
1301fi
1302
1303fi
1304
1305test -z "$CC" && { { echo "$as_me:1305: error: no acceptable cc found in \$PATH" >&5
1306echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1307 { (exit 1); exit 1; }; }
1308
1309# Provide some information about the compiler.
1310echo "$as_me:1310:" \
1311 "checking for C compiler version" >&5
1312ac_compiler=`set X $ac_compile; echo $2`
1313{ (eval echo "$as_me:1313: \"$ac_compiler --version </dev/null >&5\"") >&5
1314 (eval $ac_compiler --version </dev/null >&5) 2>&5
1315 ac_status=$?
1316 echo "$as_me:1316: \$? = $ac_status" >&5
1317 (exit $ac_status); }
1318{ (eval echo "$as_me:1318: \"$ac_compiler -v </dev/null >&5\"") >&5
1319 (eval $ac_compiler -v </dev/null >&5) 2>&5
1320 ac_status=$?
1321 echo "$as_me:1321: \$? = $ac_status" >&5
1322 (exit $ac_status); }
1323{ (eval echo "$as_me:1323: \"$ac_compiler -V </dev/null >&5\"") >&5
1324 (eval $ac_compiler -V </dev/null >&5) 2>&5
1325 ac_status=$?
1326 echo "$as_me:1326: \$? = $ac_status" >&5
1327 (exit $ac_status); }
1328
1329cat >conftest.$ac_ext <<_ACEOF
1330#line 1330 "configure"
1331#include "confdefs.h"
1332
1333int
1334main ()
1335{
1336
1337 ;
1338 return 0;
1339}
1340_ACEOF
1341ac_clean_files_save=$ac_clean_files
1342ac_clean_files="$ac_clean_files a.out a.exe"
1343# Try to create an executable without -o first, disregard a.out.
1344# It will help us diagnose broken compilers, and finding out an intuition
1345# of exeext.
1346echo "$as_me:1346: checking for C compiler default output" >&5
1347echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1348ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1349if { (eval echo "$as_me:1349: \"$ac_link_default\"") >&5
1350 (eval $ac_link_default) 2>&5
1351 ac_status=$?
1352 echo "$as_me:1352: \$? = $ac_status" >&5
1353 (exit $ac_status); }; then
1354 # Find the output, starting from the most likely. This scheme is
1355# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1356# resort.
1357for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1358 ls a.out conftest 2>/dev/null;
1359 ls a.* conftest.* 2>/dev/null`; do
1360 case $ac_file in
1361 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1362 a.out ) # We found the default executable, but exeext='' is most
1363 # certainly right.
1364 break;;
1365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1366 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1367 export ac_cv_exeext
1368 break;;
1369 * ) break;;
1370 esac
1371done
1372else
1373 echo "$as_me: failed program was:" >&5
1374cat conftest.$ac_ext >&5
1375{ { echo "$as_me:1375: error: C compiler cannot create executables" >&5
1376echo "$as_me: error: C compiler cannot create executables" >&2;}
1377 { (exit 77); exit 77; }; }
1378fi
1379
1380ac_exeext=$ac_cv_exeext
1381echo "$as_me:1381: result: $ac_file" >&5
1382echo "${ECHO_T}$ac_file" >&6
1383
1384# Check the compiler produces executables we can run. If not, either
1385# the compiler is broken, or we cross compile.
1386echo "$as_me:1386: checking whether the C compiler works" >&5
1387echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1388# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1389# If not cross compiling, check that we can run a simple program.
1390if test "$cross_compiling" != yes; then
1391 if { ac_try='./$ac_file'
1392 { (eval echo "$as_me:1392: \"$ac_try\"") >&5
1393 (eval $ac_try) 2>&5
1394 ac_status=$?
1395 echo "$as_me:1395: \$? = $ac_status" >&5
1396 (exit $ac_status); }; }; then
1397 cross_compiling=no
1398 else
1399 if test "$cross_compiling" = maybe; then
1400 cross_compiling=yes
1401 else
1402 { { echo "$as_me:1402: error: cannot run C compiled programs.
1403If you meant to cross compile, use \`--host'." >&5
1404echo "$as_me: error: cannot run C compiled programs.
1405If you meant to cross compile, use \`--host'." >&2;}
1406 { (exit 1); exit 1; }; }
1407 fi
1408 fi
1409fi
1410echo "$as_me:1410: result: yes" >&5
1411echo "${ECHO_T}yes" >&6
1412
1413rm -f a.out a.exe conftest$ac_cv_exeext
1414ac_clean_files=$ac_clean_files_save
1415# Check the compiler produces executables we can run. If not, either
1416# the compiler is broken, or we cross compile.
1417echo "$as_me:1417: checking whether we are cross compiling" >&5
1418echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1419echo "$as_me:1419: result: $cross_compiling" >&5
1420echo "${ECHO_T}$cross_compiling" >&6
1421
1422echo "$as_me:1422: checking for executable suffix" >&5
1423echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1424if { (eval echo "$as_me:1424: \"$ac_link\"") >&5
1425 (eval $ac_link) 2>&5
1426 ac_status=$?
1427 echo "$as_me:1427: \$? = $ac_status" >&5
1428 (exit $ac_status); }; then
1429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1430# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1431# work properly (i.e., refer to `conftest.exe'), while it won't with
1432# `rm'.
1433for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1434 case $ac_file in
1435 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1437 export ac_cv_exeext
1438 break;;
1439 * ) break;;
1440 esac
1441done
1442else
1443 { { echo "$as_me:1443: error: cannot compute EXEEXT: cannot compile and link" >&5
1444echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1445 { (exit 1); exit 1; }; }
1446fi
1447
1448rm -f conftest$ac_cv_exeext
1449echo "$as_me:1449: result: $ac_cv_exeext" >&5
1450echo "${ECHO_T}$ac_cv_exeext" >&6
1451
1452rm -f conftest.$ac_ext
1453EXEEXT=$ac_cv_exeext
1454ac_exeext=$EXEEXT
1455echo "$as_me:1455: checking for object suffix" >&5
1456echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1457if test "${ac_cv_objext+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459else
1460 cat >conftest.$ac_ext <<_ACEOF
1461#line 1461 "configure"
1462#include "confdefs.h"
1463
1464int
1465main ()
1466{
1467
1468 ;
1469 return 0;
1470}
1471_ACEOF
1472rm -f conftest.o conftest.obj
1473if { (eval echo "$as_me:1473: \"$ac_compile\"") >&5
1474 (eval $ac_compile) 2>&5
1475 ac_status=$?
1476 echo "$as_me:1476: \$? = $ac_status" >&5
1477 (exit $ac_status); }; then
1478 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1479 case $ac_file in
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1482 break;;
1483 esac
1484done
1485else
1486 echo "$as_me: failed program was:" >&5
1487cat conftest.$ac_ext >&5
1488{ { echo "$as_me:1488: error: cannot compute OBJEXT: cannot compile" >&5
1489echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493rm -f conftest.$ac_cv_objext conftest.$ac_ext
1494fi
1495echo "$as_me:1495: result: $ac_cv_objext" >&5
1496echo "${ECHO_T}$ac_cv_objext" >&6
1497OBJEXT=$ac_cv_objext
1498ac_objext=$OBJEXT
1499echo "$as_me:1499: checking whether we are using the GNU C compiler" >&5
1500echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1501if test "${ac_cv_c_compiler_gnu+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504 cat >conftest.$ac_ext <<_ACEOF
1505#line 1505 "configure"
1506#include "confdefs.h"
1507
1508int
1509main ()
1510{
1511#ifndef __GNUC__
1512 choke me
1513#endif
1514
1515 ;
1516 return 0;
1517}
1518_ACEOF
1519rm -f conftest.$ac_objext
1520if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521 (eval $ac_compile) 2>&5
1522 ac_status=$?
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); } &&
1525 { ac_try='test -s conftest.$ac_objext'
1526 { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 (eval $ac_try) 2>&5
1528 ac_status=$?
1529 echo "$as_me:1529: \$? = $ac_status" >&5
1530 (exit $ac_status); }; }; then
1531 ac_compiler_gnu=yes
1532else
1533 echo "$as_me: failed program was:" >&5
1534cat conftest.$ac_ext >&5
1535ac_compiler_gnu=no
1536fi
1537rm -f conftest.$ac_objext conftest.$ac_ext
1538ac_cv_c_compiler_gnu=$ac_compiler_gnu
1539
1540fi
1541echo "$as_me:1541: result: $ac_cv_c_compiler_gnu" >&5
1542echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1543GCC=`test $ac_compiler_gnu = yes && echo yes`
1544ac_test_CFLAGS=${CFLAGS+set}
1545ac_save_CFLAGS=$CFLAGS
1546CFLAGS="-g"
1547echo "$as_me:1547: checking whether $CC accepts -g" >&5
1548echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1549if test "${ac_cv_prog_cc_g+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 cat >conftest.$ac_ext <<_ACEOF
1553#line 1553 "configure"
1554#include "confdefs.h"
1555
1556int
1557main ()
1558{
1559
1560 ;
1561 return 0;
1562}
1563_ACEOF
1564rm -f conftest.$ac_objext
1565if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1567 ac_status=$?
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); } &&
1570 { ac_try='test -s conftest.$ac_objext'
1571 { (eval echo "$as_me:1571: \"$ac_try\"") >&5
1572 (eval $ac_try) 2>&5
1573 ac_status=$?
1574 echo "$as_me:1574: \$? = $ac_status" >&5
1575 (exit $ac_status); }; }; then
1576 ac_cv_prog_cc_g=yes
1577else
1578 echo "$as_me: failed program was:" >&5
1579cat conftest.$ac_ext >&5
1580ac_cv_prog_cc_g=no
1581fi
1582rm -f conftest.$ac_objext conftest.$ac_ext
1583fi
1584echo "$as_me:1584: result: $ac_cv_prog_cc_g" >&5
1585echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1586if test "$ac_test_CFLAGS" = set; then
1587 CFLAGS=$ac_save_CFLAGS
1588elif test $ac_cv_prog_cc_g = yes; then
1589 if test "$GCC" = yes; then
1590 CFLAGS="-g -O2"
1591 else
1592 CFLAGS="-g"
1593 fi
1594else
1595 if test "$GCC" = yes; then
1596 CFLAGS="-O2"
1597 else
1598 CFLAGS=
1599 fi
1600fi
1601# Some people use a C++ compiler to compile C. Since we use `exit',
1602# in C++ we need to declare it. In case someone uses the same compiler
1603# for both compiling C and C++ we need to have the C++ compiler decide
1604# the declaration of exit, since it's the most demanding environment.
1605cat >conftest.$ac_ext <<_ACEOF
1606#ifndef __cplusplus
1607 choke me
1608#endif
1609_ACEOF
1610rm -f conftest.$ac_objext
1611if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5
1612 (eval $ac_compile) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); } &&
1616 { ac_try='test -s conftest.$ac_objext'
1617 { (eval echo "$as_me:1617: \"$ac_try\"") >&5
1618 (eval $ac_try) 2>&5
1619 ac_status=$?
1620 echo "$as_me:1620: \$? = $ac_status" >&5
1621 (exit $ac_status); }; }; then
1622 for ac_declaration in \
1623 ''\
1624 '#include <stdlib.h>' \
1625 'extern "C" void std::exit (int) throw (); using std::exit;' \
1626 'extern "C" void std::exit (int); using std::exit;' \
1627 'extern "C" void exit (int) throw ();' \
1628 'extern "C" void exit (int);' \
1629 'void exit (int);'
1630do
1631 cat >conftest.$ac_ext <<_ACEOF
1632#line 1632 "configure"
1633#include "confdefs.h"
1634#include <stdlib.h>
1635$ac_declaration
1636int
1637main ()
1638{
1639exit (42);
1640 ;
1641 return 0;
1642}
1643_ACEOF
1644rm -f conftest.$ac_objext
1645if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
1646 (eval $ac_compile) 2>&5
1647 ac_status=$?
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); } &&
1650 { ac_try='test -s conftest.$ac_objext'
1651 { (eval echo "$as_me:1651: \"$ac_try\"") >&5
1652 (eval $ac_try) 2>&5
1653 ac_status=$?
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1656 :
1657else
1658 echo "$as_me: failed program was:" >&5
1659cat conftest.$ac_ext >&5
1660continue
1661fi
1662rm -f conftest.$ac_objext conftest.$ac_ext
1663 cat >conftest.$ac_ext <<_ACEOF
1664#line 1664 "configure"
1665#include "confdefs.h"
1666$ac_declaration
1667int
1668main ()
1669{
1670exit (42);
1671 ;
1672 return 0;
1673}
1674_ACEOF
1675rm -f conftest.$ac_objext
1676if { (eval echo "$as_me:1676: \"$ac_compile\"") >&5
1677 (eval $ac_compile) 2>&5
1678 ac_status=$?
1679 echo "$as_me:1679: \$? = $ac_status" >&5
1680 (exit $ac_status); } &&
1681 { ac_try='test -s conftest.$ac_objext'
1682 { (eval echo "$as_me:1682: \"$ac_try\"") >&5
1683 (eval $ac_try) 2>&5
1684 ac_status=$?
1685 echo "$as_me:1685: \$? = $ac_status" >&5
1686 (exit $ac_status); }; }; then
1687 break
1688else
1689 echo "$as_me: failed program was:" >&5
1690cat conftest.$ac_ext >&5
1691fi
1692rm -f conftest.$ac_objext conftest.$ac_ext
1693done
1694rm -f conftest*
1695if test -n "$ac_declaration"; then
1696 echo '#ifdef __cplusplus' >>confdefs.h
1697 echo $ac_declaration >>confdefs.h
1698 echo '#endif' >>confdefs.h
1699fi
1700
1701else
1702 echo "$as_me: failed program was:" >&5
1703cat conftest.$ac_ext >&5
1704fi
1705rm -f conftest.$ac_objext conftest.$ac_ext
1706ac_ext=c
1707ac_cpp='$CPP $CPPFLAGS'
1708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710ac_compiler_gnu=$ac_cv_c_compiler_gnu
1711
1712ac_aux_dir=
1713for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1714 if test -f $ac_dir/install-sh; then
1715 ac_aux_dir=$ac_dir
1716 ac_install_sh="$ac_aux_dir/install-sh -c"
1717 break
1718 elif test -f $ac_dir/install.sh; then
1719 ac_aux_dir=$ac_dir
1720 ac_install_sh="$ac_aux_dir/install.sh -c"
1721 break
1722 elif test -f $ac_dir/shtool; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/shtool install -c"
1725 break
1726 fi
1727done
1728if test -z "$ac_aux_dir"; then
1729 { { echo "$as_me:1729: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1730echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1731 { (exit 1); exit 1; }; }
1732fi
1733ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1734ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1735ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1736
1737# Make sure we can run config.sub.
1738$ac_config_sub sun4 >/dev/null 2>&1 ||
1739 { { echo "$as_me:1739: error: cannot run $ac_config_sub" >&5
1740echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1741 { (exit 1); exit 1; }; }
1742
1743echo "$as_me:1743: checking build system type" >&5
1744echo $ECHO_N "checking build system type... $ECHO_C" >&6
1745if test "${ac_cv_build+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 ac_cv_build_alias=$build_alias
1749test -z "$ac_cv_build_alias" &&
1750 ac_cv_build_alias=`$ac_config_guess`
1751test -z "$ac_cv_build_alias" &&
1752 { { echo "$as_me:1752: error: cannot guess build type; you must specify one" >&5
1753echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1754 { (exit 1); exit 1; }; }
1755ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1756 { { echo "$as_me:1756: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1757echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1758 { (exit 1); exit 1; }; }
1759
1760fi
1761echo "$as_me:1761: result: $ac_cv_build" >&5
1762echo "${ECHO_T}$ac_cv_build" >&6
1763build=$ac_cv_build
1764build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768echo "$as_me:1768: checking host system type" >&5
1769echo $ECHO_N "checking host system type... $ECHO_C" >&6
1770if test "${ac_cv_host+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 ac_cv_host_alias=$host_alias
1774test -z "$ac_cv_host_alias" &&
1775 ac_cv_host_alias=$ac_cv_build_alias
1776ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1777 { { echo "$as_me:1777: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1779 { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:1782: result: $ac_cv_host" >&5
1783echo "${ECHO_T}$ac_cv_host" >&6
1784host=$ac_cv_host
1785host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789echo "$as_me:1789: checking whether byte ordering is bigendian" >&5
1790echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1791if test "${ac_cv_c_bigendian+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794 ac_cv_c_bigendian=unknown
1795# See if sys/param.h defines the BYTE_ORDER macro.
1796cat >conftest.$ac_ext <<_ACEOF
1797#line 1797 "configure"
1798#include "confdefs.h"
1799#include <sys/types.h>
1800#include <sys/param.h>
1801
1802int
1803main ()
1804{
1805#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1806 bogus endian macros
1807#endif
1808
1809 ;
1810 return 0;
1811}
1812_ACEOF
1813rm -f conftest.$ac_objext
1814if { (eval echo "$as_me:1814: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1816 ac_status=$?
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); } &&
1819 { ac_try='test -s conftest.$ac_objext'
1820 { (eval echo "$as_me:1820: \"$ac_try\"") >&5
1821 (eval $ac_try) 2>&5
1822 ac_status=$?
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }; }; then
1825 # It does; now see whether it defined to BIG_ENDIAN or not.
1826cat >conftest.$ac_ext <<_ACEOF
1827#line 1827 "configure"
1828#include "confdefs.h"
1829#include <sys/types.h>
1830#include <sys/param.h>
1831
1832int
1833main ()
1834{
1835#if BYTE_ORDER != BIG_ENDIAN
1836 not big endian
1837#endif
1838
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843rm -f conftest.$ac_objext
1844if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1846 ac_status=$?
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); } &&
1849 { ac_try='test -s conftest.$ac_objext'
1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 ac_cv_c_bigendian=yes
1856else
1857 echo "$as_me: failed program was:" >&5
1858cat conftest.$ac_ext >&5
1859ac_cv_c_bigendian=no
1860fi
1861rm -f conftest.$ac_objext conftest.$ac_ext
1862else
1863 echo "$as_me: failed program was:" >&5
1864cat conftest.$ac_ext >&5
1865fi
1866rm -f conftest.$ac_objext conftest.$ac_ext
1867if test $ac_cv_c_bigendian = unknown; then
1868if test "$cross_compiling" = yes; then
1869 { { echo "$as_me:1869: error: cannot run test program while cross compiling" >&5
1870echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1871 { (exit 1); exit 1; }; }
1872else
1873 cat >conftest.$ac_ext <<_ACEOF
1874#line 1874 "configure"
1875#include "confdefs.h"
1876int
1877main ()
1878{
1879 /* Are we little or big endian? From Harbison&Steele. */
1880 union
1881 {
1882 long l;
1883 char c[sizeof (long)];
1884 } u;
1885 u.l = 1;
1886 exit (u.c[sizeof (long) - 1] == 1);
1887}
1888_ACEOF
1889rm -f conftest$ac_exeext
1890if { (eval echo "$as_me:1890: \"$ac_link\"") >&5
1891 (eval $ac_link) 2>&5
1892 ac_status=$?
1893 echo "$as_me:1893: \$? = $ac_status" >&5
1894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1896 (eval $ac_try) 2>&5
1897 ac_status=$?
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1900 ac_cv_c_bigendian=no
1901else
1902 echo "$as_me: program exited with status $ac_status" >&5
1903echo "$as_me: failed program was:" >&5
1904cat conftest.$ac_ext >&5
1905ac_cv_c_bigendian=yes
1906fi
1907rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1908fi
1909fi
1910fi
1911echo "$as_me:1911: result: $ac_cv_c_bigendian" >&5
1912echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1913if test $ac_cv_c_bigendian = yes; then
1914
1915cat >>confdefs.h <<\EOF
1916#define WORDS_BIGENDIAN 1
1917EOF
1918
1919fi
1920
1921# Checks for programs.
1922for ac_prog in mawk gawk nawk awk
1923do
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925set dummy $ac_prog; ac_word=$2
1926echo "$as_me:1926: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_AWK+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931 if test -n "$AWK"; then
1932 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1933else
1934 ac_save_IFS=$IFS; IFS=$ac_path_separator
1935ac_dummy="$PATH"
1936for ac_dir in $ac_dummy; do
1937 IFS=$ac_save_IFS
1938 test -z "$ac_dir" && ac_dir=.
1939 $as_executable_p "$ac_dir/$ac_word" || continue
1940ac_cv_prog_AWK="$ac_prog"
1941echo "$as_me:1941: found $ac_dir/$ac_word" >&5
1942break
1943done
1944
1945fi
1946fi
1947AWK=$ac_cv_prog_AWK
1948if test -n "$AWK"; then
1949 echo "$as_me:1949: result: $AWK" >&5
1950echo "${ECHO_T}$AWK" >&6
1951else
1952 echo "$as_me:1952: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956 test -n "$AWK" && break
1957done
1958
1959ac_ext=c
1960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964echo "$as_me:1964: checking how to run the C preprocessor" >&5
1965echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1966# On Suns, sometimes $CPP names a directory.
1967if test -n "$CPP" && test -d "$CPP"; then
1968 CPP=
1969fi
1970if test -z "$CPP"; then
1971 if test "${ac_cv_prog_CPP+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 # Double quotes because CPP needs to be expanded
1975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1976 do
1977 ac_preproc_ok=false
1978for ac_c_preproc_warn_flag in '' yes
1979do
1980 # Use a header file that comes with gcc, so configuring glibc
1981 # with a fresh cross-compiler works.
1982 # On the NeXT, cc -E runs the code through the compiler's parser,
1983 # not just through cpp. "Syntax error" is here to catch this case.
1984 cat >conftest.$ac_ext <<_ACEOF
1985#line 1985 "configure"
1986#include "confdefs.h"
1987#include <assert.h>
1988 Syntax error
1989_ACEOF
1990if { (eval echo "$as_me:1990: \"$ac_cpp conftest.$ac_ext\"") >&5
1991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1992 ac_status=$?
1993 egrep -v '^ *\+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); } >/dev/null; then
1998 if test -s conftest.err; then
1999 ac_cpp_err=$ac_c_preproc_warn_flag
2000 else
2001 ac_cpp_err=
2002 fi
2003else
2004 ac_cpp_err=yes
2005fi
2006if test -z "$ac_cpp_err"; then
2007 :
2008else
2009 echo "$as_me: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 # Broken: fails on valid input.
2012continue
2013fi
2014rm -f conftest.err conftest.$ac_ext
2015
2016 # OK, works on sane cases. Now check whether non-existent headers
2017 # can be detected and how.
2018 cat >conftest.$ac_ext <<_ACEOF
2019#line 2019 "configure"
2020#include "confdefs.h"
2021#include <ac_nonexistent.h>
2022_ACEOF
2023if { (eval echo "$as_me:2023: \"$ac_cpp conftest.$ac_ext\"") >&5
2024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2025 ac_status=$?
2026 egrep -v '^ *\+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); } >/dev/null; then
2031 if test -s conftest.err; then
2032 ac_cpp_err=$ac_c_preproc_warn_flag
2033 else
2034 ac_cpp_err=
2035 fi
2036else
2037 ac_cpp_err=yes
2038fi
2039if test -z "$ac_cpp_err"; then
2040 # Broken: success on invalid input.
2041continue
2042else
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 # Passes both tests.
2046ac_preproc_ok=:
2047break
2048fi
2049rm -f conftest.err conftest.$ac_ext
2050
2051done
2052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2053rm -f conftest.err conftest.$ac_ext
2054if $ac_preproc_ok; then
2055 break
2056fi
2057
2058 done
2059 ac_cv_prog_CPP=$CPP
2060
2061fi
2062 CPP=$ac_cv_prog_CPP
2063else
2064 ac_cv_prog_CPP=$CPP
2065fi
2066echo "$as_me:2066: result: $CPP" >&5
2067echo "${ECHO_T}$CPP" >&6
2068ac_preproc_ok=false
2069for ac_c_preproc_warn_flag in '' yes
2070do
2071 # Use a header file that comes with gcc, so configuring glibc
2072 # with a fresh cross-compiler works.
2073 # On the NeXT, cc -E runs the code through the compiler's parser,
2074 # not just through cpp. "Syntax error" is here to catch this case.
2075 cat >conftest.$ac_ext <<_ACEOF
2076#line 2076 "configure"
2077#include "confdefs.h"
2078#include <assert.h>
2079 Syntax error
2080_ACEOF
2081if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5
2082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2083 ac_status=$?
2084 egrep -v '^ *\+' conftest.er1 >conftest.err
2085 rm -f conftest.er1
2086 cat conftest.err >&5
2087 echo "$as_me:2087: \$? = $ac_status" >&5
2088 (exit $ac_status); } >/dev/null; then
2089 if test -s conftest.err; then
2090 ac_cpp_err=$ac_c_preproc_warn_flag
2091 else
2092 ac_cpp_err=
2093 fi
2094else
2095 ac_cpp_err=yes
2096fi
2097if test -z "$ac_cpp_err"; then
2098 :
2099else
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 # Broken: fails on valid input.
2103continue
2104fi
2105rm -f conftest.err conftest.$ac_ext
2106
2107 # OK, works on sane cases. Now check whether non-existent headers
2108 # can be detected and how.
2109 cat >conftest.$ac_ext <<_ACEOF
2110#line 2110 "configure"
2111#include "confdefs.h"
2112#include <ac_nonexistent.h>
2113_ACEOF
2114if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5
2115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2116 ac_status=$?
2117 egrep -v '^ *\+' conftest.er1 >conftest.err
2118 rm -f conftest.er1
2119 cat conftest.err >&5
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); } >/dev/null; then
2122 if test -s conftest.err; then
2123 ac_cpp_err=$ac_c_preproc_warn_flag
2124 else
2125 ac_cpp_err=
2126 fi
2127else
2128 ac_cpp_err=yes
2129fi
2130if test -z "$ac_cpp_err"; then
2131 # Broken: success on invalid input.
2132continue
2133else
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 # Passes both tests.
2137ac_preproc_ok=:
2138break
2139fi
2140rm -f conftest.err conftest.$ac_ext
2141
2142done
2143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2144rm -f conftest.err conftest.$ac_ext
2145if $ac_preproc_ok; then
2146 :
2147else
2148 { { echo "$as_me:2148: error: C preprocessor \"$CPP\" fails sanity check" >&5
2149echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2150 { (exit 1); exit 1; }; }
2151fi
2152
2153ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158
2159if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2161set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2162echo "$as_me:2162: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164if test "${ac_cv_prog_RANLIB+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 if test -n "$RANLIB"; then
2168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2169else
2170 ac_save_IFS=$IFS; IFS=$ac_path_separator
2171ac_dummy="$PATH"
2172for ac_dir in $ac_dummy; do
2173 IFS=$ac_save_IFS
2174 test -z "$ac_dir" && ac_dir=.
2175 $as_executable_p "$ac_dir/$ac_word" || continue
2176ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2177echo "$as_me:2177: found $ac_dir/$ac_word" >&5
2178break
2179done
2180
2181fi
2182fi
2183RANLIB=$ac_cv_prog_RANLIB
2184if test -n "$RANLIB"; then
2185 echo "$as_me:2185: result: $RANLIB" >&5
2186echo "${ECHO_T}$RANLIB" >&6
2187else
2188 echo "$as_me:2188: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192fi
2193if test -z "$ac_cv_prog_RANLIB"; then
2194 ac_ct_RANLIB=$RANLIB
2195 # Extract the first word of "ranlib", so it can be a program name with args.
2196set dummy ranlib; ac_word=$2
2197echo "$as_me:2197: checking for $ac_word" >&5
2198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 if test -n "$ac_ct_RANLIB"; then
2203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2204else
2205 ac_save_IFS=$IFS; IFS=$ac_path_separator
2206ac_dummy="$PATH"
2207for ac_dir in $ac_dummy; do
2208 IFS=$ac_save_IFS
2209 test -z "$ac_dir" && ac_dir=.
2210 $as_executable_p "$ac_dir/$ac_word" || continue
2211ac_cv_prog_ac_ct_RANLIB="ranlib"
2212echo "$as_me:2212: found $ac_dir/$ac_word" >&5
2213break
2214done
2215
2216 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2217fi
2218fi
2219ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2220if test -n "$ac_ct_RANLIB"; then
2221 echo "$as_me:2221: result: $ac_ct_RANLIB" >&5
2222echo "${ECHO_T}$ac_ct_RANLIB" >&6
2223else
2224 echo "$as_me:2224: result: no" >&5
2225echo "${ECHO_T}no" >&6
2226fi
2227
2228 RANLIB=$ac_ct_RANLIB
2229else
2230 RANLIB="$ac_cv_prog_RANLIB"
2231fi
2232
2233# Find a good install program. We prefer a C program (faster),
2234# so one script is as good as another. But avoid the broken or
2235# incompatible versions:
2236# SysV /etc/install, /usr/sbin/install
2237# SunOS /usr/etc/install
2238# IRIX /sbin/install
2239# AIX /bin/install
2240# AmigaOS /C/install, which installs bootblocks on floppy discs
2241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2242# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2244# ./install, which can be erroneously created by make from ./install.sh.
2245echo "$as_me:2245: checking for a BSD compatible install" >&5
2246echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2247if test -z "$INSTALL"; then
2248if test "${ac_cv_path_install+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 ac_save_IFS=$IFS; IFS=$ac_path_separator
2252 for ac_dir in $PATH; do
2253 IFS=$ac_save_IFS
2254 # Account for people who put trailing slashes in PATH elements.
2255 case $ac_dir/ in
2256 / | ./ | .// | /cC/* \
2257 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2258 | /usr/ucb/* ) ;;
2259 *)
2260 # OSF1 and SCO ODT 3.0 have their own names for install.
2261 # Don't use installbsd from OSF since it installs stuff as root
2262 # by default.
2263 for ac_prog in ginstall scoinst install; do
2264 if $as_executable_p "$ac_dir/$ac_prog"; then
2265 if test $ac_prog = install &&
2266 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2267 # AIX install. It has an incompatible calling convention.
2268 :
2269 elif test $ac_prog = install &&
2270 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2271 # program-specific install script used by HP pwplus--don't use.
2272 :
2273 else
2274 ac_cv_path_install="$ac_dir/$ac_prog -c"
2275 break 2
2276 fi
2277 fi
2278 done
2279 ;;
2280 esac
2281 done
2282
2283fi
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2286 else
2287 # As a last resort, use the slow shell script. We don't cache a
2288 # path for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the path is relative.
2291 INSTALL=$ac_install_sh
2292 fi
2293fi
2294echo "$as_me:2294: result: $INSTALL" >&5
2295echo "${ECHO_T}$INSTALL" >&6
2296
2297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298# It thinks the first close brace ends the variable substitution.
2299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2300
2301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2302
2303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2304
2305# Extract the first word of "ar", so it can be a program name with args.
2306set dummy ar; ac_word=$2
2307echo "$as_me:2307: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309if test "${ac_cv_path_AR+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 case $AR in
2313 [\\/]* | ?:[\\/]*)
2314 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2315 ;;
2316 *)
2317 ac_save_IFS=$IFS; IFS=$ac_path_separator
2318ac_dummy="$PATH"
2319for ac_dir in $ac_dummy; do
2320 IFS=$ac_save_IFS
2321 test -z "$ac_dir" && ac_dir=.
2322 if $as_executable_p "$ac_dir/$ac_word"; then
2323 ac_cv_path_AR="$ac_dir/$ac_word"
2324 echo "$as_me:2324: found $ac_dir/$ac_word" >&5
2325 break
2326fi
2327done
2328
2329 ;;
2330esac
2331fi
2332AR=$ac_cv_path_AR
2333
2334if test -n "$AR"; then
2335 echo "$as_me:2335: result: $AR" >&5
2336echo "${ECHO_T}$AR" >&6
2337else
2338 echo "$as_me:2338: result: no" >&5
2339echo "${ECHO_T}no" >&6
2340fi
2341
2342for ac_prog in perl5 perl
2343do
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345set dummy $ac_prog; ac_word=$2
2346echo "$as_me:2346: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348if test "${ac_cv_path_PERL+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 case $PERL in
2352 [\\/]* | ?:[\\/]*)
2353 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2354 ;;
2355 *)
2356 ac_save_IFS=$IFS; IFS=$ac_path_separator
2357ac_dummy="$PATH"
2358for ac_dir in $ac_dummy; do
2359 IFS=$ac_save_IFS
2360 test -z "$ac_dir" && ac_dir=.
2361 if $as_executable_p "$ac_dir/$ac_word"; then
2362 ac_cv_path_PERL="$ac_dir/$ac_word"
2363 echo "$as_me:2363: found $ac_dir/$ac_word" >&5
2364 break
2365fi
2366done
2367
2368 ;;
2369esac
2370fi
2371PERL=$ac_cv_path_PERL
2372
2373if test -n "$PERL"; then
2374 echo "$as_me:2374: result: $PERL" >&5
2375echo "${ECHO_T}$PERL" >&6
2376else
2377 echo "$as_me:2377: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379fi
2380
2381 test -n "$PERL" && break
2382done
2383
2384# Extract the first word of "sed", so it can be a program name with args.
2385set dummy sed; ac_word=$2
2386echo "$as_me:2386: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388if test "${ac_cv_path_SED+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391 case $SED in
2392 [\\/]* | ?:[\\/]*)
2393 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2394 ;;
2395 *)
2396 ac_save_IFS=$IFS; IFS=$ac_path_separator
2397ac_dummy="$PATH"
2398for ac_dir in $ac_dummy; do
2399 IFS=$ac_save_IFS
2400 test -z "$ac_dir" && ac_dir=.
2401 if $as_executable_p "$ac_dir/$ac_word"; then
2402 ac_cv_path_SED="$ac_dir/$ac_word"
2403 echo "$as_me:2403: found $ac_dir/$ac_word" >&5
2404 break
2405fi
2406done
2407
2408 ;;
2409esac
2410fi
2411SED=$ac_cv_path_SED
2412
2413if test -n "$SED"; then
2414 echo "$as_me:2414: result: $SED" >&5
2415echo "${ECHO_T}$SED" >&6
2416else
2417 echo "$as_me:2417: result: no" >&5
2418echo "${ECHO_T}no" >&6
2419fi
2420
2421# Extract the first word of "ent", so it can be a program name with args.
2422set dummy ent; ac_word=$2
2423echo "$as_me:2423: checking for $ac_word" >&5
2424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425if test "${ac_cv_path_ENT+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428 case $ENT in
2429 [\\/]* | ?:[\\/]*)
2430 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2431 ;;
2432 *)
2433 ac_save_IFS=$IFS; IFS=$ac_path_separator
2434ac_dummy="$PATH"
2435for ac_dir in $ac_dummy; do
2436 IFS=$ac_save_IFS
2437 test -z "$ac_dir" && ac_dir=.
2438 if $as_executable_p "$ac_dir/$ac_word"; then
2439 ac_cv_path_ENT="$ac_dir/$ac_word"
2440 echo "$as_me:2440: found $ac_dir/$ac_word" >&5
2441 break
2442fi
2443done
2444
2445 ;;
2446esac
2447fi
2448ENT=$ac_cv_path_ENT
2449
2450if test -n "$ENT"; then
2451 echo "$as_me:2451: result: $ENT" >&5
2452echo "${ECHO_T}$ENT" >&6
2453else
2454 echo "$as_me:2454: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456fi
2457
2458# Extract the first word of "bash", so it can be a program name with args.
2459set dummy bash; ac_word=$2
2460echo "$as_me:2460: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 case $TEST_MINUS_S_SH in
2466 [\\/]* | ?:[\\/]*)
2467 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2468 ;;
2469 *)
2470 ac_save_IFS=$IFS; IFS=$ac_path_separator
2471ac_dummy="$PATH"
2472for ac_dir in $ac_dummy; do
2473 IFS=$ac_save_IFS
2474 test -z "$ac_dir" && ac_dir=.
2475 if $as_executable_p "$ac_dir/$ac_word"; then
2476 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2477 echo "$as_me:2477: found $ac_dir/$ac_word" >&5
2478 break
2479fi
2480done
2481
2482 ;;
2483esac
2484fi
2485TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2486
2487if test -n "$TEST_MINUS_S_SH"; then
2488 echo "$as_me:2488: result: $TEST_MINUS_S_SH" >&5
2489echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2490else
2491 echo "$as_me:2491: result: no" >&5
2492echo "${ECHO_T}no" >&6
2493fi
2494
2495# Extract the first word of "ksh", so it can be a program name with args.
2496set dummy ksh; ac_word=$2
2497echo "$as_me:2497: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 case $TEST_MINUS_S_SH in
2503 [\\/]* | ?:[\\/]*)
2504 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2505 ;;
2506 *)
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508ac_dummy="$PATH"
2509for ac_dir in $ac_dummy; do
2510 IFS=$ac_save_IFS
2511 test -z "$ac_dir" && ac_dir=.
2512 if $as_executable_p "$ac_dir/$ac_word"; then
2513 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2515 break
2516fi
2517done
2518
2519 ;;
2520esac
2521fi
2522TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2523
2524if test -n "$TEST_MINUS_S_SH"; then
2525 echo "$as_me:2525: result: $TEST_MINUS_S_SH" >&5
2526echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2527else
2528 echo "$as_me:2528: result: no" >&5
2529echo "${ECHO_T}no" >&6
2530fi
2531
2532# Extract the first word of "sh", so it can be a program name with args.
2533set dummy sh; ac_word=$2
2534echo "$as_me:2534: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 case $TEST_MINUS_S_SH in
2540 [\\/]* | ?:[\\/]*)
2541 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2542 ;;
2543 *)
2544 ac_save_IFS=$IFS; IFS=$ac_path_separator
2545ac_dummy="$PATH"
2546for ac_dir in $ac_dummy; do
2547 IFS=$ac_save_IFS
2548 test -z "$ac_dir" && ac_dir=.
2549 if $as_executable_p "$ac_dir/$ac_word"; then
2550 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
2551 echo "$as_me:2551: found $ac_dir/$ac_word" >&5
2552 break
2553fi
2554done
2555
2556 ;;
2557esac
2558fi
2559TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2560
2561if test -n "$TEST_MINUS_S_SH"; then
2562 echo "$as_me:2562: result: $TEST_MINUS_S_SH" >&5
2563echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2564else
2565 echo "$as_me:2565: result: no" >&5
2566echo "${ECHO_T}no" >&6
2567fi
2568
2569# Extract the first word of "sh", so it can be a program name with args.
2570set dummy sh; ac_word=$2
2571echo "$as_me:2571: checking for $ac_word" >&5
2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573if test "${ac_cv_path_SH+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 case $SH in
2577 [\\/]* | ?:[\\/]*)
2578 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2579 ;;
2580 *)
2581 ac_save_IFS=$IFS; IFS=$ac_path_separator
2582ac_dummy="$PATH"
2583for ac_dir in $ac_dummy; do
2584 IFS=$ac_save_IFS
2585 test -z "$ac_dir" && ac_dir=.
2586 if $as_executable_p "$ac_dir/$ac_word"; then
2587 ac_cv_path_SH="$ac_dir/$ac_word"
2588 echo "$as_me:2588: found $ac_dir/$ac_word" >&5
2589 break
2590fi
2591done
2592
2593 ;;
2594esac
2595fi
2596SH=$ac_cv_path_SH
2597
2598if test -n "$SH"; then
2599 echo "$as_me:2599: result: $SH" >&5
2600echo "${ECHO_T}$SH" >&6
2601else
2602 echo "$as_me:2602: result: no" >&5
2603echo "${ECHO_T}no" >&6
2604fi
2605
2606# System features
2607# Check whether --enable-largefile or --disable-largefile was given.
2608if test "${enable_largefile+set}" = set; then
2609 enableval="$enable_largefile"
2610
2611fi;
2612if test "$enable_largefile" != no; then
2613
2614 echo "$as_me:2614: checking for special C compiler options needed for large files" >&5
2615echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2616if test "${ac_cv_sys_largefile_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619 ac_cv_sys_largefile_CC=no
2620 if test "$GCC" != yes; then
2621 ac_save_CC=$CC
2622 while :; do
2623 # IRIX 6.2 and later do not support large files by default,
2624 # so use the C compiler's -n32 option if that helps.
2625 cat >conftest.$ac_ext <<_ACEOF
2626#line 2626 "configure"
2627#include "confdefs.h"
2628#include <sys/types.h>
2629 /* Check that off_t can represent 2**63 - 1 correctly.
2630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2631 since some C++ compilers masquerading as C compilers
2632 incorrectly reject 9223372036854775807. */
2633#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2635 && LARGE_OFF_T % 2147483647 == 1)
2636 ? 1 : -1];
2637int
2638main ()
2639{
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645 rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 break
2658else
2659 echo "$as_me: failed program was:" >&5
2660cat conftest.$ac_ext >&5
2661fi
2662rm -f conftest.$ac_objext
2663 CC="$CC -n32"
2664 rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:2665: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>&5
2667 ac_status=$?
2668 echo "$as_me:2668: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:2671: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_sys_largefile_CC=' -n32'; break
2677else
2678 echo "$as_me: failed program was:" >&5
2679cat conftest.$ac_ext >&5
2680fi
2681rm -f conftest.$ac_objext
2682 break
2683 done
2684 CC=$ac_save_CC
2685 rm -f conftest.$ac_ext
2686 fi
2687fi
2688echo "$as_me:2688: result: $ac_cv_sys_largefile_CC" >&5
2689echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2690 if test "$ac_cv_sys_largefile_CC" != no; then
2691 CC=$CC$ac_cv_sys_largefile_CC
2692 fi
2693
2694 echo "$as_me:2694: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2695echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2696if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 while :; do
2700 ac_cv_sys_file_offset_bits=no
2701 cat >conftest.$ac_ext <<_ACEOF
2702#line 2702 "configure"
2703#include "confdefs.h"
2704#include <sys/types.h>
2705 /* Check that off_t can represent 2**63 - 1 correctly.
2706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2707 since some C++ compilers masquerading as C compilers
2708 incorrectly reject 9223372036854775807. */
2709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2711 && LARGE_OFF_T % 2147483647 == 1)
2712 ? 1 : -1];
2713int
2714main ()
2715{
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext
2722if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>&5
2724 ac_status=$?
2725 echo "$as_me:2725: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 break
2734else
2735 echo "$as_me: failed program was:" >&5
2736cat conftest.$ac_ext >&5
2737fi
2738rm -f conftest.$ac_objext conftest.$ac_ext
2739 cat >conftest.$ac_ext <<_ACEOF
2740#line 2740 "configure"
2741#include "confdefs.h"
2742#define _FILE_OFFSET_BITS 64
2743#include <sys/types.h>
2744 /* Check that off_t can represent 2**63 - 1 correctly.
2745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2746 since some C++ compilers masquerading as C compilers
2747 incorrectly reject 9223372036854775807. */
2748#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2750 && LARGE_OFF_T % 2147483647 == 1)
2751 ? 1 : -1];
2752int
2753main ()
2754{
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2763 ac_status=$?
2764 echo "$as_me:2764: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 ac_cv_sys_file_offset_bits=64; break
2773else
2774 echo "$as_me: failed program was:" >&5
2775cat conftest.$ac_ext >&5
2776fi
2777rm -f conftest.$ac_objext conftest.$ac_ext
2778 break
2779done
2780fi
2781echo "$as_me:2781: result: $ac_cv_sys_file_offset_bits" >&5
2782echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2783if test "$ac_cv_sys_file_offset_bits" != no; then
2784
2785cat >>confdefs.h <<EOF
2786#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2787EOF
2788
2789fi
2790rm -f conftest*
2791 echo "$as_me:2791: checking for _LARGE_FILES value needed for large files" >&5
2792echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2793if test "${ac_cv_sys_large_files+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796 while :; do
2797 ac_cv_sys_large_files=no
2798 cat >conftest.$ac_ext <<_ACEOF
2799#line 2799 "configure"
2800#include "confdefs.h"
2801#include <sys/types.h>
2802 /* Check that off_t can represent 2**63 - 1 correctly.
2803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2804 since some C++ compilers masquerading as C compilers
2805 incorrectly reject 9223372036854775807. */
2806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2808 && LARGE_OFF_T % 2147483647 == 1)
2809 ? 1 : -1];
2810int
2811main ()
2812{
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext
2819if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2821 ac_status=$?
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 break
2831else
2832 echo "$as_me: failed program was:" >&5
2833cat conftest.$ac_ext >&5
2834fi
2835rm -f conftest.$ac_objext conftest.$ac_ext
2836 cat >conftest.$ac_ext <<_ACEOF
2837#line 2837 "configure"
2838#include "confdefs.h"
2839#define _LARGE_FILES 1
2840#include <sys/types.h>
2841 /* Check that off_t can represent 2**63 - 1 correctly.
2842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2843 since some C++ compilers masquerading as C compilers
2844 incorrectly reject 9223372036854775807. */
2845#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2847 && LARGE_OFF_T % 2147483647 == 1)
2848 ? 1 : -1];
2849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2860 ac_status=$?
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_sys_large_files=1; break
2870else
2871 echo "$as_me: failed program was:" >&5
2872cat conftest.$ac_ext >&5
2873fi
2874rm -f conftest.$ac_objext conftest.$ac_ext
2875 break
2876done
2877fi
2878echo "$as_me:2878: result: $ac_cv_sys_large_files" >&5
2879echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2880if test "$ac_cv_sys_large_files" != no; then
2881
2882cat >>confdefs.h <<EOF
2883#define _LARGE_FILES $ac_cv_sys_large_files
2884EOF
2885
2886fi
2887rm -f conftest*
2888fi
2889
2890if test -z "$AR" ; then
2891 { { echo "$as_me:2891: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
2892echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
2893 { (exit 1); exit 1; }; }
2894fi
2895
2896# Use LOGIN_PROGRAM from environment if possible
2897if test ! -z "$LOGIN_PROGRAM" ; then
2898 cat >>confdefs.h <<EOF
2899#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
2900EOF
2901
2902else
2903 # Search for login
2904 # Extract the first word of "login", so it can be a program name with args.
2905set dummy login; ac_word=$2
2906echo "$as_me:2906: checking for $ac_word" >&5
2907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 case $LOGIN_PROGRAM_FALLBACK in
2912 [\\/]* | ?:[\\/]*)
2913 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
2914 ;;
2915 *)
2916 ac_save_IFS=$IFS; IFS=$ac_path_separator
2917ac_dummy="$PATH"
2918for ac_dir in $ac_dummy; do
2919 IFS=$ac_save_IFS
2920 test -z "$ac_dir" && ac_dir=.
2921 if $as_executable_p "$ac_dir/$ac_word"; then
2922 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word"
2923 echo "$as_me:2923: found $ac_dir/$ac_word" >&5
2924 break
2925fi
2926done
2927
2928 ;;
2929esac
2930fi
2931LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
2932
2933if test -n "$LOGIN_PROGRAM_FALLBACK"; then
2934 echo "$as_me:2934: result: $LOGIN_PROGRAM_FALLBACK" >&5
2935echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
2936else
2937 echo "$as_me:2937: result: no" >&5
2938echo "${ECHO_T}no" >&6
2939fi
2940
2941 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
2942 cat >>confdefs.h <<EOF
2943#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
2944EOF
2945
2946 fi
2947fi
2948
2949# Extract the first word of "passwd", so it can be a program name with args.
2950set dummy passwd; ac_word=$2
2951echo "$as_me:2951: checking for $ac_word" >&5
2952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2953if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 case $PATH_PASSWD_PROG in
2957 [\\/]* | ?:[\\/]*)
2958 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
2959 ;;
2960 *)
2961 ac_save_IFS=$IFS; IFS=$ac_path_separator
2962ac_dummy="$PATH"
2963for ac_dir in $ac_dummy; do
2964 IFS=$ac_save_IFS
2965 test -z "$ac_dir" && ac_dir=.
2966 if $as_executable_p "$ac_dir/$ac_word"; then
2967 ac_cv_path_PATH_PASSWD_PROG="$ac_dir/$ac_word"
2968 echo "$as_me:2968: found $ac_dir/$ac_word" >&5
2969 break
2970fi
2971done
2972
2973 ;;
2974esac
2975fi
2976PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
2977
2978if test -n "$PATH_PASSWD_PROG"; then
2979 echo "$as_me:2979: result: $PATH_PASSWD_PROG" >&5
2980echo "${ECHO_T}$PATH_PASSWD_PROG" >&6
2981else
2982 echo "$as_me:2982: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984fi
2985
2986if test ! -z "$PATH_PASSWD_PROG" ; then
2987 cat >>confdefs.h <<EOF
2988#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
2989EOF
2990
2991fi
2992
2993if test -z "$LD" ; then
2994 LD=$CC
2995fi
2996
2997echo "$as_me:2997: checking for $CC option to accept ANSI C" >&5
2998echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2999if test "${ac_cv_prog_cc_stdc+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_cv_prog_cc_stdc=no
3003ac_save_CC=$CC
3004cat >conftest.$ac_ext <<_ACEOF
3005#line 3005 "configure"
3006#include "confdefs.h"
3007#include <stdarg.h>
3008#include <stdio.h>
3009#include <sys/types.h>
3010#include <sys/stat.h>
3011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012struct buf { int x; };
3013FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014static char *e (p, i)
3015 char **p;
3016 int i;
3017{
3018 return p[i];
3019}
3020static char *f (char * (*g) (char **, int), char **p, ...)
3021{
3022 char *s;
3023 va_list v;
3024 va_start (v,p);
3025 s = g (p, va_arg (v,int));
3026 va_end (v);
3027 return s;
3028}
3029int test (int i, double x);
3030struct s1 {int (*f) (int a);};
3031struct s2 {int (*f) (double a);};
3032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033int argc;
3034char **argv;
3035int
3036main ()
3037{
3038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043# Don't try gcc -ansi; that turns off useful extensions and
3044# breaks some systems' header files.
3045# AIX -qlanglvl=ansi
3046# Ultrix and OSF/1 -std1
3047# HP-UX 10.20 and later -Ae
3048# HP-UX older versions -Aa -D_HPUX_SOURCE
3049# SVR4 -Xc -D__EXTENSIONS__
3050for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
3056 ac_status=$?
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (eval echo "$as_me:3060: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:3063: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_prog_cc_stdc=$ac_arg
3066break
3067else
3068 echo "$as_me: failed program was:" >&5
3069cat conftest.$ac_ext >&5
3070fi
3071rm -f conftest.$ac_objext
3072done
3073rm -f conftest.$ac_ext conftest.$ac_objext
3074CC=$ac_save_CC
3075
3076fi
3077
3078case "x$ac_cv_prog_cc_stdc" in
3079 x|xno)
3080 echo "$as_me:3080: result: none needed" >&5
3081echo "${ECHO_T}none needed" >&6 ;;
3082 *)
3083 echo "$as_me:3083: result: $ac_cv_prog_cc_stdc" >&5
3084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085 CC="$CC $ac_cv_prog_cc_stdc" ;;
3086esac
3087
3088echo "$as_me:3088: checking for inline" >&5
3089echo $ECHO_N "checking for inline... $ECHO_C" >&6
3090if test "${ac_cv_c_inline+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 ac_cv_c_inline=no
3094for ac_kw in inline __inline__ __inline; do
3095 cat >conftest.$ac_ext <<_ACEOF
3096#line 3096 "configure"
3097#include "confdefs.h"
3098#ifndef __cplusplus
3099static $ac_kw int static_foo () {return 0; }
3100$ac_kw int foo () {return 0; }
3101#endif
3102
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:3105: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3107 ac_status=$?
3108 echo "$as_me:3108: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:3111: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:3114: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_c_inline=$ac_kw; break
3117else
3118 echo "$as_me: failed program was:" >&5
3119cat conftest.$ac_ext >&5
3120fi
3121rm -f conftest.$ac_objext conftest.$ac_ext
3122done
3123
3124fi
3125echo "$as_me:3125: result: $ac_cv_c_inline" >&5
3126echo "${ECHO_T}$ac_cv_c_inline" >&6
3127case $ac_cv_c_inline in
3128 inline | yes) ;;
3129 no)
3130cat >>confdefs.h <<\EOF
3131#define inline
3132EOF
3133 ;;
3134 *) cat >>confdefs.h <<EOF
3135#define inline $ac_cv_c_inline
3136EOF
3137 ;;
3138esac
3139
3140if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3141 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3142fi
3143
3144# Check whether --with-rpath or --without-rpath was given.
3145if test "${with_rpath+set}" = set; then
3146 withval="$with_rpath"
3147
3148 if test "x$withval" = "xno" ; then
3149 need_dash_r=""
3150 fi
3151 if test "x$withval" = "xyes" ; then
3152 need_dash_r=1
3153 fi
3154
3155fi;
3156
3157# Check for some target-specific stuff
3158case "$host" in
3159*-*-aix*)
3160 echo "$as_me:3160: checking how to specify blibpath for linker ($LD)" >&5
3161echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6
3162 if (test -z "$blibpath"); then
3163 blibpath="/usr/lib:/lib"
3164 fi
3165 saved_LDFLAGS="$LDFLAGS"
3166 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
3167 if (test -z "$blibflags"); then
3168 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
3169 cat >conftest.$ac_ext <<_ACEOF
3170#line 3170 "configure"
3171#include "confdefs.h"
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext conftest$ac_exeext
3182if { (eval echo "$as_me:3182: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>&5
3184 ac_status=$?
3185 echo "$as_me:3185: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:3188: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 blibflags=$tryflags
3194else
3195 echo "$as_me: failed program was:" >&5
3196cat conftest.$ac_ext >&5
3197fi
3198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 fi
3200 done
3201 if (test -z "$blibflags"); then
3202 echo "$as_me:3202: result: not found" >&5
3203echo "${ECHO_T}not found" >&6
3204 { { echo "$as_me:3204: error: *** must be able to specify blibpath on AIX - check config.log" >&5
3205echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
3206 { (exit 1); exit 1; }; }
3207 else
3208 echo "$as_me:3208: result: $blibflags" >&5
3209echo "${ECHO_T}$blibflags" >&6
3210 fi
3211 LDFLAGS="$saved_LDFLAGS"
3212 echo "$as_me:3212: checking for authenticate" >&5
3213echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3214if test "${ac_cv_func_authenticate+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 cat >conftest.$ac_ext <<_ACEOF
3218#line 3218 "configure"
3219#include "confdefs.h"
3220/* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char authenticate (); below. */
3222#include <assert.h>
3223/* Override any gcc2 internal prototype to avoid an error. */
3224#ifdef __cplusplus
3225extern "C"
3226#endif
3227/* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229char authenticate ();
3230char (*f) ();
3231
3232int
3233main ()
3234{
3235/* The GNU C library defines this for functions which it implements
3236 to always fail with ENOSYS. Some functions are actually named
3237 something starting with __ and the normal name is an alias. */
3238#if defined (__stub_authenticate) || defined (__stub___authenticate)
3239choke me
3240#else
3241f = authenticate;
3242#endif
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext conftest$ac_exeext
3249if { (eval echo "$as_me:3249: \"$ac_link\"") >&5
3250 (eval $ac_link) 2>&5
3251 ac_status=$?
3252 echo "$as_me:3252: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:3255: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:3258: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_func_authenticate=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263cat conftest.$ac_ext >&5
3264ac_cv_func_authenticate=no
3265fi
3266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3267fi
3268echo "$as_me:3268: result: $ac_cv_func_authenticate" >&5
3269echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3270if test $ac_cv_func_authenticate = yes; then
3271 cat >>confdefs.h <<\EOF
3272#define WITH_AIXAUTHENTICATE 1
3273EOF
3274
3275else
3276 echo "$as_me:3276: checking for authenticate in -ls" >&5
3277echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3278if test "${ac_cv_lib_s_authenticate+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281 ac_check_lib_save_LIBS=$LIBS
3282LIBS="-ls $LIBS"
3283cat >conftest.$ac_ext <<_ACEOF
3284#line 3284 "configure"
3285#include "confdefs.h"
3286
3287/* Override any gcc2 internal prototype to avoid an error. */
3288#ifdef __cplusplus
3289extern "C"
3290#endif
3291/* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3293char authenticate ();
3294int
3295main ()
3296{
3297authenticate ();
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302rm -f conftest.$ac_objext conftest$ac_exeext
3303if { (eval echo "$as_me:3303: \"$ac_link\"") >&5
3304 (eval $ac_link) 2>&5
3305 ac_status=$?
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -s conftest$ac_exeext'
3309 { (eval echo "$as_me:3309: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:3312: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_cv_lib_s_authenticate=yes
3315else
3316 echo "$as_me: failed program was:" >&5
3317cat conftest.$ac_ext >&5
3318ac_cv_lib_s_authenticate=no
3319fi
3320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3321LIBS=$ac_check_lib_save_LIBS
3322fi
3323echo "$as_me:3323: result: $ac_cv_lib_s_authenticate" >&5
3324echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3325if test $ac_cv_lib_s_authenticate = yes; then
3326 cat >>confdefs.h <<\EOF
3327#define WITH_AIXAUTHENTICATE 1
3328EOF
3329
3330 LIBS="$LIBS -ls"
3331
3332fi
3333
3334fi
3335
3336 echo "$as_me:3336: checking whether loginfailed is declared" >&5
3337echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6
3338if test "${ac_cv_have_decl_loginfailed+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 cat >conftest.$ac_ext <<_ACEOF
3342#line 3342 "configure"
3343#include "confdefs.h"
3344#include <usersec.h>
3345
3346int
3347main ()
3348{
3349#ifndef loginfailed
3350 char *p = (char *) loginfailed;
3351#endif
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:3358: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>&5
3360 ac_status=$?
3361 echo "$as_me:3361: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (eval echo "$as_me:3364: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3369 ac_cv_have_decl_loginfailed=yes
3370else
3371 echo "$as_me: failed program was:" >&5
3372cat conftest.$ac_ext >&5
3373ac_cv_have_decl_loginfailed=no
3374fi
3375rm -f conftest.$ac_objext conftest.$ac_ext
3376fi
3377echo "$as_me:3377: result: $ac_cv_have_decl_loginfailed" >&5
3378echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6
3379if test $ac_cv_have_decl_loginfailed = yes; then
3380 echo "$as_me:3380: checking if loginfailed takes 4 arguments" >&5
3381echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3383#line 3383 "configure"
3384#include "confdefs.h"
3385#include <usersec.h>
3386int
3387main ()
3388{
3389(void)loginfailed("user","host","tty",0);
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3397 ac_status=$?
3398 echo "$as_me:3398: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:3401: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 echo "$as_me:3406: result: yes" >&5
3407echo "${ECHO_T}yes" >&6
3408 cat >>confdefs.h <<\EOF
3409#define AIX_LOGINFAILED_4ARG 1
3410EOF
3411
3412else
3413 echo "$as_me: failed program was:" >&5
3414cat conftest.$ac_ext >&5
3415echo "$as_me:3415: result: no" >&5
3416echo "${ECHO_T}no" >&6
3417
3418fi
3419rm -f conftest.$ac_objext conftest.$ac_ext
3420fi
3421
3422for ac_func in setauthdb
3423do
3424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3425echo "$as_me:3425: checking for $ac_func" >&5
3426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3427if eval "test \"\${$as_ac_var+set}\" = set"; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430 cat >conftest.$ac_ext <<_ACEOF
3431#line 3431 "configure"
3432#include "confdefs.h"
3433/* System header to define __stub macros and hopefully few prototypes,
3434 which can conflict with char $ac_func (); below. */
3435#include <assert.h>
3436/* Override any gcc2 internal prototype to avoid an error. */
3437#ifdef __cplusplus
3438extern "C"
3439#endif
3440/* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442char $ac_func ();
3443char (*f) ();
3444
3445int
3446main ()
3447{
3448/* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3452choke me
3453#else
3454f = $ac_func;
3455#endif
3456
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext conftest$ac_exeext
3462if { (eval echo "$as_me:3462: \"$ac_link\"") >&5
3463 (eval $ac_link) 2>&5
3464 ac_status=$?
3465 echo "$as_me:3465: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 eval "$as_ac_var=yes"
3474else
3475 echo "$as_me: failed program was:" >&5
3476cat conftest.$ac_ext >&5
3477eval "$as_ac_var=no"
3478fi
3479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3480fi
3481echo "$as_me:3481: result: `eval echo '${'$as_ac_var'}'`" >&5
3482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3483if test `eval echo '${'$as_ac_var'}'` = yes; then
3484 cat >>confdefs.h <<EOF
3485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3486EOF
3487
3488fi
3489done
3490
3491 cat >>confdefs.h <<\EOF
3492#define BROKEN_GETADDRINFO 1
3493EOF
3494
3495 cat >>confdefs.h <<\EOF
3496#define BROKEN_REALPATH 1
3497EOF
3498
3499 cat >>confdefs.h <<\EOF
3500#define SETEUID_BREAKS_SETUID 1
3501EOF
3502
3503 cat >>confdefs.h <<\EOF
3504#define BROKEN_SETREUID 1
3505EOF
3506
3507 cat >>confdefs.h <<\EOF
3508#define BROKEN_SETREGID 1
3509EOF
3510
3511 cat >>confdefs.h <<\EOF
3512#define DISABLE_LASTLOG 1
3513EOF
3514
3515 cat >>confdefs.h <<\EOF
3516#define LOGIN_NEEDS_UTMPX 1
3517EOF
3518
3519 cat >>confdefs.h <<\EOF
3520#define SPT_TYPE SPT_REUSEARGV
3521EOF
3522
3523 ;;
3524*-*-cygwin*)
3525 check_for_libcrypt_later=1
3526 LIBS="$LIBS /usr/lib/textmode.o"
3527 cat >>confdefs.h <<\EOF
3528#define HAVE_CYGWIN 1
3529EOF
3530
3531 cat >>confdefs.h <<\EOF
3532#define USE_PIPES 1
3533EOF
3534
3535 cat >>confdefs.h <<\EOF
3536#define DISABLE_SHADOW 1
3537EOF
3538
3539 cat >>confdefs.h <<\EOF
3540#define IP_TOS_IS_BROKEN 1
3541EOF
3542
3543 cat >>confdefs.h <<\EOF
3544#define NO_X11_UNIX_SOCKETS 1
3545EOF
3546
3547 cat >>confdefs.h <<\EOF
3548#define NO_IPPORT_RESERVED_CONCEPT 1
3549EOF
3550
3551 cat >>confdefs.h <<\EOF
3552#define DISABLE_FD_PASSING 1
3553EOF
3554
3555 cat >>confdefs.h <<\EOF
3556#define SETGROUPS_NOOP 1
3557EOF
3558
3559 ;;
3560*-*-dgux*)
3561 cat >>confdefs.h <<\EOF
3562#define IP_TOS_IS_BROKEN 1
3563EOF
3564
3565 cat >>confdefs.h <<\EOF
3566#define SETEUID_BREAKS_SETUID 1
3567EOF
3568
3569 cat >>confdefs.h <<\EOF
3570#define BROKEN_SETREUID 1
3571EOF
3572
3573 cat >>confdefs.h <<\EOF
3574#define BROKEN_SETREGID 1
3575EOF
3576
3577 ;;
3578*-*-darwin*)
3579 echo "$as_me:3579: checking if we have working getaddrinfo" >&5
3580echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3581 if test "$cross_compiling" = yes; then
3582 echo "$as_me:3582: result: assume it is working" >&5
3583echo "${ECHO_T}assume it is working" >&6
3584else
3585 cat >conftest.$ac_ext <<_ACEOF
3586#line 3586 "configure"
3587#include "confdefs.h"
3588#include <mach-o/dyld.h>
3589main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3590 exit(0);
3591 else
3592 exit(1);
3593}
3594_ACEOF
3595rm -f conftest$ac_exeext
3596if { (eval echo "$as_me:3596: \"$ac_link\"") >&5
3597 (eval $ac_link) 2>&5
3598 ac_status=$?
3599 echo "$as_me:3599: \$? = $ac_status" >&5
3600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3601 { (eval echo "$as_me:3601: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:3604: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 echo "$as_me:3606: result: working" >&5
3607echo "${ECHO_T}working" >&6
3608else
3609 echo "$as_me: program exited with status $ac_status" >&5
3610echo "$as_me: failed program was:" >&5
3611cat conftest.$ac_ext >&5
3612echo "$as_me:3612: result: buggy" >&5
3613echo "${ECHO_T}buggy" >&6
3614 cat >>confdefs.h <<\EOF
3615#define BROKEN_GETADDRINFO 1
3616EOF
3617
3618fi
3619rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3620fi
3621 cat >>confdefs.h <<\EOF
3622#define SETEUID_BREAKS_SETUID 1
3623EOF
3624
3625 cat >>confdefs.h <<\EOF
3626#define BROKEN_SETREUID 1
3627EOF
3628
3629 cat >>confdefs.h <<\EOF
3630#define BROKEN_SETREGID 1
3631EOF
3632
3633 cat >>confdefs.h <<EOF
3634#define BIND_8_COMPAT 1
3635EOF
3636
3637 ;;
3638*-*-hpux10.26)
3639 if test -z "$GCC"; then
3640 CFLAGS="$CFLAGS -Ae"
3641 fi
3642 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3643 IPADDR_IN_DISPLAY=yes
3644 cat >>confdefs.h <<\EOF
3645#define HAVE_SECUREWARE 1
3646EOF
3647
3648 cat >>confdefs.h <<\EOF
3649#define USE_PIPES 1
3650EOF
3651
3652 cat >>confdefs.h <<\EOF
3653#define LOGIN_NO_ENDOPT 1
3654EOF
3655
3656 cat >>confdefs.h <<\EOF
3657#define LOGIN_NEEDS_UTMPX 1
3658EOF
3659
3660 cat >>confdefs.h <<\EOF
3661#define LOCKED_PASSWD_STRING "*"
3662EOF
3663
3664 cat >>confdefs.h <<\EOF
3665#define SPT_TYPE SPT_PSTAT
3666EOF
3667
3668 LIBS="$LIBS -lsec -lsecpw"
3669
3670echo "$as_me:3670: checking for t_error in -lxnet" >&5
3671echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3672if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 ac_check_lib_save_LIBS=$LIBS
3676LIBS="-lxnet $LIBS"
3677cat >conftest.$ac_ext <<_ACEOF
3678#line 3678 "configure"
3679#include "confdefs.h"
3680
3681/* Override any gcc2 internal prototype to avoid an error. */
3682#ifdef __cplusplus
3683extern "C"
3684#endif
3685/* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687char t_error ();
3688int
3689main ()
3690{
3691t_error ();
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
3697if { (eval echo "$as_me:3697: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 echo "$as_me:3700: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -s conftest$ac_exeext'
3703 { (eval echo "$as_me:3703: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_lib_xnet_t_error=yes
3709else
3710 echo "$as_me: failed program was:" >&5
3711cat conftest.$ac_ext >&5
3712ac_cv_lib_xnet_t_error=no
3713fi
3714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3715LIBS=$ac_check_lib_save_LIBS
3716fi
3717echo "$as_me:3717: result: $ac_cv_lib_xnet_t_error" >&5
3718echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3719if test $ac_cv_lib_xnet_t_error = yes; then
3720 cat >>confdefs.h <<EOF
3721#define HAVE_LIBXNET 1
3722EOF
3723
3724 LIBS="-lxnet $LIBS"
3725
3726else
3727 { { echo "$as_me:3727: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3728echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3729 { (exit 1); exit 1; }; }
3730fi
3731
3732 disable_ptmx_check=yes
3733 ;;
3734*-*-hpux10*)
3735 if test -z "$GCC"; then
3736 CFLAGS="$CFLAGS -Ae"
3737 fi
3738 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3739 IPADDR_IN_DISPLAY=yes
3740 cat >>confdefs.h <<\EOF
3741#define USE_PIPES 1
3742EOF
3743
3744 cat >>confdefs.h <<\EOF
3745#define LOGIN_NO_ENDOPT 1
3746EOF
3747
3748 cat >>confdefs.h <<\EOF
3749#define LOGIN_NEEDS_UTMPX 1
3750EOF
3751
3752 cat >>confdefs.h <<\EOF
3753#define LOCKED_PASSWD_STRING "*"
3754EOF
3755
3756 cat >>confdefs.h <<\EOF
3757#define SPT_TYPE SPT_PSTAT
3758EOF
3759
3760 LIBS="$LIBS -lsec"
3761
3762echo "$as_me:3762: checking for t_error in -lxnet" >&5
3763echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3764if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 ac_check_lib_save_LIBS=$LIBS
3768LIBS="-lxnet $LIBS"
3769cat >conftest.$ac_ext <<_ACEOF
3770#line 3770 "configure"
3771#include "confdefs.h"
3772
3773/* Override any gcc2 internal prototype to avoid an error. */
3774#ifdef __cplusplus
3775extern "C"
3776#endif
3777/* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3779char t_error ();
3780int
3781main ()
3782{
3783t_error ();
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:3789: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>&5
3791 ac_status=$?
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_lib_xnet_t_error=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803cat conftest.$ac_ext >&5
3804ac_cv_lib_xnet_t_error=no
3805fi
3806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807LIBS=$ac_check_lib_save_LIBS
3808fi
3809echo "$as_me:3809: result: $ac_cv_lib_xnet_t_error" >&5
3810echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3811if test $ac_cv_lib_xnet_t_error = yes; then
3812 cat >>confdefs.h <<EOF
3813#define HAVE_LIBXNET 1
3814EOF
3815
3816 LIBS="-lxnet $LIBS"
3817
3818else
3819 { { echo "$as_me:3819: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3820echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3821 { (exit 1); exit 1; }; }
3822fi
3823
3824 ;;
3825*-*-hpux11*)
3826 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3827 IPADDR_IN_DISPLAY=yes
3828 cat >>confdefs.h <<\EOF
3829#define PAM_SUN_CODEBASE 1
3830EOF
3831
3832 cat >>confdefs.h <<\EOF
3833#define USE_PIPES 1
3834EOF
3835
3836 cat >>confdefs.h <<\EOF
3837#define LOGIN_NO_ENDOPT 1
3838EOF
3839
3840 cat >>confdefs.h <<\EOF
3841#define LOGIN_NEEDS_UTMPX 1
3842EOF
3843
3844 cat >>confdefs.h <<\EOF
3845#define DISABLE_UTMP 1
3846EOF
3847
3848 cat >>confdefs.h <<\EOF
3849#define LOCKED_PASSWD_STRING "*"
3850EOF
3851
3852 cat >>confdefs.h <<\EOF
3853#define SPT_TYPE SPT_PSTAT
3854EOF
3855
3856 case "$host" in
3857 *-*-hpux11.11*)
3858 cat >>confdefs.h <<\EOF
3859#define BROKEN_GETADDRINFO 1
3860EOF
3861;;
3862 esac
3863 LIBS="$LIBS -lsec"
3864
3865echo "$as_me:3865: checking for t_error in -lxnet" >&5
3866echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3867if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 ac_check_lib_save_LIBS=$LIBS
3871LIBS="-lxnet $LIBS"
3872cat >conftest.$ac_ext <<_ACEOF
3873#line 3873 "configure"
3874#include "confdefs.h"
3875
3876/* Override any gcc2 internal prototype to avoid an error. */
3877#ifdef __cplusplus
3878extern "C"
3879#endif
3880/* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3882char t_error ();
3883int
3884main ()
3885{
3886t_error ();
3887 ;
3888 return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext conftest$ac_exeext
3892if { (eval echo "$as_me:3892: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -s conftest$ac_exeext'
3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:3901: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_cv_lib_xnet_t_error=yes
3904else
3905 echo "$as_me: failed program was:" >&5
3906cat conftest.$ac_ext >&5
3907ac_cv_lib_xnet_t_error=no
3908fi
3909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3910LIBS=$ac_check_lib_save_LIBS
3911fi
3912echo "$as_me:3912: result: $ac_cv_lib_xnet_t_error" >&5
3913echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3914if test $ac_cv_lib_xnet_t_error = yes; then
3915 cat >>confdefs.h <<EOF
3916#define HAVE_LIBXNET 1
3917EOF
3918
3919 LIBS="-lxnet $LIBS"
3920
3921else
3922 { { echo "$as_me:3922: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3923echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3924 { (exit 1); exit 1; }; }
3925fi
3926
3927 ;;
3928*-*-irix5*)
3929 PATH="$PATH:/usr/etc"
3930 cat >>confdefs.h <<\EOF
3931#define BROKEN_INET_NTOA 1
3932EOF
3933
3934 cat >>confdefs.h <<\EOF
3935#define SETEUID_BREAKS_SETUID 1
3936EOF
3937
3938 cat >>confdefs.h <<\EOF
3939#define BROKEN_SETREUID 1
3940EOF
3941
3942 cat >>confdefs.h <<\EOF
3943#define BROKEN_SETREGID 1
3944EOF
3945
3946 cat >>confdefs.h <<\EOF
3947#define WITH_ABBREV_NO_TTY 1
3948EOF
3949
3950 cat >>confdefs.h <<\EOF
3951#define LOCKED_PASSWD_STRING "*LK*"
3952EOF
3953
3954 ;;
3955*-*-irix6*)
3956 PATH="$PATH:/usr/etc"
3957 cat >>confdefs.h <<\EOF
3958#define WITH_IRIX_ARRAY 1
3959EOF
3960
3961 cat >>confdefs.h <<\EOF
3962#define WITH_IRIX_PROJECT 1
3963EOF
3964
3965 cat >>confdefs.h <<\EOF
3966#define WITH_IRIX_AUDIT 1
3967EOF
3968
3969 echo "$as_me:3969: checking for jlimit_startjob" >&5
3970echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3971if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 cat >conftest.$ac_ext <<_ACEOF
3975#line 3975 "configure"
3976#include "confdefs.h"
3977/* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char jlimit_startjob (); below. */
3979#include <assert.h>
3980/* Override any gcc2 internal prototype to avoid an error. */
3981#ifdef __cplusplus
3982extern "C"
3983#endif
3984/* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3986char jlimit_startjob ();
3987char (*f) ();
3988
3989int
3990main ()
3991{
3992/* The GNU C library defines this for functions which it implements
3993 to always fail with ENOSYS. Some functions are actually named
3994 something starting with __ and the normal name is an alias. */
3995#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3996choke me
3997#else
3998f = jlimit_startjob;
3999#endif
4000
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005rm -f conftest.$ac_objext conftest$ac_exeext
4006if { (eval echo "$as_me:4006: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>&5
4008 ac_status=$?
4009 echo "$as_me:4009: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:4012: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:4015: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_jlimit_startjob=yes
4018else
4019 echo "$as_me: failed program was:" >&5
4020cat conftest.$ac_ext >&5
4021ac_cv_func_jlimit_startjob=no
4022fi
4023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4024fi
4025echo "$as_me:4025: result: $ac_cv_func_jlimit_startjob" >&5
4026echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4027if test $ac_cv_func_jlimit_startjob = yes; then
4028 cat >>confdefs.h <<\EOF
4029#define WITH_IRIX_JOBS 1
4030EOF
4031
4032fi
4033
4034 cat >>confdefs.h <<\EOF
4035#define BROKEN_INET_NTOA 1
4036EOF
4037
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 cat >>confdefs.h <<\EOF
4051#define WITH_ABBREV_NO_TTY 1
4052EOF
4053
4054 cat >>confdefs.h <<\EOF
4055#define LOCKED_PASSWD_STRING "*LK*"
4056EOF
4057
4058 ;;
4059*-*-linux*)
4060 no_dev_ptmx=1
4061 check_for_libcrypt_later=1
4062 check_for_openpty_ctty_bug=1
4063 cat >>confdefs.h <<\EOF
4064#define DONT_TRY_OTHER_AF 1
4065EOF
4066
4067 cat >>confdefs.h <<\EOF
4068#define PAM_TTY_KLUDGE 1
4069EOF
4070
4071 cat >>confdefs.h <<\EOF
4072#define LOCKED_PASSWD_PREFIX "!!"
4073EOF
4074
4075 cat >>confdefs.h <<\EOF
4076#define SPT_TYPE SPT_REUSEARGV
4077EOF
4078
4079 inet6_default_4in6=yes
4080 case `uname -r` in
4081 1.*|2.0.*)
4082 cat >>confdefs.h <<\EOF
4083#define BROKEN_CMSG_TYPE 1
4084EOF
4085
4086 ;;
4087 esac
4088 ;;
4089mips-sony-bsd|mips-sony-newsos4)
4090 cat >>confdefs.h <<\EOF
4091#define HAVE_NEWS4 1
4092EOF
4093
4094 SONY=1
4095 ;;
4096*-*-netbsd*)
4097 check_for_libcrypt_before=1
4098 if test "x$withval" != "xno" ; then
4099 need_dash_r=1
4100 fi
4101 ;;
4102*-*-freebsd*)
4103 check_for_libcrypt_later=1
4104 ;;
4105*-*-bsdi*)
4106 cat >>confdefs.h <<\EOF
4107#define SETEUID_BREAKS_SETUID 1
4108EOF
4109
4110 cat >>confdefs.h <<\EOF
4111#define BROKEN_SETREUID 1
4112EOF
4113
4114 cat >>confdefs.h <<\EOF
4115#define BROKEN_SETREGID 1
4116EOF
4117
4118 ;;
4119*-next-*)
4120 conf_lastlog_location="/usr/adm/lastlog"
4121 conf_utmp_location=/etc/utmp
4122 conf_wtmp_location=/usr/adm/wtmp
4123 MAIL=/usr/spool/mail
4124 cat >>confdefs.h <<\EOF
4125#define HAVE_NEXT 1
4126EOF
4127
4128 cat >>confdefs.h <<\EOF
4129#define BROKEN_REALPATH 1
4130EOF
4131
4132 cat >>confdefs.h <<\EOF
4133#define USE_PIPES 1
4134EOF
4135
4136 cat >>confdefs.h <<\EOF
4137#define BROKEN_SAVED_UIDS 1
4138EOF
4139
4140 ;;
4141*-*-solaris*)
4142 cat >>confdefs.h <<\EOF
4143#define PAM_SUN_CODEBASE 1
4144EOF
4145
4146 cat >>confdefs.h <<\EOF
4147#define LOGIN_NEEDS_UTMPX 1
4148EOF
4149
4150 cat >>confdefs.h <<\EOF
4151#define LOGIN_NEEDS_TERM 1
4152EOF
4153
4154 cat >>confdefs.h <<\EOF
4155#define PAM_TTY_KLUDGE 1
4156EOF
4157
4158 cat >>confdefs.h <<\EOF
4159#define LOCKED_PASSWD_STRING "*LK*"
4160EOF
4161
4162 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
4163 cat >>confdefs.h <<\EOF
4164#define SSHD_ACQUIRES_CTTY 1
4165EOF
4166
4167 external_path_file=/etc/default/login
4168 # hardwire lastlog location (can't detect it on some versions)
4169 conf_lastlog_location="/var/adm/lastlog"
4170 echo "$as_me:4170: checking for obsolete utmp and wtmp in solaris2.x" >&5
4171echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4172 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4173 if test "$sol2ver" -ge 8; then
4174 echo "$as_me:4174: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176 cat >>confdefs.h <<\EOF
4177#define DISABLE_UTMP 1
4178EOF
4179
4180 cat >>confdefs.h <<\EOF
4181#define DISABLE_WTMP 1
4182EOF
4183
4184 else
4185 echo "$as_me:4185: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187 fi
4188 ;;
4189*-*-sunos4*)
4190 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4191
4192for ac_func in getpwanam
4193do
4194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195echo "$as_me:4195: checking for $ac_func" >&5
4196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 cat >conftest.$ac_ext <<_ACEOF
4201#line 4201 "configure"
4202#include "confdefs.h"
4203/* System header to define __stub macros and hopefully few prototypes,
4204 which can conflict with char $ac_func (); below. */
4205#include <assert.h>
4206/* Override any gcc2 internal prototype to avoid an error. */
4207#ifdef __cplusplus
4208extern "C"
4209#endif
4210/* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212char $ac_func ();
4213char (*f) ();
4214
4215int
4216main ()
4217{
4218/* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222choke me
4223#else
4224f = $ac_func;
4225#endif
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext conftest$ac_exeext
4232if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4234 ac_status=$?
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 eval "$as_ac_var=yes"
4244else
4245 echo "$as_me: failed program was:" >&5
4246cat conftest.$ac_ext >&5
4247eval "$as_ac_var=no"
4248fi
4249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4250fi
4251echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5
4252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4253if test `eval echo '${'$as_ac_var'}'` = yes; then
4254 cat >>confdefs.h <<EOF
4255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4256EOF
4257
4258fi
4259done
4260
4261 cat >>confdefs.h <<\EOF
4262#define PAM_SUN_CODEBASE 1
4263EOF
4264
4265 conf_utmp_location=/etc/utmp
4266 conf_wtmp_location=/var/adm/wtmp
4267 conf_lastlog_location=/var/adm/lastlog
4268 cat >>confdefs.h <<\EOF
4269#define USE_PIPES 1
4270EOF
4271
4272 ;;
4273*-ncr-sysv*)
4274 LIBS="$LIBS -lc89"
4275 cat >>confdefs.h <<\EOF
4276#define USE_PIPES 1
4277EOF
4278
4279 cat >>confdefs.h <<\EOF
4280#define SSHD_ACQUIRES_CTTY 1
4281EOF
4282
4283 cat >>confdefs.h <<\EOF
4284#define SETEUID_BREAKS_SETUID 1
4285EOF
4286
4287 cat >>confdefs.h <<\EOF
4288#define BROKEN_SETREUID 1
4289EOF
4290
4291 cat >>confdefs.h <<\EOF
4292#define BROKEN_SETREGID 1
4293EOF
4294
4295 ;;
4296*-sni-sysv*)
4297 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4298
4299echo "$as_me:4299: checking for dlsym in -ldl" >&5
4300echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4301if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304 ac_check_lib_save_LIBS=$LIBS
4305LIBS="-ldl $LIBS"
4306cat >conftest.$ac_ext <<_ACEOF
4307#line 4307 "configure"
4308#include "confdefs.h"
4309
4310/* Override any gcc2 internal prototype to avoid an error. */
4311#ifdef __cplusplus
4312extern "C"
4313#endif
4314/* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316char dlsym ();
4317int
4318main ()
4319{
4320dlsym ();
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325rm -f conftest.$ac_objext conftest$ac_exeext
4326if { (eval echo "$as_me:4326: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>&5
4328 ac_status=$?
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest$ac_exeext'
4332 { (eval echo "$as_me:4332: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:4335: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_lib_dl_dlsym=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340cat conftest.$ac_ext >&5
4341ac_cv_lib_dl_dlsym=no
4342fi
4343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4344LIBS=$ac_check_lib_save_LIBS
4345fi
4346echo "$as_me:4346: result: $ac_cv_lib_dl_dlsym" >&5
4347echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
4348if test $ac_cv_lib_dl_dlsym = yes; then
4349 cat >>confdefs.h <<EOF
4350#define HAVE_LIBDL 1
4351EOF
4352
4353 LIBS="-ldl $LIBS"
4354
4355fi
4356
4357 IPADDR_IN_DISPLAY=yes
4358 cat >>confdefs.h <<\EOF
4359#define USE_PIPES 1
4360EOF
4361
4362 cat >>confdefs.h <<\EOF
4363#define IP_TOS_IS_BROKEN 1
4364EOF
4365
4366 cat >>confdefs.h <<\EOF
4367#define SETEUID_BREAKS_SETUID 1
4368EOF
4369
4370 cat >>confdefs.h <<\EOF
4371#define BROKEN_SETREUID 1
4372EOF
4373
4374 cat >>confdefs.h <<\EOF
4375#define BROKEN_SETREGID 1
4376EOF
4377
4378 cat >>confdefs.h <<\EOF
4379#define SSHD_ACQUIRES_CTTY 1
4380EOF
4381
4382 external_path_file=/etc/default/login
4383 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4384 # Attention: always take care to bind libsocket and libnsl before libc,
4385 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4386 ;;
4387*-*-sysv4.2*)
4388 cat >>confdefs.h <<\EOF
4389#define USE_PIPES 1
4390EOF
4391
4392 cat >>confdefs.h <<\EOF
4393#define SETEUID_BREAKS_SETUID 1
4394EOF
4395
4396 cat >>confdefs.h <<\EOF
4397#define BROKEN_SETREUID 1
4398EOF
4399
4400 cat >>confdefs.h <<\EOF
4401#define BROKEN_SETREGID 1
4402EOF
4403
4404 ;;
4405*-*-sysv5*)
4406 cat >>confdefs.h <<\EOF
4407#define USE_PIPES 1
4408EOF
4409
4410 cat >>confdefs.h <<\EOF
4411#define SETEUID_BREAKS_SETUID 1
4412EOF
4413
4414 cat >>confdefs.h <<\EOF
4415#define BROKEN_SETREUID 1
4416EOF
4417
4418 cat >>confdefs.h <<\EOF
4419#define BROKEN_SETREGID 1
4420EOF
4421
4422 ;;
4423*-*-sysv*)
4424 ;;
4425*-*-sco3.2v4*)
4426 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize"
4427 LIBS="$LIBS -los -lprot -lcrypt_i -lx -ltinfo -lm"
4428 RANLIB=true
4429 no_dev_ptmx=1
4430 cat >>confdefs.h <<\EOF
4431#define BROKEN_SYS_TERMIO_H 1
4432EOF
4433
4434 cat >>confdefs.h <<\EOF
4435#define USE_PIPES 1
4436EOF
4437
4438 cat >>confdefs.h <<\EOF
4439#define HAVE_SECUREWARE 1
4440EOF
4441
4442 cat >>confdefs.h <<\EOF
4443#define DISABLE_SHADOW 1
4444EOF
4445
4446 cat >>confdefs.h <<\EOF
4447#define BROKEN_SAVED_UIDS 1
4448EOF
4449
4450 cat >>confdefs.h <<\EOF
4451#define WITH_ABBREV_NO_TTY 1
4452EOF
4453
4454for ac_func in getluid setluid
4455do
4456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4457echo "$as_me:4457: checking for $ac_func" >&5
4458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4459if eval "test \"\${$as_ac_var+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463#line 4463 "configure"
4464#include "confdefs.h"
4465/* System header to define __stub macros and hopefully few prototypes,
4466 which can conflict with char $ac_func (); below. */
4467#include <assert.h>
4468/* Override any gcc2 internal prototype to avoid an error. */
4469#ifdef __cplusplus
4470extern "C"
4471#endif
4472/* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4474char $ac_func ();
4475char (*f) ();
4476
4477int
4478main ()
4479{
4480/* The GNU C library defines this for functions which it implements
4481 to always fail with ENOSYS. Some functions are actually named
4482 something starting with __ and the normal name is an alias. */
4483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4484choke me
4485#else
4486f = $ac_func;
4487#endif
4488
4489 ;
4490 return 0;
4491}
4492_ACEOF
4493rm -f conftest.$ac_objext conftest$ac_exeext
4494if { (eval echo "$as_me:4494: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4496 ac_status=$?
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest$ac_exeext'
4500 { (eval echo "$as_me:4500: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 eval "$as_ac_var=yes"
4506else
4507 echo "$as_me: failed program was:" >&5
4508cat conftest.$ac_ext >&5
4509eval "$as_ac_var=no"
4510fi
4511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512fi
4513echo "$as_me:4513: result: `eval echo '${'$as_ac_var'}'`" >&5
4514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4515if test `eval echo '${'$as_ac_var'}'` = yes; then
4516 cat >>confdefs.h <<EOF
4517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4518EOF
4519
4520fi
4521done
4522
4523 MANTYPE=man
4524 do_sco3_extra_lib_check=yes
4525 ;;
4526*-*-sco3.2v5*)
4527 if test -z "$GCC"; then
4528 CFLAGS="$CFLAGS -belf"
4529 fi
4530 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4531 no_dev_ptmx=1
4532 cat >>confdefs.h <<\EOF
4533#define USE_PIPES 1
4534EOF
4535
4536 cat >>confdefs.h <<\EOF
4537#define HAVE_SECUREWARE 1
4538EOF
4539
4540 cat >>confdefs.h <<\EOF
4541#define DISABLE_SHADOW 1
4542EOF
4543
4544 cat >>confdefs.h <<\EOF
4545#define DISABLE_FD_PASSING 1
4546EOF
4547
4548 cat >>confdefs.h <<\EOF
4549#define SETEUID_BREAKS_SETUID 1
4550EOF
4551
4552 cat >>confdefs.h <<\EOF
4553#define BROKEN_SETREUID 1
4554EOF
4555
4556 cat >>confdefs.h <<\EOF
4557#define BROKEN_SETREGID 1
4558EOF
4559
4560 cat >>confdefs.h <<\EOF
4561#define WITH_ABBREV_NO_TTY 1
4562EOF
4563
4564for ac_func in getluid setluid
4565do
4566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4567echo "$as_me:4567: checking for $ac_func" >&5
4568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4569if eval "test \"\${$as_ac_var+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 cat >conftest.$ac_ext <<_ACEOF
4573#line 4573 "configure"
4574#include "confdefs.h"
4575/* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below. */
4577#include <assert.h>
4578/* Override any gcc2 internal prototype to avoid an error. */
4579#ifdef __cplusplus
4580extern "C"
4581#endif
4582/* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4584char $ac_func ();
4585char (*f) ();
4586
4587int
4588main ()
4589{
4590/* The GNU C library defines this for functions which it implements
4591 to always fail with ENOSYS. Some functions are actually named
4592 something starting with __ and the normal name is an alias. */
4593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4594choke me
4595#else
4596f = $ac_func;
4597#endif
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603rm -f conftest.$ac_objext conftest$ac_exeext
4604if { (eval echo "$as_me:4604: \"$ac_link\"") >&5
4605 (eval $ac_link) 2>&5
4606 ac_status=$?
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest$ac_exeext'
4610 { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:4613: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_var=yes"
4616else
4617 echo "$as_me: failed program was:" >&5
4618cat conftest.$ac_ext >&5
4619eval "$as_ac_var=no"
4620fi
4621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4622fi
4623echo "$as_me:4623: result: `eval echo '${'$as_ac_var'}'`" >&5
4624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4625if test `eval echo '${'$as_ac_var'}'` = yes; then
4626 cat >>confdefs.h <<EOF
4627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4628EOF
4629
4630fi
4631done
4632
4633 MANTYPE=man
4634 ;;
4635*-*-unicosmk*)
4636 cat >>confdefs.h <<\EOF
4637#define NO_SSH_LASTLOG 1
4638EOF
4639
4640 cat >>confdefs.h <<\EOF
4641#define SETEUID_BREAKS_SETUID 1
4642EOF
4643
4644 cat >>confdefs.h <<\EOF
4645#define BROKEN_SETREUID 1
4646EOF
4647
4648 cat >>confdefs.h <<\EOF
4649#define BROKEN_SETREGID 1
4650EOF
4651
4652 cat >>confdefs.h <<\EOF
4653#define USE_PIPES 1
4654EOF
4655
4656 cat >>confdefs.h <<\EOF
4657#define DISABLE_FD_PASSING 1
4658EOF
4659
4660 LDFLAGS="$LDFLAGS"
4661 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4662 MANTYPE=cat
4663 ;;
4664*-*-unicosmp*)
4665 cat >>confdefs.h <<\EOF
4666#define SETEUID_BREAKS_SETUID 1
4667EOF
4668
4669 cat >>confdefs.h <<\EOF
4670#define BROKEN_SETREUID 1
4671EOF
4672
4673 cat >>confdefs.h <<\EOF
4674#define BROKEN_SETREGID 1
4675EOF
4676
4677 cat >>confdefs.h <<\EOF
4678#define WITH_ABBREV_NO_TTY 1
4679EOF
4680
4681 cat >>confdefs.h <<\EOF
4682#define USE_PIPES 1
4683EOF
4684
4685 cat >>confdefs.h <<\EOF
4686#define DISABLE_FD_PASSING 1
4687EOF
4688
4689 LDFLAGS="$LDFLAGS"
4690 LIBS="$LIBS -lgen -lacid -ldb"
4691 MANTYPE=cat
4692 ;;
4693*-*-unicos*)
4694 cat >>confdefs.h <<\EOF
4695#define SETEUID_BREAKS_SETUID 1
4696EOF
4697
4698 cat >>confdefs.h <<\EOF
4699#define BROKEN_SETREUID 1
4700EOF
4701
4702 cat >>confdefs.h <<\EOF
4703#define BROKEN_SETREGID 1
4704EOF
4705
4706 cat >>confdefs.h <<\EOF
4707#define USE_PIPES 1
4708EOF
4709
4710 cat >>confdefs.h <<\EOF
4711#define DISABLE_FD_PASSING 1
4712EOF
4713
4714 cat >>confdefs.h <<\EOF
4715#define NO_SSH_LASTLOG 1
4716EOF
4717
4718 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4719 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4720 MANTYPE=cat
4721 ;;
4722*-dec-osf*)
4723 echo "$as_me:4723: checking for Digital Unix SIA" >&5
4724echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4725 no_osfsia=""
4726
4727# Check whether --with-osfsia or --without-osfsia was given.
4728if test "${with_osfsia+set}" = set; then
4729 withval="$with_osfsia"
4730
4731 if test "x$withval" = "xno" ; then
4732 echo "$as_me:4732: result: disabled" >&5
4733echo "${ECHO_T}disabled" >&6
4734 no_osfsia=1
4735 fi
4736
4737fi;
4738 if test -z "$no_osfsia" ; then
4739 if test -f /etc/sia/matrix.conf; then
4740 echo "$as_me:4740: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 cat >>confdefs.h <<\EOF
4743#define HAVE_OSF_SIA 1
4744EOF
4745
4746 cat >>confdefs.h <<\EOF
4747#define DISABLE_LOGIN 1
4748EOF
4749
4750 cat >>confdefs.h <<\EOF
4751#define DISABLE_FD_PASSING 1
4752EOF
4753
4754 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4755 else
4756 echo "$as_me:4756: result: no" >&5
4757echo "${ECHO_T}no" >&6
4758 cat >>confdefs.h <<\EOF
4759#define LOCKED_PASSWD_SUBSTR "Nologin"
4760EOF
4761
4762 fi
4763 fi
4764 cat >>confdefs.h <<\EOF
4765#define BROKEN_GETADDRINFO 1
4766EOF
4767
4768 cat >>confdefs.h <<\EOF
4769#define SETEUID_BREAKS_SETUID 1
4770EOF
4771
4772 cat >>confdefs.h <<\EOF
4773#define BROKEN_SETREUID 1
4774EOF
4775
4776 cat >>confdefs.h <<\EOF
4777#define BROKEN_SETREGID 1
4778EOF
4779
4780 ;;
4781
4782*-*-nto-qnx)
4783 cat >>confdefs.h <<\EOF
4784#define USE_PIPES 1
4785EOF
4786
4787 cat >>confdefs.h <<\EOF
4788#define NO_X11_UNIX_SOCKETS 1
4789EOF
4790
4791 cat >>confdefs.h <<\EOF
4792#define MISSING_NFDBITS 1
4793EOF
4794
4795 cat >>confdefs.h <<\EOF
4796#define MISSING_HOWMANY 1
4797EOF
4798
4799 cat >>confdefs.h <<\EOF
4800#define MISSING_FD_MASK 1
4801EOF
4802
4803 ;;
4804esac
4805
4806# Allow user to specify flags
4807
4808# Check whether --with-cflags or --without-cflags was given.
4809if test "${with_cflags+set}" = set; then
4810 withval="$with_cflags"
4811
4812 if test "x$withval" != "xno" ; then
4813 CFLAGS="$CFLAGS $withval"
4814 fi
4815
4816fi;
4817
4818# Check whether --with-cppflags or --without-cppflags was given.
4819if test "${with_cppflags+set}" = set; then
4820 withval="$with_cppflags"
4821
4822 if test "x$withval" != "xno"; then
4823 CPPFLAGS="$CPPFLAGS $withval"
4824 fi
4825
4826fi;
4827
4828# Check whether --with-ldflags or --without-ldflags was given.
4829if test "${with_ldflags+set}" = set; then
4830 withval="$with_ldflags"
4831
4832 if test "x$withval" != "xno" ; then
4833 LDFLAGS="$LDFLAGS $withval"
4834 fi
4835
4836fi;
4837
4838# Check whether --with-libs or --without-libs was given.
4839if test "${with_libs+set}" = set; then
4840 withval="$with_libs"
4841
4842 if test "x$withval" != "xno" ; then
4843 LIBS="$LIBS $withval"
4844 fi
4845
4846fi;
4847
4848echo "$as_me:4848: checking compiler and flags for sanity" >&5
4849echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6
4850if test "$cross_compiling" = yes; then
4851 { { echo "$as_me:4851: error: cannot run test program while cross compiling" >&5
4852echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4853 { (exit 1); exit 1; }; }
4854else
4855 cat >conftest.$ac_ext <<_ACEOF
4856#line 4856 "configure"
4857#include "confdefs.h"
4858
4859#include <stdio.h>
4860int main(){exit(0);}
4861
4862_ACEOF
4863rm -f conftest$ac_exeext
4864if { (eval echo "$as_me:4864: \"$ac_link\"") >&5
4865 (eval $ac_link) 2>&5
4866 ac_status=$?
4867 echo "$as_me:4867: \$? = $ac_status" >&5
4868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4869 { (eval echo "$as_me:4869: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:4872: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 echo "$as_me:4874: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876else
4877 echo "$as_me: program exited with status $ac_status" >&5
4878echo "$as_me: failed program was:" >&5
4879cat conftest.$ac_ext >&5
4880
4881 echo "$as_me:4881: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883 { { echo "$as_me:4883: error: *** compiler cannot create working executables, check config.log ***" >&5
4884echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
4885 { (exit 1); exit 1; }; }
4886
4887fi
4888rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4889fi
4890
4891# Checks for header files.
4892
4893for ac_header in bstring.h crypt.h endian.h features.h floatingpoint.h \
4894 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4895 login_cap.h maillock.h netdb.h netgroup.h \
4896 netinet/in_systm.h pam/pam_appl.h paths.h pty.h readpassphrase.h \
4897 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4898 strings.h sys/strtio.h sys/audit.h sys/bitypes.h sys/bsdtty.h \
4899 sys/cdefs.h sys/mman.h sys/pstat.h sys/ptms.h sys/select.h sys/stat.h \
4900 sys/stream.h sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
4901 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4902 util.h utime.h utmp.h utmpx.h vis.h
4903do
4904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905echo "$as_me:4905: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 cat >conftest.$ac_ext <<_ACEOF
4911#line 4911 "configure"
4912#include "confdefs.h"
4913#include <$ac_header>
4914_ACEOF
4915if { (eval echo "$as_me:4915: \"$ac_cpp conftest.$ac_ext\"") >&5
4916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4917 ac_status=$?
4918 egrep -v '^ *\+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:4921: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null; then
4923 if test -s conftest.err; then
4924 ac_cpp_err=$ac_c_preproc_warn_flag
4925 else
4926 ac_cpp_err=
4927 fi
4928else
4929 ac_cpp_err=yes
4930fi
4931if test -z "$ac_cpp_err"; then
4932 eval "$as_ac_Header=yes"
4933else
4934 echo "$as_me: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4936 eval "$as_ac_Header=no"
4937fi
4938rm -f conftest.err conftest.$ac_ext
4939fi
4940echo "$as_me:4940: result: `eval echo '${'$as_ac_Header'}'`" >&5
4941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4942if test `eval echo '${'$as_ac_Header'}'` = yes; then
4943 cat >>confdefs.h <<EOF
4944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4945EOF
4946
4947fi
4948done
4949
4950# Checks for libraries.
4951echo "$as_me:4951: checking for yp_match" >&5
4952echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4953if test "${ac_cv_func_yp_match+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 cat >conftest.$ac_ext <<_ACEOF
4957#line 4957 "configure"
4958#include "confdefs.h"
4959/* System header to define __stub macros and hopefully few prototypes,
4960 which can conflict with char yp_match (); below. */
4961#include <assert.h>
4962/* Override any gcc2 internal prototype to avoid an error. */
4963#ifdef __cplusplus
4964extern "C"
4965#endif
4966/* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968char yp_match ();
4969char (*f) ();
4970
4971int
4972main ()
4973{
4974/* The GNU C library defines this for functions which it implements
4975 to always fail with ENOSYS. Some functions are actually named
4976 something starting with __ and the normal name is an alias. */
4977#if defined (__stub_yp_match) || defined (__stub___yp_match)
4978choke me
4979#else
4980f = yp_match;
4981#endif
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext conftest$ac_exeext
4988if { (eval echo "$as_me:4988: \"$ac_link\"") >&5
4989 (eval $ac_link) 2>&5
4990 ac_status=$?
4991 echo "$as_me:4991: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -s conftest$ac_exeext'
4994 { (eval echo "$as_me:4994: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:4997: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_func_yp_match=yes
5000else
5001 echo "$as_me: failed program was:" >&5
5002cat conftest.$ac_ext >&5
5003ac_cv_func_yp_match=no
5004fi
5005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5006fi
5007echo "$as_me:5007: result: $ac_cv_func_yp_match" >&5
5008echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5009if test $ac_cv_func_yp_match = yes; then
5010 :
5011else
5012
5013echo "$as_me:5013: checking for yp_match in -lnsl" >&5
5014echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5015if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018 ac_check_lib_save_LIBS=$LIBS
5019LIBS="-lnsl $LIBS"
5020cat >conftest.$ac_ext <<_ACEOF
5021#line 5021 "configure"
5022#include "confdefs.h"
5023
5024/* Override any gcc2 internal prototype to avoid an error. */
5025#ifdef __cplusplus
5026extern "C"
5027#endif
5028/* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030char yp_match ();
5031int
5032main ()
5033{
5034yp_match ();
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (eval echo "$as_me:5040: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>&5
5042 ac_status=$?
5043 echo "$as_me:5043: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -s conftest$ac_exeext'
5046 { (eval echo "$as_me:5046: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:5049: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_cv_lib_nsl_yp_match=yes
5052else
5053 echo "$as_me: failed program was:" >&5
5054cat conftest.$ac_ext >&5
5055ac_cv_lib_nsl_yp_match=no
5056fi
5057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058LIBS=$ac_check_lib_save_LIBS
5059fi
5060echo "$as_me:5060: result: $ac_cv_lib_nsl_yp_match" >&5
5061echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5062if test $ac_cv_lib_nsl_yp_match = yes; then
5063 cat >>confdefs.h <<EOF
5064#define HAVE_LIBNSL 1
5065EOF
5066
5067 LIBS="-lnsl $LIBS"
5068
5069fi
5070
5071fi
5072
5073echo "$as_me:5073: checking for setsockopt" >&5
5074echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5075if test "${ac_cv_func_setsockopt+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 cat >conftest.$ac_ext <<_ACEOF
5079#line 5079 "configure"
5080#include "confdefs.h"
5081/* System header to define __stub macros and hopefully few prototypes,
5082 which can conflict with char setsockopt (); below. */
5083#include <assert.h>
5084/* Override any gcc2 internal prototype to avoid an error. */
5085#ifdef __cplusplus
5086extern "C"
5087#endif
5088/* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5090char setsockopt ();
5091char (*f) ();
5092
5093int
5094main ()
5095{
5096/* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5100choke me
5101#else
5102f = setsockopt;
5103#endif
5104
5105 ;
5106 return 0;
5107}
5108_ACEOF
5109rm -f conftest.$ac_objext conftest$ac_exeext
5110if { (eval echo "$as_me:5110: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5112 ac_status=$?
5113 echo "$as_me:5113: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:5116: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:5119: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_cv_func_setsockopt=yes
5122else
5123 echo "$as_me: failed program was:" >&5
5124cat conftest.$ac_ext >&5
5125ac_cv_func_setsockopt=no
5126fi
5127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5128fi
5129echo "$as_me:5129: result: $ac_cv_func_setsockopt" >&5
5130echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5131if test $ac_cv_func_setsockopt = yes; then
5132 :
5133else
5134
5135echo "$as_me:5135: checking for setsockopt in -lsocket" >&5
5136echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5137if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140 ac_check_lib_save_LIBS=$LIBS
5141LIBS="-lsocket $LIBS"
5142cat >conftest.$ac_ext <<_ACEOF
5143#line 5143 "configure"
5144#include "confdefs.h"
5145
5146/* Override any gcc2 internal prototype to avoid an error. */
5147#ifdef __cplusplus
5148extern "C"
5149#endif
5150/* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152char setsockopt ();
5153int
5154main ()
5155{
5156setsockopt ();
5157 ;
5158 return 0;
5159}
5160_ACEOF
5161rm -f conftest.$ac_objext conftest$ac_exeext
5162if { (eval echo "$as_me:5162: \"$ac_link\"") >&5
5163 (eval $ac_link) 2>&5
5164 ac_status=$?
5165 echo "$as_me:5165: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:5168: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:5171: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_lib_socket_setsockopt=yes
5174else
5175 echo "$as_me: failed program was:" >&5
5176cat conftest.$ac_ext >&5
5177ac_cv_lib_socket_setsockopt=no
5178fi
5179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180LIBS=$ac_check_lib_save_LIBS
5181fi
5182echo "$as_me:5182: result: $ac_cv_lib_socket_setsockopt" >&5
5183echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5184if test $ac_cv_lib_socket_setsockopt = yes; then
5185 cat >>confdefs.h <<EOF
5186#define HAVE_LIBSOCKET 1
5187EOF
5188
5189 LIBS="-lsocket $LIBS"
5190
5191fi
5192
5193fi
5194
5195if test "x$with_tcp_wrappers" != "xno" ; then
5196 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5197 echo "$as_me:5197: checking for innetgr in -lrpc" >&5
5198echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5199if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201else
5202 ac_check_lib_save_LIBS=$LIBS
5203LIBS="-lrpc -lyp -lrpc $LIBS"
5204cat >conftest.$ac_ext <<_ACEOF
5205#line 5205 "configure"
5206#include "confdefs.h"
5207
5208/* Override any gcc2 internal prototype to avoid an error. */
5209#ifdef __cplusplus
5210extern "C"
5211#endif
5212/* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214char innetgr ();
5215int
5216main ()
5217{
5218innetgr ();
5219 ;
5220 return 0;
5221}
5222_ACEOF
5223rm -f conftest.$ac_objext conftest$ac_exeext
5224if { (eval echo "$as_me:5224: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>&5
5226 ac_status=$?
5227 echo "$as_me:5227: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -s conftest$ac_exeext'
5230 { (eval echo "$as_me:5230: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:5233: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_lib_rpc_innetgr=yes
5236else
5237 echo "$as_me: failed program was:" >&5
5238cat conftest.$ac_ext >&5
5239ac_cv_lib_rpc_innetgr=no
5240fi
5241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5242LIBS=$ac_check_lib_save_LIBS
5243fi
5244echo "$as_me:5244: result: $ac_cv_lib_rpc_innetgr" >&5
5245echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5246if test $ac_cv_lib_rpc_innetgr = yes; then
5247 LIBS="-lrpc -lyp -lrpc $LIBS"
5248fi
5249
5250 fi
5251fi
5252
5253for ac_func in dirname
5254do
5255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5256echo "$as_me:5256: checking for $ac_func" >&5
5257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5258if eval "test \"\${$as_ac_var+set}\" = set"; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 cat >conftest.$ac_ext <<_ACEOF
5262#line 5262 "configure"
5263#include "confdefs.h"
5264/* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func (); below. */
5266#include <assert.h>
5267/* Override any gcc2 internal prototype to avoid an error. */
5268#ifdef __cplusplus
5269extern "C"
5270#endif
5271/* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273char $ac_func ();
5274char (*f) ();
5275
5276int
5277main ()
5278{
5279/* The GNU C library defines this for functions which it implements
5280 to always fail with ENOSYS. Some functions are actually named
5281 something starting with __ and the normal name is an alias. */
5282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5283choke me
5284#else
5285f = $ac_func;
5286#endif
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292rm -f conftest.$ac_objext conftest$ac_exeext
5293if { (eval echo "$as_me:5293: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>&5
5295 ac_status=$?
5296 echo "$as_me:5296: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -s conftest$ac_exeext'
5299 { (eval echo "$as_me:5299: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:5302: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 eval "$as_ac_var=yes"
5305else
5306 echo "$as_me: failed program was:" >&5
5307cat conftest.$ac_ext >&5
5308eval "$as_ac_var=no"
5309fi
5310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5311fi
5312echo "$as_me:5312: result: `eval echo '${'$as_ac_var'}'`" >&5
5313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5314if test `eval echo '${'$as_ac_var'}'` = yes; then
5315 cat >>confdefs.h <<EOF
5316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5317EOF
5318
5319for ac_header in libgen.h
5320do
5321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322echo "$as_me:5322: checking for $ac_header" >&5
5323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 cat >conftest.$ac_ext <<_ACEOF
5328#line 5328 "configure"
5329#include "confdefs.h"
5330#include <$ac_header>
5331_ACEOF
5332if { (eval echo "$as_me:5332: \"$ac_cpp conftest.$ac_ext\"") >&5
5333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5334 ac_status=$?
5335 egrep -v '^ *\+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:5338: \$? = $ac_status" >&5
5339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_c_preproc_warn_flag
5342 else
5343 ac_cpp_err=
5344 fi
5345else
5346 ac_cpp_err=yes
5347fi
5348if test -z "$ac_cpp_err"; then
5349 eval "$as_ac_Header=yes"
5350else
5351 echo "$as_me: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5354fi
5355rm -f conftest.err conftest.$ac_ext
5356fi
5357echo "$as_me:5357: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<EOF
5361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362EOF
5363
5364fi
5365done
5366
5367else
5368
5369 echo "$as_me:5369: checking for dirname in -lgen" >&5
5370echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
5371if test "${ac_cv_lib_gen_dirname+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 ac_check_lib_save_LIBS=$LIBS
5375LIBS="-lgen $LIBS"
5376cat >conftest.$ac_ext <<_ACEOF
5377#line 5377 "configure"
5378#include "confdefs.h"
5379
5380/* Override any gcc2 internal prototype to avoid an error. */
5381#ifdef __cplusplus
5382extern "C"
5383#endif
5384/* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5386char dirname ();
5387int
5388main ()
5389{
5390dirname ();
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:5396: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5398 ac_status=$?
5399 echo "$as_me:5399: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
5402 { (eval echo "$as_me:5402: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:5405: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_lib_gen_dirname=yes
5408else
5409 echo "$as_me: failed program was:" >&5
5410cat conftest.$ac_ext >&5
5411ac_cv_lib_gen_dirname=no
5412fi
5413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414LIBS=$ac_check_lib_save_LIBS
5415fi
5416echo "$as_me:5416: result: $ac_cv_lib_gen_dirname" >&5
5417echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
5418if test $ac_cv_lib_gen_dirname = yes; then
5419
5420 echo "$as_me:5420: checking for broken dirname" >&5
5421echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
5422if test "${ac_cv_have_broken_dirname+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425
5426 save_LIBS="$LIBS"
5427 LIBS="$LIBS -lgen"
5428 if test "$cross_compiling" = yes; then
5429 { { echo "$as_me:5429: error: cannot run test program while cross compiling" >&5
5430echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5431 { (exit 1); exit 1; }; }
5432else
5433 cat >conftest.$ac_ext <<_ACEOF
5434#line 5434 "configure"
5435#include "confdefs.h"
5436
5437#include <libgen.h>
5438#include <string.h>
5439
5440int main(int argc, char **argv) {
5441 char *s, buf[32];
5442
5443 strncpy(buf,"/etc", 32);
5444 s = dirname(buf);
5445 if (!s || strncmp(s, "/", 32) != 0) {
5446 exit(1);
5447 } else {
5448 exit(0);
5449 }
5450}
5451
5452_ACEOF
5453rm -f conftest$ac_exeext
5454if { (eval echo "$as_me:5454: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>&5
5456 ac_status=$?
5457 echo "$as_me:5457: \$? = $ac_status" >&5
5458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5459 { (eval echo "$as_me:5459: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
5462 echo "$as_me:5462: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_cv_have_broken_dirname="no"
5465else
5466 echo "$as_me: program exited with status $ac_status" >&5
5467echo "$as_me: failed program was:" >&5
5468cat conftest.$ac_ext >&5
5469 ac_cv_have_broken_dirname="yes"
5470
5471fi
5472rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5473fi
5474 LIBS="$save_LIBS"
5475
5476fi
5477echo "$as_me:5477: result: $ac_cv_have_broken_dirname" >&5
5478echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
5479 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
5480 LIBS="$LIBS -lgen"
5481 cat >>confdefs.h <<\EOF
5482#define HAVE_DIRNAME 1
5483EOF
5484
5485for ac_header in libgen.h
5486do
5487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5488echo "$as_me:5488: checking for $ac_header" >&5
5489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5490if eval "test \"\${$as_ac_Header+set}\" = set"; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493 cat >conftest.$ac_ext <<_ACEOF
5494#line 5494 "configure"
5495#include "confdefs.h"
5496#include <$ac_header>
5497_ACEOF
5498if { (eval echo "$as_me:5498: \"$ac_cpp conftest.$ac_ext\"") >&5
5499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5500 ac_status=$?
5501 egrep -v '^ *\+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } >/dev/null; then
5506 if test -s conftest.err; then
5507 ac_cpp_err=$ac_c_preproc_warn_flag
5508 else
5509 ac_cpp_err=
5510 fi
5511else
5512 ac_cpp_err=yes
5513fi
5514if test -z "$ac_cpp_err"; then
5515 eval "$as_ac_Header=yes"
5516else
5517 echo "$as_me: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 eval "$as_ac_Header=no"
5520fi
5521rm -f conftest.err conftest.$ac_ext
5522fi
5523echo "$as_me:5523: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525if test `eval echo '${'$as_ac_Header'}'` = yes; then
5526 cat >>confdefs.h <<EOF
5527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528EOF
5529
5530fi
5531done
5532
5533 fi
5534
5535fi
5536
5537fi
5538done
5539
5540echo "$as_me:5540: checking for getspnam" >&5
5541echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5542if test "${ac_cv_func_getspnam+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 cat >conftest.$ac_ext <<_ACEOF
5546#line 5546 "configure"
5547#include "confdefs.h"
5548/* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char getspnam (); below. */
5550#include <assert.h>
5551/* Override any gcc2 internal prototype to avoid an error. */
5552#ifdef __cplusplus
5553extern "C"
5554#endif
5555/* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557char getspnam ();
5558char (*f) ();
5559
5560int
5561main ()
5562{
5563/* The GNU C library defines this for functions which it implements
5564 to always fail with ENOSYS. Some functions are actually named
5565 something starting with __ and the normal name is an alias. */
5566#if defined (__stub_getspnam) || defined (__stub___getspnam)
5567choke me
5568#else
5569f = getspnam;
5570#endif
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576rm -f conftest.$ac_objext conftest$ac_exeext
5577if { (eval echo "$as_me:5577: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>&5
5579 ac_status=$?
5580 echo "$as_me:5580: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:5583: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:5586: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_func_getspnam=yes
5589else
5590 echo "$as_me: failed program was:" >&5
5591cat conftest.$ac_ext >&5
5592ac_cv_func_getspnam=no
5593fi
5594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5595fi
5596echo "$as_me:5596: result: $ac_cv_func_getspnam" >&5
5597echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5598if test $ac_cv_func_getspnam = yes; then
5599 :
5600else
5601 echo "$as_me:5601: checking for getspnam in -lgen" >&5
5602echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5603if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606 ac_check_lib_save_LIBS=$LIBS
5607LIBS="-lgen $LIBS"
5608cat >conftest.$ac_ext <<_ACEOF
5609#line 5609 "configure"
5610#include "confdefs.h"
5611
5612/* Override any gcc2 internal prototype to avoid an error. */
5613#ifdef __cplusplus
5614extern "C"
5615#endif
5616/* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5618char getspnam ();
5619int
5620main ()
5621{
5622getspnam ();
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext conftest$ac_exeext
5628if { (eval echo "$as_me:5628: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:5631: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -s conftest$ac_exeext'
5634 { (eval echo "$as_me:5634: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:5637: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_lib_gen_getspnam=yes
5640else
5641 echo "$as_me: failed program was:" >&5
5642cat conftest.$ac_ext >&5
5643ac_cv_lib_gen_getspnam=no
5644fi
5645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5646LIBS=$ac_check_lib_save_LIBS
5647fi
5648echo "$as_me:5648: result: $ac_cv_lib_gen_getspnam" >&5
5649echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5650if test $ac_cv_lib_gen_getspnam = yes; then
5651 LIBS="$LIBS -lgen"
5652fi
5653
5654fi
5655
5656echo "$as_me:5656: checking for library containing basename" >&5
5657echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6
5658if test "${ac_cv_search_basename+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 ac_func_search_save_LIBS=$LIBS
5662ac_cv_search_basename=no
5663cat >conftest.$ac_ext <<_ACEOF
5664#line 5664 "configure"
5665#include "confdefs.h"
5666
5667/* Override any gcc2 internal prototype to avoid an error. */
5668#ifdef __cplusplus
5669extern "C"
5670#endif
5671/* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5673char basename ();
5674int
5675main ()
5676{
5677basename ();
5678 ;
5679 return 0;
5680}
5681_ACEOF
5682rm -f conftest.$ac_objext conftest$ac_exeext
5683if { (eval echo "$as_me:5683: \"$ac_link\"") >&5
5684 (eval $ac_link) 2>&5
5685 ac_status=$?
5686 echo "$as_me:5686: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -s conftest$ac_exeext'
5689 { (eval echo "$as_me:5689: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:5692: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_search_basename="none required"
5695else
5696 echo "$as_me: failed program was:" >&5
5697cat conftest.$ac_ext >&5
5698fi
5699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700if test "$ac_cv_search_basename" = no; then
5701 for ac_lib in gen; do
5702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5703 cat >conftest.$ac_ext <<_ACEOF
5704#line 5704 "configure"
5705#include "confdefs.h"
5706
5707/* Override any gcc2 internal prototype to avoid an error. */
5708#ifdef __cplusplus
5709extern "C"
5710#endif
5711/* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5713char basename ();
5714int
5715main ()
5716{
5717basename ();
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
5723if { (eval echo "$as_me:5723: \"$ac_link\"") >&5
5724 (eval $ac_link) 2>&5
5725 ac_status=$?
5726 echo "$as_me:5726: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -s conftest$ac_exeext'
5729 { (eval echo "$as_me:5729: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:5732: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_search_basename="-l$ac_lib"
5735break
5736else
5737 echo "$as_me: failed program was:" >&5
5738cat conftest.$ac_ext >&5
5739fi
5740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 done
5742fi
5743LIBS=$ac_func_search_save_LIBS
5744fi
5745echo "$as_me:5745: result: $ac_cv_search_basename" >&5
5746echo "${ECHO_T}$ac_cv_search_basename" >&6
5747if test "$ac_cv_search_basename" != no; then
5748 test "$ac_cv_search_basename" = "none required" || LIBS="$ac_cv_search_basename $LIBS"
5749 cat >>confdefs.h <<\EOF
5750#define HAVE_BASENAME 1
5751EOF
5752
5753fi
5754
5755# Check whether --with-zlib or --without-zlib was given.
5756if test "${with_zlib+set}" = set; then
5757 withval="$with_zlib"
5758
5759 if test "x$withval" = "xno" ; then
5760 { { echo "$as_me:5760: error: *** zlib is required ***" >&5
5761echo "$as_me: error: *** zlib is required ***" >&2;}
5762 { (exit 1); exit 1; }; }
5763 fi
5764 if test -d "$withval/lib"; then
5765 if test -n "${need_dash_r}"; then
5766 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5767 else
5768 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5769 fi
5770 else
5771 if test -n "${need_dash_r}"; then
5772 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5773 else
5774 LDFLAGS="-L${withval} ${LDFLAGS}"
5775 fi
5776 fi
5777 if test -d "$withval/include"; then
5778 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5779 else
5780 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5781 fi
5782
5783fi;
5784
5785echo "$as_me:5785: checking for deflate in -lz" >&5
5786echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5787if test "${ac_cv_lib_z_deflate+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 ac_check_lib_save_LIBS=$LIBS
5791LIBS="-lz $LIBS"
5792cat >conftest.$ac_ext <<_ACEOF
5793#line 5793 "configure"
5794#include "confdefs.h"
5795
5796/* Override any gcc2 internal prototype to avoid an error. */
5797#ifdef __cplusplus
5798extern "C"
5799#endif
5800/* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5802char deflate ();
5803int
5804main ()
5805{
5806deflate ();
5807 ;
5808 return 0;
5809}
5810_ACEOF
5811rm -f conftest.$ac_objext conftest$ac_exeext
5812if { (eval echo "$as_me:5812: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5814 ac_status=$?
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:5818: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:5821: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_lib_z_deflate=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826cat conftest.$ac_ext >&5
5827ac_cv_lib_z_deflate=no
5828fi
5829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS
5831fi
5832echo "$as_me:5832: result: $ac_cv_lib_z_deflate" >&5
5833echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5834if test $ac_cv_lib_z_deflate = yes; then
5835 cat >>confdefs.h <<EOF
5836#define HAVE_LIBZ 1
5837EOF
5838
5839 LIBS="-lz $LIBS"
5840
5841else
5842
5843 saved_CPPFLAGS="$CPPFLAGS"
5844 saved_LDFLAGS="$LDFLAGS"
5845 save_LIBS="$LIBS"
5846 if test -n "${need_dash_r}"; then
5847 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
5848 else
5849 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
5850 fi
5851 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
5852 LIBS="$LIBS -lz"
5853 cat >conftest.$ac_ext <<_ACEOF
5854#line 5854 "configure"
5855#include "confdefs.h"
5856
5857/* Override any gcc2 internal prototype to avoid an error. */
5858#ifdef __cplusplus
5859extern "C"
5860#endif
5861/* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863char deflate ();
5864int
5865main ()
5866{
5867deflate ();
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872rm -f conftest.$ac_objext conftest$ac_exeext
5873if { (eval echo "$as_me:5873: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5875 ac_status=$?
5876 echo "$as_me:5876: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -s conftest$ac_exeext'
5879 { (eval echo "$as_me:5879: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:5882: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 cat >>confdefs.h <<\EOF
5885#define HAVE_LIBZ 1
5886EOF
5887
5888else
5889 echo "$as_me: failed program was:" >&5
5890cat conftest.$ac_ext >&5
5891
5892 { { echo "$as_me:5892: error: *** zlib missing - please install first or check config.log ***" >&5
5893echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5894 { (exit 1); exit 1; }; }
5895
5896fi
5897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5898
5899fi
5900
5901echo "$as_me:5901: checking for zlib.h" >&5
5902echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5903if test "${ac_cv_header_zlib_h+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 cat >conftest.$ac_ext <<_ACEOF
5907#line 5907 "configure"
5908#include "confdefs.h"
5909#include <zlib.h>
5910_ACEOF
5911if { (eval echo "$as_me:5911: \"$ac_cpp conftest.$ac_ext\"") >&5
5912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913 ac_status=$?
5914 egrep -v '^ *\+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:5917: \$? = $ac_status" >&5
5918 (exit $ac_status); } >/dev/null; then
5919 if test -s conftest.err; then
5920 ac_cpp_err=$ac_c_preproc_warn_flag
5921 else
5922 ac_cpp_err=
5923 fi
5924else
5925 ac_cpp_err=yes
5926fi
5927if test -z "$ac_cpp_err"; then
5928 ac_cv_header_zlib_h=yes
5929else
5930 echo "$as_me: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5932 ac_cv_header_zlib_h=no
5933fi
5934rm -f conftest.err conftest.$ac_ext
5935fi
5936echo "$as_me:5936: result: $ac_cv_header_zlib_h" >&5
5937echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5938if test $ac_cv_header_zlib_h = yes; then
5939 :
5940else
5941 { { echo "$as_me:5941: error: *** zlib.h missing - please install first or check config.log ***" >&5
5942echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
5943 { (exit 1); exit 1; }; }
5944fi
5945
5946# Check whether --with-zlib-version-check or --without-zlib-version-check was given.
5947if test "${with_zlib_version_check+set}" = set; then
5948 withval="$with_zlib_version_check"
5949 if test "x$withval" = "xno" ; then
5950 zlib_check_nonfatal=1
5951 fi
5952
5953fi;
5954
5955echo "$as_me:5955: checking for zlib 1.1.4 or greater" >&5
5956echo $ECHO_N "checking for zlib 1.1.4 or greater... $ECHO_C" >&6
5957if test "$cross_compiling" = yes; then
5958 { { echo "$as_me:5958: error: cannot run test program while cross compiling" >&5
5959echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5960 { (exit 1); exit 1; }; }
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963#line 5963 "configure"
5964#include "confdefs.h"
5965
5966#include <zlib.h>
5967int main()
5968{
5969 int a, b, c, v;
5970 if (sscanf(ZLIB_VERSION, "%d.%d.%d", &a, &b, &c) != 3)
5971 exit(1);
5972 v = a*1000000 + b*1000 + c;
5973 if (v >= 1001004)
5974 exit(0);
5975 exit(2);
5976}
5977
5978_ACEOF
5979rm -f conftest$ac_exeext
5980if { (eval echo "$as_me:5980: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>&5
5982 ac_status=$?
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985 { (eval echo "$as_me:5985: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:5988: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 echo "$as_me:5990: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
5992else
5993 echo "$as_me: program exited with status $ac_status" >&5
5994echo "$as_me: failed program was:" >&5
5995cat conftest.$ac_ext >&5
5996 echo "$as_me:5996: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998 if test -z "$zlib_check_nonfatal" ; then
5999 { { echo "$as_me:5999: error: *** zlib too old - check config.log ***
6000Your reported zlib version has known security problems. It's possible your
6001vendor has fixed these problems without changing the version number. If you
6002are sure this is the case, you can disable the check by running
6003\"./configure --without-zlib-version-check\".
6004If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&5
6005echo "$as_me: error: *** zlib too old - check config.log ***
6006Your reported zlib version has known security problems. It's possible your
6007vendor has fixed these problems without changing the version number. If you
6008are sure this is the case, you can disable the check by running
6009\"./configure --without-zlib-version-check\".
6010If you are in doubt, upgrade zlib to version 1.1.4 or greater." >&2;}
6011 { (exit 1); exit 1; }; }
6012 else
6013 { echo "$as_me:6013: WARNING: zlib version may have security problems" >&5
6014echo "$as_me: WARNING: zlib version may have security problems" >&2;}
6015 fi
6016
6017fi
6018rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6019fi
6020
6021echo "$as_me:6021: checking for strcasecmp" >&5
6022echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
6023if test "${ac_cv_func_strcasecmp+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025else
6026 cat >conftest.$ac_ext <<_ACEOF
6027#line 6027 "configure"
6028#include "confdefs.h"
6029/* System header to define __stub macros and hopefully few prototypes,
6030 which can conflict with char strcasecmp (); below. */
6031#include <assert.h>
6032/* Override any gcc2 internal prototype to avoid an error. */
6033#ifdef __cplusplus
6034extern "C"
6035#endif
6036/* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */
6038char strcasecmp ();
6039char (*f) ();
6040
6041int
6042main ()
6043{
6044/* The GNU C library defines this for functions which it implements
6045 to always fail with ENOSYS. Some functions are actually named
6046 something starting with __ and the normal name is an alias. */
6047#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6048choke me
6049#else
6050f = strcasecmp;
6051#endif
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext conftest$ac_exeext
6058if { (eval echo "$as_me:6058: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6060 ac_status=$?
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:6064: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:6067: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_func_strcasecmp=yes
6070else
6071 echo "$as_me: failed program was:" >&5
6072cat conftest.$ac_ext >&5
6073ac_cv_func_strcasecmp=no
6074fi
6075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6076fi
6077echo "$as_me:6077: result: $ac_cv_func_strcasecmp" >&5
6078echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
6079if test $ac_cv_func_strcasecmp = yes; then
6080 :
6081else
6082 echo "$as_me:6082: checking for strcasecmp in -lresolv" >&5
6083echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
6084if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 ac_check_lib_save_LIBS=$LIBS
6088LIBS="-lresolv $LIBS"
6089cat >conftest.$ac_ext <<_ACEOF
6090#line 6090 "configure"
6091#include "confdefs.h"
6092
6093/* Override any gcc2 internal prototype to avoid an error. */
6094#ifdef __cplusplus
6095extern "C"
6096#endif
6097/* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099char strcasecmp ();
6100int
6101main ()
6102{
6103strcasecmp ();
6104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:6109: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6111 ac_status=$?
6112 echo "$as_me:6112: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:6115: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_resolv_strcasecmp=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123cat conftest.$ac_ext >&5
6124ac_cv_lib_resolv_strcasecmp=no
6125fi
6126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127LIBS=$ac_check_lib_save_LIBS
6128fi
6129echo "$as_me:6129: result: $ac_cv_lib_resolv_strcasecmp" >&5
6130echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
6131if test $ac_cv_lib_resolv_strcasecmp = yes; then
6132 LIBS="$LIBS -lresolv"
6133fi
6134
6135fi
6136
6137echo "$as_me:6137: checking for utimes" >&5
6138echo $ECHO_N "checking for utimes... $ECHO_C" >&6
6139if test "${ac_cv_func_utimes+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
6143#line 6143 "configure"
6144#include "confdefs.h"
6145/* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char utimes (); below. */
6147#include <assert.h>
6148/* Override any gcc2 internal prototype to avoid an error. */
6149#ifdef __cplusplus
6150extern "C"
6151#endif
6152/* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154char utimes ();
6155char (*f) ();
6156
6157int
6158main ()
6159{
6160/* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163#if defined (__stub_utimes) || defined (__stub___utimes)
6164choke me
6165#else
6166f = utimes;
6167#endif
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:6174: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6176 ac_status=$?
6177 echo "$as_me:6177: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:6180: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:6183: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_func_utimes=yes
6186else
6187 echo "$as_me: failed program was:" >&5
6188cat conftest.$ac_ext >&5
6189ac_cv_func_utimes=no
6190fi
6191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192fi
6193echo "$as_me:6193: result: $ac_cv_func_utimes" >&5
6194echo "${ECHO_T}$ac_cv_func_utimes" >&6
6195if test $ac_cv_func_utimes = yes; then
6196 :
6197else
6198 echo "$as_me:6198: checking for utimes in -lc89" >&5
6199echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
6200if test "${ac_cv_lib_c89_utimes+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 ac_check_lib_save_LIBS=$LIBS
6204LIBS="-lc89 $LIBS"
6205cat >conftest.$ac_ext <<_ACEOF
6206#line 6206 "configure"
6207#include "confdefs.h"
6208
6209/* Override any gcc2 internal prototype to avoid an error. */
6210#ifdef __cplusplus
6211extern "C"
6212#endif
6213/* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6215char utimes ();
6216int
6217main ()
6218{
6219utimes ();
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext conftest$ac_exeext
6225if { (eval echo "$as_me:6225: \"$ac_link\"") >&5
6226 (eval $ac_link) 2>&5
6227 ac_status=$?
6228 echo "$as_me:6228: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -s conftest$ac_exeext'
6231 { (eval echo "$as_me:6231: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:6234: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_cv_lib_c89_utimes=yes
6237else
6238 echo "$as_me: failed program was:" >&5
6239cat conftest.$ac_ext >&5
6240ac_cv_lib_c89_utimes=no
6241fi
6242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243LIBS=$ac_check_lib_save_LIBS
6244fi
6245echo "$as_me:6245: result: $ac_cv_lib_c89_utimes" >&5
6246echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
6247if test $ac_cv_lib_c89_utimes = yes; then
6248 cat >>confdefs.h <<\EOF
6249#define HAVE_UTIMES 1
6250EOF
6251
6252 LIBS="$LIBS -lc89"
6253fi
6254
6255fi
6256
6257for ac_header in libutil.h
6258do
6259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260echo "$as_me:6260: checking for $ac_header" >&5
6261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6262if eval "test \"\${$as_ac_Header+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265 cat >conftest.$ac_ext <<_ACEOF
6266#line 6266 "configure"
6267#include "confdefs.h"
6268#include <$ac_header>
6269_ACEOF
6270if { (eval echo "$as_me:6270: \"$ac_cpp conftest.$ac_ext\"") >&5
6271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6272 ac_status=$?
6273 egrep -v '^ *\+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:6276: \$? = $ac_status" >&5
6277 (exit $ac_status); } >/dev/null; then
6278 if test -s conftest.err; then
6279 ac_cpp_err=$ac_c_preproc_warn_flag
6280 else
6281 ac_cpp_err=
6282 fi
6283else
6284 ac_cpp_err=yes
6285fi
6286if test -z "$ac_cpp_err"; then
6287 eval "$as_ac_Header=yes"
6288else
6289 echo "$as_me: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 eval "$as_ac_Header=no"
6292fi
6293rm -f conftest.err conftest.$ac_ext
6294fi
6295echo "$as_me:6295: result: `eval echo '${'$as_ac_Header'}'`" >&5
6296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6297if test `eval echo '${'$as_ac_Header'}'` = yes; then
6298 cat >>confdefs.h <<EOF
6299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6300EOF
6301
6302fi
6303done
6304
6305echo "$as_me:6305: checking for library containing login" >&5
6306echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6307if test "${ac_cv_search_login+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310 ac_func_search_save_LIBS=$LIBS
6311ac_cv_search_login=no
6312cat >conftest.$ac_ext <<_ACEOF
6313#line 6313 "configure"
6314#include "confdefs.h"
6315
6316/* Override any gcc2 internal prototype to avoid an error. */
6317#ifdef __cplusplus
6318extern "C"
6319#endif
6320/* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322char login ();
6323int
6324main ()
6325{
6326login ();
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331rm -f conftest.$ac_objext conftest$ac_exeext
6332if { (eval echo "$as_me:6332: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>&5
6334 ac_status=$?
6335 echo "$as_me:6335: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -s conftest$ac_exeext'
6338 { (eval echo "$as_me:6338: \"$ac_try\"") >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 echo "$as_me:6341: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 ac_cv_search_login="none required"
6344else
6345 echo "$as_me: failed program was:" >&5
6346cat conftest.$ac_ext >&5
6347fi
6348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6349if test "$ac_cv_search_login" = no; then
6350 for ac_lib in util bsd; do
6351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6352 cat >conftest.$ac_ext <<_ACEOF
6353#line 6353 "configure"
6354#include "confdefs.h"
6355
6356/* Override any gcc2 internal prototype to avoid an error. */
6357#ifdef __cplusplus
6358extern "C"
6359#endif
6360/* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6362char login ();
6363int
6364main ()
6365{
6366login ();
6367 ;
6368 return 0;
6369}
6370_ACEOF
6371rm -f conftest.$ac_objext conftest$ac_exeext
6372if { (eval echo "$as_me:6372: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6374 ac_status=$?
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:6378: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_search_login="-l$ac_lib"
6384break
6385else
6386 echo "$as_me: failed program was:" >&5
6387cat conftest.$ac_ext >&5
6388fi
6389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 done
6391fi
6392LIBS=$ac_func_search_save_LIBS
6393fi
6394echo "$as_me:6394: result: $ac_cv_search_login" >&5
6395echo "${ECHO_T}$ac_cv_search_login" >&6
6396if test "$ac_cv_search_login" != no; then
6397 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6398 cat >>confdefs.h <<\EOF
6399#define HAVE_LOGIN 1
6400EOF
6401
6402fi
6403
6404for ac_func in logout updwtmp logwtmp
6405do
6406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6407echo "$as_me:6407: checking for $ac_func" >&5
6408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6409if eval "test \"\${$as_ac_var+set}\" = set"; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 cat >conftest.$ac_ext <<_ACEOF
6413#line 6413 "configure"
6414#include "confdefs.h"
6415/* System header to define __stub macros and hopefully few prototypes,
6416 which can conflict with char $ac_func (); below. */
6417#include <assert.h>
6418/* Override any gcc2 internal prototype to avoid an error. */
6419#ifdef __cplusplus
6420extern "C"
6421#endif
6422/* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6424char $ac_func ();
6425char (*f) ();
6426
6427int
6428main ()
6429{
6430/* The GNU C library defines this for functions which it implements
6431 to always fail with ENOSYS. Some functions are actually named
6432 something starting with __ and the normal name is an alias. */
6433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6434choke me
6435#else
6436f = $ac_func;
6437#endif
6438
6439 ;
6440 return 0;
6441}
6442_ACEOF
6443rm -f conftest.$ac_objext conftest$ac_exeext
6444if { (eval echo "$as_me:6444: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 echo "$as_me:6447: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:6450: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:6453: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 eval "$as_ac_var=yes"
6456else
6457 echo "$as_me: failed program was:" >&5
6458cat conftest.$ac_ext >&5
6459eval "$as_ac_var=no"
6460fi
6461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6462fi
6463echo "$as_me:6463: result: `eval echo '${'$as_ac_var'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6465if test `eval echo '${'$as_ac_var'}'` = yes; then
6466 cat >>confdefs.h <<EOF
6467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6468EOF
6469
6470fi
6471done
6472
6473for ac_func in strftime
6474do
6475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6476echo "$as_me:6476: checking for $ac_func" >&5
6477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6478if eval "test \"\${$as_ac_var+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481 cat >conftest.$ac_ext <<_ACEOF
6482#line 6482 "configure"
6483#include "confdefs.h"
6484/* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func (); below. */
6486#include <assert.h>
6487/* Override any gcc2 internal prototype to avoid an error. */
6488#ifdef __cplusplus
6489extern "C"
6490#endif
6491/* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493char $ac_func ();
6494char (*f) ();
6495
6496int
6497main ()
6498{
6499/* The GNU C library defines this for functions which it implements
6500 to always fail with ENOSYS. Some functions are actually named
6501 something starting with __ and the normal name is an alias. */
6502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6503choke me
6504#else
6505f = $ac_func;
6506#endif
6507
6508 ;
6509 return 0;
6510}
6511_ACEOF
6512rm -f conftest.$ac_objext conftest$ac_exeext
6513if { (eval echo "$as_me:6513: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:6519: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:6522: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 eval "$as_ac_var=yes"
6525else
6526 echo "$as_me: failed program was:" >&5
6527cat conftest.$ac_ext >&5
6528eval "$as_ac_var=no"
6529fi
6530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531fi
6532echo "$as_me:6532: result: `eval echo '${'$as_ac_var'}'`" >&5
6533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6534if test `eval echo '${'$as_ac_var'}'` = yes; then
6535 cat >>confdefs.h <<EOF
6536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6537EOF
6538
6539else
6540 # strftime is in -lintl on SCO UNIX.
6541echo "$as_me:6541: checking for strftime in -lintl" >&5
6542echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6543if test "${ac_cv_lib_intl_strftime+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lintl $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549#line 6549 "configure"
6550#include "confdefs.h"
6551
6552/* Override any gcc2 internal prototype to avoid an error. */
6553#ifdef __cplusplus
6554extern "C"
6555#endif
6556/* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558char strftime ();
6559int
6560main ()
6561{
6562strftime ();
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567rm -f conftest.$ac_objext conftest$ac_exeext
6568if { (eval echo "$as_me:6568: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6570 ac_status=$?
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_lib_intl_strftime=yes
6580else
6581 echo "$as_me: failed program was:" >&5
6582cat conftest.$ac_ext >&5
6583ac_cv_lib_intl_strftime=no
6584fi
6585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6586LIBS=$ac_check_lib_save_LIBS
6587fi
6588echo "$as_me:6588: result: $ac_cv_lib_intl_strftime" >&5
6589echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6590if test $ac_cv_lib_intl_strftime = yes; then
6591 cat >>confdefs.h <<\EOF
6592#define HAVE_STRFTIME 1
6593EOF
6594
6595LIBS="-lintl $LIBS"
6596fi
6597
6598fi
6599done
6600
6601# Check for ALTDIRFUNC glob() extension
6602echo "$as_me:6602: checking for GLOB_ALTDIRFUNC support" >&5
6603echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6604cat >conftest.$ac_ext <<_ACEOF
6605#line 6605 "configure"
6606#include "confdefs.h"
6607
6608 #include <glob.h>
6609 #ifdef GLOB_ALTDIRFUNC
6610 FOUNDIT
6611 #endif
6612
6613_ACEOF
6614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6615 egrep "FOUNDIT" >/dev/null 2>&1; then
6616
6617 cat >>confdefs.h <<\EOF
6618#define GLOB_HAS_ALTDIRFUNC 1
6619EOF
6620
6621 echo "$as_me:6621: result: yes" >&5
6622echo "${ECHO_T}yes" >&6
6623
6624else
6625
6626 echo "$as_me:6626: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628
6629fi
6630rm -f conftest*
6631
6632# Check for g.gl_matchc glob() extension
6633echo "$as_me:6633: checking for gl_matchc field in glob_t" >&5
6634echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6635cat >conftest.$ac_ext <<_ACEOF
6636#line 6636 "configure"
6637#include "confdefs.h"
6638
6639 #include <glob.h>
6640 int main(void){glob_t g; g.gl_matchc = 1;}
6641
6642_ACEOF
6643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 egrep "FOUNDIT" >/dev/null 2>&1; then
6645
6646 cat >>confdefs.h <<\EOF
6647#define GLOB_HAS_GL_MATCHC 1
6648EOF
6649
6650 echo "$as_me:6650: result: yes" >&5
6651echo "${ECHO_T}yes" >&6
6652
6653else
6654
6655 echo "$as_me:6655: result: no" >&5
6656echo "${ECHO_T}no" >&6
6657
6658fi
6659rm -f conftest*
6660
6661echo "$as_me:6661: checking whether struct dirent allocates space for d_name" >&5
6662echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6663if test "$cross_compiling" = yes; then
6664 { { echo "$as_me:6664: error: cannot run test program while cross compiling" >&5
6665echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6666 { (exit 1); exit 1; }; }
6667else
6668 cat >conftest.$ac_ext <<_ACEOF
6669#line 6669 "configure"
6670#include "confdefs.h"
6671
6672#include <sys/types.h>
6673#include <dirent.h>
6674int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6675
6676_ACEOF
6677rm -f conftest$ac_exeext
6678if { (eval echo "$as_me:6678: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>&5
6680 ac_status=$?
6681 echo "$as_me:6681: \$? = $ac_status" >&5
6682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6683 { (eval echo "$as_me:6683: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 echo "$as_me:6688: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
6690else
6691 echo "$as_me: program exited with status $ac_status" >&5
6692echo "$as_me: failed program was:" >&5
6693cat conftest.$ac_ext >&5
6694
6695 echo "$as_me:6695: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697 cat >>confdefs.h <<\EOF
6698#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6699EOF
6700
6701fi
6702rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6703fi
6704
6705# Check whether user wants S/Key support
6706SKEY_MSG="no"
6707
6708# Check whether --with-skey or --without-skey was given.
6709if test "${with_skey+set}" = set; then
6710 withval="$with_skey"
6711
6712 if test "x$withval" != "xno" ; then
6713
6714 if test "x$withval" != "xyes" ; then
6715 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6716 LDFLAGS="$LDFLAGS -L${withval}/lib"
6717 fi
6718
6719 cat >>confdefs.h <<\EOF
6720#define SKEY 1
6721EOF
6722
6723 LIBS="-lskey $LIBS"
6724 SKEY_MSG="yes"
6725
6726 echo "$as_me:6726: checking for s/key support" >&5
6727echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6728 if test "$cross_compiling" = yes; then
6729 { { echo "$as_me:6729: error: cannot run test program while cross compiling" >&5
6730echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6731 { (exit 1); exit 1; }; }
6732else
6733 cat >conftest.$ac_ext <<_ACEOF
6734#line 6734 "configure"
6735#include "confdefs.h"
6736
6737#include <stdio.h>
6738#include <skey.h>
6739int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6740
6741_ACEOF
6742rm -f conftest$ac_exeext
6743if { (eval echo "$as_me:6743: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6745 ac_status=$?
6746 echo "$as_me:6746: \$? = $ac_status" >&5
6747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6748 { (eval echo "$as_me:6748: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:6751: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 echo "$as_me:6753: result: yes" >&5
6754echo "${ECHO_T}yes" >&6
6755else
6756 echo "$as_me: program exited with status $ac_status" >&5
6757echo "$as_me: failed program was:" >&5
6758cat conftest.$ac_ext >&5
6759
6760 echo "$as_me:6760: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 { { echo "$as_me:6762: error: ** Incomplete or missing s/key libraries." >&5
6763echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6764 { (exit 1); exit 1; }; }
6765
6766fi
6767rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6768fi
6769 fi
6770
6771fi;
6772
6773# Check whether user wants TCP wrappers support
6774TCPW_MSG="no"
6775
6776# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6777if test "${with_tcp_wrappers+set}" = set; then
6778 withval="$with_tcp_wrappers"
6779
6780 if test "x$withval" != "xno" ; then
6781 saved_LIBS="$LIBS"
6782 saved_LDFLAGS="$LDFLAGS"
6783 saved_CPPFLAGS="$CPPFLAGS"
6784 if test -n "${withval}" -a "${withval}" != "yes"; then
6785 if test -d "${withval}/lib"; then
6786 if test -n "${need_dash_r}"; then
6787 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6788 else
6789 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6790 fi
6791 else
6792 if test -n "${need_dash_r}"; then
6793 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6794 else
6795 LDFLAGS="-L${withval} ${LDFLAGS}"
6796 fi
6797 fi
6798 if test -d "${withval}/include"; then
6799 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6800 else
6801 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6802 fi
6803 fi
6804 LIBWRAP="-lwrap"
6805 LIBS="$LIBWRAP $LIBS"
6806 echo "$as_me:6806: checking for libwrap" >&5
6807echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6808 cat >conftest.$ac_ext <<_ACEOF
6809#line 6809 "configure"
6810#include "confdefs.h"
6811
6812#include <tcpd.h>
6813 int deny_severity = 0, allow_severity = 0;
6814
6815int
6816main ()
6817{
6818hosts_access(0);
6819 ;
6820 return 0;
6821}
6822_ACEOF
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (eval echo "$as_me:6824: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>&5
6826 ac_status=$?
6827 echo "$as_me:6827: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:6830: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:6833: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835
6836 echo "$as_me:6836: result: yes" >&5
6837echo "${ECHO_T}yes" >&6
6838 cat >>confdefs.h <<\EOF
6839#define LIBWRAP 1
6840EOF
6841
6842 TCPW_MSG="yes"
6843
6844else
6845 echo "$as_me: failed program was:" >&5
6846cat conftest.$ac_ext >&5
6847
6848 { { echo "$as_me:6848: error: *** libwrap missing" >&5
6849echo "$as_me: error: *** libwrap missing" >&2;}
6850 { (exit 1); exit 1; }; }
6851
6852fi
6853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 LIBS="$saved_LIBS"
6855 fi
6856
6857fi;
6858
6859for ac_func in \
6860 arc4random __b64_ntop b64_ntop __b64_pton b64_pton \
6861 bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
6862 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6863 getpeereid _getpty getrlimit getttyent glob inet_aton \
6864 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
6865 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \
6866 pstat readpassphrase realpath recvmsg rresvport_af sendmsg \
6867 setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
6868 setproctitle setregid setreuid setrlimit \
6869 setsid setvbuf sigaction sigvec snprintf socketpair strerror \
6870 strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
6871 truncate updwtmpx utimes vhangup vsnprintf waitpid \
6872
6873do
6874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875echo "$as_me:6875: checking for $ac_func" >&5
6876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6877if eval "test \"\${$as_ac_var+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 cat >conftest.$ac_ext <<_ACEOF
6881#line 6881 "configure"
6882#include "confdefs.h"
6883/* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func (); below. */
6885#include <assert.h>
6886/* Override any gcc2 internal prototype to avoid an error. */
6887#ifdef __cplusplus
6888extern "C"
6889#endif
6890/* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892char $ac_func ();
6893char (*f) ();
6894
6895int
6896main ()
6897{
6898/* The GNU C library defines this for functions which it implements
6899 to always fail with ENOSYS. Some functions are actually named
6900 something starting with __ and the normal name is an alias. */
6901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6902choke me
6903#else
6904f = $ac_func;
6905#endif
6906
6907 ;
6908 return 0;
6909}
6910_ACEOF
6911rm -f conftest.$ac_objext conftest$ac_exeext
6912if { (eval echo "$as_me:6912: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>&5
6914 ac_status=$?
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -s conftest$ac_exeext'
6918 { (eval echo "$as_me:6918: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 eval "$as_ac_var=yes"
6924else
6925 echo "$as_me: failed program was:" >&5
6926cat conftest.$ac_ext >&5
6927eval "$as_ac_var=no"
6928fi
6929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930fi
6931echo "$as_me:6931: result: `eval echo '${'$as_ac_var'}'`" >&5
6932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6933if test `eval echo '${'$as_ac_var'}'` = yes; then
6934 cat >>confdefs.h <<EOF
6935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6936EOF
6937
6938fi
6939done
6940
6941# IRIX has a const char return value for gai_strerror()
6942
6943for ac_func in gai_strerror
6944do
6945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6946echo "$as_me:6946: checking for $ac_func" >&5
6947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6948if eval "test \"\${$as_ac_var+set}\" = set"; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 cat >conftest.$ac_ext <<_ACEOF
6952#line 6952 "configure"
6953#include "confdefs.h"
6954/* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char $ac_func (); below. */
6956#include <assert.h>
6957/* Override any gcc2 internal prototype to avoid an error. */
6958#ifdef __cplusplus
6959extern "C"
6960#endif
6961/* We use char because int might match the return type of a gcc2
6962 builtin and then its argument prototype would still apply. */
6963char $ac_func ();
6964char (*f) ();
6965
6966int
6967main ()
6968{
6969/* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6973choke me
6974#else
6975f = $ac_func;
6976#endif
6977
6978 ;
6979 return 0;
6980}
6981_ACEOF
6982rm -f conftest.$ac_objext conftest$ac_exeext
6983if { (eval echo "$as_me:6983: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6985 ac_status=$?
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -s conftest$ac_exeext'
6989 { (eval echo "$as_me:6989: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:6992: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 eval "$as_ac_var=yes"
6995else
6996 echo "$as_me: failed program was:" >&5
6997cat conftest.$ac_ext >&5
6998eval "$as_ac_var=no"
6999fi
7000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7001fi
7002echo "$as_me:7002: result: `eval echo '${'$as_ac_var'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7004if test `eval echo '${'$as_ac_var'}'` = yes; then
7005 cat >>confdefs.h <<EOF
7006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7007EOF
7008
7009 cat >>confdefs.h <<\EOF
7010#define HAVE_GAI_STRERROR 1
7011EOF
7012
7013 cat >conftest.$ac_ext <<_ACEOF
7014#line 7014 "configure"
7015#include "confdefs.h"
7016
7017#include <sys/types.h>
7018#include <sys/socket.h>
7019#include <netdb.h>
7020
7021const char *gai_strerror(int);
7022int
7023main ()
7024{
7025
7026char *str;
7027
7028str = gai_strerror(0);
7029 ;
7030 return 0;
7031}
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>&5
7036 ac_status=$?
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045
7046cat >>confdefs.h <<\EOF
7047#define HAVE_CONST_GAI_STRERROR_PROTO 1
7048EOF
7049
7050else
7051 echo "$as_me: failed program was:" >&5
7052cat conftest.$ac_ext >&5
7053fi
7054rm -f conftest.$ac_objext conftest.$ac_ext
7055fi
7056done
7057
7058echo "$as_me:7058: checking for library containing nanosleep" >&5
7059echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
7060if test "${ac_cv_search_nanosleep+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 ac_func_search_save_LIBS=$LIBS
7064ac_cv_search_nanosleep=no
7065cat >conftest.$ac_ext <<_ACEOF
7066#line 7066 "configure"
7067#include "confdefs.h"
7068
7069/* Override any gcc2 internal prototype to avoid an error. */
7070#ifdef __cplusplus
7071extern "C"
7072#endif
7073/* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7075char nanosleep ();
7076int
7077main ()
7078{
7079nanosleep ();
7080 ;
7081 return 0;
7082}
7083_ACEOF
7084rm -f conftest.$ac_objext conftest$ac_exeext
7085if { (eval echo "$as_me:7085: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7087 ac_status=$?
7088 echo "$as_me:7088: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest$ac_exeext'
7091 { (eval echo "$as_me:7091: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_search_nanosleep="none required"
7097else
7098 echo "$as_me: failed program was:" >&5
7099cat conftest.$ac_ext >&5
7100fi
7101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7102if test "$ac_cv_search_nanosleep" = no; then
7103 for ac_lib in rt posix4; do
7104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106#line 7106 "configure"
7107#include "confdefs.h"
7108
7109/* Override any gcc2 internal prototype to avoid an error. */
7110#ifdef __cplusplus
7111extern "C"
7112#endif
7113/* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7115char nanosleep ();
7116int
7117main ()
7118{
7119nanosleep ();
7120 ;
7121 return 0;
7122}
7123_ACEOF
7124rm -f conftest.$ac_objext conftest$ac_exeext
7125if { (eval echo "$as_me:7125: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>&5
7127 ac_status=$?
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:7131: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:7134: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_search_nanosleep="-l$ac_lib"
7137break
7138else
7139 echo "$as_me: failed program was:" >&5
7140cat conftest.$ac_ext >&5
7141fi
7142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7143 done
7144fi
7145LIBS=$ac_func_search_save_LIBS
7146fi
7147echo "$as_me:7147: result: $ac_cv_search_nanosleep" >&5
7148echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
7149if test "$ac_cv_search_nanosleep" != no; then
7150 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
7151 cat >>confdefs.h <<\EOF
7152#define HAVE_NANOSLEEP 1
7153EOF
7154
7155fi
7156
7157echo "$as_me:7157: checking for ANSI C header files" >&5
7158echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7159if test "${ac_cv_header_stdc+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162 cat >conftest.$ac_ext <<_ACEOF
7163#line 7163 "configure"
7164#include "confdefs.h"
7165#include <stdlib.h>
7166#include <stdarg.h>
7167#include <string.h>
7168#include <float.h>
7169
7170_ACEOF
7171if { (eval echo "$as_me:7171: \"$ac_cpp conftest.$ac_ext\"") >&5
7172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7173 ac_status=$?
7174 egrep -v '^ *\+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:7177: \$? = $ac_status" >&5
7178 (exit $ac_status); } >/dev/null; then
7179 if test -s conftest.err; then
7180 ac_cpp_err=$ac_c_preproc_warn_flag
7181 else
7182 ac_cpp_err=
7183 fi
7184else
7185 ac_cpp_err=yes
7186fi
7187if test -z "$ac_cpp_err"; then
7188 ac_cv_header_stdc=yes
7189else
7190 echo "$as_me: failed program was:" >&5
7191 cat conftest.$ac_ext >&5
7192 ac_cv_header_stdc=no
7193fi
7194rm -f conftest.err conftest.$ac_ext
7195
7196if test $ac_cv_header_stdc = yes; then
7197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198 cat >conftest.$ac_ext <<_ACEOF
7199#line 7199 "configure"
7200#include "confdefs.h"
7201#include <string.h>
7202
7203_ACEOF
7204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 egrep "memchr" >/dev/null 2>&1; then
7206 :
7207else
7208 ac_cv_header_stdc=no
7209fi
7210rm -f conftest*
7211
7212fi
7213
7214if test $ac_cv_header_stdc = yes; then
7215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7216 cat >conftest.$ac_ext <<_ACEOF
7217#line 7217 "configure"
7218#include "confdefs.h"
7219#include <stdlib.h>
7220
7221_ACEOF
7222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7223 egrep "free" >/dev/null 2>&1; then
7224 :
7225else
7226 ac_cv_header_stdc=no
7227fi
7228rm -f conftest*
7229
7230fi
7231
7232if test $ac_cv_header_stdc = yes; then
7233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7234 if test "$cross_compiling" = yes; then
7235 :
7236else
7237 cat >conftest.$ac_ext <<_ACEOF
7238#line 7238 "configure"
7239#include "confdefs.h"
7240#include <ctype.h>
7241#if ((' ' & 0x0FF) == 0x020)
7242# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7243# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7244#else
7245# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7246 || ('j' <= (c) && (c) <= 'r') \
7247 || ('s' <= (c) && (c) <= 'z'))
7248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7249#endif
7250
7251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7252int
7253main ()
7254{
7255 int i;
7256 for (i = 0; i < 256; i++)
7257 if (XOR (islower (i), ISLOWER (i))
7258 || toupper (i) != TOUPPER (i))
7259 exit(2);
7260 exit (0);
7261}
7262_ACEOF
7263rm -f conftest$ac_exeext
7264if { (eval echo "$as_me:7264: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7266 ac_status=$?
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7269 { (eval echo "$as_me:7269: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 :
7275else
7276 echo "$as_me: program exited with status $ac_status" >&5
7277echo "$as_me: failed program was:" >&5
7278cat conftest.$ac_ext >&5
7279ac_cv_header_stdc=no
7280fi
7281rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7282fi
7283fi
7284fi
7285echo "$as_me:7285: result: $ac_cv_header_stdc" >&5
7286echo "${ECHO_T}$ac_cv_header_stdc" >&6
7287if test $ac_cv_header_stdc = yes; then
7288
7289cat >>confdefs.h <<\EOF
7290#define STDC_HEADERS 1
7291EOF
7292
7293fi
7294
7295# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7296
7297for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7298 inttypes.h stdint.h unistd.h
7299do
7300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7301echo "$as_me:7301: checking for $ac_header" >&5
7302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7303if eval "test \"\${$as_ac_Header+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306 cat >conftest.$ac_ext <<_ACEOF
7307#line 7307 "configure"
7308#include "confdefs.h"
7309$ac_includes_default
7310#include <$ac_header>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (eval echo "$as_me:7313: \"$ac_compile\"") >&5
7314 (eval $ac_compile) 2>&5
7315 ac_status=$?
7316 echo "$as_me:7316: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:7319: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:7322: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 eval "$as_ac_Header=yes"
7325else
7326 echo "$as_me: failed program was:" >&5
7327cat conftest.$ac_ext >&5
7328eval "$as_ac_Header=no"
7329fi
7330rm -f conftest.$ac_objext conftest.$ac_ext
7331fi
7332echo "$as_me:7332: result: `eval echo '${'$as_ac_Header'}'`" >&5
7333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7334if test `eval echo '${'$as_ac_Header'}'` = yes; then
7335 cat >>confdefs.h <<EOF
7336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7337EOF
7338
7339fi
7340done
7341
7342echo "$as_me:7342: checking whether strsep is declared" >&5
7343echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7344if test "${ac_cv_have_decl_strsep+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 cat >conftest.$ac_ext <<_ACEOF
7348#line 7348 "configure"
7349#include "confdefs.h"
7350$ac_includes_default
7351int
7352main ()
7353{
7354#ifndef strsep
7355 char *p = (char *) strsep;
7356#endif
7357
7358 ;
7359 return 0;
7360}
7361_ACEOF
7362rm -f conftest.$ac_objext
7363if { (eval echo "$as_me:7363: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 echo "$as_me:7366: \$? = $ac_status" >&5
7367 (exit $ac_status); } &&
7368 { ac_try='test -s conftest.$ac_objext'
7369 { (eval echo "$as_me:7369: \"$ac_try\"") >&5
7370 (eval $ac_try) 2>&5
7371 ac_status=$?
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7374 ac_cv_have_decl_strsep=yes
7375else
7376 echo "$as_me: failed program was:" >&5
7377cat conftest.$ac_ext >&5
7378ac_cv_have_decl_strsep=no
7379fi
7380rm -f conftest.$ac_objext conftest.$ac_ext
7381fi
7382echo "$as_me:7382: result: $ac_cv_have_decl_strsep" >&5
7383echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7384if test $ac_cv_have_decl_strsep = yes; then
7385
7386for ac_func in strsep
7387do
7388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7389echo "$as_me:7389: checking for $ac_func" >&5
7390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7391if eval "test \"\${$as_ac_var+set}\" = set"; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 cat >conftest.$ac_ext <<_ACEOF
7395#line 7395 "configure"
7396#include "confdefs.h"
7397/* System header to define __stub macros and hopefully few prototypes,
7398 which can conflict with char $ac_func (); below. */
7399#include <assert.h>
7400/* Override any gcc2 internal prototype to avoid an error. */
7401#ifdef __cplusplus
7402extern "C"
7403#endif
7404/* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406char $ac_func ();
7407char (*f) ();
7408
7409int
7410main ()
7411{
7412/* The GNU C library defines this for functions which it implements
7413 to always fail with ENOSYS. Some functions are actually named
7414 something starting with __ and the normal name is an alias. */
7415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7416choke me
7417#else
7418f = $ac_func;
7419#endif
7420
7421 ;
7422 return 0;
7423}
7424_ACEOF
7425rm -f conftest.$ac_objext conftest$ac_exeext
7426if { (eval echo "$as_me:7426: \"$ac_link\"") >&5
7427 (eval $ac_link) 2>&5
7428 ac_status=$?
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest$ac_exeext'
7432 { (eval echo "$as_me:7432: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:7435: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_var=yes"
7438else
7439 echo "$as_me: failed program was:" >&5
7440cat conftest.$ac_ext >&5
7441eval "$as_ac_var=no"
7442fi
7443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7444fi
7445echo "$as_me:7445: result: `eval echo '${'$as_ac_var'}'`" >&5
7446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7447if test `eval echo '${'$as_ac_var'}'` = yes; then
7448 cat >>confdefs.h <<EOF
7449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7450EOF
7451
7452fi
7453done
7454
7455fi
7456
7457echo "$as_me:7457: checking whether getrusage is declared" >&5
7458echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
7459if test "${ac_cv_have_decl_getrusage+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 cat >conftest.$ac_ext <<_ACEOF
7463#line 7463 "configure"
7464#include "confdefs.h"
7465$ac_includes_default
7466int
7467main ()
7468{
7469#ifndef getrusage
7470 char *p = (char *) getrusage;
7471#endif
7472
7473 ;
7474 return 0;
7475}
7476_ACEOF
7477rm -f conftest.$ac_objext
7478if { (eval echo "$as_me:7478: \"$ac_compile\"") >&5
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:7484: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_have_decl_getrusage=yes
7490else
7491 echo "$as_me: failed program was:" >&5
7492cat conftest.$ac_ext >&5
7493ac_cv_have_decl_getrusage=no
7494fi
7495rm -f conftest.$ac_objext conftest.$ac_ext
7496fi
7497echo "$as_me:7497: result: $ac_cv_have_decl_getrusage" >&5
7498echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
7499if test $ac_cv_have_decl_getrusage = yes; then
7500
7501for ac_func in getrusage
7502do
7503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7504echo "$as_me:7504: checking for $ac_func" >&5
7505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7506if eval "test \"\${$as_ac_var+set}\" = set"; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 cat >conftest.$ac_ext <<_ACEOF
7510#line 7510 "configure"
7511#include "confdefs.h"
7512/* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func (); below. */
7514#include <assert.h>
7515/* Override any gcc2 internal prototype to avoid an error. */
7516#ifdef __cplusplus
7517extern "C"
7518#endif
7519/* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7521char $ac_func ();
7522char (*f) ();
7523
7524int
7525main ()
7526{
7527/* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7531choke me
7532#else
7533f = $ac_func;
7534#endif
7535
7536 ;
7537 return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext conftest$ac_exeext
7541if { (eval echo "$as_me:7541: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>&5
7543 ac_status=$?
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -s conftest$ac_exeext'
7547 { (eval echo "$as_me:7547: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:7550: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 eval "$as_ac_var=yes"
7553else
7554 echo "$as_me: failed program was:" >&5
7555cat conftest.$ac_ext >&5
7556eval "$as_ac_var=no"
7557fi
7558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7559fi
7560echo "$as_me:7560: result: `eval echo '${'$as_ac_var'}'`" >&5
7561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7562if test `eval echo '${'$as_ac_var'}'` = yes; then
7563 cat >>confdefs.h <<EOF
7564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7565EOF
7566
7567fi
7568done
7569
7570fi
7571
7572echo "$as_me:7572: checking whether tcsendbreak is declared" >&5
7573echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6
7574if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 cat >conftest.$ac_ext <<_ACEOF
7578#line 7578 "configure"
7579#include "confdefs.h"
7580#include <termios.h>
7581
7582int
7583main ()
7584{
7585#ifndef tcsendbreak
7586 char *p = (char *) tcsendbreak;
7587#endif
7588
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:7594: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>&5
7596 ac_status=$?
7597 echo "$as_me:7597: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:7600: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_have_decl_tcsendbreak=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608cat conftest.$ac_ext >&5
7609ac_cv_have_decl_tcsendbreak=no
7610fi
7611rm -f conftest.$ac_objext conftest.$ac_ext
7612fi
7613echo "$as_me:7613: result: $ac_cv_have_decl_tcsendbreak" >&5
7614echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6
7615if test $ac_cv_have_decl_tcsendbreak = yes; then
7616 cat >>confdefs.h <<\EOF
7617#define HAVE_TCSENDBREAK 1
7618EOF
7619
7620else
7621
7622for ac_func in tcsendbreak
7623do
7624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7625echo "$as_me:7625: checking for $ac_func" >&5
7626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7627if eval "test \"\${$as_ac_var+set}\" = set"; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 cat >conftest.$ac_ext <<_ACEOF
7631#line 7631 "configure"
7632#include "confdefs.h"
7633/* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func (); below. */
7635#include <assert.h>
7636/* Override any gcc2 internal prototype to avoid an error. */
7637#ifdef __cplusplus
7638extern "C"
7639#endif
7640/* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7642char $ac_func ();
7643char (*f) ();
7644
7645int
7646main ()
7647{
7648/* The GNU C library defines this for functions which it implements
7649 to always fail with ENOSYS. Some functions are actually named
7650 something starting with __ and the normal name is an alias. */
7651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652choke me
7653#else
7654f = $ac_func;
7655#endif
7656
7657 ;
7658 return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
7662if { (eval echo "$as_me:7662: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:7665: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:7668: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 eval "$as_ac_var=yes"
7674else
7675 echo "$as_me: failed program was:" >&5
7676cat conftest.$ac_ext >&5
7677eval "$as_ac_var=no"
7678fi
7679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680fi
7681echo "$as_me:7681: result: `eval echo '${'$as_ac_var'}'`" >&5
7682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7683if test `eval echo '${'$as_ac_var'}'` = yes; then
7684 cat >>confdefs.h <<EOF
7685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7686EOF
7687
7688fi
7689done
7690
7691fi
7692
7693for ac_func in setresuid
7694do
7695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7696echo "$as_me:7696: checking for $ac_func" >&5
7697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7698if eval "test \"\${$as_ac_var+set}\" = set"; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701 cat >conftest.$ac_ext <<_ACEOF
7702#line 7702 "configure"
7703#include "confdefs.h"
7704/* System header to define __stub macros and hopefully few prototypes,
7705 which can conflict with char $ac_func (); below. */
7706#include <assert.h>
7707/* Override any gcc2 internal prototype to avoid an error. */
7708#ifdef __cplusplus
7709extern "C"
7710#endif
7711/* We use char because int might match the return type of a gcc2
7712 builtin and then its argument prototype would still apply. */
7713char $ac_func ();
7714char (*f) ();
7715
7716int
7717main ()
7718{
7719/* The GNU C library defines this for functions which it implements
7720 to always fail with ENOSYS. Some functions are actually named
7721 something starting with __ and the normal name is an alias. */
7722#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7723choke me
7724#else
7725f = $ac_func;
7726#endif
7727
7728 ;
7729 return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext conftest$ac_exeext
7733if { (eval echo "$as_me:7733: \"$ac_link\"") >&5
7734 (eval $ac_link) 2>&5
7735 ac_status=$?
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:7739: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:7742: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 eval "$as_ac_var=yes"
7745else
7746 echo "$as_me: failed program was:" >&5
7747cat conftest.$ac_ext >&5
7748eval "$as_ac_var=no"
7749fi
7750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7751fi
7752echo "$as_me:7752: result: `eval echo '${'$as_ac_var'}'`" >&5
7753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7754if test `eval echo '${'$as_ac_var'}'` = yes; then
7755 cat >>confdefs.h <<EOF
7756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7757EOF
7758
7759 echo "$as_me:7759: checking if setresuid seems to work" >&5
7760echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6
7761 if test "$cross_compiling" = yes; then
7762 { { echo "$as_me:7762: error: cannot run test program while cross compiling" >&5
7763echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7764 { (exit 1); exit 1; }; }
7765else
7766 cat >conftest.$ac_ext <<_ACEOF
7767#line 7767 "configure"
7768#include "confdefs.h"
7769
7770#include <stdlib.h>
7771#include <errno.h>
7772int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
7773
7774_ACEOF
7775rm -f conftest$ac_exeext
7776if { (eval echo "$as_me:7776: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 echo "$as_me:7779: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781 { (eval echo "$as_me:7781: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:7784: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 echo "$as_me:7786: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788else
7789 echo "$as_me: program exited with status $ac_status" >&5
7790echo "$as_me: failed program was:" >&5
7791cat conftest.$ac_ext >&5
7792cat >>confdefs.h <<\EOF
7793#define BROKEN_SETRESUID 1
7794EOF
7795
7796 echo "$as_me:7796: result: not implemented" >&5
7797echo "${ECHO_T}not implemented" >&6
7798
7799fi
7800rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7801fi
7802
7803fi
7804done
7805
7806for ac_func in setresgid
7807do
7808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7809echo "$as_me:7809: checking for $ac_func" >&5
7810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7811if eval "test \"\${$as_ac_var+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814 cat >conftest.$ac_ext <<_ACEOF
7815#line 7815 "configure"
7816#include "confdefs.h"
7817/* System header to define __stub macros and hopefully few prototypes,
7818 which can conflict with char $ac_func (); below. */
7819#include <assert.h>
7820/* Override any gcc2 internal prototype to avoid an error. */
7821#ifdef __cplusplus
7822extern "C"
7823#endif
7824/* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7826char $ac_func ();
7827char (*f) ();
7828
7829int
7830main ()
7831{
7832/* The GNU C library defines this for functions which it implements
7833 to always fail with ENOSYS. Some functions are actually named
7834 something starting with __ and the normal name is an alias. */
7835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7836choke me
7837#else
7838f = $ac_func;
7839#endif
7840
7841 ;
7842 return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext conftest$ac_exeext
7846if { (eval echo "$as_me:7846: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>&5
7848 ac_status=$?
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:7852: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 eval "$as_ac_var=yes"
7858else
7859 echo "$as_me: failed program was:" >&5
7860cat conftest.$ac_ext >&5
7861eval "$as_ac_var=no"
7862fi
7863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7864fi
7865echo "$as_me:7865: result: `eval echo '${'$as_ac_var'}'`" >&5
7866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7867if test `eval echo '${'$as_ac_var'}'` = yes; then
7868 cat >>confdefs.h <<EOF
7869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7870EOF
7871
7872 echo "$as_me:7872: checking if setresgid seems to work" >&5
7873echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6
7874 if test "$cross_compiling" = yes; then
7875 { { echo "$as_me:7875: error: cannot run test program while cross compiling" >&5
7876echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7877 { (exit 1); exit 1; }; }
7878else
7879 cat >conftest.$ac_ext <<_ACEOF
7880#line 7880 "configure"
7881#include "confdefs.h"
7882
7883#include <stdlib.h>
7884#include <errno.h>
7885int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
7886
7887_ACEOF
7888rm -f conftest$ac_exeext
7889if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7891 ac_status=$?
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7894 { (eval echo "$as_me:7894: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:7897: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 echo "$as_me:7899: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
7901else
7902 echo "$as_me: program exited with status $ac_status" >&5
7903echo "$as_me: failed program was:" >&5
7904cat conftest.$ac_ext >&5
7905cat >>confdefs.h <<\EOF
7906#define BROKEN_SETRESGID 1
7907EOF
7908
7909 echo "$as_me:7909: result: not implemented" >&5
7910echo "${ECHO_T}not implemented" >&6
7911
7912fi
7913rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7914fi
7915
7916fi
7917done
7918
7919for ac_func in gettimeofday time
7920do
7921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7922echo "$as_me:7922: checking for $ac_func" >&5
7923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7924if eval "test \"\${$as_ac_var+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927 cat >conftest.$ac_ext <<_ACEOF
7928#line 7928 "configure"
7929#include "confdefs.h"
7930/* System header to define __stub macros and hopefully few prototypes,
7931 which can conflict with char $ac_func (); below. */
7932#include <assert.h>
7933/* Override any gcc2 internal prototype to avoid an error. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char $ac_func ();
7940char (*f) ();
7941
7942int
7943main ()
7944{
7945/* The GNU C library defines this for functions which it implements
7946 to always fail with ENOSYS. Some functions are actually named
7947 something starting with __ and the normal name is an alias. */
7948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7949choke me
7950#else
7951f = $ac_func;
7952#endif
7953
7954 ;
7955 return 0;
7956}
7957_ACEOF
7958rm -f conftest.$ac_objext conftest$ac_exeext
7959if { (eval echo "$as_me:7959: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>&5
7961 ac_status=$?
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:7965: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 eval "$as_ac_var=yes"
7971else
7972 echo "$as_me: failed program was:" >&5
7973cat conftest.$ac_ext >&5
7974eval "$as_ac_var=no"
7975fi
7976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977fi
7978echo "$as_me:7978: result: `eval echo '${'$as_ac_var'}'`" >&5
7979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7980if test `eval echo '${'$as_ac_var'}'` = yes; then
7981 cat >>confdefs.h <<EOF
7982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7983EOF
7984
7985fi
7986done
7987
7988for ac_func in endutent getutent getutid getutline pututline setutent
7989do
7990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7991echo "$as_me:7991: checking for $ac_func" >&5
7992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7993if eval "test \"\${$as_ac_var+set}\" = set"; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 cat >conftest.$ac_ext <<_ACEOF
7997#line 7997 "configure"
7998#include "confdefs.h"
7999/* System header to define __stub macros and hopefully few prototypes,
8000 which can conflict with char $ac_func (); below. */
8001#include <assert.h>
8002/* Override any gcc2 internal prototype to avoid an error. */
8003#ifdef __cplusplus
8004extern "C"
8005#endif
8006/* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8008char $ac_func ();
8009char (*f) ();
8010
8011int
8012main ()
8013{
8014/* The GNU C library defines this for functions which it implements
8015 to always fail with ENOSYS. Some functions are actually named
8016 something starting with __ and the normal name is an alias. */
8017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8018choke me
8019#else
8020f = $ac_func;
8021#endif
8022
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027rm -f conftest.$ac_objext conftest$ac_exeext
8028if { (eval echo "$as_me:8028: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8030 ac_status=$?
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 eval "$as_ac_var=yes"
8040else
8041 echo "$as_me: failed program was:" >&5
8042cat conftest.$ac_ext >&5
8043eval "$as_ac_var=no"
8044fi
8045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046fi
8047echo "$as_me:8047: result: `eval echo '${'$as_ac_var'}'`" >&5
8048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8049if test `eval echo '${'$as_ac_var'}'` = yes; then
8050 cat >>confdefs.h <<EOF
8051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8052EOF
8053
8054fi
8055done
8056
8057for ac_func in utmpname
8058do
8059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8060echo "$as_me:8060: checking for $ac_func" >&5
8061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8062if eval "test \"\${$as_ac_var+set}\" = set"; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064else
8065 cat >conftest.$ac_ext <<_ACEOF
8066#line 8066 "configure"
8067#include "confdefs.h"
8068/* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char $ac_func (); below. */
8070#include <assert.h>
8071/* Override any gcc2 internal prototype to avoid an error. */
8072#ifdef __cplusplus
8073extern "C"
8074#endif
8075/* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077char $ac_func ();
8078char (*f) ();
8079
8080int
8081main ()
8082{
8083/* The GNU C library defines this for functions which it implements
8084 to always fail with ENOSYS. Some functions are actually named
8085 something starting with __ and the normal name is an alias. */
8086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8087choke me
8088#else
8089f = $ac_func;
8090#endif
8091
8092 ;
8093 return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext conftest$ac_exeext
8097if { (eval echo "$as_me:8097: \"$ac_link\"") >&5
8098 (eval $ac_link) 2>&5
8099 ac_status=$?
8100 echo "$as_me:8100: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -s conftest$ac_exeext'
8103 { (eval echo "$as_me:8103: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:8106: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 eval "$as_ac_var=yes"
8109else
8110 echo "$as_me: failed program was:" >&5
8111cat conftest.$ac_ext >&5
8112eval "$as_ac_var=no"
8113fi
8114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8115fi
8116echo "$as_me:8116: result: `eval echo '${'$as_ac_var'}'`" >&5
8117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8118if test `eval echo '${'$as_ac_var'}'` = yes; then
8119 cat >>confdefs.h <<EOF
8120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8121EOF
8122
8123fi
8124done
8125
8126for ac_func in endutxent getutxent getutxid getutxline pututxline
8127do
8128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8129echo "$as_me:8129: checking for $ac_func" >&5
8130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8131if eval "test \"\${$as_ac_var+set}\" = set"; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 cat >conftest.$ac_ext <<_ACEOF
8135#line 8135 "configure"
8136#include "confdefs.h"
8137/* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char $ac_func (); below. */
8139#include <assert.h>
8140/* Override any gcc2 internal prototype to avoid an error. */
8141#ifdef __cplusplus
8142extern "C"
8143#endif
8144/* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8146char $ac_func ();
8147char (*f) ();
8148
8149int
8150main ()
8151{
8152/* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156choke me
8157#else
8158f = $ac_func;
8159#endif
8160
8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:8166: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>&5
8168 ac_status=$?
8169 echo "$as_me:8169: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:8172: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:8175: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 eval "$as_ac_var=yes"
8178else
8179 echo "$as_me: failed program was:" >&5
8180cat conftest.$ac_ext >&5
8181eval "$as_ac_var=no"
8182fi
8183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184fi
8185echo "$as_me:8185: result: `eval echo '${'$as_ac_var'}'`" >&5
8186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8187if test `eval echo '${'$as_ac_var'}'` = yes; then
8188 cat >>confdefs.h <<EOF
8189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8190EOF
8191
8192fi
8193done
8194
8195for ac_func in setutxent utmpxname
8196do
8197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8198echo "$as_me:8198: checking for $ac_func" >&5
8199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8200if eval "test \"\${$as_ac_var+set}\" = set"; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 cat >conftest.$ac_ext <<_ACEOF
8204#line 8204 "configure"
8205#include "confdefs.h"
8206/* System header to define __stub macros and hopefully few prototypes,
8207 which can conflict with char $ac_func (); below. */
8208#include <assert.h>
8209/* Override any gcc2 internal prototype to avoid an error. */
8210#ifdef __cplusplus
8211extern "C"
8212#endif
8213/* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8215char $ac_func ();
8216char (*f) ();
8217
8218int
8219main ()
8220{
8221/* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8225choke me
8226#else
8227f = $ac_func;
8228#endif
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:8235: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:8241: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:8244: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 eval "$as_ac_var=yes"
8247else
8248 echo "$as_me: failed program was:" >&5
8249cat conftest.$ac_ext >&5
8250eval "$as_ac_var=no"
8251fi
8252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8253fi
8254echo "$as_me:8254: result: `eval echo '${'$as_ac_var'}'`" >&5
8255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8256if test `eval echo '${'$as_ac_var'}'` = yes; then
8257 cat >>confdefs.h <<EOF
8258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8259EOF
8260
8261fi
8262done
8263
8264echo "$as_me:8264: checking for daemon" >&5
8265echo $ECHO_N "checking for daemon... $ECHO_C" >&6
8266if test "${ac_cv_func_daemon+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 cat >conftest.$ac_ext <<_ACEOF
8270#line 8270 "configure"
8271#include "confdefs.h"
8272/* System header to define __stub macros and hopefully few prototypes,
8273 which can conflict with char daemon (); below. */
8274#include <assert.h>
8275/* Override any gcc2 internal prototype to avoid an error. */
8276#ifdef __cplusplus
8277extern "C"
8278#endif
8279/* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8281char daemon ();
8282char (*f) ();
8283
8284int
8285main ()
8286{
8287/* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290#if defined (__stub_daemon) || defined (__stub___daemon)
8291choke me
8292#else
8293f = daemon;
8294#endif
8295
8296 ;
8297 return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (eval echo "$as_me:8301: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>&5
8303 ac_status=$?
8304 echo "$as_me:8304: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -s conftest$ac_exeext'
8307 { (eval echo "$as_me:8307: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:8310: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 ac_cv_func_daemon=yes
8313else
8314 echo "$as_me: failed program was:" >&5
8315cat conftest.$ac_ext >&5
8316ac_cv_func_daemon=no
8317fi
8318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8319fi
8320echo "$as_me:8320: result: $ac_cv_func_daemon" >&5
8321echo "${ECHO_T}$ac_cv_func_daemon" >&6
8322if test $ac_cv_func_daemon = yes; then
8323 cat >>confdefs.h <<\EOF
8324#define HAVE_DAEMON 1
8325EOF
8326
8327else
8328 echo "$as_me:8328: checking for daemon in -lbsd" >&5
8329echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
8330if test "${ac_cv_lib_bsd_daemon+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333 ac_check_lib_save_LIBS=$LIBS
8334LIBS="-lbsd $LIBS"
8335cat >conftest.$ac_ext <<_ACEOF
8336#line 8336 "configure"
8337#include "confdefs.h"
8338
8339/* Override any gcc2 internal prototype to avoid an error. */
8340#ifdef __cplusplus
8341extern "C"
8342#endif
8343/* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8345char daemon ();
8346int
8347main ()
8348{
8349daemon ();
8350 ;
8351 return 0;
8352}
8353_ACEOF
8354rm -f conftest.$ac_objext conftest$ac_exeext
8355if { (eval echo "$as_me:8355: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>&5
8357 ac_status=$?
8358 echo "$as_me:8358: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:8361: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:8364: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 ac_cv_lib_bsd_daemon=yes
8367else
8368 echo "$as_me: failed program was:" >&5
8369cat conftest.$ac_ext >&5
8370ac_cv_lib_bsd_daemon=no
8371fi
8372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373LIBS=$ac_check_lib_save_LIBS
8374fi
8375echo "$as_me:8375: result: $ac_cv_lib_bsd_daemon" >&5
8376echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
8377if test $ac_cv_lib_bsd_daemon = yes; then
8378 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\EOF
8379#define HAVE_DAEMON 1
8380EOF
8381
8382fi
8383
8384fi
8385
8386echo "$as_me:8386: checking for getpagesize" >&5
8387echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
8388if test "${ac_cv_func_getpagesize+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 cat >conftest.$ac_ext <<_ACEOF
8392#line 8392 "configure"
8393#include "confdefs.h"
8394/* System header to define __stub macros and hopefully few prototypes,
8395 which can conflict with char getpagesize (); below. */
8396#include <assert.h>
8397/* Override any gcc2 internal prototype to avoid an error. */
8398#ifdef __cplusplus
8399extern "C"
8400#endif
8401/* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8403char getpagesize ();
8404char (*f) ();
8405
8406int
8407main ()
8408{
8409/* The GNU C library defines this for functions which it implements
8410 to always fail with ENOSYS. Some functions are actually named
8411 something starting with __ and the normal name is an alias. */
8412#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
8413choke me
8414#else
8415f = getpagesize;
8416#endif
8417
8418 ;
8419 return 0;
8420}
8421_ACEOF
8422rm -f conftest.$ac_objext conftest$ac_exeext
8423if { (eval echo "$as_me:8423: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>&5
8425 ac_status=$?
8426 echo "$as_me:8426: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:8429: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:8432: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_func_getpagesize=yes
8435else
8436 echo "$as_me: failed program was:" >&5
8437cat conftest.$ac_ext >&5
8438ac_cv_func_getpagesize=no
8439fi
8440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8441fi
8442echo "$as_me:8442: result: $ac_cv_func_getpagesize" >&5
8443echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
8444if test $ac_cv_func_getpagesize = yes; then
8445 cat >>confdefs.h <<\EOF
8446#define HAVE_GETPAGESIZE 1
8447EOF
8448
8449else
8450 echo "$as_me:8450: checking for getpagesize in -lucb" >&5
8451echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
8452if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455 ac_check_lib_save_LIBS=$LIBS
8456LIBS="-lucb $LIBS"
8457cat >conftest.$ac_ext <<_ACEOF
8458#line 8458 "configure"
8459#include "confdefs.h"
8460
8461/* Override any gcc2 internal prototype to avoid an error. */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465/* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467char getpagesize ();
8468int
8469main ()
8470{
8471getpagesize ();
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest.$ac_objext conftest$ac_exeext
8477if { (eval echo "$as_me:8477: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>&5
8479 ac_status=$?
8480 echo "$as_me:8480: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:8483: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:8486: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_lib_ucb_getpagesize=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491cat conftest.$ac_ext >&5
8492ac_cv_lib_ucb_getpagesize=no
8493fi
8494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8495LIBS=$ac_check_lib_save_LIBS
8496fi
8497echo "$as_me:8497: result: $ac_cv_lib_ucb_getpagesize" >&5
8498echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
8499if test $ac_cv_lib_ucb_getpagesize = yes; then
8500 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\EOF
8501#define HAVE_GETPAGESIZE 1
8502EOF
8503
8504fi
8505
8506fi
8507
8508# Check for broken snprintf
8509if test "x$ac_cv_func_snprintf" = "xyes" ; then
8510 echo "$as_me:8510: checking whether snprintf correctly terminates long strings" >&5
8511echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
8512 if test "$cross_compiling" = yes; then
8513 { { echo "$as_me:8513: error: cannot run test program while cross compiling" >&5
8514echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8515 { (exit 1); exit 1; }; }
8516else
8517 cat >conftest.$ac_ext <<_ACEOF
8518#line 8518 "configure"
8519#include "confdefs.h"
8520
8521#include <stdio.h>
8522int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
8523
8524_ACEOF
8525rm -f conftest$ac_exeext
8526if { (eval echo "$as_me:8526: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>&5
8528 ac_status=$?
8529 echo "$as_me:8529: \$? = $ac_status" >&5
8530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8531 { (eval echo "$as_me:8531: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:8534: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 echo "$as_me:8536: result: yes" >&5
8537echo "${ECHO_T}yes" >&6
8538else
8539 echo "$as_me: program exited with status $ac_status" >&5
8540echo "$as_me: failed program was:" >&5
8541cat conftest.$ac_ext >&5
8542
8543 echo "$as_me:8543: result: no" >&5
8544echo "${ECHO_T}no" >&6
8545 cat >>confdefs.h <<\EOF
8546#define BROKEN_SNPRINTF 1
8547EOF
8548
8549 { echo "$as_me:8549: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
8550echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
8551
8552fi
8553rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8554fi
8555fi
8556
8557if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8558echo "$as_me:8558: checking for (overly) strict mkstemp" >&5
8559echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8560if test "$cross_compiling" = yes; then
8561
8562 echo "$as_me:8562: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 cat >>confdefs.h <<\EOF
8565#define HAVE_STRICT_MKSTEMP 1
8566EOF
8567
8568else
8569 cat >conftest.$ac_ext <<_ACEOF
8570#line 8570 "configure"
8571#include "confdefs.h"
8572
8573#include <stdlib.h>
8574main() { char template[]="conftest.mkstemp-test";
8575if (mkstemp(template) == -1)
8576 exit(1);
8577unlink(template); exit(0);
8578}
8579
8580_ACEOF
8581rm -f conftest$ac_exeext
8582if { (eval echo "$as_me:8582: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>&5
8584 ac_status=$?
8585 echo "$as_me:8585: \$? = $ac_status" >&5
8586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8587 { (eval echo "$as_me:8587: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:8590: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592
8593 echo "$as_me:8593: result: no" >&5
8594echo "${ECHO_T}no" >&6
8595
8596else
8597 echo "$as_me: program exited with status $ac_status" >&5
8598echo "$as_me: failed program was:" >&5
8599cat conftest.$ac_ext >&5
8600
8601 echo "$as_me:8601: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 cat >>confdefs.h <<\EOF
8604#define HAVE_STRICT_MKSTEMP 1
8605EOF
8606
8607fi
8608rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8609fi
8610fi
8611
8612if test ! -z "$check_for_openpty_ctty_bug"; then
8613 echo "$as_me:8613: checking if openpty correctly handles controlling tty" >&5
8614echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
8615 if test "$cross_compiling" = yes; then
8616 { { echo "$as_me:8616: error: cannot run test program while cross compiling" >&5
8617echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8618 { (exit 1); exit 1; }; }
8619else
8620 cat >conftest.$ac_ext <<_ACEOF
8621#line 8621 "configure"
8622#include "confdefs.h"
8623
8624#include <stdio.h>
8625#include <sys/fcntl.h>
8626#include <sys/types.h>
8627#include <sys/wait.h>
8628
8629int
8630main()
8631{
8632 pid_t pid;
8633 int fd, ptyfd, ttyfd, status;
8634
8635 pid = fork();
8636 if (pid < 0) { /* failed */
8637 exit(1);
8638 } else if (pid > 0) { /* parent */
8639 waitpid(pid, &status, 0);
8640 if (WIFEXITED(status))
8641 exit(WEXITSTATUS(status));
8642 else
8643 exit(2);
8644 } else { /* child */
8645 close(0); close(1); close(2);
8646 setsid();
8647 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
8648 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
8649 if (fd >= 0)
8650 exit(3); /* Acquired ctty: broken */
8651 else
8652 exit(0); /* Did not acquire ctty: OK */
8653 }
8654}
8655
8656_ACEOF
8657rm -f conftest$ac_exeext
8658if { (eval echo "$as_me:8658: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:8661: \$? = $ac_status" >&5
8662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8663 { (eval echo "$as_me:8663: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:8666: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668
8669 echo "$as_me:8669: result: yes" >&5
8670echo "${ECHO_T}yes" >&6
8671
8672else
8673 echo "$as_me: program exited with status $ac_status" >&5
8674echo "$as_me: failed program was:" >&5
8675cat conftest.$ac_ext >&5
8676
8677 echo "$as_me:8677: result: no" >&5
8678echo "${ECHO_T}no" >&6
8679 cat >>confdefs.h <<\EOF
8680#define SSHD_ACQUIRES_CTTY 1
8681EOF
8682
8683fi
8684rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685fi
8686fi
8687
8688echo "$as_me:8688: checking whether getpgrp takes no argument" >&5
8689echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6
8690if test "${ac_cv_func_getpgrp_void+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693 # Use it with a single arg.
8694cat >conftest.$ac_ext <<_ACEOF
8695#line 8695 "configure"
8696#include "confdefs.h"
8697$ac_includes_default
8698int
8699main ()
8700{
8701getpgrp (0);
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext
8707if { (eval echo "$as_me:8707: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>&5
8709 ac_status=$?
8710 echo "$as_me:8710: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:8713: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:8716: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_func_getpgrp_1=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721cat conftest.$ac_ext >&5
8722ac_func_getpgrp_1=no
8723fi
8724rm -f conftest.$ac_objext conftest.$ac_ext
8725# Use it with no arg.
8726cat >conftest.$ac_ext <<_ACEOF
8727#line 8727 "configure"
8728#include "confdefs.h"
8729$ac_includes_default
8730int
8731main ()
8732{
8733getpgrp ();
8734 ;
8735 return 0;
8736}
8737_ACEOF
8738rm -f conftest.$ac_objext
8739if { (eval echo "$as_me:8739: \"$ac_compile\"") >&5
8740 (eval $ac_compile) 2>&5
8741 ac_status=$?
8742 echo "$as_me:8742: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:8745: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:8748: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_func_getpgrp_0=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753cat conftest.$ac_ext >&5
8754ac_func_getpgrp_0=no
8755fi
8756rm -f conftest.$ac_objext conftest.$ac_ext
8757# If both static checks agree, we are done.
8758case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in
8759 yes:no) ac_cv_func_getpgrp_void=yes;;
8760 no:yes) ac_cv_func_getpgrp_void=false;;
8761 *) if test "$cross_compiling" = yes; then
8762 { { echo "$as_me:8762: error: cannot check getpgrp if cross compiling" >&5
8763echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;}
8764 { (exit 1); exit 1; }; }
8765else
8766 cat >conftest.$ac_ext <<_ACEOF
8767#line 8767 "configure"
8768#include "confdefs.h"
8769$ac_includes_default
8770
8771/*
8772 * If this system has a BSD-style getpgrp(),
8773 * which takes a pid argument, exit unsuccessfully.
8774 *
8775 * Snarfed from Chet Ramey's bash pgrp.c test program
8776 */
8777
8778int pid;
8779int pg1, pg2, pg3, pg4;
8780int ng, np, s, child;
8781
8782int
8783main ()
8784{
8785 pid = getpid ();
8786 pg1 = getpgrp (0);
8787 pg2 = getpgrp ();
8788 pg3 = getpgrp (pid);
8789 pg4 = getpgrp (1);
8790
8791 /* If all of these values are the same, it's pretty sure that we're
8792 on a system that ignores getpgrp's first argument. */
8793 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
8794 exit (0);
8795
8796 child = fork ();
8797 if (child < 0)
8798 exit(1);
8799 else if (child == 0)
8800 {
8801 np = getpid ();
8802 /* If this is Sys V, this will not work; pgrp will be set to np
8803 because setpgrp just changes a pgrp to be the same as the
8804 pid. */
8805 setpgrp (np, pg1);
8806 ng = getpgrp (0); /* Same result for Sys V and BSD */
8807 if (ng == pg1)
8808 exit (1);
8809 else
8810 exit (0);
8811 }
8812 else
8813 {
8814 wait (&s);
8815 exit (s>>8);
8816 }
8817}
8818
8819_ACEOF
8820rm -f conftest$ac_exeext
8821if { (eval echo "$as_me:8821: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8823 ac_status=$?
8824 echo "$as_me:8824: \$? = $ac_status" >&5
8825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8826 { (eval echo "$as_me:8826: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:8829: \$? = $ac_status" >&5
8830 (exit $ac_status); }; }; then
8831 ac_cv_func_getpgrp_void=yes
8832else
8833 echo "$as_me: program exited with status $ac_status" >&5
8834echo "$as_me: failed program was:" >&5
8835cat conftest.$ac_ext >&5
8836ac_cv_func_getpgrp_void=no
8837fi
8838rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8839fi;;
8840esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1
8841
8842fi
8843echo "$as_me:8843: result: $ac_cv_func_getpgrp_void" >&5
8844echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8845if test $ac_cv_func_getpgrp_void = yes; then
8846
8847cat >>confdefs.h <<\EOF
8848#define GETPGRP_VOID 1
8849EOF
8850
8851fi
8852
8853# Check for PAM libs
8854PAM_MSG="no"
8855
8856# Check whether --with-pam or --without-pam was given.
8857if test "${with_pam+set}" = set; then
8858 withval="$with_pam"
8859
8860 if test "x$withval" != "xno" ; then
8861 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
8862 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
8863 { { echo "$as_me:8863: error: PAM headers not found" >&5
8864echo "$as_me: error: PAM headers not found" >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi
8867
8868echo "$as_me:8868: checking for dlopen in -ldl" >&5
8869echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8870if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872else
8873 ac_check_lib_save_LIBS=$LIBS
8874LIBS="-ldl $LIBS"
8875cat >conftest.$ac_ext <<_ACEOF
8876#line 8876 "configure"
8877#include "confdefs.h"
8878
8879/* Override any gcc2 internal prototype to avoid an error. */
8880#ifdef __cplusplus
8881extern "C"
8882#endif
8883/* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8885char dlopen ();
8886int
8887main ()
8888{
8889dlopen ();
8890 ;
8891 return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext conftest$ac_exeext
8895if { (eval echo "$as_me:8895: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8897 ac_status=$?
8898 echo "$as_me:8898: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:8901: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:8904: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_dl_dlopen=yes
8907else
8908 echo "$as_me: failed program was:" >&5
8909cat conftest.$ac_ext >&5
8910ac_cv_lib_dl_dlopen=no
8911fi
8912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913LIBS=$ac_check_lib_save_LIBS
8914fi
8915echo "$as_me:8915: result: $ac_cv_lib_dl_dlopen" >&5
8916echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8917if test $ac_cv_lib_dl_dlopen = yes; then
8918 cat >>confdefs.h <<EOF
8919#define HAVE_LIBDL 1
8920EOF
8921
8922 LIBS="-ldl $LIBS"
8923
8924fi
8925
8926echo "$as_me:8926: checking for pam_set_item in -lpam" >&5
8927echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8928if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930else
8931 ac_check_lib_save_LIBS=$LIBS
8932LIBS="-lpam $LIBS"
8933cat >conftest.$ac_ext <<_ACEOF
8934#line 8934 "configure"
8935#include "confdefs.h"
8936
8937/* Override any gcc2 internal prototype to avoid an error. */
8938#ifdef __cplusplus
8939extern "C"
8940#endif
8941/* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */
8943char pam_set_item ();
8944int
8945main ()
8946{
8947pam_set_item ();
8948 ;
8949 return 0;
8950}
8951_ACEOF
8952rm -f conftest.$ac_objext conftest$ac_exeext
8953if { (eval echo "$as_me:8953: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>&5
8955 ac_status=$?
8956 echo "$as_me:8956: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:8959: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:8962: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_lib_pam_pam_set_item=yes
8965else
8966 echo "$as_me: failed program was:" >&5
8967cat conftest.$ac_ext >&5
8968ac_cv_lib_pam_pam_set_item=no
8969fi
8970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8971LIBS=$ac_check_lib_save_LIBS
8972fi
8973echo "$as_me:8973: result: $ac_cv_lib_pam_pam_set_item" >&5
8974echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8975if test $ac_cv_lib_pam_pam_set_item = yes; then
8976 cat >>confdefs.h <<EOF
8977#define HAVE_LIBPAM 1
8978EOF
8979
8980 LIBS="-lpam $LIBS"
8981
8982else
8983 { { echo "$as_me:8983: error: *** libpam missing" >&5
8984echo "$as_me: error: *** libpam missing" >&2;}
8985 { (exit 1); exit 1; }; }
8986fi
8987
8988for ac_func in pam_getenvlist
8989do
8990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8991echo "$as_me:8991: checking for $ac_func" >&5
8992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8993if eval "test \"\${$as_ac_var+set}\" = set"; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995else
8996 cat >conftest.$ac_ext <<_ACEOF
8997#line 8997 "configure"
8998#include "confdefs.h"
8999/* System header to define __stub macros and hopefully few prototypes,
9000 which can conflict with char $ac_func (); below. */
9001#include <assert.h>
9002/* Override any gcc2 internal prototype to avoid an error. */
9003#ifdef __cplusplus
9004extern "C"
9005#endif
9006/* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008char $ac_func ();
9009char (*f) ();
9010
9011int
9012main ()
9013{
9014/* The GNU C library defines this for functions which it implements
9015 to always fail with ENOSYS. Some functions are actually named
9016 something starting with __ and the normal name is an alias. */
9017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9018choke me
9019#else
9020f = $ac_func;
9021#endif
9022
9023 ;
9024 return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext
9028if { (eval echo "$as_me:9028: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>&5
9030 ac_status=$?
9031 echo "$as_me:9031: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:9034: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:9037: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 eval "$as_ac_var=yes"
9040else
9041 echo "$as_me: failed program was:" >&5
9042cat conftest.$ac_ext >&5
9043eval "$as_ac_var=no"
9044fi
9045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9046fi
9047echo "$as_me:9047: result: `eval echo '${'$as_ac_var'}'`" >&5
9048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9049if test `eval echo '${'$as_ac_var'}'` = yes; then
9050 cat >>confdefs.h <<EOF
9051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9052EOF
9053
9054fi
9055done
9056
9057for ac_func in pam_putenv
9058do
9059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060echo "$as_me:9060: checking for $ac_func" >&5
9061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9062if eval "test \"\${$as_ac_var+set}\" = set"; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 cat >conftest.$ac_ext <<_ACEOF
9066#line 9066 "configure"
9067#include "confdefs.h"
9068/* System header to define __stub macros and hopefully few prototypes,
9069 which can conflict with char $ac_func (); below. */
9070#include <assert.h>
9071/* Override any gcc2 internal prototype to avoid an error. */
9072#ifdef __cplusplus
9073extern "C"
9074#endif
9075/* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9077char $ac_func ();
9078char (*f) ();
9079
9080int
9081main ()
9082{
9083/* The GNU C library defines this for functions which it implements
9084 to always fail with ENOSYS. Some functions are actually named
9085 something starting with __ and the normal name is an alias. */
9086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9087choke me
9088#else
9089f = $ac_func;
9090#endif
9091
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext conftest$ac_exeext
9097if { (eval echo "$as_me:9097: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>&5
9099 ac_status=$?
9100 echo "$as_me:9100: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -s conftest$ac_exeext'
9103 { (eval echo "$as_me:9103: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:9106: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 eval "$as_ac_var=yes"
9109else
9110 echo "$as_me: failed program was:" >&5
9111cat conftest.$ac_ext >&5
9112eval "$as_ac_var=no"
9113fi
9114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9115fi
9116echo "$as_me:9116: result: `eval echo '${'$as_ac_var'}'`" >&5
9117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9118if test `eval echo '${'$as_ac_var'}'` = yes; then
9119 cat >>confdefs.h <<EOF
9120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9121EOF
9122
9123fi
9124done
9125
9126 PAM_MSG="yes"
9127
9128 cat >>confdefs.h <<\EOF
9129#define USE_PAM 1
9130EOF
9131
9132 if test $ac_cv_lib_dl_dlopen = yes; then
9133 LIBPAM="-lpam -ldl"
9134 else
9135 LIBPAM="-lpam"
9136 fi
9137
9138 fi
9139
9140fi;
9141
9142# Check for older PAM
9143if test "x$PAM_MSG" = "xyes" ; then
9144 # Check PAM strerror arguments (old PAM)
9145 echo "$as_me:9145: checking whether pam_strerror takes only one argument" >&5
9146echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148#line 9148 "configure"
9149#include "confdefs.h"
9150
9151#include <stdlib.h>
9152#if defined(HAVE_SECURITY_PAM_APPL_H)
9153#include <security/pam_appl.h>
9154#elif defined (HAVE_PAM_PAM_APPL_H)
9155#include <pam/pam_appl.h>
9156#endif
9157
9158int
9159main ()
9160{
9161(void)pam_strerror((pam_handle_t *)NULL, -1);
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext
9167if { (eval echo "$as_me:9167: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>&5
9169 ac_status=$?
9170 echo "$as_me:9170: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -s conftest.$ac_objext'
9173 { (eval echo "$as_me:9173: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:9176: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 echo "$as_me:9178: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180else
9181 echo "$as_me: failed program was:" >&5
9182cat conftest.$ac_ext >&5
9183
9184 cat >>confdefs.h <<\EOF
9185#define HAVE_OLD_PAM 1
9186EOF
9187
9188 echo "$as_me:9188: result: yes" >&5
9189echo "${ECHO_T}yes" >&6
9190 PAM_MSG="yes (old library)"
9191
9192fi
9193rm -f conftest.$ac_objext conftest.$ac_ext
9194fi
9195
9196# Search for OpenSSL
9197saved_CPPFLAGS="$CPPFLAGS"
9198saved_LDFLAGS="$LDFLAGS"
9199
9200# Check whether --with-ssl-dir or --without-ssl-dir was given.
9201if test "${with_ssl_dir+set}" = set; then
9202 withval="$with_ssl_dir"
9203
9204 if test "x$withval" != "xno" ; then
9205 if test -d "$withval/lib"; then
9206 if test -n "${need_dash_r}"; then
9207 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9208 else
9209 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9210 fi
9211 else
9212 if test -n "${need_dash_r}"; then
9213 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9214 else
9215 LDFLAGS="-L${withval} ${LDFLAGS}"
9216 fi
9217 fi
9218 if test -d "$withval/include"; then
9219 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9220 else
9221 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9222 fi
9223 fi
9224
9225fi;
9226LIBS="-lcrypto $LIBS"
9227cat >conftest.$ac_ext <<_ACEOF
9228#line 9228 "configure"
9229#include "confdefs.h"
9230
9231/* Override any gcc2 internal prototype to avoid an error. */
9232#ifdef __cplusplus
9233extern "C"
9234#endif
9235/* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9237char RAND_add ();
9238int
9239main ()
9240{
9241RAND_add ();
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:9247: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>&5
9249 ac_status=$?
9250 echo "$as_me:9250: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:9253: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:9256: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 cat >>confdefs.h <<\EOF
9259#define HAVE_OPENSSL 1
9260EOF
9261
9262else
9263 echo "$as_me: failed program was:" >&5
9264cat conftest.$ac_ext >&5
9265
9266 if test -n "${need_dash_r}"; then
9267 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
9268 else
9269 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
9270 fi
9271 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
9272 cat >conftest.$ac_ext <<_ACEOF
9273#line 9273 "configure"
9274#include "confdefs.h"
9275
9276/* Override any gcc2 internal prototype to avoid an error. */
9277#ifdef __cplusplus
9278extern "C"
9279#endif
9280/* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282char RAND_add ();
9283int
9284main ()
9285{
9286RAND_add ();
9287 ;
9288 return 0;
9289}
9290_ACEOF
9291rm -f conftest.$ac_objext conftest$ac_exeext
9292if { (eval echo "$as_me:9292: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9294 ac_status=$?
9295 echo "$as_me:9295: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:9298: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:9301: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 cat >>confdefs.h <<\EOF
9304#define HAVE_OPENSSL 1
9305EOF
9306
9307else
9308 echo "$as_me: failed program was:" >&5
9309cat conftest.$ac_ext >&5
9310
9311 { { echo "$as_me:9311: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
9312echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
9313 { (exit 1); exit 1; }; }
9314
9315fi
9316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9317
9318fi
9319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9320
9321# Determine OpenSSL header version
9322echo "$as_me:9322: checking OpenSSL header version" >&5
9323echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
9324if test "$cross_compiling" = yes; then
9325 { { echo "$as_me:9325: error: cannot run test program while cross compiling" >&5
9326echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9327 { (exit 1); exit 1; }; }
9328else
9329 cat >conftest.$ac_ext <<_ACEOF
9330#line 9330 "configure"
9331#include "confdefs.h"
9332
9333#include <stdio.h>
9334#include <string.h>
9335#include <openssl/opensslv.h>
9336#define DATA "conftest.sslincver"
9337int main(void) {
9338 FILE *fd;
9339 int rc;
9340
9341 fd = fopen(DATA,"w");
9342 if(fd == NULL)
9343 exit(1);
9344
9345 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
9346 exit(1);
9347
9348 exit(0);
9349}
9350
9351_ACEOF
9352rm -f conftest$ac_exeext
9353if { (eval echo "$as_me:9353: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>&5
9355 ac_status=$?
9356 echo "$as_me:9356: \$? = $ac_status" >&5
9357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9358 { (eval echo "$as_me:9358: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:9361: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363
9364 ssl_header_ver=`cat conftest.sslincver`
9365 echo "$as_me:9365: result: $ssl_header_ver" >&5
9366echo "${ECHO_T}$ssl_header_ver" >&6
9367
9368else
9369 echo "$as_me: program exited with status $ac_status" >&5
9370echo "$as_me: failed program was:" >&5
9371cat conftest.$ac_ext >&5
9372
9373 echo "$as_me:9373: result: not found" >&5
9374echo "${ECHO_T}not found" >&6
9375 { { echo "$as_me:9375: error: OpenSSL version header not found." >&5
9376echo "$as_me: error: OpenSSL version header not found." >&2;}
9377 { (exit 1); exit 1; }; }
9378
9379fi
9380rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9381fi
9382
9383# Determine OpenSSL library version
9384echo "$as_me:9384: checking OpenSSL library version" >&5
9385echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
9386if test "$cross_compiling" = yes; then
9387 { { echo "$as_me:9387: error: cannot run test program while cross compiling" >&5
9388echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9389 { (exit 1); exit 1; }; }
9390else
9391 cat >conftest.$ac_ext <<_ACEOF
9392#line 9392 "configure"
9393#include "confdefs.h"
9394
9395#include <stdio.h>
9396#include <string.h>
9397#include <openssl/opensslv.h>
9398#include <openssl/crypto.h>
9399#define DATA "conftest.ssllibver"
9400int main(void) {
9401 FILE *fd;
9402 int rc;
9403
9404 fd = fopen(DATA,"w");
9405 if(fd == NULL)
9406 exit(1);
9407
9408 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9409 exit(1);
9410
9411 exit(0);
9412}
9413
9414_ACEOF
9415rm -f conftest$ac_exeext
9416if { (eval echo "$as_me:9416: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9418 ac_status=$?
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9421 { (eval echo "$as_me:9421: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:9424: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426
9427 ssl_library_ver=`cat conftest.ssllibver`
9428 echo "$as_me:9428: result: $ssl_library_ver" >&5
9429echo "${ECHO_T}$ssl_library_ver" >&6
9430
9431else
9432 echo "$as_me: program exited with status $ac_status" >&5
9433echo "$as_me: failed program was:" >&5
9434cat conftest.$ac_ext >&5
9435
9436 echo "$as_me:9436: result: not found" >&5
9437echo "${ECHO_T}not found" >&6
9438 { { echo "$as_me:9438: error: OpenSSL library not found." >&5
9439echo "$as_me: error: OpenSSL library not found." >&2;}
9440 { (exit 1); exit 1; }; }
9441
9442fi
9443rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9444fi
9445
9446# Sanity check OpenSSL headers
9447echo "$as_me:9447: checking whether OpenSSL's headers match the library" >&5
9448echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
9449if test "$cross_compiling" = yes; then
9450 { { echo "$as_me:9450: error: cannot run test program while cross compiling" >&5
9451echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9452 { (exit 1); exit 1; }; }
9453else
9454 cat >conftest.$ac_ext <<_ACEOF
9455#line 9455 "configure"
9456#include "confdefs.h"
9457
9458#include <string.h>
9459#include <openssl/opensslv.h>
9460int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9461
9462_ACEOF
9463rm -f conftest$ac_exeext
9464if { (eval echo "$as_me:9464: \"$ac_link\"") >&5
9465 (eval $ac_link) 2>&5
9466 ac_status=$?
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9469 { (eval echo "$as_me:9469: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474
9475 echo "$as_me:9475: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477
9478else
9479 echo "$as_me: program exited with status $ac_status" >&5
9480echo "$as_me: failed program was:" >&5
9481cat conftest.$ac_ext >&5
9482
9483 echo "$as_me:9483: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 { { echo "$as_me:9485: error: Your OpenSSL headers do not match your library.
9486Check config.log for details.
9487Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
9488echo "$as_me: error: Your OpenSSL headers do not match your library.
9489Check config.log for details.
9490Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
9491 { (exit 1); exit 1; }; }
9492
9493fi
9494rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9495fi
9496
9497# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
9498# because the system crypt() is more featureful.
9499if test "x$check_for_libcrypt_before" = "x1"; then
9500
9501echo "$as_me:9501: checking for crypt in -lcrypt" >&5
9502echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9503if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506 ac_check_lib_save_LIBS=$LIBS
9507LIBS="-lcrypt $LIBS"
9508cat >conftest.$ac_ext <<_ACEOF
9509#line 9509 "configure"
9510#include "confdefs.h"
9511
9512/* Override any gcc2 internal prototype to avoid an error. */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516/* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518char crypt ();
9519int
9520main ()
9521{
9522crypt ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (eval echo "$as_me:9528: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9530 ac_status=$?
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:9534: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:9537: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_crypt_crypt=yes
9540else
9541 echo "$as_me: failed program was:" >&5
9542cat conftest.$ac_ext >&5
9543ac_cv_lib_crypt_crypt=no
9544fi
9545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546LIBS=$ac_check_lib_save_LIBS
9547fi
9548echo "$as_me:9548: result: $ac_cv_lib_crypt_crypt" >&5
9549echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9550if test $ac_cv_lib_crypt_crypt = yes; then
9551 cat >>confdefs.h <<EOF
9552#define HAVE_LIBCRYPT 1
9553EOF
9554
9555 LIBS="-lcrypt $LIBS"
9556
9557fi
9558
9559fi
9560
9561# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9562# version in OpenSSL.
9563if test "x$check_for_libcrypt_later" = "x1"; then
9564 echo "$as_me:9564: checking for crypt in -lcrypt" >&5
9565echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9566if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569 ac_check_lib_save_LIBS=$LIBS
9570LIBS="-lcrypt $LIBS"
9571cat >conftest.$ac_ext <<_ACEOF
9572#line 9572 "configure"
9573#include "confdefs.h"
9574
9575/* Override any gcc2 internal prototype to avoid an error. */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579/* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581char crypt ();
9582int
9583main ()
9584{
9585crypt ();
9586 ;
9587 return 0;
9588}
9589_ACEOF
9590rm -f conftest.$ac_objext conftest$ac_exeext
9591if { (eval echo "$as_me:9591: \"$ac_link\"") >&5
9592 (eval $ac_link) 2>&5
9593 ac_status=$?
9594 echo "$as_me:9594: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -s conftest$ac_exeext'
9597 { (eval echo "$as_me:9597: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:9600: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_lib_crypt_crypt=yes
9603else
9604 echo "$as_me: failed program was:" >&5
9605cat conftest.$ac_ext >&5
9606ac_cv_lib_crypt_crypt=no
9607fi
9608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9609LIBS=$ac_check_lib_save_LIBS
9610fi
9611echo "$as_me:9611: result: $ac_cv_lib_crypt_crypt" >&5
9612echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9613if test $ac_cv_lib_crypt_crypt = yes; then
9614 LIBS="$LIBS -lcrypt"
9615fi
9616
9617fi
9618
9619### Configure cryptographic random number support
9620
9621# Check wheter OpenSSL seeds itself
9622echo "$as_me:9622: checking whether OpenSSL's PRNG is internally seeded" >&5
9623echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
9624if test "$cross_compiling" = yes; then
9625 { { echo "$as_me:9625: error: cannot run test program while cross compiling" >&5
9626echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9627 { (exit 1); exit 1; }; }
9628else
9629 cat >conftest.$ac_ext <<_ACEOF
9630#line 9630 "configure"
9631#include "confdefs.h"
9632
9633#include <string.h>
9634#include <openssl/rand.h>
9635int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
9636
9637_ACEOF
9638rm -f conftest$ac_exeext
9639if { (eval echo "$as_me:9639: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9641 ac_status=$?
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9644 { (eval echo "$as_me:9644: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:9647: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649
9650 OPENSSL_SEEDS_ITSELF=yes
9651 echo "$as_me:9651: result: yes" >&5
9652echo "${ECHO_T}yes" >&6
9653
9654else
9655 echo "$as_me: program exited with status $ac_status" >&5
9656echo "$as_me: failed program was:" >&5
9657cat conftest.$ac_ext >&5
9658
9659 echo "$as_me:9659: result: no" >&5
9660echo "${ECHO_T}no" >&6
9661 # Default to use of the rand helper if OpenSSL doesn't
9662 # seed itself
9663 USE_RAND_HELPER=yes
9664
9665fi
9666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9667fi
9668
9669# Do we want to force the use of the rand helper?
9670
9671# Check whether --with-rand-helper or --without-rand-helper was given.
9672if test "${with_rand_helper+set}" = set; then
9673 withval="$with_rand_helper"
9674
9675 if test "x$withval" = "xno" ; then
9676 # Force use of OpenSSL's internal RNG, even if
9677 # the previous test showed it to be unseeded.
9678 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
9679 { echo "$as_me:9679: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
9680echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
9681 OPENSSL_SEEDS_ITSELF=yes
9682 USE_RAND_HELPER=""
9683 fi
9684 else
9685 USE_RAND_HELPER=yes
9686 fi
9687
9688fi;
9689
9690# Which randomness source do we use?
9691if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
9692 # OpenSSL only
9693 cat >>confdefs.h <<\EOF
9694#define OPENSSL_PRNG_ONLY 1
9695EOF
9696
9697 RAND_MSG="OpenSSL internal ONLY"
9698 INSTALL_SSH_RAND_HELPER=""
9699elif test ! -z "$USE_RAND_HELPER" ; then
9700 # install rand helper
9701 RAND_MSG="ssh-rand-helper"
9702 INSTALL_SSH_RAND_HELPER="yes"
9703fi
9704
9705### Configuration of ssh-rand-helper
9706
9707# PRNGD TCP socket
9708
9709# Check whether --with-prngd-port or --without-prngd-port was given.
9710if test "${with_prngd_port+set}" = set; then
9711 withval="$with_prngd_port"
9712
9713 case "$withval" in
9714 no)
9715 withval=""
9716 ;;
9717 [0-9]*)
9718 ;;
9719 *)
9720 { { echo "$as_me:9720: error: You must specify a numeric port number for --with-prngd-port" >&5
9721echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
9722 { (exit 1); exit 1; }; }
9723 ;;
9724 esac
9725 if test ! -z "$withval" ; then
9726 PRNGD_PORT="$withval"
9727 cat >>confdefs.h <<EOF
9728#define PRNGD_PORT $PRNGD_PORT
9729EOF
9730
9731 fi
9732
9733fi;
9734
9735# PRNGD Unix domain socket
9736
9737# Check whether --with-prngd-socket or --without-prngd-socket was given.
9738if test "${with_prngd_socket+set}" = set; then
9739 withval="$with_prngd_socket"
9740
9741 case "$withval" in
9742 yes)
9743 withval="/var/run/egd-pool"
9744 ;;
9745 no)
9746 withval=""
9747 ;;
9748 /*)
9749 ;;
9750 *)
9751 { { echo "$as_me:9751: error: You must specify an absolute path to the entropy socket" >&5
9752echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
9753 { (exit 1); exit 1; }; }
9754 ;;
9755 esac
9756
9757 if test ! -z "$withval" ; then
9758 if test ! -z "$PRNGD_PORT" ; then
9759 { { echo "$as_me:9759: error: You may not specify both a PRNGD/EGD port and socket" >&5
9760echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
9761 { (exit 1); exit 1; }; }
9762 fi
9763 if test ! -r "$withval" ; then
9764 { echo "$as_me:9764: WARNING: Entropy socket is not readable" >&5
9765echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
9766 fi
9767 PRNGD_SOCKET="$withval"
9768 cat >>confdefs.h <<EOF
9769#define PRNGD_SOCKET "$PRNGD_SOCKET"
9770EOF
9771
9772 fi
9773
9774else
9775
9776 # Check for existing socket only if we don't have a random device already
9777 if test "$USE_RAND_HELPER" = yes ; then
9778 echo "$as_me:9778: checking for PRNGD/EGD socket" >&5
9779echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
9780 # Insert other locations here
9781 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
9782 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
9783 PRNGD_SOCKET="$sock"
9784 cat >>confdefs.h <<EOF
9785#define PRNGD_SOCKET "$PRNGD_SOCKET"
9786EOF
9787
9788 break;
9789 fi
9790 done
9791 if test ! -z "$PRNGD_SOCKET" ; then
9792 echo "$as_me:9792: result: $PRNGD_SOCKET" >&5
9793echo "${ECHO_T}$PRNGD_SOCKET" >&6
9794 else
9795 echo "$as_me:9795: result: not found" >&5
9796echo "${ECHO_T}not found" >&6
9797 fi
9798 fi
9799
9800fi;
9801
9802# Change default command timeout for hashing entropy source
9803entropy_timeout=200
9804
9805# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
9806if test "${with_entropy_timeout+set}" = set; then
9807 withval="$with_entropy_timeout"
9808
9809 if test "x$withval" != "xno" ; then
9810 entropy_timeout=$withval
9811 fi
9812
9813fi;
9814cat >>confdefs.h <<EOF
9815#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
9816EOF
9817
9818SSH_PRIVSEP_USER=sshd
9819
9820# Check whether --with-privsep-user or --without-privsep-user was given.
9821if test "${with_privsep_user+set}" = set; then
9822 withval="$with_privsep_user"
9823
9824 if test -n "$withval"; then
9825 SSH_PRIVSEP_USER=$withval
9826 fi
9827
9828fi;
9829cat >>confdefs.h <<EOF
9830#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9831EOF
9832
9833# We do this little dance with the search path to insure
9834# that programs that we select for use by installed programs
9835# (which may be run by the super-user) come from trusted
9836# locations before they come from the user's private area.
9837# This should help avoid accidentally configuring some
9838# random version of a program in someone's personal bin.
9839
9840OPATH=$PATH
9841PATH=/bin:/usr/bin
9842test -h /bin 2> /dev/null && PATH=/usr/bin
9843test -d /sbin && PATH=$PATH:/sbin
9844test -d /usr/sbin && PATH=$PATH:/usr/sbin
9845PATH=$PATH:/etc:$OPATH
9846
9847# These programs are used by the command hashing source to gather entropy
9848
9849 # Extract the first word of "ls", so it can be a program name with args.
9850set dummy ls; ac_word=$2
9851echo "$as_me:9851: checking for $ac_word" >&5
9852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853if test "${ac_cv_path_PROG_LS+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856 case $PROG_LS in
9857 [\\/]* | ?:[\\/]*)
9858 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9859 ;;
9860 *)
9861 ac_save_IFS=$IFS; IFS=$ac_path_separator
9862ac_dummy="$PATH"
9863for ac_dir in $ac_dummy; do
9864 IFS=$ac_save_IFS
9865 test -z "$ac_dir" && ac_dir=.
9866 if $as_executable_p "$ac_dir/$ac_word"; then
9867 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
9868 echo "$as_me:9868: found $ac_dir/$ac_word" >&5
9869 break
9870fi
9871done
9872
9873 ;;
9874esac
9875fi
9876PROG_LS=$ac_cv_path_PROG_LS
9877
9878if test -n "$PROG_LS"; then
9879 echo "$as_me:9879: result: $PROG_LS" >&5
9880echo "${ECHO_T}$PROG_LS" >&6
9881else
9882 echo "$as_me:9882: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884fi
9885
9886 if test -z "$PROG_LS" ; then
9887 PROG_LS="undef"
9888 fi
9889
9890 # Extract the first word of "netstat", so it can be a program name with args.
9891set dummy netstat; ac_word=$2
9892echo "$as_me:9892: checking for $ac_word" >&5
9893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9894if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896else
9897 case $PROG_NETSTAT in
9898 [\\/]* | ?:[\\/]*)
9899 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9900 ;;
9901 *)
9902 ac_save_IFS=$IFS; IFS=$ac_path_separator
9903ac_dummy="$PATH"
9904for ac_dir in $ac_dummy; do
9905 IFS=$ac_save_IFS
9906 test -z "$ac_dir" && ac_dir=.
9907 if $as_executable_p "$ac_dir/$ac_word"; then
9908 ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word"
9909 echo "$as_me:9909: found $ac_dir/$ac_word" >&5
9910 break
9911fi
9912done
9913
9914 ;;
9915esac
9916fi
9917PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9918
9919if test -n "$PROG_NETSTAT"; then
9920 echo "$as_me:9920: result: $PROG_NETSTAT" >&5
9921echo "${ECHO_T}$PROG_NETSTAT" >&6
9922else
9923 echo "$as_me:9923: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925fi
9926
9927 if test -z "$PROG_NETSTAT" ; then
9928 PROG_NETSTAT="undef"
9929 fi
9930
9931 # Extract the first word of "arp", so it can be a program name with args.
9932set dummy arp; ac_word=$2
9933echo "$as_me:9933: checking for $ac_word" >&5
9934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9935if test "${ac_cv_path_PROG_ARP+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937else
9938 case $PROG_ARP in
9939 [\\/]* | ?:[\\/]*)
9940 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9941 ;;
9942 *)
9943 ac_save_IFS=$IFS; IFS=$ac_path_separator
9944ac_dummy="$PATH"
9945for ac_dir in $ac_dummy; do
9946 IFS=$ac_save_IFS
9947 test -z "$ac_dir" && ac_dir=.
9948 if $as_executable_p "$ac_dir/$ac_word"; then
9949 ac_cv_path_PROG_ARP="$ac_dir/$ac_word"
9950 echo "$as_me:9950: found $ac_dir/$ac_word" >&5
9951 break
9952fi
9953done
9954
9955 ;;
9956esac
9957fi
9958PROG_ARP=$ac_cv_path_PROG_ARP
9959
9960if test -n "$PROG_ARP"; then
9961 echo "$as_me:9961: result: $PROG_ARP" >&5
9962echo "${ECHO_T}$PROG_ARP" >&6
9963else
9964 echo "$as_me:9964: result: no" >&5
9965echo "${ECHO_T}no" >&6
9966fi
9967
9968 if test -z "$PROG_ARP" ; then
9969 PROG_ARP="undef"
9970 fi
9971
9972 # Extract the first word of "ifconfig", so it can be a program name with args.
9973set dummy ifconfig; ac_word=$2
9974echo "$as_me:9974: checking for $ac_word" >&5
9975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 case $PROG_IFCONFIG in
9980 [\\/]* | ?:[\\/]*)
9981 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9982 ;;
9983 *)
9984 ac_save_IFS=$IFS; IFS=$ac_path_separator
9985ac_dummy="$PATH"
9986for ac_dir in $ac_dummy; do
9987 IFS=$ac_save_IFS
9988 test -z "$ac_dir" && ac_dir=.
9989 if $as_executable_p "$ac_dir/$ac_word"; then
9990 ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word"
9991 echo "$as_me:9991: found $ac_dir/$ac_word" >&5
9992 break
9993fi
9994done
9995
9996 ;;
9997esac
9998fi
9999PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
10000
10001if test -n "$PROG_IFCONFIG"; then
10002 echo "$as_me:10002: result: $PROG_IFCONFIG" >&5
10003echo "${ECHO_T}$PROG_IFCONFIG" >&6
10004else
10005 echo "$as_me:10005: result: no" >&5
10006echo "${ECHO_T}no" >&6
10007fi
10008
10009 if test -z "$PROG_IFCONFIG" ; then
10010 PROG_IFCONFIG="undef"
10011 fi
10012
10013 # Extract the first word of "jstat", so it can be a program name with args.
10014set dummy jstat; ac_word=$2
10015echo "$as_me:10015: checking for $ac_word" >&5
10016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10017if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 case $PROG_JSTAT in
10021 [\\/]* | ?:[\\/]*)
10022 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
10023 ;;
10024 *)
10025 ac_save_IFS=$IFS; IFS=$ac_path_separator
10026ac_dummy="$PATH"
10027for ac_dir in $ac_dummy; do
10028 IFS=$ac_save_IFS
10029 test -z "$ac_dir" && ac_dir=.
10030 if $as_executable_p "$ac_dir/$ac_word"; then
10031 ac_cv_path_PROG_JSTAT="$ac_dir/$ac_word"
10032 echo "$as_me:10032: found $ac_dir/$ac_word" >&5
10033 break
10034fi
10035done
10036
10037 ;;
10038esac
10039fi
10040PROG_JSTAT=$ac_cv_path_PROG_JSTAT
10041
10042if test -n "$PROG_JSTAT"; then
10043 echo "$as_me:10043: result: $PROG_JSTAT" >&5
10044echo "${ECHO_T}$PROG_JSTAT" >&6
10045else
10046 echo "$as_me:10046: result: no" >&5
10047echo "${ECHO_T}no" >&6
10048fi
10049
10050 if test -z "$PROG_JSTAT" ; then
10051 PROG_JSTAT="undef"
10052 fi
10053
10054 # Extract the first word of "ps", so it can be a program name with args.
10055set dummy ps; ac_word=$2
10056echo "$as_me:10056: checking for $ac_word" >&5
10057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10058if test "${ac_cv_path_PROG_PS+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 case $PROG_PS in
10062 [\\/]* | ?:[\\/]*)
10063 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
10064 ;;
10065 *)
10066 ac_save_IFS=$IFS; IFS=$ac_path_separator
10067ac_dummy="$PATH"
10068for ac_dir in $ac_dummy; do
10069 IFS=$ac_save_IFS
10070 test -z "$ac_dir" && ac_dir=.
10071 if $as_executable_p "$ac_dir/$ac_word"; then
10072 ac_cv_path_PROG_PS="$ac_dir/$ac_word"
10073 echo "$as_me:10073: found $ac_dir/$ac_word" >&5
10074 break
10075fi
10076done
10077
10078 ;;
10079esac
10080fi
10081PROG_PS=$ac_cv_path_PROG_PS
10082
10083if test -n "$PROG_PS"; then
10084 echo "$as_me:10084: result: $PROG_PS" >&5
10085echo "${ECHO_T}$PROG_PS" >&6
10086else
10087 echo "$as_me:10087: result: no" >&5
10088echo "${ECHO_T}no" >&6
10089fi
10090
10091 if test -z "$PROG_PS" ; then
10092 PROG_PS="undef"
10093 fi
10094
10095 # Extract the first word of "sar", so it can be a program name with args.
10096set dummy sar; ac_word=$2
10097echo "$as_me:10097: checking for $ac_word" >&5
10098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099if test "${ac_cv_path_PROG_SAR+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102 case $PROG_SAR in
10103 [\\/]* | ?:[\\/]*)
10104 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
10105 ;;
10106 *)
10107 ac_save_IFS=$IFS; IFS=$ac_path_separator
10108ac_dummy="$PATH"
10109for ac_dir in $ac_dummy; do
10110 IFS=$ac_save_IFS
10111 test -z "$ac_dir" && ac_dir=.
10112 if $as_executable_p "$ac_dir/$ac_word"; then
10113 ac_cv_path_PROG_SAR="$ac_dir/$ac_word"
10114 echo "$as_me:10114: found $ac_dir/$ac_word" >&5
10115 break
10116fi
10117done
10118
10119 ;;
10120esac
10121fi
10122PROG_SAR=$ac_cv_path_PROG_SAR
10123
10124if test -n "$PROG_SAR"; then
10125 echo "$as_me:10125: result: $PROG_SAR" >&5
10126echo "${ECHO_T}$PROG_SAR" >&6
10127else
10128 echo "$as_me:10128: result: no" >&5
10129echo "${ECHO_T}no" >&6
10130fi
10131
10132 if test -z "$PROG_SAR" ; then
10133 PROG_SAR="undef"
10134 fi
10135
10136 # Extract the first word of "w", so it can be a program name with args.
10137set dummy w; ac_word=$2
10138echo "$as_me:10138: checking for $ac_word" >&5
10139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10140if test "${ac_cv_path_PROG_W+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 case $PROG_W in
10144 [\\/]* | ?:[\\/]*)
10145 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
10146 ;;
10147 *)
10148 ac_save_IFS=$IFS; IFS=$ac_path_separator
10149ac_dummy="$PATH"
10150for ac_dir in $ac_dummy; do
10151 IFS=$ac_save_IFS
10152 test -z "$ac_dir" && ac_dir=.
10153 if $as_executable_p "$ac_dir/$ac_word"; then
10154 ac_cv_path_PROG_W="$ac_dir/$ac_word"
10155 echo "$as_me:10155: found $ac_dir/$ac_word" >&5
10156 break
10157fi
10158done
10159
10160 ;;
10161esac
10162fi
10163PROG_W=$ac_cv_path_PROG_W
10164
10165if test -n "$PROG_W"; then
10166 echo "$as_me:10166: result: $PROG_W" >&5
10167echo "${ECHO_T}$PROG_W" >&6
10168else
10169 echo "$as_me:10169: result: no" >&5
10170echo "${ECHO_T}no" >&6
10171fi
10172
10173 if test -z "$PROG_W" ; then
10174 PROG_W="undef"
10175 fi
10176
10177 # Extract the first word of "who", so it can be a program name with args.
10178set dummy who; ac_word=$2
10179echo "$as_me:10179: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_path_PROG_WHO+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 case $PROG_WHO in
10185 [\\/]* | ?:[\\/]*)
10186 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
10187 ;;
10188 *)
10189 ac_save_IFS=$IFS; IFS=$ac_path_separator
10190ac_dummy="$PATH"
10191for ac_dir in $ac_dummy; do
10192 IFS=$ac_save_IFS
10193 test -z "$ac_dir" && ac_dir=.
10194 if $as_executable_p "$ac_dir/$ac_word"; then
10195 ac_cv_path_PROG_WHO="$ac_dir/$ac_word"
10196 echo "$as_me:10196: found $ac_dir/$ac_word" >&5
10197 break
10198fi
10199done
10200
10201 ;;
10202esac
10203fi
10204PROG_WHO=$ac_cv_path_PROG_WHO
10205
10206if test -n "$PROG_WHO"; then
10207 echo "$as_me:10207: result: $PROG_WHO" >&5
10208echo "${ECHO_T}$PROG_WHO" >&6
10209else
10210 echo "$as_me:10210: result: no" >&5
10211echo "${ECHO_T}no" >&6
10212fi
10213
10214 if test -z "$PROG_WHO" ; then
10215 PROG_WHO="undef"
10216 fi
10217
10218 # Extract the first word of "last", so it can be a program name with args.
10219set dummy last; ac_word=$2
10220echo "$as_me:10220: checking for $ac_word" >&5
10221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222if test "${ac_cv_path_PROG_LAST+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 case $PROG_LAST in
10226 [\\/]* | ?:[\\/]*)
10227 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
10228 ;;
10229 *)
10230 ac_save_IFS=$IFS; IFS=$ac_path_separator
10231ac_dummy="$PATH"
10232for ac_dir in $ac_dummy; do
10233 IFS=$ac_save_IFS
10234 test -z "$ac_dir" && ac_dir=.
10235 if $as_executable_p "$ac_dir/$ac_word"; then
10236 ac_cv_path_PROG_LAST="$ac_dir/$ac_word"
10237 echo "$as_me:10237: found $ac_dir/$ac_word" >&5
10238 break
10239fi
10240done
10241
10242 ;;
10243esac
10244fi
10245PROG_LAST=$ac_cv_path_PROG_LAST
10246
10247if test -n "$PROG_LAST"; then
10248 echo "$as_me:10248: result: $PROG_LAST" >&5
10249echo "${ECHO_T}$PROG_LAST" >&6
10250else
10251 echo "$as_me:10251: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253fi
10254
10255 if test -z "$PROG_LAST" ; then
10256 PROG_LAST="undef"
10257 fi
10258
10259 # Extract the first word of "lastlog", so it can be a program name with args.
10260set dummy lastlog; ac_word=$2
10261echo "$as_me:10261: checking for $ac_word" >&5
10262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10263if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266 case $PROG_LASTLOG in
10267 [\\/]* | ?:[\\/]*)
10268 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
10269 ;;
10270 *)
10271 ac_save_IFS=$IFS; IFS=$ac_path_separator
10272ac_dummy="$PATH"
10273for ac_dir in $ac_dummy; do
10274 IFS=$ac_save_IFS
10275 test -z "$ac_dir" && ac_dir=.
10276 if $as_executable_p "$ac_dir/$ac_word"; then
10277 ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word"
10278 echo "$as_me:10278: found $ac_dir/$ac_word" >&5
10279 break
10280fi
10281done
10282
10283 ;;
10284esac
10285fi
10286PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
10287
10288if test -n "$PROG_LASTLOG"; then
10289 echo "$as_me:10289: result: $PROG_LASTLOG" >&5
10290echo "${ECHO_T}$PROG_LASTLOG" >&6
10291else
10292 echo "$as_me:10292: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294fi
10295
10296 if test -z "$PROG_LASTLOG" ; then
10297 PROG_LASTLOG="undef"
10298 fi
10299
10300 # Extract the first word of "df", so it can be a program name with args.
10301set dummy df; ac_word=$2
10302echo "$as_me:10302: checking for $ac_word" >&5
10303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10304if test "${ac_cv_path_PROG_DF+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 case $PROG_DF in
10308 [\\/]* | ?:[\\/]*)
10309 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
10310 ;;
10311 *)
10312 ac_save_IFS=$IFS; IFS=$ac_path_separator
10313ac_dummy="$PATH"
10314for ac_dir in $ac_dummy; do
10315 IFS=$ac_save_IFS
10316 test -z "$ac_dir" && ac_dir=.
10317 if $as_executable_p "$ac_dir/$ac_word"; then
10318 ac_cv_path_PROG_DF="$ac_dir/$ac_word"
10319 echo "$as_me:10319: found $ac_dir/$ac_word" >&5
10320 break
10321fi
10322done
10323
10324 ;;
10325esac
10326fi
10327PROG_DF=$ac_cv_path_PROG_DF
10328
10329if test -n "$PROG_DF"; then
10330 echo "$as_me:10330: result: $PROG_DF" >&5
10331echo "${ECHO_T}$PROG_DF" >&6
10332else
10333 echo "$as_me:10333: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336
10337 if test -z "$PROG_DF" ; then
10338 PROG_DF="undef"
10339 fi
10340
10341 # Extract the first word of "vmstat", so it can be a program name with args.
10342set dummy vmstat; ac_word=$2
10343echo "$as_me:10343: checking for $ac_word" >&5
10344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 case $PROG_VMSTAT in
10349 [\\/]* | ?:[\\/]*)
10350 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
10351 ;;
10352 *)
10353 ac_save_IFS=$IFS; IFS=$ac_path_separator
10354ac_dummy="$PATH"
10355for ac_dir in $ac_dummy; do
10356 IFS=$ac_save_IFS
10357 test -z "$ac_dir" && ac_dir=.
10358 if $as_executable_p "$ac_dir/$ac_word"; then
10359 ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word"
10360 echo "$as_me:10360: found $ac_dir/$ac_word" >&5
10361 break
10362fi
10363done
10364
10365 ;;
10366esac
10367fi
10368PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
10369
10370if test -n "$PROG_VMSTAT"; then
10371 echo "$as_me:10371: result: $PROG_VMSTAT" >&5
10372echo "${ECHO_T}$PROG_VMSTAT" >&6
10373else
10374 echo "$as_me:10374: result: no" >&5
10375echo "${ECHO_T}no" >&6
10376fi
10377
10378 if test -z "$PROG_VMSTAT" ; then
10379 PROG_VMSTAT="undef"
10380 fi
10381
10382 # Extract the first word of "uptime", so it can be a program name with args.
10383set dummy uptime; ac_word=$2
10384echo "$as_me:10384: checking for $ac_word" >&5
10385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10386if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389 case $PROG_UPTIME in
10390 [\\/]* | ?:[\\/]*)
10391 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
10392 ;;
10393 *)
10394 ac_save_IFS=$IFS; IFS=$ac_path_separator
10395ac_dummy="$PATH"
10396for ac_dir in $ac_dummy; do
10397 IFS=$ac_save_IFS
10398 test -z "$ac_dir" && ac_dir=.
10399 if $as_executable_p "$ac_dir/$ac_word"; then
10400 ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word"
10401 echo "$as_me:10401: found $ac_dir/$ac_word" >&5
10402 break
10403fi
10404done
10405
10406 ;;
10407esac
10408fi
10409PROG_UPTIME=$ac_cv_path_PROG_UPTIME
10410
10411if test -n "$PROG_UPTIME"; then
10412 echo "$as_me:10412: result: $PROG_UPTIME" >&5
10413echo "${ECHO_T}$PROG_UPTIME" >&6
10414else
10415 echo "$as_me:10415: result: no" >&5
10416echo "${ECHO_T}no" >&6
10417fi
10418
10419 if test -z "$PROG_UPTIME" ; then
10420 PROG_UPTIME="undef"
10421 fi
10422
10423 # Extract the first word of "ipcs", so it can be a program name with args.
10424set dummy ipcs; ac_word=$2
10425echo "$as_me:10425: checking for $ac_word" >&5
10426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10427if test "${ac_cv_path_PROG_IPCS+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429else
10430 case $PROG_IPCS in
10431 [\\/]* | ?:[\\/]*)
10432 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
10433 ;;
10434 *)
10435 ac_save_IFS=$IFS; IFS=$ac_path_separator
10436ac_dummy="$PATH"
10437for ac_dir in $ac_dummy; do
10438 IFS=$ac_save_IFS
10439 test -z "$ac_dir" && ac_dir=.
10440 if $as_executable_p "$ac_dir/$ac_word"; then
10441 ac_cv_path_PROG_IPCS="$ac_dir/$ac_word"
10442 echo "$as_me:10442: found $ac_dir/$ac_word" >&5
10443 break
10444fi
10445done
10446
10447 ;;
10448esac
10449fi
10450PROG_IPCS=$ac_cv_path_PROG_IPCS
10451
10452if test -n "$PROG_IPCS"; then
10453 echo "$as_me:10453: result: $PROG_IPCS" >&5
10454echo "${ECHO_T}$PROG_IPCS" >&6
10455else
10456 echo "$as_me:10456: result: no" >&5
10457echo "${ECHO_T}no" >&6
10458fi
10459
10460 if test -z "$PROG_IPCS" ; then
10461 PROG_IPCS="undef"
10462 fi
10463
10464 # Extract the first word of "tail", so it can be a program name with args.
10465set dummy tail; ac_word=$2
10466echo "$as_me:10466: checking for $ac_word" >&5
10467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10468if test "${ac_cv_path_PROG_TAIL+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471 case $PROG_TAIL in
10472 [\\/]* | ?:[\\/]*)
10473 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
10474 ;;
10475 *)
10476 ac_save_IFS=$IFS; IFS=$ac_path_separator
10477ac_dummy="$PATH"
10478for ac_dir in $ac_dummy; do
10479 IFS=$ac_save_IFS
10480 test -z "$ac_dir" && ac_dir=.
10481 if $as_executable_p "$ac_dir/$ac_word"; then
10482 ac_cv_path_PROG_TAIL="$ac_dir/$ac_word"
10483 echo "$as_me:10483: found $ac_dir/$ac_word" >&5
10484 break
10485fi
10486done
10487
10488 ;;
10489esac
10490fi
10491PROG_TAIL=$ac_cv_path_PROG_TAIL
10492
10493if test -n "$PROG_TAIL"; then
10494 echo "$as_me:10494: result: $PROG_TAIL" >&5
10495echo "${ECHO_T}$PROG_TAIL" >&6
10496else
10497 echo "$as_me:10497: result: no" >&5
10498echo "${ECHO_T}no" >&6
10499fi
10500
10501 if test -z "$PROG_TAIL" ; then
10502 PROG_TAIL="undef"
10503 fi
10504
10505# restore PATH
10506PATH=$OPATH
10507
10508# Where does ssh-rand-helper get its randomness from?
10509INSTALL_SSH_PRNG_CMDS=""
10510if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
10511 if test ! -z "$PRNGD_PORT" ; then
10512 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
10513 elif test ! -z "$PRNGD_SOCKET" ; then
10514 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
10515 else
10516 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
10517 RAND_HELPER_CMDHASH=yes
10518 INSTALL_SSH_PRNG_CMDS="yes"
10519 fi
10520fi
10521
10522# Cheap hack to ensure NEWS-OS libraries are arranged right.
10523if test ! -z "$SONY" ; then
10524 LIBS="$LIBS -liberty";
10525fi
10526
10527# Checks for data types
10528echo "$as_me:10528: checking for char" >&5
10529echo $ECHO_N "checking for char... $ECHO_C" >&6
10530if test "${ac_cv_type_char+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 cat >conftest.$ac_ext <<_ACEOF
10534#line 10534 "configure"
10535#include "confdefs.h"
10536$ac_includes_default
10537int
10538main ()
10539{
10540if ((char *) 0)
10541 return 0;
10542if (sizeof (char))
10543 return 0;
10544 ;
10545 return 0;
10546}
10547_ACEOF
10548rm -f conftest.$ac_objext
10549if { (eval echo "$as_me:10549: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>&5
10551 ac_status=$?
10552 echo "$as_me:10552: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest.$ac_objext'
10555 { (eval echo "$as_me:10555: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:10558: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_type_char=yes
10561else
10562 echo "$as_me: failed program was:" >&5
10563cat conftest.$ac_ext >&5
10564ac_cv_type_char=no
10565fi
10566rm -f conftest.$ac_objext conftest.$ac_ext
10567fi
10568echo "$as_me:10568: result: $ac_cv_type_char" >&5
10569echo "${ECHO_T}$ac_cv_type_char" >&6
10570
10571echo "$as_me:10571: checking size of char" >&5
10572echo $ECHO_N "checking size of char... $ECHO_C" >&6
10573if test "${ac_cv_sizeof_char+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 if test "$ac_cv_type_char" = yes; then
10577 if test "$cross_compiling" = yes; then
10578 # Depending upon the size, compute the lo and hi bounds.
10579cat >conftest.$ac_ext <<_ACEOF
10580#line 10580 "configure"
10581#include "confdefs.h"
10582$ac_includes_default
10583int
10584main ()
10585{
10586int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
10587 ;
10588 return 0;
10589}
10590_ACEOF
10591rm -f conftest.$ac_objext
10592if { (eval echo "$as_me:10592: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>&5
10594 ac_status=$?
10595 echo "$as_me:10595: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -s conftest.$ac_objext'
10598 { (eval echo "$as_me:10598: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10600 ac_status=$?
10601 echo "$as_me:10601: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_lo=0 ac_mid=0
10604 while :; do
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 (char)) <= $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; break
10630else
10631 echo "$as_me: failed program was:" >&5
10632cat conftest.$ac_ext >&5
10633ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10634fi
10635rm -f conftest.$ac_objext conftest.$ac_ext
10636 done
10637else
10638 echo "$as_me: failed program was:" >&5
10639cat conftest.$ac_ext >&5
10640ac_hi=-1 ac_mid=-1
10641 while :; do
10642 cat >conftest.$ac_ext <<_ACEOF
10643#line 10643 "configure"
10644#include "confdefs.h"
10645$ac_includes_default
10646int
10647main ()
10648{
10649int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
10650 ;
10651 return 0;
10652}
10653_ACEOF
10654rm -f conftest.$ac_objext
10655if { (eval echo "$as_me:10655: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>&5
10657 ac_status=$?
10658 echo "$as_me:10658: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:10661: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_lo=$ac_mid; break
10667else
10668 echo "$as_me: failed program was:" >&5
10669cat conftest.$ac_ext >&5
10670ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10671fi
10672rm -f conftest.$ac_objext conftest.$ac_ext
10673 done
10674fi
10675rm -f conftest.$ac_objext conftest.$ac_ext
10676# Binary search between lo and hi bounds.
10677while test "x$ac_lo" != "x$ac_hi"; do
10678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10679 cat >conftest.$ac_ext <<_ACEOF
10680#line 10680 "configure"
10681#include "confdefs.h"
10682$ac_includes_default
10683int
10684main ()
10685{
10686int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
10687 ;
10688 return 0;
10689}
10690_ACEOF
10691rm -f conftest.$ac_objext
10692if { (eval echo "$as_me:10692: \"$ac_compile\"") >&5
10693 (eval $ac_compile) 2>&5
10694 ac_status=$?
10695 echo "$as_me:10695: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:10698: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:10701: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_hi=$ac_mid
10704else
10705 echo "$as_me: failed program was:" >&5
10706cat conftest.$ac_ext >&5
10707ac_lo=`expr $ac_mid + 1`
10708fi
10709rm -f conftest.$ac_objext conftest.$ac_ext
10710done
10711ac_cv_sizeof_char=$ac_lo
10712else
10713 if test "$cross_compiling" = yes; then
10714 { { echo "$as_me:10714: error: cannot run test program while cross compiling" >&5
10715echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10716 { (exit 1); exit 1; }; }
10717else
10718 cat >conftest.$ac_ext <<_ACEOF
10719#line 10719 "configure"
10720#include "confdefs.h"
10721$ac_includes_default
10722int
10723main ()
10724{
10725FILE *f = fopen ("conftest.val", "w");
10726if (!f)
10727 exit (1);
10728fprintf (f, "%d", (sizeof (char)));
10729fclose (f);
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734rm -f conftest$ac_exeext
10735if { (eval echo "$as_me:10735: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>&5
10737 ac_status=$?
10738 echo "$as_me:10738: \$? = $ac_status" >&5
10739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10740 { (eval echo "$as_me:10740: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:10743: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_sizeof_char=`cat conftest.val`
10746else
10747 echo "$as_me: program exited with status $ac_status" >&5
10748echo "$as_me: failed program was:" >&5
10749cat conftest.$ac_ext >&5
10750fi
10751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10752fi
10753fi
10754rm -f conftest.val
10755else
10756 ac_cv_sizeof_char=0
10757fi
10758fi
10759echo "$as_me:10759: result: $ac_cv_sizeof_char" >&5
10760echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10761cat >>confdefs.h <<EOF
10762#define SIZEOF_CHAR $ac_cv_sizeof_char
10763EOF
10764
10765echo "$as_me:10765: checking for short int" >&5
10766echo $ECHO_N "checking for short int... $ECHO_C" >&6
10767if test "${ac_cv_type_short_int+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770 cat >conftest.$ac_ext <<_ACEOF
10771#line 10771 "configure"
10772#include "confdefs.h"
10773$ac_includes_default
10774int
10775main ()
10776{
10777if ((short int *) 0)
10778 return 0;
10779if (sizeof (short int))
10780 return 0;
10781 ;
10782 return 0;
10783}
10784_ACEOF
10785rm -f conftest.$ac_objext
10786if { (eval echo "$as_me:10786: \"$ac_compile\"") >&5
10787 (eval $ac_compile) 2>&5
10788 ac_status=$?
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:10792: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:10795: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_cv_type_short_int=yes
10798else
10799 echo "$as_me: failed program was:" >&5
10800cat conftest.$ac_ext >&5
10801ac_cv_type_short_int=no
10802fi
10803rm -f conftest.$ac_objext conftest.$ac_ext
10804fi
10805echo "$as_me:10805: result: $ac_cv_type_short_int" >&5
10806echo "${ECHO_T}$ac_cv_type_short_int" >&6
10807
10808echo "$as_me:10808: checking size of short int" >&5
10809echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10810if test "${ac_cv_sizeof_short_int+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 if test "$ac_cv_type_short_int" = yes; then
10814 if test "$cross_compiling" = yes; then
10815 # Depending upon the size, compute the lo and hi bounds.
10816cat >conftest.$ac_ext <<_ACEOF
10817#line 10817 "configure"
10818#include "confdefs.h"
10819$ac_includes_default
10820int
10821main ()
10822{
10823int _array_ [1 - 2 * !((sizeof (short int)) >= 0)]
10824 ;
10825 return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext
10829if { (eval echo "$as_me:10829: \"$ac_compile\"") >&5
10830 (eval $ac_compile) 2>&5
10831 ac_status=$?
10832 echo "$as_me:10832: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -s conftest.$ac_objext'
10835 { (eval echo "$as_me:10835: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:10838: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_lo=0 ac_mid=0
10841 while :; do
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 (short 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; break
10867else
10868 echo "$as_me: failed program was:" >&5
10869cat conftest.$ac_ext >&5
10870ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
10871fi
10872rm -f conftest.$ac_objext conftest.$ac_ext
10873 done
10874else
10875 echo "$as_me: failed program was:" >&5
10876cat conftest.$ac_ext >&5
10877ac_hi=-1 ac_mid=-1
10878 while :; do
10879 cat >conftest.$ac_ext <<_ACEOF
10880#line 10880 "configure"
10881#include "confdefs.h"
10882$ac_includes_default
10883int
10884main ()
10885{
10886int _array_ [1 - 2 * !((sizeof (short int)) >= $ac_mid)]
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.$ac_objext
10892if { (eval echo "$as_me:10892: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10894 ac_status=$?
10895 echo "$as_me:10895: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:10898: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:10901: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_lo=$ac_mid; break
10904else
10905 echo "$as_me: failed program was:" >&5
10906cat conftest.$ac_ext >&5
10907ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
10908fi
10909rm -f conftest.$ac_objext conftest.$ac_ext
10910 done
10911fi
10912rm -f conftest.$ac_objext conftest.$ac_ext
10913# Binary search between lo and hi bounds.
10914while test "x$ac_lo" != "x$ac_hi"; do
10915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10916 cat >conftest.$ac_ext <<_ACEOF
10917#line 10917 "configure"
10918#include "confdefs.h"
10919$ac_includes_default
10920int
10921main ()
10922{
10923int _array_ [1 - 2 * !((sizeof (short int)) <= $ac_mid)]
10924 ;
10925 return 0;
10926}
10927_ACEOF
10928rm -f conftest.$ac_objext
10929if { (eval echo "$as_me:10929: \"$ac_compile\"") >&5
10930 (eval $ac_compile) 2>&5
10931 ac_status=$?
10932 echo "$as_me:10932: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:10935: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:10938: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_hi=$ac_mid
10941else
10942 echo "$as_me: failed program was:" >&5
10943cat conftest.$ac_ext >&5
10944ac_lo=`expr $ac_mid + 1`
10945fi
10946rm -f conftest.$ac_objext conftest.$ac_ext
10947done
10948ac_cv_sizeof_short_int=$ac_lo
10949else
10950 if test "$cross_compiling" = yes; then
10951 { { echo "$as_me:10951: error: cannot run test program while cross compiling" >&5
10952echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10953 { (exit 1); exit 1; }; }
10954else
10955 cat >conftest.$ac_ext <<_ACEOF
10956#line 10956 "configure"
10957#include "confdefs.h"
10958$ac_includes_default
10959int
10960main ()
10961{
10962FILE *f = fopen ("conftest.val", "w");
10963if (!f)
10964 exit (1);
10965fprintf (f, "%d", (sizeof (short int)));
10966fclose (f);
10967 ;
10968 return 0;
10969}
10970_ACEOF
10971rm -f conftest$ac_exeext
10972if { (eval echo "$as_me:10972: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>&5
10974 ac_status=$?
10975 echo "$as_me:10975: \$? = $ac_status" >&5
10976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10977 { (eval echo "$as_me:10977: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:10980: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_sizeof_short_int=`cat conftest.val`
10983else
10984 echo "$as_me: program exited with status $ac_status" >&5
10985echo "$as_me: failed program was:" >&5
10986cat conftest.$ac_ext >&5
10987fi
10988rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10989fi
10990fi
10991rm -f conftest.val
10992else
10993 ac_cv_sizeof_short_int=0
10994fi
10995fi
10996echo "$as_me:10996: result: $ac_cv_sizeof_short_int" >&5
10997echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10998cat >>confdefs.h <<EOF
10999#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11000EOF
11001
11002echo "$as_me:11002: checking for int" >&5
11003echo $ECHO_N "checking for int... $ECHO_C" >&6
11004if test "${ac_cv_type_int+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007 cat >conftest.$ac_ext <<_ACEOF
11008#line 11008 "configure"
11009#include "confdefs.h"
11010$ac_includes_default
11011int
11012main ()
11013{
11014if ((int *) 0)
11015 return 0;
11016if (sizeof (int))
11017 return 0;
11018 ;
11019 return 0;
11020}
11021_ACEOF
11022rm -f conftest.$ac_objext
11023if { (eval echo "$as_me:11023: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>&5
11025 ac_status=$?
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_type_int=yes
11035else
11036 echo "$as_me: failed program was:" >&5
11037cat conftest.$ac_ext >&5
11038ac_cv_type_int=no
11039fi
11040rm -f conftest.$ac_objext conftest.$ac_ext
11041fi
11042echo "$as_me:11042: result: $ac_cv_type_int" >&5
11043echo "${ECHO_T}$ac_cv_type_int" >&6
11044
11045echo "$as_me:11045: checking size of int" >&5
11046echo $ECHO_N "checking size of int... $ECHO_C" >&6
11047if test "${ac_cv_sizeof_int+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050 if test "$ac_cv_type_int" = yes; then
11051 if test "$cross_compiling" = yes; then
11052 # Depending upon the size, compute the lo and hi bounds.
11053cat >conftest.$ac_ext <<_ACEOF
11054#line 11054 "configure"
11055#include "confdefs.h"
11056$ac_includes_default
11057int
11058main ()
11059{
11060int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065rm -f conftest.$ac_objext
11066if { (eval echo "$as_me:11066: \"$ac_compile\"") >&5
11067 (eval $ac_compile) 2>&5
11068 ac_status=$?
11069 echo "$as_me:11069: \$? = $ac_status" >&5
11070 (exit $ac_status); } &&
11071 { ac_try='test -s conftest.$ac_objext'
11072 { (eval echo "$as_me:11072: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_lo=0 ac_mid=0
11078 while :; do
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 (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; break
11104else
11105 echo "$as_me: failed program was:" >&5
11106cat conftest.$ac_ext >&5
11107ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11108fi
11109rm -f conftest.$ac_objext conftest.$ac_ext
11110 done
11111else
11112 echo "$as_me: failed program was:" >&5
11113cat conftest.$ac_ext >&5
11114ac_hi=-1 ac_mid=-1
11115 while :; do
11116 cat >conftest.$ac_ext <<_ACEOF
11117#line 11117 "configure"
11118#include "confdefs.h"
11119$ac_includes_default
11120int
11121main ()
11122{
11123int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
11124 ;
11125 return 0;
11126}
11127_ACEOF
11128rm -f conftest.$ac_objext
11129if { (eval echo "$as_me:11129: \"$ac_compile\"") >&5
11130 (eval $ac_compile) 2>&5
11131 ac_status=$?
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -s conftest.$ac_objext'
11135 { (eval echo "$as_me:11135: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_lo=$ac_mid; break
11141else
11142 echo "$as_me: failed program was:" >&5
11143cat conftest.$ac_ext >&5
11144ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11145fi
11146rm -f conftest.$ac_objext conftest.$ac_ext
11147 done
11148fi
11149rm -f conftest.$ac_objext conftest.$ac_ext
11150# Binary search between lo and hi bounds.
11151while test "x$ac_lo" != "x$ac_hi"; do
11152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11153 cat >conftest.$ac_ext <<_ACEOF
11154#line 11154 "configure"
11155#include "confdefs.h"
11156$ac_includes_default
11157int
11158main ()
11159{
11160int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165rm -f conftest.$ac_objext
11166if { (eval echo "$as_me:11166: \"$ac_compile\"") >&5
11167 (eval $ac_compile) 2>&5
11168 ac_status=$?
11169 echo "$as_me:11169: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -s conftest.$ac_objext'
11172 { (eval echo "$as_me:11172: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:11175: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_hi=$ac_mid
11178else
11179 echo "$as_me: failed program was:" >&5
11180cat conftest.$ac_ext >&5
11181ac_lo=`expr $ac_mid + 1`
11182fi
11183rm -f conftest.$ac_objext conftest.$ac_ext
11184done
11185ac_cv_sizeof_int=$ac_lo
11186else
11187 if test "$cross_compiling" = yes; then
11188 { { echo "$as_me:11188: error: cannot run test program while cross compiling" >&5
11189echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11190 { (exit 1); exit 1; }; }
11191else
11192 cat >conftest.$ac_ext <<_ACEOF
11193#line 11193 "configure"
11194#include "confdefs.h"
11195$ac_includes_default
11196int
11197main ()
11198{
11199FILE *f = fopen ("conftest.val", "w");
11200if (!f)
11201 exit (1);
11202fprintf (f, "%d", (sizeof (int)));
11203fclose (f);
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208rm -f conftest$ac_exeext
11209if { (eval echo "$as_me:11209: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11211 ac_status=$?
11212 echo "$as_me:11212: \$? = $ac_status" >&5
11213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11214 { (eval echo "$as_me:11214: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:11217: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_sizeof_int=`cat conftest.val`
11220else
11221 echo "$as_me: program exited with status $ac_status" >&5
11222echo "$as_me: failed program was:" >&5
11223cat conftest.$ac_ext >&5
11224fi
11225rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11226fi
11227fi
11228rm -f conftest.val
11229else
11230 ac_cv_sizeof_int=0
11231fi
11232fi
11233echo "$as_me:11233: result: $ac_cv_sizeof_int" >&5
11234echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11235cat >>confdefs.h <<EOF
11236#define SIZEOF_INT $ac_cv_sizeof_int
11237EOF
11238
11239echo "$as_me:11239: checking for long int" >&5
11240echo $ECHO_N "checking for long int... $ECHO_C" >&6
11241if test "${ac_cv_type_long_int+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 cat >conftest.$ac_ext <<_ACEOF
11245#line 11245 "configure"
11246#include "confdefs.h"
11247$ac_includes_default
11248int
11249main ()
11250{
11251if ((long int *) 0)
11252 return 0;
11253if (sizeof (long int))
11254 return 0;
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:11260: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11262 ac_status=$?
11263 echo "$as_me:11263: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:11266: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:11269: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_type_long_int=yes
11272else
11273 echo "$as_me: failed program was:" >&5
11274cat conftest.$ac_ext >&5
11275ac_cv_type_long_int=no
11276fi
11277rm -f conftest.$ac_objext conftest.$ac_ext
11278fi
11279echo "$as_me:11279: result: $ac_cv_type_long_int" >&5
11280echo "${ECHO_T}$ac_cv_type_long_int" >&6
11281
11282echo "$as_me:11282: checking size of long int" >&5
11283echo $ECHO_N "checking size of long int... $ECHO_C" >&6
11284if test "${ac_cv_sizeof_long_int+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287 if test "$ac_cv_type_long_int" = yes; then
11288 if test "$cross_compiling" = yes; then
11289 # Depending upon the size, compute the lo and hi bounds.
11290cat >conftest.$ac_ext <<_ACEOF
11291#line 11291 "configure"
11292#include "confdefs.h"
11293$ac_includes_default
11294int
11295main ()
11296{
11297int _array_ [1 - 2 * !((sizeof (long int)) >= 0)]
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:11303: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>&5
11305 ac_status=$?
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest.$ac_objext'
11309 { (eval echo "$as_me:11309: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11311 ac_status=$?
11312 echo "$as_me:11312: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_lo=0 ac_mid=0
11315 while :; do
11316 cat >conftest.$ac_ext <<_ACEOF
11317#line 11317 "configure"
11318#include "confdefs.h"
11319$ac_includes_default
11320int
11321main ()
11322{
11323int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (eval echo "$as_me:11329: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>&5
11331 ac_status=$?
11332 echo "$as_me:11332: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:11335: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:11338: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_hi=$ac_mid; break
11341else
11342 echo "$as_me: failed program was:" >&5
11343cat conftest.$ac_ext >&5
11344ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11345fi
11346rm -f conftest.$ac_objext conftest.$ac_ext
11347 done
11348else
11349 echo "$as_me: failed program was:" >&5
11350cat conftest.$ac_ext >&5
11351ac_hi=-1 ac_mid=-1
11352 while :; do
11353 cat >conftest.$ac_ext <<_ACEOF
11354#line 11354 "configure"
11355#include "confdefs.h"
11356$ac_includes_default
11357int
11358main ()
11359{
11360int _array_ [1 - 2 * !((sizeof (long int)) >= $ac_mid)]
11361 ;
11362 return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext
11366if { (eval echo "$as_me:11366: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>&5
11368 ac_status=$?
11369 echo "$as_me:11369: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (eval echo "$as_me:11372: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_lo=$ac_mid; break
11378else
11379 echo "$as_me: failed program was:" >&5
11380cat conftest.$ac_ext >&5
11381ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11382fi
11383rm -f conftest.$ac_objext conftest.$ac_ext
11384 done
11385fi
11386rm -f conftest.$ac_objext conftest.$ac_ext
11387# Binary search between lo and hi bounds.
11388while test "x$ac_lo" != "x$ac_hi"; do
11389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11390 cat >conftest.$ac_ext <<_ACEOF
11391#line 11391 "configure"
11392#include "confdefs.h"
11393$ac_includes_default
11394int
11395main ()
11396{
11397int _array_ [1 - 2 * !((sizeof (long int)) <= $ac_mid)]
11398 ;
11399 return 0;
11400}
11401_ACEOF
11402rm -f conftest.$ac_objext
11403if { (eval echo "$as_me:11403: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11405 ac_status=$?
11406 echo "$as_me:11406: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:11409: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:11412: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_hi=$ac_mid
11415else
11416 echo "$as_me: failed program was:" >&5
11417cat conftest.$ac_ext >&5
11418ac_lo=`expr $ac_mid + 1`
11419fi
11420rm -f conftest.$ac_objext conftest.$ac_ext
11421done
11422ac_cv_sizeof_long_int=$ac_lo
11423else
11424 if test "$cross_compiling" = yes; then
11425 { { echo "$as_me:11425: error: cannot run test program while cross compiling" >&5
11426echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11427 { (exit 1); exit 1; }; }
11428else
11429 cat >conftest.$ac_ext <<_ACEOF
11430#line 11430 "configure"
11431#include "confdefs.h"
11432$ac_includes_default
11433int
11434main ()
11435{
11436FILE *f = fopen ("conftest.val", "w");
11437if (!f)
11438 exit (1);
11439fprintf (f, "%d", (sizeof (long int)));
11440fclose (f);
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest$ac_exeext
11446if { (eval echo "$as_me:11446: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>&5
11448 ac_status=$?
11449 echo "$as_me:11449: \$? = $ac_status" >&5
11450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11451 { (eval echo "$as_me:11451: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:11454: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_sizeof_long_int=`cat conftest.val`
11457else
11458 echo "$as_me: program exited with status $ac_status" >&5
11459echo "$as_me: failed program was:" >&5
11460cat conftest.$ac_ext >&5
11461fi
11462rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11463fi
11464fi
11465rm -f conftest.val
11466else
11467 ac_cv_sizeof_long_int=0
11468fi
11469fi
11470echo "$as_me:11470: result: $ac_cv_sizeof_long_int" >&5
11471echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11472cat >>confdefs.h <<EOF
11473#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11474EOF
11475
11476echo "$as_me:11476: checking for long long int" >&5
11477echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11478if test "${ac_cv_type_long_long_int+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 cat >conftest.$ac_ext <<_ACEOF
11482#line 11482 "configure"
11483#include "confdefs.h"
11484$ac_includes_default
11485int
11486main ()
11487{
11488if ((long long int *) 0)
11489 return 0;
11490if (sizeof (long long int))
11491 return 0;
11492 ;
11493 return 0;
11494}
11495_ACEOF
11496rm -f conftest.$ac_objext
11497if { (eval echo "$as_me:11497: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>&5
11499 ac_status=$?
11500 echo "$as_me:11500: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:11503: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:11506: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_type_long_long_int=yes
11509else
11510 echo "$as_me: failed program was:" >&5
11511cat conftest.$ac_ext >&5
11512ac_cv_type_long_long_int=no
11513fi
11514rm -f conftest.$ac_objext conftest.$ac_ext
11515fi
11516echo "$as_me:11516: result: $ac_cv_type_long_long_int" >&5
11517echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11518
11519echo "$as_me:11519: checking size of long long int" >&5
11520echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11521if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 if test "$ac_cv_type_long_long_int" = yes; then
11525 if test "$cross_compiling" = yes; then
11526 # Depending upon the size, compute the lo and hi bounds.
11527cat >conftest.$ac_ext <<_ACEOF
11528#line 11528 "configure"
11529#include "confdefs.h"
11530$ac_includes_default
11531int
11532main ()
11533{
11534int _array_ [1 - 2 * !((sizeof (long long int)) >= 0)]
11535 ;
11536 return 0;
11537}
11538_ACEOF
11539rm -f conftest.$ac_objext
11540if { (eval echo "$as_me:11540: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>&5
11542 ac_status=$?
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:11546: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:11549: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_lo=0 ac_mid=0
11552 while :; do
11553 cat >conftest.$ac_ext <<_ACEOF
11554#line 11554 "configure"
11555#include "confdefs.h"
11556$ac_includes_default
11557int
11558main ()
11559{
11560int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext
11566if { (eval echo "$as_me:11566: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>&5
11568 ac_status=$?
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -s conftest.$ac_objext'
11572 { (eval echo "$as_me:11572: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:11575: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_hi=$ac_mid; break
11578else
11579 echo "$as_me: failed program was:" >&5
11580cat conftest.$ac_ext >&5
11581ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11582fi
11583rm -f conftest.$ac_objext conftest.$ac_ext
11584 done
11585else
11586 echo "$as_me: failed program was:" >&5
11587cat conftest.$ac_ext >&5
11588ac_hi=-1 ac_mid=-1
11589 while :; do
11590 cat >conftest.$ac_ext <<_ACEOF
11591#line 11591 "configure"
11592#include "confdefs.h"
11593$ac_includes_default
11594int
11595main ()
11596{
11597int _array_ [1 - 2 * !((sizeof (long long int)) >= $ac_mid)]
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext
11603if { (eval echo "$as_me:11603: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>&5
11605 ac_status=$?
11606 echo "$as_me:11606: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:11609: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:11612: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_lo=$ac_mid; break
11615else
11616 echo "$as_me: failed program was:" >&5
11617cat conftest.$ac_ext >&5
11618ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11619fi
11620rm -f conftest.$ac_objext conftest.$ac_ext
11621 done
11622fi
11623rm -f conftest.$ac_objext conftest.$ac_ext
11624# Binary search between lo and hi bounds.
11625while test "x$ac_lo" != "x$ac_hi"; do
11626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11627 cat >conftest.$ac_ext <<_ACEOF
11628#line 11628 "configure"
11629#include "confdefs.h"
11630$ac_includes_default
11631int
11632main ()
11633{
11634int _array_ [1 - 2 * !((sizeof (long long int)) <= $ac_mid)]
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext
11640if { (eval echo "$as_me:11640: \"$ac_compile\"") >&5
11641 (eval $ac_compile) 2>&5
11642 ac_status=$?
11643 echo "$as_me:11643: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:11646: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_hi=$ac_mid
11652else
11653 echo "$as_me: failed program was:" >&5
11654cat conftest.$ac_ext >&5
11655ac_lo=`expr $ac_mid + 1`
11656fi
11657rm -f conftest.$ac_objext conftest.$ac_ext
11658done
11659ac_cv_sizeof_long_long_int=$ac_lo
11660else
11661 if test "$cross_compiling" = yes; then
11662 { { echo "$as_me:11662: error: cannot run test program while cross compiling" >&5
11663echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11664 { (exit 1); exit 1; }; }
11665else
11666 cat >conftest.$ac_ext <<_ACEOF
11667#line 11667 "configure"
11668#include "confdefs.h"
11669$ac_includes_default
11670int
11671main ()
11672{
11673FILE *f = fopen ("conftest.val", "w");
11674if (!f)
11675 exit (1);
11676fprintf (f, "%d", (sizeof (long long int)));
11677fclose (f);
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest$ac_exeext
11683if { (eval echo "$as_me:11683: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>&5
11685 ac_status=$?
11686 echo "$as_me:11686: \$? = $ac_status" >&5
11687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11688 { (eval echo "$as_me:11688: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:11691: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 ac_cv_sizeof_long_long_int=`cat conftest.val`
11694else
11695 echo "$as_me: program exited with status $ac_status" >&5
11696echo "$as_me: failed program was:" >&5
11697cat conftest.$ac_ext >&5
11698fi
11699rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11700fi
11701fi
11702rm -f conftest.val
11703else
11704 ac_cv_sizeof_long_long_int=0
11705fi
11706fi
11707echo "$as_me:11707: result: $ac_cv_sizeof_long_long_int" >&5
11708echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11709cat >>confdefs.h <<EOF
11710#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11711EOF
11712
11713# Sanity check long long for some platforms (AIX)
11714if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11715 ac_cv_sizeof_long_long_int=0
11716fi
11717
11718# More checks for data types
11719echo "$as_me:11719: checking for u_int type" >&5
11720echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11721if test "${ac_cv_have_u_int+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724
11725 cat >conftest.$ac_ext <<_ACEOF
11726#line 11726 "configure"
11727#include "confdefs.h"
11728 #include <sys/types.h>
11729int
11730main ()
11731{
11732 u_int a; a = 1;
11733 ;
11734 return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext
11738if { (eval echo "$as_me:11738: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>&5
11740 ac_status=$?
11741 echo "$as_me:11741: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:11744: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:11747: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_cv_have_u_int="yes"
11750else
11751 echo "$as_me: failed program was:" >&5
11752cat conftest.$ac_ext >&5
11753 ac_cv_have_u_int="no"
11754
11755fi
11756rm -f conftest.$ac_objext conftest.$ac_ext
11757
11758fi
11759echo "$as_me:11759: result: $ac_cv_have_u_int" >&5
11760echo "${ECHO_T}$ac_cv_have_u_int" >&6
11761if test "x$ac_cv_have_u_int" = "xyes" ; then
11762 cat >>confdefs.h <<\EOF
11763#define HAVE_U_INT 1
11764EOF
11765
11766 have_u_int=1
11767fi
11768
11769echo "$as_me:11769: checking for intXX_t types" >&5
11770echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11771if test "${ac_cv_have_intxx_t+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774
11775 cat >conftest.$ac_ext <<_ACEOF
11776#line 11776 "configure"
11777#include "confdefs.h"
11778 #include <sys/types.h>
11779int
11780main ()
11781{
11782 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:11788: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 echo "$as_me:11791: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:11794: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:11797: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_have_intxx_t="yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802cat conftest.$ac_ext >&5
11803 ac_cv_have_intxx_t="no"
11804
11805fi
11806rm -f conftest.$ac_objext conftest.$ac_ext
11807
11808fi
11809echo "$as_me:11809: result: $ac_cv_have_intxx_t" >&5
11810echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11811if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11812 cat >>confdefs.h <<\EOF
11813#define HAVE_INTXX_T 1
11814EOF
11815
11816 have_intxx_t=1
11817fi
11818
11819if (test -z "$have_intxx_t" && \
11820 test "x$ac_cv_header_stdint_h" = "xyes")
11821then
11822 echo "$as_me:11822: checking for intXX_t types in stdint.h" >&5
11823echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line 11825 "configure"
11826#include "confdefs.h"
11827 #include <stdint.h>
11828int
11829main ()
11830{
11831 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext
11837if { (eval echo "$as_me:11837: \"$ac_compile\"") >&5
11838 (eval $ac_compile) 2>&5
11839 ac_status=$?
11840 echo "$as_me:11840: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:11843: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:11846: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848
11849 cat >>confdefs.h <<\EOF
11850#define HAVE_INTXX_T 1
11851EOF
11852
11853 echo "$as_me:11853: result: yes" >&5
11854echo "${ECHO_T}yes" >&6
11855
11856else
11857 echo "$as_me: failed program was:" >&5
11858cat conftest.$ac_ext >&5
11859 echo "$as_me:11859: result: no" >&5
11860echo "${ECHO_T}no" >&6
11861
11862fi
11863rm -f conftest.$ac_objext conftest.$ac_ext
11864fi
11865
11866echo "$as_me:11866: checking for int64_t type" >&5
11867echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11868if test "${ac_cv_have_int64_t+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871
11872 cat >conftest.$ac_ext <<_ACEOF
11873#line 11873 "configure"
11874#include "confdefs.h"
11875
11876#include <sys/types.h>
11877#ifdef HAVE_STDINT_H
11878# include <stdint.h>
11879#endif
11880#include <sys/socket.h>
11881#ifdef HAVE_SYS_BITYPES_H
11882# include <sys/bitypes.h>
11883#endif
11884
11885int
11886main ()
11887{
11888 int64_t a; a = 1;
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893rm -f conftest.$ac_objext
11894if { (eval echo "$as_me:11894: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>&5
11896 ac_status=$?
11897 echo "$as_me:11897: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:11900: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:11903: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_have_int64_t="yes"
11906else
11907 echo "$as_me: failed program was:" >&5
11908cat conftest.$ac_ext >&5
11909 ac_cv_have_int64_t="no"
11910
11911fi
11912rm -f conftest.$ac_objext conftest.$ac_ext
11913
11914fi
11915echo "$as_me:11915: result: $ac_cv_have_int64_t" >&5
11916echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11917if test "x$ac_cv_have_int64_t" = "xyes" ; then
11918 cat >>confdefs.h <<\EOF
11919#define HAVE_INT64_T 1
11920EOF
11921
11922fi
11923
11924echo "$as_me:11924: checking for u_intXX_t types" >&5
11925echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11926if test "${ac_cv_have_u_intxx_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929
11930 cat >conftest.$ac_ext <<_ACEOF
11931#line 11931 "configure"
11932#include "confdefs.h"
11933 #include <sys/types.h>
11934int
11935main ()
11936{
11937 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 echo "$as_me:11946: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:11949: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:11952: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_have_u_intxx_t="yes"
11955else
11956 echo "$as_me: failed program was:" >&5
11957cat conftest.$ac_ext >&5
11958 ac_cv_have_u_intxx_t="no"
11959
11960fi
11961rm -f conftest.$ac_objext conftest.$ac_ext
11962
11963fi
11964echo "$as_me:11964: result: $ac_cv_have_u_intxx_t" >&5
11965echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11966if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11967 cat >>confdefs.h <<\EOF
11968#define HAVE_U_INTXX_T 1
11969EOF
11970
11971 have_u_intxx_t=1
11972fi
11973
11974if test -z "$have_u_intxx_t" ; then
11975 echo "$as_me:11975: checking for u_intXX_t types in sys/socket.h" >&5
11976echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11978#line 11978 "configure"
11979#include "confdefs.h"
11980 #include <sys/socket.h>
11981int
11982main ()
11983{
11984 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext
11990if { (eval echo "$as_me:11990: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11992 ac_status=$?
11993 echo "$as_me:11993: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:11996: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:11999: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001
12002 cat >>confdefs.h <<\EOF
12003#define HAVE_U_INTXX_T 1
12004EOF
12005
12006 echo "$as_me:12006: result: yes" >&5
12007echo "${ECHO_T}yes" >&6
12008
12009else
12010 echo "$as_me: failed program was:" >&5
12011cat conftest.$ac_ext >&5
12012 echo "$as_me:12012: result: no" >&5
12013echo "${ECHO_T}no" >&6
12014
12015fi
12016rm -f conftest.$ac_objext conftest.$ac_ext
12017fi
12018
12019echo "$as_me:12019: checking for u_int64_t types" >&5
12020echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
12021if test "${ac_cv_have_u_int64_t+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024
12025 cat >conftest.$ac_ext <<_ACEOF
12026#line 12026 "configure"
12027#include "confdefs.h"
12028 #include <sys/types.h>
12029int
12030main ()
12031{
12032 u_int64_t a; a = 1;
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext
12038if { (eval echo "$as_me:12038: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>&5
12040 ac_status=$?
12041 echo "$as_me:12041: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:12044: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:12047: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_cv_have_u_int64_t="yes"
12050else
12051 echo "$as_me: failed program was:" >&5
12052cat conftest.$ac_ext >&5
12053 ac_cv_have_u_int64_t="no"
12054
12055fi
12056rm -f conftest.$ac_objext conftest.$ac_ext
12057
12058fi
12059echo "$as_me:12059: result: $ac_cv_have_u_int64_t" >&5
12060echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
12061if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12062 cat >>confdefs.h <<\EOF
12063#define HAVE_U_INT64_T 1
12064EOF
12065
12066 have_u_int64_t=1
12067fi
12068
12069if test -z "$have_u_int64_t" ; then
12070 echo "$as_me:12070: checking for u_int64_t type in sys/bitypes.h" >&5
12071echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
12072 cat >conftest.$ac_ext <<_ACEOF
12073#line 12073 "configure"
12074#include "confdefs.h"
12075 #include <sys/bitypes.h>
12076int
12077main ()
12078{
12079 u_int64_t a; a = 1
12080 ;
12081 return 0;
12082}
12083_ACEOF
12084rm -f conftest.$ac_objext
12085if { (eval echo "$as_me:12085: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>&5
12087 ac_status=$?
12088 echo "$as_me:12088: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:12091: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:12094: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096
12097 cat >>confdefs.h <<\EOF
12098#define HAVE_U_INT64_T 1
12099EOF
12100
12101 echo "$as_me:12101: result: yes" >&5
12102echo "${ECHO_T}yes" >&6
12103
12104else
12105 echo "$as_me: failed program was:" >&5
12106cat conftest.$ac_ext >&5
12107 echo "$as_me:12107: result: no" >&5
12108echo "${ECHO_T}no" >&6
12109
12110fi
12111rm -f conftest.$ac_objext conftest.$ac_ext
12112fi
12113
12114if test -z "$have_u_intxx_t" ; then
12115 echo "$as_me:12115: checking for uintXX_t types" >&5
12116echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12117if test "${ac_cv_have_uintxx_t+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120
12121 cat >conftest.$ac_ext <<_ACEOF
12122#line 12122 "configure"
12123#include "confdefs.h"
12124
12125#include <sys/types.h>
12126
12127int
12128main ()
12129{
12130 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext
12136if { (eval echo "$as_me:12136: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>&5
12138 ac_status=$?
12139 echo "$as_me:12139: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:12142: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:12145: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_have_uintxx_t="yes"
12148else
12149 echo "$as_me: failed program was:" >&5
12150cat conftest.$ac_ext >&5
12151 ac_cv_have_uintxx_t="no"
12152
12153fi
12154rm -f conftest.$ac_objext conftest.$ac_ext
12155
12156fi
12157echo "$as_me:12157: result: $ac_cv_have_uintxx_t" >&5
12158echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12159 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12160 cat >>confdefs.h <<\EOF
12161#define HAVE_UINTXX_T 1
12162EOF
12163
12164 fi
12165fi
12166
12167if test -z "$have_uintxx_t" ; then
12168 echo "$as_me:12168: checking for uintXX_t types in stdint.h" >&5
12169echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171#line 12171 "configure"
12172#include "confdefs.h"
12173 #include <stdint.h>
12174int
12175main ()
12176{
12177 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182rm -f conftest.$ac_objext
12183if { (eval echo "$as_me:12183: \"$ac_compile\"") >&5
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
12186 echo "$as_me:12186: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest.$ac_objext'
12189 { (eval echo "$as_me:12189: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:12192: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194
12195 cat >>confdefs.h <<\EOF
12196#define HAVE_UINTXX_T 1
12197EOF
12198
12199 echo "$as_me:12199: result: yes" >&5
12200echo "${ECHO_T}yes" >&6
12201
12202else
12203 echo "$as_me: failed program was:" >&5
12204cat conftest.$ac_ext >&5
12205 echo "$as_me:12205: result: no" >&5
12206echo "${ECHO_T}no" >&6
12207
12208fi
12209rm -f conftest.$ac_objext conftest.$ac_ext
12210fi
12211
12212if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12213 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12214then
12215 echo "$as_me:12215: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12216echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12217 cat >conftest.$ac_ext <<_ACEOF
12218#line 12218 "configure"
12219#include "confdefs.h"
12220
12221#include <sys/bitypes.h>
12222
12223int
12224main ()
12225{
12226
12227 int8_t a; int16_t b; int32_t c;
12228 u_int8_t e; u_int16_t f; u_int32_t g;
12229 a = b = c = e = f = g = 1;
12230
12231 ;
12232 return 0;
12233}
12234_ACEOF
12235rm -f conftest.$ac_objext
12236if { (eval echo "$as_me:12236: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12238 ac_status=$?
12239 echo "$as_me:12239: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:12242: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247
12248 cat >>confdefs.h <<\EOF
12249#define HAVE_U_INTXX_T 1
12250EOF
12251
12252 cat >>confdefs.h <<\EOF
12253#define HAVE_INTXX_T 1
12254EOF
12255
12256 echo "$as_me:12256: result: yes" >&5
12257echo "${ECHO_T}yes" >&6
12258
12259else
12260 echo "$as_me: failed program was:" >&5
12261cat conftest.$ac_ext >&5
12262echo "$as_me:12262: result: no" >&5
12263echo "${ECHO_T}no" >&6
12264
12265fi
12266rm -f conftest.$ac_objext conftest.$ac_ext
12267fi
12268
12269echo "$as_me:12269: checking for u_char" >&5
12270echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12271if test "${ac_cv_have_u_char+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274
12275 cat >conftest.$ac_ext <<_ACEOF
12276#line 12276 "configure"
12277#include "confdefs.h"
12278
12279#include <sys/types.h>
12280
12281int
12282main ()
12283{
12284 u_char foo; foo = 125;
12285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext
12290if { (eval echo "$as_me:12290: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>&5
12292 ac_status=$?
12293 echo "$as_me:12293: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -s conftest.$ac_objext'
12296 { (eval echo "$as_me:12296: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_have_u_char="yes"
12302else
12303 echo "$as_me: failed program was:" >&5
12304cat conftest.$ac_ext >&5
12305 ac_cv_have_u_char="no"
12306
12307fi
12308rm -f conftest.$ac_objext conftest.$ac_ext
12309
12310fi
12311echo "$as_me:12311: result: $ac_cv_have_u_char" >&5
12312echo "${ECHO_T}$ac_cv_have_u_char" >&6
12313if test "x$ac_cv_have_u_char" = "xyes" ; then
12314 cat >>confdefs.h <<\EOF
12315#define HAVE_U_CHAR 1
12316EOF
12317
12318fi
12319
12320 echo "$as_me:12320: checking for socklen_t" >&5
12321echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12322if test "${ac_cv_type_socklen_t+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326#line 12326 "configure"
12327#include "confdefs.h"
12328#include <sys/types.h>
12329#include <sys/socket.h>
12330
12331int
12332main ()
12333{
12334if ((socklen_t *) 0)
12335 return 0;
12336if (sizeof (socklen_t))
12337 return 0;
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:12343: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>&5
12345 ac_status=$?
12346 echo "$as_me:12346: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -s conftest.$ac_objext'
12349 { (eval echo "$as_me:12349: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:12352: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_type_socklen_t=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357cat conftest.$ac_ext >&5
12358ac_cv_type_socklen_t=no
12359fi
12360rm -f conftest.$ac_objext conftest.$ac_ext
12361fi
12362echo "$as_me:12362: result: $ac_cv_type_socklen_t" >&5
12363echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12364if test $ac_cv_type_socklen_t = yes; then
12365 :
12366else
12367
12368 echo "$as_me:12368: checking for socklen_t equivalent" >&5
12369echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12370 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373
12374 # Systems have either "struct sockaddr *" or
12375 # "void *" as the second argument to getpeername
12376 curl_cv_socklen_t_equiv=
12377 for arg2 in "struct sockaddr" void; do
12378 for t in int size_t unsigned long "unsigned long"; do
12379 cat >conftest.$ac_ext <<_ACEOF
12380#line 12380 "configure"
12381#include "confdefs.h"
12382
12383 #include <sys/types.h>
12384 #include <sys/socket.h>
12385
12386 int getpeername (int, $arg2 *, $t *);
12387
12388int
12389main ()
12390{
12391
12392 $t len;
12393 getpeername(0,0,&len);
12394
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
12400if { (eval echo "$as_me:12400: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>&5
12402 ac_status=$?
12403 echo "$as_me:12403: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:12406: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:12409: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411
12412 curl_cv_socklen_t_equiv="$t"
12413 break
12414
12415else
12416 echo "$as_me: failed program was:" >&5
12417cat conftest.$ac_ext >&5
12418fi
12419rm -f conftest.$ac_objext conftest.$ac_ext
12420 done
12421 done
12422
12423 if test "x$curl_cv_socklen_t_equiv" = x; then
12424 { { echo "$as_me:12424: error: Cannot find a type to use in place of socklen_t" >&5
12425echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12426 { (exit 1); exit 1; }; }
12427 fi
12428
12429fi
12430
12431 echo "$as_me:12431: result: $curl_cv_socklen_t_equiv" >&5
12432echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12433
12434cat >>confdefs.h <<EOF
12435#define socklen_t $curl_cv_socklen_t_equiv
12436EOF
12437
12438fi
12439
12440echo "$as_me:12440: checking for sig_atomic_t" >&5
12441echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12442if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444else
12445 cat >conftest.$ac_ext <<_ACEOF
12446#line 12446 "configure"
12447#include "confdefs.h"
12448#include <signal.h>
12449
12450int
12451main ()
12452{
12453if ((sig_atomic_t *) 0)
12454 return 0;
12455if (sizeof (sig_atomic_t))
12456 return 0;
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:12462: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>&5
12464 ac_status=$?
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -s conftest.$ac_objext'
12468 { (eval echo "$as_me:12468: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:12471: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_type_sig_atomic_t=yes
12474else
12475 echo "$as_me: failed program was:" >&5
12476cat conftest.$ac_ext >&5
12477ac_cv_type_sig_atomic_t=no
12478fi
12479rm -f conftest.$ac_objext conftest.$ac_ext
12480fi
12481echo "$as_me:12481: result: $ac_cv_type_sig_atomic_t" >&5
12482echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12483if test $ac_cv_type_sig_atomic_t = yes; then
12484
12485cat >>confdefs.h <<EOF
12486#define HAVE_SIG_ATOMIC_T 1
12487EOF
12488
12489fi
12490
12491echo "$as_me:12491: checking for size_t" >&5
12492echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12493if test "${ac_cv_have_size_t+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496
12497 cat >conftest.$ac_ext <<_ACEOF
12498#line 12498 "configure"
12499#include "confdefs.h"
12500
12501#include <sys/types.h>
12502
12503int
12504main ()
12505{
12506 size_t foo; foo = 1235;
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext
12512if { (eval echo "$as_me:12512: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12514 ac_status=$?
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_have_size_t="yes"
12524else
12525 echo "$as_me: failed program was:" >&5
12526cat conftest.$ac_ext >&5
12527 ac_cv_have_size_t="no"
12528
12529fi
12530rm -f conftest.$ac_objext conftest.$ac_ext
12531
12532fi
12533echo "$as_me:12533: result: $ac_cv_have_size_t" >&5
12534echo "${ECHO_T}$ac_cv_have_size_t" >&6
12535if test "x$ac_cv_have_size_t" = "xyes" ; then
12536 cat >>confdefs.h <<\EOF
12537#define HAVE_SIZE_T 1
12538EOF
12539
12540fi
12541
12542echo "$as_me:12542: checking for ssize_t" >&5
12543echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12544if test "${ac_cv_have_ssize_t+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547
12548 cat >conftest.$ac_ext <<_ACEOF
12549#line 12549 "configure"
12550#include "confdefs.h"
12551
12552#include <sys/types.h>
12553
12554int
12555main ()
12556{
12557 ssize_t foo; foo = 1235;
12558 ;
12559 return 0;
12560}
12561_ACEOF
12562rm -f conftest.$ac_objext
12563if { (eval echo "$as_me:12563: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>&5
12565 ac_status=$?
12566 echo "$as_me:12566: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:12569: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:12572: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_have_ssize_t="yes"
12575else
12576 echo "$as_me: failed program was:" >&5
12577cat conftest.$ac_ext >&5
12578 ac_cv_have_ssize_t="no"
12579
12580fi
12581rm -f conftest.$ac_objext conftest.$ac_ext
12582
12583fi
12584echo "$as_me:12584: result: $ac_cv_have_ssize_t" >&5
12585echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12586if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12587 cat >>confdefs.h <<\EOF
12588#define HAVE_SSIZE_T 1
12589EOF
12590
12591fi
12592
12593echo "$as_me:12593: checking for clock_t" >&5
12594echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12595if test "${ac_cv_have_clock_t+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598
12599 cat >conftest.$ac_ext <<_ACEOF
12600#line 12600 "configure"
12601#include "confdefs.h"
12602
12603#include <time.h>
12604
12605int
12606main ()
12607{
12608 clock_t foo; foo = 1235;
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext
12614if { (eval echo "$as_me:12614: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>&5
12616 ac_status=$?
12617 echo "$as_me:12617: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:12620: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_have_clock_t="yes"
12626else
12627 echo "$as_me: failed program was:" >&5
12628cat conftest.$ac_ext >&5
12629 ac_cv_have_clock_t="no"
12630
12631fi
12632rm -f conftest.$ac_objext conftest.$ac_ext
12633
12634fi
12635echo "$as_me:12635: result: $ac_cv_have_clock_t" >&5
12636echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12637if test "x$ac_cv_have_clock_t" = "xyes" ; then
12638 cat >>confdefs.h <<\EOF
12639#define HAVE_CLOCK_T 1
12640EOF
12641
12642fi
12643
12644echo "$as_me:12644: checking for sa_family_t" >&5
12645echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12646if test "${ac_cv_have_sa_family_t+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649
12650 cat >conftest.$ac_ext <<_ACEOF
12651#line 12651 "configure"
12652#include "confdefs.h"
12653
12654#include <sys/types.h>
12655#include <sys/socket.h>
12656
12657int
12658main ()
12659{
12660 sa_family_t foo; foo = 1235;
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:12666: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12668 ac_status=$?
12669 echo "$as_me:12669: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:12672: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:12675: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_have_sa_family_t="yes"
12678else
12679 echo "$as_me: failed program was:" >&5
12680cat conftest.$ac_ext >&5
12681 cat >conftest.$ac_ext <<_ACEOF
12682#line 12682 "configure"
12683#include "confdefs.h"
12684
12685#include <sys/types.h>
12686#include <sys/socket.h>
12687#include <netinet/in.h>
12688
12689int
12690main ()
12691{
12692 sa_family_t foo; foo = 1235;
12693 ;
12694 return 0;
12695}
12696_ACEOF
12697rm -f conftest.$ac_objext
12698if { (eval echo "$as_me:12698: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 echo "$as_me:12701: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:12704: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:12707: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_have_sa_family_t="yes"
12710else
12711 echo "$as_me: failed program was:" >&5
12712cat conftest.$ac_ext >&5
12713 ac_cv_have_sa_family_t="no"
12714
12715fi
12716rm -f conftest.$ac_objext conftest.$ac_ext
12717
12718fi
12719rm -f conftest.$ac_objext conftest.$ac_ext
12720
12721fi
12722echo "$as_me:12722: result: $ac_cv_have_sa_family_t" >&5
12723echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12724if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12725 cat >>confdefs.h <<\EOF
12726#define HAVE_SA_FAMILY_T 1
12727EOF
12728
12729fi
12730
12731echo "$as_me:12731: checking for pid_t" >&5
12732echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12733if test "${ac_cv_have_pid_t+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736
12737 cat >conftest.$ac_ext <<_ACEOF
12738#line 12738 "configure"
12739#include "confdefs.h"
12740
12741#include <sys/types.h>
12742
12743int
12744main ()
12745{
12746 pid_t foo; foo = 1235;
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751rm -f conftest.$ac_objext
12752if { (eval echo "$as_me:12752: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>&5
12754 ac_status=$?
12755 echo "$as_me:12755: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (eval echo "$as_me:12758: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:12761: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_cv_have_pid_t="yes"
12764else
12765 echo "$as_me: failed program was:" >&5
12766cat conftest.$ac_ext >&5
12767 ac_cv_have_pid_t="no"
12768
12769fi
12770rm -f conftest.$ac_objext conftest.$ac_ext
12771
12772fi
12773echo "$as_me:12773: result: $ac_cv_have_pid_t" >&5
12774echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12775if test "x$ac_cv_have_pid_t" = "xyes" ; then
12776 cat >>confdefs.h <<\EOF
12777#define HAVE_PID_T 1
12778EOF
12779
12780fi
12781
12782echo "$as_me:12782: checking for mode_t" >&5
12783echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12784if test "${ac_cv_have_mode_t+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787
12788 cat >conftest.$ac_ext <<_ACEOF
12789#line 12789 "configure"
12790#include "confdefs.h"
12791
12792#include <sys/types.h>
12793
12794int
12795main ()
12796{
12797 mode_t foo; foo = 1235;
12798 ;
12799 return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext
12803if { (eval echo "$as_me:12803: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>&5
12805 ac_status=$?
12806 echo "$as_me:12806: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:12809: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_have_mode_t="yes"
12815else
12816 echo "$as_me: failed program was:" >&5
12817cat conftest.$ac_ext >&5
12818 ac_cv_have_mode_t="no"
12819
12820fi
12821rm -f conftest.$ac_objext conftest.$ac_ext
12822
12823fi
12824echo "$as_me:12824: result: $ac_cv_have_mode_t" >&5
12825echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12826if test "x$ac_cv_have_mode_t" = "xyes" ; then
12827 cat >>confdefs.h <<\EOF
12828#define HAVE_MODE_T 1
12829EOF
12830
12831fi
12832
12833echo "$as_me:12833: checking for struct sockaddr_storage" >&5
12834echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12835if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838
12839 cat >conftest.$ac_ext <<_ACEOF
12840#line 12840 "configure"
12841#include "confdefs.h"
12842
12843#include <sys/types.h>
12844#include <sys/socket.h>
12845
12846int
12847main ()
12848{
12849 struct sockaddr_storage s;
12850 ;
12851 return 0;
12852}
12853_ACEOF
12854rm -f conftest.$ac_objext
12855if { (eval echo "$as_me:12855: \"$ac_compile\"") >&5
12856 (eval $ac_compile) 2>&5
12857 ac_status=$?
12858 echo "$as_me:12858: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:12861: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:12864: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_cv_have_struct_sockaddr_storage="yes"
12867else
12868 echo "$as_me: failed program was:" >&5
12869cat conftest.$ac_ext >&5
12870 ac_cv_have_struct_sockaddr_storage="no"
12871
12872fi
12873rm -f conftest.$ac_objext conftest.$ac_ext
12874
12875fi
12876echo "$as_me:12876: result: $ac_cv_have_struct_sockaddr_storage" >&5
12877echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12878if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12879 cat >>confdefs.h <<\EOF
12880#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12881EOF
12882
12883fi
12884
12885echo "$as_me:12885: checking for struct sockaddr_in6" >&5
12886echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12887if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890
12891 cat >conftest.$ac_ext <<_ACEOF
12892#line 12892 "configure"
12893#include "confdefs.h"
12894
12895#include <sys/types.h>
12896#include <netinet/in.h>
12897
12898int
12899main ()
12900{
12901 struct sockaddr_in6 s; s.sin6_family = 0;
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext
12907if { (eval echo "$as_me:12907: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>&5
12909 ac_status=$?
12910 echo "$as_me:12910: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest.$ac_objext'
12913 { (eval echo "$as_me:12913: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:12916: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_have_struct_sockaddr_in6="yes"
12919else
12920 echo "$as_me: failed program was:" >&5
12921cat conftest.$ac_ext >&5
12922 ac_cv_have_struct_sockaddr_in6="no"
12923
12924fi
12925rm -f conftest.$ac_objext conftest.$ac_ext
12926
12927fi
12928echo "$as_me:12928: result: $ac_cv_have_struct_sockaddr_in6" >&5
12929echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12930if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12931 cat >>confdefs.h <<\EOF
12932#define HAVE_STRUCT_SOCKADDR_IN6 1
12933EOF
12934
12935fi
12936
12937echo "$as_me:12937: checking for struct in6_addr" >&5
12938echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12939if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
12942
12943 cat >conftest.$ac_ext <<_ACEOF
12944#line 12944 "configure"
12945#include "confdefs.h"
12946
12947#include <sys/types.h>
12948#include <netinet/in.h>
12949
12950int
12951main ()
12952{
12953 struct in6_addr s; s.s6_addr[0] = 0;
12954 ;
12955 return 0;
12956}
12957_ACEOF
12958rm -f conftest.$ac_objext
12959if { (eval echo "$as_me:12959: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 echo "$as_me:12962: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -s conftest.$ac_objext'
12965 { (eval echo "$as_me:12965: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:12968: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_have_struct_in6_addr="yes"
12971else
12972 echo "$as_me: failed program was:" >&5
12973cat conftest.$ac_ext >&5
12974 ac_cv_have_struct_in6_addr="no"
12975
12976fi
12977rm -f conftest.$ac_objext conftest.$ac_ext
12978
12979fi
12980echo "$as_me:12980: result: $ac_cv_have_struct_in6_addr" >&5
12981echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12982if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12983 cat >>confdefs.h <<\EOF
12984#define HAVE_STRUCT_IN6_ADDR 1
12985EOF
12986
12987fi
12988
12989echo "$as_me:12989: checking for struct addrinfo" >&5
12990echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12991if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
12994
12995 cat >conftest.$ac_ext <<_ACEOF
12996#line 12996 "configure"
12997#include "confdefs.h"
12998
12999#include <sys/types.h>
13000#include <sys/socket.h>
13001#include <netdb.h>
13002
13003int
13004main ()
13005{
13006 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011rm -f conftest.$ac_objext
13012if { (eval echo "$as_me:13012: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>&5
13014 ac_status=$?
13015 echo "$as_me:13015: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -s conftest.$ac_objext'
13018 { (eval echo "$as_me:13018: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:13021: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_have_struct_addrinfo="yes"
13024else
13025 echo "$as_me: failed program was:" >&5
13026cat conftest.$ac_ext >&5
13027 ac_cv_have_struct_addrinfo="no"
13028
13029fi
13030rm -f conftest.$ac_objext conftest.$ac_ext
13031
13032fi
13033echo "$as_me:13033: result: $ac_cv_have_struct_addrinfo" >&5
13034echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13035if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13036 cat >>confdefs.h <<\EOF
13037#define HAVE_STRUCT_ADDRINFO 1
13038EOF
13039
13040fi
13041
13042echo "$as_me:13042: checking for struct timeval" >&5
13043echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13044if test "${ac_cv_have_struct_timeval+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047
13048 cat >conftest.$ac_ext <<_ACEOF
13049#line 13049 "configure"
13050#include "confdefs.h"
13051 #include <sys/time.h>
13052int
13053main ()
13054{
13055 struct timeval tv; tv.tv_sec = 1;
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext
13061if { (eval echo "$as_me:13061: \"$ac_compile\"") >&5
13062 (eval $ac_compile) 2>&5
13063 ac_status=$?
13064 echo "$as_me:13064: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:13067: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:13070: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_cv_have_struct_timeval="yes"
13073else
13074 echo "$as_me: failed program was:" >&5
13075cat conftest.$ac_ext >&5
13076 ac_cv_have_struct_timeval="no"
13077
13078fi
13079rm -f conftest.$ac_objext conftest.$ac_ext
13080
13081fi
13082echo "$as_me:13082: result: $ac_cv_have_struct_timeval" >&5
13083echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13084if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13085 cat >>confdefs.h <<\EOF
13086#define HAVE_STRUCT_TIMEVAL 1
13087EOF
13088
13089 have_struct_timeval=1
13090fi
13091
13092echo "$as_me:13092: checking for struct timespec" >&5
13093echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13094if test "${ac_cv_type_struct_timespec+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096else
13097 cat >conftest.$ac_ext <<_ACEOF
13098#line 13098 "configure"
13099#include "confdefs.h"
13100$ac_includes_default
13101int
13102main ()
13103{
13104if ((struct timespec *) 0)
13105 return 0;
13106if (sizeof (struct timespec))
13107 return 0;
13108 ;
13109 return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext
13113if { (eval echo "$as_me:13113: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>&5
13115 ac_status=$?
13116 echo "$as_me:13116: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:13119: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:13122: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_type_struct_timespec=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127cat conftest.$ac_ext >&5
13128ac_cv_type_struct_timespec=no
13129fi
13130rm -f conftest.$ac_objext conftest.$ac_ext
13131fi
13132echo "$as_me:13132: result: $ac_cv_type_struct_timespec" >&5
13133echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
13134if test $ac_cv_type_struct_timespec = yes; then
13135
13136cat >>confdefs.h <<EOF
13137#define HAVE_STRUCT_TIMESPEC 1
13138EOF
13139
13140fi
13141
13142# We need int64_t or else certian parts of the compile will fail.
13143if test "x$ac_cv_have_int64_t" = "xno" -a \
13144 "x$ac_cv_sizeof_long_int" != "x8" -a \
13145 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13146 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13147 echo "an alternative compiler (I.E., GCC) before continuing."
13148 echo ""
13149 exit 1;
13150else
13151 if test "$cross_compiling" = yes; then
13152 { { echo "$as_me:13152: error: cannot run test program while cross compiling" >&5
13153echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13154 { (exit 1); exit 1; }; }
13155else
13156 cat >conftest.$ac_ext <<_ACEOF
13157#line 13157 "configure"
13158#include "confdefs.h"
13159
13160#include <stdio.h>
13161#include <string.h>
13162#ifdef HAVE_SNPRINTF
13163main()
13164{
13165 char buf[50];
13166 char expected_out[50];
13167 int mazsize = 50 ;
13168#if (SIZEOF_LONG_INT == 8)
13169 long int num = 0x7fffffffffffffff;
13170#else
13171 long long num = 0x7fffffffffffffffll;
13172#endif
13173 strcpy(expected_out, "9223372036854775807");
13174 snprintf(buf, mazsize, "%lld", num);
13175 if(strcmp(buf, expected_out) != 0)
13176 exit(1);
13177 exit(0);
13178}
13179#else
13180main() { exit(0); }
13181#endif
13182
13183_ACEOF
13184rm -f conftest$ac_exeext
13185if { (eval echo "$as_me:13185: \"$ac_link\"") >&5
13186 (eval $ac_link) 2>&5
13187 ac_status=$?
13188 echo "$as_me:13188: \$? = $ac_status" >&5
13189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13190 { (eval echo "$as_me:13190: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:13193: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 true
13196else
13197 echo "$as_me: program exited with status $ac_status" >&5
13198echo "$as_me: failed program was:" >&5
13199cat conftest.$ac_ext >&5
13200 cat >>confdefs.h <<\EOF
13201#define BROKEN_SNPRINTF 1
13202EOF
13203
13204fi
13205rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13206fi
13207fi
13208
13209# look for field 'ut_host' in header 'utmp.h'
13210 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13211 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13212 echo "$as_me:13212: checking for ut_host field in utmp.h" >&5
13213echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13214 if eval "test \"\${$ossh_varname+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216else
13217
13218 cat >conftest.$ac_ext <<_ACEOF
13219#line 13219 "configure"
13220#include "confdefs.h"
13221#include <utmp.h>
13222
13223_ACEOF
13224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13225 egrep "ut_host" >/dev/null 2>&1; then
13226 eval "$ossh_varname=yes"
13227else
13228 eval "$ossh_varname=no"
13229fi
13230rm -f conftest*
13231
13232fi
13233
13234 ossh_result=`eval 'echo $'"$ossh_varname"`
13235 if test -n "`echo $ossh_varname`"; then
13236 echo "$as_me:13236: result: $ossh_result" >&5
13237echo "${ECHO_T}$ossh_result" >&6
13238 if test "x$ossh_result" = "xyes"; then
13239 cat >>confdefs.h <<\EOF
13240#define HAVE_HOST_IN_UTMP 1
13241EOF
13242
13243 fi
13244 else
13245 echo "$as_me:13245: result: no" >&5
13246echo "${ECHO_T}no" >&6
13247 fi
13248
13249# look for field 'ut_host' in header 'utmpx.h'
13250 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13251 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13252 echo "$as_me:13252: checking for ut_host field in utmpx.h" >&5
13253echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13254 if eval "test \"\${$ossh_varname+set}\" = set"; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257
13258 cat >conftest.$ac_ext <<_ACEOF
13259#line 13259 "configure"
13260#include "confdefs.h"
13261#include <utmpx.h>
13262
13263_ACEOF
13264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265 egrep "ut_host" >/dev/null 2>&1; then
13266 eval "$ossh_varname=yes"
13267else
13268 eval "$ossh_varname=no"
13269fi
13270rm -f conftest*
13271
13272fi
13273
13274 ossh_result=`eval 'echo $'"$ossh_varname"`
13275 if test -n "`echo $ossh_varname`"; then
13276 echo "$as_me:13276: result: $ossh_result" >&5
13277echo "${ECHO_T}$ossh_result" >&6
13278 if test "x$ossh_result" = "xyes"; then
13279 cat >>confdefs.h <<\EOF
13280#define HAVE_HOST_IN_UTMPX 1
13281EOF
13282
13283 fi
13284 else
13285 echo "$as_me:13285: result: no" >&5
13286echo "${ECHO_T}no" >&6
13287 fi
13288
13289# look for field 'syslen' in header 'utmpx.h'
13290 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13291 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13292 echo "$as_me:13292: checking for syslen field in utmpx.h" >&5
13293echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13294 if eval "test \"\${$ossh_varname+set}\" = set"; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297
13298 cat >conftest.$ac_ext <<_ACEOF
13299#line 13299 "configure"
13300#include "confdefs.h"
13301#include <utmpx.h>
13302
13303_ACEOF
13304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305 egrep "syslen" >/dev/null 2>&1; then
13306 eval "$ossh_varname=yes"
13307else
13308 eval "$ossh_varname=no"
13309fi
13310rm -f conftest*
13311
13312fi
13313
13314 ossh_result=`eval 'echo $'"$ossh_varname"`
13315 if test -n "`echo $ossh_varname`"; then
13316 echo "$as_me:13316: result: $ossh_result" >&5
13317echo "${ECHO_T}$ossh_result" >&6
13318 if test "x$ossh_result" = "xyes"; then
13319 cat >>confdefs.h <<\EOF
13320#define HAVE_SYSLEN_IN_UTMPX 1
13321EOF
13322
13323 fi
13324 else
13325 echo "$as_me:13325: result: no" >&5
13326echo "${ECHO_T}no" >&6
13327 fi
13328
13329# look for field 'ut_pid' in header 'utmp.h'
13330 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13331 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13332 echo "$as_me:13332: checking for ut_pid field in utmp.h" >&5
13333echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13334 if eval "test \"\${$ossh_varname+set}\" = set"; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336else
13337
13338 cat >conftest.$ac_ext <<_ACEOF
13339#line 13339 "configure"
13340#include "confdefs.h"
13341#include <utmp.h>
13342
13343_ACEOF
13344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13345 egrep "ut_pid" >/dev/null 2>&1; then
13346 eval "$ossh_varname=yes"
13347else
13348 eval "$ossh_varname=no"
13349fi
13350rm -f conftest*
13351
13352fi
13353
13354 ossh_result=`eval 'echo $'"$ossh_varname"`
13355 if test -n "`echo $ossh_varname`"; then
13356 echo "$as_me:13356: result: $ossh_result" >&5
13357echo "${ECHO_T}$ossh_result" >&6
13358 if test "x$ossh_result" = "xyes"; then
13359 cat >>confdefs.h <<\EOF
13360#define HAVE_PID_IN_UTMP 1
13361EOF
13362
13363 fi
13364 else
13365 echo "$as_me:13365: result: no" >&5
13366echo "${ECHO_T}no" >&6
13367 fi
13368
13369# look for field 'ut_type' in header 'utmp.h'
13370 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13371 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13372 echo "$as_me:13372: checking for ut_type field in utmp.h" >&5
13373echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13374 if eval "test \"\${$ossh_varname+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377
13378 cat >conftest.$ac_ext <<_ACEOF
13379#line 13379 "configure"
13380#include "confdefs.h"
13381#include <utmp.h>
13382
13383_ACEOF
13384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13385 egrep "ut_type" >/dev/null 2>&1; then
13386 eval "$ossh_varname=yes"
13387else
13388 eval "$ossh_varname=no"
13389fi
13390rm -f conftest*
13391
13392fi
13393
13394 ossh_result=`eval 'echo $'"$ossh_varname"`
13395 if test -n "`echo $ossh_varname`"; then
13396 echo "$as_me:13396: result: $ossh_result" >&5
13397echo "${ECHO_T}$ossh_result" >&6
13398 if test "x$ossh_result" = "xyes"; then
13399 cat >>confdefs.h <<\EOF
13400#define HAVE_TYPE_IN_UTMP 1
13401EOF
13402
13403 fi
13404 else
13405 echo "$as_me:13405: result: no" >&5
13406echo "${ECHO_T}no" >&6
13407 fi
13408
13409# look for field 'ut_type' in header 'utmpx.h'
13410 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13411 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13412 echo "$as_me:13412: checking for ut_type field in utmpx.h" >&5
13413echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13414 if eval "test \"\${$ossh_varname+set}\" = set"; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417
13418 cat >conftest.$ac_ext <<_ACEOF
13419#line 13419 "configure"
13420#include "confdefs.h"
13421#include <utmpx.h>
13422
13423_ACEOF
13424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13425 egrep "ut_type" >/dev/null 2>&1; then
13426 eval "$ossh_varname=yes"
13427else
13428 eval "$ossh_varname=no"
13429fi
13430rm -f conftest*
13431
13432fi
13433
13434 ossh_result=`eval 'echo $'"$ossh_varname"`
13435 if test -n "`echo $ossh_varname`"; then
13436 echo "$as_me:13436: result: $ossh_result" >&5
13437echo "${ECHO_T}$ossh_result" >&6
13438 if test "x$ossh_result" = "xyes"; then
13439 cat >>confdefs.h <<\EOF
13440#define HAVE_TYPE_IN_UTMPX 1
13441EOF
13442
13443 fi
13444 else
13445 echo "$as_me:13445: result: no" >&5
13446echo "${ECHO_T}no" >&6
13447 fi
13448
13449# look for field 'ut_tv' in header 'utmp.h'
13450 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13451 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13452 echo "$as_me:13452: checking for ut_tv field in utmp.h" >&5
13453echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13454 if eval "test \"\${$ossh_varname+set}\" = set"; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459#line 13459 "configure"
13460#include "confdefs.h"
13461#include <utmp.h>
13462
13463_ACEOF
13464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13465 egrep "ut_tv" >/dev/null 2>&1; then
13466 eval "$ossh_varname=yes"
13467else
13468 eval "$ossh_varname=no"
13469fi
13470rm -f conftest*
13471
13472fi
13473
13474 ossh_result=`eval 'echo $'"$ossh_varname"`
13475 if test -n "`echo $ossh_varname`"; then
13476 echo "$as_me:13476: result: $ossh_result" >&5
13477echo "${ECHO_T}$ossh_result" >&6
13478 if test "x$ossh_result" = "xyes"; then
13479 cat >>confdefs.h <<\EOF
13480#define HAVE_TV_IN_UTMP 1
13481EOF
13482
13483 fi
13484 else
13485 echo "$as_me:13485: result: no" >&5
13486echo "${ECHO_T}no" >&6
13487 fi
13488
13489# look for field 'ut_id' in header 'utmp.h'
13490 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13491 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13492 echo "$as_me:13492: checking for ut_id field in utmp.h" >&5
13493echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13494 if eval "test \"\${$ossh_varname+set}\" = set"; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496else
13497
13498 cat >conftest.$ac_ext <<_ACEOF
13499#line 13499 "configure"
13500#include "confdefs.h"
13501#include <utmp.h>
13502
13503_ACEOF
13504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505 egrep "ut_id" >/dev/null 2>&1; then
13506 eval "$ossh_varname=yes"
13507else
13508 eval "$ossh_varname=no"
13509fi
13510rm -f conftest*
13511
13512fi
13513
13514 ossh_result=`eval 'echo $'"$ossh_varname"`
13515 if test -n "`echo $ossh_varname`"; then
13516 echo "$as_me:13516: result: $ossh_result" >&5
13517echo "${ECHO_T}$ossh_result" >&6
13518 if test "x$ossh_result" = "xyes"; then
13519 cat >>confdefs.h <<\EOF
13520#define HAVE_ID_IN_UTMP 1
13521EOF
13522
13523 fi
13524 else
13525 echo "$as_me:13525: result: no" >&5
13526echo "${ECHO_T}no" >&6
13527 fi
13528
13529# look for field 'ut_id' in header 'utmpx.h'
13530 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13531 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13532 echo "$as_me:13532: checking for ut_id field in utmpx.h" >&5
13533echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13534 if eval "test \"\${$ossh_varname+set}\" = set"; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536else
13537
13538 cat >conftest.$ac_ext <<_ACEOF
13539#line 13539 "configure"
13540#include "confdefs.h"
13541#include <utmpx.h>
13542
13543_ACEOF
13544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13545 egrep "ut_id" >/dev/null 2>&1; then
13546 eval "$ossh_varname=yes"
13547else
13548 eval "$ossh_varname=no"
13549fi
13550rm -f conftest*
13551
13552fi
13553
13554 ossh_result=`eval 'echo $'"$ossh_varname"`
13555 if test -n "`echo $ossh_varname`"; then
13556 echo "$as_me:13556: result: $ossh_result" >&5
13557echo "${ECHO_T}$ossh_result" >&6
13558 if test "x$ossh_result" = "xyes"; then
13559 cat >>confdefs.h <<\EOF
13560#define HAVE_ID_IN_UTMPX 1
13561EOF
13562
13563 fi
13564 else
13565 echo "$as_me:13565: result: no" >&5
13566echo "${ECHO_T}no" >&6
13567 fi
13568
13569# look for field 'ut_addr' in header 'utmp.h'
13570 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13571 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13572 echo "$as_me:13572: checking for ut_addr field in utmp.h" >&5
13573echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13574 if eval "test \"\${$ossh_varname+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577
13578 cat >conftest.$ac_ext <<_ACEOF
13579#line 13579 "configure"
13580#include "confdefs.h"
13581#include <utmp.h>
13582
13583_ACEOF
13584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 egrep "ut_addr" >/dev/null 2>&1; then
13586 eval "$ossh_varname=yes"
13587else
13588 eval "$ossh_varname=no"
13589fi
13590rm -f conftest*
13591
13592fi
13593
13594 ossh_result=`eval 'echo $'"$ossh_varname"`
13595 if test -n "`echo $ossh_varname`"; then
13596 echo "$as_me:13596: result: $ossh_result" >&5
13597echo "${ECHO_T}$ossh_result" >&6
13598 if test "x$ossh_result" = "xyes"; then
13599 cat >>confdefs.h <<\EOF
13600#define HAVE_ADDR_IN_UTMP 1
13601EOF
13602
13603 fi
13604 else
13605 echo "$as_me:13605: result: no" >&5
13606echo "${ECHO_T}no" >&6
13607 fi
13608
13609# look for field 'ut_addr' in header 'utmpx.h'
13610 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13611 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13612 echo "$as_me:13612: checking for ut_addr field in utmpx.h" >&5
13613echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13614 if eval "test \"\${$ossh_varname+set}\" = set"; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617
13618 cat >conftest.$ac_ext <<_ACEOF
13619#line 13619 "configure"
13620#include "confdefs.h"
13621#include <utmpx.h>
13622
13623_ACEOF
13624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13625 egrep "ut_addr" >/dev/null 2>&1; then
13626 eval "$ossh_varname=yes"
13627else
13628 eval "$ossh_varname=no"
13629fi
13630rm -f conftest*
13631
13632fi
13633
13634 ossh_result=`eval 'echo $'"$ossh_varname"`
13635 if test -n "`echo $ossh_varname`"; then
13636 echo "$as_me:13636: result: $ossh_result" >&5
13637echo "${ECHO_T}$ossh_result" >&6
13638 if test "x$ossh_result" = "xyes"; then
13639 cat >>confdefs.h <<\EOF
13640#define HAVE_ADDR_IN_UTMPX 1
13641EOF
13642
13643 fi
13644 else
13645 echo "$as_me:13645: result: no" >&5
13646echo "${ECHO_T}no" >&6
13647 fi
13648
13649# look for field 'ut_addr_v6' in header 'utmp.h'
13650 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13651 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13652 echo "$as_me:13652: checking for ut_addr_v6 field in utmp.h" >&5
13653echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13654 if eval "test \"\${$ossh_varname+set}\" = set"; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656else
13657
13658 cat >conftest.$ac_ext <<_ACEOF
13659#line 13659 "configure"
13660#include "confdefs.h"
13661#include <utmp.h>
13662
13663_ACEOF
13664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13665 egrep "ut_addr_v6" >/dev/null 2>&1; then
13666 eval "$ossh_varname=yes"
13667else
13668 eval "$ossh_varname=no"
13669fi
13670rm -f conftest*
13671
13672fi
13673
13674 ossh_result=`eval 'echo $'"$ossh_varname"`
13675 if test -n "`echo $ossh_varname`"; then
13676 echo "$as_me:13676: result: $ossh_result" >&5
13677echo "${ECHO_T}$ossh_result" >&6
13678 if test "x$ossh_result" = "xyes"; then
13679 cat >>confdefs.h <<\EOF
13680#define HAVE_ADDR_V6_IN_UTMP 1
13681EOF
13682
13683 fi
13684 else
13685 echo "$as_me:13685: result: no" >&5
13686echo "${ECHO_T}no" >&6
13687 fi
13688
13689# look for field 'ut_addr_v6' in header 'utmpx.h'
13690 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13691 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13692 echo "$as_me:13692: checking for ut_addr_v6 field in utmpx.h" >&5
13693echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13694 if eval "test \"\${$ossh_varname+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697
13698 cat >conftest.$ac_ext <<_ACEOF
13699#line 13699 "configure"
13700#include "confdefs.h"
13701#include <utmpx.h>
13702
13703_ACEOF
13704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13705 egrep "ut_addr_v6" >/dev/null 2>&1; then
13706 eval "$ossh_varname=yes"
13707else
13708 eval "$ossh_varname=no"
13709fi
13710rm -f conftest*
13711
13712fi
13713
13714 ossh_result=`eval 'echo $'"$ossh_varname"`
13715 if test -n "`echo $ossh_varname`"; then
13716 echo "$as_me:13716: result: $ossh_result" >&5
13717echo "${ECHO_T}$ossh_result" >&6
13718 if test "x$ossh_result" = "xyes"; then
13719 cat >>confdefs.h <<\EOF
13720#define HAVE_ADDR_V6_IN_UTMPX 1
13721EOF
13722
13723 fi
13724 else
13725 echo "$as_me:13725: result: no" >&5
13726echo "${ECHO_T}no" >&6
13727 fi
13728
13729# look for field 'ut_exit' in header 'utmp.h'
13730 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13731 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13732 echo "$as_me:13732: checking for ut_exit field in utmp.h" >&5
13733echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13734 if eval "test \"\${$ossh_varname+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737
13738 cat >conftest.$ac_ext <<_ACEOF
13739#line 13739 "configure"
13740#include "confdefs.h"
13741#include <utmp.h>
13742
13743_ACEOF
13744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13745 egrep "ut_exit" >/dev/null 2>&1; then
13746 eval "$ossh_varname=yes"
13747else
13748 eval "$ossh_varname=no"
13749fi
13750rm -f conftest*
13751
13752fi
13753
13754 ossh_result=`eval 'echo $'"$ossh_varname"`
13755 if test -n "`echo $ossh_varname`"; then
13756 echo "$as_me:13756: result: $ossh_result" >&5
13757echo "${ECHO_T}$ossh_result" >&6
13758 if test "x$ossh_result" = "xyes"; then
13759 cat >>confdefs.h <<\EOF
13760#define HAVE_EXIT_IN_UTMP 1
13761EOF
13762
13763 fi
13764 else
13765 echo "$as_me:13765: result: no" >&5
13766echo "${ECHO_T}no" >&6
13767 fi
13768
13769# look for field 'ut_time' in header 'utmp.h'
13770 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13771 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13772 echo "$as_me:13772: checking for ut_time field in utmp.h" >&5
13773echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13774 if eval "test \"\${$ossh_varname+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777
13778 cat >conftest.$ac_ext <<_ACEOF
13779#line 13779 "configure"
13780#include "confdefs.h"
13781#include <utmp.h>
13782
13783_ACEOF
13784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785 egrep "ut_time" >/dev/null 2>&1; then
13786 eval "$ossh_varname=yes"
13787else
13788 eval "$ossh_varname=no"
13789fi
13790rm -f conftest*
13791
13792fi
13793
13794 ossh_result=`eval 'echo $'"$ossh_varname"`
13795 if test -n "`echo $ossh_varname`"; then
13796 echo "$as_me:13796: result: $ossh_result" >&5
13797echo "${ECHO_T}$ossh_result" >&6
13798 if test "x$ossh_result" = "xyes"; then
13799 cat >>confdefs.h <<\EOF
13800#define HAVE_TIME_IN_UTMP 1
13801EOF
13802
13803 fi
13804 else
13805 echo "$as_me:13805: result: no" >&5
13806echo "${ECHO_T}no" >&6
13807 fi
13808
13809# look for field 'ut_time' in header 'utmpx.h'
13810 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13811 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13812 echo "$as_me:13812: checking for ut_time field in utmpx.h" >&5
13813echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13814 if eval "test \"\${$ossh_varname+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817
13818 cat >conftest.$ac_ext <<_ACEOF
13819#line 13819 "configure"
13820#include "confdefs.h"
13821#include <utmpx.h>
13822
13823_ACEOF
13824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13825 egrep "ut_time" >/dev/null 2>&1; then
13826 eval "$ossh_varname=yes"
13827else
13828 eval "$ossh_varname=no"
13829fi
13830rm -f conftest*
13831
13832fi
13833
13834 ossh_result=`eval 'echo $'"$ossh_varname"`
13835 if test -n "`echo $ossh_varname`"; then
13836 echo "$as_me:13836: result: $ossh_result" >&5
13837echo "${ECHO_T}$ossh_result" >&6
13838 if test "x$ossh_result" = "xyes"; then
13839 cat >>confdefs.h <<\EOF
13840#define HAVE_TIME_IN_UTMPX 1
13841EOF
13842
13843 fi
13844 else
13845 echo "$as_me:13845: result: no" >&5
13846echo "${ECHO_T}no" >&6
13847 fi
13848
13849# look for field 'ut_tv' in header 'utmpx.h'
13850 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13851 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13852 echo "$as_me:13852: checking for ut_tv field in utmpx.h" >&5
13853echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13854 if eval "test \"\${$ossh_varname+set}\" = set"; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856else
13857
13858 cat >conftest.$ac_ext <<_ACEOF
13859#line 13859 "configure"
13860#include "confdefs.h"
13861#include <utmpx.h>
13862
13863_ACEOF
13864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13865 egrep "ut_tv" >/dev/null 2>&1; then
13866 eval "$ossh_varname=yes"
13867else
13868 eval "$ossh_varname=no"
13869fi
13870rm -f conftest*
13871
13872fi
13873
13874 ossh_result=`eval 'echo $'"$ossh_varname"`
13875 if test -n "`echo $ossh_varname`"; then
13876 echo "$as_me:13876: result: $ossh_result" >&5
13877echo "${ECHO_T}$ossh_result" >&6
13878 if test "x$ossh_result" = "xyes"; then
13879 cat >>confdefs.h <<\EOF
13880#define HAVE_TV_IN_UTMPX 1
13881EOF
13882
13883 fi
13884 else
13885 echo "$as_me:13885: result: no" >&5
13886echo "${ECHO_T}no" >&6
13887 fi
13888
13889echo "$as_me:13889: checking for struct stat.st_blksize" >&5
13890echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13891if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 cat >conftest.$ac_ext <<_ACEOF
13895#line 13895 "configure"
13896#include "confdefs.h"
13897$ac_includes_default
13898int
13899main ()
13900{
13901static struct stat ac_aggr;
13902if (ac_aggr.st_blksize)
13903return 0;
13904 ;
13905 return 0;
13906}
13907_ACEOF
13908rm -f conftest.$ac_objext
13909if { (eval echo "$as_me:13909: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 echo "$as_me:13912: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:13915: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:13918: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_member_struct_stat_st_blksize=yes
13921else
13922 echo "$as_me: failed program was:" >&5
13923cat conftest.$ac_ext >&5
13924ac_cv_member_struct_stat_st_blksize=no
13925fi
13926rm -f conftest.$ac_objext conftest.$ac_ext
13927fi
13928echo "$as_me:13928: result: $ac_cv_member_struct_stat_st_blksize" >&5
13929echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13930if test $ac_cv_member_struct_stat_st_blksize = yes; then
13931
13932cat >>confdefs.h <<EOF
13933#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13934EOF
13935
13936fi
13937
13938echo "$as_me:13938: checking for ss_family field in struct sockaddr_storage" >&5
13939echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13940if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
13943
13944 cat >conftest.$ac_ext <<_ACEOF
13945#line 13945 "configure"
13946#include "confdefs.h"
13947
13948#include <sys/types.h>
13949#include <sys/socket.h>
13950
13951int
13952main ()
13953{
13954 struct sockaddr_storage s; s.ss_family = 1;
13955 ;
13956 return 0;
13957}
13958_ACEOF
13959rm -f conftest.$ac_objext
13960if { (eval echo "$as_me:13960: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13962 ac_status=$?
13963 echo "$as_me:13963: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -s conftest.$ac_objext'
13966 { (eval echo "$as_me:13966: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:13969: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_cv_have_ss_family_in_struct_ss="yes"
13972else
13973 echo "$as_me: failed program was:" >&5
13974cat conftest.$ac_ext >&5
13975 ac_cv_have_ss_family_in_struct_ss="no"
13976fi
13977rm -f conftest.$ac_objext conftest.$ac_ext
13978
13979fi
13980echo "$as_me:13980: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13981echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13982if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13983 cat >>confdefs.h <<\EOF
13984#define HAVE_SS_FAMILY_IN_SS 1
13985EOF
13986
13987fi
13988
13989echo "$as_me:13989: checking for __ss_family field in struct sockaddr_storage" >&5
13990echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13991if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993else
13994
13995 cat >conftest.$ac_ext <<_ACEOF
13996#line 13996 "configure"
13997#include "confdefs.h"
13998
13999#include <sys/types.h>
14000#include <sys/socket.h>
14001
14002int
14003main ()
14004{
14005 struct sockaddr_storage s; s.__ss_family = 1;
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext
14011if { (eval echo "$as_me:14011: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>&5
14013 ac_status=$?
14014 echo "$as_me:14014: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -s conftest.$ac_objext'
14017 { (eval echo "$as_me:14017: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 ac_cv_have___ss_family_in_struct_ss="yes"
14023else
14024 echo "$as_me: failed program was:" >&5
14025cat conftest.$ac_ext >&5
14026 ac_cv_have___ss_family_in_struct_ss="no"
14027
14028fi
14029rm -f conftest.$ac_objext conftest.$ac_ext
14030
14031fi
14032echo "$as_me:14032: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14033echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14034if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14035 cat >>confdefs.h <<\EOF
14036#define HAVE___SS_FAMILY_IN_SS 1
14037EOF
14038
14039fi
14040
14041echo "$as_me:14041: checking for pw_class field in struct passwd" >&5
14042echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14043if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045else
14046
14047 cat >conftest.$ac_ext <<_ACEOF
14048#line 14048 "configure"
14049#include "confdefs.h"
14050
14051#include <pwd.h>
14052
14053int
14054main ()
14055{
14056 struct passwd p; p.pw_class = 0;
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
14062if { (eval echo "$as_me:14062: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>&5
14064 ac_status=$?
14065 echo "$as_me:14065: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (eval echo "$as_me:14068: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:14071: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_have_pw_class_in_struct_passwd="yes"
14074else
14075 echo "$as_me: failed program was:" >&5
14076cat conftest.$ac_ext >&5
14077 ac_cv_have_pw_class_in_struct_passwd="no"
14078
14079fi
14080rm -f conftest.$ac_objext conftest.$ac_ext
14081
14082fi
14083echo "$as_me:14083: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14084echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14085if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14086 cat >>confdefs.h <<\EOF
14087#define HAVE_PW_CLASS_IN_PASSWD 1
14088EOF
14089
14090fi
14091
14092echo "$as_me:14092: checking for pw_expire field in struct passwd" >&5
14093echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14094if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096else
14097
14098 cat >conftest.$ac_ext <<_ACEOF
14099#line 14099 "configure"
14100#include "confdefs.h"
14101
14102#include <pwd.h>
14103
14104int
14105main ()
14106{
14107 struct passwd p; p.pw_expire = 0;
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext
14113if { (eval echo "$as_me:14113: \"$ac_compile\"") >&5
14114 (eval $ac_compile) 2>&5
14115 ac_status=$?
14116 echo "$as_me:14116: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -s conftest.$ac_objext'
14119 { (eval echo "$as_me:14119: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:14122: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_have_pw_expire_in_struct_passwd="yes"
14125else
14126 echo "$as_me: failed program was:" >&5
14127cat conftest.$ac_ext >&5
14128 ac_cv_have_pw_expire_in_struct_passwd="no"
14129
14130fi
14131rm -f conftest.$ac_objext conftest.$ac_ext
14132
14133fi
14134echo "$as_me:14134: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14135echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14136if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14137 cat >>confdefs.h <<\EOF
14138#define HAVE_PW_EXPIRE_IN_PASSWD 1
14139EOF
14140
14141fi
14142
14143echo "$as_me:14143: checking for pw_change field in struct passwd" >&5
14144echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14145if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148
14149 cat >conftest.$ac_ext <<_ACEOF
14150#line 14150 "configure"
14151#include "confdefs.h"
14152
14153#include <pwd.h>
14154
14155int
14156main ()
14157{
14158 struct passwd p; p.pw_change = 0;
14159 ;
14160 return 0;
14161}
14162_ACEOF
14163rm -f conftest.$ac_objext
14164if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -s conftest.$ac_objext'
14170 { (eval echo "$as_me:14170: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:14173: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_have_pw_change_in_struct_passwd="yes"
14176else
14177 echo "$as_me: failed program was:" >&5
14178cat conftest.$ac_ext >&5
14179 ac_cv_have_pw_change_in_struct_passwd="no"
14180
14181fi
14182rm -f conftest.$ac_objext conftest.$ac_ext
14183
14184fi
14185echo "$as_me:14185: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14186echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14187if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14188 cat >>confdefs.h <<\EOF
14189#define HAVE_PW_CHANGE_IN_PASSWD 1
14190EOF
14191
14192fi
14193
14194echo "$as_me:14194: checking for msg_accrights field in struct msghdr" >&5
14195echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14196if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198else
14199
14200 if test "$cross_compiling" = yes; then
14201 { { echo "$as_me:14201: error: cannot run test program while cross compiling" >&5
14202echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14203 { (exit 1); exit 1; }; }
14204else
14205 cat >conftest.$ac_ext <<_ACEOF
14206#line 14206 "configure"
14207#include "confdefs.h"
14208
14209#include <sys/types.h>
14210#include <sys/socket.h>
14211#include <sys/uio.h>
14212int main() {
14213#ifdef msg_accrights
14214exit(1);
14215#endif
14216struct msghdr m;
14217m.msg_accrights = 0;
14218exit(0);
14219}
14220
14221_ACEOF
14222rm -f conftest$ac_exeext
14223if { (eval echo "$as_me:14223: \"$ac_link\"") >&5
14224 (eval $ac_link) 2>&5
14225 ac_status=$?
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14228 { (eval echo "$as_me:14228: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:14231: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_cv_have_accrights_in_msghdr="yes"
14234else
14235 echo "$as_me: program exited with status $ac_status" >&5
14236echo "$as_me: failed program was:" >&5
14237cat conftest.$ac_ext >&5
14238 ac_cv_have_accrights_in_msghdr="no"
14239
14240fi
14241rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14242fi
14243
14244fi
14245echo "$as_me:14245: result: $ac_cv_have_accrights_in_msghdr" >&5
14246echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14247if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14248 cat >>confdefs.h <<\EOF
14249#define HAVE_ACCRIGHTS_IN_MSGHDR 1
14250EOF
14251
14252fi
14253
14254echo "$as_me:14254: checking for msg_control field in struct msghdr" >&5
14255echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14256if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258else
14259
14260 if test "$cross_compiling" = yes; then
14261 { { echo "$as_me:14261: error: cannot run test program while cross compiling" >&5
14262echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14263 { (exit 1); exit 1; }; }
14264else
14265 cat >conftest.$ac_ext <<_ACEOF
14266#line 14266 "configure"
14267#include "confdefs.h"
14268
14269#include <sys/types.h>
14270#include <sys/socket.h>
14271#include <sys/uio.h>
14272int main() {
14273#ifdef msg_control
14274exit(1);
14275#endif
14276struct msghdr m;
14277m.msg_control = 0;
14278exit(0);
14279}
14280
14281_ACEOF
14282rm -f conftest$ac_exeext
14283if { (eval echo "$as_me:14283: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>&5
14285 ac_status=$?
14286 echo "$as_me:14286: \$? = $ac_status" >&5
14287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14288 { (eval echo "$as_me:14288: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:14291: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_have_control_in_msghdr="yes"
14294else
14295 echo "$as_me: program exited with status $ac_status" >&5
14296echo "$as_me: failed program was:" >&5
14297cat conftest.$ac_ext >&5
14298 ac_cv_have_control_in_msghdr="no"
14299
14300fi
14301rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14302fi
14303
14304fi
14305echo "$as_me:14305: result: $ac_cv_have_control_in_msghdr" >&5
14306echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14307if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14308 cat >>confdefs.h <<\EOF
14309#define HAVE_CONTROL_IN_MSGHDR 1
14310EOF
14311
14312fi
14313
14314echo "$as_me:14314: checking if libc defines __progname" >&5
14315echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14316if test "${ac_cv_libc_defines___progname+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319
14320 cat >conftest.$ac_ext <<_ACEOF
14321#line 14321 "configure"
14322#include "confdefs.h"
14323
14324int
14325main ()
14326{
14327 extern char *__progname; printf("%s", __progname);
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext conftest$ac_exeext
14333if { (eval echo "$as_me:14333: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14335 ac_status=$?
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:14339: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:14342: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_libc_defines___progname="yes"
14345else
14346 echo "$as_me: failed program was:" >&5
14347cat conftest.$ac_ext >&5
14348 ac_cv_libc_defines___progname="no"
14349
14350fi
14351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352
14353fi
14354echo "$as_me:14354: result: $ac_cv_libc_defines___progname" >&5
14355echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14356if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14357 cat >>confdefs.h <<\EOF
14358#define HAVE___PROGNAME 1
14359EOF
14360
14361fi
14362
14363echo "$as_me:14363: checking whether $CC implements __FUNCTION__" >&5
14364echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14365if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367else
14368
14369 cat >conftest.$ac_ext <<_ACEOF
14370#line 14370 "configure"
14371#include "confdefs.h"
14372
14373#include <stdio.h>
14374
14375int
14376main ()
14377{
14378 printf("%s", __FUNCTION__);
14379 ;
14380 return 0;
14381}
14382_ACEOF
14383rm -f conftest.$ac_objext conftest$ac_exeext
14384if { (eval echo "$as_me:14384: \"$ac_link\"") >&5
14385 (eval $ac_link) 2>&5
14386 ac_status=$?
14387 echo "$as_me:14387: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -s conftest$ac_exeext'
14390 { (eval echo "$as_me:14390: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 ac_cv_cc_implements___FUNCTION__="yes"
14396else
14397 echo "$as_me: failed program was:" >&5
14398cat conftest.$ac_ext >&5
14399 ac_cv_cc_implements___FUNCTION__="no"
14400
14401fi
14402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14403
14404fi
14405echo "$as_me:14405: result: $ac_cv_cc_implements___FUNCTION__" >&5
14406echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14407if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14408 cat >>confdefs.h <<\EOF
14409#define HAVE___FUNCTION__ 1
14410EOF
14411
14412fi
14413
14414echo "$as_me:14414: checking whether $CC implements __func__" >&5
14415echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14416if test "${ac_cv_cc_implements___func__+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419
14420 cat >conftest.$ac_ext <<_ACEOF
14421#line 14421 "configure"
14422#include "confdefs.h"
14423
14424#include <stdio.h>
14425
14426int
14427main ()
14428{
14429 printf("%s", __func__);
14430 ;
14431 return 0;
14432}
14433_ACEOF
14434rm -f conftest.$ac_objext conftest$ac_exeext
14435if { (eval echo "$as_me:14435: \"$ac_link\"") >&5
14436 (eval $ac_link) 2>&5
14437 ac_status=$?
14438 echo "$as_me:14438: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (eval echo "$as_me:14441: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:14444: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 ac_cv_cc_implements___func__="yes"
14447else
14448 echo "$as_me: failed program was:" >&5
14449cat conftest.$ac_ext >&5
14450 ac_cv_cc_implements___func__="no"
14451
14452fi
14453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14454
14455fi
14456echo "$as_me:14456: result: $ac_cv_cc_implements___func__" >&5
14457echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14458if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14459 cat >>confdefs.h <<\EOF
14460#define HAVE___func__ 1
14461EOF
14462
14463fi
14464
14465echo "$as_me:14465: checking whether getopt has optreset support" >&5
14466echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14467if test "${ac_cv_have_getopt_optreset+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469else
14470
14471 cat >conftest.$ac_ext <<_ACEOF
14472#line 14472 "configure"
14473#include "confdefs.h"
14474
14475#include <getopt.h>
14476
14477int
14478main ()
14479{
14480 extern int optreset; optreset = 0;
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485rm -f conftest.$ac_objext conftest$ac_exeext
14486if { (eval echo "$as_me:14486: \"$ac_link\"") >&5
14487 (eval $ac_link) 2>&5
14488 ac_status=$?
14489 echo "$as_me:14489: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -s conftest$ac_exeext'
14492 { (eval echo "$as_me:14492: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:14495: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_have_getopt_optreset="yes"
14498else
14499 echo "$as_me: failed program was:" >&5
14500cat conftest.$ac_ext >&5
14501 ac_cv_have_getopt_optreset="no"
14502
14503fi
14504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14505
14506fi
14507echo "$as_me:14507: result: $ac_cv_have_getopt_optreset" >&5
14508echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14509if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14510 cat >>confdefs.h <<\EOF
14511#define HAVE_GETOPT_OPTRESET 1
14512EOF
14513
14514fi
14515
14516echo "$as_me:14516: checking if libc defines sys_errlist" >&5
14517echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14518if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520else
14521
14522 cat >conftest.$ac_ext <<_ACEOF
14523#line 14523 "configure"
14524#include "confdefs.h"
14525
14526int
14527main ()
14528{
14529 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534rm -f conftest.$ac_objext conftest$ac_exeext
14535if { (eval echo "$as_me:14535: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14537 ac_status=$?
14538 echo "$as_me:14538: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:14541: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:14544: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_libc_defines_sys_errlist="yes"
14547else
14548 echo "$as_me: failed program was:" >&5
14549cat conftest.$ac_ext >&5
14550 ac_cv_libc_defines_sys_errlist="no"
14551
14552fi
14553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14554
14555fi
14556echo "$as_me:14556: result: $ac_cv_libc_defines_sys_errlist" >&5
14557echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14558if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14559 cat >>confdefs.h <<\EOF
14560#define HAVE_SYS_ERRLIST 1
14561EOF
14562
14563fi
14564
14565echo "$as_me:14565: checking if libc defines sys_nerr" >&5
14566echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14567if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570
14571 cat >conftest.$ac_ext <<_ACEOF
14572#line 14572 "configure"
14573#include "confdefs.h"
14574
14575int
14576main ()
14577{
14578 extern int sys_nerr; printf("%i", sys_nerr);
14579 ;
14580 return 0;
14581}
14582_ACEOF
14583rm -f conftest.$ac_objext conftest$ac_exeext
14584if { (eval echo "$as_me:14584: \"$ac_link\"") >&5
14585 (eval $ac_link) 2>&5
14586 ac_status=$?
14587 echo "$as_me:14587: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (eval echo "$as_me:14590: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:14593: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 ac_cv_libc_defines_sys_nerr="yes"
14596else
14597 echo "$as_me: failed program was:" >&5
14598cat conftest.$ac_ext >&5
14599 ac_cv_libc_defines_sys_nerr="no"
14600
14601fi
14602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603
14604fi
14605echo "$as_me:14605: result: $ac_cv_libc_defines_sys_nerr" >&5
14606echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14607if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14608 cat >>confdefs.h <<\EOF
14609#define HAVE_SYS_NERR 1
14610EOF
14611
14612fi
14613
14614SCARD_MSG="no"
14615# Check whether user wants sectok support
14616
14617# Check whether --with-sectok or --without-sectok was given.
14618if test "${with_sectok+set}" = set; then
14619 withval="$with_sectok"
14620
14621 if test "x$withval" != "xno" ; then
14622 if test "x$withval" != "xyes" ; then
14623 CPPFLAGS="$CPPFLAGS -I${withval}"
14624 LDFLAGS="$LDFLAGS -L${withval}"
14625 if test ! -z "$need_dash_r" ; then
14626 LDFLAGS="$LDFLAGS -R${withval}"
14627 fi
14628 if test ! -z "$blibpath" ; then
14629 blibpath="$blibpath:${withval}"
14630 fi
14631 fi
14632
14633for ac_header in sectok.h
14634do
14635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14636echo "$as_me:14636: checking for $ac_header" >&5
14637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14638if eval "test \"\${$as_ac_Header+set}\" = set"; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641 cat >conftest.$ac_ext <<_ACEOF
14642#line 14642 "configure"
14643#include "confdefs.h"
14644#include <$ac_header>
14645_ACEOF
14646if { (eval echo "$as_me:14646: \"$ac_cpp conftest.$ac_ext\"") >&5
14647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14648 ac_status=$?
14649 egrep -v '^ *\+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:14652: \$? = $ac_status" >&5
14653 (exit $ac_status); } >/dev/null; then
14654 if test -s conftest.err; then
14655 ac_cpp_err=$ac_c_preproc_warn_flag
14656 else
14657 ac_cpp_err=
14658 fi
14659else
14660 ac_cpp_err=yes
14661fi
14662if test -z "$ac_cpp_err"; then
14663 eval "$as_ac_Header=yes"
14664else
14665 echo "$as_me: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 eval "$as_ac_Header=no"
14668fi
14669rm -f conftest.err conftest.$ac_ext
14670fi
14671echo "$as_me:14671: result: `eval echo '${'$as_ac_Header'}'`" >&5
14672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14673if test `eval echo '${'$as_ac_Header'}'` = yes; then
14674 cat >>confdefs.h <<EOF
14675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14676EOF
14677
14678fi
14679done
14680
14681 if test "$ac_cv_header_sectok_h" != yes; then
14682 { { echo "$as_me:14682: error: Can't find sectok.h" >&5
14683echo "$as_me: error: Can't find sectok.h" >&2;}
14684 { (exit 1); exit 1; }; }
14685 fi
14686
14687echo "$as_me:14687: checking for sectok_open in -lsectok" >&5
14688echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14689if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 ac_check_lib_save_LIBS=$LIBS
14693LIBS="-lsectok $LIBS"
14694cat >conftest.$ac_ext <<_ACEOF
14695#line 14695 "configure"
14696#include "confdefs.h"
14697
14698/* Override any gcc2 internal prototype to avoid an error. */
14699#ifdef __cplusplus
14700extern "C"
14701#endif
14702/* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14704char sectok_open ();
14705int
14706main ()
14707{
14708sectok_open ();
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext conftest$ac_exeext
14714if { (eval echo "$as_me:14714: \"$ac_link\"") >&5
14715 (eval $ac_link) 2>&5
14716 ac_status=$?
14717 echo "$as_me:14717: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
14719 { ac_try='test -s conftest$ac_exeext'
14720 { (eval echo "$as_me:14720: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:14723: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_cv_lib_sectok_sectok_open=yes
14726else
14727 echo "$as_me: failed program was:" >&5
14728cat conftest.$ac_ext >&5
14729ac_cv_lib_sectok_sectok_open=no
14730fi
14731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14732LIBS=$ac_check_lib_save_LIBS
14733fi
14734echo "$as_me:14734: result: $ac_cv_lib_sectok_sectok_open" >&5
14735echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14736if test $ac_cv_lib_sectok_sectok_open = yes; then
14737 cat >>confdefs.h <<EOF
14738#define HAVE_LIBSECTOK 1
14739EOF
14740
14741 LIBS="-lsectok $LIBS"
14742
14743fi
14744
14745 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14746 { { echo "$as_me:14746: error: Can't find libsectok" >&5
14747echo "$as_me: error: Can't find libsectok" >&2;}
14748 { (exit 1); exit 1; }; }
14749 fi
14750 cat >>confdefs.h <<\EOF
14751#define SMARTCARD 1
14752EOF
14753
14754 cat >>confdefs.h <<\EOF
14755#define USE_SECTOK 1
14756EOF
14757
14758 SCARD_MSG="yes, using sectok"
14759 fi
14760
14761fi;
14762
14763# Check whether user wants OpenSC support
14764
14765# Check whether --with-opensc or --without-opensc was given.
14766if test "${with_opensc+set}" = set; then
14767 withval="$with_opensc"
14768 opensc_config_prefix="$withval"
14769else
14770 opensc_config_prefix=""
14771fi;
14772if test x$opensc_config_prefix != x ; then
14773 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14774 # Extract the first word of "opensc-config", so it can be a program name with args.
14775set dummy opensc-config; ac_word=$2
14776echo "$as_me:14776: checking for $ac_word" >&5
14777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14778if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781 case $OPENSC_CONFIG in
14782 [\\/]* | ?:[\\/]*)
14783 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14784 ;;
14785 *)
14786 ac_save_IFS=$IFS; IFS=$ac_path_separator
14787ac_dummy="$PATH"
14788for ac_dir in $ac_dummy; do
14789 IFS=$ac_save_IFS
14790 test -z "$ac_dir" && ac_dir=.
14791 if $as_executable_p "$ac_dir/$ac_word"; then
14792 ac_cv_path_OPENSC_CONFIG="$ac_dir/$ac_word"
14793 echo "$as_me:14793: found $ac_dir/$ac_word" >&5
14794 break
14795fi
14796done
14797
14798 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14799 ;;
14800esac
14801fi
14802OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14803
14804if test -n "$OPENSC_CONFIG"; then
14805 echo "$as_me:14805: result: $OPENSC_CONFIG" >&5
14806echo "${ECHO_T}$OPENSC_CONFIG" >&6
14807else
14808 echo "$as_me:14808: result: no" >&5
14809echo "${ECHO_T}no" >&6
14810fi
14811
14812 if test "$OPENSC_CONFIG" != "no"; then
14813 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14814 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14815 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14816 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14817 cat >>confdefs.h <<\EOF
14818#define SMARTCARD 1
14819EOF
14820
14821 cat >>confdefs.h <<\EOF
14822#define USE_OPENSC 1
14823EOF
14824
14825 SCARD_MSG="yes, using OpenSC"
14826 fi
14827fi
14828
14829# Check libraries needed by DNS fingerprint support
14830echo "$as_me:14830: checking for library containing getrrsetbyname" >&5
14831echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6
14832if test "${ac_cv_search_getrrsetbyname+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 ac_func_search_save_LIBS=$LIBS
14836ac_cv_search_getrrsetbyname=no
14837cat >conftest.$ac_ext <<_ACEOF
14838#line 14838 "configure"
14839#include "confdefs.h"
14840
14841/* Override any gcc2 internal prototype to avoid an error. */
14842#ifdef __cplusplus
14843extern "C"
14844#endif
14845/* We use char because int might match the return type of a gcc2
14846 builtin and then its argument prototype would still apply. */
14847char getrrsetbyname ();
14848int
14849main ()
14850{
14851getrrsetbyname ();
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856rm -f conftest.$ac_objext conftest$ac_exeext
14857if { (eval echo "$as_me:14857: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>&5
14859 ac_status=$?
14860 echo "$as_me:14860: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -s conftest$ac_exeext'
14863 { (eval echo "$as_me:14863: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:14866: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_cv_search_getrrsetbyname="none required"
14869else
14870 echo "$as_me: failed program was:" >&5
14871cat conftest.$ac_ext >&5
14872fi
14873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14874if test "$ac_cv_search_getrrsetbyname" = no; then
14875 for ac_lib in resolv; do
14876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14877 cat >conftest.$ac_ext <<_ACEOF
14878#line 14878 "configure"
14879#include "confdefs.h"
14880
14881/* Override any gcc2 internal prototype to avoid an error. */
14882#ifdef __cplusplus
14883extern "C"
14884#endif
14885/* We use char because int might match the return type of a gcc2
14886 builtin and then its argument prototype would still apply. */
14887char getrrsetbyname ();
14888int
14889main ()
14890{
14891getrrsetbyname ();
14892 ;
14893 return 0;
14894}
14895_ACEOF
14896rm -f conftest.$ac_objext conftest$ac_exeext
14897if { (eval echo "$as_me:14897: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>&5
14899 ac_status=$?
14900 echo "$as_me:14900: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:14903: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:14906: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_search_getrrsetbyname="-l$ac_lib"
14909break
14910else
14911 echo "$as_me: failed program was:" >&5
14912cat conftest.$ac_ext >&5
14913fi
14914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14915 done
14916fi
14917LIBS=$ac_func_search_save_LIBS
14918fi
14919echo "$as_me:14919: result: $ac_cv_search_getrrsetbyname" >&5
14920echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6
14921if test "$ac_cv_search_getrrsetbyname" != no; then
14922 test "$ac_cv_search_getrrsetbyname" = "none required" || LIBS="$ac_cv_search_getrrsetbyname $LIBS"
14923 cat >>confdefs.h <<\EOF
14924#define HAVE_GETRRSETBYNAME 1
14925EOF
14926
14927else
14928
14929 # Needed by our getrrsetbyname()
14930 echo "$as_me:14930: checking for library containing res_query" >&5
14931echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
14932if test "${ac_cv_search_res_query+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 ac_func_search_save_LIBS=$LIBS
14936ac_cv_search_res_query=no
14937cat >conftest.$ac_ext <<_ACEOF
14938#line 14938 "configure"
14939#include "confdefs.h"
14940
14941/* Override any gcc2 internal prototype to avoid an error. */
14942#ifdef __cplusplus
14943extern "C"
14944#endif
14945/* We use char because int might match the return type of a gcc2
14946 builtin and then its argument prototype would still apply. */
14947char res_query ();
14948int
14949main ()
14950{
14951res_query ();
14952 ;
14953 return 0;
14954}
14955_ACEOF
14956rm -f conftest.$ac_objext conftest$ac_exeext
14957if { (eval echo "$as_me:14957: \"$ac_link\"") >&5
14958 (eval $ac_link) 2>&5
14959 ac_status=$?
14960 echo "$as_me:14960: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -s conftest$ac_exeext'
14963 { (eval echo "$as_me:14963: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:14966: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_cv_search_res_query="none required"
14969else
14970 echo "$as_me: failed program was:" >&5
14971cat conftest.$ac_ext >&5
14972fi
14973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14974if test "$ac_cv_search_res_query" = no; then
14975 for ac_lib in resolv; do
14976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14977 cat >conftest.$ac_ext <<_ACEOF
14978#line 14978 "configure"
14979#include "confdefs.h"
14980
14981/* Override any gcc2 internal prototype to avoid an error. */
14982#ifdef __cplusplus
14983extern "C"
14984#endif
14985/* We use char because int might match the return type of a gcc2
14986 builtin and then its argument prototype would still apply. */
14987char res_query ();
14988int
14989main ()
14990{
14991res_query ();
14992 ;
14993 return 0;
14994}
14995_ACEOF
14996rm -f conftest.$ac_objext conftest$ac_exeext
14997if { (eval echo "$as_me:14997: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>&5
14999 ac_status=$?
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:15006: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_search_res_query="-l$ac_lib"
15009break
15010else
15011 echo "$as_me: failed program was:" >&5
15012cat conftest.$ac_ext >&5
15013fi
15014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15015 done
15016fi
15017LIBS=$ac_func_search_save_LIBS
15018fi
15019echo "$as_me:15019: result: $ac_cv_search_res_query" >&5
15020echo "${ECHO_T}$ac_cv_search_res_query" >&6
15021if test "$ac_cv_search_res_query" != no; then
15022 test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
15023
15024fi
15025
15026 echo "$as_me:15026: checking for library containing dn_expand" >&5
15027echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
15028if test "${ac_cv_search_dn_expand+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 ac_func_search_save_LIBS=$LIBS
15032ac_cv_search_dn_expand=no
15033cat >conftest.$ac_ext <<_ACEOF
15034#line 15034 "configure"
15035#include "confdefs.h"
15036
15037/* Override any gcc2 internal prototype to avoid an error. */
15038#ifdef __cplusplus
15039extern "C"
15040#endif
15041/* We use char because int might match the return type of a gcc2
15042 builtin and then its argument prototype would still apply. */
15043char dn_expand ();
15044int
15045main ()
15046{
15047dn_expand ();
15048 ;
15049 return 0;
15050}
15051_ACEOF
15052rm -f conftest.$ac_objext conftest$ac_exeext
15053if { (eval echo "$as_me:15053: \"$ac_link\"") >&5
15054 (eval $ac_link) 2>&5
15055 ac_status=$?
15056 echo "$as_me:15056: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:15059: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:15062: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_cv_search_dn_expand="none required"
15065else
15066 echo "$as_me: failed program was:" >&5
15067cat conftest.$ac_ext >&5
15068fi
15069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15070if test "$ac_cv_search_dn_expand" = no; then
15071 for ac_lib in resolv; do
15072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074#line 15074 "configure"
15075#include "confdefs.h"
15076
15077/* Override any gcc2 internal prototype to avoid an error. */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081/* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15083char dn_expand ();
15084int
15085main ()
15086{
15087dn_expand ();
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (eval echo "$as_me:15093: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>&5
15095 ac_status=$?
15096 echo "$as_me:15096: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:15099: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:15102: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_search_dn_expand="-l$ac_lib"
15105break
15106else
15107 echo "$as_me: failed program was:" >&5
15108cat conftest.$ac_ext >&5
15109fi
15110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15111 done
15112fi
15113LIBS=$ac_func_search_save_LIBS
15114fi
15115echo "$as_me:15115: result: $ac_cv_search_dn_expand" >&5
15116echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
15117if test "$ac_cv_search_dn_expand" != no; then
15118 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
15119
15120fi
15121
15122for ac_func in _getshort _getlong
15123do
15124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125echo "$as_me:15125: checking for $ac_func" >&5
15126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127if eval "test \"\${$as_ac_var+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130 cat >conftest.$ac_ext <<_ACEOF
15131#line 15131 "configure"
15132#include "confdefs.h"
15133/* System header to define __stub macros and hopefully few prototypes,
15134 which can conflict with char $ac_func (); below. */
15135#include <assert.h>
15136/* Override any gcc2 internal prototype to avoid an error. */
15137#ifdef __cplusplus
15138extern "C"
15139#endif
15140/* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142char $ac_func ();
15143char (*f) ();
15144
15145int
15146main ()
15147{
15148/* The GNU C library defines this for functions which it implements
15149 to always fail with ENOSYS. Some functions are actually named
15150 something starting with __ and the normal name is an alias. */
15151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15152choke me
15153#else
15154f = $ac_func;
15155#endif
15156
15157 ;
15158 return 0;
15159}
15160_ACEOF
15161rm -f conftest.$ac_objext conftest$ac_exeext
15162if { (eval echo "$as_me:15162: \"$ac_link\"") >&5
15163 (eval $ac_link) 2>&5
15164 ac_status=$?
15165 echo "$as_me:15165: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:15168: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:15171: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 eval "$as_ac_var=yes"
15174else
15175 echo "$as_me: failed program was:" >&5
15176cat conftest.$ac_ext >&5
15177eval "$as_ac_var=no"
15178fi
15179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15180fi
15181echo "$as_me:15181: result: `eval echo '${'$as_ac_var'}'`" >&5
15182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15183if test `eval echo '${'$as_ac_var'}'` = yes; then
15184 cat >>confdefs.h <<EOF
15185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15186EOF
15187
15188fi
15189done
15190
15191 echo "$as_me:15191: checking for HEADER.ad" >&5
15192echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6
15193if test "${ac_cv_member_HEADER_ad+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 cat >conftest.$ac_ext <<_ACEOF
15197#line 15197 "configure"
15198#include "confdefs.h"
15199#include <arpa/nameser.h>
15200
15201int
15202main ()
15203{
15204static HEADER ac_aggr;
15205if (ac_aggr.ad)
15206return 0;
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:15212: \"$ac_compile\"") >&5
15213 (eval $ac_compile) 2>&5
15214 ac_status=$?
15215 echo "$as_me:15215: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -s conftest.$ac_objext'
15218 { (eval echo "$as_me:15218: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15220 ac_status=$?
15221 echo "$as_me:15221: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 ac_cv_member_HEADER_ad=yes
15224else
15225 echo "$as_me: failed program was:" >&5
15226cat conftest.$ac_ext >&5
15227ac_cv_member_HEADER_ad=no
15228fi
15229rm -f conftest.$ac_objext conftest.$ac_ext
15230fi
15231echo "$as_me:15231: result: $ac_cv_member_HEADER_ad" >&5
15232echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6
15233if test $ac_cv_member_HEADER_ad = yes; then
15234 cat >>confdefs.h <<\EOF
15235#define HAVE_HEADER_AD 1
15236EOF
15237
15238fi
15239
15240fi
15241
15242# Check whether user wants Kerberos 5 support
15243KRB5_MSG="no"
15244
15245# Check whether --with-kerberos5 or --without-kerberos5 was given.
15246if test "${with_kerberos5+set}" = set; then
15247 withval="$with_kerberos5"
15248 if test "x$withval" != "xno" ; then
15249 if test "x$withval" = "xyes" ; then
15250 KRB5ROOT="/usr/local"
15251 else
15252 KRB5ROOT=${withval}
15253 fi
15254
15255 cat >>confdefs.h <<\EOF
15256#define KRB5 1
15257EOF
15258
15259 KRB5_MSG="yes"
15260
15261 echo "$as_me:15261: checking for krb5-config" >&5
15262echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6
15263 if test -x $KRB5ROOT/bin/krb5-config ; then
15264 KRB5CONF=$KRB5ROOT/bin/krb5-config
15265 echo "$as_me:15265: result: $KRB5CONF" >&5
15266echo "${ECHO_T}$KRB5CONF" >&6
15267
15268 echo "$as_me:15268: checking for gssapi support" >&5
15269echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6
15270 if $KRB5CONF | grep gssapi >/dev/null ; then
15271 echo "$as_me:15271: result: yes" >&5
15272echo "${ECHO_T}yes" >&6
15273 cat >>confdefs.h <<\EOF
15274#define GSSAPI 1
15275EOF
15276
15277 k5confopts=gssapi
15278 else
15279 echo "$as_me:15279: result: no" >&5
15280echo "${ECHO_T}no" >&6
15281 k5confopts=""
15282 fi
15283 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15284 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15285 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15286 echo "$as_me:15286: checking whether we are using Heimdal" >&5
15287echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289#line 15289 "configure"
15290#include "confdefs.h"
15291 #include <krb5.h>
15292int
15293main ()
15294{
15295 char *tmp = heimdal_version;
15296 ;
15297 return 0;
15298}
15299_ACEOF
15300rm -f conftest.$ac_objext
15301if { (eval echo "$as_me:15301: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>&5
15303 ac_status=$?
15304 echo "$as_me:15304: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -s conftest.$ac_objext'
15307 { (eval echo "$as_me:15307: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:15310: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 echo "$as_me:15312: result: yes" >&5
15313echo "${ECHO_T}yes" >&6
15314 cat >>confdefs.h <<\EOF
15315#define HEIMDAL 1
15316EOF
15317
15318else
15319 echo "$as_me: failed program was:" >&5
15320cat conftest.$ac_ext >&5
15321echo "$as_me:15321: result: no" >&5
15322echo "${ECHO_T}no" >&6
15323
15324fi
15325rm -f conftest.$ac_objext conftest.$ac_ext
15326 else
15327 echo "$as_me:15327: result: no" >&5
15328echo "${ECHO_T}no" >&6
15329 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15330 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15331 echo "$as_me:15331: checking whether we are using Heimdal" >&5
15332echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15334#line 15334 "configure"
15335#include "confdefs.h"
15336 #include <krb5.h>
15337int
15338main ()
15339{
15340 char *tmp = heimdal_version;
15341 ;
15342 return 0;
15343}
15344_ACEOF
15345rm -f conftest.$ac_objext
15346if { (eval echo "$as_me:15346: \"$ac_compile\"") >&5
15347 (eval $ac_compile) 2>&5
15348 ac_status=$?
15349 echo "$as_me:15349: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:15352: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:15355: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 echo "$as_me:15357: result: yes" >&5
15358echo "${ECHO_T}yes" >&6
15359 cat >>confdefs.h <<\EOF
15360#define HEIMDAL 1
15361EOF
15362
15363 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15364
15365else
15366 echo "$as_me: failed program was:" >&5
15367cat conftest.$ac_ext >&5
15368 echo "$as_me:15368: result: no" >&5
15369echo "${ECHO_T}no" >&6
15370 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15371
15372fi
15373rm -f conftest.$ac_objext conftest.$ac_ext
15374 echo "$as_me:15374: checking for library containing dn_expand" >&5
15375echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
15376if test "${ac_cv_search_dn_expand+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378else
15379 ac_func_search_save_LIBS=$LIBS
15380ac_cv_search_dn_expand=no
15381cat >conftest.$ac_ext <<_ACEOF
15382#line 15382 "configure"
15383#include "confdefs.h"
15384
15385/* Override any gcc2 internal prototype to avoid an error. */
15386#ifdef __cplusplus
15387extern "C"
15388#endif
15389/* We use char because int might match the return type of a gcc2
15390 builtin and then its argument prototype would still apply. */
15391char dn_expand ();
15392int
15393main ()
15394{
15395dn_expand ();
15396 ;
15397 return 0;
15398}
15399_ACEOF
15400rm -f conftest.$ac_objext conftest$ac_exeext
15401if { (eval echo "$as_me:15401: \"$ac_link\"") >&5
15402 (eval $ac_link) 2>&5
15403 ac_status=$?
15404 echo "$as_me:15404: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -s conftest$ac_exeext'
15407 { (eval echo "$as_me:15407: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:15410: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_search_dn_expand="none required"
15413else
15414 echo "$as_me: failed program was:" >&5
15415cat conftest.$ac_ext >&5
15416fi
15417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15418if test "$ac_cv_search_dn_expand" = no; then
15419 for ac_lib in resolv; do
15420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15421 cat >conftest.$ac_ext <<_ACEOF
15422#line 15422 "configure"
15423#include "confdefs.h"
15424
15425/* Override any gcc2 internal prototype to avoid an error. */
15426#ifdef __cplusplus
15427extern "C"
15428#endif
15429/* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15431char dn_expand ();
15432int
15433main ()
15434{
15435dn_expand ();
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext conftest$ac_exeext
15441if { (eval echo "$as_me:15441: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>&5
15443 ac_status=$?
15444 echo "$as_me:15444: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -s conftest$ac_exeext'
15447 { (eval echo "$as_me:15447: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_cv_search_dn_expand="-l$ac_lib"
15453break
15454else
15455 echo "$as_me: failed program was:" >&5
15456cat conftest.$ac_ext >&5
15457fi
15458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15459 done
15460fi
15461LIBS=$ac_func_search_save_LIBS
15462fi
15463echo "$as_me:15463: result: $ac_cv_search_dn_expand" >&5
15464echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
15465if test "$ac_cv_search_dn_expand" != no; then
15466 test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
15467
15468fi
15469
15470 echo "$as_me:15470: checking for gss_init_sec_context in -lgssapi" >&5
15471echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
15472if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474else
15475 ac_check_lib_save_LIBS=$LIBS
15476LIBS="-lgssapi $K5LIBS $LIBS"
15477cat >conftest.$ac_ext <<_ACEOF
15478#line 15478 "configure"
15479#include "confdefs.h"
15480
15481/* Override any gcc2 internal prototype to avoid an error. */
15482#ifdef __cplusplus
15483extern "C"
15484#endif
15485/* We use char because int might match the return type of a gcc2
15486 builtin and then its argument prototype would still apply. */
15487char gss_init_sec_context ();
15488int
15489main ()
15490{
15491gss_init_sec_context ();
15492 ;
15493 return 0;
15494}
15495_ACEOF
15496rm -f conftest.$ac_objext conftest$ac_exeext
15497if { (eval echo "$as_me:15497: \"$ac_link\"") >&5
15498 (eval $ac_link) 2>&5
15499 ac_status=$?
15500 echo "$as_me:15500: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:15503: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:15506: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_cv_lib_gssapi_gss_init_sec_context=yes
15509else
15510 echo "$as_me: failed program was:" >&5
15511cat conftest.$ac_ext >&5
15512ac_cv_lib_gssapi_gss_init_sec_context=no
15513fi
15514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15515LIBS=$ac_check_lib_save_LIBS
15516fi
15517echo "$as_me:15517: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15518echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
15519if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
15520 cat >>confdefs.h <<\EOF
15521#define GSSAPI 1
15522EOF
15523
15524 K5LIBS="-lgssapi $K5LIBS"
15525else
15526 echo "$as_me:15526: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15527echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
15528if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530else
15531 ac_check_lib_save_LIBS=$LIBS
15532LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15533cat >conftest.$ac_ext <<_ACEOF
15534#line 15534 "configure"
15535#include "confdefs.h"
15536
15537/* Override any gcc2 internal prototype to avoid an error. */
15538#ifdef __cplusplus
15539extern "C"
15540#endif
15541/* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15543char gss_init_sec_context ();
15544int
15545main ()
15546{
15547gss_init_sec_context ();
15548 ;
15549 return 0;
15550}
15551_ACEOF
15552rm -f conftest.$ac_objext conftest$ac_exeext
15553if { (eval echo "$as_me:15553: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>&5
15555 ac_status=$?
15556 echo "$as_me:15556: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -s conftest$ac_exeext'
15559 { (eval echo "$as_me:15559: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:15562: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15565else
15566 echo "$as_me: failed program was:" >&5
15567cat conftest.$ac_ext >&5
15568ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15569fi
15570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15571LIBS=$ac_check_lib_save_LIBS
15572fi
15573echo "$as_me:15573: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15574echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
15575if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
15576 cat >>confdefs.h <<\EOF
15577#define GSSAPI 1
15578EOF
15579
15580 K5LIBS="-lgssapi_krb5 $K5LIBS"
15581else
15582 { echo "$as_me:15582: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15583echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15584fi
15585
15586fi
15587
15588 echo "$as_me:15588: checking for gssapi.h" >&5
15589echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
15590if test "${ac_cv_header_gssapi_h+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592else
15593 cat >conftest.$ac_ext <<_ACEOF
15594#line 15594 "configure"
15595#include "confdefs.h"
15596#include <gssapi.h>
15597_ACEOF
15598if { (eval echo "$as_me:15598: \"$ac_cpp conftest.$ac_ext\"") >&5
15599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15600 ac_status=$?
15601 egrep -v '^ *\+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
15604 echo "$as_me:15604: \$? = $ac_status" >&5
15605 (exit $ac_status); } >/dev/null; then
15606 if test -s conftest.err; then
15607 ac_cpp_err=$ac_c_preproc_warn_flag
15608 else
15609 ac_cpp_err=
15610 fi
15611else
15612 ac_cpp_err=yes
15613fi
15614if test -z "$ac_cpp_err"; then
15615 ac_cv_header_gssapi_h=yes
15616else
15617 echo "$as_me: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 ac_cv_header_gssapi_h=no
15620fi
15621rm -f conftest.err conftest.$ac_ext
15622fi
15623echo "$as_me:15623: result: $ac_cv_header_gssapi_h" >&5
15624echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
15625if test $ac_cv_header_gssapi_h = yes; then
15626 :
15627else
15628 unset ac_cv_header_gssapi_h
15629 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15630
15631for ac_header in gssapi.h
15632do
15633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634echo "$as_me:15634: checking for $ac_header" >&5
15635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15636if eval "test \"\${$as_ac_Header+set}\" = set"; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638else
15639 cat >conftest.$ac_ext <<_ACEOF
15640#line 15640 "configure"
15641#include "confdefs.h"
15642#include <$ac_header>
15643_ACEOF
15644if { (eval echo "$as_me:15644: \"$ac_cpp conftest.$ac_ext\"") >&5
15645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15646 ac_status=$?
15647 egrep -v '^ *\+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:15650: \$? = $ac_status" >&5
15651 (exit $ac_status); } >/dev/null; then
15652 if test -s conftest.err; then
15653 ac_cpp_err=$ac_c_preproc_warn_flag
15654 else
15655 ac_cpp_err=
15656 fi
15657else
15658 ac_cpp_err=yes
15659fi
15660if test -z "$ac_cpp_err"; then
15661 eval "$as_ac_Header=yes"
15662else
15663 echo "$as_me: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 eval "$as_ac_Header=no"
15666fi
15667rm -f conftest.err conftest.$ac_ext
15668fi
15669echo "$as_me:15669: result: `eval echo '${'$as_ac_Header'}'`" >&5
15670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15671if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<EOF
15673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15674EOF
15675
15676else
15677 { echo "$as_me:15677: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15678echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15679
15680fi
15681done
15682
15683fi
15684
15685 oldCPP="$CPPFLAGS"
15686 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15687 echo "$as_me:15687: checking for gssapi_krb5.h" >&5
15688echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6
15689if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691else
15692 cat >conftest.$ac_ext <<_ACEOF
15693#line 15693 "configure"
15694#include "confdefs.h"
15695#include <gssapi_krb5.h>
15696_ACEOF
15697if { (eval echo "$as_me:15697: \"$ac_cpp conftest.$ac_ext\"") >&5
15698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15699 ac_status=$?
15700 egrep -v '^ *\+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:15703: \$? = $ac_status" >&5
15704 (exit $ac_status); } >/dev/null; then
15705 if test -s conftest.err; then
15706 ac_cpp_err=$ac_c_preproc_warn_flag
15707 else
15708 ac_cpp_err=
15709 fi
15710else
15711 ac_cpp_err=yes
15712fi
15713if test -z "$ac_cpp_err"; then
15714 ac_cv_header_gssapi_krb5_h=yes
15715else
15716 echo "$as_me: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15718 ac_cv_header_gssapi_krb5_h=no
15719fi
15720rm -f conftest.err conftest.$ac_ext
15721fi
15722echo "$as_me:15722: result: $ac_cv_header_gssapi_krb5_h" >&5
15723echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6
15724if test $ac_cv_header_gssapi_krb5_h = yes; then
15725 :
15726else
15727 CPPFLAGS="$oldCPP"
15728fi
15729
15730 fi
15731 if test ! -z "$need_dash_r" ; then
15732 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15733 fi
15734 if test ! -z "$blibpath" ; then
15735 blibpath="$blibpath:${KRB5ROOT}/lib"
15736 fi
15737 fi
15738
15739for ac_header in gssapi.h gssapi/gssapi.h
15740do
15741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742echo "$as_me:15742: checking for $ac_header" >&5
15743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15744if eval "test \"\${$as_ac_Header+set}\" = set"; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746else
15747 cat >conftest.$ac_ext <<_ACEOF
15748#line 15748 "configure"
15749#include "confdefs.h"
15750#include <$ac_header>
15751_ACEOF
15752if { (eval echo "$as_me:15752: \"$ac_cpp conftest.$ac_ext\"") >&5
15753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15754 ac_status=$?
15755 egrep -v '^ *\+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 echo "$as_me:15758: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null; then
15760 if test -s conftest.err; then
15761 ac_cpp_err=$ac_c_preproc_warn_flag
15762 else
15763 ac_cpp_err=
15764 fi
15765else
15766 ac_cpp_err=yes
15767fi
15768if test -z "$ac_cpp_err"; then
15769 eval "$as_ac_Header=yes"
15770else
15771 echo "$as_me: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 eval "$as_ac_Header=no"
15774fi
15775rm -f conftest.err conftest.$ac_ext
15776fi
15777echo "$as_me:15777: result: `eval echo '${'$as_ac_Header'}'`" >&5
15778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15779if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780 cat >>confdefs.h <<EOF
15781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782EOF
15783
15784fi
15785done
15786
15787for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15788do
15789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15790echo "$as_me:15790: checking for $ac_header" >&5
15791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15792if eval "test \"\${$as_ac_Header+set}\" = set"; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794else
15795 cat >conftest.$ac_ext <<_ACEOF
15796#line 15796 "configure"
15797#include "confdefs.h"
15798#include <$ac_header>
15799_ACEOF
15800if { (eval echo "$as_me:15800: \"$ac_cpp conftest.$ac_ext\"") >&5
15801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15802 ac_status=$?
15803 egrep -v '^ *\+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:15806: \$? = $ac_status" >&5
15807 (exit $ac_status); } >/dev/null; then
15808 if test -s conftest.err; then
15809 ac_cpp_err=$ac_c_preproc_warn_flag
15810 else
15811 ac_cpp_err=
15812 fi
15813else
15814 ac_cpp_err=yes
15815fi
15816if test -z "$ac_cpp_err"; then
15817 eval "$as_ac_Header=yes"
15818else
15819 echo "$as_me: failed program was:" >&5
15820 cat conftest.$ac_ext >&5
15821 eval "$as_ac_Header=no"
15822fi
15823rm -f conftest.err conftest.$ac_ext
15824fi
15825echo "$as_me:15825: result: `eval echo '${'$as_ac_Header'}'`" >&5
15826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15827if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828 cat >>confdefs.h <<EOF
15829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15830EOF
15831
15832fi
15833done
15834
15835for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15836do
15837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15838echo "$as_me:15838: checking for $ac_header" >&5
15839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15840if eval "test \"\${$as_ac_Header+set}\" = set"; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842else
15843 cat >conftest.$ac_ext <<_ACEOF
15844#line 15844 "configure"
15845#include "confdefs.h"
15846#include <$ac_header>
15847_ACEOF
15848if { (eval echo "$as_me:15848: \"$ac_cpp conftest.$ac_ext\"") >&5
15849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15850 ac_status=$?
15851 egrep -v '^ *\+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:15854: \$? = $ac_status" >&5
15855 (exit $ac_status); } >/dev/null; then
15856 if test -s conftest.err; then
15857 ac_cpp_err=$ac_c_preproc_warn_flag
15858 else
15859 ac_cpp_err=
15860 fi
15861else
15862 ac_cpp_err=yes
15863fi
15864if test -z "$ac_cpp_err"; then
15865 eval "$as_ac_Header=yes"
15866else
15867 echo "$as_me: failed program was:" >&5
15868 cat conftest.$ac_ext >&5
15869 eval "$as_ac_Header=no"
15870fi
15871rm -f conftest.err conftest.$ac_ext
15872fi
15873echo "$as_me:15873: result: `eval echo '${'$as_ac_Header'}'`" >&5
15874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15875if test `eval echo '${'$as_ac_Header'}'` = yes; then
15876 cat >>confdefs.h <<EOF
15877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15878EOF
15879
15880fi
15881done
15882
15883 LIBS="$LIBS $K5LIBS"
15884 echo "$as_me:15884: checking for library containing k_hasafs" >&5
15885echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6
15886if test "${ac_cv_search_k_hasafs+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889 ac_func_search_save_LIBS=$LIBS
15890ac_cv_search_k_hasafs=no
15891cat >conftest.$ac_ext <<_ACEOF
15892#line 15892 "configure"
15893#include "confdefs.h"
15894
15895/* Override any gcc2 internal prototype to avoid an error. */
15896#ifdef __cplusplus
15897extern "C"
15898#endif
15899/* We use char because int might match the return type of a gcc2
15900 builtin and then its argument prototype would still apply. */
15901char k_hasafs ();
15902int
15903main ()
15904{
15905k_hasafs ();
15906 ;
15907 return 0;
15908}
15909_ACEOF
15910rm -f conftest.$ac_objext conftest$ac_exeext
15911if { (eval echo "$as_me:15911: \"$ac_link\"") >&5
15912 (eval $ac_link) 2>&5
15913 ac_status=$?
15914 echo "$as_me:15914: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -s conftest$ac_exeext'
15917 { (eval echo "$as_me:15917: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:15920: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 ac_cv_search_k_hasafs="none required"
15923else
15924 echo "$as_me: failed program was:" >&5
15925cat conftest.$ac_ext >&5
15926fi
15927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15928if test "$ac_cv_search_k_hasafs" = no; then
15929 for ac_lib in kafs; do
15930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15931 cat >conftest.$ac_ext <<_ACEOF
15932#line 15932 "configure"
15933#include "confdefs.h"
15934
15935/* Override any gcc2 internal prototype to avoid an error. */
15936#ifdef __cplusplus
15937extern "C"
15938#endif
15939/* We use char because int might match the return type of a gcc2
15940 builtin and then its argument prototype would still apply. */
15941char k_hasafs ();
15942int
15943main ()
15944{
15945k_hasafs ();
15946 ;
15947 return 0;
15948}
15949_ACEOF
15950rm -f conftest.$ac_objext conftest$ac_exeext
15951if { (eval echo "$as_me:15951: \"$ac_link\"") >&5
15952 (eval $ac_link) 2>&5
15953 ac_status=$?
15954 echo "$as_me:15954: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:15957: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:15960: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_search_k_hasafs="-l$ac_lib"
15963break
15964else
15965 echo "$as_me: failed program was:" >&5
15966cat conftest.$ac_ext >&5
15967fi
15968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15969 done
15970fi
15971LIBS=$ac_func_search_save_LIBS
15972fi
15973echo "$as_me:15973: result: $ac_cv_search_k_hasafs" >&5
15974echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6
15975if test "$ac_cv_search_k_hasafs" != no; then
15976 test "$ac_cv_search_k_hasafs" = "none required" || LIBS="$ac_cv_search_k_hasafs $LIBS"
15977 cat >>confdefs.h <<\EOF
15978#define USE_AFS 1
15979EOF
15980
15981fi
15982
15983fi;
15984
15985# Looking for programs, paths and files
15986
15987PRIVSEP_PATH=/var/empty
15988
15989# Check whether --with-privsep-path or --without-privsep-path was given.
15990if test "${with_privsep_path+set}" = set; then
15991 withval="$with_privsep_path"
15992
15993 if test "x$withval" != "$no" ; then
15994 PRIVSEP_PATH=$withval
15995 fi
15996
15997fi;
15998
15999# Check whether --with-xauth or --without-xauth was given.
16000if test "${with_xauth+set}" = set; then
16001 withval="$with_xauth"
16002
16003 if test "x$withval" != "xno" ; then
16004 xauth_path=$withval
16005 fi
16006
16007else
16008
16009 TestPath="$PATH"
16010 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
16011 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
16012 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
16013 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
16014 # Extract the first word of "xauth", so it can be a program name with args.
16015set dummy xauth; ac_word=$2
16016echo "$as_me:16016: checking for $ac_word" >&5
16017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16018if test "${ac_cv_path_xauth_path+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020else
16021 case $xauth_path in
16022 [\\/]* | ?:[\\/]*)
16023 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
16024 ;;
16025 *)
16026 ac_save_IFS=$IFS; IFS=$ac_path_separator
16027ac_dummy="$TestPath"
16028for ac_dir in $ac_dummy; do
16029 IFS=$ac_save_IFS
16030 test -z "$ac_dir" && ac_dir=.
16031 if $as_executable_p "$ac_dir/$ac_word"; then
16032 ac_cv_path_xauth_path="$ac_dir/$ac_word"
16033 echo "$as_me:16033: found $ac_dir/$ac_word" >&5
16034 break
16035fi
16036done
16037
16038 ;;
16039esac
16040fi
16041xauth_path=$ac_cv_path_xauth_path
16042
16043if test -n "$xauth_path"; then
16044 echo "$as_me:16044: result: $xauth_path" >&5
16045echo "${ECHO_T}$xauth_path" >&6
16046else
16047 echo "$as_me:16047: result: no" >&5
16048echo "${ECHO_T}no" >&6
16049fi
16050
16051 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
16052 xauth_path="/usr/openwin/bin/xauth"
16053 fi
16054
16055fi;
16056
16057STRIP_OPT=-s
16058# Check whether --enable-strip or --disable-strip was given.
16059if test "${enable_strip+set}" = set; then
16060 enableval="$enable_strip"
16061
16062 if test "x$enableval" = "xno" ; then
16063 STRIP_OPT=
16064 fi
16065
16066fi;
16067
16068if test -z "$xauth_path" ; then
16069 XAUTH_PATH="undefined"
16070
16071else
16072 cat >>confdefs.h <<EOF
16073#define XAUTH_PATH "$xauth_path"
16074EOF
16075
16076 XAUTH_PATH=$xauth_path
16077
16078fi
16079
16080# Check for mail directory (last resort if we cannot get it from headers)
16081if test ! -z "$MAIL" ; then
16082 maildir=`dirname $MAIL`
16083 cat >>confdefs.h <<EOF
16084#define MAIL_DIRECTORY "$maildir"
16085EOF
16086
16087fi
16088
16089if test -z "$no_dev_ptmx" ; then
16090 if test "x$disable_ptmx_check" != "xyes" ; then
16091 echo "$as_me:16091: checking for \"/dev/ptmx\"" >&5
16092echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
16093if test "${ac_cv_file___dev_ptmx_+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095else
16096 test "$cross_compiling" = yes &&
16097 { { echo "$as_me:16097: error: cannot check for file existence when cross compiling" >&5
16098echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16099 { (exit 1); exit 1; }; }
16100if test -r ""/dev/ptmx""; then
16101 ac_cv_file___dev_ptmx_=yes
16102else
16103 ac_cv_file___dev_ptmx_=no
16104fi
16105fi
16106echo "$as_me:16106: result: $ac_cv_file___dev_ptmx_" >&5
16107echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
16108if test $ac_cv_file___dev_ptmx_ = yes; then
16109
16110 cat >>confdefs.h <<EOF
16111#define HAVE_DEV_PTMX 1
16112EOF
16113
16114 have_dev_ptmx=1
16115
16116fi
16117
16118 fi
16119fi
16120echo "$as_me:16120: checking for \"/dev/ptc\"" >&5
16121echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
16122if test "${ac_cv_file___dev_ptc_+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124else
16125 test "$cross_compiling" = yes &&
16126 { { echo "$as_me:16126: error: cannot check for file existence when cross compiling" >&5
16127echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16128 { (exit 1); exit 1; }; }
16129if test -r ""/dev/ptc""; then
16130 ac_cv_file___dev_ptc_=yes
16131else
16132 ac_cv_file___dev_ptc_=no
16133fi
16134fi
16135echo "$as_me:16135: result: $ac_cv_file___dev_ptc_" >&5
16136echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
16137if test $ac_cv_file___dev_ptc_ = yes; then
16138
16139 cat >>confdefs.h <<EOF
16140#define HAVE_DEV_PTS_AND_PTC 1
16141EOF
16142
16143 have_dev_ptc=1
16144
16145fi
16146
16147# Options from here on. Some of these are preset by platform above
16148
16149# Check whether --with-mantype or --without-mantype was given.
16150if test "${with_mantype+set}" = set; then
16151 withval="$with_mantype"
16152
16153 case "$withval" in
16154 man|cat|doc)
16155 MANTYPE=$withval
16156 ;;
16157 *)
16158 { { echo "$as_me:16158: error: invalid man type: $withval" >&5
16159echo "$as_me: error: invalid man type: $withval" >&2;}
16160 { (exit 1); exit 1; }; }
16161 ;;
16162 esac
16163
16164fi;
16165if test -z "$MANTYPE"; then
16166 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
16167 for ac_prog in nroff awf
16168do
16169 # Extract the first word of "$ac_prog", so it can be a program name with args.
16170set dummy $ac_prog; ac_word=$2
16171echo "$as_me:16171: checking for $ac_word" >&5
16172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16173if test "${ac_cv_path_NROFF+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175else
16176 case $NROFF in
16177 [\\/]* | ?:[\\/]*)
16178 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
16179 ;;
16180 *)
16181 ac_save_IFS=$IFS; IFS=$ac_path_separator
16182ac_dummy="$TestPath"
16183for ac_dir in $ac_dummy; do
16184 IFS=$ac_save_IFS
16185 test -z "$ac_dir" && ac_dir=.
16186 if $as_executable_p "$ac_dir/$ac_word"; then
16187 ac_cv_path_NROFF="$ac_dir/$ac_word"
16188 echo "$as_me:16188: found $ac_dir/$ac_word" >&5
16189 break
16190fi
16191done
16192
16193 ;;
16194esac
16195fi
16196NROFF=$ac_cv_path_NROFF
16197
16198if test -n "$NROFF"; then
16199 echo "$as_me:16199: result: $NROFF" >&5
16200echo "${ECHO_T}$NROFF" >&6
16201else
16202 echo "$as_me:16202: result: no" >&5
16203echo "${ECHO_T}no" >&6
16204fi
16205
16206 test -n "$NROFF" && break
16207done
16208test -n "$NROFF" || NROFF="/bin/false"
16209
16210 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
16211 MANTYPE=doc
16212 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
16213 MANTYPE=man
16214 else
16215 MANTYPE=cat
16216 fi
16217fi
16218
16219if test "$MANTYPE" = "doc"; then
16220 mansubdir=man;
16221else
16222 mansubdir=$MANTYPE;
16223fi
16224
16225# Check whether to enable MD5 passwords
16226MD5_MSG="no"
16227
16228# Check whether --with-md5-passwords or --without-md5-passwords was given.
16229if test "${with_md5_passwords+set}" = set; then
16230 withval="$with_md5_passwords"
16231
16232 if test "x$withval" != "xno" ; then
16233 cat >>confdefs.h <<\EOF
16234#define HAVE_MD5_PASSWORDS 1
16235EOF
16236
16237 MD5_MSG="yes"
16238 fi
16239
16240fi;
16241
16242# Whether to disable shadow password support
16243
16244# Check whether --with-shadow or --without-shadow was given.
16245if test "${with_shadow+set}" = set; then
16246 withval="$with_shadow"
16247
16248 if test "x$withval" = "xno" ; then
16249 cat >>confdefs.h <<\EOF
16250#define DISABLE_SHADOW 1
16251EOF
16252
16253 disable_shadow=yes
16254 fi
16255
16256fi;
16257
16258if test -z "$disable_shadow" ; then
16259 echo "$as_me:16259: checking if the systems has expire shadow information" >&5
16260echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16262#line 16262 "configure"
16263#include "confdefs.h"
16264
16265#include <sys/types.h>
16266#include <shadow.h>
16267 struct spwd sp;
16268
16269int
16270main ()
16271{
16272 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277rm -f conftest.$ac_objext
16278if { (eval echo "$as_me:16278: \"$ac_compile\"") >&5
16279 (eval $ac_compile) 2>&5
16280 ac_status=$?
16281 echo "$as_me:16281: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (eval echo "$as_me:16284: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:16287: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 sp_expire_available=yes
16290else
16291 echo "$as_me: failed program was:" >&5
16292cat conftest.$ac_ext >&5
16293
16294fi
16295rm -f conftest.$ac_objext conftest.$ac_ext
16296
16297 if test "x$sp_expire_available" = "xyes" ; then
16298 echo "$as_me:16298: result: yes" >&5
16299echo "${ECHO_T}yes" >&6
16300 cat >>confdefs.h <<\EOF
16301#define HAS_SHADOW_EXPIRE 1
16302EOF
16303
16304 else
16305 echo "$as_me:16305: result: no" >&5
16306echo "${ECHO_T}no" >&6
16307 fi
16308fi
16309
16310# Use ip address instead of hostname in $DISPLAY
16311if test ! -z "$IPADDR_IN_DISPLAY" ; then
16312 DISPLAY_HACK_MSG="yes"
16313 cat >>confdefs.h <<\EOF
16314#define IPADDR_IN_DISPLAY 1
16315EOF
16316
16317else
16318 DISPLAY_HACK_MSG="no"
16319
16320# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16321if test "${with_ipaddr_display+set}" = set; then
16322 withval="$with_ipaddr_display"
16323
16324 if test "x$withval" != "xno" ; then
16325 cat >>confdefs.h <<\EOF
16326#define IPADDR_IN_DISPLAY 1
16327EOF
16328
16329 DISPLAY_HACK_MSG="yes"
16330 fi
16331
16332fi;
16333fi
16334
16335# check for /etc/default/login and use it if present.
16336# Check whether --enable-etc-default-login or --disable-etc-default-login was given.
16337if test "${enable_etc_default_login+set}" = set; then
16338 enableval="$enable_etc_default_login"
16339
16340else
16341
16342echo "$as_me:16342: checking for \"/etc/default/login\"" >&5
16343echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6
16344if test "${ac_cv_file___etc_default_login_+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346else
16347 test "$cross_compiling" = yes &&
16348 { { echo "$as_me:16348: error: cannot check for file existence when cross compiling" >&5
16349echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16350 { (exit 1); exit 1; }; }
16351if test -r ""/etc/default/login""; then
16352 ac_cv_file___etc_default_login_=yes
16353else
16354 ac_cv_file___etc_default_login_=no
16355fi
16356fi
16357echo "$as_me:16357: result: $ac_cv_file___etc_default_login_" >&5
16358echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6
16359if test $ac_cv_file___etc_default_login_ = yes; then
16360 external_path_file=/etc/default/login
16361fi
16362
16363if test "x$external_path_file" = "x/etc/default/login"; then
16364 cat >>confdefs.h <<\EOF
16365#define HAVE_ETC_DEFAULT_LOGIN 1
16366EOF
16367
16368fi
16369
16370fi;
16371
16372if test $ac_cv_func_login_getcapbool = "yes" -a \
16373 $ac_cv_header_login_cap_h = "yes" ; then
16374 external_path_file=/etc/login.conf
16375fi
16376
16377# Whether to mess with the default path
16378SERVER_PATH_MSG="(default)"
16379
16380# Check whether --with-default-path or --without-default-path was given.
16381if test "${with_default_path+set}" = set; then
16382 withval="$with_default_path"
16383
16384 if test "x$external_path_file" = "x/etc/login.conf" ; then
16385 { echo "$as_me:16385: WARNING:
16386--with-default-path=PATH has no effect on this system.
16387Edit /etc/login.conf instead." >&5
16388echo "$as_me: WARNING:
16389--with-default-path=PATH has no effect on this system.
16390Edit /etc/login.conf instead." >&2;}
16391 elif test "x$withval" != "xno" ; then
16392 if test ! -z "$external_path_file" ; then
16393 { echo "$as_me:16393: WARNING:
16394--with-default-path=PATH will only be used if PATH is not defined in
16395$external_path_file ." >&5
16396echo "$as_me: WARNING:
16397--with-default-path=PATH will only be used if PATH is not defined in
16398$external_path_file ." >&2;}
16399 fi
16400 user_path="$withval"
16401 SERVER_PATH_MSG="$withval"
16402 fi
16403
16404else
16405 if test "x$external_path_file" = "x/etc/login.conf" ; then
16406 { echo "$as_me:16406: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16407echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16408 else
16409 if test ! -z "$external_path_file" ; then
16410 { echo "$as_me:16410: WARNING:
16411If PATH is defined in $external_path_file, ensure the path to scp is included,
16412otherwise scp will not work." >&5
16413echo "$as_me: WARNING:
16414If PATH is defined in $external_path_file, ensure the path to scp is included,
16415otherwise scp will not work." >&2;}
16416 fi
16417 if test "$cross_compiling" = yes; then
16418 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16419
16420else
16421 cat >conftest.$ac_ext <<_ACEOF
16422#line 16422 "configure"
16423#include "confdefs.h"
16424
16425/* find out what STDPATH is */
16426#include <stdio.h>
16427#ifdef HAVE_PATHS_H
16428# include <paths.h>
16429#endif
16430#ifndef _PATH_STDPATH
16431# ifdef _PATH_USERPATH /* Irix */
16432# define _PATH_STDPATH _PATH_USERPATH
16433# else
16434# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16435# endif
16436#endif
16437#include <sys/types.h>
16438#include <sys/stat.h>
16439#include <fcntl.h>
16440#define DATA "conftest.stdpath"
16441
16442main()
16443{
16444 FILE *fd;
16445 int rc;
16446
16447 fd = fopen(DATA,"w");
16448 if(fd == NULL)
16449 exit(1);
16450
16451 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16452 exit(1);
16453
16454 exit(0);
16455}
16456
16457_ACEOF
16458rm -f conftest$ac_exeext
16459if { (eval echo "$as_me:16459: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>&5
16461 ac_status=$?
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464 { (eval echo "$as_me:16464: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:16467: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 user_path=`cat conftest.stdpath`
16470else
16471 echo "$as_me: program exited with status $ac_status" >&5
16472echo "$as_me: failed program was:" >&5
16473cat conftest.$ac_ext >&5
16474 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16475fi
16476rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16477fi
16478# make sure $bindir is in USER_PATH so scp will work
16479 t_bindir=`eval echo ${bindir}`
16480 case $t_bindir in
16481 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16482 esac
16483 case $t_bindir in
16484 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16485 esac
16486 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16487 if test $? -ne 0 ; then
16488 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16489 if test $? -ne 0 ; then
16490 user_path=$user_path:$t_bindir
16491 echo "$as_me:16491: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16492echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16493 fi
16494 fi
16495 fi
16496
16497fi;
16498if test "x$external_path_file" != "x/etc/login.conf" ; then
16499 cat >>confdefs.h <<EOF
16500#define USER_PATH "$user_path"
16501EOF
16502
16503fi
16504
16505# Set superuser path separately to user path
16506
16507# Check whether --with-superuser-path or --without-superuser-path was given.
16508if test "${with_superuser_path+set}" = set; then
16509 withval="$with_superuser_path"
16510
16511 if test "x$withval" != "xno" ; then
16512 cat >>confdefs.h <<EOF
16513#define SUPERUSER_PATH "$withval"
16514EOF
16515
16516 superuser_path=$withval
16517 fi
16518
16519fi;
16520
16521echo "$as_me:16521: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16522echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16523IPV4_IN6_HACK_MSG="no"
16524
16525# Check whether --with-4in6 or --without-4in6 was given.
16526if test "${with_4in6+set}" = set; then
16527 withval="$with_4in6"
16528
16529 if test "x$withval" != "xno" ; then
16530 echo "$as_me:16530: result: yes" >&5
16531echo "${ECHO_T}yes" >&6
16532 cat >>confdefs.h <<\EOF
16533#define IPV4_IN_IPV6 1
16534EOF
16535
16536 IPV4_IN6_HACK_MSG="yes"
16537 else
16538 echo "$as_me:16538: result: no" >&5
16539echo "${ECHO_T}no" >&6
16540 fi
16541
16542else
16543
16544 if test "x$inet6_default_4in6" = "xyes"; then
16545 echo "$as_me:16545: result: yes (default)" >&5
16546echo "${ECHO_T}yes (default)" >&6
16547 cat >>confdefs.h <<\EOF
16548#define IPV4_IN_IPV6 1
16549EOF
16550
16551 IPV4_IN6_HACK_MSG="yes"
16552 else
16553 echo "$as_me:16553: result: no (default)" >&5
16554echo "${ECHO_T}no (default)" >&6
16555 fi
16556
16557fi;
16558
16559# Whether to enable BSD auth support
16560BSD_AUTH_MSG=no
16561
16562# Check whether --with-bsd-auth or --without-bsd-auth was given.
16563if test "${with_bsd_auth+set}" = set; then
16564 withval="$with_bsd_auth"
16565
16566 if test "x$withval" != "xno" ; then
16567 cat >>confdefs.h <<\EOF
16568#define BSD_AUTH 1
16569EOF
16570
16571 BSD_AUTH_MSG=yes
16572 fi
16573
16574fi;
16575
16576# Where to place sshd.pid
16577piddir=/var/run
16578# make sure the directory exists
16579if test ! -d $piddir ; then
16580 piddir=`eval echo ${sysconfdir}`
16581 case $piddir in
16582 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16583 esac
16584fi
16585
16586# Check whether --with-pid-dir or --without-pid-dir was given.
16587if test "${with_pid_dir+set}" = set; then
16588 withval="$with_pid_dir"
16589
16590 if test "x$withval" != "xno" ; then
16591 piddir=$withval
16592 if test ! -d $piddir ; then
16593 { echo "$as_me:16593: WARNING: ** no $piddir directory on this system **" >&5
16594echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16595 fi
16596 fi
16597
16598fi;
16599
16600cat >>confdefs.h <<EOF
16601#define _PATH_SSH_PIDDIR "$piddir"
16602EOF
16603
16604# Check whether --enable-lastlog or --disable-lastlog was given.
16605if test "${enable_lastlog+set}" = set; then
16606 enableval="$enable_lastlog"
16607
16608 if test "x$enableval" = "xno" ; then
16609 cat >>confdefs.h <<\EOF
16610#define DISABLE_LASTLOG 1
16611EOF
16612
16613 fi
16614
16615fi;
16616# Check whether --enable-utmp or --disable-utmp was given.
16617if test "${enable_utmp+set}" = set; then
16618 enableval="$enable_utmp"
16619
16620 if test "x$enableval" = "xno" ; then
16621 cat >>confdefs.h <<\EOF
16622#define DISABLE_UTMP 1
16623EOF
16624
16625 fi
16626
16627fi;
16628# Check whether --enable-utmpx or --disable-utmpx was given.
16629if test "${enable_utmpx+set}" = set; then
16630 enableval="$enable_utmpx"
16631
16632 if test "x$enableval" = "xno" ; then
16633 cat >>confdefs.h <<\EOF
16634#define DISABLE_UTMPX 1
16635EOF
16636
16637 fi
16638
16639fi;
16640# Check whether --enable-wtmp or --disable-wtmp was given.
16641if test "${enable_wtmp+set}" = set; then
16642 enableval="$enable_wtmp"
16643
16644 if test "x$enableval" = "xno" ; then
16645 cat >>confdefs.h <<\EOF
16646#define DISABLE_WTMP 1
16647EOF
16648
16649 fi
16650
16651fi;
16652# Check whether --enable-wtmpx or --disable-wtmpx was given.
16653if test "${enable_wtmpx+set}" = set; then
16654 enableval="$enable_wtmpx"
16655
16656 if test "x$enableval" = "xno" ; then
16657 cat >>confdefs.h <<\EOF
16658#define DISABLE_WTMPX 1
16659EOF
16660
16661 fi
16662
16663fi;
16664# Check whether --enable-libutil or --disable-libutil was given.
16665if test "${enable_libutil+set}" = set; then
16666 enableval="$enable_libutil"
16667
16668 if test "x$enableval" = "xno" ; then
16669 cat >>confdefs.h <<\EOF
16670#define DISABLE_LOGIN 1
16671EOF
16672
16673 fi
16674
16675fi;
16676# Check whether --enable-pututline or --disable-pututline was given.
16677if test "${enable_pututline+set}" = set; then
16678 enableval="$enable_pututline"
16679
16680 if test "x$enableval" = "xno" ; then
16681 cat >>confdefs.h <<\EOF
16682#define DISABLE_PUTUTLINE 1
16683EOF
16684
16685 fi
16686
16687fi;
16688# Check whether --enable-pututxline or --disable-pututxline was given.
16689if test "${enable_pututxline+set}" = set; then
16690 enableval="$enable_pututxline"
16691
16692 if test "x$enableval" = "xno" ; then
16693 cat >>confdefs.h <<\EOF
16694#define DISABLE_PUTUTXLINE 1
16695EOF
16696
16697 fi
16698
16699fi;
16700
16701# Check whether --with-lastlog or --without-lastlog was given.
16702if test "${with_lastlog+set}" = set; then
16703 withval="$with_lastlog"
16704
16705 if test "x$withval" = "xno" ; then
16706 cat >>confdefs.h <<\EOF
16707#define DISABLE_LASTLOG 1
16708EOF
16709
16710 else
16711 conf_lastlog_location=$withval
16712 fi
16713
16714fi;
16715
16716echo "$as_me:16716: checking if your system defines LASTLOG_FILE" >&5
16717echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16718cat >conftest.$ac_ext <<_ACEOF
16719#line 16719 "configure"
16720#include "confdefs.h"
16721
16722#include <sys/types.h>
16723#include <utmp.h>
16724#ifdef HAVE_LASTLOG_H
16725# include <lastlog.h>
16726#endif
16727#ifdef HAVE_PATHS_H
16728# include <paths.h>
16729#endif
16730#ifdef HAVE_LOGIN_H
16731# include <login.h>
16732#endif
16733
16734int
16735main ()
16736{
16737 char *lastlog = LASTLOG_FILE;
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext
16743if { (eval echo "$as_me:16743: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>&5
16745 ac_status=$?
16746 echo "$as_me:16746: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:16749: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:16752: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 echo "$as_me:16754: result: yes" >&5
16755echo "${ECHO_T}yes" >&6
16756else
16757 echo "$as_me: failed program was:" >&5
16758cat conftest.$ac_ext >&5
16759
16760 echo "$as_me:16760: result: no" >&5
16761echo "${ECHO_T}no" >&6
16762 echo "$as_me:16762: checking if your system defines _PATH_LASTLOG" >&5
16763echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16764 cat >conftest.$ac_ext <<_ACEOF
16765#line 16765 "configure"
16766#include "confdefs.h"
16767
16768#include <sys/types.h>
16769#include <utmp.h>
16770#ifdef HAVE_LASTLOG_H
16771# include <lastlog.h>
16772#endif
16773#ifdef HAVE_PATHS_H
16774# include <paths.h>
16775#endif
16776
16777int
16778main ()
16779{
16780 char *lastlog = _PATH_LASTLOG;
16781 ;
16782 return 0;
16783}
16784_ACEOF
16785rm -f conftest.$ac_objext
16786if { (eval echo "$as_me:16786: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>&5
16788 ac_status=$?
16789 echo "$as_me:16789: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:16792: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:16795: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 echo "$as_me:16797: result: yes" >&5
16798echo "${ECHO_T}yes" >&6
16799else
16800 echo "$as_me: failed program was:" >&5
16801cat conftest.$ac_ext >&5
16802
16803 echo "$as_me:16803: result: no" >&5
16804echo "${ECHO_T}no" >&6
16805 system_lastlog_path=no
16806
16807fi
16808rm -f conftest.$ac_objext conftest.$ac_ext
16809
16810fi
16811rm -f conftest.$ac_objext conftest.$ac_ext
16812
16813if test -z "$conf_lastlog_location"; then
16814 if test x"$system_lastlog_path" = x"no" ; then
16815 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16816 if (test -d "$f" || test -f "$f") ; then
16817 conf_lastlog_location=$f
16818 fi
16819 done
16820 if test -z "$conf_lastlog_location"; then
16821 { echo "$as_me:16821: WARNING: ** Cannot find lastlog **" >&5
16822echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16823 fi
16824 fi
16825fi
16826
16827if test -n "$conf_lastlog_location"; then
16828 cat >>confdefs.h <<EOF
16829#define CONF_LASTLOG_FILE "$conf_lastlog_location"
16830EOF
16831
16832fi
16833
16834echo "$as_me:16834: checking if your system defines UTMP_FILE" >&5
16835echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16836cat >conftest.$ac_ext <<_ACEOF
16837#line 16837 "configure"
16838#include "confdefs.h"
16839
16840#include <sys/types.h>
16841#include <utmp.h>
16842#ifdef HAVE_PATHS_H
16843# include <paths.h>
16844#endif
16845
16846int
16847main ()
16848{
16849 char *utmp = UTMP_FILE;
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (eval echo "$as_me:16855: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>&5
16857 ac_status=$?
16858 echo "$as_me:16858: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:16861: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:16864: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 echo "$as_me:16866: result: yes" >&5
16867echo "${ECHO_T}yes" >&6
16868else
16869 echo "$as_me: failed program was:" >&5
16870cat conftest.$ac_ext >&5
16871 echo "$as_me:16871: result: no" >&5
16872echo "${ECHO_T}no" >&6
16873 system_utmp_path=no
16874
16875fi
16876rm -f conftest.$ac_objext conftest.$ac_ext
16877if test -z "$conf_utmp_location"; then
16878 if test x"$system_utmp_path" = x"no" ; then
16879 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16880 if test -f $f ; then
16881 conf_utmp_location=$f
16882 fi
16883 done
16884 if test -z "$conf_utmp_location"; then
16885 cat >>confdefs.h <<\EOF
16886#define DISABLE_UTMP 1
16887EOF
16888
16889 fi
16890 fi
16891fi
16892if test -n "$conf_utmp_location"; then
16893 cat >>confdefs.h <<EOF
16894#define CONF_UTMP_FILE "$conf_utmp_location"
16895EOF
16896
16897fi
16898
16899echo "$as_me:16899: checking if your system defines WTMP_FILE" >&5
16900echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16901cat >conftest.$ac_ext <<_ACEOF
16902#line 16902 "configure"
16903#include "confdefs.h"
16904
16905#include <sys/types.h>
16906#include <utmp.h>
16907#ifdef HAVE_PATHS_H
16908# include <paths.h>
16909#endif
16910
16911int
16912main ()
16913{
16914 char *wtmp = WTMP_FILE;
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext
16920if { (eval echo "$as_me:16920: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>&5
16922 ac_status=$?
16923 echo "$as_me:16923: \$? = $ac_status" >&5
16924 (exit $ac_status); } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:16926: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:16929: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 echo "$as_me:16931: result: yes" >&5
16932echo "${ECHO_T}yes" >&6
16933else
16934 echo "$as_me: failed program was:" >&5
16935cat conftest.$ac_ext >&5
16936 echo "$as_me:16936: result: no" >&5
16937echo "${ECHO_T}no" >&6
16938 system_wtmp_path=no
16939
16940fi
16941rm -f conftest.$ac_objext conftest.$ac_ext
16942if test -z "$conf_wtmp_location"; then
16943 if test x"$system_wtmp_path" = x"no" ; then
16944 for f in /usr/adm/wtmp /var/log/wtmp; do
16945 if test -f $f ; then
16946 conf_wtmp_location=$f
16947 fi
16948 done
16949 if test -z "$conf_wtmp_location"; then
16950 cat >>confdefs.h <<\EOF
16951#define DISABLE_WTMP 1
16952EOF
16953
16954 fi
16955 fi
16956fi
16957if test -n "$conf_wtmp_location"; then
16958 cat >>confdefs.h <<EOF
16959#define CONF_WTMP_FILE "$conf_wtmp_location"
16960EOF
16961
16962fi
16963
16964echo "$as_me:16964: checking if your system defines UTMPX_FILE" >&5
16965echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16966cat >conftest.$ac_ext <<_ACEOF
16967#line 16967 "configure"
16968#include "confdefs.h"
16969
16970#include <sys/types.h>
16971#include <utmp.h>
16972#ifdef HAVE_UTMPX_H
16973#include <utmpx.h>
16974#endif
16975#ifdef HAVE_PATHS_H
16976# include <paths.h>
16977#endif
16978
16979int
16980main ()
16981{
16982 char *utmpx = UTMPX_FILE;
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987rm -f conftest.$ac_objext
16988if { (eval echo "$as_me:16988: \"$ac_compile\"") >&5
16989 (eval $ac_compile) 2>&5
16990 ac_status=$?
16991 echo "$as_me:16991: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (eval echo "$as_me:16994: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:16997: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 echo "$as_me:16999: result: yes" >&5
17000echo "${ECHO_T}yes" >&6
17001else
17002 echo "$as_me: failed program was:" >&5
17003cat conftest.$ac_ext >&5
17004 echo "$as_me:17004: result: no" >&5
17005echo "${ECHO_T}no" >&6
17006 system_utmpx_path=no
17007
17008fi
17009rm -f conftest.$ac_objext conftest.$ac_ext
17010if test -z "$conf_utmpx_location"; then
17011 if test x"$system_utmpx_path" = x"no" ; then
17012 cat >>confdefs.h <<\EOF
17013#define DISABLE_UTMPX 1
17014EOF
17015
17016 fi
17017else
17018 cat >>confdefs.h <<EOF
17019#define CONF_UTMPX_FILE "$conf_utmpx_location"
17020EOF
17021
17022fi
17023
17024echo "$as_me:17024: checking if your system defines WTMPX_FILE" >&5
17025echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
17026cat >conftest.$ac_ext <<_ACEOF
17027#line 17027 "configure"
17028#include "confdefs.h"
17029
17030#include <sys/types.h>
17031#include <utmp.h>
17032#ifdef HAVE_UTMPX_H
17033#include <utmpx.h>
17034#endif
17035#ifdef HAVE_PATHS_H
17036# include <paths.h>
17037#endif
17038
17039int
17040main ()
17041{
17042 char *wtmpx = WTMPX_FILE;
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext
17048if { (eval echo "$as_me:17048: \"$ac_compile\"") >&5
17049 (eval $ac_compile) 2>&5
17050 ac_status=$?
17051 echo "$as_me:17051: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (eval echo "$as_me:17054: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:17057: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 echo "$as_me:17059: result: yes" >&5
17060echo "${ECHO_T}yes" >&6
17061else
17062 echo "$as_me: failed program was:" >&5
17063cat conftest.$ac_ext >&5
17064 echo "$as_me:17064: result: no" >&5
17065echo "${ECHO_T}no" >&6
17066 system_wtmpx_path=no
17067
17068fi
17069rm -f conftest.$ac_objext conftest.$ac_ext
17070if test -z "$conf_wtmpx_location"; then
17071 if test x"$system_wtmpx_path" = x"no" ; then
17072 cat >>confdefs.h <<\EOF
17073#define DISABLE_WTMPX 1
17074EOF
17075
17076 fi
17077else
17078 cat >>confdefs.h <<EOF
17079#define CONF_WTMPX_FILE "$conf_wtmpx_location"
17080EOF
17081
17082fi
17083
17084if test ! -z "$blibpath" ; then
17085 LDFLAGS="$LDFLAGS $blibflags$blibpath"
17086 { echo "$as_me:17086: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
17087echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
17088fi
17089
17090if test "$PAM_MSG" = yes ; then
17091 LIBS=`echo $LIBS | sed 's/-lpam //'`
17092fi
17093if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
17094 LIBS=`echo $LIBS | sed 's/-ldl //'`
17095fi
17096
17097ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
17098
17099cat >confcache <<\_ACEOF
17100# This file is a shell script that caches the results of configure
17101# tests run on this system so they can be shared between configure
17102# scripts and configure runs, see configure's option --config-cache.
17103# It is not useful on other systems. If it contains results you don't
17104# want to keep, you may remove or edit it.
17105#
17106# config.status only pays attention to the cache file if you give it
17107# the --recheck option to rerun configure.
17108#
17109# `ac_cv_env_foo' variables (set or unset) will be overriden when
17110# loading this file, other *unset* `ac_cv_foo' will be assigned the
17111# following values.
17112
17113_ACEOF
17114
17115# The following way of writing the cache mishandles newlines in values,
17116# but we know of no workaround that is simple, portable, and efficient.
17117# So, don't put newlines in cache variables' values.
17118# Ultrix sh set writes to stderr and can't be redirected directly,
17119# and sets the high bit in the cache file unless we assign to the vars.
17120{
17121 (set) 2>&1 |
17122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17123 *ac_space=\ *)
17124 # `set' does not quote correctly, so add quotes (double-quote
17125 # substitution turns \\\\ into \\, and sed turns \\ into \).
17126 sed -n \
17127 "s/'/'\\\\''/g;
17128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17129 ;;
17130 *)
17131 # `set' quotes correctly as required by POSIX, so do not add quotes.
17132 sed -n \
17133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17134 ;;
17135 esac;
17136} |
17137 sed '
17138 t clear
17139 : clear
17140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17141 t end
17142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17143 : end' >>confcache
17144if cmp -s $cache_file confcache; then :; else
17145 if test -w $cache_file; then
17146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17147 cat confcache >$cache_file
17148 else
17149 echo "not updating unwritable cache $cache_file"
17150 fi
17151fi
17152rm -f confcache
17153
17154test "x$prefix" = xNONE && prefix=$ac_default_prefix
17155# Let make expand exec_prefix.
17156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17157
17158# VPATH may cause trouble with some makes, so we remove $(srcdir),
17159# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17160# trailing colons and then remove the whole line if VPATH becomes empty
17161# (actually we leave an empty line to preserve line numbers).
17162if test "x$srcdir" = x.; then
17163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17164s/:*\$(srcdir):*/:/;
17165s/:*\${srcdir}:*/:/;
17166s/:*@srcdir@:*/:/;
17167s/^\([^=]*=[ ]*\):*/\1/;
17168s/:*$//;
17169s/^[^=]*=[ ]*$//;
17170}'
17171fi
17172
17173DEFS=-DHAVE_CONFIG_H
17174
17175: ${CONFIG_STATUS=./config.status}
17176ac_clean_files_save=$ac_clean_files
17177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17178{ echo "$as_me:17178: creating $CONFIG_STATUS" >&5
17179echo "$as_me: creating $CONFIG_STATUS" >&6;}
17180cat >$CONFIG_STATUS <<_ACEOF
17181#! $SHELL
17182# Generated automatically by configure.
17183# Run this file to recreate the current configuration.
17184# Compiler output produced by configure, useful for debugging
17185# configure, is in config.log if it exists.
17186
17187debug=false
17188SHELL=\${CONFIG_SHELL-$SHELL}
17189ac_cs_invocation="\$0 \$@"
17190
17191_ACEOF
17192
17193cat >>$CONFIG_STATUS <<\_ACEOF
17194# Be Bourne compatible
17195if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17196 emulate sh
17197 NULLCMD=:
17198elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17199 set -o posix
17200fi
17201
17202# Name of the executable.
17203as_me=`echo "$0" |sed 's,.*[\\/],,'`
17204
17205if expr a : '\(a\)' >/dev/null 2>&1; then
17206 as_expr=expr
17207else
17208 as_expr=false
17209fi
17210
17211rm -f conf$$ conf$$.exe conf$$.file
17212echo >conf$$.file
17213if ln -s conf$$.file conf$$ 2>/dev/null; then
17214 # We could just check for DJGPP; but this test a) works b) is more generic
17215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17216 if test -f conf$$.exe; then
17217 # Don't use ln at all; we don't have any links
17218 as_ln_s='cp -p'
17219 else
17220 as_ln_s='ln -s'
17221 fi
17222elif ln conf$$.file conf$$ 2>/dev/null; then
17223 as_ln_s=ln
17224else
17225 as_ln_s='cp -p'
17226fi
17227rm -f conf$$ conf$$.exe conf$$.file
17228
17229as_executable_p="test -f"
17230
17231# Support unset when possible.
17232if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17233 as_unset=unset
17234else
17235 as_unset=false
17236fi
17237
17238# NLS nuisances.
17239$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17240$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17241$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17242$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17243$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17244$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17245$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17246$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17247
17248# IFS
17249# We need space, tab and new line, in precisely that order.
17250as_nl='
17251'
17252IFS=" $as_nl"
17253
17254# CDPATH.
17255$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17256
17257exec 6>&1
17258
17259_ACEOF
17260
17261# Files that config.status was made for.
17262if test -n "$ac_config_files"; then
17263 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17264fi
17265
17266if test -n "$ac_config_headers"; then
17267 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17268fi
17269
17270if test -n "$ac_config_links"; then
17271 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17272fi
17273
17274if test -n "$ac_config_commands"; then
17275 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17276fi
17277
17278cat >>$CONFIG_STATUS <<\EOF
17279
17280ac_cs_usage="\
17281\`$as_me' instantiates files from templates according to the
17282current configuration.
17283
17284Usage: $0 [OPTIONS] [FILE]...
17285
17286 -h, --help print this help, then exit
17287 -V, --version print version number, then exit
17288 -d, --debug don't remove temporary files
17289 --recheck update $as_me by reconfiguring in the same conditions
17290 --file=FILE[:TEMPLATE]
17291 instantiate the configuration file FILE
17292 --header=FILE[:TEMPLATE]
17293 instantiate the configuration header FILE
17294
17295Configuration files:
17296$config_files
17297
17298Configuration headers:
17299$config_headers
17300
17301Report bugs to <bug-autoconf@gnu.org>."
17302EOF
17303
17304cat >>$CONFIG_STATUS <<EOF
17305ac_cs_version="\\
17306config.status
17307configured by $0, generated by GNU Autoconf 2.52,
17308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17309
17310Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17311Free Software Foundation, Inc.
17312This config.status script is free software; the Free Software Foundation
17313gives unlimited permission to copy, distribute and modify it."
17314srcdir=$srcdir
17315INSTALL="$INSTALL"
17316EOF
17317
17318cat >>$CONFIG_STATUS <<\EOF
17319# If no file are specified by the user, then we need to provide default
17320# value. By we need to know if files were specified by the user.
17321ac_need_defaults=:
17322while test $# != 0
17323do
17324 case $1 in
17325 --*=*)
17326 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17327 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17328 shift
17329 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17330 shift
17331 ;;
17332 -*);;
17333 *) # This is not an option, so the user has probably given explicit
17334 # arguments.
17335 ac_need_defaults=false;;
17336 esac
17337
17338 case $1 in
17339 # Handling of the options.
17340EOF
17341cat >>$CONFIG_STATUS <<EOF
17342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17343 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17344 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17345EOF
17346cat >>$CONFIG_STATUS <<\EOF
17347 --version | --vers* | -V )
17348 echo "$ac_cs_version"; exit 0 ;;
17349 --he | --h)
17350 # Conflict between --help and --header
17351 { { echo "$as_me:17351: error: ambiguous option: $1
17352Try \`$0 --help' for more information." >&5
17353echo "$as_me: error: ambiguous option: $1
17354Try \`$0 --help' for more information." >&2;}
17355 { (exit 1); exit 1; }; };;
17356 --help | --hel | -h )
17357 echo "$ac_cs_usage"; exit 0 ;;
17358 --debug | --d* | -d )
17359 debug=: ;;
17360 --file | --fil | --fi | --f )
17361 shift
17362 CONFIG_FILES="$CONFIG_FILES $1"
17363 ac_need_defaults=false;;
17364 --header | --heade | --head | --hea )
17365 shift
17366 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17367 ac_need_defaults=false;;
17368
17369 # This is an error.
17370 -*) { { echo "$as_me:17370: error: unrecognized option: $1
17371Try \`$0 --help' for more information." >&5
17372echo "$as_me: error: unrecognized option: $1
17373Try \`$0 --help' for more information." >&2;}
17374 { (exit 1); exit 1; }; } ;;
17375
17376 *) ac_config_targets="$ac_config_targets $1" ;;
17377
17378 esac
17379 shift
17380done
17381
17382exec 5>>config.log
17383cat >&5 << _ACEOF
17384
17385## ----------------------- ##
17386## Running config.status. ##
17387## ----------------------- ##
17388
17389This file was extended by $as_me 2.52, executed with
17390 CONFIG_FILES = $CONFIG_FILES
17391 CONFIG_HEADERS = $CONFIG_HEADERS
17392 CONFIG_LINKS = $CONFIG_LINKS
17393 CONFIG_COMMANDS = $CONFIG_COMMANDS
17394 > $ac_cs_invocation
17395on `(hostname || uname -n) 2>/dev/null | sed 1q`
17396
17397_ACEOF
17398EOF
17399
17400cat >>$CONFIG_STATUS <<\EOF
17401for ac_config_target in $ac_config_targets
17402do
17403 case "$ac_config_target" in
17404 # Handling of arguments.
17405 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17406 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17407 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17408 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17409 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17410 *) { { echo "$as_me:17410: error: invalid argument: $ac_config_target" >&5
17411echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17412 { (exit 1); exit 1; }; };;
17413 esac
17414done
17415
17416# If the user did not use the arguments to specify the items to instantiate,
17417# then the envvar interface is used. Set only those that are not.
17418# We use the long form for the default assignment because of an extremely
17419# bizarre bug on SunOS 4.1.3.
17420if $ac_need_defaults; then
17421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17423fi
17424
17425# Create a temporary directory, and hook for its removal unless debugging.
17426$debug ||
17427{
17428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17429 trap '{ (exit 1); exit 1; }' 1 2 13 15
17430}
17431
17432# Create a (secure) tmp directory for tmp files.
17433: ${TMPDIR=/tmp}
17434{
17435 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17436 test -n "$tmp" && test -d "$tmp"
17437} ||
17438{
17439 tmp=$TMPDIR/cs$$-$RANDOM
17440 (umask 077 && mkdir $tmp)
17441} ||
17442{
17443 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17444 { (exit 1); exit 1; }
17445}
17446
17447EOF
17448
17449cat >>$CONFIG_STATUS <<EOF
17450
17451#
17452# CONFIG_FILES section.
17453#
17454
17455# No need to generate the scripts if there are no CONFIG_FILES.
17456# This happens for instance when ./config.status config.h
17457if test -n "\$CONFIG_FILES"; then
17458 # Protect against being on the right side of a sed subst in config.status.
17459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17461s,@SHELL@,$SHELL,;t t
17462s,@exec_prefix@,$exec_prefix,;t t
17463s,@prefix@,$prefix,;t t
17464s,@program_transform_name@,$program_transform_name,;t t
17465s,@bindir@,$bindir,;t t
17466s,@sbindir@,$sbindir,;t t
17467s,@libexecdir@,$libexecdir,;t t
17468s,@datadir@,$datadir,;t t
17469s,@sysconfdir@,$sysconfdir,;t t
17470s,@sharedstatedir@,$sharedstatedir,;t t
17471s,@localstatedir@,$localstatedir,;t t
17472s,@libdir@,$libdir,;t t
17473s,@includedir@,$includedir,;t t
17474s,@oldincludedir@,$oldincludedir,;t t
17475s,@infodir@,$infodir,;t t
17476s,@mandir@,$mandir,;t t
17477s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17478s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17479s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17480s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17481s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17482s,@build_alias@,$build_alias,;t t
17483s,@host_alias@,$host_alias,;t t
17484s,@target_alias@,$target_alias,;t t
17485s,@ECHO_C@,$ECHO_C,;t t
17486s,@ECHO_N@,$ECHO_N,;t t
17487s,@ECHO_T@,$ECHO_T,;t t
17488s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17489s,@DEFS@,$DEFS,;t t
17490s,@LIBS@,$LIBS,;t t
17491s,@CC@,$CC,;t t
17492s,@CFLAGS@,$CFLAGS,;t t
17493s,@LDFLAGS@,$LDFLAGS,;t t
17494s,@CPPFLAGS@,$CPPFLAGS,;t t
17495s,@ac_ct_CC@,$ac_ct_CC,;t t
17496s,@EXEEXT@,$EXEEXT,;t t
17497s,@OBJEXT@,$OBJEXT,;t t
17498s,@build@,$build,;t t
17499s,@build_cpu@,$build_cpu,;t t
17500s,@build_vendor@,$build_vendor,;t t
17501s,@build_os@,$build_os,;t t
17502s,@host@,$host,;t t
17503s,@host_cpu@,$host_cpu,;t t
17504s,@host_vendor@,$host_vendor,;t t
17505s,@host_os@,$host_os,;t t
17506s,@AWK@,$AWK,;t t
17507s,@CPP@,$CPP,;t t
17508s,@RANLIB@,$RANLIB,;t t
17509s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17510s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17511s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17512s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17513s,@AR@,$AR,;t t
17514s,@PERL@,$PERL,;t t
17515s,@SED@,$SED,;t t
17516s,@ENT@,$ENT,;t t
17517s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17518s,@SH@,$SH,;t t
17519s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17520s,@PATH_PASSWD_PROG@,$PATH_PASSWD_PROG,;t t
17521s,@LD@,$LD,;t t
17522s,@LIBWRAP@,$LIBWRAP,;t t
17523s,@LIBPAM@,$LIBPAM,;t t
17524s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17525s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17526s,@PROG_LS@,$PROG_LS,;t t
17527s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17528s,@PROG_ARP@,$PROG_ARP,;t t
17529s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17530s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17531s,@PROG_PS@,$PROG_PS,;t t
17532s,@PROG_SAR@,$PROG_SAR,;t t
17533s,@PROG_W@,$PROG_W,;t t
17534s,@PROG_WHO@,$PROG_WHO,;t t
17535s,@PROG_LAST@,$PROG_LAST,;t t
17536s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17537s,@PROG_DF@,$PROG_DF,;t t
17538s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17539s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17540s,@PROG_IPCS@,$PROG_IPCS,;t t
17541s,@PROG_TAIL@,$PROG_TAIL,;t t
17542s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17543s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17544s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17545s,@xauth_path@,$xauth_path,;t t
17546s,@STRIP_OPT@,$STRIP_OPT,;t t
17547s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17548s,@NROFF@,$NROFF,;t t
17549s,@MANTYPE@,$MANTYPE,;t t
17550s,@mansubdir@,$mansubdir,;t t
17551s,@user_path@,$user_path,;t t
17552s,@piddir@,$piddir,;t t
17553CEOF
17554
17555EOF
17556
17557 cat >>$CONFIG_STATUS <<\EOF
17558 # Split the substitutions into bite-sized pieces for seds with
17559 # small command number limits, like on Digital OSF/1 and HP-UX.
17560 ac_max_sed_lines=48
17561 ac_sed_frag=1 # Number of current file.
17562 ac_beg=1 # First line for current file.
17563 ac_end=$ac_max_sed_lines # Line after last line for current file.
17564 ac_more_lines=:
17565 ac_sed_cmds=
17566 while $ac_more_lines; do
17567 if test $ac_beg -gt 1; then
17568 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17569 else
17570 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17571 fi
17572 if test ! -s $tmp/subs.frag; then
17573 ac_more_lines=false
17574 else
17575 # The purpose of the label and of the branching condition is to
17576 # speed up the sed processing (if there are no `@' at all, there
17577 # is no need to browse any of the substitutions).
17578 # These are the two extra sed commands mentioned above.
17579 (echo ':t
17580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17581 if test -z "$ac_sed_cmds"; then
17582 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17583 else
17584 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17585 fi
17586 ac_sed_frag=`expr $ac_sed_frag + 1`
17587 ac_beg=$ac_end
17588 ac_end=`expr $ac_end + $ac_max_sed_lines`
17589 fi
17590 done
17591 if test -z "$ac_sed_cmds"; then
17592 ac_sed_cmds=cat
17593 fi
17594fi # test -n "$CONFIG_FILES"
17595
17596EOF
17597cat >>$CONFIG_STATUS <<\EOF
17598for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17599 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17600 case $ac_file in
17601 - | *:- | *:-:* ) # input from stdin
17602 cat >$tmp/stdin
17603 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17605 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17606 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17607 * ) ac_file_in=$ac_file.in ;;
17608 esac
17609
17610 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17611 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17612 X"$ac_file" : 'X\(//\)[^/]' \| \
17613 X"$ac_file" : 'X\(//\)$' \| \
17614 X"$ac_file" : 'X\(/\)' \| \
17615 . : '\(.\)' 2>/dev/null ||
17616echo X"$ac_file" |
17617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17619 /^X\(\/\/\)$/{ s//\1/; q; }
17620 /^X\(\/\).*/{ s//\1/; q; }
17621 s/.*/./; q'`
17622 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17623 { case "$ac_dir" in
17624 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17625 *) as_incr_dir=.;;
17626esac
17627as_dummy="$ac_dir"
17628for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17629 case $as_mkdir_dir in
17630 # Skip DOS drivespec
17631 ?:) as_incr_dir=$as_mkdir_dir ;;
17632 *)
17633 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17634 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17635 ;;
17636 esac
17637done; }
17638
17639 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17640 # A "../" for each directory in $ac_dir_suffix.
17641 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17642 else
17643 ac_dir_suffix= ac_dots=
17644 fi
17645
17646 case $srcdir in
17647 .) ac_srcdir=.
17648 if test -z "$ac_dots"; then
17649 ac_top_srcdir=.
17650 else
17651 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17652 fi ;;
17653 [\\/]* | ?:[\\/]* )
17654 ac_srcdir=$srcdir$ac_dir_suffix;
17655 ac_top_srcdir=$srcdir ;;
17656 *) # Relative path.
17657 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17658 ac_top_srcdir=$ac_dots$srcdir ;;
17659 esac
17660
17661 case $INSTALL in
17662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17663 *) ac_INSTALL=$ac_dots$INSTALL ;;
17664 esac
17665
17666 if test x"$ac_file" != x-; then
17667 { echo "$as_me:17667: creating $ac_file" >&5
17668echo "$as_me: creating $ac_file" >&6;}
17669 rm -f "$ac_file"
17670 fi
17671 # Let's still pretend it is `configure' which instantiates (i.e., don't
17672 # use $as_me), people would be surprised to read:
17673 # /* config.h. Generated automatically by config.status. */
17674 configure_input="Generated automatically from `echo $ac_file_in |
17675 sed 's,.*/,,'` by configure."
17676
17677 # First look for the input files in the build tree, otherwise in the
17678 # src tree.
17679 ac_file_inputs=`IFS=:
17680 for f in $ac_file_in; do
17681 case $f in
17682 -) echo $tmp/stdin ;;
17683 [\\/$]*)
17684 # Absolute (can't be DOS-style, as IFS=:)
17685 test -f "$f" || { { echo "$as_me:17685: error: cannot find input file: $f" >&5
17686echo "$as_me: error: cannot find input file: $f" >&2;}
17687 { (exit 1); exit 1; }; }
17688 echo $f;;
17689 *) # Relative
17690 if test -f "$f"; then
17691 # Build tree
17692 echo $f
17693 elif test -f "$srcdir/$f"; then
17694 # Source tree
17695 echo $srcdir/$f
17696 else
17697 # /dev/null tree
17698 { { echo "$as_me:17698: error: cannot find input file: $f" >&5
17699echo "$as_me: error: cannot find input file: $f" >&2;}
17700 { (exit 1); exit 1; }; }
17701 fi;;
17702 esac
17703 done` || { (exit 1); exit 1; }
17704EOF
17705cat >>$CONFIG_STATUS <<EOF
17706 sed "$ac_vpsub
17707$extrasub
17708EOF
17709cat >>$CONFIG_STATUS <<\EOF
17710:t
17711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17712s,@configure_input@,$configure_input,;t t
17713s,@srcdir@,$ac_srcdir,;t t
17714s,@top_srcdir@,$ac_top_srcdir,;t t
17715s,@INSTALL@,$ac_INSTALL,;t t
17716" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17717 rm -f $tmp/stdin
17718 if test x"$ac_file" != x-; then
17719 mv $tmp/out $ac_file
17720 else
17721 cat $tmp/out
17722 rm -f $tmp/out
17723 fi
17724
17725done
17726EOF
17727cat >>$CONFIG_STATUS <<\EOF
17728
17729#
17730# CONFIG_HEADER section.
17731#
17732
17733# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17734# NAME is the cpp macro being defined and VALUE is the value it is being given.
17735#
17736# ac_d sets the value in "#define NAME VALUE" lines.
17737ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17738ac_dB='[ ].*$,\1#\2'
17739ac_dC=' '
17740ac_dD=',;t'
17741# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17742ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17743ac_uB='$,\1#\2define\3'
17744ac_uC=' '
17745ac_uD=',;t'
17746
17747for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17749 case $ac_file in
17750 - | *:- | *:-:* ) # input from stdin
17751 cat >$tmp/stdin
17752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17756 * ) ac_file_in=$ac_file.in ;;
17757 esac
17758
17759 test x"$ac_file" != x- && { echo "$as_me:17759: creating $ac_file" >&5
17760echo "$as_me: creating $ac_file" >&6;}
17761
17762 # First look for the input files in the build tree, otherwise in the
17763 # src tree.
17764 ac_file_inputs=`IFS=:
17765 for f in $ac_file_in; do
17766 case $f in
17767 -) echo $tmp/stdin ;;
17768 [\\/$]*)
17769 # Absolute (can't be DOS-style, as IFS=:)
17770 test -f "$f" || { { echo "$as_me:17770: error: cannot find input file: $f" >&5
17771echo "$as_me: error: cannot find input file: $f" >&2;}
17772 { (exit 1); exit 1; }; }
17773 echo $f;;
17774 *) # Relative
17775 if test -f "$f"; then
17776 # Build tree
17777 echo $f
17778 elif test -f "$srcdir/$f"; then
17779 # Source tree
17780 echo $srcdir/$f
17781 else
17782 # /dev/null tree
17783 { { echo "$as_me:17783: error: cannot find input file: $f" >&5
17784echo "$as_me: error: cannot find input file: $f" >&2;}
17785 { (exit 1); exit 1; }; }
17786 fi;;
17787 esac
17788 done` || { (exit 1); exit 1; }
17789 # Remove the trailing spaces.
17790 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17791
17792EOF
17793
17794# Transform confdefs.h into two sed scripts, `conftest.defines' and
17795# `conftest.undefs', that substitutes the proper values into
17796# config.h.in to produce config.h. The first handles `#define'
17797# templates, and the second `#undef' templates.
17798# And first: Protect against being on the right side of a sed subst in
17799# config.status. Protect against being in an unquoted here document
17800# in config.status.
17801rm -f conftest.defines conftest.undefs
17802# Using a here document instead of a string reduces the quoting nightmare.
17803# Putting comments in sed scripts is not portable.
17804#
17805# `end' is used to avoid that the second main sed command (meant for
17806# 0-ary CPP macros) applies to n-ary macro definitions.
17807# See the Autoconf documentation for `clear'.
17808cat >confdef2sed.sed <<\EOF
17809s/[\\&,]/\\&/g
17810s,[\\$`],\\&,g
17811t clear
17812: clear
17813s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
17814t end
17815s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17816: end
17817EOF
17818# If some macros were called several times there might be several times
17819# the same #defines, which is useless. Nevertheless, we may not want to
17820# sort them, since we want the *last* AC-DEFINE to be honored.
17821uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17822sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17823rm -f confdef2sed.sed
17824
17825# This sed command replaces #undef with comments. This is necessary, for
17826# example, in the case of _POSIX_SOURCE, which is predefined and required
17827# on some systems where configure will not decide to define it.
17828cat >>conftest.undefs <<\EOF
17829s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17830EOF
17831
17832# Break up conftest.defines because some shells have a limit on the size
17833# of here documents, and old seds have small limits too (100 cmds).
17834echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17835echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17836echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17837echo ' :' >>$CONFIG_STATUS
17838rm -f conftest.tail
17839while grep . conftest.defines >/dev/null
17840do
17841 # Write a limited-size here document to $tmp/defines.sed.
17842 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17843 # Speed up: don't consider the non `#define' lines.
17844 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17845 # Work around the forget-to-reset-the-flag bug.
17846 echo 't clr' >>$CONFIG_STATUS
17847 echo ': clr' >>$CONFIG_STATUS
17848 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17849 echo 'CEOF
17850 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17851 rm -f $tmp/in
17852 mv $tmp/out $tmp/in
17853' >>$CONFIG_STATUS
17854 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17855 rm -f conftest.defines
17856 mv conftest.tail conftest.defines
17857done
17858rm -f conftest.defines
17859echo ' fi # egrep' >>$CONFIG_STATUS
17860echo >>$CONFIG_STATUS
17861
17862# Break up conftest.undefs because some shells have a limit on the size
17863# of here documents, and old seds have small limits too (100 cmds).
17864echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17865rm -f conftest.tail
17866while grep . conftest.undefs >/dev/null
17867do
17868 # Write a limited-size here document to $tmp/undefs.sed.
17869 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17870 # Speed up: don't consider the non `#undef'
17871 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17872 # Work around the forget-to-reset-the-flag bug.
17873 echo 't clr' >>$CONFIG_STATUS
17874 echo ': clr' >>$CONFIG_STATUS
17875 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17876 echo 'CEOF
17877 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17878 rm -f $tmp/in
17879 mv $tmp/out $tmp/in
17880' >>$CONFIG_STATUS
17881 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17882 rm -f conftest.undefs
17883 mv conftest.tail conftest.undefs
17884done
17885rm -f conftest.undefs
17886
17887cat >>$CONFIG_STATUS <<\EOF
17888 # Let's still pretend it is `configure' which instantiates (i.e., don't
17889 # use $as_me), people would be surprised to read:
17890 # /* config.h. Generated automatically by config.status. */
17891 if test x"$ac_file" = x-; then
17892 echo "/* Generated automatically by configure. */" >$tmp/config.h
17893 else
17894 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
17895 fi
17896 cat $tmp/in >>$tmp/config.h
17897 rm -f $tmp/in
17898 if test x"$ac_file" != x-; then
17899 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17900 { echo "$as_me:17900: $ac_file is unchanged" >&5
17901echo "$as_me: $ac_file is unchanged" >&6;}
17902 else
17903 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17904 X"$ac_file" : 'X\(//\)[^/]' \| \
17905 X"$ac_file" : 'X\(//\)$' \| \
17906 X"$ac_file" : 'X\(/\)' \| \
17907 . : '\(.\)' 2>/dev/null ||
17908echo X"$ac_file" |
17909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17911 /^X\(\/\/\)$/{ s//\1/; q; }
17912 /^X\(\/\).*/{ s//\1/; q; }
17913 s/.*/./; q'`
17914 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17915 { case "$ac_dir" in
17916 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17917 *) as_incr_dir=.;;
17918esac
17919as_dummy="$ac_dir"
17920for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17921 case $as_mkdir_dir in
17922 # Skip DOS drivespec
17923 ?:) as_incr_dir=$as_mkdir_dir ;;
17924 *)
17925 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17926 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17927 ;;
17928 esac
17929done; }
17930
17931 fi
17932 rm -f $ac_file
17933 mv $tmp/config.h $ac_file
17934 fi
17935 else
17936 cat $tmp/config.h
17937 rm -f $tmp/config.h
17938 fi
17939done
17940EOF
17941
17942cat >>$CONFIG_STATUS <<\EOF
17943
17944{ (exit 0); exit 0; }
17945EOF
17946chmod +x $CONFIG_STATUS
17947ac_clean_files=$ac_clean_files_save
17948
17949# configure is writing to config.log, and then calls config.status.
17950# config.status does its own redirection, appending to config.log.
17951# Unfortunately, on DOS this fails, as config.log is still kept open
17952# by configure, so config.status won't be able to write to it; its
17953# output is simply discarded. So we exec the FD to /dev/null,
17954# effectively closing config.log, so it can be properly (re)opened and
17955# appended to by config.status. When coming back to configure, we
17956# need to make the FD available again.
17957if test "$no_create" != yes; then
17958 ac_cs_success=:
17959 exec 5>/dev/null
17960 $SHELL $CONFIG_STATUS || ac_cs_success=false
17961 exec 5>>config.log
17962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17963 # would make configure fail if this is the last instruction.
17964 $ac_cs_success || { (exit 1); exit 1; }
17965fi
17966
17967# Print summary of options
17968
17969# Someone please show me a better way :)
17970A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17971B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17972C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17973D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17974E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17975F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17976G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17977H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17978I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17979J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17980
17981echo ""
17982echo "OpenSSH has been configured with the following options:"
17983echo " User binaries: $B"
17984echo " System binaries: $C"
17985echo " Configuration files: $D"
17986echo " Askpass program: $E"
17987echo " Manual pages: $F"
17988echo " PID file: $G"
17989echo " Privilege separation chroot path: $H"
17990if test "x$external_path_file" = "x/etc/login.conf" ; then
17991echo " At runtime, sshd will use the path defined in $external_path_file"
17992echo " Make sure the path to scp is present, otherwise scp will not work"
17993else
17994echo " sshd default user PATH: $I"
17995 if test ! -z "$external_path_file"; then
17996echo " (If PATH is set in $external_path_file it will be used instead. If"
17997echo " used, ensure the path to scp is present, otherwise scp will not work.)"
17998 fi
17999fi
18000if test ! -z "$superuser_path" ; then
18001echo " sshd superuser user PATH: $J"
18002fi
18003echo " Manpage format: $MANTYPE"
18004echo " PAM support: $PAM_MSG"
18005echo " KerberosV support: $KRB5_MSG"
18006echo " Smartcard support: $SCARD_MSG"
18007echo " S/KEY support: $SKEY_MSG"
18008echo " TCP Wrappers support: $TCPW_MSG"
18009echo " MD5 password support: $MD5_MSG"
18010echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18011echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18012echo " BSD Auth support: $BSD_AUTH_MSG"
18013echo " Random number source: $RAND_MSG"
18014if test ! -z "$USE_RAND_HELPER" ; then
18015echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
18016fi
18017
18018echo ""
18019
18020echo " Host: ${host}"
18021echo " Compiler: ${CC}"
18022echo " Compiler flags: ${CFLAGS}"
18023echo "Preprocessor flags: ${CPPFLAGS}"
18024echo " Linker flags: ${LDFLAGS}"
18025echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
18026
18027echo ""
18028
18029if test "x$PAM_MSG" = "xyes" ; then
18030 echo "PAM is enabled. You may need to install a PAM control file "
18031 echo "for sshd, otherwise password authentication may fail. "
18032 echo "Example PAM control files can be found in the contrib/ "
18033 echo "subdirectory"
18034 echo ""
18035fi
18036
18037if test ! -z "$RAND_HELPER_CMDHASH" ; then
18038 echo "WARNING: you are using the builtin random number collection "
18039 echo "service. Please read WARNING.RNG and request that your OS "
18040 echo "vendor includes kernel-based random number collection in "
18041 echo "future versions of your OS."
18042 echo ""
18043fi
18044