]> andersk Git - gssapi-openssh.git/blame - openssh/autom4te-2.53.cache/output.0
Import of OpenSSH 3.4p1
[gssapi-openssh.git] / openssh / autom4te-2.53.cache / output.0
CommitLineData
700318f3 1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.53.
4@%:@
5@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="ssh.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785 cat <<_ACEOF
786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812_ACEOF
813
814 cat <<\_ACEOF
815
816System types:
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
819_ACEOF
820fi
821
822if test -n "$ac_init_help"; then
823
824 cat <<\_ACEOF
825
826Optional Features:
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-largefile omit support for large files
700318f3 830 --disable-lastlog disable use of lastlog even if detected no
831 --disable-utmp disable use of utmp even if detected no
832 --disable-utmpx disable use of utmpx even if detected no
833 --disable-wtmp disable use of wtmp even if detected no
834 --disable-wtmpx disable use of wtmpx even if detected no
835 --disable-libutil disable use of libutil (login() etc.) no
836 --disable-pututline disable use of pututline() etc. (uwtmp) no
837 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
838
839Optional Packages:
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-osfsia Enable Digital Unix SIA
843 --with-cflags Specify additional flags to pass to compiler
844 --with-cppflags Specify additional flags to pass to preprocessor
845 --with-ldflags Specify additional flags to pass to linker
846 --with-libs Specify additional libraries to link with
847 --without-rpath Disable auto-added -R linker paths
848 --with-zlib=PATH Use zlib in PATH
849 --with-skey[=PATH] Enable S/Key support
850 (optionally in PATH)
851 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
852 (optionally in PATH)
853 --with-pam Enable PAM support
854 --with-ssl-dir=PATH Specify path to OpenSSL installation
855 --with-rand-helper Use subprocess to gather strong randomness
856 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
857 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
858 --with-entropy-timeout Specify entropy gathering command timeout (msec)
859 --with-privsep-user=user Specify non-privileged user for privilege separation
860 --with-sectok Enable smartcard support using libsectok
861 --with-opensc=PFX Enable smartcard support using OpenSC
862 --with-kerberos5=PATH Enable Kerberos 5 support
863 --with-kerberos4=PATH Enable Kerberos 4 support
864 --with-afs=PATH Enable AFS support
7435de97 865 --with-privsep-path=xxx Path for privilege separation chroot
700318f3 866 --with-xauth=PATH Specify path to xauth program
867 --with-mantype=man|cat|doc Set man page type
868 --with-md5-passwords Enable use of MD5 passwords
869 --without-shadow Disable shadow password support
870 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
871 --with-default-path= Specify default \$PATH environment for server
872 --with-superuser-path= Specify different path for super-user
873 --with-ipv4-default Use IPv4 by connections unless '-6' specified
874 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
875 --with-bsd-auth Enable BSD auth support
876 --with-pid-dir=PATH Specify location of ssh.pid file
877 --with-lastlog=FILE|DIR specify lastlog location common locations
878
879Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
900
901if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
908
909case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923esac
924# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925# absolute.
926ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931 cd $ac_dir
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
934 echo
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
937 echo
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
941 echo
942 $ac_configure --help
943 else
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 fi
946 cd $ac_popdir
947 done
948fi
949
950test -n "$ac_init_help" && exit 0
951if $ac_init_version; then
952 cat <<\_ACEOF
953
954Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955Free Software Foundation, Inc.
956This configure script is free software; the Free Software Foundation
957gives unlimited permission to copy, distribute and modify it.
958_ACEOF
959 exit 0
960fi
961exec 5>config.log
962cat >&5 <<_ACEOF
963This file contains any messages produced by compilers while
964running configure, to aid debugging if configure makes a mistake.
965
966It was created by $as_me, which was
967generated by GNU Autoconf 2.53. Invocation command line was
968
969 $ $0 $@
970
971_ACEOF
972{
973cat <<_ASUNAME
974@%:@@%:@ --------- @%:@@%:@
975@%:@@%:@ Platform. @%:@@%:@
976@%:@@%:@ --------- @%:@@%:@
977
978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979uname -m = `(uname -m) 2>/dev/null || echo unknown`
980uname -r = `(uname -r) 2>/dev/null || echo unknown`
981uname -s = `(uname -s) 2>/dev/null || echo unknown`
982uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986
987/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994
995_ASUNAME
996
997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998for as_dir in $PATH
999do
1000 IFS=$as_save_IFS
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1003done
1004
1005} >&5
1006
1007cat >&5 <<_ACEOF
1008
1009
1010@%:@@%:@ ----------- @%:@@%:@
1011@%:@@%:@ Core tests. @%:@@%:@
1012@%:@@%:@ ----------- @%:@@%:@
1013
1014_ACEOF
1015
1016
1017# Keep a trace of the command line.
1018# Strip out --no-create and --no-recursion so they do not pile up.
1019# Also quote any args containing shell meta-characters.
1020ac_configure_args=
1021ac_sep=
1022for ac_arg
1023do
1024 case $ac_arg in
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n ) continue ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case " $ac_configure_args " in
1034 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1035 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 ac_sep=" " ;;
1037 esac
1038 # Get rid of the leading space.
1039done
1040
1041# When interrupted or exit'd, cleanup temporary files, and complete
1042# config.log. We remove comments because anyway the quotes in there
1043# would cause problems or look ugly.
1044# WARNING: Be sure not to use single quotes in there, as some shells,
1045# such as our DU 5.0 friend, will then `close' the trap.
1046trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1048 {
1049 echo
1050 cat <<\_ASBOX
1051@%:@@%:@ ---------------- @%:@@%:@
1052@%:@@%:@ Cache variables. @%:@@%:@
1053@%:@@%:@ ---------------- @%:@@%:@
1054_ASBOX
1055 echo
1056 # The following way of writing the cache mishandles newlines in values,
1057{
1058 (set) 2>&1 |
1059 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1060 *ac_space=\ *)
1061 sed -n \
1062 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1064 ;;
1065 *)
1066 sed -n \
1067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1068 ;;
1069 esac;
1070}
1071 echo
1072 if test -s confdefs.h; then
1073 cat <<\_ASBOX
1074@%:@@%:@ ----------- @%:@@%:@
1075@%:@@%:@ confdefs.h. @%:@@%:@
1076@%:@@%:@ ----------- @%:@@%:@
1077_ASBOX
1078 echo
1079 sed "/^$/d" confdefs.h
1080 echo
1081 fi
1082 test "$ac_signal" != 0 &&
1083 echo "$as_me: caught signal $ac_signal"
1084 echo "$as_me: exit $exit_status"
1085 } >&5
1086 rm -f core core.* *.core &&
1087 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1088 exit $exit_status
1089 ' 0
1090for ac_signal in 1 2 13 15; do
1091 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1092done
1093ac_signal=0
1094
1095# confdefs.h avoids OS command line length limits that DEFS can exceed.
1096rm -rf conftest* confdefs.h
1097# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1098echo >confdefs.h
1099
1100# Predefined preprocessor variables.
1101
1102cat >>confdefs.h <<_ACEOF
1103@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1104_ACEOF
1105
1106
1107cat >>confdefs.h <<_ACEOF
1108@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1109_ACEOF
1110
1111
1112cat >>confdefs.h <<_ACEOF
1113@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1114_ACEOF
1115
1116
1117cat >>confdefs.h <<_ACEOF
1118@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1119_ACEOF
1120
1121
1122cat >>confdefs.h <<_ACEOF
1123@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1124_ACEOF
1125
1126
1127# Let the site file select an alternate cache file if it wants to.
1128# Prefer explicitly selected file to automatically selected ones.
1129if test -z "$CONFIG_SITE"; then
1130 if test "x$prefix" != xNONE; then
1131 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1132 else
1133 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1134 fi
1135fi
1136for ac_site_file in $CONFIG_SITE; do
1137 if test -r "$ac_site_file"; then
1138 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1139echo "$as_me: loading site script $ac_site_file" >&6;}
1140 sed 's/^/| /' "$ac_site_file" >&5
1141 . "$ac_site_file"
1142 fi
1143done
1144
1145if test -r "$cache_file"; then
1146 # Some versions of bash will fail to source /dev/null (special
1147 # files actually), so we avoid doing that.
1148 if test -f "$cache_file"; then
1149 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1150echo "$as_me: loading cache $cache_file" >&6;}
1151 case $cache_file in
1152 [\\/]* | ?:[\\/]* ) . $cache_file;;
1153 *) . ./$cache_file;;
1154 esac
1155 fi
1156else
1157 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1158echo "$as_me: creating cache $cache_file" >&6;}
1159 >$cache_file
1160fi
1161
1162# Check that the precious variables saved in the cache have kept the same
1163# value.
1164ac_cache_corrupted=false
1165for ac_var in `(set) 2>&1 |
1166 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1168 eval ac_new_set=\$ac_env_${ac_var}_set
1169 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1170 eval ac_new_val="\$ac_env_${ac_var}_value"
1171 case $ac_old_set,$ac_new_set in
1172 set,)
1173 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1174echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1175 ac_cache_corrupted=: ;;
1176 ,set)
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1178echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1180 ,);;
1181 *)
1182 if test "x$ac_old_val" != "x$ac_new_val"; then
1183 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1184echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1185 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1186echo "$as_me: former value: $ac_old_val" >&2;}
1187 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1188echo "$as_me: current value: $ac_new_val" >&2;}
1189 ac_cache_corrupted=:
1190 fi;;
1191 esac
1192 # Pass precious variables to config.status.
1193 if test "$ac_new_set" = set; then
1194 case $ac_new_val in
1195 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 *) ac_arg=$ac_var=$ac_new_val ;;
1198 esac
1199 case " $ac_configure_args " in
1200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1201 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1202 esac
1203 fi
1204done
1205if $ac_cache_corrupted; then
1206 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1207echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1208 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1209echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1210 { (exit 1); exit 1; }; }
1211fi
1212
1213ac_ext=c
1214ac_cpp='$CPP $CPPFLAGS'
1215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1217ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238ac_config_headers="$ac_config_headers config.h"
1239
1240ac_ext=c
1241ac_cpp='$CPP $CPPFLAGS'
1242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1244ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245if test -n "$ac_tool_prefix"; then
1246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1247set dummy ${ac_tool_prefix}gcc; ac_word=$2
1248echo "$as_me:$LINENO: checking for $ac_word" >&5
1249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250if test "${ac_cv_prog_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1252else
1253 if test -n "$CC"; then
1254 ac_cv_prog_CC="$CC" # Let the user override the test.
1255else
1256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257for as_dir in $PATH
1258do
1259 IFS=$as_save_IFS
1260 test -z "$as_dir" && as_dir=.
1261 for ac_exec_ext in '' $ac_executable_extensions; do
1262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1265 break 2
1266 fi
1267done
1268done
1269
1270fi
1271fi
1272CC=$ac_cv_prog_CC
1273if test -n "$CC"; then
1274 echo "$as_me:$LINENO: result: $CC" >&5
1275echo "${ECHO_T}$CC" >&6
1276else
1277 echo "$as_me:$LINENO: result: no" >&5
1278echo "${ECHO_T}no" >&6
1279fi
1280
1281fi
1282if test -z "$ac_cv_prog_CC"; then
1283 ac_ct_CC=$CC
1284 # Extract the first word of "gcc", so it can be a program name with args.
1285set dummy gcc; ac_word=$2
1286echo "$as_me:$LINENO: checking for $ac_word" >&5
1287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290else
1291 if test -n "$ac_ct_CC"; then
1292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1293else
1294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295for as_dir in $PATH
1296do
1297 IFS=$as_save_IFS
1298 test -z "$as_dir" && as_dir=.
1299 for ac_exec_ext in '' $ac_executable_extensions; do
1300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1301 ac_cv_prog_ac_ct_CC="gcc"
1302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1303 break 2
1304 fi
1305done
1306done
1307
1308fi
1309fi
1310ac_ct_CC=$ac_cv_prog_ac_ct_CC
1311if test -n "$ac_ct_CC"; then
1312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1313echo "${ECHO_T}$ac_ct_CC" >&6
1314else
1315 echo "$as_me:$LINENO: result: no" >&5
1316echo "${ECHO_T}no" >&6
1317fi
1318
1319 CC=$ac_ct_CC
1320else
1321 CC="$ac_cv_prog_CC"
1322fi
1323
1324if test -z "$CC"; then
1325 if test -n "$ac_tool_prefix"; then
1326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1327set dummy ${ac_tool_prefix}cc; ac_word=$2
1328echo "$as_me:$LINENO: checking for $ac_word" >&5
1329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330if test "${ac_cv_prog_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332else
1333 if test -n "$CC"; then
1334 ac_cv_prog_CC="$CC" # Let the user override the test.
1335else
1336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337for as_dir in $PATH
1338do
1339 IFS=$as_save_IFS
1340 test -z "$as_dir" && as_dir=.
1341 for ac_exec_ext in '' $ac_executable_extensions; do
1342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1343 ac_cv_prog_CC="${ac_tool_prefix}cc"
1344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1345 break 2
1346 fi
1347done
1348done
1349
1350fi
1351fi
1352CC=$ac_cv_prog_CC
1353if test -n "$CC"; then
1354 echo "$as_me:$LINENO: result: $CC" >&5
1355echo "${ECHO_T}$CC" >&6
1356else
1357 echo "$as_me:$LINENO: result: no" >&5
1358echo "${ECHO_T}no" >&6
1359fi
1360
1361fi
1362if test -z "$ac_cv_prog_CC"; then
1363 ac_ct_CC=$CC
1364 # Extract the first word of "cc", so it can be a program name with args.
1365set dummy cc; ac_word=$2
1366echo "$as_me:$LINENO: checking for $ac_word" >&5
1367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 if test -n "$ac_ct_CC"; then
1372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1373else
1374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375for as_dir in $PATH
1376do
1377 IFS=$as_save_IFS
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_ac_ct_CC="cc"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 break 2
1384 fi
1385done
1386done
1387
1388fi
1389fi
1390ac_ct_CC=$ac_cv_prog_ac_ct_CC
1391if test -n "$ac_ct_CC"; then
1392 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1393echo "${ECHO_T}$ac_ct_CC" >&6
1394else
1395 echo "$as_me:$LINENO: result: no" >&5
1396echo "${ECHO_T}no" >&6
1397fi
1398
1399 CC=$ac_ct_CC
1400else
1401 CC="$ac_cv_prog_CC"
1402fi
1403
1404fi
1405if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407set dummy cc; ac_word=$2
1408echo "$as_me:$LINENO: checking for $ac_word" >&5
1409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1415else
1416 ac_prog_rejected=no
1417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418for as_dir in $PATH
1419do
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1425 ac_prog_rejected=yes
1426 continue
1427 fi
1428 ac_cv_prog_CC="cc"
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 break 2
1431 fi
1432done
1433done
1434
1435if test $ac_prog_rejected = yes; then
1436 # We found a bogon in the path, so make sure we never use it.
1437 set dummy $ac_cv_prog_CC
1438 shift
1439 if test $@%:@ != 0; then
1440 # We chose a different compiler from the bogus one.
1441 # However, it has the same basename, so the bogon will be chosen
1442 # first if we set CC to just the basename; use the full file name.
1443 shift
1444 set dummy "$as_dir/$ac_word" ${1+"$@"}
1445 shift
1446 ac_cv_prog_CC="$@"
1447 fi
1448fi
1449fi
1450fi
1451CC=$ac_cv_prog_CC
1452if test -n "$CC"; then
1453 echo "$as_me:$LINENO: result: $CC" >&5
1454echo "${ECHO_T}$CC" >&6
1455else
1456 echo "$as_me:$LINENO: result: no" >&5
1457echo "${ECHO_T}no" >&6
1458fi
1459
1460fi
1461if test -z "$CC"; then
1462 if test -n "$ac_tool_prefix"; then
1463 for ac_prog in cl
1464 do
1465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1467echo "$as_me:$LINENO: checking for $ac_word" >&5
1468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469if test "${ac_cv_prog_CC+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 if test -n "$CC"; then
1473 ac_cv_prog_CC="$CC" # Let the user override the test.
1474else
1475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 for ac_exec_ext in '' $ac_executable_extensions; do
1481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484 break 2
1485 fi
1486done
1487done
1488
1489fi
1490fi
1491CC=$ac_cv_prog_CC
1492if test -n "$CC"; then
1493 echo "$as_me:$LINENO: result: $CC" >&5
1494echo "${ECHO_T}$CC" >&6
1495else
1496 echo "$as_me:$LINENO: result: no" >&5
1497echo "${ECHO_T}no" >&6
1498fi
1499
1500 test -n "$CC" && break
1501 done
1502fi
1503if test -z "$CC"; then
1504 ac_ct_CC=$CC
1505 for ac_prog in cl
1506do
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508set dummy $ac_prog; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_CC="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538 echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542 test -n "$ac_ct_CC" && break
1543done
1544
1545 CC=$ac_ct_CC
1546fi
1547
1548fi
1549
1550
1551test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1552echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1553 { (exit 1); exit 1; }; }
1554
1555# Provide some information about the compiler.
1556echo "$as_me:$LINENO:" \
1557 "checking for C compiler version" >&5
1558ac_compiler=`set X $ac_compile; echo $2`
1559{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1560 (eval $ac_compiler --version </dev/null >&5) 2>&5
1561 ac_status=$?
1562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1563 (exit $ac_status); }
1564{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1565 (eval $ac_compiler -v </dev/null >&5) 2>&5
1566 ac_status=$?
1567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1568 (exit $ac_status); }
1569{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1570 (eval $ac_compiler -V </dev/null >&5) 2>&5
1571 ac_status=$?
1572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1573 (exit $ac_status); }
1574
1575cat >conftest.$ac_ext <<_ACEOF
1576#line $LINENO "configure"
1577#include "confdefs.h"
1578
1579#ifdef F77_DUMMY_MAIN
1580# ifdef __cplusplus
1581 extern "C"
1582# endif
1583 int F77_DUMMY_MAIN() { return 1; }
1584#endif
1585int
1586main ()
1587{
1588
1589 ;
1590 return 0;
1591}
1592_ACEOF
1593ac_clean_files_save=$ac_clean_files
1594ac_clean_files="$ac_clean_files a.out a.exe"
1595# Try to create an executable without -o first, disregard a.out.
1596# It will help us diagnose broken compilers, and finding out an intuition
1597# of exeext.
1598echo "$as_me:$LINENO: checking for C compiler default output" >&5
1599echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1600ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1601if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1602 (eval $ac_link_default) 2>&5
1603 ac_status=$?
1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605 (exit $ac_status); }; then
1606 # Find the output, starting from the most likely. This scheme is
1607# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1608# resort.
1609
1610# Be careful to initialize this variable, since it used to be cached.
1611# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1612ac_cv_exeext=
1613for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1614 ls a.out conftest 2>/dev/null;
1615 ls a.* conftest.* 2>/dev/null`; do
1616 case $ac_file in
1617 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1618 a.out ) # We found the default executable, but exeext='' is most
1619 # certainly right.
1620 break;;
1621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1623 export ac_cv_exeext
1624 break;;
1625 * ) break;;
1626 esac
1627done
1628else
1629 echo "$as_me: failed program was:" >&5
1630cat conftest.$ac_ext >&5
1631{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1632echo "$as_me: error: C compiler cannot create executables" >&2;}
1633 { (exit 77); exit 77; }; }
1634fi
1635
1636ac_exeext=$ac_cv_exeext
1637echo "$as_me:$LINENO: result: $ac_file" >&5
1638echo "${ECHO_T}$ac_file" >&6
1639
1640# Check the compiler produces executables we can run. If not, either
1641# the compiler is broken, or we cross compile.
1642echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1643echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1644# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1645# If not cross compiling, check that we can run a simple program.
1646if test "$cross_compiling" != yes; then
1647 if { ac_try='./$ac_file'
1648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1649 (eval $ac_try) 2>&5
1650 ac_status=$?
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1653 cross_compiling=no
1654 else
1655 if test "$cross_compiling" = maybe; then
1656 cross_compiling=yes
1657 else
1658 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1659If you meant to cross compile, use \`--host'." >&5
1660echo "$as_me: error: cannot run C compiled programs.
1661If you meant to cross compile, use \`--host'." >&2;}
1662 { (exit 1); exit 1; }; }
1663 fi
1664 fi
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668
1669rm -f a.out a.exe conftest$ac_cv_exeext
1670ac_clean_files=$ac_clean_files_save
1671# Check the compiler produces executables we can run. If not, either
1672# the compiler is broken, or we cross compile.
1673echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1674echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1675echo "$as_me:$LINENO: result: $cross_compiling" >&5
1676echo "${ECHO_T}$cross_compiling" >&6
1677
1678echo "$as_me:$LINENO: checking for suffix of executables" >&5
1679echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1681 (eval $ac_link) 2>&5
1682 ac_status=$?
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1687# work properly (i.e., refer to `conftest.exe'), while it won't with
1688# `rm'.
1689for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1690 case $ac_file in
1691 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 export ac_cv_exeext
1694 break;;
1695 * ) break;;
1696 esac
1697done
1698else
1699 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1700echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1701 { (exit 1); exit 1; }; }
1702fi
1703
1704rm -f conftest$ac_cv_exeext
1705echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1706echo "${ECHO_T}$ac_cv_exeext" >&6
1707
1708rm -f conftest.$ac_ext
1709EXEEXT=$ac_cv_exeext
1710ac_exeext=$EXEEXT
1711echo "$as_me:$LINENO: checking for suffix of object files" >&5
1712echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1713if test "${ac_cv_objext+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716 cat >conftest.$ac_ext <<_ACEOF
1717#line $LINENO "configure"
1718#include "confdefs.h"
1719
1720#ifdef F77_DUMMY_MAIN
1721# ifdef __cplusplus
1722 extern "C"
1723# endif
1724 int F77_DUMMY_MAIN() { return 1; }
1725#endif
1726int
1727main ()
1728{
1729
1730 ;
1731 return 0;
1732}
1733_ACEOF
1734rm -f conftest.o conftest.obj
1735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1741 case $ac_file in
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1744 break;;
1745 esac
1746done
1747else
1748 echo "$as_me: failed program was:" >&5
1749cat conftest.$ac_ext >&5
1750{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1751echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1753fi
1754
1755rm -f conftest.$ac_cv_objext conftest.$ac_ext
1756fi
1757echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1758echo "${ECHO_T}$ac_cv_objext" >&6
1759OBJEXT=$ac_cv_objext
1760ac_objext=$OBJEXT
1761echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 cat >conftest.$ac_ext <<_ACEOF
1767#line $LINENO "configure"
1768#include "confdefs.h"
1769
1770#ifdef F77_DUMMY_MAIN
1771# ifdef __cplusplus
1772 extern "C"
1773# endif
1774 int F77_DUMMY_MAIN() { return 1; }
1775#endif
1776int
1777main ()
1778{
1779#ifndef __GNUC__
1780 choke me
1781#endif
1782
1783 ;
1784 return 0;
1785}
1786_ACEOF
1787rm -f conftest.$ac_objext
1788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); } &&
1793 { ac_try='test -s conftest.$ac_objext'
1794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 (eval $ac_try) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1799 ac_compiler_gnu=yes
1800else
1801 echo "$as_me: failed program was:" >&5
1802cat conftest.$ac_ext >&5
1803ac_compiler_gnu=no
1804fi
1805rm -f conftest.$ac_objext conftest.$ac_ext
1806ac_cv_c_compiler_gnu=$ac_compiler_gnu
1807
1808fi
1809echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1810echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1811GCC=`test $ac_compiler_gnu = yes && echo yes`
1812ac_test_CFLAGS=${CFLAGS+set}
1813ac_save_CFLAGS=$CFLAGS
1814CFLAGS="-g"
1815echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1816echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1817if test "${ac_cv_prog_cc_g+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 cat >conftest.$ac_ext <<_ACEOF
1821#line $LINENO "configure"
1822#include "confdefs.h"
1823
1824#ifdef F77_DUMMY_MAIN
1825# ifdef __cplusplus
1826 extern "C"
1827# endif
1828 int F77_DUMMY_MAIN() { return 1; }
1829#endif
1830int
1831main ()
1832{
1833
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838rm -f conftest.$ac_objext
1839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -s conftest.$ac_objext'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1850 ac_cv_prog_cc_g=yes
1851else
1852 echo "$as_me: failed program was:" >&5
1853cat conftest.$ac_ext >&5
1854ac_cv_prog_cc_g=no
1855fi
1856rm -f conftest.$ac_objext conftest.$ac_ext
1857fi
1858echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1859echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1860if test "$ac_test_CFLAGS" = set; then
1861 CFLAGS=$ac_save_CFLAGS
1862elif test $ac_cv_prog_cc_g = yes; then
1863 if test "$GCC" = yes; then
1864 CFLAGS="-g -O2"
1865 else
1866 CFLAGS="-g"
1867 fi
1868else
1869 if test "$GCC" = yes; then
1870 CFLAGS="-O2"
1871 else
1872 CFLAGS=
1873 fi
1874fi
1875# Some people use a C++ compiler to compile C. Since we use `exit',
1876# in C++ we need to declare it. In case someone uses the same compiler
1877# for both compiling C and C++ we need to have the C++ compiler decide
1878# the declaration of exit, since it's the most demanding environment.
1879cat >conftest.$ac_ext <<_ACEOF
1880@%:@ifndef __cplusplus
1881 choke me
1882@%:@endif
1883_ACEOF
1884rm -f conftest.$ac_objext
1885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 for ac_declaration in \
1897 ''\
1898 '#include <stdlib.h>' \
1899 'extern "C" void std::exit (int) throw (); using std::exit;' \
1900 'extern "C" void std::exit (int); using std::exit;' \
1901 'extern "C" void exit (int) throw ();' \
1902 'extern "C" void exit (int);' \
1903 'void exit (int);'
1904do
1905 cat >conftest.$ac_ext <<_ACEOF
1906#line $LINENO "configure"
1907#include "confdefs.h"
1908@%:@include <stdlib.h>
1909$ac_declaration
1910#ifdef F77_DUMMY_MAIN
1911# ifdef __cplusplus
1912 extern "C"
1913# endif
1914 int F77_DUMMY_MAIN() { return 1; }
1915#endif
1916int
1917main ()
1918{
1919exit (42);
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.$ac_objext
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 (eval $ac_try) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1936 :
1937else
1938 echo "$as_me: failed program was:" >&5
1939cat conftest.$ac_ext >&5
1940continue
1941fi
1942rm -f conftest.$ac_objext conftest.$ac_ext
1943 cat >conftest.$ac_ext <<_ACEOF
1944#line $LINENO "configure"
1945#include "confdefs.h"
1946$ac_declaration
1947#ifdef F77_DUMMY_MAIN
1948# ifdef __cplusplus
1949 extern "C"
1950# endif
1951 int F77_DUMMY_MAIN() { return 1; }
1952#endif
1953int
1954main ()
1955{
1956exit (42);
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.$ac_objext
1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 break
1974else
1975 echo "$as_me: failed program was:" >&5
1976cat conftest.$ac_ext >&5
1977fi
1978rm -f conftest.$ac_objext conftest.$ac_ext
1979done
1980rm -f conftest*
1981if test -n "$ac_declaration"; then
1982 echo '#ifdef __cplusplus' >>confdefs.h
1983 echo $ac_declaration >>confdefs.h
1984 echo '#endif' >>confdefs.h
1985fi
1986
1987else
1988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990fi
1991rm -f conftest.$ac_objext conftest.$ac_ext
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998ac_aux_dir=
1999for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000 if test -f $ac_dir/install-sh; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f $ac_dir/install.sh; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f $ac_dir/shtool; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2012 fi
2013done
2014if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2016echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2017 { (exit 1); exit 1; }; }
2018fi
2019ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2020ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2021ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2022
2023# Make sure we can run config.sub.
2024$ac_config_sub sun4 >/dev/null 2>&1 ||
2025 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2026echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2027 { (exit 1); exit 1; }; }
2028
2029echo "$as_me:$LINENO: checking build system type" >&5
2030echo $ECHO_N "checking build system type... $ECHO_C" >&6
2031if test "${ac_cv_build+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 ac_cv_build_alias=$build_alias
2035test -z "$ac_cv_build_alias" &&
2036 ac_cv_build_alias=`$ac_config_guess`
2037test -z "$ac_cv_build_alias" &&
2038 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2042 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2043echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2045
2046fi
2047echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048echo "${ECHO_T}$ac_cv_build" >&6
2049build=$ac_cv_build
2050build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2051build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2052build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2053
2054
2055echo "$as_me:$LINENO: checking host system type" >&5
2056echo $ECHO_N "checking host system type... $ECHO_C" >&6
2057if test "${ac_cv_host+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 ac_cv_host_alias=$host_alias
2061test -z "$ac_cv_host_alias" &&
2062 ac_cv_host_alias=$ac_cv_build_alias
2063ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2064 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2065echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2067
2068fi
2069echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070echo "${ECHO_T}$ac_cv_host" >&6
2071host=$ac_cv_host
2072host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2073host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2074host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2075
2076
2077
2078echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2079echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2080if test "${ac_cv_c_bigendian+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 # See if sys/param.h defines the BYTE_ORDER macro.
2084cat >conftest.$ac_ext <<_ACEOF
2085#line $LINENO "configure"
2086#include "confdefs.h"
2087#include <sys/types.h>
2088#include <sys/param.h>
2089
2090#ifdef F77_DUMMY_MAIN
2091# ifdef __cplusplus
2092 extern "C"
2093# endif
2094 int F77_DUMMY_MAIN() { return 1; }
2095#endif
2096int
2097main ()
2098{
2099#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2100 bogus endian macros
2101#endif
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -s conftest.$ac_objext'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2119 # It does; now see whether it defined to BIG_ENDIAN or not.
2120cat >conftest.$ac_ext <<_ACEOF
2121#line $LINENO "configure"
2122#include "confdefs.h"
2123#include <sys/types.h>
2124#include <sys/param.h>
2125
2126#ifdef F77_DUMMY_MAIN
2127# ifdef __cplusplus
2128 extern "C"
2129# endif
2130 int F77_DUMMY_MAIN() { return 1; }
2131#endif
2132int
2133main ()
2134{
2135#if BYTE_ORDER != BIG_ENDIAN
2136 not big endian
2137#endif
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_cv_c_bigendian=yes
2156else
2157 echo "$as_me: failed program was:" >&5
2158cat conftest.$ac_ext >&5
2159ac_cv_c_bigendian=no
2160fi
2161rm -f conftest.$ac_objext conftest.$ac_ext
2162else
2163 echo "$as_me: failed program was:" >&5
2164cat conftest.$ac_ext >&5
2165# It does not; compile a test program.
2166if test "$cross_compiling" = yes; then
2167 # try to guess the endianess by grep'ing values into an object file
2168 ac_cv_c_bigendian=unknown
2169 cat >conftest.$ac_ext <<_ACEOF
2170#line $LINENO "configure"
2171#include "confdefs.h"
2172short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2173short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2174void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2175short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2176short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2177void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2178#ifdef F77_DUMMY_MAIN
2179# ifdef __cplusplus
2180 extern "C"
2181# endif
2182 int F77_DUMMY_MAIN() { return 1; }
2183#endif
2184int
2185main ()
2186{
2187 _ascii (); _ebcdic ();
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2205 ac_cv_c_bigendian=yes
2206fi
2207if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2208 if test "$ac_cv_c_bigendian" = unknown; then
2209 ac_cv_c_bigendian=no
2210 else
2211 # finding both strings is unlikely to happen, but who knows?
2212 ac_cv_c_bigendian=unknown
2213 fi
2214fi
2215else
2216 echo "$as_me: failed program was:" >&5
2217cat conftest.$ac_ext >&5
2218fi
2219rm -f conftest.$ac_objext conftest.$ac_ext
2220else
2221 cat >conftest.$ac_ext <<_ACEOF
2222#line $LINENO "configure"
2223#include "confdefs.h"
2224int
2225main ()
2226{
2227 /* Are we little or big endian? From Harbison&Steele. */
2228 union
2229 {
2230 long l;
2231 char c[sizeof (long)];
2232 } u;
2233 u.l = 1;
2234 exit (u.c[sizeof (long) - 1] == 1);
2235}
2236_ACEOF
2237rm -f conftest$ac_exeext
2238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_c_bigendian=no
2249else
2250 echo "$as_me: program exited with status $ac_status" >&5
2251echo "$as_me: failed program was:" >&5
2252cat conftest.$ac_ext >&5
2253( exit $ac_status )
2254ac_cv_c_bigendian=yes
2255fi
2256rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2257fi
2258fi
2259rm -f conftest.$ac_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2262echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2263case $ac_cv_c_bigendian in
2264 yes)
2265
2266cat >>confdefs.h <<\_ACEOF
2267@%:@define WORDS_BIGENDIAN 1
2268_ACEOF
2269 ;;
2270 no)
2271 ;;
2272 *)
2273 { { echo "$as_me:$LINENO: error: unknown endianess
2274presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2275echo "$as_me: error: unknown endianess
2276presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2277 { (exit 1); exit 1; }; } ;;
2278esac
2279
2280
2281# Checks for programs.
2282ac_ext=c
2283ac_cpp='$CPP $CPPFLAGS'
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2288echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2289# On Suns, sometimes $CPP names a directory.
2290if test -n "$CPP" && test -d "$CPP"; then
2291 CPP=
2292fi
2293if test -z "$CPP"; then
2294 if test "${ac_cv_prog_CPP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 # Double quotes because CPP needs to be expanded
2298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2299 do
2300 ac_preproc_ok=false
2301for ac_c_preproc_warn_flag in '' yes
2302do
2303 # Use a header file that comes with gcc, so configuring glibc
2304 # with a fresh cross-compiler works.
2305 # On the NeXT, cc -E runs the code through the compiler's parser,
2306 # not just through cpp. "Syntax error" is here to catch this case.
2307 cat >conftest.$ac_ext <<_ACEOF
2308#line $LINENO "configure"
2309#include "confdefs.h"
2310@%:@include <assert.h>
2311 Syntax error
2312_ACEOF
2313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2315 ac_status=$?
2316 egrep -v '^ *\+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } >/dev/null; then
2321 if test -s conftest.err; then
2322 ac_cpp_err=$ac_c_preproc_warn_flag
2323 else
2324 ac_cpp_err=
2325 fi
2326else
2327 ac_cpp_err=yes
2328fi
2329if test -z "$ac_cpp_err"; then
2330 :
2331else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Broken: fails on valid input.
2335continue
2336fi
2337rm -f conftest.err conftest.$ac_ext
2338
2339 # OK, works on sane cases. Now check whether non-existent headers
2340 # can be detected and how.
2341 cat >conftest.$ac_ext <<_ACEOF
2342#line $LINENO "configure"
2343#include "confdefs.h"
2344@%:@include <ac_nonexistent.h>
2345_ACEOF
2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2348 ac_status=$?
2349 egrep -v '^ *\+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } >/dev/null; then
2354 if test -s conftest.err; then
2355 ac_cpp_err=$ac_c_preproc_warn_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359else
2360 ac_cpp_err=yes
2361fi
2362if test -z "$ac_cpp_err"; then
2363 # Broken: success on invalid input.
2364continue
2365else
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 # Passes both tests.
2369ac_preproc_ok=:
2370break
2371fi
2372rm -f conftest.err conftest.$ac_ext
2373
2374done
2375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376rm -f conftest.err conftest.$ac_ext
2377if $ac_preproc_ok; then
2378 break
2379fi
2380
2381 done
2382 ac_cv_prog_CPP=$CPP
2383
2384fi
2385 CPP=$ac_cv_prog_CPP
2386else
2387 ac_cv_prog_CPP=$CPP
2388fi
2389echo "$as_me:$LINENO: result: $CPP" >&5
2390echo "${ECHO_T}$CPP" >&6
2391ac_preproc_ok=false
2392for ac_c_preproc_warn_flag in '' yes
2393do
2394 # Use a header file that comes with gcc, so configuring glibc
2395 # with a fresh cross-compiler works.
2396 # On the NeXT, cc -E runs the code through the compiler's parser,
2397 # not just through cpp. "Syntax error" is here to catch this case.
2398 cat >conftest.$ac_ext <<_ACEOF
2399#line $LINENO "configure"
2400#include "confdefs.h"
2401@%:@include <assert.h>
2402 Syntax error
2403_ACEOF
2404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2406 ac_status=$?
2407 egrep -v '^ *\+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } >/dev/null; then
2412 if test -s conftest.err; then
2413 ac_cpp_err=$ac_c_preproc_warn_flag
2414 else
2415 ac_cpp_err=
2416 fi
2417else
2418 ac_cpp_err=yes
2419fi
2420if test -z "$ac_cpp_err"; then
2421 :
2422else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Broken: fails on valid input.
2426continue
2427fi
2428rm -f conftest.err conftest.$ac_ext
2429
2430 # OK, works on sane cases. Now check whether non-existent headers
2431 # can be detected and how.
2432 cat >conftest.$ac_ext <<_ACEOF
2433#line $LINENO "configure"
2434#include "confdefs.h"
2435@%:@include <ac_nonexistent.h>
2436_ACEOF
2437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2439 ac_status=$?
2440 egrep -v '^ *\+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } >/dev/null; then
2445 if test -s conftest.err; then
2446 ac_cpp_err=$ac_c_preproc_warn_flag
2447 else
2448 ac_cpp_err=
2449 fi
2450else
2451 ac_cpp_err=yes
2452fi
2453if test -z "$ac_cpp_err"; then
2454 # Broken: success on invalid input.
2455continue
2456else
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 # Passes both tests.
2460ac_preproc_ok=:
2461break
2462fi
2463rm -f conftest.err conftest.$ac_ext
2464
2465done
2466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2467rm -f conftest.err conftest.$ac_ext
2468if $ac_preproc_ok; then
2469 :
2470else
2471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2472echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2473 { (exit 1); exit 1; }; }
2474fi
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2485echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487if test "${ac_cv_prog_RANLIB+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 if test -n "$RANLIB"; then
2491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504done
2505done
2506
2507fi
2508fi
2509RANLIB=$ac_cv_prog_RANLIB
2510if test -n "$RANLIB"; then
2511 echo "$as_me:$LINENO: result: $RANLIB" >&5
2512echo "${ECHO_T}$RANLIB" >&6
2513else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516fi
2517
2518fi
2519if test -z "$ac_cv_prog_RANLIB"; then
2520 ac_ct_RANLIB=$RANLIB
2521 # Extract the first word of "ranlib", so it can be a program name with args.
2522set dummy ranlib; ac_word=$2
2523echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 if test -n "$ac_ct_RANLIB"; then
2529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_RANLIB="ranlib"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543done
2544
2545 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2546fi
2547fi
2548ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2549if test -n "$ac_ct_RANLIB"; then
2550 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2551echo "${ECHO_T}$ac_ct_RANLIB" >&6
2552else
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555fi
2556
2557 RANLIB=$ac_ct_RANLIB
2558else
2559 RANLIB="$ac_cv_prog_RANLIB"
2560fi
2561
2562# Find a good install program. We prefer a C program (faster),
2563# so one script is as good as another. But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# ./install, which can be erroneously created by make from ./install.sh.
2574echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2575echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2576if test -z "$INSTALL"; then
2577if test "${ac_cv_path_install+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 # Account for people who put trailing slashes in PATH elements.
2586case $as_dir/ in
2587 ./ | .// | /cC/* | \
2588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2607 break 3
2608 fi
2609 fi
2610 done
2611 done
2612 ;;
2613esac
2614done
2615
2616
2617fi
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. We don't cache a
2622 # path for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the path is relative.
2625 INSTALL=$ac_install_sh
2626 fi
2627fi
2628echo "$as_me:$LINENO: result: $INSTALL" >&5
2629echo "${ECHO_T}$INSTALL" >&6
2630
2631# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632# It thinks the first close brace ends the variable substitution.
2633test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2634
2635test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2636
2637test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2638
2639# Extract the first word of "ar", so it can be a program name with args.
2640set dummy ar; ac_word=$2
2641echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643if test "${ac_cv_path_AR+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 case $AR in
2647 [\\/]* | ?:[\\/]*)
2648 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2649 ;;
2650 *)
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
2663done
2664
2665 ;;
2666esac
2667fi
2668AR=$ac_cv_path_AR
2669
2670if test -n "$AR"; then
2671 echo "$as_me:$LINENO: result: $AR" >&5
2672echo "${ECHO_T}$AR" >&6
2673else
2674 echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6
2676fi
2677
2678for ac_prog in perl5 perl
2679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
2682echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684if test "${ac_cv_path_PERL+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 case $PERL in
2688 [\\/]* | ?:[\\/]*)
2689 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2690 ;;
2691 *)
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704done
2705
2706 ;;
2707esac
2708fi
2709PERL=$ac_cv_path_PERL
2710
2711if test -n "$PERL"; then
2712 echo "$as_me:$LINENO: result: $PERL" >&5
2713echo "${ECHO_T}$PERL" >&6
2714else
2715 echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6
2717fi
2718
2719 test -n "$PERL" && break
2720done
2721
2722
2723# Extract the first word of "ent", so it can be a program name with args.
2724set dummy ent; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_path_ENT+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 case $ENT in
2731 [\\/]* | ?:[\\/]*)
2732 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2733 ;;
2734 *)
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
2748
2749 ;;
2750esac
2751fi
2752ENT=$ac_cv_path_ENT
2753
2754if test -n "$ENT"; then
2755 echo "$as_me:$LINENO: result: $ENT" >&5
2756echo "${ECHO_T}$ENT" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762
2763for ac_prog in filepriv
2764do
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766set dummy $ac_prog; ac_word=$2
2767echo "$as_me:$LINENO: checking for $ac_word" >&5
2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769if test "${ac_cv_path_FILEPRIV+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772 case $FILEPRIV in
2773 [\\/]* | ?:[\\/]*)
2774 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
2775 ;;
2776 *)
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778as_dummy="/sbin:/usr/sbin"
2779for as_dir in $as_dummy
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790done
2791
2792 ;;
2793esac
2794fi
2795FILEPRIV=$ac_cv_path_FILEPRIV
2796
2797if test -n "$FILEPRIV"; then
2798 echo "$as_me:$LINENO: result: $FILEPRIV" >&5
2799echo "${ECHO_T}$FILEPRIV" >&6
2800else
2801 echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6
2803fi
2804
2805 test -n "$FILEPRIV" && break
2806done
2807test -n "$FILEPRIV" || FILEPRIV="true"
2808
2809# Extract the first word of "bash", so it can be a program name with args.
2810set dummy bash; ac_word=$2
2811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 case $TEST_MINUS_S_SH in
2817 [\\/]* | ?:[\\/]*)
2818 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2819 ;;
2820 *)
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834
2835 ;;
2836esac
2837fi
2838TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2839
2840if test -n "$TEST_MINUS_S_SH"; then
2841 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2842echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2843else
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846fi
2847
2848# Extract the first word of "ksh", so it can be a program name with args.
2849set dummy ksh; ac_word=$2
2850echo "$as_me:$LINENO: checking for $ac_word" >&5
2851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 case $TEST_MINUS_S_SH in
2856 [\\/]* | ?:[\\/]*)
2857 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2858 ;;
2859 *)
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874 ;;
2875esac
2876fi
2877TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2878
2879if test -n "$TEST_MINUS_S_SH"; then
2880 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2881echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2882else
2883 echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885fi
2886
2887# Extract the first word of "sh", so it can be a program name with args.
2888set dummy sh; ac_word=$2
2889echo "$as_me:$LINENO: checking for $ac_word" >&5
2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 case $TEST_MINUS_S_SH in
2895 [\\/]* | ?:[\\/]*)
2896 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2897 ;;
2898 *)
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910done
2911done
2912
2913 ;;
2914esac
2915fi
2916TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2917
2918if test -n "$TEST_MINUS_S_SH"; then
2919 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2920echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2921else
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924fi
2925
2926# Extract the first word of "sh", so it can be a program name with args.
2927set dummy sh; ac_word=$2
2928echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930if test "${ac_cv_path_SH+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 case $SH in
2934 [\\/]* | ?:[\\/]*)
2935 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2936 ;;
2937 *)
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950done
2951
2952 ;;
2953esac
2954fi
2955SH=$ac_cv_path_SH
2956
2957if test -n "$SH"; then
2958 echo "$as_me:$LINENO: result: $SH" >&5
2959echo "${ECHO_T}$SH" >&6
2960else
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965
2966# System features
2967# Check whether --enable-largefile or --disable-largefile was given.
2968if test "${enable_largefile+set}" = set; then
2969 enableval="$enable_largefile"
2970
2971fi;
2972if test "$enable_largefile" != no; then
2973
2974 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2975echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2976if test "${ac_cv_sys_largefile_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 ac_cv_sys_largefile_CC=no
2980 if test "$GCC" != yes; then
2981 ac_save_CC=$CC
2982 while :; do
2983 # IRIX 6.2 and later do not support large files by default,
2984 # so use the C compiler's -n32 option if that helps.
2985 cat >conftest.$ac_ext <<_ACEOF
2986#line $LINENO "configure"
2987#include "confdefs.h"
2988@%:@include <sys/types.h>
2989 /* Check that off_t can represent 2**63 - 1 correctly.
2990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2991 since some C++ compilers masquerading as C compilers
2992 incorrectly reject 9223372036854775807. */
2993@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2995 && LARGE_OFF_T % 2147483647 == 1)
2996 ? 1 : -1];
2997#ifdef F77_DUMMY_MAIN
2998# ifdef __cplusplus
2999 extern "C"
3000# endif
3001 int F77_DUMMY_MAIN() { return 1; }
3002#endif
3003int
3004main ()
3005{
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011 rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 (eval $ac_try) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3023 break
3024else
3025 echo "$as_me: failed program was:" >&5
3026cat conftest.$ac_ext >&5
3027fi
3028rm -f conftest.$ac_objext
3029 CC="$CC -n32"
3030 rm -f conftest.$ac_objext
3031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_cv_sys_largefile_CC=' -n32'; break
3043else
3044 echo "$as_me: failed program was:" >&5
3045cat conftest.$ac_ext >&5
3046fi
3047rm -f conftest.$ac_objext
3048 break
3049 done
3050 CC=$ac_save_CC
3051 rm -f conftest.$ac_ext
3052 fi
3053fi
3054echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3055echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3056 if test "$ac_cv_sys_largefile_CC" != no; then
3057 CC=$CC$ac_cv_sys_largefile_CC
3058 fi
3059
3060 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3061echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3062if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 while :; do
3066 ac_cv_sys_file_offset_bits=no
3067 cat >conftest.$ac_ext <<_ACEOF
3068#line $LINENO "configure"
3069#include "confdefs.h"
3070@%:@include <sys/types.h>
3071 /* Check that off_t can represent 2**63 - 1 correctly.
3072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3073 since some C++ compilers masquerading as C compilers
3074 incorrectly reject 9223372036854775807. */
3075@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3077 && LARGE_OFF_T % 2147483647 == 1)
3078 ? 1 : -1];
3079#ifdef F77_DUMMY_MAIN
3080# ifdef __cplusplus
3081 extern "C"
3082# endif
3083 int F77_DUMMY_MAIN() { return 1; }
3084#endif
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 break
3106else
3107 echo "$as_me: failed program was:" >&5
3108cat conftest.$ac_ext >&5
3109fi
3110rm -f conftest.$ac_objext conftest.$ac_ext
3111 cat >conftest.$ac_ext <<_ACEOF
3112#line $LINENO "configure"
3113#include "confdefs.h"
3114@%:@define _FILE_OFFSET_BITS 64
3115@%:@include <sys/types.h>
3116 /* Check that off_t can represent 2**63 - 1 correctly.
3117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3118 since some C++ compilers masquerading as C compilers
3119 incorrectly reject 9223372036854775807. */
3120@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3122 && LARGE_OFF_T % 2147483647 == 1)
3123 ? 1 : -1];
3124#ifdef F77_DUMMY_MAIN
3125# ifdef __cplusplus
3126 extern "C"
3127# endif
3128 int F77_DUMMY_MAIN() { return 1; }
3129#endif
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_sys_file_offset_bits=64; break
3151else
3152 echo "$as_me: failed program was:" >&5
3153cat conftest.$ac_ext >&5
3154fi
3155rm -f conftest.$ac_objext conftest.$ac_ext
3156 break
3157done
3158fi
3159echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3160echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3161if test "$ac_cv_sys_file_offset_bits" != no; then
3162
3163cat >>confdefs.h <<_ACEOF
3164@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3165_ACEOF
3166
3167fi
3168rm -f conftest*
3169 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3170echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3171if test "${ac_cv_sys_large_files+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 while :; do
3175 ac_cv_sys_large_files=no
3176 cat >conftest.$ac_ext <<_ACEOF
3177#line $LINENO "configure"
3178#include "confdefs.h"
3179@%:@include <sys/types.h>
3180 /* Check that off_t can represent 2**63 - 1 correctly.
3181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3182 since some C++ compilers masquerading as C compilers
3183 incorrectly reject 9223372036854775807. */
3184@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3186 && LARGE_OFF_T % 2147483647 == 1)
3187 ? 1 : -1];
3188#ifdef F77_DUMMY_MAIN
3189# ifdef __cplusplus
3190 extern "C"
3191# endif
3192 int F77_DUMMY_MAIN() { return 1; }
3193#endif
3194int
3195main ()
3196{
3197
3198 ;
3199 return 0;
3200}
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -s conftest.$ac_objext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 break
3215else
3216 echo "$as_me: failed program was:" >&5
3217cat conftest.$ac_ext >&5
3218fi
3219rm -f conftest.$ac_objext conftest.$ac_ext
3220 cat >conftest.$ac_ext <<_ACEOF
3221#line $LINENO "configure"
3222#include "confdefs.h"
3223@%:@define _LARGE_FILES 1
3224@%:@include <sys/types.h>
3225 /* Check that off_t can represent 2**63 - 1 correctly.
3226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3227 since some C++ compilers masquerading as C compilers
3228 incorrectly reject 9223372036854775807. */
3229@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3231 && LARGE_OFF_T % 2147483647 == 1)
3232 ? 1 : -1];
3233#ifdef F77_DUMMY_MAIN
3234# ifdef __cplusplus
3235 extern "C"
3236# endif
3237 int F77_DUMMY_MAIN() { return 1; }
3238#endif
3239int
3240main ()
3241{
3242
3243 ;
3244 return 0;
3245}
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_sys_large_files=1; break
3260else
3261 echo "$as_me: failed program was:" >&5
3262cat conftest.$ac_ext >&5
3263fi
3264rm -f conftest.$ac_objext conftest.$ac_ext
3265 break
3266done
3267fi
3268echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3269echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3270if test "$ac_cv_sys_large_files" != no; then
3271
3272cat >>confdefs.h <<_ACEOF
3273@%:@define _LARGE_FILES $ac_cv_sys_large_files
3274_ACEOF
3275
3276fi
3277rm -f conftest*
3278fi
3279
3280
3281if test -z "$AR" ; then
3282 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3283echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3284 { (exit 1); exit 1; }; }
3285fi
3286
3287# Use LOGIN_PROGRAM from environment if possible
3288if test ! -z "$LOGIN_PROGRAM" ; then
3289 cat >>confdefs.h <<_ACEOF
3290@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3291_ACEOF
3292
3293else
3294 # Search for login
3295 # Extract the first word of "login", so it can be a program name with args.
3296set dummy login; ac_word=$2
3297echo "$as_me:$LINENO: checking for $ac_word" >&5
3298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302 case $LOGIN_PROGRAM_FALLBACK in
3303 [\\/]* | ?:[\\/]*)
3304 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3305 ;;
3306 *)
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319done
3320
3321 ;;
3322esac
3323fi
3324LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3325
3326if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3327 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3328echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3329else
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
3333
3334 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3335 cat >>confdefs.h <<_ACEOF
3336@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3337_ACEOF
3338
3339 fi
3340fi
3341
3342if test -z "$LD" ; then
3343 LD=$CC
3344fi
3345
3346
3347echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3348echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3349if test "${ac_cv_prog_cc_stdc+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352 ac_cv_prog_cc_stdc=no
3353ac_save_CC=$CC
3354cat >conftest.$ac_ext <<_ACEOF
3355#line $LINENO "configure"
3356#include "confdefs.h"
3357#include <stdarg.h>
3358#include <stdio.h>
3359#include <sys/types.h>
3360#include <sys/stat.h>
3361/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3362struct buf { int x; };
3363FILE * (*rcsopen) (struct buf *, struct stat *, int);
3364static char *e (p, i)
3365 char **p;
3366 int i;
3367{
3368 return p[i];
3369}
3370static char *f (char * (*g) (char **, int), char **p, ...)
3371{
3372 char *s;
3373 va_list v;
3374 va_start (v,p);
3375 s = g (p, va_arg (v,int));
3376 va_end (v);
3377 return s;
3378}
3379int test (int i, double x);
3380struct s1 {int (*f) (int a);};
3381struct s2 {int (*f) (double a);};
3382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3383int argc;
3384char **argv;
3385#ifdef F77_DUMMY_MAIN
3386# ifdef __cplusplus
3387 extern "C"
3388# endif
3389 int F77_DUMMY_MAIN() { return 1; }
3390#endif
3391int
3392main ()
3393{
3394return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399# Don't try gcc -ansi; that turns off useful extensions and
3400# breaks some systems' header files.
3401# AIX -qlanglvl=ansi
3402# Ultrix and OSF/1 -std1
3403# HP-UX 10.20 and later -Ae
3404# HP-UX older versions -Aa -D_HPUX_SOURCE
3405# SVR4 -Xc -D__EXTENSIONS__
3406for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3407do
3408 CC="$ac_save_CC $ac_arg"
3409 rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_prog_cc_stdc=$ac_arg
3422break
3423else
3424 echo "$as_me: failed program was:" >&5
3425cat conftest.$ac_ext >&5
3426fi
3427rm -f conftest.$ac_objext
3428done
3429rm -f conftest.$ac_ext conftest.$ac_objext
3430CC=$ac_save_CC
3431
3432fi
3433
3434case "x$ac_cv_prog_cc_stdc" in
3435 x|xno)
3436 echo "$as_me:$LINENO: result: none needed" >&5
3437echo "${ECHO_T}none needed" >&6 ;;
3438 *)
3439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3440echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3441 CC="$CC $ac_cv_prog_cc_stdc" ;;
3442esac
3443
3444echo "$as_me:$LINENO: checking for inline" >&5
3445echo $ECHO_N "checking for inline... $ECHO_C" >&6
3446if test "${ac_cv_c_inline+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 ac_cv_c_inline=no
3450for ac_kw in inline __inline__ __inline; do
3451 cat >conftest.$ac_ext <<_ACEOF
3452#line $LINENO "configure"
3453#include "confdefs.h"
3454#ifndef __cplusplus
3455static $ac_kw int static_foo () {return 0; }
3456$ac_kw int foo () {return 0; }
3457#endif
3458
3459_ACEOF
3460rm -f conftest.$ac_objext
3461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_c_inline=$ac_kw; break
3473else
3474 echo "$as_me: failed program was:" >&5
3475cat conftest.$ac_ext >&5
3476fi
3477rm -f conftest.$ac_objext conftest.$ac_ext
3478done
3479
3480fi
3481echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3482echo "${ECHO_T}$ac_cv_c_inline" >&6
3483case $ac_cv_c_inline in
3484 inline | yes) ;;
3485 no)
3486cat >>confdefs.h <<\_ACEOF
3487@%:@define inline
3488_ACEOF
3489 ;;
3490 *) cat >>confdefs.h <<_ACEOF
3491@%:@define inline $ac_cv_c_inline
3492_ACEOF
3493 ;;
3494esac
3495
3496if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3497 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3498fi
3499
3500# Check for some target-specific stuff
3501case "$host" in
3502*-*-aix*)
3503 AFS_LIBS="-lld"
3504 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3505 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3506 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3507 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3508echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3509 saved_LDFLAGS="$LDFLAGS"
3510 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3511 cat >conftest.$ac_ext <<_ACEOF
3512#line $LINENO "configure"
3513#include "confdefs.h"
3514
3515#ifdef F77_DUMMY_MAIN
3516# ifdef __cplusplus
3517 extern "C"
3518# endif
3519 int F77_DUMMY_MAIN() { return 1; }
3520#endif
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext conftest$ac_exeext
3530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest$ac_exeext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541
3542 echo "$as_me:$LINENO: result: yes" >&5
3543echo "${ECHO_T}yes" >&6
3544 blibpath="/usr/lib:/lib:/usr/local/lib"
3545
3546else
3547 echo "$as_me: failed program was:" >&5
3548cat conftest.$ac_ext >&5
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551
3552fi
3553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3554 LDFLAGS="$saved_LDFLAGS"
3555 fi
3556 echo "$as_me:$LINENO: checking for authenticate" >&5
3557echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3558if test "${ac_cv_func_authenticate+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 cat >conftest.$ac_ext <<_ACEOF
3562#line $LINENO "configure"
3563#include "confdefs.h"
3564/* System header to define __stub macros and hopefully few prototypes,
3565 which can conflict with char authenticate (); below. */
3566#include <assert.h>
3567/* Override any gcc2 internal prototype to avoid an error. */
3568#ifdef __cplusplus
3569extern "C"
3570#endif
3571/* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3573char authenticate ();
3574char (*f) ();
3575
3576#ifdef F77_DUMMY_MAIN
3577# ifdef __cplusplus
3578 extern "C"
3579# endif
3580 int F77_DUMMY_MAIN() { return 1; }
3581#endif
3582int
3583main ()
3584{
3585/* The GNU C library defines this for functions which it implements
3586 to always fail with ENOSYS. Some functions are actually named
3587 something starting with __ and the normal name is an alias. */
3588#if defined (__stub_authenticate) || defined (__stub___authenticate)
3589choke me
3590#else
3591f = authenticate;
3592#endif
3593
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600 (eval $ac_link) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -s conftest$ac_exeext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_func_authenticate=yes
3611else
3612 echo "$as_me: failed program was:" >&5
3613cat conftest.$ac_ext >&5
3614ac_cv_func_authenticate=no
3615fi
3616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3617fi
3618echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3619echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3620if test $ac_cv_func_authenticate = yes; then
3621 cat >>confdefs.h <<\_ACEOF
3622@%:@define WITH_AIXAUTHENTICATE 1
3623_ACEOF
3624
3625fi
3626
3627 cat >>confdefs.h <<\_ACEOF
3628@%:@define BROKEN_GETADDRINFO 1
3629_ACEOF
3630
3631 cat >>confdefs.h <<\_ACEOF
3632@%:@define BROKEN_REALPATH 1
3633_ACEOF
3634
3635 cat >>confdefs.h <<\_ACEOF
3636@%:@define DISABLE_LASTLOG 1
680cee3b 3637_ACEOF
3638
3639 cat >>confdefs.h <<\_ACEOF
3640@%:@define LOGIN_NEEDS_UTMPX 1
700318f3 3641_ACEOF
3642
3643 ;;
3644*-*-cygwin*)
3645 LIBS="$LIBS /usr/lib/textmode.o"
3646 cat >>confdefs.h <<\_ACEOF
3647@%:@define HAVE_CYGWIN 1
3648_ACEOF
3649
3650 cat >>confdefs.h <<\_ACEOF
3651@%:@define USE_PIPES 1
3652_ACEOF
3653
3654 cat >>confdefs.h <<\_ACEOF
3655@%:@define DISABLE_SHADOW 1
3656_ACEOF
3657
3658 cat >>confdefs.h <<\_ACEOF
3659@%:@define IPV4_DEFAULT 1
3660_ACEOF
3661
3662 cat >>confdefs.h <<\_ACEOF
3663@%:@define IP_TOS_IS_BROKEN 1
3664_ACEOF
3665
3666 cat >>confdefs.h <<\_ACEOF
3667@%:@define NO_X11_UNIX_SOCKETS 1
680cee3b 3668_ACEOF
3669
3670 cat >>confdefs.h <<\_ACEOF
3671@%:@define BROKEN_FD_PASSING 1
f5799ae1 3672_ACEOF
3673
3674 cat >>confdefs.h <<\_ACEOF
3675@%:@define SETGROUPS_NOOP 1
700318f3 3676_ACEOF
3677
3678 ;;
3679*-*-dgux*)
3680 cat >>confdefs.h <<\_ACEOF
3681@%:@define IP_TOS_IS_BROKEN 1
3682_ACEOF
3683
3684 ;;
3685*-*-darwin*)
3686 cat >>confdefs.h <<\_ACEOF
3687@%:@define BROKEN_GETADDRINFO 1
3688_ACEOF
3689
3690 ;;
3691*-*-hpux10.26)
3692 if test -z "$GCC"; then
3693 CFLAGS="$CFLAGS -Ae"
3694 fi
3695 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3696 IPADDR_IN_DISPLAY=yes
3697 cat >>confdefs.h <<\_ACEOF
3698@%:@define HAVE_SECUREWARE 1
3699_ACEOF
3700
3701 cat >>confdefs.h <<\_ACEOF
3702@%:@define USE_PIPES 1
3703_ACEOF
3704
3705 cat >>confdefs.h <<\_ACEOF
3706@%:@define LOGIN_NO_ENDOPT 1
3707_ACEOF
3708
3709 cat >>confdefs.h <<\_ACEOF
3710@%:@define LOGIN_NEEDS_UTMPX 1
3711_ACEOF
3712
3713 cat >>confdefs.h <<\_ACEOF
3714@%:@define DISABLE_SHADOW 1
3715_ACEOF
3716
3717 cat >>confdefs.h <<\_ACEOF
3718@%:@define DISABLE_UTMP 1
3719_ACEOF
3720
3721 cat >>confdefs.h <<\_ACEOF
3722@%:@define SPT_TYPE SPT_PSTAT
3723_ACEOF
3724
3725 LIBS="$LIBS -lxnet -lsec -lsecpw"
3726 disable_ptmx_check=yes
3727 ;;
3728*-*-hpux10*)
3729 if test -z "$GCC"; then
3730 CFLAGS="$CFLAGS -Ae"
3731 fi
3732 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3733 IPADDR_IN_DISPLAY=yes
3734 cat >>confdefs.h <<\_ACEOF
3735@%:@define USE_PIPES 1
3736_ACEOF
3737
3738 cat >>confdefs.h <<\_ACEOF
3739@%:@define LOGIN_NO_ENDOPT 1
3740_ACEOF
3741
3742 cat >>confdefs.h <<\_ACEOF
3743@%:@define LOGIN_NEEDS_UTMPX 1
3744_ACEOF
3745
3746 cat >>confdefs.h <<\_ACEOF
3747@%:@define DISABLE_SHADOW 1
3748_ACEOF
3749
3750 cat >>confdefs.h <<\_ACEOF
3751@%:@define DISABLE_UTMP 1
3752_ACEOF
3753
3754 cat >>confdefs.h <<\_ACEOF
3755@%:@define SPT_TYPE SPT_PSTAT
3756_ACEOF
3757
3758 LIBS="$LIBS -lxnet -lsec"
3759 ;;
3760*-*-hpux11*)
3761 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3762 IPADDR_IN_DISPLAY=yes
3763 cat >>confdefs.h <<\_ACEOF
3764@%:@define PAM_SUN_CODEBASE 1
3765_ACEOF
3766
3767 cat >>confdefs.h <<\_ACEOF
3768@%:@define USE_PIPES 1
3769_ACEOF
3770
3771 cat >>confdefs.h <<\_ACEOF
3772@%:@define LOGIN_NO_ENDOPT 1
3773_ACEOF
3774
3775 cat >>confdefs.h <<\_ACEOF
3776@%:@define LOGIN_NEEDS_UTMPX 1
3777_ACEOF
3778
3779 cat >>confdefs.h <<\_ACEOF
3780@%:@define DISABLE_SHADOW 1
3781_ACEOF
3782
3783 cat >>confdefs.h <<\_ACEOF
3784@%:@define DISABLE_UTMP 1
3785_ACEOF
3786
3787 cat >>confdefs.h <<\_ACEOF
3788@%:@define SPT_TYPE SPT_PSTAT
3789_ACEOF
3790
3791 LIBS="$LIBS -lxnet -lsec"
3792 ;;
3793*-*-irix5*)
3794 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3795 LDFLAGS="$LDFLAGS"
3796 PATH="$PATH:/usr/etc"
3797 cat >>confdefs.h <<\_ACEOF
3798@%:@define BROKEN_INET_NTOA 1
3799_ACEOF
3800
3801 cat >>confdefs.h <<\_ACEOF
3802@%:@define WITH_ABBREV_NO_TTY 1
3803_ACEOF
3804
3805 ;;
3806*-*-irix6*)
3807 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3808 LDFLAGS="$LDFLAGS"
3809 PATH="$PATH:/usr/etc"
3810 cat >>confdefs.h <<\_ACEOF
3811@%:@define WITH_IRIX_ARRAY 1
3812_ACEOF
3813
3814 cat >>confdefs.h <<\_ACEOF
3815@%:@define WITH_IRIX_PROJECT 1
3816_ACEOF
3817
3818 cat >>confdefs.h <<\_ACEOF
3819@%:@define WITH_IRIX_AUDIT 1
3820_ACEOF
3821
3822 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
3823echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
3824if test "${ac_cv_func_jlimit_startjob+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 cat >conftest.$ac_ext <<_ACEOF
3828#line $LINENO "configure"
3829#include "confdefs.h"
3830/* System header to define __stub macros and hopefully few prototypes,
3831 which can conflict with char jlimit_startjob (); below. */
3832#include <assert.h>
3833/* Override any gcc2 internal prototype to avoid an error. */
3834#ifdef __cplusplus
3835extern "C"
3836#endif
3837/* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3839char jlimit_startjob ();
3840char (*f) ();
3841
3842#ifdef F77_DUMMY_MAIN
3843# ifdef __cplusplus
3844 extern "C"
3845# endif
3846 int F77_DUMMY_MAIN() { return 1; }
3847#endif
3848int
3849main ()
3850{
3851/* The GNU C library defines this for functions which it implements
3852 to always fail with ENOSYS. Some functions are actually named
3853 something starting with __ and the normal name is an alias. */
3854#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
3855choke me
3856#else
3857f = jlimit_startjob;
3858#endif
3859
3860 ;
3861 return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext conftest$ac_exeext
3865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866 (eval $ac_link) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -s conftest$ac_exeext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 ac_cv_func_jlimit_startjob=yes
3877else
3878 echo "$as_me: failed program was:" >&5
3879cat conftest.$ac_ext >&5
3880ac_cv_func_jlimit_startjob=no
3881fi
3882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3883fi
3884echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
3885echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
3886if test $ac_cv_func_jlimit_startjob = yes; then
3887 cat >>confdefs.h <<\_ACEOF
3888@%:@define WITH_IRIX_JOBS 1
3889_ACEOF
3890
3891fi
3892
3893 cat >>confdefs.h <<\_ACEOF
3894@%:@define BROKEN_INET_NTOA 1
3895_ACEOF
3896
3897 cat >>confdefs.h <<\_ACEOF
3898@%:@define WITH_ABBREV_NO_TTY 1
3899_ACEOF
3900
3901 ;;
3902*-*-linux*)
3903 no_dev_ptmx=1
3904 check_for_libcrypt_later=1
3905 cat >>confdefs.h <<\_ACEOF
3906@%:@define DONT_TRY_OTHER_AF 1
3907_ACEOF
3908
3909 cat >>confdefs.h <<\_ACEOF
3910@%:@define PAM_TTY_KLUDGE 1
3911_ACEOF
3912
3913 inet6_default_4in6=yes
3914 ;;
3915mips-sony-bsd|mips-sony-newsos4)
3916 cat >>confdefs.h <<\_ACEOF
3917@%:@define HAVE_NEWS4 1
3918_ACEOF
3919
3920 SONY=1
3921 ;;
3922*-*-netbsd*)
3923 need_dash_r=1
3924 ;;
3925*-*-freebsd*)
3926 check_for_libcrypt_later=1
3927 ;;
3928*-next-*)
3929 conf_lastlog_location="/usr/adm/lastlog"
3930 conf_utmp_location=/etc/utmp
3931 conf_wtmp_location=/usr/adm/wtmp
3932 MAIL=/usr/spool/mail
3933 cat >>confdefs.h <<\_ACEOF
3934@%:@define HAVE_NEXT 1
3935_ACEOF
3936
3937 cat >>confdefs.h <<\_ACEOF
3938@%:@define BROKEN_REALPATH 1
3939_ACEOF
3940
3941 cat >>confdefs.h <<\_ACEOF
3942@%:@define USE_PIPES 1
3943_ACEOF
3944
3945 cat >>confdefs.h <<\_ACEOF
3946@%:@define BROKEN_SAVED_UIDS 1
3947_ACEOF
3948
3949 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3950 CFLAGS="$CFLAGS"
3951 ;;
3952*-*-solaris*)
3953 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3954 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3955 need_dash_r=1
3956 cat >>confdefs.h <<\_ACEOF
3957@%:@define PAM_SUN_CODEBASE 1
3958_ACEOF
3959
3960 cat >>confdefs.h <<\_ACEOF
3961@%:@define LOGIN_NEEDS_UTMPX 1
3962_ACEOF
3963
3964 cat >>confdefs.h <<\_ACEOF
3965@%:@define LOGIN_NEEDS_TERM 1
3966_ACEOF
3967
3968 cat >>confdefs.h <<\_ACEOF
3969@%:@define PAM_TTY_KLUDGE 1
3970_ACEOF
3971
3972 # hardwire lastlog location (can't detect it on some versions)
3973 conf_lastlog_location="/var/adm/lastlog"
3974 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3975echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
3976 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3977 if test "$sol2ver" -ge 8; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 cat >>confdefs.h <<\_ACEOF
3981@%:@define DISABLE_UTMP 1
3982_ACEOF
3983
3984 cat >>confdefs.h <<\_ACEOF
3985@%:@define DISABLE_WTMP 1
3986_ACEOF
3987
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991 fi
3992 ;;
3993*-*-sunos4*)
3994 CPPFLAGS="$CPPFLAGS -DSUNOS4"
3995
3996for ac_func in getpwanam
3997do
3998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3999echo "$as_me:$LINENO: checking for $ac_func" >&5
4000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4001if eval "test \"\${$as_ac_var+set}\" = set"; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 cat >conftest.$ac_ext <<_ACEOF
4005#line $LINENO "configure"
4006#include "confdefs.h"
4007/* System header to define __stub macros and hopefully few prototypes,
4008 which can conflict with char $ac_func (); below. */
4009#include <assert.h>
4010/* Override any gcc2 internal prototype to avoid an error. */
4011#ifdef __cplusplus
4012extern "C"
4013#endif
4014/* We use char because int might match the return type of a gcc2
4015 builtin and then its argument prototype would still apply. */
4016char $ac_func ();
4017char (*f) ();
4018
4019#ifdef F77_DUMMY_MAIN
4020# ifdef __cplusplus
4021 extern "C"
4022# endif
4023 int F77_DUMMY_MAIN() { return 1; }
4024#endif
4025int
4026main ()
4027{
4028/* The GNU C library defines this for functions which it implements
4029 to always fail with ENOSYS. Some functions are actually named
4030 something starting with __ and the normal name is an alias. */
4031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4032choke me
4033#else
4034f = $ac_func;
4035#endif
4036
4037 ;
4038 return 0;
4039}
4040_ACEOF
4041rm -f conftest.$ac_objext conftest$ac_exeext
4042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4043 (eval $ac_link) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_var=yes"
4054else
4055 echo "$as_me: failed program was:" >&5
4056cat conftest.$ac_ext >&5
4057eval "$as_ac_var=no"
4058fi
4059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4060fi
4061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4066_ACEOF
4067
4068fi
4069done
4070
4071 cat >>confdefs.h <<\_ACEOF
4072@%:@define PAM_SUN_CODEBASE 1
4073_ACEOF
4074
4075 conf_utmp_location=/etc/utmp
4076 conf_wtmp_location=/var/adm/wtmp
4077 conf_lastlog_location=/var/adm/lastlog
4078 cat >>confdefs.h <<\_ACEOF
4079@%:@define USE_PIPES 1
4080_ACEOF
4081
4082 ;;
4083*-ncr-sysv*)
4084 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4085 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4086 LIBS="$LIBS -lc89"
4087 cat >>confdefs.h <<\_ACEOF
4088@%:@define USE_PIPES 1
4089_ACEOF
4090
4091 ;;
4092*-sni-sysv*)
4093 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4094 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4095 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4096 IPADDR_IN_DISPLAY=yes
4097 cat >>confdefs.h <<\_ACEOF
4098@%:@define USE_PIPES 1
4099_ACEOF
4100
4101 cat >>confdefs.h <<\_ACEOF
4102@%:@define IP_TOS_IS_BROKEN 1
4103_ACEOF
4104
4105 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4106 # Attention: always take care to bind libsocket and libnsl before libc,
4107 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4108 ;;
4109*-*-sysv4.2*)
4110 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4111 LDFLAGS="$LDFLAGS -L/usr/local/lib"
700318f3 4112 cat >>confdefs.h <<\_ACEOF
4113@%:@define USE_PIPES 1
4114_ACEOF
4115
4116 ;;
4117*-*-sysv5*)
4118 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4119 LDFLAGS="$LDFLAGS -L/usr/local/lib"
700318f3 4120 cat >>confdefs.h <<\_ACEOF
4121@%:@define USE_PIPES 1
4122_ACEOF
4123
4124 ;;
4125*-*-sysv*)
4126 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4127 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4128 ;;
4129*-*-sco3.2v4*)
4130 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4131 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4132 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
700318f3 4133 RANLIB=true
4134 no_dev_ptmx=1
4135 cat >>confdefs.h <<\_ACEOF
4136@%:@define BROKEN_SYS_TERMIO_H 1
4137_ACEOF
4138
4139 cat >>confdefs.h <<\_ACEOF
4140@%:@define USE_PIPES 1
4141_ACEOF
4142
4143 cat >>confdefs.h <<\_ACEOF
4144@%:@define HAVE_SECUREWARE 1
4145_ACEOF
4146
4147 cat >>confdefs.h <<\_ACEOF
4148@%:@define DISABLE_SHADOW 1
4149_ACEOF
4150
4151 cat >>confdefs.h <<\_ACEOF
4152@%:@define BROKEN_SAVED_UIDS 1
4153_ACEOF
4154
4155
4156
4157for ac_func in getluid setluid
4158do
4159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4160echo "$as_me:$LINENO: checking for $ac_func" >&5
4161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4162if eval "test \"\${$as_ac_var+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165 cat >conftest.$ac_ext <<_ACEOF
4166#line $LINENO "configure"
4167#include "confdefs.h"
4168/* System header to define __stub macros and hopefully few prototypes,
4169 which can conflict with char $ac_func (); below. */
4170#include <assert.h>
4171/* Override any gcc2 internal prototype to avoid an error. */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175/* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177char $ac_func ();
4178char (*f) ();
4179
4180#ifdef F77_DUMMY_MAIN
4181# ifdef __cplusplus
4182 extern "C"
4183# endif
4184 int F77_DUMMY_MAIN() { return 1; }
4185#endif
4186int
4187main ()
4188{
4189/* The GNU C library defines this for functions which it implements
4190 to always fail with ENOSYS. Some functions are actually named
4191 something starting with __ and the normal name is an alias. */
4192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4193choke me
4194#else
4195f = $ac_func;
4196#endif
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 eval "$as_ac_var=yes"
4215else
4216 echo "$as_me: failed program was:" >&5
4217cat conftest.$ac_ext >&5
4218eval "$as_ac_var=no"
4219fi
4220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4221fi
4222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4224if test `eval echo '${'$as_ac_var'}'` = yes; then
4225 cat >>confdefs.h <<_ACEOF
4226@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4227_ACEOF
4228
4229fi
4230done
4231
4232 MANTYPE=man
4233 do_sco3_extra_lib_check=yes
4234 ;;
4235*-*-sco3.2v5*)
4236 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4237 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4238 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4239 no_dev_ptmx=1
700318f3 4240 cat >>confdefs.h <<\_ACEOF
4241@%:@define USE_PIPES 1
4242_ACEOF
4243
4244 cat >>confdefs.h <<\_ACEOF
4245@%:@define HAVE_SECUREWARE 1
4246_ACEOF
4247
4248 cat >>confdefs.h <<\_ACEOF
4249@%:@define DISABLE_SHADOW 1
4250_ACEOF
4251
680cee3b 4252 cat >>confdefs.h <<\_ACEOF
4253@%:@define BROKEN_FD_PASSING 1
4254_ACEOF
4255
700318f3 4256
4257
4258for ac_func in getluid setluid
4259do
4260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4261echo "$as_me:$LINENO: checking for $ac_func" >&5
4262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4263if eval "test \"\${$as_ac_var+set}\" = set"; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266 cat >conftest.$ac_ext <<_ACEOF
4267#line $LINENO "configure"
4268#include "confdefs.h"
4269/* System header to define __stub macros and hopefully few prototypes,
4270 which can conflict with char $ac_func (); below. */
4271#include <assert.h>
4272/* Override any gcc2 internal prototype to avoid an error. */
4273#ifdef __cplusplus
4274extern "C"
4275#endif
4276/* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4278char $ac_func ();
4279char (*f) ();
4280
4281#ifdef F77_DUMMY_MAIN
4282# ifdef __cplusplus
4283 extern "C"
4284# endif
4285 int F77_DUMMY_MAIN() { return 1; }
4286#endif
4287int
4288main ()
4289{
4290/* The GNU C library defines this for functions which it implements
4291 to always fail with ENOSYS. Some functions are actually named
4292 something starting with __ and the normal name is an alias. */
4293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4294choke me
4295#else
4296f = $ac_func;
4297#endif
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 eval "$as_ac_var=yes"
4316else
4317 echo "$as_me: failed program was:" >&5
4318cat conftest.$ac_ext >&5
4319eval "$as_ac_var=no"
4320fi
4321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4322fi
4323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4325if test `eval echo '${'$as_ac_var'}'` = yes; then
4326 cat >>confdefs.h <<_ACEOF
4327@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4328_ACEOF
4329
4330fi
4331done
4332
4333 MANTYPE=man
4334 ;;
4335*-*-unicos*)
4336 no_libsocket=1
4337 no_libnsl=1
4338 cat >>confdefs.h <<\_ACEOF
4339@%:@define USE_PIPES 1
680cee3b 4340_ACEOF
4341
4342 cat >>confdefs.h <<\_ACEOF
4343@%:@define BROKEN_FD_PASSING 1
700318f3 4344_ACEOF
4345
4346 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
4347 LIBS="$LIBS -lgen -lrsc"
4348 ;;
4349*-dec-osf*)
4350 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4351echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4352 no_osfsia=""
4353
4354# Check whether --with-osfsia or --without-osfsia was given.
4355if test "${with_osfsia+set}" = set; then
4356 withval="$with_osfsia"
4357
4358 if test "x$withval" = "xno" ; then
4359 echo "$as_me:$LINENO: result: disabled" >&5
4360echo "${ECHO_T}disabled" >&6
4361 no_osfsia=1
4362 fi
4363
4364fi;
4365 if test -z "$no_osfsia" ; then
4366 if test -f /etc/sia/matrix.conf; then
4367 echo "$as_me:$LINENO: result: yes" >&5
4368echo "${ECHO_T}yes" >&6
4369 cat >>confdefs.h <<\_ACEOF
4370@%:@define HAVE_OSF_SIA 1
4371_ACEOF
4372
4373 cat >>confdefs.h <<\_ACEOF
4374@%:@define DISABLE_LOGIN 1
4375_ACEOF
4376
4377 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4378 else
4379 echo "$as_me:$LINENO: result: no" >&5
4380echo "${ECHO_T}no" >&6
4381 fi
4382 fi
4383 ;;
4384
4385*-*-nto-qnx)
4386 cat >>confdefs.h <<\_ACEOF
4387@%:@define USE_PIPES 1
4388_ACEOF
4389
4390 cat >>confdefs.h <<\_ACEOF
4391@%:@define NO_X11_UNIX_SOCKETS 1
4392_ACEOF
4393
4394 cat >>confdefs.h <<\_ACEOF
4395@%:@define MISSING_NFDBITS 1
4396_ACEOF
4397
4398 cat >>confdefs.h <<\_ACEOF
4399@%:@define MISSING_HOWMANY 1
4400_ACEOF
4401
4402 cat >>confdefs.h <<\_ACEOF
4403@%:@define MISSING_FD_MASK 1
4404_ACEOF
4405
4406 ;;
4407esac
4408
4409# Allow user to specify flags
4410
4411# Check whether --with-cflags or --without-cflags was given.
4412if test "${with_cflags+set}" = set; then
4413 withval="$with_cflags"
4414
4415 if test "x$withval" != "xno" ; then
4416 CFLAGS="$CFLAGS $withval"
4417 fi
4418
4419
4420fi;
4421
4422# Check whether --with-cppflags or --without-cppflags was given.
4423if test "${with_cppflags+set}" = set; then
4424 withval="$with_cppflags"
4425
4426 if test "x$withval" != "xno"; then
4427 CPPFLAGS="$CPPFLAGS $withval"
4428 fi
4429
4430
4431fi;
4432
4433# Check whether --with-ldflags or --without-ldflags was given.
4434if test "${with_ldflags+set}" = set; then
4435 withval="$with_ldflags"
4436
4437 if test "x$withval" != "xno" ; then
4438 LDFLAGS="$LDFLAGS $withval"
4439 fi
4440
4441
4442fi;
4443
4444# Check whether --with-libs or --without-libs was given.
4445if test "${with_libs+set}" = set; then
4446 withval="$with_libs"
4447
4448 if test "x$withval" != "xno" ; then
4449 LIBS="$LIBS $withval"
4450 fi
4451
4452
4453fi;
4454
4455# Checks for header files.
4456
4457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463#line $LINENO "configure"
4464#include "confdefs.h"
4465#include <stdlib.h>
4466#include <stdarg.h>
4467#include <string.h>
4468#include <float.h>
4469
4470_ACEOF
4471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4473 ac_status=$?
4474 egrep -v '^ *\+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } >/dev/null; then
4479 if test -s conftest.err; then
4480 ac_cpp_err=$ac_c_preproc_warn_flag
4481 else
4482 ac_cpp_err=
4483 fi
4484else
4485 ac_cpp_err=yes
4486fi
4487if test -z "$ac_cpp_err"; then
4488 ac_cv_header_stdc=yes
4489else
4490 echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 ac_cv_header_stdc=no
4493fi
4494rm -f conftest.err conftest.$ac_ext
4495
4496if test $ac_cv_header_stdc = yes; then
4497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4498 cat >conftest.$ac_ext <<_ACEOF
4499#line $LINENO "configure"
4500#include "confdefs.h"
4501#include <string.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 egrep "memchr" >/dev/null 2>&1; then
4506 :
4507else
4508 ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516 cat >conftest.$ac_ext <<_ACEOF
4517#line $LINENO "configure"
4518#include "confdefs.h"
4519#include <stdlib.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 egrep "free" >/dev/null 2>&1; then
4524 :
4525else
4526 ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
4529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4534 if test "$cross_compiling" = yes; then
4535 :
4536else
4537 cat >conftest.$ac_ext <<_ACEOF
4538#line $LINENO "configure"
4539#include "confdefs.h"
4540#include <ctype.h>
4541#if ((' ' & 0x0FF) == 0x020)
4542# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4543# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544#else
4545# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549#endif
4550
4551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552int
4553main ()
4554{
4555 int i;
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4559 exit(2);
4560 exit (0);
4561}
4562_ACEOF
4563rm -f conftest$ac_exeext
4564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 :
4575else
4576 echo "$as_me: program exited with status $ac_status" >&5
4577echo "$as_me: failed program was:" >&5
4578cat conftest.$ac_ext >&5
4579( exit $ac_status )
4580ac_cv_header_stdc=no
4581fi
4582rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583fi
4584fi
4585fi
4586echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4587echo "${ECHO_T}$ac_cv_header_stdc" >&6
4588if test $ac_cv_header_stdc = yes; then
4589
4590cat >>confdefs.h <<\_ACEOF
4591@%:@define STDC_HEADERS 1
4592_ACEOF
4593
4594fi
4595
4596# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4607 inttypes.h stdint.h unistd.h
4608do
4609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610echo "$as_me:$LINENO: checking for $ac_header" >&5
4611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 cat >conftest.$ac_ext <<_ACEOF
4616#line $LINENO "configure"
4617#include "confdefs.h"
4618$ac_includes_default
4619
4620@%:@include <$ac_header>
4621_ACEOF
4622rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 eval "$as_ac_Header=yes"
4635else
4636 echo "$as_me: failed program was:" >&5
4637cat conftest.$ac_ext >&5
4638eval "$as_ac_Header=no"
4639fi
4640rm -f conftest.$ac_objext conftest.$ac_ext
4641fi
4642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h <<_ACEOF
4646@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647_ACEOF
4648
4649fi
4650
4651done
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4695 getopt.h glob.h lastlog.h limits.h login.h \
4696 login_cap.h maillock.h netdb.h netgroup.h \
4697 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4698 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4699 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4700 sys/mman.h sys/select.h sys/stat.h \
4701 sys/stropts.h sys/sysmacros.h sys/time.h \
4702 sys/un.h time.h ttyent.h usersec.h \
4703 util.h utime.h utmp.h utmpx.h
4704do
4705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4706if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711fi
4712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4714else
4715 # Is the header compilable?
4716echo "$as_me:$LINENO: checking $ac_header usability" >&5
4717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4718cat >conftest.$ac_ext <<_ACEOF
4719#line $LINENO "configure"
4720#include "confdefs.h"
4721$ac_includes_default
4722@%:@include <$ac_header>
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_header_compiler=yes
4737else
4738 echo "$as_me: failed program was:" >&5
4739cat conftest.$ac_ext >&5
4740ac_header_compiler=no
4741fi
4742rm -f conftest.$ac_objext conftest.$ac_ext
4743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4744echo "${ECHO_T}$ac_header_compiler" >&6
4745
4746# Is the header present?
4747echo "$as_me:$LINENO: checking $ac_header presence" >&5
4748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4749cat >conftest.$ac_ext <<_ACEOF
4750#line $LINENO "configure"
4751#include "confdefs.h"
4752@%:@include <$ac_header>
4753_ACEOF
4754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756 ac_status=$?
4757 egrep -v '^ *\+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } >/dev/null; then
4762 if test -s conftest.err; then
4763 ac_cpp_err=$ac_c_preproc_warn_flag
4764 else
4765 ac_cpp_err=
4766 fi
4767else
4768 ac_cpp_err=yes
4769fi
4770if test -z "$ac_cpp_err"; then
4771 ac_header_preproc=yes
4772else
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 ac_header_preproc=no
4776fi
4777rm -f conftest.err conftest.$ac_ext
4778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4779echo "${ECHO_T}$ac_header_preproc" >&6
4780
4781# So? What about this header?
4782case $ac_header_compiler:$ac_header_preproc in
4783 yes:no )
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4788 no:yes )
4789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4795esac
4796echo "$as_me:$LINENO: checking for $ac_header" >&5
4797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 eval "$as_ac_Header=$ac_header_preproc"
4802fi
4803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4805
4806fi
4807if test `eval echo '${'$as_ac_Header'}'` = yes; then
4808 cat >>confdefs.h <<_ACEOF
4809@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4810_ACEOF
4811
4812fi
4813
4814done
4815
4816
4817# Checks for libraries.
4818echo "$as_me:$LINENO: checking for yp_match" >&5
4819echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
4820if test "${ac_cv_func_yp_match+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 cat >conftest.$ac_ext <<_ACEOF
4824#line $LINENO "configure"
4825#include "confdefs.h"
4826/* System header to define __stub macros and hopefully few prototypes,
4827 which can conflict with char yp_match (); below. */
4828#include <assert.h>
4829/* Override any gcc2 internal prototype to avoid an error. */
4830#ifdef __cplusplus
4831extern "C"
4832#endif
4833/* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835char yp_match ();
4836char (*f) ();
4837
4838#ifdef F77_DUMMY_MAIN
4839# ifdef __cplusplus
4840 extern "C"
4841# endif
4842 int F77_DUMMY_MAIN() { return 1; }
4843#endif
4844int
4845main ()
4846{
4847/* The GNU C library defines this for functions which it implements
4848 to always fail with ENOSYS. Some functions are actually named
4849 something starting with __ and the normal name is an alias. */
4850#if defined (__stub_yp_match) || defined (__stub___yp_match)
4851choke me
4852#else
4853f = yp_match;
4854#endif
4855
4856 ;
4857 return 0;
4858}
4859_ACEOF
4860rm -f conftest.$ac_objext conftest$ac_exeext
4861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_func_yp_match=yes
4873else
4874 echo "$as_me: failed program was:" >&5
4875cat conftest.$ac_ext >&5
4876ac_cv_func_yp_match=no
4877fi
4878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879fi
4880echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
4881echo "${ECHO_T}$ac_cv_func_yp_match" >&6
4882if test $ac_cv_func_yp_match = yes; then
4883 :
4884else
4885
4886echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
4887echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
4888if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 ac_check_lib_save_LIBS=$LIBS
4892LIBS="-lnsl $LIBS"
4893cat >conftest.$ac_ext <<_ACEOF
4894#line $LINENO "configure"
4895#include "confdefs.h"
4896
4897/* Override any gcc2 internal prototype to avoid an error. */
4898#ifdef __cplusplus
4899extern "C"
4900#endif
4901/* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */
4903char yp_match ();
4904#ifdef F77_DUMMY_MAIN
4905# ifdef __cplusplus
4906 extern "C"
4907# endif
4908 int F77_DUMMY_MAIN() { return 1; }
4909#endif
4910int
4911main ()
4912{
4913yp_match ();
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918rm -f conftest.$ac_objext conftest$ac_exeext
4919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4920 (eval $ac_link) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -s conftest$ac_exeext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_cv_lib_nsl_yp_match=yes
4931else
4932 echo "$as_me: failed program was:" >&5
4933cat conftest.$ac_ext >&5
4934ac_cv_lib_nsl_yp_match=no
4935fi
4936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4937LIBS=$ac_check_lib_save_LIBS
4938fi
4939echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
4940echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
4941if test $ac_cv_lib_nsl_yp_match = yes; then
4942 cat >>confdefs.h <<_ACEOF
4943@%:@define HAVE_LIBNSL 1
4944_ACEOF
4945
4946 LIBS="-lnsl $LIBS"
4947
4948fi
4949
4950fi
4951
4952echo "$as_me:$LINENO: checking for setsockopt" >&5
4953echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4954if test "${ac_cv_func_setsockopt+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 cat >conftest.$ac_ext <<_ACEOF
4958#line $LINENO "configure"
4959#include "confdefs.h"
4960/* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char setsockopt (); below. */
4962#include <assert.h>
4963/* Override any gcc2 internal prototype to avoid an error. */
4964#ifdef __cplusplus
4965extern "C"
4966#endif
4967/* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4969char setsockopt ();
4970char (*f) ();
4971
4972#ifdef F77_DUMMY_MAIN
4973# ifdef __cplusplus
4974 extern "C"
4975# endif
4976 int F77_DUMMY_MAIN() { return 1; }
4977#endif
4978int
4979main ()
4980{
4981/* The GNU C library defines this for functions which it implements
4982 to always fail with ENOSYS. Some functions are actually named
4983 something starting with __ and the normal name is an alias. */
4984#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4985choke me
4986#else
4987f = setsockopt;
4988#endif
4989
4990 ;
4991 return 0;
4992}
4993_ACEOF
4994rm -f conftest.$ac_objext conftest$ac_exeext
4995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996 (eval $ac_link) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -s conftest$ac_exeext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_cv_func_setsockopt=yes
5007else
5008 echo "$as_me: failed program was:" >&5
5009cat conftest.$ac_ext >&5
5010ac_cv_func_setsockopt=no
5011fi
5012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5013fi
5014echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5015echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5016if test $ac_cv_func_setsockopt = yes; then
5017 :
5018else
5019
5020echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5021echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5022if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 ac_check_lib_save_LIBS=$LIBS
5026LIBS="-lsocket $LIBS"
5027cat >conftest.$ac_ext <<_ACEOF
5028#line $LINENO "configure"
5029#include "confdefs.h"
5030
5031/* Override any gcc2 internal prototype to avoid an error. */
5032#ifdef __cplusplus
5033extern "C"
5034#endif
5035/* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5037char setsockopt ();
5038#ifdef F77_DUMMY_MAIN
5039# ifdef __cplusplus
5040 extern "C"
5041# endif
5042 int F77_DUMMY_MAIN() { return 1; }
5043#endif
5044int
5045main ()
5046{
5047setsockopt ();
5048 ;
5049 return 0;
5050}
5051_ACEOF
5052rm -f conftest.$ac_objext conftest$ac_exeext
5053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5054 (eval $ac_link) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -s conftest$ac_exeext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 (eval $ac_try) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5064 ac_cv_lib_socket_setsockopt=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067cat conftest.$ac_ext >&5
5068ac_cv_lib_socket_setsockopt=no
5069fi
5070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5071LIBS=$ac_check_lib_save_LIBS
5072fi
5073echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5074echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5075if test $ac_cv_lib_socket_setsockopt = yes; then
5076 cat >>confdefs.h <<_ACEOF
5077@%:@define HAVE_LIBSOCKET 1
5078_ACEOF
5079
5080 LIBS="-lsocket $LIBS"
5081
5082fi
5083
5084fi
5085
5086
5087if test "x$with_tcp_wrappers" != "xno" ; then
5088 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5089 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5090echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5091if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 ac_check_lib_save_LIBS=$LIBS
5095LIBS="-lrpc -lyp -lrpc $LIBS"
5096cat >conftest.$ac_ext <<_ACEOF
5097#line $LINENO "configure"
5098#include "confdefs.h"
5099
5100/* Override any gcc2 internal prototype to avoid an error. */
5101#ifdef __cplusplus
5102extern "C"
5103#endif
5104/* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5106char innetgr ();
5107#ifdef F77_DUMMY_MAIN
5108# ifdef __cplusplus
5109 extern "C"
5110# endif
5111 int F77_DUMMY_MAIN() { return 1; }
5112#endif
5113int
5114main ()
5115{
5116innetgr ();
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121rm -f conftest.$ac_objext conftest$ac_exeext
5122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 ac_cv_lib_rpc_innetgr=yes
5134else
5135 echo "$as_me: failed program was:" >&5
5136cat conftest.$ac_ext >&5
5137ac_cv_lib_rpc_innetgr=no
5138fi
5139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5140LIBS=$ac_check_lib_save_LIBS
5141fi
5142echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5143echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5144if test $ac_cv_lib_rpc_innetgr = yes; then
5145 LIBS="-lrpc -lyp -lrpc $LIBS"
5146fi
5147
5148 fi
5149fi
5150
5151echo "$as_me:$LINENO: checking for getspnam" >&5
5152echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5153if test "${ac_cv_func_getspnam+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 cat >conftest.$ac_ext <<_ACEOF
5157#line $LINENO "configure"
5158#include "confdefs.h"
5159/* System header to define __stub macros and hopefully few prototypes,
5160 which can conflict with char getspnam (); below. */
5161#include <assert.h>
5162/* Override any gcc2 internal prototype to avoid an error. */
5163#ifdef __cplusplus
5164extern "C"
5165#endif
5166/* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168char getspnam ();
5169char (*f) ();
5170
5171#ifdef F77_DUMMY_MAIN
5172# ifdef __cplusplus
5173 extern "C"
5174# endif
5175 int F77_DUMMY_MAIN() { return 1; }
5176#endif
5177int
5178main ()
5179{
5180/* The GNU C library defines this for functions which it implements
5181 to always fail with ENOSYS. Some functions are actually named
5182 something starting with __ and the normal name is an alias. */
5183#if defined (__stub_getspnam) || defined (__stub___getspnam)
5184choke me
5185#else
5186f = getspnam;
5187#endif
5188
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193rm -f conftest.$ac_objext conftest$ac_exeext
5194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_func_getspnam=yes
5206else
5207 echo "$as_me: failed program was:" >&5
5208cat conftest.$ac_ext >&5
5209ac_cv_func_getspnam=no
5210fi
5211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5212fi
5213echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5214echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5215if test $ac_cv_func_getspnam = yes; then
5216 :
5217else
5218 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5219echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5220if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 ac_check_lib_save_LIBS=$LIBS
5224LIBS="-lgen $LIBS"
5225cat >conftest.$ac_ext <<_ACEOF
5226#line $LINENO "configure"
5227#include "confdefs.h"
5228
5229/* Override any gcc2 internal prototype to avoid an error. */
5230#ifdef __cplusplus
5231extern "C"
5232#endif
5233/* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5235char getspnam ();
5236#ifdef F77_DUMMY_MAIN
5237# ifdef __cplusplus
5238 extern "C"
5239# endif
5240 int F77_DUMMY_MAIN() { return 1; }
5241#endif
5242int
5243main ()
5244{
5245getspnam ();
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext conftest$ac_exeext
5251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_lib_gen_getspnam=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265cat conftest.$ac_ext >&5
5266ac_cv_lib_gen_getspnam=no
5267fi
5268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269LIBS=$ac_check_lib_save_LIBS
5270fi
5271echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5272echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5273if test $ac_cv_lib_gen_getspnam = yes; then
5274 LIBS="$LIBS -lgen"
5275fi
5276
5277fi
5278
5279
5280
5281# Check whether --with-rpath or --without-rpath was given.
5282if test "${with_rpath+set}" = set; then
5283 withval="$with_rpath"
5284
5285 if test "x$withval" = "xno" ; then
5286 need_dash_r=""
5287 fi
5288 if test "x$withval" = "xyes" ; then
5289 need_dash_r=1
5290 fi
5291
5292
5293fi;
5294
5295
5296# Check whether --with-zlib or --without-zlib was given.
5297if test "${with_zlib+set}" = set; then
5298 withval="$with_zlib"
5299
5300 if test "x$withval" = "xno" ; then
5301 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5302echo "$as_me: error: *** zlib is required ***" >&2;}
5303 { (exit 1); exit 1; }; }
5304 fi
5305 if test -d "$withval/lib"; then
5306 if test -n "${need_dash_r}"; then
5307 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5308 else
5309 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5310 fi
5311 else
5312 if test -n "${need_dash_r}"; then
5313 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5314 else
5315 LDFLAGS="-L${withval} ${LDFLAGS}"
5316 fi
5317 fi
5318 if test -d "$withval/include"; then
5319 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5320 else
5321 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5322 fi
5323
5324
5325fi;
5326
5327
5328echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5329echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5330if test "${ac_cv_lib_z_deflate+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 ac_check_lib_save_LIBS=$LIBS
5334LIBS="-lz $LIBS"
5335cat >conftest.$ac_ext <<_ACEOF
5336#line $LINENO "configure"
5337#include "confdefs.h"
5338
5339/* Override any gcc2 internal prototype to avoid an error. */
5340#ifdef __cplusplus
5341extern "C"
5342#endif
5343/* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5345char deflate ();
5346#ifdef F77_DUMMY_MAIN
5347# ifdef __cplusplus
5348 extern "C"
5349# endif
5350 int F77_DUMMY_MAIN() { return 1; }
5351#endif
5352int
5353main ()
5354{
5355deflate ();
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext conftest$ac_exeext
5361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_cv_lib_z_deflate=yes
5373else
5374 echo "$as_me: failed program was:" >&5
5375cat conftest.$ac_ext >&5
5376ac_cv_lib_z_deflate=no
5377fi
5378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379LIBS=$ac_check_lib_save_LIBS
5380fi
5381echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5382echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5383if test $ac_cv_lib_z_deflate = yes; then
5384 cat >>confdefs.h <<_ACEOF
5385@%:@define HAVE_LIBZ 1
5386_ACEOF
5387
5388 LIBS="-lz $LIBS"
5389
5390else
5391 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5392echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5393 { (exit 1); exit 1; }; }
5394fi
5395
5396
5397echo "$as_me:$LINENO: checking for strcasecmp" >&5
5398echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5399if test "${ac_cv_func_strcasecmp+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 cat >conftest.$ac_ext <<_ACEOF
5403#line $LINENO "configure"
5404#include "confdefs.h"
5405/* System header to define __stub macros and hopefully few prototypes,
5406 which can conflict with char strcasecmp (); below. */
5407#include <assert.h>
5408/* Override any gcc2 internal prototype to avoid an error. */
5409#ifdef __cplusplus
5410extern "C"
5411#endif
5412/* We use char because int might match the return type of a gcc2
5413 builtin and then its argument prototype would still apply. */
5414char strcasecmp ();
5415char (*f) ();
5416
5417#ifdef F77_DUMMY_MAIN
5418# ifdef __cplusplus
5419 extern "C"
5420# endif
5421 int F77_DUMMY_MAIN() { return 1; }
5422#endif
5423int
5424main ()
5425{
5426/* The GNU C library defines this for functions which it implements
5427 to always fail with ENOSYS. Some functions are actually named
5428 something starting with __ and the normal name is an alias. */
5429#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5430choke me
5431#else
5432f = strcasecmp;
5433#endif
5434
5435 ;
5436 return 0;
5437}
5438_ACEOF
5439rm -f conftest.$ac_objext conftest$ac_exeext
5440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441 (eval $ac_link) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -s conftest$ac_exeext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_cv_func_strcasecmp=yes
5452else
5453 echo "$as_me: failed program was:" >&5
5454cat conftest.$ac_ext >&5
5455ac_cv_func_strcasecmp=no
5456fi
5457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458fi
5459echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5460echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5461if test $ac_cv_func_strcasecmp = yes; then
5462 :
5463else
5464 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5465echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5466if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469 ac_check_lib_save_LIBS=$LIBS
5470LIBS="-lresolv $LIBS"
5471cat >conftest.$ac_ext <<_ACEOF
5472#line $LINENO "configure"
5473#include "confdefs.h"
5474
5475/* Override any gcc2 internal prototype to avoid an error. */
5476#ifdef __cplusplus
5477extern "C"
5478#endif
5479/* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481char strcasecmp ();
5482#ifdef F77_DUMMY_MAIN
5483# ifdef __cplusplus
5484 extern "C"
5485# endif
5486 int F77_DUMMY_MAIN() { return 1; }
5487#endif
5488int
5489main ()
5490{
5491strcasecmp ();
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext conftest$ac_exeext
5497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -s conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 ac_cv_lib_resolv_strcasecmp=yes
5509else
5510 echo "$as_me: failed program was:" >&5
5511cat conftest.$ac_ext >&5
5512ac_cv_lib_resolv_strcasecmp=no
5513fi
5514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5515LIBS=$ac_check_lib_save_LIBS
5516fi
5517echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5518echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5519if test $ac_cv_lib_resolv_strcasecmp = yes; then
5520 LIBS="$LIBS -lresolv"
5521fi
5522
5523
5524fi
5525
5526echo "$as_me:$LINENO: checking for utimes" >&5
5527echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5528if test "${ac_cv_func_utimes+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530else
5531 cat >conftest.$ac_ext <<_ACEOF
5532#line $LINENO "configure"
5533#include "confdefs.h"
5534/* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char utimes (); below. */
5536#include <assert.h>
5537/* Override any gcc2 internal prototype to avoid an error. */
5538#ifdef __cplusplus
5539extern "C"
5540#endif
5541/* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5543char utimes ();
5544char (*f) ();
5545
5546#ifdef F77_DUMMY_MAIN
5547# ifdef __cplusplus
5548 extern "C"
5549# endif
5550 int F77_DUMMY_MAIN() { return 1; }
5551#endif
5552int
5553main ()
5554{
5555/* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558#if defined (__stub_utimes) || defined (__stub___utimes)
5559choke me
5560#else
5561f = utimes;
5562#endif
5563
5564 ;
5565 return 0;
5566}
5567_ACEOF
5568rm -f conftest.$ac_objext conftest$ac_exeext
5569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -s conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_func_utimes=yes
5581else
5582 echo "$as_me: failed program was:" >&5
5583cat conftest.$ac_ext >&5
5584ac_cv_func_utimes=no
5585fi
5586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587fi
5588echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5589echo "${ECHO_T}$ac_cv_func_utimes" >&6
5590if test $ac_cv_func_utimes = yes; then
5591 :
5592else
5593 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5594echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5595if test "${ac_cv_lib_c89_utimes+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 ac_check_lib_save_LIBS=$LIBS
5599LIBS="-lc89 $LIBS"
5600cat >conftest.$ac_ext <<_ACEOF
5601#line $LINENO "configure"
5602#include "confdefs.h"
5603
5604/* Override any gcc2 internal prototype to avoid an error. */
5605#ifdef __cplusplus
5606extern "C"
5607#endif
5608/* We use char because int might match the return type of a gcc2
5609 builtin and then its argument prototype would still apply. */
5610char utimes ();
5611#ifdef F77_DUMMY_MAIN
5612# ifdef __cplusplus
5613 extern "C"
5614# endif
5615 int F77_DUMMY_MAIN() { return 1; }
5616#endif
5617int
5618main ()
5619{
5620utimes ();
5621 ;
5622 return 0;
5623}
5624_ACEOF
5625rm -f conftest.$ac_objext conftest$ac_exeext
5626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_lib_c89_utimes=yes
5638else
5639 echo "$as_me: failed program was:" >&5
5640cat conftest.$ac_ext >&5
5641ac_cv_lib_c89_utimes=no
5642fi
5643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5644LIBS=$ac_check_lib_save_LIBS
5645fi
5646echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5647echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5648if test $ac_cv_lib_c89_utimes = yes; then
5649 LIBS="$LIBS -lc89"
5650fi
5651
5652
5653fi
5654
5655
5656
5657for ac_header in libutil.h
5658do
5659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo "$as_me:$LINENO: checking for $ac_header" >&5
5662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5663if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665fi
5666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5668else
5669 # Is the header compilable?
5670echo "$as_me:$LINENO: checking $ac_header usability" >&5
5671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5672cat >conftest.$ac_ext <<_ACEOF
5673#line $LINENO "configure"
5674#include "confdefs.h"
5675$ac_includes_default
5676@%:@include <$ac_header>
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_header_compiler=yes
5691else
5692 echo "$as_me: failed program was:" >&5
5693cat conftest.$ac_ext >&5
5694ac_header_compiler=no
5695fi
5696rm -f conftest.$ac_objext conftest.$ac_ext
5697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698echo "${ECHO_T}$ac_header_compiler" >&6
5699
5700# Is the header present?
5701echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5703cat >conftest.$ac_ext <<_ACEOF
5704#line $LINENO "configure"
5705#include "confdefs.h"
5706@%:@include <$ac_header>
5707_ACEOF
5708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5710 ac_status=$?
5711 egrep -v '^ *\+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null; then
5716 if test -s conftest.err; then
5717 ac_cpp_err=$ac_c_preproc_warn_flag
5718 else
5719 ac_cpp_err=
5720 fi
5721else
5722 ac_cpp_err=yes
5723fi
5724if test -z "$ac_cpp_err"; then
5725 ac_header_preproc=yes
5726else
5727 echo "$as_me: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5729 ac_header_preproc=no
5730fi
5731rm -f conftest.err conftest.$ac_ext
5732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733echo "${ECHO_T}$ac_header_preproc" >&6
5734
5735# So? What about this header?
5736case $ac_header_compiler:$ac_header_preproc in
5737 yes:no )
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5742 no:yes )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5749esac
5750echo "$as_me:$LINENO: checking for $ac_header" >&5
5751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5752if eval "test \"\${$as_ac_Header+set}\" = set"; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 eval "$as_ac_Header=$ac_header_preproc"
5756fi
5757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759
5760fi
5761if test `eval echo '${'$as_ac_Header'}'` = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5764_ACEOF
5765
5766fi
5767
5768done
5769
5770echo "$as_me:$LINENO: checking for library containing login" >&5
5771echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
5772if test "${ac_cv_search_login+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775 ac_func_search_save_LIBS=$LIBS
5776ac_cv_search_login=no
5777cat >conftest.$ac_ext <<_ACEOF
5778#line $LINENO "configure"
5779#include "confdefs.h"
5780
5781/* Override any gcc2 internal prototype to avoid an error. */
5782#ifdef __cplusplus
5783extern "C"
5784#endif
5785/* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787char login ();
5788#ifdef F77_DUMMY_MAIN
5789# ifdef __cplusplus
5790 extern "C"
5791# endif
5792 int F77_DUMMY_MAIN() { return 1; }
5793#endif
5794int
5795main ()
5796{
5797login ();
5798 ;
5799 return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext conftest$ac_exeext
5803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -s conftest$ac_exeext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_cv_search_login="none required"
5815else
5816 echo "$as_me: failed program was:" >&5
5817cat conftest.$ac_ext >&5
5818fi
5819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5820if test "$ac_cv_search_login" = no; then
5821 for ac_lib in util bsd; do
5822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5823 cat >conftest.$ac_ext <<_ACEOF
5824#line $LINENO "configure"
5825#include "confdefs.h"
5826
5827/* Override any gcc2 internal prototype to avoid an error. */
5828#ifdef __cplusplus
5829extern "C"
5830#endif
5831/* We use char because int might match the return type of a gcc2
5832 builtin and then its argument prototype would still apply. */
5833char login ();
5834#ifdef F77_DUMMY_MAIN
5835# ifdef __cplusplus
5836 extern "C"
5837# endif
5838 int F77_DUMMY_MAIN() { return 1; }
5839#endif
5840int
5841main ()
5842{
5843login ();
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext conftest$ac_exeext
5849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_search_login="-l$ac_lib"
5861break
5862else
5863 echo "$as_me: failed program was:" >&5
5864cat conftest.$ac_ext >&5
5865fi
5866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867 done
5868fi
5869LIBS=$ac_func_search_save_LIBS
5870fi
5871echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
5872echo "${ECHO_T}$ac_cv_search_login" >&6
5873if test "$ac_cv_search_login" != no; then
5874 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
5875 cat >>confdefs.h <<\_ACEOF
5876@%:@define HAVE_LOGIN 1
5877_ACEOF
5878
5879fi
5880
5881
5882
5883
5884for ac_func in logout updwtmp logwtmp
5885do
5886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5887echo "$as_me:$LINENO: checking for $ac_func" >&5
5888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5889if eval "test \"\${$as_ac_var+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893#line $LINENO "configure"
5894#include "confdefs.h"
5895/* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func (); below. */
5897#include <assert.h>
5898/* Override any gcc2 internal prototype to avoid an error. */
5899#ifdef __cplusplus
5900extern "C"
5901#endif
5902/* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5904char $ac_func ();
5905char (*f) ();
5906
5907#ifdef F77_DUMMY_MAIN
5908# ifdef __cplusplus
5909 extern "C"
5910# endif
5911 int F77_DUMMY_MAIN() { return 1; }
5912#endif
5913int
5914main ()
5915{
5916/* The GNU C library defines this for functions which it implements
5917 to always fail with ENOSYS. Some functions are actually named
5918 something starting with __ and the normal name is an alias. */
5919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920choke me
5921#else
5922f = $ac_func;
5923#endif
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext conftest$ac_exeext
5930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 eval "$as_ac_var=yes"
5942else
5943 echo "$as_me: failed program was:" >&5
5944cat conftest.$ac_ext >&5
5945eval "$as_ac_var=no"
5946fi
5947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948fi
5949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5951if test `eval echo '${'$as_ac_var'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5954_ACEOF
5955
5956fi
5957done
5958
5959
5960
5961for ac_func in strftime
5962do
5963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5964echo "$as_me:$LINENO: checking for $ac_func" >&5
5965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5966if eval "test \"\${$as_ac_var+set}\" = set"; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 cat >conftest.$ac_ext <<_ACEOF
5970#line $LINENO "configure"
5971#include "confdefs.h"
5972/* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char $ac_func (); below. */
5974#include <assert.h>
5975/* Override any gcc2 internal prototype to avoid an error. */
5976#ifdef __cplusplus
5977extern "C"
5978#endif
5979/* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5981char $ac_func ();
5982char (*f) ();
5983
5984#ifdef F77_DUMMY_MAIN
5985# ifdef __cplusplus
5986 extern "C"
5987# endif
5988 int F77_DUMMY_MAIN() { return 1; }
5989#endif
5990int
5991main ()
5992{
5993/* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5997choke me
5998#else
5999f = $ac_func;
6000#endif
6001
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext conftest$ac_exeext
6007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -s conftest$ac_exeext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 eval "$as_ac_var=yes"
6019else
6020 echo "$as_me: failed program was:" >&5
6021cat conftest.$ac_ext >&5
6022eval "$as_ac_var=no"
6023fi
6024rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6025fi
6026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6028if test `eval echo '${'$as_ac_var'}'` = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6031_ACEOF
6032
6033else
6034 # strftime is in -lintl on SCO UNIX.
6035echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6036echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6037if test "${ac_cv_lib_intl_strftime+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 ac_check_lib_save_LIBS=$LIBS
6041LIBS="-lintl $LIBS"
6042cat >conftest.$ac_ext <<_ACEOF
6043#line $LINENO "configure"
6044#include "confdefs.h"
6045
6046/* Override any gcc2 internal prototype to avoid an error. */
6047#ifdef __cplusplus
6048extern "C"
6049#endif
6050/* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6052char strftime ();
6053#ifdef F77_DUMMY_MAIN
6054# ifdef __cplusplus
6055 extern "C"
6056# endif
6057 int F77_DUMMY_MAIN() { return 1; }
6058#endif
6059int
6060main ()
6061{
6062strftime ();
6063 ;
6064 return 0;
6065}
6066_ACEOF
6067rm -f conftest.$ac_objext conftest$ac_exeext
6068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069 (eval $ac_link) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -s conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_lib_intl_strftime=yes
6080else
6081 echo "$as_me: failed program was:" >&5
6082cat conftest.$ac_ext >&5
6083ac_cv_lib_intl_strftime=no
6084fi
6085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6086LIBS=$ac_check_lib_save_LIBS
6087fi
6088echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6089echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6090if test $ac_cv_lib_intl_strftime = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092@%:@define HAVE_STRFTIME 1
6093_ACEOF
6094
6095LIBS="-lintl $LIBS"
6096fi
6097
6098fi
6099done
6100
6101
6102# Check for ALTDIRFUNC glob() extension
6103echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6104echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6105cat >conftest.$ac_ext <<_ACEOF
6106#line $LINENO "configure"
6107#include "confdefs.h"
6108
6109 #include <glob.h>
6110 #ifdef GLOB_ALTDIRFUNC
6111 FOUNDIT
6112 #endif
6113
6114_ACEOF
6115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6116 egrep "FOUNDIT" >/dev/null 2>&1; then
6117
6118 cat >>confdefs.h <<\_ACEOF
6119@%:@define GLOB_HAS_ALTDIRFUNC 1
6120_ACEOF
6121
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124
6125else
6126
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
6129
6130
6131fi
6132rm -f conftest*
6133
6134
6135# Check for g.gl_matchc glob() extension
6136echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6137echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6138cat >conftest.$ac_ext <<_ACEOF
6139#line $LINENO "configure"
6140#include "confdefs.h"
6141
6142 #include <glob.h>
6143 int main(void){glob_t g; g.gl_matchc = 1;}
6144
6145_ACEOF
6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 egrep "FOUNDIT" >/dev/null 2>&1; then
6148
6149 cat >>confdefs.h <<\_ACEOF
6150@%:@define GLOB_HAS_GL_MATCHC 1
6151_ACEOF
6152
6153 echo "$as_me:$LINENO: result: yes" >&5
6154echo "${ECHO_T}yes" >&6
6155
6156else
6157
6158 echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6
6160
6161
6162fi
6163rm -f conftest*
6164
6165
6166echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6167echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6168if test "$cross_compiling" = yes; then
6169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6170echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6171 { (exit 1); exit 1; }; }
6172else
6173 cat >conftest.$ac_ext <<_ACEOF
6174#line $LINENO "configure"
6175#include "confdefs.h"
6176
6177#include <sys/types.h>
6178#include <dirent.h>
6179int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
6180
6181_ACEOF
6182rm -f conftest$ac_exeext
6183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 echo "$as_me:$LINENO: result: yes" >&5
6194echo "${ECHO_T}yes" >&6
6195else
6196 echo "$as_me: program exited with status $ac_status" >&5
6197echo "$as_me: failed program was:" >&5
6198cat conftest.$ac_ext >&5
6199( exit $ac_status )
6200
6201 echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
6203 cat >>confdefs.h <<\_ACEOF
6204@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6205_ACEOF
6206
6207
6208
6209fi
6210rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6211fi
6212
6213# Check whether user wants S/Key support
6214SKEY_MSG="no"
6215
6216# Check whether --with-skey or --without-skey was given.
6217if test "${with_skey+set}" = set; then
6218 withval="$with_skey"
6219
6220 if test "x$withval" != "xno" ; then
6221
6222 if test "x$withval" != "xyes" ; then
6223 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6224 LDFLAGS="$LDFLAGS -L${withval}/lib"
6225 fi
6226
6227 cat >>confdefs.h <<\_ACEOF
6228@%:@define SKEY 1
6229_ACEOF
6230
6231 LIBS="-lskey $LIBS"
6232 SKEY_MSG="yes"
6233
6234 echo "$as_me:$LINENO: checking for s/key support" >&5
6235echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6236 if test "$cross_compiling" = yes; then
6237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6238echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6239 { (exit 1); exit 1; }; }
6240else
6241 cat >conftest.$ac_ext <<_ACEOF
6242#line $LINENO "configure"
6243#include "confdefs.h"
6244
6245#include <stdio.h>
6246#include <skey.h>
6247int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
6248
6249_ACEOF
6250rm -f conftest$ac_exeext
6251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 echo "$as_me:$LINENO: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
6263else
6264 echo "$as_me: program exited with status $ac_status" >&5
6265echo "$as_me: failed program was:" >&5
6266cat conftest.$ac_ext >&5
6267( exit $ac_status )
6268
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6272echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6273 { (exit 1); exit 1; }; }
6274
6275fi
6276rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6277fi
6278 fi
6279
6280
6281fi;
6282
6283# Check whether user wants TCP wrappers support
6284TCPW_MSG="no"
6285
6286# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6287if test "${with_tcp_wrappers+set}" = set; then
6288 withval="$with_tcp_wrappers"
6289
6290 if test "x$withval" != "xno" ; then
6291 saved_LIBS="$LIBS"
6292 saved_LDFLAGS="$LDFLAGS"
6293 saved_CPPFLAGS="$CPPFLAGS"
6294 if test -n "${withval}" -a "${withval}" != "yes"; then
6295 if test -d "${withval}/lib"; then
6296 if test -n "${need_dash_r}"; then
6297 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6298 else
6299 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6300 fi
6301 else
6302 if test -n "${need_dash_r}"; then
6303 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6304 else
6305 LDFLAGS="-L${withval} ${LDFLAGS}"
6306 fi
6307 fi
6308 if test -d "${withval}/include"; then
6309 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6310 else
6311 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6312 fi
6313 fi
6314 LIBWRAP="-lwrap"
6315 LIBS="$LIBWRAP $LIBS"
6316 echo "$as_me:$LINENO: checking for libwrap" >&5
6317echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6319#line $LINENO "configure"
6320#include "confdefs.h"
6321
6322#include <tcpd.h>
6323 int deny_severity = 0, allow_severity = 0;
6324
6325#ifdef F77_DUMMY_MAIN
6326# ifdef __cplusplus
6327 extern "C"
6328# endif
6329 int F77_DUMMY_MAIN() { return 1; }
6330#endif
6331int
6332main ()
6333{
6334hosts_access(0);
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351
6352 echo "$as_me:$LINENO: result: yes" >&5
6353echo "${ECHO_T}yes" >&6
6354 cat >>confdefs.h <<\_ACEOF
6355@%:@define LIBWRAP 1
6356_ACEOF
6357
6358
6359 TCPW_MSG="yes"
6360
6361else
6362 echo "$as_me: failed program was:" >&5
6363cat conftest.$ac_ext >&5
6364
6365 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6366echo "$as_me: error: *** libwrap missing" >&2;}
6367 { (exit 1); exit 1; }; }
6368
6369
6370fi
6371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6372 LIBS="$saved_LIBS"
6373 fi
6374
6375
6376fi;
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
f5799ae1 6440
6441
700318f3 6442
6443
6444
6445for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6446 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6447 getaddrinfo getcwd getgrouplist getnameinfo getopt \
6448 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6449 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6450 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6451 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
f5799ae1 6452 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6453 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6454 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6455 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
700318f3 6456do
6457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6458echo "$as_me:$LINENO: checking for $ac_func" >&5
6459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6460if eval "test \"\${$as_ac_var+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 cat >conftest.$ac_ext <<_ACEOF
6464#line $LINENO "configure"
6465#include "confdefs.h"
6466/* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char $ac_func (); below. */
6468#include <assert.h>
6469/* Override any gcc2 internal prototype to avoid an error. */
6470#ifdef __cplusplus
6471extern "C"
6472#endif
6473/* We use char because int might match the return type of a gcc2
6474 builtin and then its argument prototype would still apply. */
6475char $ac_func ();
6476char (*f) ();
6477
6478#ifdef F77_DUMMY_MAIN
6479# ifdef __cplusplus
6480 extern "C"
6481# endif
6482 int F77_DUMMY_MAIN() { return 1; }
6483#endif
6484int
6485main ()
6486{
6487/* The GNU C library defines this for functions which it implements
6488 to always fail with ENOSYS. Some functions are actually named
6489 something starting with __ and the normal name is an alias. */
6490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6491choke me
6492#else
6493f = $ac_func;
6494#endif
6495
6496 ;
6497 return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext conftest$ac_exeext
6501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 eval "$as_ac_var=yes"
6513else
6514 echo "$as_me: failed program was:" >&5
6515cat conftest.$ac_ext >&5
6516eval "$as_ac_var=no"
6517fi
6518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519fi
6520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6522if test `eval echo '${'$as_ac_var'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6525_ACEOF
6526
6527fi
6528done
6529
6530
680cee3b 6531if test $ac_cv_func_mmap = yes ; then
6532echo "$as_me:$LINENO: checking for mmap anon shared" >&5
6533echo $ECHO_N "checking for mmap anon shared... $ECHO_C" >&6
6534if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6536echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6537 { (exit 1); exit 1; }; }
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540#line $LINENO "configure"
6541#include "confdefs.h"
6542
6543#include <stdio.h>
6544#include <sys/mman.h>
6545#if !defined(MAP_ANON) && defined(MAP_ANONYMOUS)
6546#define MAP_ANON MAP_ANONYMOUS
6547#endif
6548main() { char *p;
6549p = (char *) mmap(NULL, 10, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0);
6550if (p == (char *)-1)
6551 exit(1);
6552exit(0);
6553}
6554
6555_ACEOF
6556rm -f conftest$ac_exeext
6557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567
6568 echo "$as_me:$LINENO: result: yes" >&5
6569echo "${ECHO_T}yes" >&6
6570 cat >>confdefs.h <<\_ACEOF
6571@%:@define HAVE_MMAP_ANON_SHARED 1
6572_ACEOF
6573
6574
6575else
6576 echo "$as_me: program exited with status $ac_status" >&5
6577echo "$as_me: failed program was:" >&5
6578cat conftest.$ac_ext >&5
6579( exit $ac_status )
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582
6583fi
6584rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6585fi
6586fi
6587
700318f3 6588
6589for ac_func in dirname
6590do
6591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6592echo "$as_me:$LINENO: checking for $ac_func" >&5
6593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6594if eval "test \"\${$as_ac_var+set}\" = set"; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597 cat >conftest.$ac_ext <<_ACEOF
6598#line $LINENO "configure"
6599#include "confdefs.h"
6600/* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char $ac_func (); below. */
6602#include <assert.h>
6603/* Override any gcc2 internal prototype to avoid an error. */
6604#ifdef __cplusplus
6605extern "C"
6606#endif
6607/* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609char $ac_func ();
6610char (*f) ();
6611
6612#ifdef F77_DUMMY_MAIN
6613# ifdef __cplusplus
6614 extern "C"
6615# endif
6616 int F77_DUMMY_MAIN() { return 1; }
6617#endif
6618int
6619main ()
6620{
6621/* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6625choke me
6626#else
6627f = $ac_func;
6628#endif
6629
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest.$ac_objext conftest$ac_exeext
6635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_var=yes"
6647else
6648 echo "$as_me: failed program was:" >&5
6649cat conftest.$ac_ext >&5
6650eval "$as_ac_var=no"
6651fi
6652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6653fi
6654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6656if test `eval echo '${'$as_ac_var'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6659_ACEOF
6660
6661for ac_header in libgen.h
6662do
6663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6664if eval "test \"\${$as_ac_Header+set}\" = set"; then
6665 echo "$as_me:$LINENO: checking for $ac_header" >&5
6666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6667if eval "test \"\${$as_ac_Header+set}\" = set"; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669fi
6670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6672else
6673 # Is the header compilable?
6674echo "$as_me:$LINENO: checking $ac_header usability" >&5
6675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6676cat >conftest.$ac_ext <<_ACEOF
6677#line $LINENO "configure"
6678#include "confdefs.h"
6679$ac_includes_default
6680@%:@include <$ac_header>
6681_ACEOF
6682rm -f conftest.$ac_objext
6683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_header_compiler=yes
6695else
6696 echo "$as_me: failed program was:" >&5
6697cat conftest.$ac_ext >&5
6698ac_header_compiler=no
6699fi
6700rm -f conftest.$ac_objext conftest.$ac_ext
6701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6702echo "${ECHO_T}$ac_header_compiler" >&6
6703
6704# Is the header present?
6705echo "$as_me:$LINENO: checking $ac_header presence" >&5
6706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6707cat >conftest.$ac_ext <<_ACEOF
6708#line $LINENO "configure"
6709#include "confdefs.h"
6710@%:@include <$ac_header>
6711_ACEOF
6712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6714 ac_status=$?
6715 egrep -v '^ *\+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } >/dev/null; then
6720 if test -s conftest.err; then
6721 ac_cpp_err=$ac_c_preproc_warn_flag
6722 else
6723 ac_cpp_err=
6724 fi
6725else
6726 ac_cpp_err=yes
6727fi
6728if test -z "$ac_cpp_err"; then
6729 ac_header_preproc=yes
6730else
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 ac_header_preproc=no
6734fi
6735rm -f conftest.err conftest.$ac_ext
6736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6737echo "${ECHO_T}$ac_header_preproc" >&6
6738
6739# So? What about this header?
6740case $ac_header_compiler:$ac_header_preproc in
6741 yes:no )
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6746 no:yes )
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6753esac
6754echo "$as_me:$LINENO: checking for $ac_header" >&5
6755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 eval "$as_ac_Header=$ac_header_preproc"
6760fi
6761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763
6764fi
6765if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766 cat >>confdefs.h <<_ACEOF
6767@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768_ACEOF
6769
6770fi
6771
6772done
6773
6774else
6775
6776 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
6777echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
6778if test "${ac_cv_lib_gen_dirname+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 ac_check_lib_save_LIBS=$LIBS
6782LIBS="-lgen $LIBS"
6783cat >conftest.$ac_ext <<_ACEOF
6784#line $LINENO "configure"
6785#include "confdefs.h"
6786
6787/* Override any gcc2 internal prototype to avoid an error. */
6788#ifdef __cplusplus
6789extern "C"
6790#endif
6791/* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6793char dirname ();
6794#ifdef F77_DUMMY_MAIN
6795# ifdef __cplusplus
6796 extern "C"
6797# endif
6798 int F77_DUMMY_MAIN() { return 1; }
6799#endif
6800int
6801main ()
6802{
6803dirname ();
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_lib_gen_dirname=yes
6821else
6822 echo "$as_me: failed program was:" >&5
6823cat conftest.$ac_ext >&5
6824ac_cv_lib_gen_dirname=no
6825fi
6826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6827LIBS=$ac_check_lib_save_LIBS
6828fi
6829echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
6830echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
6831if test $ac_cv_lib_gen_dirname = yes; then
6832
6833 echo "$as_me:$LINENO: checking for broken dirname" >&5
6834echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
6835if test "${ac_cv_have_broken_dirname+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838
6839 save_LIBS="$LIBS"
6840 LIBS="$LIBS -lgen"
6841 if test "$cross_compiling" = yes; then
6842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6843echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6844 { (exit 1); exit 1; }; }
6845else
6846 cat >conftest.$ac_ext <<_ACEOF
6847#line $LINENO "configure"
6848#include "confdefs.h"
6849
6850#include <libgen.h>
6851#include <string.h>
6852
6853int main(int argc, char **argv) {
6854 char *s, buf[32];
6855
6856 strncpy(buf,"/etc", 32);
6857 s = dirname(buf);
6858 if (!s || strncmp(s, "/", 32) != 0) {
6859 exit(1);
6860 } else {
6861 exit(0);
6862 }
6863}
6864
6865_ACEOF
6866rm -f conftest$ac_exeext
6867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6868 (eval $ac_link) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_have_broken_dirname="no"
6878else
6879 echo "$as_me: program exited with status $ac_status" >&5
6880echo "$as_me: failed program was:" >&5
6881cat conftest.$ac_ext >&5
6882( exit $ac_status )
6883 ac_cv_have_broken_dirname="yes"
6884
6885fi
6886rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6887fi
6888 LIBS="$save_LIBS"
6889
6890fi
6891echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
6892echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
6893 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
6894 LIBS="$LIBS -lgen"
6895 cat >>confdefs.h <<\_ACEOF
6896@%:@define HAVE_DIRNAME 1
6897_ACEOF
6898
6899
6900for ac_header in libgen.h
6901do
6902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6903if eval "test \"\${$as_ac_Header+set}\" = set"; then
6904 echo "$as_me:$LINENO: checking for $ac_header" >&5
6905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6906if eval "test \"\${$as_ac_Header+set}\" = set"; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908fi
6909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6911else
6912 # Is the header compilable?
6913echo "$as_me:$LINENO: checking $ac_header usability" >&5
6914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6915cat >conftest.$ac_ext <<_ACEOF
6916#line $LINENO "configure"
6917#include "confdefs.h"
6918$ac_includes_default
6919@%:@include <$ac_header>
6920_ACEOF
6921rm -f conftest.$ac_objext
6922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_header_compiler=yes
6934else
6935 echo "$as_me: failed program was:" >&5
6936cat conftest.$ac_ext >&5
6937ac_header_compiler=no
6938fi
6939rm -f conftest.$ac_objext conftest.$ac_ext
6940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6941echo "${ECHO_T}$ac_header_compiler" >&6
6942
6943# Is the header present?
6944echo "$as_me:$LINENO: checking $ac_header presence" >&5
6945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6946cat >conftest.$ac_ext <<_ACEOF
6947#line $LINENO "configure"
6948#include "confdefs.h"
6949@%:@include <$ac_header>
6950_ACEOF
6951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6953 ac_status=$?
6954 egrep -v '^ *\+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev/null; then
6959 if test -s conftest.err; then
6960 ac_cpp_err=$ac_c_preproc_warn_flag
6961 else
6962 ac_cpp_err=
6963 fi
6964else
6965 ac_cpp_err=yes
6966fi
6967if test -z "$ac_cpp_err"; then
6968 ac_header_preproc=yes
6969else
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 ac_header_preproc=no
6973fi
6974rm -f conftest.err conftest.$ac_ext
6975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6976echo "${ECHO_T}$ac_header_preproc" >&6
6977
6978# So? What about this header?
6979case $ac_header_compiler:$ac_header_preproc in
6980 yes:no )
6981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6985 no:yes )
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6992esac
6993echo "$as_me:$LINENO: checking for $ac_header" >&5
6994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998 eval "$as_ac_Header=$ac_header_preproc"
6999fi
7000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002
7003fi
7004if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007_ACEOF
7008
7009fi
7010
7011done
7012
7013 fi
7014
7015fi
7016
7017
7018fi
7019done
7020
7021
7022
7023
7024for ac_func in gettimeofday time
7025do
7026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7027echo "$as_me:$LINENO: checking for $ac_func" >&5
7028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7029if eval "test \"\${$as_ac_var+set}\" = set"; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 cat >conftest.$ac_ext <<_ACEOF
7033#line $LINENO "configure"
7034#include "confdefs.h"
7035/* System header to define __stub macros and hopefully few prototypes,
7036 which can conflict with char $ac_func (); below. */
7037#include <assert.h>
7038/* Override any gcc2 internal prototype to avoid an error. */
7039#ifdef __cplusplus
7040extern "C"
7041#endif
7042/* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7044char $ac_func ();
7045char (*f) ();
7046
7047#ifdef F77_DUMMY_MAIN
7048# ifdef __cplusplus
7049 extern "C"
7050# endif
7051 int F77_DUMMY_MAIN() { return 1; }
7052#endif
7053int
7054main ()
7055{
7056/* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7060choke me
7061#else
7062f = $ac_func;
7063#endif
7064
7065 ;
7066 return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext conftest$ac_exeext
7070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 eval "$as_ac_var=yes"
7082else
7083 echo "$as_me: failed program was:" >&5
7084cat conftest.$ac_ext >&5
7085eval "$as_ac_var=no"
7086fi
7087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7088fi
7089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7091if test `eval echo '${'$as_ac_var'}'` = yes; then
7092 cat >>confdefs.h <<_ACEOF
7093@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7094_ACEOF
7095
7096fi
7097done
7098
7099
7100
7101
7102
7103
7104
7105for ac_func in endutent getutent getutid getutline pututline setutent
7106do
7107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7108echo "$as_me:$LINENO: checking for $ac_func" >&5
7109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7110if eval "test \"\${$as_ac_var+set}\" = set"; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 cat >conftest.$ac_ext <<_ACEOF
7114#line $LINENO "configure"
7115#include "confdefs.h"
7116/* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char $ac_func (); below. */
7118#include <assert.h>
7119/* Override any gcc2 internal prototype to avoid an error. */
7120#ifdef __cplusplus
7121extern "C"
7122#endif
7123/* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */
7125char $ac_func ();
7126char (*f) ();
7127
7128#ifdef F77_DUMMY_MAIN
7129# ifdef __cplusplus
7130 extern "C"
7131# endif
7132 int F77_DUMMY_MAIN() { return 1; }
7133#endif
7134int
7135main ()
7136{
7137/* The GNU C library defines this for functions which it implements
7138 to always fail with ENOSYS. Some functions are actually named
7139 something starting with __ and the normal name is an alias. */
7140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7141choke me
7142#else
7143f = $ac_func;
7144#endif
7145
7146 ;
7147 return 0;
7148}
7149_ACEOF
7150rm -f conftest.$ac_objext conftest$ac_exeext
7151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -s conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 eval "$as_ac_var=yes"
7163else
7164 echo "$as_me: failed program was:" >&5
7165cat conftest.$ac_ext >&5
7166eval "$as_ac_var=no"
7167fi
7168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7169fi
7170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7172if test `eval echo '${'$as_ac_var'}'` = yes; then
7173 cat >>confdefs.h <<_ACEOF
7174@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7175_ACEOF
7176
7177fi
7178done
7179
7180
7181for ac_func in utmpname
7182do
7183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7184echo "$as_me:$LINENO: checking for $ac_func" >&5
7185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7186if eval "test \"\${$as_ac_var+set}\" = set"; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 cat >conftest.$ac_ext <<_ACEOF
7190#line $LINENO "configure"
7191#include "confdefs.h"
7192/* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char $ac_func (); below. */
7194#include <assert.h>
7195/* Override any gcc2 internal prototype to avoid an error. */
7196#ifdef __cplusplus
7197extern "C"
7198#endif
7199/* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201char $ac_func ();
7202char (*f) ();
7203
7204#ifdef F77_DUMMY_MAIN
7205# ifdef __cplusplus
7206 extern "C"
7207# endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209#endif
7210int
7211main ()
7212{
7213/* The GNU C library defines this for functions which it implements
7214 to always fail with ENOSYS. Some functions are actually named
7215 something starting with __ and the normal name is an alias. */
7216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7217choke me
7218#else
7219f = $ac_func;
7220#endif
7221
7222 ;
7223 return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext conftest$ac_exeext
7227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -s conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 eval "$as_ac_var=yes"
7239else
7240 echo "$as_me: failed program was:" >&5
7241cat conftest.$ac_ext >&5
7242eval "$as_ac_var=no"
7243fi
7244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7245fi
7246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7248if test `eval echo '${'$as_ac_var'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7251_ACEOF
7252
7253fi
7254done
7255
7256
7257
7258
7259
7260
7261for ac_func in endutxent getutxent getutxid getutxline pututxline
7262do
7263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7264echo "$as_me:$LINENO: checking for $ac_func" >&5
7265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7266if eval "test \"\${$as_ac_var+set}\" = set"; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 cat >conftest.$ac_ext <<_ACEOF
7270#line $LINENO "configure"
7271#include "confdefs.h"
7272/* System header to define __stub macros and hopefully few prototypes,
7273 which can conflict with char $ac_func (); below. */
7274#include <assert.h>
7275/* Override any gcc2 internal prototype to avoid an error. */
7276#ifdef __cplusplus
7277extern "C"
7278#endif
7279/* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7281char $ac_func ();
7282char (*f) ();
7283
7284#ifdef F77_DUMMY_MAIN
7285# ifdef __cplusplus
7286 extern "C"
7287# endif
7288 int F77_DUMMY_MAIN() { return 1; }
7289#endif
7290int
7291main ()
7292{
7293/* The GNU C library defines this for functions which it implements
7294 to always fail with ENOSYS. Some functions are actually named
7295 something starting with __ and the normal name is an alias. */
7296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7297choke me
7298#else
7299f = $ac_func;
7300#endif
7301
7302 ;
7303 return 0;
7304}
7305_ACEOF
7306rm -f conftest.$ac_objext conftest$ac_exeext
7307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 eval "$as_ac_var=yes"
7319else
7320 echo "$as_me: failed program was:" >&5
7321cat conftest.$ac_ext >&5
7322eval "$as_ac_var=no"
7323fi
7324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7325fi
7326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7328if test `eval echo '${'$as_ac_var'}'` = yes; then
7329 cat >>confdefs.h <<_ACEOF
7330@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7331_ACEOF
7332
7333fi
7334done
7335
7336
7337
7338for ac_func in setutxent utmpxname
7339do
7340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7341echo "$as_me:$LINENO: checking for $ac_func" >&5
7342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7343if eval "test \"\${$as_ac_var+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 cat >conftest.$ac_ext <<_ACEOF
7347#line $LINENO "configure"
7348#include "confdefs.h"
7349/* System header to define __stub macros and hopefully few prototypes,
7350 which can conflict with char $ac_func (); below. */
7351#include <assert.h>
7352/* Override any gcc2 internal prototype to avoid an error. */
7353#ifdef __cplusplus
7354extern "C"
7355#endif
7356/* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358char $ac_func ();
7359char (*f) ();
7360
7361#ifdef F77_DUMMY_MAIN
7362# ifdef __cplusplus
7363 extern "C"
7364# endif
7365 int F77_DUMMY_MAIN() { return 1; }
7366#endif
7367int
7368main ()
7369{
7370/* The GNU C library defines this for functions which it implements
7371 to always fail with ENOSYS. Some functions are actually named
7372 something starting with __ and the normal name is an alias. */
7373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7374choke me
7375#else
7376f = $ac_func;
7377#endif
7378
7379 ;
7380 return 0;
7381}
7382_ACEOF
7383rm -f conftest.$ac_objext conftest$ac_exeext
7384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 eval "$as_ac_var=yes"
7396else
7397 echo "$as_me: failed program was:" >&5
7398cat conftest.$ac_ext >&5
7399eval "$as_ac_var=no"
7400fi
7401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7402fi
7403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7405if test `eval echo '${'$as_ac_var'}'` = yes; then
7406 cat >>confdefs.h <<_ACEOF
7407@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7408_ACEOF
7409
7410fi
7411done
7412
7413
700318f3 7414echo "$as_me:$LINENO: checking for daemon" >&5
7415echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7416if test "${ac_cv_func_daemon+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 cat >conftest.$ac_ext <<_ACEOF
7420#line $LINENO "configure"
7421#include "confdefs.h"
7422/* System header to define __stub macros and hopefully few prototypes,
7423 which can conflict with char daemon (); below. */
7424#include <assert.h>
7425/* Override any gcc2 internal prototype to avoid an error. */
7426#ifdef __cplusplus
7427extern "C"
7428#endif
7429/* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7431char daemon ();
7432char (*f) ();
7433
7434#ifdef F77_DUMMY_MAIN
7435# ifdef __cplusplus
7436 extern "C"
7437# endif
7438 int F77_DUMMY_MAIN() { return 1; }
7439#endif
7440int
7441main ()
7442{
7443/* The GNU C library defines this for functions which it implements
7444 to always fail with ENOSYS. Some functions are actually named
7445 something starting with __ and the normal name is an alias. */
7446#if defined (__stub_daemon) || defined (__stub___daemon)
7447choke me
7448#else
7449f = daemon;
7450#endif
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext conftest$ac_exeext
7457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 (eval $ac_link) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -s conftest$ac_exeext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_func_daemon=yes
7469else
7470 echo "$as_me: failed program was:" >&5
7471cat conftest.$ac_ext >&5
7472ac_cv_func_daemon=no
7473fi
7474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7475fi
7476echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7477echo "${ECHO_T}$ac_cv_func_daemon" >&6
7478if test $ac_cv_func_daemon = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480@%:@define HAVE_DAEMON 1
7481_ACEOF
7482
7483else
7484 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7485echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7486if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 ac_check_lib_save_LIBS=$LIBS
7490LIBS="-lbsd $LIBS"
7491cat >conftest.$ac_ext <<_ACEOF
7492#line $LINENO "configure"
7493#include "confdefs.h"
7494
7495/* Override any gcc2 internal prototype to avoid an error. */
7496#ifdef __cplusplus
7497extern "C"
7498#endif
7499/* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7501char daemon ();
7502#ifdef F77_DUMMY_MAIN
7503# ifdef __cplusplus
7504 extern "C"
7505# endif
7506 int F77_DUMMY_MAIN() { return 1; }
7507#endif
7508int
7509main ()
7510{
7511daemon ();
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext conftest$ac_exeext
7517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_lib_bsd_daemon=yes
7529else
7530 echo "$as_me: failed program was:" >&5
7531cat conftest.$ac_ext >&5
7532ac_cv_lib_bsd_daemon=no
7533fi
7534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7535LIBS=$ac_check_lib_save_LIBS
7536fi
7537echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7538echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7539if test $ac_cv_lib_bsd_daemon = yes; then
7540 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7541@%:@define HAVE_DAEMON 1
7542_ACEOF
7543
7544fi
7545
7546
7547fi
7548
7549
7550echo "$as_me:$LINENO: checking for getpagesize" >&5
7551echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7552if test "${ac_cv_func_getpagesize+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 cat >conftest.$ac_ext <<_ACEOF
7556#line $LINENO "configure"
7557#include "confdefs.h"
7558/* System header to define __stub macros and hopefully few prototypes,
7559 which can conflict with char getpagesize (); below. */
7560#include <assert.h>
7561/* Override any gcc2 internal prototype to avoid an error. */
7562#ifdef __cplusplus
7563extern "C"
7564#endif
7565/* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567char getpagesize ();
7568char (*f) ();
7569
7570#ifdef F77_DUMMY_MAIN
7571# ifdef __cplusplus
7572 extern "C"
7573# endif
7574 int F77_DUMMY_MAIN() { return 1; }
7575#endif
7576int
7577main ()
7578{
7579/* The GNU C library defines this for functions which it implements
7580 to always fail with ENOSYS. Some functions are actually named
7581 something starting with __ and the normal name is an alias. */
7582#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7583choke me
7584#else
7585f = getpagesize;
7586#endif
7587
7588 ;
7589 return 0;
7590}
7591_ACEOF
7592rm -f conftest.$ac_objext conftest$ac_exeext
7593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_func_getpagesize=yes
7605else
7606 echo "$as_me: failed program was:" >&5
7607cat conftest.$ac_ext >&5
7608ac_cv_func_getpagesize=no
7609fi
7610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611fi
7612echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7613echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7614if test $ac_cv_func_getpagesize = yes; then
7615 cat >>confdefs.h <<\_ACEOF
7616@%:@define HAVE_GETPAGESIZE 1
7617_ACEOF
7618
7619else
7620 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7621echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7622if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 ac_check_lib_save_LIBS=$LIBS
7626LIBS="-lucb $LIBS"
7627cat >conftest.$ac_ext <<_ACEOF
7628#line $LINENO "configure"
7629#include "confdefs.h"
7630
7631/* Override any gcc2 internal prototype to avoid an error. */
7632#ifdef __cplusplus
7633extern "C"
7634#endif
7635/* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637char getpagesize ();
7638#ifdef F77_DUMMY_MAIN
7639# ifdef __cplusplus
7640 extern "C"
7641# endif
7642 int F77_DUMMY_MAIN() { return 1; }
7643#endif
7644int
7645main ()
7646{
7647getpagesize ();
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_lib_ucb_getpagesize=yes
7665else
7666 echo "$as_me: failed program was:" >&5
7667cat conftest.$ac_ext >&5
7668ac_cv_lib_ucb_getpagesize=no
7669fi
7670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7671LIBS=$ac_check_lib_save_LIBS
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7674echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7675if test $ac_cv_lib_ucb_getpagesize = yes; then
7676 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7677@%:@define HAVE_GETPAGESIZE 1
7678_ACEOF
7679
7680fi
7681
7682
7683fi
7684
7685
7686# Check for broken snprintf
7687if test "x$ac_cv_func_snprintf" = "xyes" ; then
7688 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7689echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7690 if test "$cross_compiling" = yes; then
7691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7692echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7693 { (exit 1); exit 1; }; }
7694else
7695 cat >conftest.$ac_ext <<_ACEOF
7696#line $LINENO "configure"
7697#include "confdefs.h"
7698
7699#include <stdio.h>
7700int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
7701
7702_ACEOF
7703rm -f conftest$ac_exeext
7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 echo "$as_me:$LINENO: result: yes" >&5
7715echo "${ECHO_T}yes" >&6
7716else
7717 echo "$as_me: program exited with status $ac_status" >&5
7718echo "$as_me: failed program was:" >&5
7719cat conftest.$ac_ext >&5
7720( exit $ac_status )
7721
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
7724 cat >>confdefs.h <<\_ACEOF
7725@%:@define BROKEN_SNPRINTF 1
7726_ACEOF
7727
7728 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7729echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7730
7731
7732fi
7733rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7734fi
7735fi
7736
7737echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7738echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7739if test "${ac_cv_func_getpgrp_void+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742 # Use it with a single arg.
7743cat >conftest.$ac_ext <<_ACEOF
7744#line $LINENO "configure"
7745#include "confdefs.h"
7746$ac_includes_default
7747#ifdef F77_DUMMY_MAIN
7748# ifdef __cplusplus
7749 extern "C"
7750# endif
7751 int F77_DUMMY_MAIN() { return 1; }
7752#endif
7753int
7754main ()
7755{
7756getpgrp (0);
7757 ;
7758 return 0;
7759}
7760_ACEOF
7761rm -f conftest.$ac_objext
7762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_func_getpgrp_void=no
7774else
7775 echo "$as_me: failed program was:" >&5
7776cat conftest.$ac_ext >&5
7777ac_cv_func_getpgrp_void=yes
7778fi
7779rm -f conftest.$ac_objext conftest.$ac_ext
7780
7781fi
7782echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
7783echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
7784if test $ac_cv_func_getpgrp_void = yes; then
7785
7786cat >>confdefs.h <<\_ACEOF
7787@%:@define GETPGRP_VOID 1
7788_ACEOF
7789
7790fi
7791
7792
7793# Check for PAM libs
7794PAM_MSG="no"
7795
7796# Check whether --with-pam or --without-pam was given.
7797if test "${with_pam+set}" = set; then
7798 withval="$with_pam"
7799
7800 if test "x$withval" != "xno" ; then
7801 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
7802 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
7803echo "$as_me: error: PAM headers not found" >&2;}
7804 { (exit 1); exit 1; }; }
7805 fi
7806
7807
7808echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7809echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7810if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 ac_check_lib_save_LIBS=$LIBS
7814LIBS="-ldl $LIBS"
7815cat >conftest.$ac_ext <<_ACEOF
7816#line $LINENO "configure"
7817#include "confdefs.h"
7818
7819/* Override any gcc2 internal prototype to avoid an error. */
7820#ifdef __cplusplus
7821extern "C"
7822#endif
7823/* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7825char dlopen ();
7826#ifdef F77_DUMMY_MAIN
7827# ifdef __cplusplus
7828 extern "C"
7829# endif
7830 int F77_DUMMY_MAIN() { return 1; }
7831#endif
7832int
7833main ()
7834{
7835dlopen ();
7836 ;
7837 return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext conftest$ac_exeext
7841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842 (eval $ac_link) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_lib_dl_dlopen=yes
7853else
7854 echo "$as_me: failed program was:" >&5
7855cat conftest.$ac_ext >&5
7856ac_cv_lib_dl_dlopen=no
7857fi
7858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7859LIBS=$ac_check_lib_save_LIBS
7860fi
7861echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7862echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7863if test $ac_cv_lib_dl_dlopen = yes; then
7864 cat >>confdefs.h <<_ACEOF
7865@%:@define HAVE_LIBDL 1
7866_ACEOF
7867
7868 LIBS="-ldl $LIBS"
7869
7870fi
7871
7872
7873echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
7874echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
7875if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 ac_check_lib_save_LIBS=$LIBS
7879LIBS="-lpam $LIBS"
7880cat >conftest.$ac_ext <<_ACEOF
7881#line $LINENO "configure"
7882#include "confdefs.h"
7883
7884/* Override any gcc2 internal prototype to avoid an error. */
7885#ifdef __cplusplus
7886extern "C"
7887#endif
7888/* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7890char pam_set_item ();
7891#ifdef F77_DUMMY_MAIN
7892# ifdef __cplusplus
7893 extern "C"
7894# endif
7895 int F77_DUMMY_MAIN() { return 1; }
7896#endif
7897int
7898main ()
7899{
7900pam_set_item ();
7901 ;
7902 return 0;
7903}
7904_ACEOF
7905rm -f conftest.$ac_objext conftest$ac_exeext
7906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_cv_lib_pam_pam_set_item=yes
7918else
7919 echo "$as_me: failed program was:" >&5
7920cat conftest.$ac_ext >&5
7921ac_cv_lib_pam_pam_set_item=no
7922fi
7923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7924LIBS=$ac_check_lib_save_LIBS
7925fi
7926echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
7927echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
7928if test $ac_cv_lib_pam_pam_set_item = yes; then
7929 cat >>confdefs.h <<_ACEOF
7930@%:@define HAVE_LIBPAM 1
7931_ACEOF
7932
7933 LIBS="-lpam $LIBS"
7934
7935else
7936 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
7937echo "$as_me: error: *** libpam missing" >&2;}
7938 { (exit 1); exit 1; }; }
7939fi
7940
7941
7942for ac_func in pam_getenvlist
7943do
7944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7945echo "$as_me:$LINENO: checking for $ac_func" >&5
7946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7947if eval "test \"\${$as_ac_var+set}\" = set"; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 cat >conftest.$ac_ext <<_ACEOF
7951#line $LINENO "configure"
7952#include "confdefs.h"
7953/* System header to define __stub macros and hopefully few prototypes,
7954 which can conflict with char $ac_func (); below. */
7955#include <assert.h>
7956/* Override any gcc2 internal prototype to avoid an error. */
7957#ifdef __cplusplus
7958extern "C"
7959#endif
7960/* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7962char $ac_func ();
7963char (*f) ();
7964
7965#ifdef F77_DUMMY_MAIN
7966# ifdef __cplusplus
7967 extern "C"
7968# endif
7969 int F77_DUMMY_MAIN() { return 1; }
7970#endif
7971int
7972main ()
7973{
7974/* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7978choke me
7979#else
7980f = $ac_func;
7981#endif
7982
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -s conftest$ac_exeext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 eval "$as_ac_var=yes"
8000else
8001 echo "$as_me: failed program was:" >&5
8002cat conftest.$ac_ext >&5
8003eval "$as_ac_var=no"
8004fi
8005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8006fi
8007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8009if test `eval echo '${'$as_ac_var'}'` = yes; then
8010 cat >>confdefs.h <<_ACEOF
8011@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8012_ACEOF
8013
8014fi
8015done
8016
8017
8018 disable_shadow=yes
8019 PAM_MSG="yes"
8020
8021 cat >>confdefs.h <<\_ACEOF
8022@%:@define USE_PAM 1
8023_ACEOF
8024
8025 if test $ac_cv_lib_dl_dlopen = yes; then
8026 LIBPAM="-lpam -ldl"
8027 else
8028 LIBPAM="-lpam"
8029 fi
8030
8031 fi
8032
8033
8034fi;
8035
8036# Check for older PAM
8037if test "x$PAM_MSG" = "xyes" ; then
8038 # Check PAM strerror arguments (old PAM)
8039 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8040echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042#line $LINENO "configure"
8043#include "confdefs.h"
8044
8045#include <stdlib.h>
8046#include <security/pam_appl.h>
8047
8048#ifdef F77_DUMMY_MAIN
8049# ifdef __cplusplus
8050 extern "C"
8051# endif
8052 int F77_DUMMY_MAIN() { return 1; }
8053#endif
8054int
8055main ()
8056{
8057(void)pam_strerror((pam_handle_t *)NULL, -1);
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076else
8077 echo "$as_me: failed program was:" >&5
8078cat conftest.$ac_ext >&5
8079
8080 cat >>confdefs.h <<\_ACEOF
8081@%:@define HAVE_OLD_PAM 1
8082_ACEOF
8083
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 PAM_MSG="yes (old library)"
8087
8088
8089fi
8090rm -f conftest.$ac_objext conftest.$ac_ext
8091fi
8092
8093# Search for OpenSSL
8094saved_CPPFLAGS="$CPPFLAGS"
8095saved_LDFLAGS="$LDFLAGS"
8096
8097# Check whether --with-ssl-dir or --without-ssl-dir was given.
8098if test "${with_ssl_dir+set}" = set; then
8099 withval="$with_ssl_dir"
8100
8101 if test "x$withval" != "xno" ; then
8102 if test -d "$withval/lib"; then
8103 if test -n "${need_dash_r}"; then
8104 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8105 else
8106 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8107 fi
8108 else
8109 if test -n "${need_dash_r}"; then
8110 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8111 else
8112 LDFLAGS="-L${withval} ${LDFLAGS}"
8113 fi
8114 fi
8115 if test -d "$withval/include"; then
8116 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8117 else
8118 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8119 fi
8120 fi
8121
8122
8123fi;
8124LIBS="$LIBS -lcrypto"
8125cat >conftest.$ac_ext <<_ACEOF
8126#line $LINENO "configure"
8127#include "confdefs.h"
8128
8129/* Override any gcc2 internal prototype to avoid an error. */
8130#ifdef __cplusplus
8131extern "C"
8132#endif
8133/* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135char RAND_add ();
8136#ifdef F77_DUMMY_MAIN
8137# ifdef __cplusplus
8138 extern "C"
8139# endif
8140 int F77_DUMMY_MAIN() { return 1; }
8141#endif
8142int
8143main ()
8144{
8145RAND_add ();
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150rm -f conftest.$ac_objext conftest$ac_exeext
8151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8152 (eval $ac_link) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -s conftest$ac_exeext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 cat >>confdefs.h <<\_ACEOF
8163@%:@define HAVE_OPENSSL 1
8164_ACEOF
8165
8166else
8167 echo "$as_me: failed program was:" >&5
8168cat conftest.$ac_ext >&5
8169
8170 if test -n "${need_dash_r}"; then
8171 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8172 else
8173 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8174 fi
8175 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8176 cat >conftest.$ac_ext <<_ACEOF
8177#line $LINENO "configure"
8178#include "confdefs.h"
8179
8180/* Override any gcc2 internal prototype to avoid an error. */
8181#ifdef __cplusplus
8182extern "C"
8183#endif
8184/* We use char because int might match the return type of a gcc2
8185 builtin and then its argument prototype would still apply. */
8186char RAND_add ();
8187#ifdef F77_DUMMY_MAIN
8188# ifdef __cplusplus
8189 extern "C"
8190# endif
8191 int F77_DUMMY_MAIN() { return 1; }
8192#endif
8193int
8194main ()
8195{
8196RAND_add ();
8197 ;
8198 return 0;
8199}
8200_ACEOF
8201rm -f conftest.$ac_objext conftest$ac_exeext
8202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -s conftest$ac_exeext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 cat >>confdefs.h <<\_ACEOF
8214@%:@define HAVE_OPENSSL 1
8215_ACEOF
8216
8217else
8218 echo "$as_me: failed program was:" >&5
8219cat conftest.$ac_ext >&5
8220
8221 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8222echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8223 { (exit 1); exit 1; }; }
8224
8225
8226fi
8227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228
8229
8230fi
8231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8232
8233
8234# Sanity check OpenSSL headers
8235echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8236echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8237if test "$cross_compiling" = yes; then
8238 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8239echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8240 { (exit 1); exit 1; }; }
8241else
8242 cat >conftest.$ac_ext <<_ACEOF
8243#line $LINENO "configure"
8244#include "confdefs.h"
8245
8246#include <string.h>
8247#include <openssl/opensslv.h>
8248int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8249
8250_ACEOF
8251rm -f conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262
8263 echo "$as_me:$LINENO: result: yes" >&5
8264echo "${ECHO_T}yes" >&6
8265
8266else
8267 echo "$as_me: program exited with status $ac_status" >&5
8268echo "$as_me: failed program was:" >&5
8269cat conftest.$ac_ext >&5
8270( exit $ac_status )
8271
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8275echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8276 { (exit 1); exit 1; }; }
8277
8278
8279fi
8280rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8281fi
8282
8283# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8284# version in OpenSSL. Skip this for PAM
8285if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8286 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8287echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8288if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290else
8291 ac_check_lib_save_LIBS=$LIBS
8292LIBS="-lcrypt $LIBS"
8293cat >conftest.$ac_ext <<_ACEOF
8294#line $LINENO "configure"
8295#include "confdefs.h"
8296
8297/* Override any gcc2 internal prototype to avoid an error. */
8298#ifdef __cplusplus
8299extern "C"
8300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char crypt ();
8304#ifdef F77_DUMMY_MAIN
8305# ifdef __cplusplus
8306 extern "C"
8307# endif
8308 int F77_DUMMY_MAIN() { return 1; }
8309#endif
8310int
8311main ()
8312{
8313crypt ();
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318rm -f conftest.$ac_objext conftest$ac_exeext
8319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_lib_crypt_crypt=yes
8331else
8332 echo "$as_me: failed program was:" >&5
8333cat conftest.$ac_ext >&5
8334ac_cv_lib_crypt_crypt=no
8335fi
8336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8337LIBS=$ac_check_lib_save_LIBS
8338fi
8339echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8340echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8341if test $ac_cv_lib_crypt_crypt = yes; then
8342 LIBS="$LIBS -lcrypt"
8343fi
8344
8345fi
8346
8347
8348### Configure cryptographic random number support
8349
8350# Check wheter OpenSSL seeds itself
8351echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8352echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8353if test "$cross_compiling" = yes; then
8354 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8355echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8356 { (exit 1); exit 1; }; }
8357else
8358 cat >conftest.$ac_ext <<_ACEOF
8359#line $LINENO "configure"
8360#include "confdefs.h"
8361
8362#include <string.h>
8363#include <openssl/rand.h>
8364int main(void) { return(RAND_status() == 1 ? 0 : 1); }
8365
8366_ACEOF
8367rm -f conftest$ac_exeext
8368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378
8379 OPENSSL_SEEDS_ITSELF=yes
8380 echo "$as_me:$LINENO: result: yes" >&5
8381echo "${ECHO_T}yes" >&6
8382
8383else
8384 echo "$as_me: program exited with status $ac_status" >&5
8385echo "$as_me: failed program was:" >&5
8386cat conftest.$ac_ext >&5
8387( exit $ac_status )
8388
8389 echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6
8391 # Default to use of the rand helper if OpenSSL doesn't
8392 # seed itself
8393 USE_RAND_HELPER=yes
8394
8395
8396fi
8397rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8398fi
8399
8400
8401# Do we want to force the use of the rand helper?
8402
8403# Check whether --with-rand-helper or --without-rand-helper was given.
8404if test "${with_rand_helper+set}" = set; then
8405 withval="$with_rand_helper"
8406
8407 if test "x$withval" = "xno" ; then
8408 # Force use of OpenSSL's internal RNG, even if
8409 # the previous test showed it to be unseeded.
8410 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8411 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8412echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8413 OPENSSL_SEEDS_ITSELF=yes
8414 USE_RAND_HELPER=""
8415 fi
8416 else
8417 USE_RAND_HELPER=yes
8418 fi
8419
8420fi;
8421
8422# Which randomness source do we use?
8423if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8424 # OpenSSL only
8425 cat >>confdefs.h <<\_ACEOF
8426@%:@define OPENSSL_PRNG_ONLY 1
8427_ACEOF
8428
8429 RAND_MSG="OpenSSL internal ONLY"
8430 INSTALL_SSH_RAND_HELPER=""
8431elif test ! -z "$USE_RAND_HELPER" ; then
8432 # install rand helper
8433 RAND_MSG="ssh-rand-helper"
8434 INSTALL_SSH_RAND_HELPER="yes"
8435fi
8436
8437
8438### Configuration of ssh-rand-helper
8439
8440# PRNGD TCP socket
8441
8442# Check whether --with-prngd-port or --without-prngd-port was given.
8443if test "${with_prngd_port+set}" = set; then
8444 withval="$with_prngd_port"
8445
8446 case "$withval" in
8447 no)
8448 withval=""
8449 ;;
8450 [0-9]*)
8451 ;;
8452 *)
8453 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8454echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8455 { (exit 1); exit 1; }; }
8456 ;;
8457 esac
8458 if test ! -z "$withval" ; then
8459 PRNGD_PORT="$withval"
8460 cat >>confdefs.h <<_ACEOF
8461@%:@define PRNGD_PORT $PRNGD_PORT
8462_ACEOF
8463
8464 fi
8465
8466
8467fi;
8468
8469# PRNGD Unix domain socket
8470
8471# Check whether --with-prngd-socket or --without-prngd-socket was given.
8472if test "${with_prngd_socket+set}" = set; then
8473 withval="$with_prngd_socket"
8474
8475 case "$withval" in
8476 yes)
8477 withval="/var/run/egd-pool"
8478 ;;
8479 no)
8480 withval=""
8481 ;;
8482 /*)
8483 ;;
8484 *)
8485 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8486echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8487 { (exit 1); exit 1; }; }
8488 ;;
8489 esac
8490
8491 if test ! -z "$withval" ; then
8492 if test ! -z "$PRNGD_PORT" ; then
8493 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8494echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8495 { (exit 1); exit 1; }; }
8496 fi
8497 if test ! -r "$withval" ; then
8498 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8499echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8500 fi
8501 PRNGD_SOCKET="$withval"
8502 cat >>confdefs.h <<_ACEOF
8503@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8504_ACEOF
8505
8506 fi
8507
8508else
8509
8510 # Check for existing socket only if we don't have a random device already
8511 if test "$USE_RAND_HELPER" = yes ; then
8512 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8513echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8514 # Insert other locations here
8515 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8516 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8517 PRNGD_SOCKET="$sock"
8518 cat >>confdefs.h <<_ACEOF
8519@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8520_ACEOF
8521
8522 break;
8523 fi
8524 done
8525 if test ! -z "$PRNGD_SOCKET" ; then
8526 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8527echo "${ECHO_T}$PRNGD_SOCKET" >&6
8528 else
8529 echo "$as_me:$LINENO: result: not found" >&5
8530echo "${ECHO_T}not found" >&6
8531 fi
8532 fi
8533
8534
8535fi;
8536
8537# Change default command timeout for hashing entropy source
8538entropy_timeout=200
8539
8540# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8541if test "${with_entropy_timeout+set}" = set; then
8542 withval="$with_entropy_timeout"
8543
8544 if test "x$withval" != "xno" ; then
8545 entropy_timeout=$withval
8546 fi
8547
8548
8549fi;
8550cat >>confdefs.h <<_ACEOF
8551@%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8552_ACEOF
8553
8554
680cee3b 8555SSH_PRIVSEP_USER=sshd
700318f3 8556
8557# Check whether --with-privsep-user or --without-privsep-user was given.
8558if test "${with_privsep_user+set}" = set; then
8559 withval="$with_privsep_user"
8560
8561 if test -n "$withval"; then
680cee3b 8562 SSH_PRIVSEP_USER=$withval
700318f3 8563 fi
8564
8565
8566fi;
8567cat >>confdefs.h <<_ACEOF
680cee3b 8568@%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
700318f3 8569_ACEOF
8570
8571
680cee3b 8572
700318f3 8573# We do this little dance with the search path to insure
8574# that programs that we select for use by installed programs
8575# (which may be run by the super-user) come from trusted
8576# locations before they come from the user's private area.
8577# This should help avoid accidentally configuring some
8578# random version of a program in someone's personal bin.
8579
8580OPATH=$PATH
8581PATH=/bin:/usr/bin
8582test -h /bin 2> /dev/null && PATH=/usr/bin
8583test -d /sbin && PATH=$PATH:/sbin
8584test -d /usr/sbin && PATH=$PATH:/usr/sbin
8585PATH=$PATH:/etc:$OPATH
8586
8587# These programs are used by the command hashing source to gather entropy
8588
8589 # Extract the first word of "ls", so it can be a program name with args.
8590set dummy ls; ac_word=$2
8591echo "$as_me:$LINENO: checking for $ac_word" >&5
8592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8593if test "${ac_cv_path_PROG_LS+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 case $PROG_LS in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
8609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612done
8613done
8614
8615 ;;
8616esac
8617fi
8618PROG_LS=$ac_cv_path_PROG_LS
8619
8620if test -n "$PROG_LS"; then
8621 echo "$as_me:$LINENO: result: $PROG_LS" >&5
8622echo "${ECHO_T}$PROG_LS" >&6
8623else
8624 echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6
8626fi
8627
8628 if test -z "$PROG_LS" ; then
8629 PROG_LS="undef"
8630 fi
8631
8632
8633
8634 # Extract the first word of "netstat", so it can be a program name with args.
8635set dummy netstat; ac_word=$2
8636echo "$as_me:$LINENO: checking for $ac_word" >&5
8637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8638if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641 case $PROG_NETSTAT in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
8644 ;;
8645 *)
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657done
8658done
8659
8660 ;;
8661esac
8662fi
8663PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
8664
8665if test -n "$PROG_NETSTAT"; then
8666 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
8667echo "${ECHO_T}$PROG_NETSTAT" >&6
8668else
8669 echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6
8671fi
8672
8673 if test -z "$PROG_NETSTAT" ; then
8674 PROG_NETSTAT="undef"
8675 fi
8676
8677
8678
8679 # Extract the first word of "arp", so it can be a program name with args.
8680set dummy arp; ac_word=$2
8681echo "$as_me:$LINENO: checking for $ac_word" >&5
8682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8683if test "${ac_cv_path_PROG_ARP+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686 case $PROG_ARP in
8687 [\\/]* | ?:[\\/]*)
8688 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
8689 ;;
8690 *)
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702done
8703done
8704
8705 ;;
8706esac
8707fi
8708PROG_ARP=$ac_cv_path_PROG_ARP
8709
8710if test -n "$PROG_ARP"; then
8711 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
8712echo "${ECHO_T}$PROG_ARP" >&6
8713else
8714 echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6
8716fi
8717
8718 if test -z "$PROG_ARP" ; then
8719 PROG_ARP="undef"
8720 fi
8721
8722
8723
8724 # Extract the first word of "ifconfig", so it can be a program name with args.
8725set dummy ifconfig; ac_word=$2
8726echo "$as_me:$LINENO: checking for $ac_word" >&5
8727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730else
8731 case $PROG_IFCONFIG in
8732 [\\/]* | ?:[\\/]*)
8733 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
8734 ;;
8735 *)
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
8744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747done
8748done
8749
8750 ;;
8751esac
8752fi
8753PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
8754
8755if test -n "$PROG_IFCONFIG"; then
8756 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
8757echo "${ECHO_T}$PROG_IFCONFIG" >&6
8758else
8759 echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
8761fi
8762
8763 if test -z "$PROG_IFCONFIG" ; then
8764 PROG_IFCONFIG="undef"
8765 fi
8766
8767
8768
8769 # Extract the first word of "jstat", so it can be a program name with args.
8770set dummy jstat; ac_word=$2
8771echo "$as_me:$LINENO: checking for $ac_word" >&5
8772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8773if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776 case $PROG_JSTAT in
8777 [\\/]* | ?:[\\/]*)
8778 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
8779 ;;
8780 *)
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8788 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
8789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8791 fi
8792done
8793done
8794
8795 ;;
8796esac
8797fi
8798PROG_JSTAT=$ac_cv_path_PROG_JSTAT
8799
8800if test -n "$PROG_JSTAT"; then
8801 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
8802echo "${ECHO_T}$PROG_JSTAT" >&6
8803else
8804 echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6
8806fi
8807
8808 if test -z "$PROG_JSTAT" ; then
8809 PROG_JSTAT="undef"
8810 fi
8811
8812
8813
8814 # Extract the first word of "ps", so it can be a program name with args.
8815set dummy ps; ac_word=$2
8816echo "$as_me:$LINENO: checking for $ac_word" >&5
8817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818if test "${ac_cv_path_PROG_PS+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821 case $PROG_PS in
8822 [\\/]* | ?:[\\/]*)
8823 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
8824 ;;
8825 *)
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827for as_dir in $PATH
8828do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8833 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837done
8838done
8839
8840 ;;
8841esac
8842fi
8843PROG_PS=$ac_cv_path_PROG_PS
8844
8845if test -n "$PROG_PS"; then
8846 echo "$as_me:$LINENO: result: $PROG_PS" >&5
8847echo "${ECHO_T}$PROG_PS" >&6
8848else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851fi
8852
8853 if test -z "$PROG_PS" ; then
8854 PROG_PS="undef"
8855 fi
8856
8857
8858
8859 # Extract the first word of "sar", so it can be a program name with args.
8860set dummy sar; ac_word=$2
8861echo "$as_me:$LINENO: checking for $ac_word" >&5
8862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863if test "${ac_cv_path_PROG_SAR+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 case $PROG_SAR in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
8869 ;;
8870 *)
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
8879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883done
8884
8885 ;;
8886esac
8887fi
8888PROG_SAR=$ac_cv_path_PROG_SAR
8889
8890if test -n "$PROG_SAR"; then
8891 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
8892echo "${ECHO_T}$PROG_SAR" >&6
8893else
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
8896fi
8897
8898 if test -z "$PROG_SAR" ; then
8899 PROG_SAR="undef"
8900 fi
8901
8902
8903
8904 # Extract the first word of "w", so it can be a program name with args.
8905set dummy w; ac_word=$2
8906echo "$as_me:$LINENO: checking for $ac_word" >&5
8907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8908if test "${ac_cv_path_PROG_W+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 case $PROG_W in
8912 [\\/]* | ?:[\\/]*)
8913 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
8914 ;;
8915 *)
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
8924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927done
8928done
8929
8930 ;;
8931esac
8932fi
8933PROG_W=$ac_cv_path_PROG_W
8934
8935if test -n "$PROG_W"; then
8936 echo "$as_me:$LINENO: result: $PROG_W" >&5
8937echo "${ECHO_T}$PROG_W" >&6
8938else
8939 echo "$as_me:$LINENO: result: no" >&5
8940echo "${ECHO_T}no" >&6
8941fi
8942
8943 if test -z "$PROG_W" ; then
8944 PROG_W="undef"
8945 fi
8946
8947
8948
8949 # Extract the first word of "who", so it can be a program name with args.
8950set dummy who; ac_word=$2
8951echo "$as_me:$LINENO: checking for $ac_word" >&5
8952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8953if test "${ac_cv_path_PROG_WHO+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 case $PROG_WHO in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
8959 ;;
8960 *)
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8968 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
8969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8971 fi
8972done
8973done
8974
8975 ;;
8976esac
8977fi
8978PROG_WHO=$ac_cv_path_PROG_WHO
8979
8980if test -n "$PROG_WHO"; then
8981 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
8982echo "${ECHO_T}$PROG_WHO" >&6
8983else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986fi
8987
8988 if test -z "$PROG_WHO" ; then
8989 PROG_WHO="undef"
8990 fi
8991
8992
8993
8994 # Extract the first word of "last", so it can be a program name with args.
8995set dummy last; ac_word=$2
8996echo "$as_me:$LINENO: checking for $ac_word" >&5
8997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8998if test "${ac_cv_path_PROG_LAST+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else
9001 case $PROG_LAST in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9004 ;;
9005 *)
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017done
9018done
9019
9020 ;;
9021esac
9022fi
9023PROG_LAST=$ac_cv_path_PROG_LAST
9024
9025if test -n "$PROG_LAST"; then
9026 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9027echo "${ECHO_T}$PROG_LAST" >&6
9028else
9029 echo "$as_me:$LINENO: result: no" >&5
9030echo "${ECHO_T}no" >&6
9031fi
9032
9033 if test -z "$PROG_LAST" ; then
9034 PROG_LAST="undef"
9035 fi
9036
9037
9038
9039 # Extract the first word of "lastlog", so it can be a program name with args.
9040set dummy lastlog; ac_word=$2
9041echo "$as_me:$LINENO: checking for $ac_word" >&5
9042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9043if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046 case $PROG_LASTLOG in
9047 [\\/]* | ?:[\\/]*)
9048 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9049 ;;
9050 *)
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062done
9063done
9064
9065 ;;
9066esac
9067fi
9068PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9069
9070if test -n "$PROG_LASTLOG"; then
9071 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9072echo "${ECHO_T}$PROG_LASTLOG" >&6
9073else
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
9076fi
9077
9078 if test -z "$PROG_LASTLOG" ; then
9079 PROG_LASTLOG="undef"
9080 fi
9081
9082
9083
9084 # Extract the first word of "df", so it can be a program name with args.
9085set dummy df; ac_word=$2
9086echo "$as_me:$LINENO: checking for $ac_word" >&5
9087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9088if test "${ac_cv_path_PROG_DF+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091 case $PROG_DF in
9092 [\\/]* | ?:[\\/]*)
9093 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9094 ;;
9095 *)
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107done
9108done
9109
9110 ;;
9111esac
9112fi
9113PROG_DF=$ac_cv_path_PROG_DF
9114
9115if test -n "$PROG_DF"; then
9116 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9117echo "${ECHO_T}$PROG_DF" >&6
9118else
9119 echo "$as_me:$LINENO: result: no" >&5
9120echo "${ECHO_T}no" >&6
9121fi
9122
9123 if test -z "$PROG_DF" ; then
9124 PROG_DF="undef"
9125 fi
9126
9127
9128
9129 # Extract the first word of "vmstat", so it can be a program name with args.
9130set dummy vmstat; ac_word=$2
9131echo "$as_me:$LINENO: checking for $ac_word" >&5
9132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9133if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136 case $PROG_VMSTAT in
9137 [\\/]* | ?:[\\/]*)
9138 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9139 ;;
9140 *)
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144 IFS=$as_save_IFS
9145 test -z "$as_dir" && as_dir=.
9146 for ac_exec_ext in '' $ac_executable_extensions; do
9147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 break 2
9151 fi
9152done
9153done
9154
9155 ;;
9156esac
9157fi
9158PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9159
9160if test -n "$PROG_VMSTAT"; then
9161 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9162echo "${ECHO_T}$PROG_VMSTAT" >&6
9163else
9164 echo "$as_me:$LINENO: result: no" >&5
9165echo "${ECHO_T}no" >&6
9166fi
9167
9168 if test -z "$PROG_VMSTAT" ; then
9169 PROG_VMSTAT="undef"
9170 fi
9171
9172
9173
9174 # Extract the first word of "uptime", so it can be a program name with args.
9175set dummy uptime; ac_word=$2
9176echo "$as_me:$LINENO: checking for $ac_word" >&5
9177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9178if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 case $PROG_UPTIME in
9182 [\\/]* | ?:[\\/]*)
9183 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9184 ;;
9185 *)
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187for as_dir in $PATH
9188do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197done
9198done
9199
9200 ;;
9201esac
9202fi
9203PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9204
9205if test -n "$PROG_UPTIME"; then
9206 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9207echo "${ECHO_T}$PROG_UPTIME" >&6
9208else
9209 echo "$as_me:$LINENO: result: no" >&5
9210echo "${ECHO_T}no" >&6
9211fi
9212
9213 if test -z "$PROG_UPTIME" ; then
9214 PROG_UPTIME="undef"
9215 fi
9216
9217
9218
9219 # Extract the first word of "ipcs", so it can be a program name with args.
9220set dummy ipcs; ac_word=$2
9221echo "$as_me:$LINENO: checking for $ac_word" >&5
9222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9223if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225else
9226 case $PROG_IPCS in
9227 [\\/]* | ?:[\\/]*)
9228 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9229 ;;
9230 *)
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9241 fi
9242done
9243done
9244
9245 ;;
9246esac
9247fi
9248PROG_IPCS=$ac_cv_path_PROG_IPCS
9249
9250if test -n "$PROG_IPCS"; then
9251 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9252echo "${ECHO_T}$PROG_IPCS" >&6
9253else
9254 echo "$as_me:$LINENO: result: no" >&5
9255echo "${ECHO_T}no" >&6
9256fi
9257
9258 if test -z "$PROG_IPCS" ; then
9259 PROG_IPCS="undef"
9260 fi
9261
9262
9263
9264 # Extract the first word of "tail", so it can be a program name with args.
9265set dummy tail; ac_word=$2
9266echo "$as_me:$LINENO: checking for $ac_word" >&5
9267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9268if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 case $PROG_TAIL in
9272 [\\/]* | ?:[\\/]*)
9273 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9274 ;;
9275 *)
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9286 fi
9287done
9288done
9289
9290 ;;
9291esac
9292fi
9293PROG_TAIL=$ac_cv_path_PROG_TAIL
9294
9295if test -n "$PROG_TAIL"; then
9296 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9297echo "${ECHO_T}$PROG_TAIL" >&6
9298else
9299 echo "$as_me:$LINENO: result: no" >&5
9300echo "${ECHO_T}no" >&6
9301fi
9302
9303 if test -z "$PROG_TAIL" ; then
9304 PROG_TAIL="undef"
9305 fi
9306
9307
9308# restore PATH
9309PATH=$OPATH
9310
9311# Where does ssh-rand-helper get its randomness from?
9312INSTALL_SSH_PRNG_CMDS=""
9313if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9314 if test ! -z "$PRNGD_PORT" ; then
9315 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9316 elif test ! -z "$PRNGD_SOCKET" ; then
9317 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9318 else
9319 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9320 RAND_HELPER_CMDHASH=yes
9321 INSTALL_SSH_PRNG_CMDS="yes"
9322 fi
9323fi
9324
9325
9326
9327# Cheap hack to ensure NEWS-OS libraries are arranged right.
9328if test ! -z "$SONY" ; then
9329 LIBS="$LIBS -liberty";
9330fi
9331
9332# Checks for data types
9333echo "$as_me:$LINENO: checking for char" >&5
9334echo $ECHO_N "checking for char... $ECHO_C" >&6
9335if test "${ac_cv_type_char+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338 cat >conftest.$ac_ext <<_ACEOF
9339#line $LINENO "configure"
9340#include "confdefs.h"
9341$ac_includes_default
9342#ifdef F77_DUMMY_MAIN
9343# ifdef __cplusplus
9344 extern "C"
9345# endif
9346 int F77_DUMMY_MAIN() { return 1; }
9347#endif
9348int
9349main ()
9350{
9351if ((char *) 0)
9352 return 0;
9353if (sizeof (char))
9354 return 0;
9355 ;
9356 return 0;
9357}
9358_ACEOF
9359rm -f conftest.$ac_objext
9360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -s conftest.$ac_objext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_type_char=yes
9372else
9373 echo "$as_me: failed program was:" >&5
9374cat conftest.$ac_ext >&5
9375ac_cv_type_char=no
9376fi
9377rm -f conftest.$ac_objext conftest.$ac_ext
9378fi
9379echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9380echo "${ECHO_T}$ac_cv_type_char" >&6
9381
9382echo "$as_me:$LINENO: checking size of char" >&5
9383echo $ECHO_N "checking size of char... $ECHO_C" >&6
9384if test "${ac_cv_sizeof_char+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387 if test "$ac_cv_type_char" = yes; then
9388 # The cast to unsigned long works around a bug in the HP C Compiler
9389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9391 # This bug is HP SR number 8606223364.
9392 if test "$cross_compiling" = yes; then
9393 # Depending upon the size, compute the lo and hi bounds.
9394cat >conftest.$ac_ext <<_ACEOF
9395#line $LINENO "configure"
9396#include "confdefs.h"
9397$ac_includes_default
9398#ifdef F77_DUMMY_MAIN
9399# ifdef __cplusplus
9400 extern "C"
9401# endif
9402 int F77_DUMMY_MAIN() { return 1; }
9403#endif
9404int
9405main ()
9406{
9407static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9408test_array @<:@0@:>@ = 0
9409
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext
9415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416 (eval $ac_compile) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -s conftest.$ac_objext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_lo=0 ac_mid=0
9427 while :; do
9428 cat >conftest.$ac_ext <<_ACEOF
9429#line $LINENO "configure"
9430#include "confdefs.h"
9431$ac_includes_default
9432#ifdef F77_DUMMY_MAIN
9433# ifdef __cplusplus
9434 extern "C"
9435# endif
9436 int F77_DUMMY_MAIN() { return 1; }
9437#endif
9438int
9439main ()
9440{
9441static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9442test_array @<:@0@:>@ = 0
9443
9444 ;
9445 return 0;
9446}
9447_ACEOF
9448rm -f conftest.$ac_objext
9449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9450 (eval $ac_compile) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 ac_hi=$ac_mid; break
9461else
9462 echo "$as_me: failed program was:" >&5
9463cat conftest.$ac_ext >&5
9464ac_lo=`expr $ac_mid + 1`
9465 if test $ac_lo -le $ac_mid; then
9466 ac_lo= ac_hi=
9467 break
9468 fi
9469 ac_mid=`expr 2 '*' $ac_mid + 1`
9470fi
9471rm -f conftest.$ac_objext conftest.$ac_ext
9472 done
9473else
9474 echo "$as_me: failed program was:" >&5
9475cat conftest.$ac_ext >&5
9476cat >conftest.$ac_ext <<_ACEOF
9477#line $LINENO "configure"
9478#include "confdefs.h"
9479$ac_includes_default
9480#ifdef F77_DUMMY_MAIN
9481# ifdef __cplusplus
9482 extern "C"
9483# endif
9484 int F77_DUMMY_MAIN() { return 1; }
9485#endif
9486int
9487main ()
9488{
9489static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9490test_array @<:@0@:>@ = 0
9491
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext
9497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_hi=-1 ac_mid=-1
9509 while :; do
9510 cat >conftest.$ac_ext <<_ACEOF
9511#line $LINENO "configure"
9512#include "confdefs.h"
9513$ac_includes_default
9514#ifdef F77_DUMMY_MAIN
9515# ifdef __cplusplus
9516 extern "C"
9517# endif
9518 int F77_DUMMY_MAIN() { return 1; }
9519#endif
9520int
9521main ()
9522{
9523static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9524test_array @<:@0@:>@ = 0
9525
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530rm -f conftest.$ac_objext
9531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_lo=$ac_mid; break
9543else
9544 echo "$as_me: failed program was:" >&5
9545cat conftest.$ac_ext >&5
9546ac_hi=`expr '(' $ac_mid ')' - 1`
9547 if test $ac_mid -le $ac_hi; then
9548 ac_lo= ac_hi=
9549 break
9550 fi
9551 ac_mid=`expr 2 '*' $ac_mid`
9552fi
9553rm -f conftest.$ac_objext conftest.$ac_ext
9554 done
9555else
9556 echo "$as_me: failed program was:" >&5
9557cat conftest.$ac_ext >&5
9558ac_lo= ac_hi=
9559fi
9560rm -f conftest.$ac_objext conftest.$ac_ext
9561fi
9562rm -f conftest.$ac_objext conftest.$ac_ext
9563# Binary search between lo and hi bounds.
9564while test "x$ac_lo" != "x$ac_hi"; do
9565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9566 cat >conftest.$ac_ext <<_ACEOF
9567#line $LINENO "configure"
9568#include "confdefs.h"
9569$ac_includes_default
9570#ifdef F77_DUMMY_MAIN
9571# ifdef __cplusplus
9572 extern "C"
9573# endif
9574 int F77_DUMMY_MAIN() { return 1; }
9575#endif
9576int
9577main ()
9578{
9579static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9580test_array @<:@0@:>@ = 0
9581
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext
9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_hi=$ac_mid
9599else
9600 echo "$as_me: failed program was:" >&5
9601cat conftest.$ac_ext >&5
9602ac_lo=`expr '(' $ac_mid ')' + 1`
9603fi
9604rm -f conftest.$ac_objext conftest.$ac_ext
9605done
9606case $ac_lo in
9607?*) ac_cv_sizeof_char=$ac_lo;;
9608'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9609echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9610 { (exit 1); exit 1; }; } ;;
9611esac
9612else
9613 if test "$cross_compiling" = yes; then
9614 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9615echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9616 { (exit 1); exit 1; }; }
9617else
9618 cat >conftest.$ac_ext <<_ACEOF
9619#line $LINENO "configure"
9620#include "confdefs.h"
9621$ac_includes_default
9622long longval () { return (long) (sizeof (char)); }
9623unsigned long ulongval () { return (long) (sizeof (char)); }
9624@%:@include <stdio.h>
9625@%:@include <stdlib.h>
9626#ifdef F77_DUMMY_MAIN
9627# ifdef __cplusplus
9628 extern "C"
9629# endif
9630 int F77_DUMMY_MAIN() { return 1; }
9631#endif
9632int
9633main ()
9634{
9635
9636 FILE *f = fopen ("conftest.val", "w");
9637 if (! f)
9638 exit (1);
9639 if (((long) (sizeof (char))) < 0)
9640 {
9641 long i = longval ();
9642 if (i != ((long) (sizeof (char))))
9643 exit (1);
9644 fprintf (f, "%ld\n", i);
9645 }
9646 else
9647 {
9648 unsigned long i = ulongval ();
9649 if (i != ((long) (sizeof (char))))
9650 exit (1);
9651 fprintf (f, "%lu\n", i);
9652 }
9653 exit (ferror (f) || fclose (f) != 0);
9654
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_sizeof_char=`cat conftest.val`
9671else
9672 echo "$as_me: program exited with status $ac_status" >&5
9673echo "$as_me: failed program was:" >&5
9674cat conftest.$ac_ext >&5
9675( exit $ac_status )
9676{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
9677echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
9678 { (exit 1); exit 1; }; }
9679fi
9680rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9681fi
9682fi
9683rm -f conftest.val
9684else
9685 ac_cv_sizeof_char=0
9686fi
9687fi
9688echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9689echo "${ECHO_T}$ac_cv_sizeof_char" >&6
9690cat >>confdefs.h <<_ACEOF
9691@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
9692_ACEOF
9693
9694
9695echo "$as_me:$LINENO: checking for short int" >&5
9696echo $ECHO_N "checking for short int... $ECHO_C" >&6
9697if test "${ac_cv_type_short_int+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700 cat >conftest.$ac_ext <<_ACEOF
9701#line $LINENO "configure"
9702#include "confdefs.h"
9703$ac_includes_default
9704#ifdef F77_DUMMY_MAIN
9705# ifdef __cplusplus
9706 extern "C"
9707# endif
9708 int F77_DUMMY_MAIN() { return 1; }
9709#endif
9710int
9711main ()
9712{
9713if ((short int *) 0)
9714 return 0;
9715if (sizeof (short int))
9716 return 0;
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext
9722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_type_short_int=yes
9734else
9735 echo "$as_me: failed program was:" >&5
9736cat conftest.$ac_ext >&5
9737ac_cv_type_short_int=no
9738fi
9739rm -f conftest.$ac_objext conftest.$ac_ext
9740fi
9741echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9742echo "${ECHO_T}$ac_cv_type_short_int" >&6
9743
9744echo "$as_me:$LINENO: checking size of short int" >&5
9745echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9746if test "${ac_cv_sizeof_short_int+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748else
9749 if test "$ac_cv_type_short_int" = yes; then
9750 # The cast to unsigned long works around a bug in the HP C Compiler
9751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9753 # This bug is HP SR number 8606223364.
9754 if test "$cross_compiling" = yes; then
9755 # Depending upon the size, compute the lo and hi bounds.
9756cat >conftest.$ac_ext <<_ACEOF
9757#line $LINENO "configure"
9758#include "confdefs.h"
9759$ac_includes_default
9760#ifdef F77_DUMMY_MAIN
9761# ifdef __cplusplus
9762 extern "C"
9763# endif
9764 int F77_DUMMY_MAIN() { return 1; }
9765#endif
9766int
9767main ()
9768{
9769static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
9770test_array @<:@0@:>@ = 0
9771
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext
9777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778 (eval $ac_compile) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_lo=0 ac_mid=0
9789 while :; do
9790 cat >conftest.$ac_ext <<_ACEOF
9791#line $LINENO "configure"
9792#include "confdefs.h"
9793$ac_includes_default
9794#ifdef F77_DUMMY_MAIN
9795# ifdef __cplusplus
9796 extern "C"
9797# endif
9798 int F77_DUMMY_MAIN() { return 1; }
9799#endif
9800int
9801main ()
9802{
9803static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9804test_array @<:@0@:>@ = 0
9805
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext
9811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -s conftest.$ac_objext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_hi=$ac_mid; break
9823else
9824 echo "$as_me: failed program was:" >&5
9825cat conftest.$ac_ext >&5
9826ac_lo=`expr $ac_mid + 1`
9827 if test $ac_lo -le $ac_mid; then
9828 ac_lo= ac_hi=
9829 break
9830 fi
9831 ac_mid=`expr 2 '*' $ac_mid + 1`
9832fi
9833rm -f conftest.$ac_objext conftest.$ac_ext
9834 done
9835else
9836 echo "$as_me: failed program was:" >&5
9837cat conftest.$ac_ext >&5
9838cat >conftest.$ac_ext <<_ACEOF
9839#line $LINENO "configure"
9840#include "confdefs.h"
9841$ac_includes_default
9842#ifdef F77_DUMMY_MAIN
9843# ifdef __cplusplus
9844 extern "C"
9845# endif
9846 int F77_DUMMY_MAIN() { return 1; }
9847#endif
9848int
9849main ()
9850{
9851static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
9852test_array @<:@0@:>@ = 0
9853
9854 ;
9855 return 0;
9856}
9857_ACEOF
9858rm -f conftest.$ac_objext
9859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -s conftest.$ac_objext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_hi=-1 ac_mid=-1
9871 while :; do
9872 cat >conftest.$ac_ext <<_ACEOF
9873#line $LINENO "configure"
9874#include "confdefs.h"
9875$ac_includes_default
9876#ifdef F77_DUMMY_MAIN
9877# ifdef __cplusplus
9878 extern "C"
9879# endif
9880 int F77_DUMMY_MAIN() { return 1; }
9881#endif
9882int
9883main ()
9884{
9885static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
9886test_array @<:@0@:>@ = 0
9887
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext
9893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_lo=$ac_mid; break
9905else
9906 echo "$as_me: failed program was:" >&5
9907cat conftest.$ac_ext >&5
9908ac_hi=`expr '(' $ac_mid ')' - 1`
9909 if test $ac_mid -le $ac_hi; then
9910 ac_lo= ac_hi=
9911 break
9912 fi
9913 ac_mid=`expr 2 '*' $ac_mid`
9914fi
9915rm -f conftest.$ac_objext conftest.$ac_ext
9916 done
9917else
9918 echo "$as_me: failed program was:" >&5
9919cat conftest.$ac_ext >&5
9920ac_lo= ac_hi=
9921fi
9922rm -f conftest.$ac_objext conftest.$ac_ext
9923fi
9924rm -f conftest.$ac_objext conftest.$ac_ext
9925# Binary search between lo and hi bounds.
9926while test "x$ac_lo" != "x$ac_hi"; do
9927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9928 cat >conftest.$ac_ext <<_ACEOF
9929#line $LINENO "configure"
9930#include "confdefs.h"
9931$ac_includes_default
9932#ifdef F77_DUMMY_MAIN
9933# ifdef __cplusplus
9934 extern "C"
9935# endif
9936 int F77_DUMMY_MAIN() { return 1; }
9937#endif
9938int
9939main ()
9940{
9941static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
9942test_array @<:@0@:>@ = 0
9943
9944 ;
9945 return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext
9949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9950 (eval $ac_compile) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -s conftest.$ac_objext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_hi=$ac_mid
9961else
9962 echo "$as_me: failed program was:" >&5
9963cat conftest.$ac_ext >&5
9964ac_lo=`expr '(' $ac_mid ')' + 1`
9965fi
9966rm -f conftest.$ac_objext conftest.$ac_ext
9967done
9968case $ac_lo in
9969?*) ac_cv_sizeof_short_int=$ac_lo;;
9970'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
9971echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
9972 { (exit 1); exit 1; }; } ;;
9973esac
9974else
9975 if test "$cross_compiling" = yes; then
9976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9977echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9978 { (exit 1); exit 1; }; }
9979else
9980 cat >conftest.$ac_ext <<_ACEOF
9981#line $LINENO "configure"
9982#include "confdefs.h"
9983$ac_includes_default
9984long longval () { return (long) (sizeof (short int)); }
9985unsigned long ulongval () { return (long) (sizeof (short int)); }
9986@%:@include <stdio.h>
9987@%:@include <stdlib.h>
9988#ifdef F77_DUMMY_MAIN
9989# ifdef __cplusplus
9990 extern "C"
9991# endif
9992 int F77_DUMMY_MAIN() { return 1; }
9993#endif
9994int
9995main ()
9996{
9997
9998 FILE *f = fopen ("conftest.val", "w");
9999 if (! f)
10000 exit (1);
10001 if (((long) (sizeof (short int))) < 0)
10002 {
10003 long i = longval ();
10004 if (i != ((long) (sizeof (short int))))
10005 exit (1);
10006 fprintf (f, "%ld\n", i);
10007 }
10008 else
10009 {
10010 unsigned long i = ulongval ();
10011 if (i != ((long) (sizeof (short int))))
10012 exit (1);
10013 fprintf (f, "%lu\n", i);
10014 }
10015 exit (ferror (f) || fclose (f) != 0);
10016
10017 ;
10018 return 0;
10019}
10020_ACEOF
10021rm -f conftest$ac_exeext
10022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_sizeof_short_int=`cat conftest.val`
10033else
10034 echo "$as_me: program exited with status $ac_status" >&5
10035echo "$as_me: failed program was:" >&5
10036cat conftest.$ac_ext >&5
10037( exit $ac_status )
10038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10039echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10040 { (exit 1); exit 1; }; }
10041fi
10042rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10043fi
10044fi
10045rm -f conftest.val
10046else
10047 ac_cv_sizeof_short_int=0
10048fi
10049fi
10050echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10051echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10052cat >>confdefs.h <<_ACEOF
10053@%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10054_ACEOF
10055
10056
10057echo "$as_me:$LINENO: checking for int" >&5
10058echo $ECHO_N "checking for int... $ECHO_C" >&6
10059if test "${ac_cv_type_int+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 cat >conftest.$ac_ext <<_ACEOF
10063#line $LINENO "configure"
10064#include "confdefs.h"
10065$ac_includes_default
10066#ifdef F77_DUMMY_MAIN
10067# ifdef __cplusplus
10068 extern "C"
10069# endif
10070 int F77_DUMMY_MAIN() { return 1; }
10071#endif
10072int
10073main ()
10074{
10075if ((int *) 0)
10076 return 0;
10077if (sizeof (int))
10078 return 0;
10079 ;
10080 return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext
10084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -s conftest.$ac_objext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_type_int=yes
10096else
10097 echo "$as_me: failed program was:" >&5
10098cat conftest.$ac_ext >&5
10099ac_cv_type_int=no
10100fi
10101rm -f conftest.$ac_objext conftest.$ac_ext
10102fi
10103echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10104echo "${ECHO_T}$ac_cv_type_int" >&6
10105
10106echo "$as_me:$LINENO: checking size of int" >&5
10107echo $ECHO_N "checking size of int... $ECHO_C" >&6
10108if test "${ac_cv_sizeof_int+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110else
10111 if test "$ac_cv_type_int" = yes; then
10112 # The cast to unsigned long works around a bug in the HP C Compiler
10113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10115 # This bug is HP SR number 8606223364.
10116 if test "$cross_compiling" = yes; then
10117 # Depending upon the size, compute the lo and hi bounds.
10118cat >conftest.$ac_ext <<_ACEOF
10119#line $LINENO "configure"
10120#include "confdefs.h"
10121$ac_includes_default
10122#ifdef F77_DUMMY_MAIN
10123# ifdef __cplusplus
10124 extern "C"
10125# endif
10126 int F77_DUMMY_MAIN() { return 1; }
10127#endif
10128int
10129main ()
10130{
10131static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10132test_array @<:@0@:>@ = 0
10133
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext
10139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest.$ac_objext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_lo=0 ac_mid=0
10151 while :; do
10152 cat >conftest.$ac_ext <<_ACEOF
10153#line $LINENO "configure"
10154#include "confdefs.h"
10155$ac_includes_default
10156#ifdef F77_DUMMY_MAIN
10157# ifdef __cplusplus
10158 extern "C"
10159# endif
10160 int F77_DUMMY_MAIN() { return 1; }
10161#endif
10162int
10163main ()
10164{
10165static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10166test_array @<:@0@:>@ = 0
10167
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext
10173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_hi=$ac_mid; break
10185else
10186 echo "$as_me: failed program was:" >&5
10187cat conftest.$ac_ext >&5
10188ac_lo=`expr $ac_mid + 1`
10189 if test $ac_lo -le $ac_mid; then
10190 ac_lo= ac_hi=
10191 break
10192 fi
10193 ac_mid=`expr 2 '*' $ac_mid + 1`
10194fi
10195rm -f conftest.$ac_objext conftest.$ac_ext
10196 done
10197else
10198 echo "$as_me: failed program was:" >&5
10199cat conftest.$ac_ext >&5
10200cat >conftest.$ac_ext <<_ACEOF
10201#line $LINENO "configure"
10202#include "confdefs.h"
10203$ac_includes_default
10204#ifdef F77_DUMMY_MAIN
10205# ifdef __cplusplus
10206 extern "C"
10207# endif
10208 int F77_DUMMY_MAIN() { return 1; }
10209#endif
10210int
10211main ()
10212{
10213static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10214test_array @<:@0@:>@ = 0
10215
10216 ;
10217 return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext
10221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_hi=-1 ac_mid=-1
10233 while :; do
10234 cat >conftest.$ac_ext <<_ACEOF
10235#line $LINENO "configure"
10236#include "confdefs.h"
10237$ac_includes_default
10238#ifdef F77_DUMMY_MAIN
10239# ifdef __cplusplus
10240 extern "C"
10241# endif
10242 int F77_DUMMY_MAIN() { return 1; }
10243#endif
10244int
10245main ()
10246{
10247static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10248test_array @<:@0@:>@ = 0
10249
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext
10255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_lo=$ac_mid; break
10267else
10268 echo "$as_me: failed program was:" >&5
10269cat conftest.$ac_ext >&5
10270ac_hi=`expr '(' $ac_mid ')' - 1`
10271 if test $ac_mid -le $ac_hi; then
10272 ac_lo= ac_hi=
10273 break
10274 fi
10275 ac_mid=`expr 2 '*' $ac_mid`
10276fi
10277rm -f conftest.$ac_objext conftest.$ac_ext
10278 done
10279else
10280 echo "$as_me: failed program was:" >&5
10281cat conftest.$ac_ext >&5
10282ac_lo= ac_hi=
10283fi
10284rm -f conftest.$ac_objext conftest.$ac_ext
10285fi
10286rm -f conftest.$ac_objext conftest.$ac_ext
10287# Binary search between lo and hi bounds.
10288while test "x$ac_lo" != "x$ac_hi"; do
10289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10290 cat >conftest.$ac_ext <<_ACEOF
10291#line $LINENO "configure"
10292#include "confdefs.h"
10293$ac_includes_default
10294#ifdef F77_DUMMY_MAIN
10295# ifdef __cplusplus
10296 extern "C"
10297# endif
10298 int F77_DUMMY_MAIN() { return 1; }
10299#endif
10300int
10301main ()
10302{
10303static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10304test_array @<:@0@:>@ = 0
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext
10311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_hi=$ac_mid
10323else
10324 echo "$as_me: failed program was:" >&5
10325cat conftest.$ac_ext >&5
10326ac_lo=`expr '(' $ac_mid ')' + 1`
10327fi
10328rm -f conftest.$ac_objext conftest.$ac_ext
10329done
10330case $ac_lo in
10331?*) ac_cv_sizeof_int=$ac_lo;;
10332'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10333echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10334 { (exit 1); exit 1; }; } ;;
10335esac
10336else
10337 if test "$cross_compiling" = yes; then
10338 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10339echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10340 { (exit 1); exit 1; }; }
10341else
10342 cat >conftest.$ac_ext <<_ACEOF
10343#line $LINENO "configure"
10344#include "confdefs.h"
10345$ac_includes_default
10346long longval () { return (long) (sizeof (int)); }
10347unsigned long ulongval () { return (long) (sizeof (int)); }
10348@%:@include <stdio.h>
10349@%:@include <stdlib.h>
10350#ifdef F77_DUMMY_MAIN
10351# ifdef __cplusplus
10352 extern "C"
10353# endif
10354 int F77_DUMMY_MAIN() { return 1; }
10355#endif
10356int
10357main ()
10358{
10359
10360 FILE *f = fopen ("conftest.val", "w");
10361 if (! f)
10362 exit (1);
10363 if (((long) (sizeof (int))) < 0)
10364 {
10365 long i = longval ();
10366 if (i != ((long) (sizeof (int))))
10367 exit (1);
10368 fprintf (f, "%ld\n", i);
10369 }
10370 else
10371 {
10372 unsigned long i = ulongval ();
10373 if (i != ((long) (sizeof (int))))
10374 exit (1);
10375 fprintf (f, "%lu\n", i);
10376 }
10377 exit (ferror (f) || fclose (f) != 0);
10378
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383rm -f conftest$ac_exeext
10384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_sizeof_int=`cat conftest.val`
10395else
10396 echo "$as_me: program exited with status $ac_status" >&5
10397echo "$as_me: failed program was:" >&5
10398cat conftest.$ac_ext >&5
10399( exit $ac_status )
10400{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10401echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10402 { (exit 1); exit 1; }; }
10403fi
10404rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10405fi
10406fi
10407rm -f conftest.val
10408else
10409 ac_cv_sizeof_int=0
10410fi
10411fi
10412echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10413echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10414cat >>confdefs.h <<_ACEOF
10415@%:@define SIZEOF_INT $ac_cv_sizeof_int
10416_ACEOF
10417
10418
10419echo "$as_me:$LINENO: checking for long int" >&5
10420echo $ECHO_N "checking for long int... $ECHO_C" >&6
10421if test "${ac_cv_type_long_int+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 cat >conftest.$ac_ext <<_ACEOF
10425#line $LINENO "configure"
10426#include "confdefs.h"
10427$ac_includes_default
10428#ifdef F77_DUMMY_MAIN
10429# ifdef __cplusplus
10430 extern "C"
10431# endif
10432 int F77_DUMMY_MAIN() { return 1; }
10433#endif
10434int
10435main ()
10436{
10437if ((long int *) 0)
10438 return 0;
10439if (sizeof (long int))
10440 return 0;
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_type_long_int=yes
10458else
10459 echo "$as_me: failed program was:" >&5
10460cat conftest.$ac_ext >&5
10461ac_cv_type_long_int=no
10462fi
10463rm -f conftest.$ac_objext conftest.$ac_ext
10464fi
10465echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10466echo "${ECHO_T}$ac_cv_type_long_int" >&6
10467
10468echo "$as_me:$LINENO: checking size of long int" >&5
10469echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10470if test "${ac_cv_sizeof_long_int+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 if test "$ac_cv_type_long_int" = yes; then
10474 # The cast to unsigned long works around a bug in the HP C Compiler
10475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10477 # This bug is HP SR number 8606223364.
10478 if test "$cross_compiling" = yes; then
10479 # Depending upon the size, compute the lo and hi bounds.
10480cat >conftest.$ac_ext <<_ACEOF
10481#line $LINENO "configure"
10482#include "confdefs.h"
10483$ac_includes_default
10484#ifdef F77_DUMMY_MAIN
10485# ifdef __cplusplus
10486 extern "C"
10487# endif
10488 int F77_DUMMY_MAIN() { return 1; }
10489#endif
10490int
10491main ()
10492{
10493static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10494test_array @<:@0@:>@ = 0
10495
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500rm -f conftest.$ac_objext
10501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_lo=0 ac_mid=0
10513 while :; do
10514 cat >conftest.$ac_ext <<_ACEOF
10515#line $LINENO "configure"
10516#include "confdefs.h"
10517$ac_includes_default
10518#ifdef F77_DUMMY_MAIN
10519# ifdef __cplusplus
10520 extern "C"
10521# endif
10522 int F77_DUMMY_MAIN() { return 1; }
10523#endif
10524int
10525main ()
10526{
10527static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10528test_array @<:@0@:>@ = 0
10529
10530 ;
10531 return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext
10535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_hi=$ac_mid; break
10547else
10548 echo "$as_me: failed program was:" >&5
10549cat conftest.$ac_ext >&5
10550ac_lo=`expr $ac_mid + 1`
10551 if test $ac_lo -le $ac_mid; then
10552 ac_lo= ac_hi=
10553 break
10554 fi
10555 ac_mid=`expr 2 '*' $ac_mid + 1`
10556fi
10557rm -f conftest.$ac_objext conftest.$ac_ext
10558 done
10559else
10560 echo "$as_me: failed program was:" >&5
10561cat conftest.$ac_ext >&5
10562cat >conftest.$ac_ext <<_ACEOF
10563#line $LINENO "configure"
10564#include "confdefs.h"
10565$ac_includes_default
10566#ifdef F77_DUMMY_MAIN
10567# ifdef __cplusplus
10568 extern "C"
10569# endif
10570 int F77_DUMMY_MAIN() { return 1; }
10571#endif
10572int
10573main ()
10574{
10575static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
10576test_array @<:@0@:>@ = 0
10577
10578 ;
10579 return 0;
10580}
10581_ACEOF
10582rm -f conftest.$ac_objext
10583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -s conftest.$ac_objext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 ac_hi=-1 ac_mid=-1
10595 while :; do
10596 cat >conftest.$ac_ext <<_ACEOF
10597#line $LINENO "configure"
10598#include "confdefs.h"
10599$ac_includes_default
10600#ifdef F77_DUMMY_MAIN
10601# ifdef __cplusplus
10602 extern "C"
10603# endif
10604 int F77_DUMMY_MAIN() { return 1; }
10605#endif
10606int
10607main ()
10608{
10609static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
10610test_array @<:@0@:>@ = 0
10611
10612 ;
10613 return 0;
10614}
10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ac_lo=$ac_mid; break
10629else
10630 echo "$as_me: failed program was:" >&5
10631cat conftest.$ac_ext >&5
10632ac_hi=`expr '(' $ac_mid ')' - 1`
10633 if test $ac_mid -le $ac_hi; then
10634 ac_lo= ac_hi=
10635 break
10636 fi
10637 ac_mid=`expr 2 '*' $ac_mid`
10638fi
10639rm -f conftest.$ac_objext conftest.$ac_ext
10640 done
10641else
10642 echo "$as_me: failed program was:" >&5
10643cat conftest.$ac_ext >&5
10644ac_lo= ac_hi=
10645fi
10646rm -f conftest.$ac_objext conftest.$ac_ext
10647fi
10648rm -f conftest.$ac_objext conftest.$ac_ext
10649# Binary search between lo and hi bounds.
10650while test "x$ac_lo" != "x$ac_hi"; do
10651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10652 cat >conftest.$ac_ext <<_ACEOF
10653#line $LINENO "configure"
10654#include "confdefs.h"
10655$ac_includes_default
10656#ifdef F77_DUMMY_MAIN
10657# ifdef __cplusplus
10658 extern "C"
10659# endif
10660 int F77_DUMMY_MAIN() { return 1; }
10661#endif
10662int
10663main ()
10664{
10665static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10666test_array @<:@0@:>@ = 0
10667
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext
10673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10674 (eval $ac_compile) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -s conftest.$ac_objext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_hi=$ac_mid
10685else
10686 echo "$as_me: failed program was:" >&5
10687cat conftest.$ac_ext >&5
10688ac_lo=`expr '(' $ac_mid ')' + 1`
10689fi
10690rm -f conftest.$ac_objext conftest.$ac_ext
10691done
10692case $ac_lo in
10693?*) ac_cv_sizeof_long_int=$ac_lo;;
10694'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10695echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10696 { (exit 1); exit 1; }; } ;;
10697esac
10698else
10699 if test "$cross_compiling" = yes; then
10700 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10701echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10702 { (exit 1); exit 1; }; }
10703else
10704 cat >conftest.$ac_ext <<_ACEOF
10705#line $LINENO "configure"
10706#include "confdefs.h"
10707$ac_includes_default
10708long longval () { return (long) (sizeof (long int)); }
10709unsigned long ulongval () { return (long) (sizeof (long int)); }
10710@%:@include <stdio.h>
10711@%:@include <stdlib.h>
10712#ifdef F77_DUMMY_MAIN
10713# ifdef __cplusplus
10714 extern "C"
10715# endif
10716 int F77_DUMMY_MAIN() { return 1; }
10717#endif
10718int
10719main ()
10720{
10721
10722 FILE *f = fopen ("conftest.val", "w");
10723 if (! f)
10724 exit (1);
10725 if (((long) (sizeof (long int))) < 0)
10726 {
10727 long i = longval ();
10728 if (i != ((long) (sizeof (long int))))
10729 exit (1);
10730 fprintf (f, "%ld\n", i);
10731 }
10732 else
10733 {
10734 unsigned long i = ulongval ();
10735 if (i != ((long) (sizeof (long int))))
10736 exit (1);
10737 fprintf (f, "%lu\n", i);
10738 }
10739 exit (ferror (f) || fclose (f) != 0);
10740
10741 ;
10742 return 0;
10743}
10744_ACEOF
10745rm -f conftest$ac_exeext
10746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747 (eval $ac_link) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_sizeof_long_int=`cat conftest.val`
10757else
10758 echo "$as_me: program exited with status $ac_status" >&5
10759echo "$as_me: failed program was:" >&5
10760cat conftest.$ac_ext >&5
10761( exit $ac_status )
10762{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
10763echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
10764 { (exit 1); exit 1; }; }
10765fi
10766rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10767fi
10768fi
10769rm -f conftest.val
10770else
10771 ac_cv_sizeof_long_int=0
10772fi
10773fi
10774echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
10775echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
10776cat >>confdefs.h <<_ACEOF
10777@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
10778_ACEOF
10779
10780
10781echo "$as_me:$LINENO: checking for long long int" >&5
10782echo $ECHO_N "checking for long long int... $ECHO_C" >&6
10783if test "${ac_cv_type_long_long_int+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 cat >conftest.$ac_ext <<_ACEOF
10787#line $LINENO "configure"
10788#include "confdefs.h"
10789$ac_includes_default
10790#ifdef F77_DUMMY_MAIN
10791# ifdef __cplusplus
10792 extern "C"
10793# endif
10794 int F77_DUMMY_MAIN() { return 1; }
10795#endif
10796int
10797main ()
10798{
10799if ((long long int *) 0)
10800 return 0;
10801if (sizeof (long long int))
10802 return 0;
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext
10808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_type_long_long_int=yes
10820else
10821 echo "$as_me: failed program was:" >&5
10822cat conftest.$ac_ext >&5
10823ac_cv_type_long_long_int=no
10824fi
10825rm -f conftest.$ac_objext conftest.$ac_ext
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
10828echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
10829
10830echo "$as_me:$LINENO: checking size of long long int" >&5
10831echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
10832if test "${ac_cv_sizeof_long_long_int+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835 if test "$ac_cv_type_long_long_int" = yes; then
10836 # The cast to unsigned long works around a bug in the HP C Compiler
10837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10839 # This bug is HP SR number 8606223364.
10840 if test "$cross_compiling" = yes; then
10841 # Depending upon the size, compute the lo and hi bounds.
10842cat >conftest.$ac_ext <<_ACEOF
10843#line $LINENO "configure"
10844#include "confdefs.h"
10845$ac_includes_default
10846#ifdef F77_DUMMY_MAIN
10847# ifdef __cplusplus
10848 extern "C"
10849# endif
10850 int F77_DUMMY_MAIN() { return 1; }
10851#endif
10852int
10853main ()
10854{
10855static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
10856test_array @<:@0@:>@ = 0
10857
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862rm -f conftest.$ac_objext
10863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_lo=0 ac_mid=0
10875 while :; do
10876 cat >conftest.$ac_ext <<_ACEOF
10877#line $LINENO "configure"
10878#include "confdefs.h"
10879$ac_includes_default
10880#ifdef F77_DUMMY_MAIN
10881# ifdef __cplusplus
10882 extern "C"
10883# endif
10884 int F77_DUMMY_MAIN() { return 1; }
10885#endif
10886int
10887main ()
10888{
10889static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
10890test_array @<:@0@:>@ = 0
10891
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896rm -f conftest.$ac_objext
10897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -s conftest.$ac_objext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_hi=$ac_mid; break
10909else
10910 echo "$as_me: failed program was:" >&5
10911cat conftest.$ac_ext >&5
10912ac_lo=`expr $ac_mid + 1`
10913 if test $ac_lo -le $ac_mid; then
10914 ac_lo= ac_hi=
10915 break
10916 fi
10917 ac_mid=`expr 2 '*' $ac_mid + 1`
10918fi
10919rm -f conftest.$ac_objext conftest.$ac_ext
10920 done
10921else
10922 echo "$as_me: failed program was:" >&5
10923cat conftest.$ac_ext >&5
10924cat >conftest.$ac_ext <<_ACEOF
10925#line $LINENO "configure"
10926#include "confdefs.h"
10927$ac_includes_default
10928#ifdef F77_DUMMY_MAIN
10929# ifdef __cplusplus
10930 extern "C"
10931# endif
10932 int F77_DUMMY_MAIN() { return 1; }
10933#endif
10934int
10935main ()
10936{
10937static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
10938test_array @<:@0@:>@ = 0
10939
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944rm -f conftest.$ac_objext
10945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_hi=-1 ac_mid=-1
10957 while :; do
10958 cat >conftest.$ac_ext <<_ACEOF
10959#line $LINENO "configure"
10960#include "confdefs.h"
10961$ac_includes_default
10962#ifdef F77_DUMMY_MAIN
10963# ifdef __cplusplus
10964 extern "C"
10965# endif
10966 int F77_DUMMY_MAIN() { return 1; }
10967#endif
10968int
10969main ()
10970{
10971static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
10972test_array @<:@0@:>@ = 0
10973
10974 ;
10975 return 0;
10976}
10977_ACEOF
10978rm -f conftest.$ac_objext
10979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_lo=$ac_mid; break
10991else
10992 echo "$as_me: failed program was:" >&5
10993cat conftest.$ac_ext >&5
10994ac_hi=`expr '(' $ac_mid ')' - 1`
10995 if test $ac_mid -le $ac_hi; then
10996 ac_lo= ac_hi=
10997 break
10998 fi
10999 ac_mid=`expr 2 '*' $ac_mid`
11000fi
11001rm -f conftest.$ac_objext conftest.$ac_ext
11002 done
11003else
11004 echo "$as_me: failed program was:" >&5
11005cat conftest.$ac_ext >&5
11006ac_lo= ac_hi=
11007fi
11008rm -f conftest.$ac_objext conftest.$ac_ext
11009fi
11010rm -f conftest.$ac_objext conftest.$ac_ext
11011# Binary search between lo and hi bounds.
11012while test "x$ac_lo" != "x$ac_hi"; do
11013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11014 cat >conftest.$ac_ext <<_ACEOF
11015#line $LINENO "configure"
11016#include "confdefs.h"
11017$ac_includes_default
11018#ifdef F77_DUMMY_MAIN
11019# ifdef __cplusplus
11020 extern "C"
11021# endif
11022 int F77_DUMMY_MAIN() { return 1; }
11023#endif
11024int
11025main ()
11026{
11027static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11028test_array @<:@0@:>@ = 0
11029
11030 ;
11031 return 0;
11032}
11033_ACEOF
11034rm -f conftest.$ac_objext
11035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_hi=$ac_mid
11047else
11048 echo "$as_me: failed program was:" >&5
11049cat conftest.$ac_ext >&5
11050ac_lo=`expr '(' $ac_mid ')' + 1`
11051fi
11052rm -f conftest.$ac_objext conftest.$ac_ext
11053done
11054case $ac_lo in
11055?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11056'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11057echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11058 { (exit 1); exit 1; }; } ;;
11059esac
11060else
11061 if test "$cross_compiling" = yes; then
11062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11063echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11064 { (exit 1); exit 1; }; }
11065else
11066 cat >conftest.$ac_ext <<_ACEOF
11067#line $LINENO "configure"
11068#include "confdefs.h"
11069$ac_includes_default
11070long longval () { return (long) (sizeof (long long int)); }
11071unsigned long ulongval () { return (long) (sizeof (long long int)); }
11072@%:@include <stdio.h>
11073@%:@include <stdlib.h>
11074#ifdef F77_DUMMY_MAIN
11075# ifdef __cplusplus
11076 extern "C"
11077# endif
11078 int F77_DUMMY_MAIN() { return 1; }
11079#endif
11080int
11081main ()
11082{
11083
11084 FILE *f = fopen ("conftest.val", "w");
11085 if (! f)
11086 exit (1);
11087 if (((long) (sizeof (long long int))) < 0)
11088 {
11089 long i = longval ();
11090 if (i != ((long) (sizeof (long long int))))
11091 exit (1);
11092 fprintf (f, "%ld\n", i);
11093 }
11094 else
11095 {
11096 unsigned long i = ulongval ();
11097 if (i != ((long) (sizeof (long long int))))
11098 exit (1);
11099 fprintf (f, "%lu\n", i);
11100 }
11101 exit (ferror (f) || fclose (f) != 0);
11102
11103 ;
11104 return 0;
11105}
11106_ACEOF
11107rm -f conftest$ac_exeext
11108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_sizeof_long_long_int=`cat conftest.val`
11119else
11120 echo "$as_me: program exited with status $ac_status" >&5
11121echo "$as_me: failed program was:" >&5
11122cat conftest.$ac_ext >&5
11123( exit $ac_status )
11124{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11125echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11126 { (exit 1); exit 1; }; }
11127fi
11128rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11129fi
11130fi
11131rm -f conftest.val
11132else
11133 ac_cv_sizeof_long_long_int=0
11134fi
11135fi
11136echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11137echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11138cat >>confdefs.h <<_ACEOF
11139@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11140_ACEOF
11141
11142
11143
11144# Sanity check long long for some platforms (AIX)
11145if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11146 ac_cv_sizeof_long_long_int=0
11147fi
11148
11149# More checks for data types
11150echo "$as_me:$LINENO: checking for u_int type" >&5
11151echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11152if test "${ac_cv_have_u_int+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155
11156 cat >conftest.$ac_ext <<_ACEOF
11157#line $LINENO "configure"
11158#include "confdefs.h"
11159 #include <sys/types.h>
11160#ifdef F77_DUMMY_MAIN
11161# ifdef __cplusplus
11162 extern "C"
11163# endif
11164 int F77_DUMMY_MAIN() { return 1; }
11165#endif
11166int
11167main ()
11168{
11169 u_int a; a = 1;
11170 ;
11171 return 0;
11172}
11173_ACEOF
11174rm -f conftest.$ac_objext
11175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_have_u_int="yes"
11187else
11188 echo "$as_me: failed program was:" >&5
11189cat conftest.$ac_ext >&5
11190 ac_cv_have_u_int="no"
11191
11192fi
11193rm -f conftest.$ac_objext conftest.$ac_ext
11194
11195fi
11196echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11197echo "${ECHO_T}$ac_cv_have_u_int" >&6
11198if test "x$ac_cv_have_u_int" = "xyes" ; then
11199 cat >>confdefs.h <<\_ACEOF
11200@%:@define HAVE_U_INT 1
11201_ACEOF
11202
11203 have_u_int=1
11204fi
11205
11206echo "$as_me:$LINENO: checking for intXX_t types" >&5
11207echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11208if test "${ac_cv_have_intxx_t+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210else
11211
11212 cat >conftest.$ac_ext <<_ACEOF
11213#line $LINENO "configure"
11214#include "confdefs.h"
11215 #include <sys/types.h>
11216#ifdef F77_DUMMY_MAIN
11217# ifdef __cplusplus
11218 extern "C"
11219# endif
11220 int F77_DUMMY_MAIN() { return 1; }
11221#endif
11222int
11223main ()
11224{
11225 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11226 ;
11227 return 0;
11228}
11229_ACEOF
11230rm -f conftest.$ac_objext
11231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11232 (eval $ac_compile) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_have_intxx_t="yes"
11243else
11244 echo "$as_me: failed program was:" >&5
11245cat conftest.$ac_ext >&5
11246 ac_cv_have_intxx_t="no"
11247
11248fi
11249rm -f conftest.$ac_objext conftest.$ac_ext
11250
11251fi
11252echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11253echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11254if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11255 cat >>confdefs.h <<\_ACEOF
11256@%:@define HAVE_INTXX_T 1
11257_ACEOF
11258
11259 have_intxx_t=1
11260fi
11261
11262if (test -z "$have_intxx_t" && \
11263 test "x$ac_cv_header_stdint_h" = "xyes")
11264then
11265 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11266echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11268#line $LINENO "configure"
11269#include "confdefs.h"
11270 #include <stdint.h>
11271#ifdef F77_DUMMY_MAIN
11272# ifdef __cplusplus
11273 extern "C"
11274# endif
11275 int F77_DUMMY_MAIN() { return 1; }
11276#endif
11277int
11278main ()
11279{
11280 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext
11286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11287 (eval $ac_compile) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297
11298 cat >>confdefs.h <<\_ACEOF
11299@%:@define HAVE_INTXX_T 1
11300_ACEOF
11301
11302 echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304
11305else
11306 echo "$as_me: failed program was:" >&5
11307cat conftest.$ac_ext >&5
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310
11311fi
11312rm -f conftest.$ac_objext conftest.$ac_ext
11313fi
11314
11315echo "$as_me:$LINENO: checking for int64_t type" >&5
11316echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11317if test "${ac_cv_have_int64_t+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320
11321 cat >conftest.$ac_ext <<_ACEOF
11322#line $LINENO "configure"
11323#include "confdefs.h"
11324 #include <sys/types.h>
11325#ifdef F77_DUMMY_MAIN
11326# ifdef __cplusplus
11327 extern "C"
11328# endif
11329 int F77_DUMMY_MAIN() { return 1; }
11330#endif
11331int
11332main ()
11333{
11334 int64_t a; a = 1;
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339rm -f conftest.$ac_objext
11340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_int64_t="yes"
11352else
11353 echo "$as_me: failed program was:" >&5
11354cat conftest.$ac_ext >&5
11355 ac_cv_have_int64_t="no"
11356
11357fi
11358rm -f conftest.$ac_objext conftest.$ac_ext
11359
11360fi
11361echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11362echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11363if test "x$ac_cv_have_int64_t" = "xyes" ; then
11364 cat >>confdefs.h <<\_ACEOF
11365@%:@define HAVE_INT64_T 1
11366_ACEOF
11367
11368 have_int64_t=1
11369fi
11370
11371if test -z "$have_int64_t" ; then
11372 echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5
11373echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11375#line $LINENO "configure"
11376#include "confdefs.h"
11377 #include <sys/socket.h>
11378#ifdef F77_DUMMY_MAIN
11379# ifdef __cplusplus
11380 extern "C"
11381# endif
11382 int F77_DUMMY_MAIN() { return 1; }
11383#endif
11384int
11385main ()
11386{
11387 int64_t a; a = 1
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext
11393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404
11405 cat >>confdefs.h <<\_ACEOF
11406@%:@define HAVE_INT64_T 1
11407_ACEOF
11408
11409 echo "$as_me:$LINENO: result: yes" >&5
11410echo "${ECHO_T}yes" >&6
11411
11412else
11413 echo "$as_me: failed program was:" >&5
11414cat conftest.$ac_ext >&5
11415 echo "$as_me:$LINENO: result: no" >&5
11416echo "${ECHO_T}no" >&6
11417
11418fi
11419rm -f conftest.$ac_objext conftest.$ac_ext
11420fi
11421
11422if test -z "$have_int64_t" ; then
11423 echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5
11424echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11426#line $LINENO "configure"
11427#include "confdefs.h"
11428 #include <sys/bitypes.h>
11429#ifdef F77_DUMMY_MAIN
11430# ifdef __cplusplus
11431 extern "C"
11432# endif
11433 int F77_DUMMY_MAIN() { return 1; }
11434#endif
11435int
11436main ()
11437{
11438 int64_t a; a = 1
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11445 (eval $ac_compile) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455
11456 cat >>confdefs.h <<\_ACEOF
11457@%:@define HAVE_INT64_T 1
11458_ACEOF
11459
11460 echo "$as_me:$LINENO: result: yes" >&5
11461echo "${ECHO_T}yes" >&6
11462
11463else
11464 echo "$as_me: failed program was:" >&5
11465cat conftest.$ac_ext >&5
11466 echo "$as_me:$LINENO: result: no" >&5
11467echo "${ECHO_T}no" >&6
11468
11469fi
11470rm -f conftest.$ac_objext conftest.$ac_ext
11471fi
11472
11473echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11474echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11475if test "${ac_cv_have_u_intxx_t+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478
11479 cat >conftest.$ac_ext <<_ACEOF
11480#line $LINENO "configure"
11481#include "confdefs.h"
11482 #include <sys/types.h>
11483#ifdef F77_DUMMY_MAIN
11484# ifdef __cplusplus
11485 extern "C"
11486# endif
11487 int F77_DUMMY_MAIN() { return 1; }
11488#endif
11489int
11490main ()
11491{
11492 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext
11498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11499 (eval $ac_compile) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_have_u_intxx_t="yes"
11510else
11511 echo "$as_me: failed program was:" >&5
11512cat conftest.$ac_ext >&5
11513 ac_cv_have_u_intxx_t="no"
11514
11515fi
11516rm -f conftest.$ac_objext conftest.$ac_ext
11517
11518fi
11519echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11520echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11521if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11522 cat >>confdefs.h <<\_ACEOF
11523@%:@define HAVE_U_INTXX_T 1
11524_ACEOF
11525
11526 have_u_intxx_t=1
11527fi
11528
11529if test -z "$have_u_intxx_t" ; then
11530 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11531echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11532 cat >conftest.$ac_ext <<_ACEOF
11533#line $LINENO "configure"
11534#include "confdefs.h"
11535 #include <sys/socket.h>
11536#ifdef F77_DUMMY_MAIN
11537# ifdef __cplusplus
11538 extern "C"
11539# endif
11540 int F77_DUMMY_MAIN() { return 1; }
11541#endif
11542int
11543main ()
11544{
11545 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550rm -f conftest.$ac_objext
11551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562
11563 cat >>confdefs.h <<\_ACEOF
11564@%:@define HAVE_U_INTXX_T 1
11565_ACEOF
11566
11567 echo "$as_me:$LINENO: result: yes" >&5
11568echo "${ECHO_T}yes" >&6
11569
11570else
11571 echo "$as_me: failed program was:" >&5
11572cat conftest.$ac_ext >&5
11573 echo "$as_me:$LINENO: result: no" >&5
11574echo "${ECHO_T}no" >&6
11575
11576fi
11577rm -f conftest.$ac_objext conftest.$ac_ext
11578fi
11579
11580echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11581echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11582if test "${ac_cv_have_u_int64_t+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585
11586 cat >conftest.$ac_ext <<_ACEOF
11587#line $LINENO "configure"
11588#include "confdefs.h"
11589 #include <sys/types.h>
11590#ifdef F77_DUMMY_MAIN
11591# ifdef __cplusplus
11592 extern "C"
11593# endif
11594 int F77_DUMMY_MAIN() { return 1; }
11595#endif
11596int
11597main ()
11598{
11599 u_int64_t a; a = 1;
11600 ;
11601 return 0;
11602}
11603_ACEOF
11604rm -f conftest.$ac_objext
11605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_have_u_int64_t="yes"
11617else
11618 echo "$as_me: failed program was:" >&5
11619cat conftest.$ac_ext >&5
11620 ac_cv_have_u_int64_t="no"
11621
11622fi
11623rm -f conftest.$ac_objext conftest.$ac_ext
11624
11625fi
11626echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11627echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11628if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11629 cat >>confdefs.h <<\_ACEOF
11630@%:@define HAVE_U_INT64_T 1
11631_ACEOF
11632
11633 have_u_int64_t=1
11634fi
11635
11636if test -z "$have_u_int64_t" ; then
11637 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11638echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11639 cat >conftest.$ac_ext <<_ACEOF
11640#line $LINENO "configure"
11641#include "confdefs.h"
11642 #include <sys/bitypes.h>
11643#ifdef F77_DUMMY_MAIN
11644# ifdef __cplusplus
11645 extern "C"
11646# endif
11647 int F77_DUMMY_MAIN() { return 1; }
11648#endif
11649int
11650main ()
11651{
11652 u_int64_t a; a = 1
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext
11658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669
11670 cat >>confdefs.h <<\_ACEOF
11671@%:@define HAVE_U_INT64_T 1
11672_ACEOF
11673
11674 echo "$as_me:$LINENO: result: yes" >&5
11675echo "${ECHO_T}yes" >&6
11676
11677else
11678 echo "$as_me: failed program was:" >&5
11679cat conftest.$ac_ext >&5
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682
11683fi
11684rm -f conftest.$ac_objext conftest.$ac_ext
11685fi
11686
11687if test -z "$have_u_intxx_t" ; then
11688 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
11689echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
11690if test "${ac_cv_have_uintxx_t+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693
11694 cat >conftest.$ac_ext <<_ACEOF
11695#line $LINENO "configure"
11696#include "confdefs.h"
11697
11698#include <sys/types.h>
11699
11700#ifdef F77_DUMMY_MAIN
11701# ifdef __cplusplus
11702 extern "C"
11703# endif
11704 int F77_DUMMY_MAIN() { return 1; }
11705#endif
11706int
11707main ()
11708{
11709 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11710 ;
11711 return 0;
11712}
11713_ACEOF
11714rm -f conftest.$ac_objext
11715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716 (eval $ac_compile) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_have_uintxx_t="yes"
11727else
11728 echo "$as_me: failed program was:" >&5
11729cat conftest.$ac_ext >&5
11730 ac_cv_have_uintxx_t="no"
11731
11732fi
11733rm -f conftest.$ac_objext conftest.$ac_ext
11734
11735fi
11736echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
11737echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
11738 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11739 cat >>confdefs.h <<\_ACEOF
11740@%:@define HAVE_UINTXX_T 1
11741_ACEOF
11742
11743 fi
11744fi
11745
11746if test -z "$have_uintxx_t" ; then
11747 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
11748echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
11749 cat >conftest.$ac_ext <<_ACEOF
11750#line $LINENO "configure"
11751#include "confdefs.h"
11752 #include <stdint.h>
11753#ifdef F77_DUMMY_MAIN
11754# ifdef __cplusplus
11755 extern "C"
11756# endif
11757 int F77_DUMMY_MAIN() { return 1; }
11758#endif
11759int
11760main ()
11761{
11762 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext
11768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779
11780 cat >>confdefs.h <<\_ACEOF
11781@%:@define HAVE_UINTXX_T 1
11782_ACEOF
11783
11784 echo "$as_me:$LINENO: result: yes" >&5
11785echo "${ECHO_T}yes" >&6
11786
11787else
11788 echo "$as_me: failed program was:" >&5
11789cat conftest.$ac_ext >&5
11790 echo "$as_me:$LINENO: result: no" >&5
11791echo "${ECHO_T}no" >&6
11792
11793fi
11794rm -f conftest.$ac_objext conftest.$ac_ext
11795fi
11796
11797if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11798 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11799then
11800 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11801echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11803#line $LINENO "configure"
11804#include "confdefs.h"
11805
11806#include <sys/bitypes.h>
11807
11808#ifdef F77_DUMMY_MAIN
11809# ifdef __cplusplus
11810 extern "C"
11811# endif
11812 int F77_DUMMY_MAIN() { return 1; }
11813#endif
11814int
11815main ()
11816{
11817
11818 int8_t a; int16_t b; int32_t c;
11819 u_int8_t e; u_int16_t f; u_int32_t g;
11820 a = b = c = e = f = g = 1;
11821
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826rm -f conftest.$ac_objext
11827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828 (eval $ac_compile) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838
11839 cat >>confdefs.h <<\_ACEOF
11840@%:@define HAVE_U_INTXX_T 1
11841_ACEOF
11842
11843 cat >>confdefs.h <<\_ACEOF
11844@%:@define HAVE_INTXX_T 1
11845_ACEOF
11846
11847 echo "$as_me:$LINENO: result: yes" >&5
11848echo "${ECHO_T}yes" >&6
11849
11850else
11851 echo "$as_me: failed program was:" >&5
11852cat conftest.$ac_ext >&5
11853echo "$as_me:$LINENO: result: no" >&5
11854echo "${ECHO_T}no" >&6
11855
11856fi
11857rm -f conftest.$ac_objext conftest.$ac_ext
11858fi
11859
11860
11861echo "$as_me:$LINENO: checking for u_char" >&5
11862echo $ECHO_N "checking for u_char... $ECHO_C" >&6
11863if test "${ac_cv_have_u_char+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866
11867 cat >conftest.$ac_ext <<_ACEOF
11868#line $LINENO "configure"
11869#include "confdefs.h"
11870
11871#include <sys/types.h>
11872
11873#ifdef F77_DUMMY_MAIN
11874# ifdef __cplusplus
11875 extern "C"
11876# endif
11877 int F77_DUMMY_MAIN() { return 1; }
11878#endif
11879int
11880main ()
11881{
11882 u_char foo; foo = 125;
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext
11888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_have_u_char="yes"
11900else
11901 echo "$as_me: failed program was:" >&5
11902cat conftest.$ac_ext >&5
11903 ac_cv_have_u_char="no"
11904
11905fi
11906rm -f conftest.$ac_objext conftest.$ac_ext
11907
11908fi
11909echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
11910echo "${ECHO_T}$ac_cv_have_u_char" >&6
11911if test "x$ac_cv_have_u_char" = "xyes" ; then
11912 cat >>confdefs.h <<\_ACEOF
11913@%:@define HAVE_U_CHAR 1
11914_ACEOF
11915
11916fi
11917
11918
11919 echo "$as_me:$LINENO: checking for socklen_t" >&5
11920echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11921if test "${ac_cv_type_socklen_t+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 cat >conftest.$ac_ext <<_ACEOF
11925#line $LINENO "configure"
11926#include "confdefs.h"
11927#include <sys/types.h>
11928#include <sys/socket.h>
11929
11930#ifdef F77_DUMMY_MAIN
11931# ifdef __cplusplus
11932 extern "C"
11933# endif
11934 int F77_DUMMY_MAIN() { return 1; }
11935#endif
11936int
11937main ()
11938{
11939if ((socklen_t *) 0)
11940 return 0;
11941if (sizeof (socklen_t))
11942 return 0;
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_type_socklen_t=yes
11960else
11961 echo "$as_me: failed program was:" >&5
11962cat conftest.$ac_ext >&5
11963ac_cv_type_socklen_t=no
11964fi
11965rm -f conftest.$ac_objext conftest.$ac_ext
11966fi
11967echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
11968echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
11969if test $ac_cv_type_socklen_t = yes; then
11970 :
11971else
11972
11973 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
11974echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
11975 if test "${curl_cv_socklen_t_equiv+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977else
11978
11979 # Systems have either "struct sockaddr *" or
11980 # "void *" as the second argument to getpeername
11981 curl_cv_socklen_t_equiv=
11982 for arg2 in "struct sockaddr" void; do
11983 for t in int size_t unsigned long "unsigned long"; do
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line $LINENO "configure"
11986#include "confdefs.h"
11987
11988 #include <sys/types.h>
11989 #include <sys/socket.h>
11990
11991 int getpeername (int, $arg2 *, $t *);
11992
11993#ifdef F77_DUMMY_MAIN
11994# ifdef __cplusplus
11995 extern "C"
11996# endif
11997 int F77_DUMMY_MAIN() { return 1; }
11998#endif
11999int
12000main ()
12001{
12002
12003 $t len;
12004 getpeername(0,0,&len);
12005
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext
12011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022
12023 curl_cv_socklen_t_equiv="$t"
12024 break
12025
12026else
12027 echo "$as_me: failed program was:" >&5
12028cat conftest.$ac_ext >&5
12029fi
12030rm -f conftest.$ac_objext conftest.$ac_ext
12031 done
12032 done
12033
12034 if test "x$curl_cv_socklen_t_equiv" = x; then
12035 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12036echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12037 { (exit 1); exit 1; }; }
12038 fi
12039
12040fi
12041
12042 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12043echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12044
12045cat >>confdefs.h <<_ACEOF
12046@%:@define socklen_t $curl_cv_socklen_t_equiv
12047_ACEOF
12048
12049fi
12050
12051
12052
12053echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12054echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12055if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 cat >conftest.$ac_ext <<_ACEOF
12059#line $LINENO "configure"
12060#include "confdefs.h"
12061#include <signal.h>
12062
12063#ifdef F77_DUMMY_MAIN
12064# ifdef __cplusplus
12065 extern "C"
12066# endif
12067 int F77_DUMMY_MAIN() { return 1; }
12068#endif
12069int
12070main ()
12071{
12072if ((sig_atomic_t *) 0)
12073 return 0;
12074if (sizeof (sig_atomic_t))
12075 return 0;
12076 ;
12077 return 0;
12078}
12079_ACEOF
12080rm -f conftest.$ac_objext
12081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 ac_cv_type_sig_atomic_t=yes
12093else
12094 echo "$as_me: failed program was:" >&5
12095cat conftest.$ac_ext >&5
12096ac_cv_type_sig_atomic_t=no
12097fi
12098rm -f conftest.$ac_objext conftest.$ac_ext
12099fi
12100echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12101echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12102if test $ac_cv_type_sig_atomic_t = yes; then
12103
12104cat >>confdefs.h <<_ACEOF
12105@%:@define HAVE_SIG_ATOMIC_T 1
12106_ACEOF
12107
12108
12109fi
12110
12111
12112echo "$as_me:$LINENO: checking for size_t" >&5
12113echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12114if test "${ac_cv_have_size_t+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117
12118 cat >conftest.$ac_ext <<_ACEOF
12119#line $LINENO "configure"
12120#include "confdefs.h"
12121
12122#include <sys/types.h>
12123
12124#ifdef F77_DUMMY_MAIN
12125# ifdef __cplusplus
12126 extern "C"
12127# endif
12128 int F77_DUMMY_MAIN() { return 1; }
12129#endif
12130int
12131main ()
12132{
12133 size_t foo; foo = 1235;
12134 ;
12135 return 0;
12136}
12137_ACEOF
12138rm -f conftest.$ac_objext
12139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_have_size_t="yes"
12151else
12152 echo "$as_me: failed program was:" >&5
12153cat conftest.$ac_ext >&5
12154 ac_cv_have_size_t="no"
12155
12156fi
12157rm -f conftest.$ac_objext conftest.$ac_ext
12158
12159fi
12160echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12161echo "${ECHO_T}$ac_cv_have_size_t" >&6
12162if test "x$ac_cv_have_size_t" = "xyes" ; then
12163 cat >>confdefs.h <<\_ACEOF
12164@%:@define HAVE_SIZE_T 1
12165_ACEOF
12166
12167fi
12168
12169echo "$as_me:$LINENO: checking for ssize_t" >&5
12170echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12171if test "${ac_cv_have_ssize_t+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173else
12174
12175 cat >conftest.$ac_ext <<_ACEOF
12176#line $LINENO "configure"
12177#include "confdefs.h"
12178
12179#include <sys/types.h>
12180
12181#ifdef F77_DUMMY_MAIN
12182# ifdef __cplusplus
12183 extern "C"
12184# endif
12185 int F77_DUMMY_MAIN() { return 1; }
12186#endif
12187int
12188main ()
12189{
12190 ssize_t foo; foo = 1235;
12191 ;
12192 return 0;
12193}
12194_ACEOF
12195rm -f conftest.$ac_objext
12196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_have_ssize_t="yes"
12208else
12209 echo "$as_me: failed program was:" >&5
12210cat conftest.$ac_ext >&5
12211 ac_cv_have_ssize_t="no"
12212
12213fi
12214rm -f conftest.$ac_objext conftest.$ac_ext
12215
12216fi
12217echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12218echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12219if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12220 cat >>confdefs.h <<\_ACEOF
12221@%:@define HAVE_SSIZE_T 1
12222_ACEOF
12223
12224fi
12225
12226echo "$as_me:$LINENO: checking for clock_t" >&5
12227echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12228if test "${ac_cv_have_clock_t+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231
12232 cat >conftest.$ac_ext <<_ACEOF
12233#line $LINENO "configure"
12234#include "confdefs.h"
12235
12236#include <time.h>
12237
12238#ifdef F77_DUMMY_MAIN
12239# ifdef __cplusplus
12240 extern "C"
12241# endif
12242 int F77_DUMMY_MAIN() { return 1; }
12243#endif
12244int
12245main ()
12246{
12247 clock_t foo; foo = 1235;
12248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext
12253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_have_clock_t="yes"
12265else
12266 echo "$as_me: failed program was:" >&5
12267cat conftest.$ac_ext >&5
12268 ac_cv_have_clock_t="no"
12269
12270fi
12271rm -f conftest.$ac_objext conftest.$ac_ext
12272
12273fi
12274echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12275echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12276if test "x$ac_cv_have_clock_t" = "xyes" ; then
12277 cat >>confdefs.h <<\_ACEOF
12278@%:@define HAVE_CLOCK_T 1
12279_ACEOF
12280
12281fi
12282
12283echo "$as_me:$LINENO: checking for sa_family_t" >&5
12284echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12285if test "${ac_cv_have_sa_family_t+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288
12289 cat >conftest.$ac_ext <<_ACEOF
12290#line $LINENO "configure"
12291#include "confdefs.h"
12292
12293#include <sys/types.h>
12294#include <sys/socket.h>
12295
12296#ifdef F77_DUMMY_MAIN
12297# ifdef __cplusplus
12298 extern "C"
12299# endif
12300 int F77_DUMMY_MAIN() { return 1; }
12301#endif
12302int
12303main ()
12304{
12305 sa_family_t foo; foo = 1235;
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_have_sa_family_t="yes"
12323else
12324 echo "$as_me: failed program was:" >&5
12325cat conftest.$ac_ext >&5
12326 cat >conftest.$ac_ext <<_ACEOF
12327#line $LINENO "configure"
12328#include "confdefs.h"
12329
12330#include <sys/types.h>
12331#include <sys/socket.h>
12332#include <netinet/in.h>
12333
12334#ifdef F77_DUMMY_MAIN
12335# ifdef __cplusplus
12336 extern "C"
12337# endif
12338 int F77_DUMMY_MAIN() { return 1; }
12339#endif
12340int
12341main ()
12342{
12343 sa_family_t foo; foo = 1235;
12344 ;
12345 return 0;
12346}
12347_ACEOF
12348rm -f conftest.$ac_objext
12349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_have_sa_family_t="yes"
12361else
12362 echo "$as_me: failed program was:" >&5
12363cat conftest.$ac_ext >&5
12364 ac_cv_have_sa_family_t="no"
12365
12366fi
12367rm -f conftest.$ac_objext conftest.$ac_ext
12368
12369fi
12370rm -f conftest.$ac_objext conftest.$ac_ext
12371
12372fi
12373echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12374echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12375if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12376 cat >>confdefs.h <<\_ACEOF
12377@%:@define HAVE_SA_FAMILY_T 1
12378_ACEOF
12379
12380fi
12381
12382echo "$as_me:$LINENO: checking for pid_t" >&5
12383echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12384if test "${ac_cv_have_pid_t+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386else
12387
12388 cat >conftest.$ac_ext <<_ACEOF
12389#line $LINENO "configure"
12390#include "confdefs.h"
12391
12392#include <sys/types.h>
12393
12394#ifdef F77_DUMMY_MAIN
12395# ifdef __cplusplus
12396 extern "C"
12397# endif
12398 int F77_DUMMY_MAIN() { return 1; }
12399#endif
12400int
12401main ()
12402{
12403 pid_t foo; foo = 1235;
12404 ;
12405 return 0;
12406}
12407_ACEOF
12408rm -f conftest.$ac_objext
12409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_have_pid_t="yes"
12421else
12422 echo "$as_me: failed program was:" >&5
12423cat conftest.$ac_ext >&5
12424 ac_cv_have_pid_t="no"
12425
12426fi
12427rm -f conftest.$ac_objext conftest.$ac_ext
12428
12429fi
12430echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12431echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12432if test "x$ac_cv_have_pid_t" = "xyes" ; then
12433 cat >>confdefs.h <<\_ACEOF
12434@%:@define HAVE_PID_T 1
12435_ACEOF
12436
12437fi
12438
12439echo "$as_me:$LINENO: checking for mode_t" >&5
12440echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12441if test "${ac_cv_have_mode_t+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443else
12444
12445 cat >conftest.$ac_ext <<_ACEOF
12446#line $LINENO "configure"
12447#include "confdefs.h"
12448
12449#include <sys/types.h>
12450
12451#ifdef F77_DUMMY_MAIN
12452# ifdef __cplusplus
12453 extern "C"
12454# endif
12455 int F77_DUMMY_MAIN() { return 1; }
12456#endif
12457int
12458main ()
12459{
12460 mode_t foo; foo = 1235;
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext
12466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_have_mode_t="yes"
12478else
12479 echo "$as_me: failed program was:" >&5
12480cat conftest.$ac_ext >&5
12481 ac_cv_have_mode_t="no"
12482
12483fi
12484rm -f conftest.$ac_objext conftest.$ac_ext
12485
12486fi
12487echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12488echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12489if test "x$ac_cv_have_mode_t" = "xyes" ; then
12490 cat >>confdefs.h <<\_ACEOF
12491@%:@define HAVE_MODE_T 1
12492_ACEOF
12493
12494fi
12495
12496
12497echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12498echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12499if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502
12503 cat >conftest.$ac_ext <<_ACEOF
12504#line $LINENO "configure"
12505#include "confdefs.h"
12506
12507#include <sys/types.h>
12508#include <sys/socket.h>
12509
12510#ifdef F77_DUMMY_MAIN
12511# ifdef __cplusplus
12512 extern "C"
12513# endif
12514 int F77_DUMMY_MAIN() { return 1; }
12515#endif
12516int
12517main ()
12518{
12519 struct sockaddr_storage s;
12520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext
12525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_have_struct_sockaddr_storage="yes"
12537else
12538 echo "$as_me: failed program was:" >&5
12539cat conftest.$ac_ext >&5
12540 ac_cv_have_struct_sockaddr_storage="no"
12541
12542fi
12543rm -f conftest.$ac_objext conftest.$ac_ext
12544
12545fi
12546echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12547echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12548if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12549 cat >>confdefs.h <<\_ACEOF
12550@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12551_ACEOF
12552
12553fi
12554
12555echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12556echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12557if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559else
12560
12561 cat >conftest.$ac_ext <<_ACEOF
12562#line $LINENO "configure"
12563#include "confdefs.h"
12564
12565#include <sys/types.h>
12566#include <netinet/in.h>
12567
12568#ifdef F77_DUMMY_MAIN
12569# ifdef __cplusplus
12570 extern "C"
12571# endif
12572 int F77_DUMMY_MAIN() { return 1; }
12573#endif
12574int
12575main ()
12576{
12577 struct sockaddr_in6 s; s.sin6_family = 0;
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_have_struct_sockaddr_in6="yes"
12595else
12596 echo "$as_me: failed program was:" >&5
12597cat conftest.$ac_ext >&5
12598 ac_cv_have_struct_sockaddr_in6="no"
12599
12600fi
12601rm -f conftest.$ac_objext conftest.$ac_ext
12602
12603fi
12604echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12605echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12606if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12607 cat >>confdefs.h <<\_ACEOF
12608@%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12609_ACEOF
12610
12611fi
12612
12613echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12614echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12615if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618
12619 cat >conftest.$ac_ext <<_ACEOF
12620#line $LINENO "configure"
12621#include "confdefs.h"
12622
12623#include <sys/types.h>
12624#include <netinet/in.h>
12625
12626#ifdef F77_DUMMY_MAIN
12627# ifdef __cplusplus
12628 extern "C"
12629# endif
12630 int F77_DUMMY_MAIN() { return 1; }
12631#endif
12632int
12633main ()
12634{
12635 struct in6_addr s; s.s6_addr[0] = 0;
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext
12641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_have_struct_in6_addr="yes"
12653else
12654 echo "$as_me: failed program was:" >&5
12655cat conftest.$ac_ext >&5
12656 ac_cv_have_struct_in6_addr="no"
12657
12658fi
12659rm -f conftest.$ac_objext conftest.$ac_ext
12660
12661fi
12662echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
12663echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
12664if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12665 cat >>confdefs.h <<\_ACEOF
12666@%:@define HAVE_STRUCT_IN6_ADDR 1
12667_ACEOF
12668
12669fi
12670
12671echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12672echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12673if test "${ac_cv_have_struct_addrinfo+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676
12677 cat >conftest.$ac_ext <<_ACEOF
12678#line $LINENO "configure"
12679#include "confdefs.h"
12680
12681#include <sys/types.h>
12682#include <sys/socket.h>
12683#include <netdb.h>
12684
12685#ifdef F77_DUMMY_MAIN
12686# ifdef __cplusplus
12687 extern "C"
12688# endif
12689 int F77_DUMMY_MAIN() { return 1; }
12690#endif
12691int
12692main ()
12693{
12694 struct addrinfo s; s.ai_flags = AI_PASSIVE;
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
12700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_cv_have_struct_addrinfo="yes"
12712else
12713 echo "$as_me: failed program was:" >&5
12714cat conftest.$ac_ext >&5
12715 ac_cv_have_struct_addrinfo="no"
12716
12717fi
12718rm -f conftest.$ac_objext conftest.$ac_ext
12719
12720fi
12721echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
12722echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
12723if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12724 cat >>confdefs.h <<\_ACEOF
12725@%:@define HAVE_STRUCT_ADDRINFO 1
12726_ACEOF
12727
12728fi
12729
12730echo "$as_me:$LINENO: checking for struct timeval" >&5
12731echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
12732if test "${ac_cv_have_struct_timeval+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734else
12735
12736 cat >conftest.$ac_ext <<_ACEOF
12737#line $LINENO "configure"
12738#include "confdefs.h"
12739 #include <sys/time.h>
12740#ifdef F77_DUMMY_MAIN
12741# ifdef __cplusplus
12742 extern "C"
12743# endif
12744 int F77_DUMMY_MAIN() { return 1; }
12745#endif
12746int
12747main ()
12748{
12749 struct timeval tv; tv.tv_sec = 1;
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_have_struct_timeval="yes"
12767else
12768 echo "$as_me: failed program was:" >&5
12769cat conftest.$ac_ext >&5
12770 ac_cv_have_struct_timeval="no"
12771
12772fi
12773rm -f conftest.$ac_objext conftest.$ac_ext
12774
12775fi
12776echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
12777echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
12778if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12779 cat >>confdefs.h <<\_ACEOF
12780@%:@define HAVE_STRUCT_TIMEVAL 1
12781_ACEOF
12782
12783 have_struct_timeval=1
12784fi
12785
12786# If we don't have int64_t then we can't compile sftp-server. So don't
12787# even attempt to do it.
12788if test "x$ac_cv_have_int64_t" = "xno" -a \
12789 "x$ac_cv_sizeof_long_int" != "x8" -a \
12790 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12791 NO_SFTP='#'
12792else
12793 if test "$cross_compiling" = yes; then
12794 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12795echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12796 { (exit 1); exit 1; }; }
12797else
12798 cat >conftest.$ac_ext <<_ACEOF
12799#line $LINENO "configure"
12800#include "confdefs.h"
12801
12802#include <stdio.h>
12803#include <string.h>
12804#ifdef HAVE_SNPRINTF
12805main()
12806{
12807 char buf[50];
12808 char expected_out[50];
12809 int mazsize = 50 ;
12810#if (SIZEOF_LONG_INT == 8)
12811 long int num = 0x7fffffffffffffff;
12812#else
12813 long long num = 0x7fffffffffffffffll;
12814#endif
12815 strcpy(expected_out, "9223372036854775807");
12816 snprintf(buf, mazsize, "%lld", num);
12817 if(strcmp(buf, expected_out) != 0)
12818 exit(1);
12819 exit(0);
12820}
12821#else
12822main() { exit(0); }
12823#endif
12824
12825_ACEOF
12826rm -f conftest$ac_exeext
12827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828 (eval $ac_link) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 true
12838else
12839 echo "$as_me: program exited with status $ac_status" >&5
12840echo "$as_me: failed program was:" >&5
12841cat conftest.$ac_ext >&5
12842( exit $ac_status )
12843 cat >>confdefs.h <<\_ACEOF
12844@%:@define BROKEN_SNPRINTF 1
12845_ACEOF
12846
12847
12848fi
12849rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12850fi
12851fi
12852
12853
12854
12855# look for field 'ut_host' in header 'utmp.h'
12856 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12857 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12858 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
12859echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
12860 if eval "test \"\${$ossh_varname+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862else
12863
12864 cat >conftest.$ac_ext <<_ACEOF
12865#line $LINENO "configure"
12866#include "confdefs.h"
12867#include <utmp.h>
12868
12869_ACEOF
12870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12871 egrep "ut_host" >/dev/null 2>&1; then
12872 eval "$ossh_varname=yes"
12873else
12874 eval "$ossh_varname=no"
12875fi
12876rm -f conftest*
12877
12878fi
12879
12880 ossh_result=`eval 'echo $'"$ossh_varname"`
12881 if test -n "`echo $ossh_varname`"; then
12882 echo "$as_me:$LINENO: result: $ossh_result" >&5
12883echo "${ECHO_T}$ossh_result" >&6
12884 if test "x$ossh_result" = "xyes"; then
12885 cat >>confdefs.h <<\_ACEOF
12886@%:@define HAVE_HOST_IN_UTMP 1
12887_ACEOF
12888
12889 fi
12890 else
12891 echo "$as_me:$LINENO: result: no" >&5
12892echo "${ECHO_T}no" >&6
12893 fi
12894
12895
12896# look for field 'ut_host' in header 'utmpx.h'
12897 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12898 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12899 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
12900echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
12901 if eval "test \"\${$ossh_varname+set}\" = set"; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904
12905 cat >conftest.$ac_ext <<_ACEOF
12906#line $LINENO "configure"
12907#include "confdefs.h"
12908#include <utmpx.h>
12909
12910_ACEOF
12911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12912 egrep "ut_host" >/dev/null 2>&1; then
12913 eval "$ossh_varname=yes"
12914else
12915 eval "$ossh_varname=no"
12916fi
12917rm -f conftest*
12918
12919fi
12920
12921 ossh_result=`eval 'echo $'"$ossh_varname"`
12922 if test -n "`echo $ossh_varname`"; then
12923 echo "$as_me:$LINENO: result: $ossh_result" >&5
12924echo "${ECHO_T}$ossh_result" >&6
12925 if test "x$ossh_result" = "xyes"; then
12926 cat >>confdefs.h <<\_ACEOF
12927@%:@define HAVE_HOST_IN_UTMPX 1
12928_ACEOF
12929
12930 fi
12931 else
12932 echo "$as_me:$LINENO: result: no" >&5
12933echo "${ECHO_T}no" >&6
12934 fi
12935
12936
12937# look for field 'syslen' in header 'utmpx.h'
12938 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12939 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12940 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
12941echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
12942 if eval "test \"\${$ossh_varname+set}\" = set"; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944else
12945
12946 cat >conftest.$ac_ext <<_ACEOF
12947#line $LINENO "configure"
12948#include "confdefs.h"
12949#include <utmpx.h>
12950
12951_ACEOF
12952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12953 egrep "syslen" >/dev/null 2>&1; then
12954 eval "$ossh_varname=yes"
12955else
12956 eval "$ossh_varname=no"
12957fi
12958rm -f conftest*
12959
12960fi
12961
12962 ossh_result=`eval 'echo $'"$ossh_varname"`
12963 if test -n "`echo $ossh_varname`"; then
12964 echo "$as_me:$LINENO: result: $ossh_result" >&5
12965echo "${ECHO_T}$ossh_result" >&6
12966 if test "x$ossh_result" = "xyes"; then
12967 cat >>confdefs.h <<\_ACEOF
12968@%:@define HAVE_SYSLEN_IN_UTMPX 1
12969_ACEOF
12970
12971 fi
12972 else
12973 echo "$as_me:$LINENO: result: no" >&5
12974echo "${ECHO_T}no" >&6
12975 fi
12976
12977
12978# look for field 'ut_pid' in header 'utmp.h'
12979 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12980 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12981 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
12982echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
12983 if eval "test \"\${$ossh_varname+set}\" = set"; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
12986
12987 cat >conftest.$ac_ext <<_ACEOF
12988#line $LINENO "configure"
12989#include "confdefs.h"
12990#include <utmp.h>
12991
12992_ACEOF
12993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994 egrep "ut_pid" >/dev/null 2>&1; then
12995 eval "$ossh_varname=yes"
12996else
12997 eval "$ossh_varname=no"
12998fi
12999rm -f conftest*
13000
13001fi
13002
13003 ossh_result=`eval 'echo $'"$ossh_varname"`
13004 if test -n "`echo $ossh_varname`"; then
13005 echo "$as_me:$LINENO: result: $ossh_result" >&5
13006echo "${ECHO_T}$ossh_result" >&6
13007 if test "x$ossh_result" = "xyes"; then
13008 cat >>confdefs.h <<\_ACEOF
13009@%:@define HAVE_PID_IN_UTMP 1
13010_ACEOF
13011
13012 fi
13013 else
13014 echo "$as_me:$LINENO: result: no" >&5
13015echo "${ECHO_T}no" >&6
13016 fi
13017
13018
13019# look for field 'ut_type' in header 'utmp.h'
13020 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13021 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13022 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13023echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13024 if eval "test \"\${$ossh_varname+set}\" = set"; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027
13028 cat >conftest.$ac_ext <<_ACEOF
13029#line $LINENO "configure"
13030#include "confdefs.h"
13031#include <utmp.h>
13032
13033_ACEOF
13034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13035 egrep "ut_type" >/dev/null 2>&1; then
13036 eval "$ossh_varname=yes"
13037else
13038 eval "$ossh_varname=no"
13039fi
13040rm -f conftest*
13041
13042fi
13043
13044 ossh_result=`eval 'echo $'"$ossh_varname"`
13045 if test -n "`echo $ossh_varname`"; then
13046 echo "$as_me:$LINENO: result: $ossh_result" >&5
13047echo "${ECHO_T}$ossh_result" >&6
13048 if test "x$ossh_result" = "xyes"; then
13049 cat >>confdefs.h <<\_ACEOF
13050@%:@define HAVE_TYPE_IN_UTMP 1
13051_ACEOF
13052
13053 fi
13054 else
13055 echo "$as_me:$LINENO: result: no" >&5
13056echo "${ECHO_T}no" >&6
13057 fi
13058
13059
13060# look for field 'ut_type' in header 'utmpx.h'
13061 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13062 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13063 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13064echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13065 if eval "test \"\${$ossh_varname+set}\" = set"; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068
13069 cat >conftest.$ac_ext <<_ACEOF
13070#line $LINENO "configure"
13071#include "confdefs.h"
13072#include <utmpx.h>
13073
13074_ACEOF
13075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13076 egrep "ut_type" >/dev/null 2>&1; then
13077 eval "$ossh_varname=yes"
13078else
13079 eval "$ossh_varname=no"
13080fi
13081rm -f conftest*
13082
13083fi
13084
13085 ossh_result=`eval 'echo $'"$ossh_varname"`
13086 if test -n "`echo $ossh_varname`"; then
13087 echo "$as_me:$LINENO: result: $ossh_result" >&5
13088echo "${ECHO_T}$ossh_result" >&6
13089 if test "x$ossh_result" = "xyes"; then
13090 cat >>confdefs.h <<\_ACEOF
13091@%:@define HAVE_TYPE_IN_UTMPX 1
13092_ACEOF
13093
13094 fi
13095 else
13096 echo "$as_me:$LINENO: result: no" >&5
13097echo "${ECHO_T}no" >&6
13098 fi
13099
13100
13101# look for field 'ut_tv' in header 'utmp.h'
13102 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13103 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13104 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13105echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13106 if eval "test \"\${$ossh_varname+set}\" = set"; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109
13110 cat >conftest.$ac_ext <<_ACEOF
13111#line $LINENO "configure"
13112#include "confdefs.h"
13113#include <utmp.h>
13114
13115_ACEOF
13116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13117 egrep "ut_tv" >/dev/null 2>&1; then
13118 eval "$ossh_varname=yes"
13119else
13120 eval "$ossh_varname=no"
13121fi
13122rm -f conftest*
13123
13124fi
13125
13126 ossh_result=`eval 'echo $'"$ossh_varname"`
13127 if test -n "`echo $ossh_varname`"; then
13128 echo "$as_me:$LINENO: result: $ossh_result" >&5
13129echo "${ECHO_T}$ossh_result" >&6
13130 if test "x$ossh_result" = "xyes"; then
13131 cat >>confdefs.h <<\_ACEOF
13132@%:@define HAVE_TV_IN_UTMP 1
13133_ACEOF
13134
13135 fi
13136 else
13137 echo "$as_me:$LINENO: result: no" >&5
13138echo "${ECHO_T}no" >&6
13139 fi
13140
13141
13142# look for field 'ut_id' in header 'utmp.h'
13143 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13144 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13145 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13146echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13147 if eval "test \"\${$ossh_varname+set}\" = set"; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150
13151 cat >conftest.$ac_ext <<_ACEOF
13152#line $LINENO "configure"
13153#include "confdefs.h"
13154#include <utmp.h>
13155
13156_ACEOF
13157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13158 egrep "ut_id" >/dev/null 2>&1; then
13159 eval "$ossh_varname=yes"
13160else
13161 eval "$ossh_varname=no"
13162fi
13163rm -f conftest*
13164
13165fi
13166
13167 ossh_result=`eval 'echo $'"$ossh_varname"`
13168 if test -n "`echo $ossh_varname`"; then
13169 echo "$as_me:$LINENO: result: $ossh_result" >&5
13170echo "${ECHO_T}$ossh_result" >&6
13171 if test "x$ossh_result" = "xyes"; then
13172 cat >>confdefs.h <<\_ACEOF
13173@%:@define HAVE_ID_IN_UTMP 1
13174_ACEOF
13175
13176 fi
13177 else
13178 echo "$as_me:$LINENO: result: no" >&5
13179echo "${ECHO_T}no" >&6
13180 fi
13181
13182
13183# look for field 'ut_id' in header 'utmpx.h'
13184 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13185 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13186 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13187echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13188 if eval "test \"\${$ossh_varname+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190else
13191
13192 cat >conftest.$ac_ext <<_ACEOF
13193#line $LINENO "configure"
13194#include "confdefs.h"
13195#include <utmpx.h>
13196
13197_ACEOF
13198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13199 egrep "ut_id" >/dev/null 2>&1; then
13200 eval "$ossh_varname=yes"
13201else
13202 eval "$ossh_varname=no"
13203fi
13204rm -f conftest*
13205
13206fi
13207
13208 ossh_result=`eval 'echo $'"$ossh_varname"`
13209 if test -n "`echo $ossh_varname`"; then
13210 echo "$as_me:$LINENO: result: $ossh_result" >&5
13211echo "${ECHO_T}$ossh_result" >&6
13212 if test "x$ossh_result" = "xyes"; then
13213 cat >>confdefs.h <<\_ACEOF
13214@%:@define HAVE_ID_IN_UTMPX 1
13215_ACEOF
13216
13217 fi
13218 else
13219 echo "$as_me:$LINENO: result: no" >&5
13220echo "${ECHO_T}no" >&6
13221 fi
13222
13223
13224# look for field 'ut_addr' in header 'utmp.h'
13225 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13226 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13227 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13228echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13229 if eval "test \"\${$ossh_varname+set}\" = set"; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231else
13232
13233 cat >conftest.$ac_ext <<_ACEOF
13234#line $LINENO "configure"
13235#include "confdefs.h"
13236#include <utmp.h>
13237
13238_ACEOF
13239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13240 egrep "ut_addr" >/dev/null 2>&1; then
13241 eval "$ossh_varname=yes"
13242else
13243 eval "$ossh_varname=no"
13244fi
13245rm -f conftest*
13246
13247fi
13248
13249 ossh_result=`eval 'echo $'"$ossh_varname"`
13250 if test -n "`echo $ossh_varname`"; then
13251 echo "$as_me:$LINENO: result: $ossh_result" >&5
13252echo "${ECHO_T}$ossh_result" >&6
13253 if test "x$ossh_result" = "xyes"; then
13254 cat >>confdefs.h <<\_ACEOF
13255@%:@define HAVE_ADDR_IN_UTMP 1
13256_ACEOF
13257
13258 fi
13259 else
13260 echo "$as_me:$LINENO: result: no" >&5
13261echo "${ECHO_T}no" >&6
13262 fi
13263
13264
13265# look for field 'ut_addr' in header 'utmpx.h'
13266 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13267 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13268 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13269echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13270 if eval "test \"\${$ossh_varname+set}\" = set"; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273
13274 cat >conftest.$ac_ext <<_ACEOF
13275#line $LINENO "configure"
13276#include "confdefs.h"
13277#include <utmpx.h>
13278
13279_ACEOF
13280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13281 egrep "ut_addr" >/dev/null 2>&1; then
13282 eval "$ossh_varname=yes"
13283else
13284 eval "$ossh_varname=no"
13285fi
13286rm -f conftest*
13287
13288fi
13289
13290 ossh_result=`eval 'echo $'"$ossh_varname"`
13291 if test -n "`echo $ossh_varname`"; then
13292 echo "$as_me:$LINENO: result: $ossh_result" >&5
13293echo "${ECHO_T}$ossh_result" >&6
13294 if test "x$ossh_result" = "xyes"; then
13295 cat >>confdefs.h <<\_ACEOF
13296@%:@define HAVE_ADDR_IN_UTMPX 1
13297_ACEOF
13298
13299 fi
13300 else
13301 echo "$as_me:$LINENO: result: no" >&5
13302echo "${ECHO_T}no" >&6
13303 fi
13304
13305
13306# look for field 'ut_addr_v6' in header 'utmp.h'
13307 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13308 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13309 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13310echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13311 if eval "test \"\${$ossh_varname+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313else
13314
13315 cat >conftest.$ac_ext <<_ACEOF
13316#line $LINENO "configure"
13317#include "confdefs.h"
13318#include <utmp.h>
13319
13320_ACEOF
13321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 egrep "ut_addr_v6" >/dev/null 2>&1; then
13323 eval "$ossh_varname=yes"
13324else
13325 eval "$ossh_varname=no"
13326fi
13327rm -f conftest*
13328
13329fi
13330
13331 ossh_result=`eval 'echo $'"$ossh_varname"`
13332 if test -n "`echo $ossh_varname`"; then
13333 echo "$as_me:$LINENO: result: $ossh_result" >&5
13334echo "${ECHO_T}$ossh_result" >&6
13335 if test "x$ossh_result" = "xyes"; then
13336 cat >>confdefs.h <<\_ACEOF
13337@%:@define HAVE_ADDR_V6_IN_UTMP 1
13338_ACEOF
13339
13340 fi
13341 else
13342 echo "$as_me:$LINENO: result: no" >&5
13343echo "${ECHO_T}no" >&6
13344 fi
13345
13346
13347# look for field 'ut_addr_v6' in header 'utmpx.h'
13348 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13349 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13350 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13351echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13352 if eval "test \"\${$ossh_varname+set}\" = set"; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354else
13355
13356 cat >conftest.$ac_ext <<_ACEOF
13357#line $LINENO "configure"
13358#include "confdefs.h"
13359#include <utmpx.h>
13360
13361_ACEOF
13362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 egrep "ut_addr_v6" >/dev/null 2>&1; then
13364 eval "$ossh_varname=yes"
13365else
13366 eval "$ossh_varname=no"
13367fi
13368rm -f conftest*
13369
13370fi
13371
13372 ossh_result=`eval 'echo $'"$ossh_varname"`
13373 if test -n "`echo $ossh_varname`"; then
13374 echo "$as_me:$LINENO: result: $ossh_result" >&5
13375echo "${ECHO_T}$ossh_result" >&6
13376 if test "x$ossh_result" = "xyes"; then
13377 cat >>confdefs.h <<\_ACEOF
13378@%:@define HAVE_ADDR_V6_IN_UTMPX 1
13379_ACEOF
13380
13381 fi
13382 else
13383 echo "$as_me:$LINENO: result: no" >&5
13384echo "${ECHO_T}no" >&6
13385 fi
13386
13387
13388# look for field 'ut_exit' in header 'utmp.h'
13389 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13390 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13391 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13392echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13393 if eval "test \"\${$ossh_varname+set}\" = set"; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395else
13396
13397 cat >conftest.$ac_ext <<_ACEOF
13398#line $LINENO "configure"
13399#include "confdefs.h"
13400#include <utmp.h>
13401
13402_ACEOF
13403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13404 egrep "ut_exit" >/dev/null 2>&1; then
13405 eval "$ossh_varname=yes"
13406else
13407 eval "$ossh_varname=no"
13408fi
13409rm -f conftest*
13410
13411fi
13412
13413 ossh_result=`eval 'echo $'"$ossh_varname"`
13414 if test -n "`echo $ossh_varname`"; then
13415 echo "$as_me:$LINENO: result: $ossh_result" >&5
13416echo "${ECHO_T}$ossh_result" >&6
13417 if test "x$ossh_result" = "xyes"; then
13418 cat >>confdefs.h <<\_ACEOF
13419@%:@define HAVE_EXIT_IN_UTMP 1
13420_ACEOF
13421
13422 fi
13423 else
13424 echo "$as_me:$LINENO: result: no" >&5
13425echo "${ECHO_T}no" >&6
13426 fi
13427
13428
13429# look for field 'ut_time' in header 'utmp.h'
13430 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13431 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13432 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13433echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13434 if eval "test \"\${$ossh_varname+set}\" = set"; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437
13438 cat >conftest.$ac_ext <<_ACEOF
13439#line $LINENO "configure"
13440#include "confdefs.h"
13441#include <utmp.h>
13442
13443_ACEOF
13444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 egrep "ut_time" >/dev/null 2>&1; then
13446 eval "$ossh_varname=yes"
13447else
13448 eval "$ossh_varname=no"
13449fi
13450rm -f conftest*
13451
13452fi
13453
13454 ossh_result=`eval 'echo $'"$ossh_varname"`
13455 if test -n "`echo $ossh_varname`"; then
13456 echo "$as_me:$LINENO: result: $ossh_result" >&5
13457echo "${ECHO_T}$ossh_result" >&6
13458 if test "x$ossh_result" = "xyes"; then
13459 cat >>confdefs.h <<\_ACEOF
13460@%:@define HAVE_TIME_IN_UTMP 1
13461_ACEOF
13462
13463 fi
13464 else
13465 echo "$as_me:$LINENO: result: no" >&5
13466echo "${ECHO_T}no" >&6
13467 fi
13468
13469
13470# look for field 'ut_time' in header 'utmpx.h'
13471 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13472 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13473 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13474echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13475 if eval "test \"\${$ossh_varname+set}\" = set"; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478
13479 cat >conftest.$ac_ext <<_ACEOF
13480#line $LINENO "configure"
13481#include "confdefs.h"
13482#include <utmpx.h>
13483
13484_ACEOF
13485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13486 egrep "ut_time" >/dev/null 2>&1; then
13487 eval "$ossh_varname=yes"
13488else
13489 eval "$ossh_varname=no"
13490fi
13491rm -f conftest*
13492
13493fi
13494
13495 ossh_result=`eval 'echo $'"$ossh_varname"`
13496 if test -n "`echo $ossh_varname`"; then
13497 echo "$as_me:$LINENO: result: $ossh_result" >&5
13498echo "${ECHO_T}$ossh_result" >&6
13499 if test "x$ossh_result" = "xyes"; then
13500 cat >>confdefs.h <<\_ACEOF
13501@%:@define HAVE_TIME_IN_UTMPX 1
13502_ACEOF
13503
13504 fi
13505 else
13506 echo "$as_me:$LINENO: result: no" >&5
13507echo "${ECHO_T}no" >&6
13508 fi
13509
13510
13511# look for field 'ut_tv' in header 'utmpx.h'
13512 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13513 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13514 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13515echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13516 if eval "test \"\${$ossh_varname+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519
13520 cat >conftest.$ac_ext <<_ACEOF
13521#line $LINENO "configure"
13522#include "confdefs.h"
13523#include <utmpx.h>
13524
13525_ACEOF
13526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13527 egrep "ut_tv" >/dev/null 2>&1; then
13528 eval "$ossh_varname=yes"
13529else
13530 eval "$ossh_varname=no"
13531fi
13532rm -f conftest*
13533
13534fi
13535
13536 ossh_result=`eval 'echo $'"$ossh_varname"`
13537 if test -n "`echo $ossh_varname`"; then
13538 echo "$as_me:$LINENO: result: $ossh_result" >&5
13539echo "${ECHO_T}$ossh_result" >&6
13540 if test "x$ossh_result" = "xyes"; then
13541 cat >>confdefs.h <<\_ACEOF
13542@%:@define HAVE_TV_IN_UTMPX 1
13543_ACEOF
13544
13545 fi
13546 else
13547 echo "$as_me:$LINENO: result: no" >&5
13548echo "${ECHO_T}no" >&6
13549 fi
13550
13551
13552echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13553echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13554if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556else
13557 cat >conftest.$ac_ext <<_ACEOF
13558#line $LINENO "configure"
13559#include "confdefs.h"
13560$ac_includes_default
13561#ifdef F77_DUMMY_MAIN
13562# ifdef __cplusplus
13563 extern "C"
13564# endif
13565 int F77_DUMMY_MAIN() { return 1; }
13566#endif
13567int
13568main ()
13569{
13570static struct stat ac_aggr;
13571if (ac_aggr.st_blksize)
13572return 0;
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577rm -f conftest.$ac_objext
13578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_member_struct_stat_st_blksize=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592cat conftest.$ac_ext >&5
13593ac_cv_member_struct_stat_st_blksize=no
13594fi
13595rm -f conftest.$ac_objext conftest.$ac_ext
13596fi
13597echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13598echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13599if test $ac_cv_member_struct_stat_st_blksize = yes; then
13600
13601cat >>confdefs.h <<_ACEOF
13602@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13603_ACEOF
13604
13605
13606fi
13607
13608
13609echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13610echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13611if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614
13615 cat >conftest.$ac_ext <<_ACEOF
13616#line $LINENO "configure"
13617#include "confdefs.h"
13618
13619#include <sys/types.h>
13620#include <sys/socket.h>
13621
13622#ifdef F77_DUMMY_MAIN
13623# ifdef __cplusplus
13624 extern "C"
13625# endif
13626 int F77_DUMMY_MAIN() { return 1; }
13627#endif
13628int
13629main ()
13630{
13631 struct sockaddr_storage s; s.ss_family = 1;
13632 ;
13633 return 0;
13634}
13635_ACEOF
13636rm -f conftest.$ac_objext
13637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_cv_have_ss_family_in_struct_ss="yes"
13649else
13650 echo "$as_me: failed program was:" >&5
13651cat conftest.$ac_ext >&5
13652 ac_cv_have_ss_family_in_struct_ss="no"
13653fi
13654rm -f conftest.$ac_objext conftest.$ac_ext
13655
13656fi
13657echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13658echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
13659if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13660 cat >>confdefs.h <<\_ACEOF
13661@%:@define HAVE_SS_FAMILY_IN_SS 1
13662_ACEOF
13663
13664fi
13665
13666echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
13667echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13668if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671
13672 cat >conftest.$ac_ext <<_ACEOF
13673#line $LINENO "configure"
13674#include "confdefs.h"
13675
13676#include <sys/types.h>
13677#include <sys/socket.h>
13678
13679#ifdef F77_DUMMY_MAIN
13680# ifdef __cplusplus
13681 extern "C"
13682# endif
13683 int F77_DUMMY_MAIN() { return 1; }
13684#endif
13685int
13686main ()
13687{
13688 struct sockaddr_storage s; s.__ss_family = 1;
13689 ;
13690 return 0;
13691}
13692_ACEOF
13693rm -f conftest.$ac_objext
13694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695 (eval $ac_compile) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_have___ss_family_in_struct_ss="yes"
13706else
13707 echo "$as_me: failed program was:" >&5
13708cat conftest.$ac_ext >&5
13709 ac_cv_have___ss_family_in_struct_ss="no"
13710
13711fi
13712rm -f conftest.$ac_objext conftest.$ac_ext
13713
13714fi
13715echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13716echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
13717if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13718 cat >>confdefs.h <<\_ACEOF
13719@%:@define HAVE___SS_FAMILY_IN_SS 1
13720_ACEOF
13721
13722fi
13723
13724echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
13725echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
13726if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729
13730 cat >conftest.$ac_ext <<_ACEOF
13731#line $LINENO "configure"
13732#include "confdefs.h"
13733
13734#include <pwd.h>
13735
13736#ifdef F77_DUMMY_MAIN
13737# ifdef __cplusplus
13738 extern "C"
13739# endif
13740 int F77_DUMMY_MAIN() { return 1; }
13741#endif
13742int
13743main ()
13744{
13745 struct passwd p; p.pw_class = 0;
13746 ;
13747 return 0;
13748}
13749_ACEOF
13750rm -f conftest.$ac_objext
13751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13752 (eval $ac_compile) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -s conftest.$ac_objext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_have_pw_class_in_struct_passwd="yes"
13763else
13764 echo "$as_me: failed program was:" >&5
13765cat conftest.$ac_ext >&5
13766 ac_cv_have_pw_class_in_struct_passwd="no"
13767
13768fi
13769rm -f conftest.$ac_objext conftest.$ac_ext
13770
13771fi
13772echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13773echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
13774if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13775 cat >>confdefs.h <<\_ACEOF
13776@%:@define HAVE_PW_CLASS_IN_PASSWD 1
13777_ACEOF
13778
13779fi
13780
13781echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
13782echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
13783if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786
13787 cat >conftest.$ac_ext <<_ACEOF
13788#line $LINENO "configure"
13789#include "confdefs.h"
13790
13791#include <pwd.h>
13792
13793#ifdef F77_DUMMY_MAIN
13794# ifdef __cplusplus
13795 extern "C"
13796# endif
13797 int F77_DUMMY_MAIN() { return 1; }
13798#endif
13799int
13800main ()
13801{
13802 struct passwd p; p.pw_expire = 0;
13803 ;
13804 return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext
13808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809 (eval $ac_compile) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_have_pw_expire_in_struct_passwd="yes"
13820else
13821 echo "$as_me: failed program was:" >&5
13822cat conftest.$ac_ext >&5
13823 ac_cv_have_pw_expire_in_struct_passwd="no"
13824
13825fi
13826rm -f conftest.$ac_objext conftest.$ac_ext
13827
13828fi
13829echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13830echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
13831if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13832 cat >>confdefs.h <<\_ACEOF
13833@%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
13834_ACEOF
13835
13836fi
13837
13838echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
13839echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
13840if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842else
13843
13844 cat >conftest.$ac_ext <<_ACEOF
13845#line $LINENO "configure"
13846#include "confdefs.h"
13847
13848#include <pwd.h>
13849
13850#ifdef F77_DUMMY_MAIN
13851# ifdef __cplusplus
13852 extern "C"
13853# endif
13854 int F77_DUMMY_MAIN() { return 1; }
13855#endif
13856int
13857main ()
13858{
13859 struct passwd p; p.pw_change = 0;
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext
13865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_have_pw_change_in_struct_passwd="yes"
13877else
13878 echo "$as_me: failed program was:" >&5
13879cat conftest.$ac_ext >&5
13880 ac_cv_have_pw_change_in_struct_passwd="no"
13881
13882fi
13883rm -f conftest.$ac_objext conftest.$ac_ext
13884
13885fi
13886echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13887echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
13888if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13889 cat >>confdefs.h <<\_ACEOF
13890@%:@define HAVE_PW_CHANGE_IN_PASSWD 1
13891_ACEOF
13892
13893fi
13894
13895echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
13896echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
13897if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
13900
f5799ae1 13901 if test "$cross_compiling" = yes; then
13902 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13903echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13904 { (exit 1); exit 1; }; }
13905else
13906 cat >conftest.$ac_ext <<_ACEOF
700318f3 13907#line $LINENO "configure"
13908#include "confdefs.h"
13909
13910#include <sys/types.h>
13911#include <sys/socket.h>
13912#include <sys/uio.h>
f5799ae1 13913int main() {
13914#ifdef msg_accrights
13915exit(1);
700318f3 13916#endif
f5799ae1 13917struct msghdr m;
13918m.msg_accrights = 0;
13919exit(0);
700318f3 13920}
f5799ae1 13921
700318f3 13922_ACEOF
f5799ae1 13923rm -f conftest$ac_exeext
13924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>&5
700318f3 13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5799ae1 13928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
700318f3 13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_have_accrights_in_msghdr="yes"
13935else
f5799ae1 13936 echo "$as_me: program exited with status $ac_status" >&5
13937echo "$as_me: failed program was:" >&5
700318f3 13938cat conftest.$ac_ext >&5
f5799ae1 13939( exit $ac_status )
700318f3 13940 ac_cv_have_accrights_in_msghdr="no"
13941
13942fi
f5799ae1 13943rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13944fi
700318f3 13945
13946fi
13947echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
13948echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
13949if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13950 cat >>confdefs.h <<\_ACEOF
13951@%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
13952_ACEOF
13953
13954fi
13955
13956echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
13957echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
13958if test "${ac_cv_have_control_in_msghdr+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960else
13961
f5799ae1 13962 if test "$cross_compiling" = yes; then
13963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13964echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13965 { (exit 1); exit 1; }; }
13966else
13967 cat >conftest.$ac_ext <<_ACEOF
700318f3 13968#line $LINENO "configure"
13969#include "confdefs.h"
13970
13971#include <sys/types.h>
13972#include <sys/socket.h>
13973#include <sys/uio.h>
f5799ae1 13974int main() {
13975#ifdef msg_control
13976exit(1);
700318f3 13977#endif
f5799ae1 13978struct msghdr m;
13979m.msg_control = 0;
13980exit(0);
700318f3 13981}
f5799ae1 13982
700318f3 13983_ACEOF
f5799ae1 13984rm -f conftest$ac_exeext
13985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13986 (eval $ac_link) 2>&5
700318f3 13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5799ae1 13989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
700318f3 13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_have_control_in_msghdr="yes"
13996else
f5799ae1 13997 echo "$as_me: program exited with status $ac_status" >&5
13998echo "$as_me: failed program was:" >&5
700318f3 13999cat conftest.$ac_ext >&5
f5799ae1 14000( exit $ac_status )
700318f3 14001 ac_cv_have_control_in_msghdr="no"
14002
14003fi
f5799ae1 14004rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14005fi
700318f3 14006
14007fi
14008echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14009echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14010if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14011 cat >>confdefs.h <<\_ACEOF
14012@%:@define HAVE_CONTROL_IN_MSGHDR 1
14013_ACEOF
14014
14015fi
14016
14017echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14018echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14019if test "${ac_cv_libc_defines___progname+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022
14023 cat >conftest.$ac_ext <<_ACEOF
14024#line $LINENO "configure"
14025#include "confdefs.h"
14026
14027#ifdef F77_DUMMY_MAIN
14028# ifdef __cplusplus
14029 extern "C"
14030# endif
14031 int F77_DUMMY_MAIN() { return 1; }
14032#endif
14033int
14034main ()
14035{
14036 extern char *__progname; printf("%s", __progname);
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext conftest$ac_exeext
14042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_libc_defines___progname="yes"
14054else
14055 echo "$as_me: failed program was:" >&5
14056cat conftest.$ac_ext >&5
14057 ac_cv_libc_defines___progname="no"
14058
14059fi
14060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14061
14062fi
14063echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14064echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14065if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14066 cat >>confdefs.h <<\_ACEOF
14067@%:@define HAVE___PROGNAME 1
14068_ACEOF
14069
14070fi
14071
14072echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14073echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14074if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
14077
14078 cat >conftest.$ac_ext <<_ACEOF
14079#line $LINENO "configure"
14080#include "confdefs.h"
14081
14082#include <stdio.h>
14083
14084#ifdef F77_DUMMY_MAIN
14085# ifdef __cplusplus
14086 extern "C"
14087# endif
14088 int F77_DUMMY_MAIN() { return 1; }
14089#endif
14090int
14091main ()
14092{
14093 printf("%s", __FUNCTION__);
14094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext conftest$ac_exeext
14099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14100 (eval $ac_link) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_cc_implements___FUNCTION__="yes"
14111else
14112 echo "$as_me: failed program was:" >&5
14113cat conftest.$ac_ext >&5
14114 ac_cv_cc_implements___FUNCTION__="no"
14115
14116fi
14117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14118
14119fi
14120echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14121echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14122if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14123 cat >>confdefs.h <<\_ACEOF
14124@%:@define HAVE___FUNCTION__ 1
14125_ACEOF
14126
14127fi
14128
14129echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14130echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14131if test "${ac_cv_cc_implements___func__+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134
14135 cat >conftest.$ac_ext <<_ACEOF
14136#line $LINENO "configure"
14137#include "confdefs.h"
14138
14139#include <stdio.h>
14140
14141#ifdef F77_DUMMY_MAIN
14142# ifdef __cplusplus
14143 extern "C"
14144# endif
14145 int F77_DUMMY_MAIN() { return 1; }
14146#endif
14147int
14148main ()
14149{
14150 printf("%s", __func__);
14151 ;
14152 return 0;
14153}
14154_ACEOF
14155rm -f conftest.$ac_objext conftest$ac_exeext
14156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_cv_cc_implements___func__="yes"
14168else
14169 echo "$as_me: failed program was:" >&5
14170cat conftest.$ac_ext >&5
14171 ac_cv_cc_implements___func__="no"
14172
14173fi
14174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14175
14176fi
14177echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14178echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14179if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14180 cat >>confdefs.h <<\_ACEOF
14181@%:@define HAVE___func__ 1
14182_ACEOF
14183
14184fi
14185
14186echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14187echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14188if test "${ac_cv_have_getopt_optreset+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190else
14191
14192 cat >conftest.$ac_ext <<_ACEOF
14193#line $LINENO "configure"
14194#include "confdefs.h"
14195
14196#include <getopt.h>
14197
14198#ifdef F77_DUMMY_MAIN
14199# ifdef __cplusplus
14200 extern "C"
14201# endif
14202 int F77_DUMMY_MAIN() { return 1; }
14203#endif
14204int
14205main ()
14206{
14207 extern int optreset; optreset = 0;
14208 ;
14209 return 0;
14210}
14211_ACEOF
14212rm -f conftest.$ac_objext conftest$ac_exeext
14213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_have_getopt_optreset="yes"
14225else
14226 echo "$as_me: failed program was:" >&5
14227cat conftest.$ac_ext >&5
14228 ac_cv_have_getopt_optreset="no"
14229
14230fi
14231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14232
14233fi
14234echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14235echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14236if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14237 cat >>confdefs.h <<\_ACEOF
14238@%:@define HAVE_GETOPT_OPTRESET 1
14239_ACEOF
14240
14241fi
14242
14243echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14244echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14245if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248
14249 cat >conftest.$ac_ext <<_ACEOF
14250#line $LINENO "configure"
14251#include "confdefs.h"
14252
14253#ifdef F77_DUMMY_MAIN
14254# ifdef __cplusplus
14255 extern "C"
14256# endif
14257 int F77_DUMMY_MAIN() { return 1; }
14258#endif
14259int
14260main ()
14261{
14262 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext conftest$ac_exeext
14268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_libc_defines_sys_errlist="yes"
14280else
14281 echo "$as_me: failed program was:" >&5
14282cat conftest.$ac_ext >&5
14283 ac_cv_libc_defines_sys_errlist="no"
14284
14285fi
14286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14287
14288fi
14289echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14290echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14291if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14292 cat >>confdefs.h <<\_ACEOF
14293@%:@define HAVE_SYS_ERRLIST 1
14294_ACEOF
14295
14296fi
14297
14298
14299echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14300echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14301if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303else
14304
14305 cat >conftest.$ac_ext <<_ACEOF
14306#line $LINENO "configure"
14307#include "confdefs.h"
14308
14309#ifdef F77_DUMMY_MAIN
14310# ifdef __cplusplus
14311 extern "C"
14312# endif
14313 int F77_DUMMY_MAIN() { return 1; }
14314#endif
14315int
14316main ()
14317{
14318 extern int sys_nerr; printf("%i", sys_nerr);
14319 ;
14320 return 0;
14321}
14322_ACEOF
14323rm -f conftest.$ac_objext conftest$ac_exeext
14324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_libc_defines_sys_nerr="yes"
14336else
14337 echo "$as_me: failed program was:" >&5
14338cat conftest.$ac_ext >&5
14339 ac_cv_libc_defines_sys_nerr="no"
14340
14341fi
14342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14343
14344fi
14345echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14346echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14347if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14348 cat >>confdefs.h <<\_ACEOF
14349@%:@define HAVE_SYS_NERR 1
14350_ACEOF
14351
14352fi
14353
14354SCARD_MSG="no"
14355
14356# Check whether user wants sectok support
14357
14358# Check whether --with-sectok or --without-sectok was given.
14359if test "${with_sectok+set}" = set; then
14360 withval="$with_sectok"
14361
14362 if test "x$withval" != "xno" ; then
14363 if test "x$withval" != "xyes" ; then
14364 CPPFLAGS="$CPPFLAGS -I${withval}"
14365 LDFLAGS="$LDFLAGS -L${withval}"
14366 if test ! -z "$need_dash_r" ; then
14367 LDFLAGS="$LDFLAGS -R${withval}"
14368 fi
14369 if test ! -z "$blibpath" ; then
14370 blibpath="$blibpath:${withval}"
14371 fi
14372 fi
14373
14374for ac_header in sectok.h
14375do
14376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14377if eval "test \"\${$as_ac_Header+set}\" = set"; then
14378 echo "$as_me:$LINENO: checking for $ac_header" >&5
14379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382fi
14383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14385else
14386 # Is the header compilable?
14387echo "$as_me:$LINENO: checking $ac_header usability" >&5
14388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14389cat >conftest.$ac_ext <<_ACEOF
14390#line $LINENO "configure"
14391#include "confdefs.h"
14392$ac_includes_default
14393@%:@include <$ac_header>
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397 (eval $ac_compile) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_header_compiler=yes
14408else
14409 echo "$as_me: failed program was:" >&5
14410cat conftest.$ac_ext >&5
14411ac_header_compiler=no
14412fi
14413rm -f conftest.$ac_objext conftest.$ac_ext
14414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415echo "${ECHO_T}$ac_header_compiler" >&6
14416
14417# Is the header present?
14418echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14420cat >conftest.$ac_ext <<_ACEOF
14421#line $LINENO "configure"
14422#include "confdefs.h"
14423@%:@include <$ac_header>
14424_ACEOF
14425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14427 ac_status=$?
14428 egrep -v '^ *\+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } >/dev/null; then
14433 if test -s conftest.err; then
14434 ac_cpp_err=$ac_c_preproc_warn_flag
14435 else
14436 ac_cpp_err=
14437 fi
14438else
14439 ac_cpp_err=yes
14440fi
14441if test -z "$ac_cpp_err"; then
14442 ac_header_preproc=yes
14443else
14444 echo "$as_me: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14446 ac_header_preproc=no
14447fi
14448rm -f conftest.err conftest.$ac_ext
14449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14450echo "${ECHO_T}$ac_header_preproc" >&6
14451
14452# So? What about this header?
14453case $ac_header_compiler:$ac_header_preproc in
14454 yes:no )
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14459 no:yes )
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14466esac
14467echo "$as_me:$LINENO: checking for $ac_header" >&5
14468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14469if eval "test \"\${$as_ac_Header+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471else
14472 eval "$as_ac_Header=$ac_header_preproc"
14473fi
14474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14476
14477fi
14478if test `eval echo '${'$as_ac_Header'}'` = yes; then
14479 cat >>confdefs.h <<_ACEOF
14480@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481_ACEOF
14482
14483fi
14484
14485done
14486
14487 if test "$ac_cv_header_sectok_h" != yes; then
14488 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14489echo "$as_me: error: Can't find sectok.h" >&2;}
14490 { (exit 1); exit 1; }; }
14491 fi
14492
14493echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14494echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14495if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 ac_check_lib_save_LIBS=$LIBS
14499LIBS="-lsectok $LIBS"
14500cat >conftest.$ac_ext <<_ACEOF
14501#line $LINENO "configure"
14502#include "confdefs.h"
14503
14504/* Override any gcc2 internal prototype to avoid an error. */
14505#ifdef __cplusplus
14506extern "C"
14507#endif
14508/* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14510char sectok_open ();
14511#ifdef F77_DUMMY_MAIN
14512# ifdef __cplusplus
14513 extern "C"
14514# endif
14515 int F77_DUMMY_MAIN() { return 1; }
14516#endif
14517int
14518main ()
14519{
14520sectok_open ();
14521 ;
14522 return 0;
14523}
14524_ACEOF
14525rm -f conftest.$ac_objext conftest$ac_exeext
14526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14527 (eval $ac_link) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -s conftest$ac_exeext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_cv_lib_sectok_sectok_open=yes
14538else
14539 echo "$as_me: failed program was:" >&5
14540cat conftest.$ac_ext >&5
14541ac_cv_lib_sectok_sectok_open=no
14542fi
14543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14544LIBS=$ac_check_lib_save_LIBS
14545fi
14546echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14547echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14548if test $ac_cv_lib_sectok_sectok_open = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550@%:@define HAVE_LIBSECTOK 1
14551_ACEOF
14552
14553 LIBS="-lsectok $LIBS"
14554
14555fi
14556
14557 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14558 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14559echo "$as_me: error: Can't find libsectok" >&2;}
14560 { (exit 1); exit 1; }; }
14561 fi
14562 cat >>confdefs.h <<\_ACEOF
14563@%:@define SMARTCARD 1
14564_ACEOF
14565
14566 cat >>confdefs.h <<\_ACEOF
14567@%:@define USE_SECTOK 1
14568_ACEOF
14569
14570 SCARD_MSG="yes, using sectok"
14571 fi
14572
14573
14574fi;
14575
14576# Check whether user wants OpenSC support
14577
14578# Check whether --with-opensc or --without-opensc was given.
14579if test "${with_opensc+set}" = set; then
14580 withval="$with_opensc"
14581 opensc_config_prefix="$withval"
14582else
14583 opensc_config_prefix=""
14584fi;
14585if test x$opensc_config_prefix != x ; then
14586 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14587 # Extract the first word of "opensc-config", so it can be a program name with args.
14588set dummy opensc-config; ac_word=$2
14589echo "$as_me:$LINENO: checking for $ac_word" >&5
14590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14591if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593else
14594 case $OPENSC_CONFIG in
14595 [\\/]* | ?:[\\/]*)
14596 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14597 ;;
14598 *)
14599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600for as_dir in $PATH
14601do
14602 IFS=$as_save_IFS
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
14605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14606 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 break 2
14609 fi
14610done
14611done
14612
14613 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14614 ;;
14615esac
14616fi
14617OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14618
14619if test -n "$OPENSC_CONFIG"; then
14620 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14621echo "${ECHO_T}$OPENSC_CONFIG" >&6
14622else
14623 echo "$as_me:$LINENO: result: no" >&5
14624echo "${ECHO_T}no" >&6
14625fi
14626
14627 if test "$OPENSC_CONFIG" != "no"; then
14628 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14629 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14630 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14631 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14632 cat >>confdefs.h <<\_ACEOF
14633@%:@define SMARTCARD 1
14634_ACEOF
14635
14636 cat >>confdefs.h <<\_ACEOF
14637@%:@define USE_OPENSC 1
14638_ACEOF
14639
14640 SCARD_MSG="yes, using OpenSC"
14641 fi
14642fi
14643
14644# Check whether user wants Kerberos 5 support
14645KRB5_MSG="no"
14646
14647# Check whether --with-kerberos5 or --without-kerberos5 was given.
14648if test "${with_kerberos5+set}" = set; then
14649 withval="$with_kerberos5"
14650
14651 if test "x$withval" != "xno" ; then
14652 if test "x$withval" = "xyes" ; then
14653 KRB5ROOT="/usr/local"
14654 else
14655 KRB5ROOT=${withval}
14656 fi
14657 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14658 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14659 cat >>confdefs.h <<\_ACEOF
14660@%:@define KRB5 1
14661_ACEOF
14662
14663 KRB5_MSG="yes"
14664 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
14665echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
14666 cat >conftest.$ac_ext <<_ACEOF
14667#line $LINENO "configure"
14668#include "confdefs.h"
14669 #include <krb5.h>
14670#ifdef F77_DUMMY_MAIN
14671# ifdef __cplusplus
14672 extern "C"
14673# endif
14674 int F77_DUMMY_MAIN() { return 1; }
14675#endif
14676int
14677main ()
14678{
14679 char *tmp = heimdal_version;
14680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 echo "$as_me:$LINENO: result: yes" >&5
14697echo "${ECHO_T}yes" >&6
14698 cat >>confdefs.h <<\_ACEOF
14699@%:@define HEIMDAL 1
14700_ACEOF
14701
14702 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
14703
14704else
14705 echo "$as_me: failed program was:" >&5
14706cat conftest.$ac_ext >&5
14707 echo "$as_me:$LINENO: result: no" >&5
14708echo "${ECHO_T}no" >&6
14709 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14710
14711
14712fi
14713rm -f conftest.$ac_objext conftest.$ac_ext
14714 if test ! -z "$need_dash_r" ; then
14715 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14716 fi
14717 if test ! -z "$blibpath" ; then
14718 blibpath="$blibpath:${KRB5ROOT}/lib"
14719 fi
14720
14721echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
14722echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
14723if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725else
14726 ac_check_lib_save_LIBS=$LIBS
14727LIBS="-lresolv $LIBS"
14728cat >conftest.$ac_ext <<_ACEOF
14729#line $LINENO "configure"
14730#include "confdefs.h"
14731
14732/* Override any gcc2 internal prototype to avoid an error. */
14733#ifdef __cplusplus
14734extern "C"
14735#endif
14736/* We use char because int might match the return type of a gcc2
14737 builtin and then its argument prototype would still apply. */
14738char dn_expand ();
14739#ifdef F77_DUMMY_MAIN
14740# ifdef __cplusplus
14741 extern "C"
14742# endif
14743 int F77_DUMMY_MAIN() { return 1; }
14744#endif
14745int
14746main ()
14747{
14748dn_expand ();
14749 ;
14750 return 0;
14751}
14752_ACEOF
14753rm -f conftest.$ac_objext conftest$ac_exeext
14754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_cv_lib_resolv_dn_expand=yes
14766else
14767 echo "$as_me: failed program was:" >&5
14768cat conftest.$ac_ext >&5
14769ac_cv_lib_resolv_dn_expand=no
14770fi
14771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14772LIBS=$ac_check_lib_save_LIBS
14773fi
14774echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
14775echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
14776if test $ac_cv_lib_resolv_dn_expand = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778@%:@define HAVE_LIBRESOLV 1
14779_ACEOF
14780
14781 LIBS="-lresolv $LIBS"
14782
14783fi
14784
14785
14786 KRB5=yes
14787 fi
14788
14789
14790fi;
14791# Check whether user wants Kerberos 4 support
14792KRB4_MSG="no"
14793
14794# Check whether --with-kerberos4 or --without-kerberos4 was given.
14795if test "${with_kerberos4+set}" = set; then
14796 withval="$with_kerberos4"
14797
14798 if test "x$withval" != "xno" ; then
14799 if test "x$withval" != "xyes" ; then
14800 CPPFLAGS="$CPPFLAGS -I${withval}/include"
14801 LDFLAGS="$LDFLAGS -L${withval}/lib"
14802 if test ! -z "$need_dash_r" ; then
14803 LDFLAGS="$LDFLAGS -R${withval}/lib"
14804 fi
14805 if test ! -z "$blibpath" ; then
14806 blibpath="$blibpath:${withval}/lib"
14807 fi
14808 else
14809 if test -d /usr/include/kerberosIV ; then
14810 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
14811 fi
14812 fi
14813
14814
14815for ac_header in krb.h
14816do
14817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818if eval "test \"\${$as_ac_Header+set}\" = set"; then
14819 echo "$as_me:$LINENO: checking for $ac_header" >&5
14820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14821if eval "test \"\${$as_ac_Header+set}\" = set"; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823fi
14824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14826else
14827 # Is the header compilable?
14828echo "$as_me:$LINENO: checking $ac_header usability" >&5
14829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14830cat >conftest.$ac_ext <<_ACEOF
14831#line $LINENO "configure"
14832#include "confdefs.h"
14833$ac_includes_default
14834@%:@include <$ac_header>
14835_ACEOF
14836rm -f conftest.$ac_objext
14837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838 (eval $ac_compile) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_header_compiler=yes
14849else
14850 echo "$as_me: failed program was:" >&5
14851cat conftest.$ac_ext >&5
14852ac_header_compiler=no
14853fi
14854rm -f conftest.$ac_objext conftest.$ac_ext
14855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14856echo "${ECHO_T}$ac_header_compiler" >&6
14857
14858# Is the header present?
14859echo "$as_me:$LINENO: checking $ac_header presence" >&5
14860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14861cat >conftest.$ac_ext <<_ACEOF
14862#line $LINENO "configure"
14863#include "confdefs.h"
14864@%:@include <$ac_header>
14865_ACEOF
14866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14868 ac_status=$?
14869 egrep -v '^ *\+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } >/dev/null; then
14874 if test -s conftest.err; then
14875 ac_cpp_err=$ac_c_preproc_warn_flag
14876 else
14877 ac_cpp_err=
14878 fi
14879else
14880 ac_cpp_err=yes
14881fi
14882if test -z "$ac_cpp_err"; then
14883 ac_header_preproc=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 ac_header_preproc=no
14888fi
14889rm -f conftest.err conftest.$ac_ext
14890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14891echo "${ECHO_T}$ac_header_preproc" >&6
14892
14893# So? What about this header?
14894case $ac_header_compiler:$ac_header_preproc in
14895 yes:no )
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14900 no:yes )
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14907esac
14908echo "$as_me:$LINENO: checking for $ac_header" >&5
14909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14910if eval "test \"\${$as_ac_Header+set}\" = set"; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912else
14913 eval "$as_ac_Header=$ac_header_preproc"
14914fi
14915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14917
14918fi
14919if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14922_ACEOF
14923
14924fi
14925
14926done
14927
14928 if test "$ac_cv_header_krb_h" != yes; then
14929 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
14930echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
14931 fi
14932
14933echo "$as_me:$LINENO: checking for main in -lkrb" >&5
14934echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
14935if test "${ac_cv_lib_krb_main+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937else
14938 ac_check_lib_save_LIBS=$LIBS
14939LIBS="-lkrb $LIBS"
14940cat >conftest.$ac_ext <<_ACEOF
14941#line $LINENO "configure"
14942#include "confdefs.h"
14943
14944
14945#ifdef F77_DUMMY_MAIN
14946# ifdef __cplusplus
14947 extern "C"
14948# endif
14949 int F77_DUMMY_MAIN() { return 1; }
14950#endif
14951int
14952main ()
14953{
14954main ();
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext conftest$ac_exeext
14960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_cv_lib_krb_main=yes
14972else
14973 echo "$as_me: failed program was:" >&5
14974cat conftest.$ac_ext >&5
14975ac_cv_lib_krb_main=no
14976fi
14977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14978LIBS=$ac_check_lib_save_LIBS
14979fi
14980echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
14981echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
14982if test $ac_cv_lib_krb_main = yes; then
14983 cat >>confdefs.h <<_ACEOF
14984@%:@define HAVE_LIBKRB 1
14985_ACEOF
14986
14987 LIBS="-lkrb $LIBS"
14988
14989fi
14990
14991 if test "$ac_cv_lib_krb_main" != yes; then
14992
14993echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
14994echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
14995if test "${ac_cv_lib_krb4_main+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998 ac_check_lib_save_LIBS=$LIBS
14999LIBS="-lkrb4 $LIBS"
15000cat >conftest.$ac_ext <<_ACEOF
15001#line $LINENO "configure"
15002#include "confdefs.h"
15003
15004
15005#ifdef F77_DUMMY_MAIN
15006# ifdef __cplusplus
15007 extern "C"
15008# endif
15009 int F77_DUMMY_MAIN() { return 1; }
15010#endif
15011int
15012main ()
15013{
15014main ();
15015 ;
15016 return 0;
15017}
15018_ACEOF
15019rm -f conftest.$ac_objext conftest$ac_exeext
15020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_lib_krb4_main=yes
15032else
15033 echo "$as_me: failed program was:" >&5
15034cat conftest.$ac_ext >&5
15035ac_cv_lib_krb4_main=no
15036fi
15037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15038LIBS=$ac_check_lib_save_LIBS
15039fi
15040echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15041echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15042if test $ac_cv_lib_krb4_main = yes; then
15043 cat >>confdefs.h <<_ACEOF
15044@%:@define HAVE_LIBKRB4 1
15045_ACEOF
15046
15047 LIBS="-lkrb4 $LIBS"
15048
15049fi
15050
15051 if test "$ac_cv_lib_krb4_main" != yes; then
15052 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15053echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15054 else
15055 KLIBS="-lkrb4"
15056 fi
15057 else
15058 KLIBS="-lkrb"
15059 fi
15060
15061echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15062echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15063if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
15066 ac_check_lib_save_LIBS=$LIBS
15067LIBS="-ldes $LIBS"
15068cat >conftest.$ac_ext <<_ACEOF
15069#line $LINENO "configure"
15070#include "confdefs.h"
15071
15072/* Override any gcc2 internal prototype to avoid an error. */
15073#ifdef __cplusplus
15074extern "C"
15075#endif
15076/* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078char des_cbc_encrypt ();
15079#ifdef F77_DUMMY_MAIN
15080# ifdef __cplusplus
15081 extern "C"
15082# endif
15083 int F77_DUMMY_MAIN() { return 1; }
15084#endif
15085int
15086main ()
15087{
15088des_cbc_encrypt ();
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext conftest$ac_exeext
15094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_des_des_cbc_encrypt=yes
15106else
15107 echo "$as_me: failed program was:" >&5
15108cat conftest.$ac_ext >&5
15109ac_cv_lib_des_des_cbc_encrypt=no
15110fi
15111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15112LIBS=$ac_check_lib_save_LIBS
15113fi
15114echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15115echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15116if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118@%:@define HAVE_LIBDES 1
15119_ACEOF
15120
15121 LIBS="-ldes $LIBS"
15122
15123fi
15124
15125 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15126
15127echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15128echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15129if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132 ac_check_lib_save_LIBS=$LIBS
15133LIBS="-ldes425 $LIBS"
15134cat >conftest.$ac_ext <<_ACEOF
15135#line $LINENO "configure"
15136#include "confdefs.h"
15137
15138/* Override any gcc2 internal prototype to avoid an error. */
15139#ifdef __cplusplus
15140extern "C"
15141#endif
15142/* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15144char des_cbc_encrypt ();
15145#ifdef F77_DUMMY_MAIN
15146# ifdef __cplusplus
15147 extern "C"
15148# endif
15149 int F77_DUMMY_MAIN() { return 1; }
15150#endif
15151int
15152main ()
15153{
15154des_cbc_encrypt ();
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159rm -f conftest.$ac_objext conftest$ac_exeext
15160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15161 (eval $ac_link) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -s conftest$ac_exeext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_lib_des425_des_cbc_encrypt=yes
15172else
15173 echo "$as_me: failed program was:" >&5
15174cat conftest.$ac_ext >&5
15175ac_cv_lib_des425_des_cbc_encrypt=no
15176fi
15177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15178LIBS=$ac_check_lib_save_LIBS
15179fi
15180echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15181echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15182if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184@%:@define HAVE_LIBDES425 1
15185_ACEOF
15186
15187 LIBS="-ldes425 $LIBS"
15188
15189fi
15190
15191 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15192 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15193echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15194 else
15195 KLIBS="-ldes425"
15196 fi
15197 else
15198 KLIBS="-ldes"
15199 fi
15200
15201echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15202echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15203if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205else
15206 ac_check_lib_save_LIBS=$LIBS
15207LIBS="-lresolv $LIBS"
15208cat >conftest.$ac_ext <<_ACEOF
15209#line $LINENO "configure"
15210#include "confdefs.h"
15211
15212/* Override any gcc2 internal prototype to avoid an error. */
15213#ifdef __cplusplus
15214extern "C"
15215#endif
15216/* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218char dn_expand ();
15219#ifdef F77_DUMMY_MAIN
15220# ifdef __cplusplus
15221 extern "C"
15222# endif
15223 int F77_DUMMY_MAIN() { return 1; }
15224#endif
15225int
15226main ()
15227{
15228dn_expand ();
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext conftest$ac_exeext
15234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235 (eval $ac_link) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest$ac_exeext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_cv_lib_resolv_dn_expand=yes
15246else
15247 echo "$as_me: failed program was:" >&5
15248cat conftest.$ac_ext >&5
15249ac_cv_lib_resolv_dn_expand=no
15250fi
15251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15252LIBS=$ac_check_lib_save_LIBS
15253fi
15254echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15255echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15256if test $ac_cv_lib_resolv_dn_expand = yes; then
15257 cat >>confdefs.h <<_ACEOF
15258@%:@define HAVE_LIBRESOLV 1
15259_ACEOF
15260
15261 LIBS="-lresolv $LIBS"
15262
15263fi
15264
15265 KRB4=yes
15266 KRB4_MSG="yes"
15267 cat >>confdefs.h <<\_ACEOF
15268@%:@define KRB4 1
15269_ACEOF
15270
15271 fi
15272
15273
15274fi;
15275
15276# Check whether user wants AFS support
15277AFS_MSG="no"
15278
15279# Check whether --with-afs or --without-afs was given.
15280if test "${with_afs+set}" = set; then
15281 withval="$with_afs"
15282
15283 if test "x$withval" != "xno" ; then
15284
15285 if test "x$withval" != "xyes" ; then
15286 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15287 LDFLAGS="$LDFLAGS -L${withval}/lib"
15288 fi
15289
15290 if test -z "$KRB4" ; then
15291 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15292echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15293 fi
15294
15295 LIBS="-lkafs $LIBS"
15296 if test ! -z "$AFS_LIBS" ; then
15297 LIBS="$LIBS $AFS_LIBS"
15298 fi
15299 cat >>confdefs.h <<\_ACEOF
15300@%:@define AFS 1
15301_ACEOF
15302
15303 AFS_MSG="yes"
15304 fi
15305
15306
15307fi;
15308LIBS="$LIBS $KLIBS $K5LIBS"
15309
15310# Looking for programs, paths and files
15311
700318f3 15312PRIVSEP_PATH=/var/empty
15313
15314# Check whether --with-privsep-path or --without-privsep-path was given.
15315if test "${with_privsep_path+set}" = set; then
15316 withval="$with_privsep_path"
15317
15318 if test "x$withval" != "$no" ; then
15319 PRIVSEP_PATH=$withval
15320 fi
15321
15322
15323fi;
15324
15325
15326
15327# Check whether --with-xauth or --without-xauth was given.
15328if test "${with_xauth+set}" = set; then
15329 withval="$with_xauth"
15330
15331 if test "x$withval" != "xno" ; then
15332 xauth_path=$withval
15333 fi
15334
15335else
15336
15337 # Extract the first word of "xauth", so it can be a program name with args.
15338set dummy xauth; ac_word=$2
15339echo "$as_me:$LINENO: checking for $ac_word" >&5
15340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15341if test "${ac_cv_path_xauth_path+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344 case $xauth_path in
15345 [\\/]* | ?:[\\/]*)
15346 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15347 ;;
15348 *)
15349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15350for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin
15351do
15352 IFS=$as_save_IFS
15353 test -z "$as_dir" && as_dir=.
15354 for ac_exec_ext in '' $ac_executable_extensions; do
15355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15356 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15358 break 2
15359 fi
15360done
15361done
15362
15363 ;;
15364esac
15365fi
15366xauth_path=$ac_cv_path_xauth_path
15367
15368if test -n "$xauth_path"; then
15369 echo "$as_me:$LINENO: result: $xauth_path" >&5
15370echo "${ECHO_T}$xauth_path" >&6
15371else
15372 echo "$as_me:$LINENO: result: no" >&5
15373echo "${ECHO_T}no" >&6
15374fi
15375
15376 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15377 xauth_path="/usr/openwin/bin/xauth"
15378 fi
15379
15380
15381fi;
15382
15383if test -z "$xauth_path" ; then
15384 XAUTH_PATH="undefined"
15385
15386else
15387 cat >>confdefs.h <<_ACEOF
15388@%:@define XAUTH_PATH "$xauth_path"
15389_ACEOF
15390
15391 XAUTH_PATH=$xauth_path
15392
700318f3 15393fi
15394
15395# Check for mail directory (last resort if we cannot get it from headers)
15396if test ! -z "$MAIL" ; then
15397 maildir=`dirname $MAIL`
15398 cat >>confdefs.h <<_ACEOF
15399@%:@define MAIL_DIRECTORY "$maildir"
15400_ACEOF
15401
15402fi
15403
15404if test -z "$no_dev_ptmx" ; then
15405 if test "x$disable_ptmx_check" != "xyes" ; then
15406 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15407echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15408if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411 test "$cross_compiling" = yes &&
15412 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15413echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15414 { (exit 1); exit 1; }; }
15415if test -r ""/dev/ptmx""; then
15416 ac_cv_file___dev_ptmx_=yes
15417else
15418 ac_cv_file___dev_ptmx_=no
15419fi
15420fi
15421echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15422echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15423if test $ac_cv_file___dev_ptmx_ = yes; then
15424
15425 cat >>confdefs.h <<_ACEOF
15426@%:@define HAVE_DEV_PTMX 1
15427_ACEOF
15428
15429 have_dev_ptmx=1
15430
15431
15432fi
15433
15434 fi
15435fi
15436echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15437echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15438if test "${ac_cv_file___dev_ptc_+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440else
15441 test "$cross_compiling" = yes &&
15442 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15443echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15444 { (exit 1); exit 1; }; }
15445if test -r ""/dev/ptc""; then
15446 ac_cv_file___dev_ptc_=yes
15447else
15448 ac_cv_file___dev_ptc_=no
15449fi
15450fi
15451echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15452echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15453if test $ac_cv_file___dev_ptc_ = yes; then
15454
15455 cat >>confdefs.h <<_ACEOF
15456@%:@define HAVE_DEV_PTS_AND_PTC 1
15457_ACEOF
15458
15459 have_dev_ptc=1
15460
15461
15462fi
15463
15464
15465# Options from here on. Some of these are preset by platform above
15466
15467# Check whether --with-mantype or --without-mantype was given.
15468if test "${with_mantype+set}" = set; then
15469 withval="$with_mantype"
15470
15471 case "$withval" in
15472 man|cat|doc)
15473 MANTYPE=$withval
15474 ;;
15475 *)
15476 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15477echo "$as_me: error: invalid man type: $withval" >&2;}
15478 { (exit 1); exit 1; }; }
15479 ;;
15480 esac
15481
15482
15483fi;
15484if test -z "$MANTYPE"; then
15485 for ac_prog in nroff awf
15486do
15487 # Extract the first word of "$ac_prog", so it can be a program name with args.
15488set dummy $ac_prog; ac_word=$2
15489echo "$as_me:$LINENO: checking for $ac_word" >&5
15490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15491if test "${ac_cv_path_NROFF+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 case $NROFF in
15495 [\\/]* | ?:[\\/]*)
15496 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15497 ;;
15498 *)
15499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15500as_dummy="/usr/bin:/usr/ucb"
15501for as_dir in $as_dummy
15502do
15503 IFS=$as_save_IFS
15504 test -z "$as_dir" && as_dir=.
15505 for ac_exec_ext in '' $ac_executable_extensions; do
15506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15507 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15509 break 2
15510 fi
15511done
15512done
15513
15514 ;;
15515esac
15516fi
15517NROFF=$ac_cv_path_NROFF
15518
15519if test -n "$NROFF"; then
15520 echo "$as_me:$LINENO: result: $NROFF" >&5
15521echo "${ECHO_T}$NROFF" >&6
15522else
15523 echo "$as_me:$LINENO: result: no" >&5
15524echo "${ECHO_T}no" >&6
15525fi
15526
15527 test -n "$NROFF" && break
15528done
15529test -n "$NROFF" || NROFF="/bin/false"
15530
15531 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15532 MANTYPE=doc
15533 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15534 MANTYPE=man
15535 else
15536 MANTYPE=cat
15537 fi
15538fi
15539
15540if test "$MANTYPE" = "doc"; then
15541 mansubdir=man;
15542else
15543 mansubdir=$MANTYPE;
15544fi
15545
15546
15547# Check whether to enable MD5 passwords
15548MD5_MSG="no"
15549
15550# Check whether --with-md5-passwords or --without-md5-passwords was given.
15551if test "${with_md5_passwords+set}" = set; then
15552 withval="$with_md5_passwords"
15553
15554 if test "x$withval" != "xno" ; then
15555 cat >>confdefs.h <<\_ACEOF
15556@%:@define HAVE_MD5_PASSWORDS 1
15557_ACEOF
15558
15559 MD5_MSG="yes"
15560 fi
15561
15562
15563fi;
15564
15565# Whether to disable shadow password support
15566
15567# Check whether --with-shadow or --without-shadow was given.
15568if test "${with_shadow+set}" = set; then
15569 withval="$with_shadow"
15570
15571 if test "x$withval" = "xno" ; then
15572 cat >>confdefs.h <<\_ACEOF
15573@%:@define DISABLE_SHADOW 1
15574_ACEOF
15575
15576 disable_shadow=yes
15577 fi
15578
15579
15580fi;
15581
15582if test -z "$disable_shadow" ; then
15583 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15584echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15585 cat >conftest.$ac_ext <<_ACEOF
15586#line $LINENO "configure"
15587#include "confdefs.h"
15588
15589#include <sys/types.h>
15590#include <shadow.h>
15591 struct spwd sp;
15592
15593#ifdef F77_DUMMY_MAIN
15594# ifdef __cplusplus
15595 extern "C"
15596# endif
15597 int F77_DUMMY_MAIN() { return 1; }
15598#endif
15599int
15600main ()
15601{
15602 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15603 ;
15604 return 0;
15605}
15606_ACEOF
15607rm -f conftest.$ac_objext
15608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15609 (eval $ac_compile) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -s conftest.$ac_objext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 sp_expire_available=yes
15620else
15621 echo "$as_me: failed program was:" >&5
15622cat conftest.$ac_ext >&5
15623
15624
15625fi
15626rm -f conftest.$ac_objext conftest.$ac_ext
15627
15628 if test "x$sp_expire_available" = "xyes" ; then
15629 echo "$as_me:$LINENO: result: yes" >&5
15630echo "${ECHO_T}yes" >&6
15631 cat >>confdefs.h <<\_ACEOF
15632@%:@define HAS_SHADOW_EXPIRE 1
15633_ACEOF
15634
15635 else
15636 echo "$as_me:$LINENO: result: no" >&5
15637echo "${ECHO_T}no" >&6
15638 fi
15639fi
15640
15641# Use ip address instead of hostname in $DISPLAY
15642if test ! -z "$IPADDR_IN_DISPLAY" ; then
15643 DISPLAY_HACK_MSG="yes"
15644 cat >>confdefs.h <<\_ACEOF
15645@%:@define IPADDR_IN_DISPLAY 1
15646_ACEOF
15647
15648else
15649 DISPLAY_HACK_MSG="no"
15650
15651# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
15652if test "${with_ipaddr_display+set}" = set; then
15653 withval="$with_ipaddr_display"
15654
15655 if test "x$withval" != "xno" ; then
15656 cat >>confdefs.h <<\_ACEOF
15657@%:@define IPADDR_IN_DISPLAY 1
15658_ACEOF
15659
15660 DISPLAY_HACK_MSG="yes"
15661 fi
15662
15663
15664fi;
15665fi
15666
15667if test $ac_cv_func_login_getcapbool = "yes" -a \
15668 $ac_cv_header_login_cap_h = "yes" ; then
15669 USES_LOGIN_CONF=yes
15670fi
15671# Whether to mess with the default path
15672SERVER_PATH_MSG="(default)"
15673
15674# Check whether --with-default-path or --without-default-path was given.
15675if test "${with_default_path+set}" = set; then
15676 withval="$with_default_path"
15677
15678 if test "$USES_LOGIN_CONF" = "yes" ; then
15679 { echo "$as_me:$LINENO: WARNING:
15680--with-default-path=PATH has no effect on this system.
15681Edit /etc/login.conf instead." >&5
15682echo "$as_me: WARNING:
15683--with-default-path=PATH has no effect on this system.
15684Edit /etc/login.conf instead." >&2;}
15685 elif test "x$withval" != "xno" ; then
15686 user_path="$withval"
15687 SERVER_PATH_MSG="$withval"
15688 fi
15689
15690else
15691 if test "$USES_LOGIN_CONF" = "yes" ; then
15692 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15693echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15694 else
15695 if test "$cross_compiling" = yes; then
15696 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15697
15698else
15699 cat >conftest.$ac_ext <<_ACEOF
15700#line $LINENO "configure"
15701#include "confdefs.h"
15702
15703/* find out what STDPATH is */
15704#include <stdio.h>
15705#ifdef HAVE_PATHS_H
15706# include <paths.h>
15707#endif
15708#ifndef _PATH_STDPATH
15709# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15710#endif
15711#include <sys/types.h>
15712#include <sys/stat.h>
15713#include <fcntl.h>
15714#define DATA "conftest.stdpath"
15715
15716main()
15717{
15718 FILE *fd;
15719 int rc;
15720
15721 fd = fopen(DATA,"w");
15722 if(fd == NULL)
15723 exit(1);
15724
15725 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15726 exit(1);
15727
15728 exit(0);
15729}
15730
15731_ACEOF
15732rm -f conftest$ac_exeext
15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 user_path=`cat conftest.stdpath`
15744else
15745 echo "$as_me: program exited with status $ac_status" >&5
15746echo "$as_me: failed program was:" >&5
15747cat conftest.$ac_ext >&5
15748( exit $ac_status )
15749 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15750fi
15751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15752fi
15753# make sure $bindir is in USER_PATH so scp will work
15754 t_bindir=`eval echo ${bindir}`
15755 case $t_bindir in
15756 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15757 esac
15758 case $t_bindir in
15759 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15760 esac
15761 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
15762 if test $? -ne 0 ; then
15763 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
15764 if test $? -ne 0 ; then
15765 user_path=$user_path:$t_bindir
15766 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15767echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
15768 fi
15769 fi
15770 fi
15771
15772fi;
15773if test "$USES_LOGIN_CONF" != "yes" ; then
15774 cat >>confdefs.h <<_ACEOF
15775@%:@define USER_PATH "$user_path"
15776_ACEOF
15777
15778
15779fi
15780
15781# Set superuser path separately to user path
700318f3 15782
15783# Check whether --with-superuser-path or --without-superuser-path was given.
15784if test "${with_superuser_path+set}" = set; then
15785 withval="$with_superuser_path"
15786
15787 if test "x$withval" != "xno" ; then
15788 cat >>confdefs.h <<_ACEOF
15789@%:@define SUPERUSER_PATH "$withval"
15790_ACEOF
15791
15792 superuser_path=$withval
15793 fi
15794
15795
15796fi;
15797
15798
15799# Whether to force IPv4 by default (needed on broken glibc Linux)
15800IPV4_HACK_MSG="no"
15801
15802# Check whether --with-ipv4-default or --without-ipv4-default was given.
15803if test "${with_ipv4_default+set}" = set; then
15804 withval="$with_ipv4_default"
15805
15806 if test "x$withval" != "xno" ; then
15807 cat >>confdefs.h <<\_ACEOF
15808@%:@define IPV4_DEFAULT 1
15809_ACEOF
15810
15811 IPV4_HACK_MSG="yes"
15812 fi
15813
15814
15815fi;
15816
15817echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15818echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
15819IPV4_IN6_HACK_MSG="no"
15820
15821# Check whether --with-4in6 or --without-4in6 was given.
15822if test "${with_4in6+set}" = set; then
15823 withval="$with_4in6"
15824
15825 if test "x$withval" != "xno" ; then
15826 echo "$as_me:$LINENO: result: yes" >&5
15827echo "${ECHO_T}yes" >&6
15828 cat >>confdefs.h <<\_ACEOF
15829@%:@define IPV4_IN_IPV6 1
15830_ACEOF
15831
15832 IPV4_IN6_HACK_MSG="yes"
15833 else
15834 echo "$as_me:$LINENO: result: no" >&5
15835echo "${ECHO_T}no" >&6
15836 fi
15837
15838else
15839
15840 if test "x$inet6_default_4in6" = "xyes"; then
15841 echo "$as_me:$LINENO: result: yes (default)" >&5
15842echo "${ECHO_T}yes (default)" >&6
15843 cat >>confdefs.h <<\_ACEOF
15844@%:@define IPV4_IN_IPV6 1
15845_ACEOF
15846
15847 IPV4_IN6_HACK_MSG="yes"
15848 else
15849 echo "$as_me:$LINENO: result: no (default)" >&5
15850echo "${ECHO_T}no (default)" >&6
15851 fi
15852
15853
15854fi;
15855
15856# Whether to enable BSD auth support
15857BSD_AUTH_MSG=no
15858
15859# Check whether --with-bsd-auth or --without-bsd-auth was given.
15860if test "${with_bsd_auth+set}" = set; then
15861 withval="$with_bsd_auth"
15862
15863 if test "x$withval" != "xno" ; then
15864 cat >>confdefs.h <<\_ACEOF
15865@%:@define BSD_AUTH 1
15866_ACEOF
15867
15868 BSD_AUTH_MSG=yes
15869 fi
15870
15871
15872fi;
15873
700318f3 15874# Where to place sshd.pid
15875piddir=/var/run
15876# make sure the directory exists
15877if test ! -d $piddir ; then
15878 piddir=`eval echo ${sysconfdir}`
15879 case $piddir in
15880 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15881 esac
15882fi
15883
15884
15885# Check whether --with-pid-dir or --without-pid-dir was given.
15886if test "${with_pid_dir+set}" = set; then
15887 withval="$with_pid_dir"
15888
15889 if test "x$withval" != "xno" ; then
15890 piddir=$withval
15891 if test ! -d $piddir ; then
15892 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
15893echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15894 fi
15895 fi
15896
15897
15898fi;
15899
15900cat >>confdefs.h <<_ACEOF
15901@%:@define _PATH_SSH_PIDDIR "$piddir"
15902_ACEOF
15903
15904
15905
15906# Check whether --enable-lastlog or --disable-lastlog was given.
15907if test "${enable_lastlog+set}" = set; then
15908 enableval="$enable_lastlog"
15909 cat >>confdefs.h <<\_ACEOF
15910@%:@define DISABLE_LASTLOG 1
15911_ACEOF
15912
15913
15914fi;
15915# Check whether --enable-utmp or --disable-utmp was given.
15916if test "${enable_utmp+set}" = set; then
15917 enableval="$enable_utmp"
15918 cat >>confdefs.h <<\_ACEOF
15919@%:@define DISABLE_UTMP 1
15920_ACEOF
15921
15922
15923fi;
15924# Check whether --enable-utmpx or --disable-utmpx was given.
15925if test "${enable_utmpx+set}" = set; then
15926 enableval="$enable_utmpx"
15927 cat >>confdefs.h <<\_ACEOF
15928@%:@define DISABLE_UTMPX 1
15929_ACEOF
15930
15931
15932fi;
15933# Check whether --enable-wtmp or --disable-wtmp was given.
15934if test "${enable_wtmp+set}" = set; then
15935 enableval="$enable_wtmp"
15936 cat >>confdefs.h <<\_ACEOF
15937@%:@define DISABLE_WTMP 1
15938_ACEOF
15939
15940
15941fi;
15942# Check whether --enable-wtmpx or --disable-wtmpx was given.
15943if test "${enable_wtmpx+set}" = set; then
15944 enableval="$enable_wtmpx"
15945 cat >>confdefs.h <<\_ACEOF
15946@%:@define DISABLE_WTMPX 1
15947_ACEOF
15948
15949
15950fi;
15951# Check whether --enable-libutil or --disable-libutil was given.
15952if test "${enable_libutil+set}" = set; then
15953 enableval="$enable_libutil"
15954 cat >>confdefs.h <<\_ACEOF
15955@%:@define DISABLE_LOGIN 1
15956_ACEOF
15957
15958
15959fi;
15960# Check whether --enable-pututline or --disable-pututline was given.
15961if test "${enable_pututline+set}" = set; then
15962 enableval="$enable_pututline"
15963 cat >>confdefs.h <<\_ACEOF
15964@%:@define DISABLE_PUTUTLINE 1
15965_ACEOF
15966
15967
15968fi;
15969# Check whether --enable-pututxline or --disable-pututxline was given.
15970if test "${enable_pututxline+set}" = set; then
15971 enableval="$enable_pututxline"
15972 cat >>confdefs.h <<\_ACEOF
15973@%:@define DISABLE_PUTUTXLINE 1
15974_ACEOF
15975
15976
15977fi;
15978
15979# Check whether --with-lastlog or --without-lastlog was given.
15980if test "${with_lastlog+set}" = set; then
15981 withval="$with_lastlog"
15982
15983 if test "x$withval" = "xno" ; then
15984 cat >>confdefs.h <<\_ACEOF
15985@%:@define DISABLE_LASTLOG 1
15986_ACEOF
15987
15988 else
15989 conf_lastlog_location=$withval
15990 fi
15991
15992
15993fi;
15994
15995
15996echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
15997echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
15998cat >conftest.$ac_ext <<_ACEOF
15999#line $LINENO "configure"
16000#include "confdefs.h"
16001
16002#include <sys/types.h>
16003#include <utmp.h>
16004#ifdef HAVE_LASTLOG_H
16005# include <lastlog.h>
16006#endif
16007#ifdef HAVE_PATHS_H
16008# include <paths.h>
16009#endif
16010#ifdef HAVE_LOGIN_H
16011# include <login.h>
16012#endif
16013
16014#ifdef F77_DUMMY_MAIN
16015# ifdef __cplusplus
16016 extern "C"
16017# endif
16018 int F77_DUMMY_MAIN() { return 1; }
16019#endif
16020int
16021main ()
16022{
16023 char *lastlog = LASTLOG_FILE;
16024 ;
16025 return 0;
16026}
16027_ACEOF
16028rm -f conftest.$ac_objext
16029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16030 (eval $ac_compile) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 echo "$as_me:$LINENO: result: yes" >&5
16041echo "${ECHO_T}yes" >&6
16042else
16043 echo "$as_me: failed program was:" >&5
16044cat conftest.$ac_ext >&5
16045
16046 echo "$as_me:$LINENO: result: no" >&5
16047echo "${ECHO_T}no" >&6
16048 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16049echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16050 cat >conftest.$ac_ext <<_ACEOF
16051#line $LINENO "configure"
16052#include "confdefs.h"
16053
16054#include <sys/types.h>
16055#include <utmp.h>
16056#ifdef HAVE_LASTLOG_H
16057# include <lastlog.h>
16058#endif
16059#ifdef HAVE_PATHS_H
16060# include <paths.h>
16061#endif
16062
16063#ifdef F77_DUMMY_MAIN
16064# ifdef __cplusplus
16065 extern "C"
16066# endif
16067 int F77_DUMMY_MAIN() { return 1; }
16068#endif
16069int
16070main ()
16071{
16072 char *lastlog = _PATH_LASTLOG;
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest.$ac_objext
16078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 echo "$as_me:$LINENO: result: yes" >&5
16090echo "${ECHO_T}yes" >&6
16091else
16092 echo "$as_me: failed program was:" >&5
16093cat conftest.$ac_ext >&5
16094
16095 echo "$as_me:$LINENO: result: no" >&5
16096echo "${ECHO_T}no" >&6
16097 system_lastlog_path=no
16098
16099fi
16100rm -f conftest.$ac_objext conftest.$ac_ext
16101
16102
16103fi
16104rm -f conftest.$ac_objext conftest.$ac_ext
16105
16106if test -z "$conf_lastlog_location"; then
16107 if test x"$system_lastlog_path" = x"no" ; then
16108 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16109 if (test -d "$f" || test -f "$f") ; then
16110 conf_lastlog_location=$f
16111 fi
16112 done
16113 if test -z "$conf_lastlog_location"; then
16114 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16115echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16116 fi
16117 fi
16118fi
16119
16120if test -n "$conf_lastlog_location"; then
16121 cat >>confdefs.h <<_ACEOF
16122@%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16123_ACEOF
16124
16125fi
16126
16127echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16128echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16129cat >conftest.$ac_ext <<_ACEOF
16130#line $LINENO "configure"
16131#include "confdefs.h"
16132
16133#include <sys/types.h>
16134#include <utmp.h>
16135#ifdef HAVE_PATHS_H
16136# include <paths.h>
16137#endif
16138
16139#ifdef F77_DUMMY_MAIN
16140# ifdef __cplusplus
16141 extern "C"
16142# endif
16143 int F77_DUMMY_MAIN() { return 1; }
16144#endif
16145int
16146main ()
16147{
16148 char *utmp = UTMP_FILE;
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153rm -f conftest.$ac_objext
16154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -s conftest.$ac_objext'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 echo "$as_me:$LINENO: result: yes" >&5
16166echo "${ECHO_T}yes" >&6
16167else
16168 echo "$as_me: failed program was:" >&5
16169cat conftest.$ac_ext >&5
16170 echo "$as_me:$LINENO: result: no" >&5
16171echo "${ECHO_T}no" >&6
16172 system_utmp_path=no
16173
16174fi
16175rm -f conftest.$ac_objext conftest.$ac_ext
16176if test -z "$conf_utmp_location"; then
16177 if test x"$system_utmp_path" = x"no" ; then
16178 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16179 if test -f $f ; then
16180 conf_utmp_location=$f
16181 fi
16182 done
16183 if test -z "$conf_utmp_location"; then
16184 cat >>confdefs.h <<\_ACEOF
16185@%:@define DISABLE_UTMP 1
16186_ACEOF
16187
16188 fi
16189 fi
16190fi
16191if test -n "$conf_utmp_location"; then
16192 cat >>confdefs.h <<_ACEOF
16193@%:@define CONF_UTMP_FILE "$conf_utmp_location"
16194_ACEOF
16195
16196fi
16197
16198echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16199echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16200cat >conftest.$ac_ext <<_ACEOF
16201#line $LINENO "configure"
16202#include "confdefs.h"
16203
16204#include <sys/types.h>
16205#include <utmp.h>
16206#ifdef HAVE_PATHS_H
16207# include <paths.h>
16208#endif
16209
16210#ifdef F77_DUMMY_MAIN
16211# ifdef __cplusplus
16212 extern "C"
16213# endif
16214 int F77_DUMMY_MAIN() { return 1; }
16215#endif
16216int
16217main ()
16218{
16219 char *wtmp = WTMP_FILE;
16220 ;
16221 return 0;
16222}
16223_ACEOF
16224rm -f conftest.$ac_objext
16225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16226 (eval $ac_compile) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -s conftest.$ac_objext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 echo "$as_me:$LINENO: result: yes" >&5
16237echo "${ECHO_T}yes" >&6
16238else
16239 echo "$as_me: failed program was:" >&5
16240cat conftest.$ac_ext >&5
16241 echo "$as_me:$LINENO: result: no" >&5
16242echo "${ECHO_T}no" >&6
16243 system_wtmp_path=no
16244
16245fi
16246rm -f conftest.$ac_objext conftest.$ac_ext
16247if test -z "$conf_wtmp_location"; then
16248 if test x"$system_wtmp_path" = x"no" ; then
16249 for f in /usr/adm/wtmp /var/log/wtmp; do
16250 if test -f $f ; then
16251 conf_wtmp_location=$f
16252 fi
16253 done
16254 if test -z "$conf_wtmp_location"; then
16255 cat >>confdefs.h <<\_ACEOF
16256@%:@define DISABLE_WTMP 1
16257_ACEOF
16258
16259 fi
16260 fi
16261fi
16262if test -n "$conf_wtmp_location"; then
16263 cat >>confdefs.h <<_ACEOF
16264@%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16265_ACEOF
16266
16267fi
16268
16269
16270echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16271echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16272cat >conftest.$ac_ext <<_ACEOF
16273#line $LINENO "configure"
16274#include "confdefs.h"
16275
16276#include <sys/types.h>
16277#include <utmp.h>
16278#ifdef HAVE_UTMPX_H
16279#include <utmpx.h>
16280#endif
16281#ifdef HAVE_PATHS_H
16282# include <paths.h>
16283#endif
16284
16285#ifdef F77_DUMMY_MAIN
16286# ifdef __cplusplus
16287 extern "C"
16288# endif
16289 int F77_DUMMY_MAIN() { return 1; }
16290#endif
16291int
16292main ()
16293{
16294 char *utmpx = UTMPX_FILE;
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext
16300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301 (eval $ac_compile) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -s conftest.$ac_objext'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 echo "$as_me:$LINENO: result: yes" >&5
16312echo "${ECHO_T}yes" >&6
16313else
16314 echo "$as_me: failed program was:" >&5
16315cat conftest.$ac_ext >&5
16316 echo "$as_me:$LINENO: result: no" >&5
16317echo "${ECHO_T}no" >&6
16318 system_utmpx_path=no
16319
16320fi
16321rm -f conftest.$ac_objext conftest.$ac_ext
16322if test -z "$conf_utmpx_location"; then
16323 if test x"$system_utmpx_path" = x"no" ; then
16324 cat >>confdefs.h <<\_ACEOF
16325@%:@define DISABLE_UTMPX 1
16326_ACEOF
16327
16328 fi
16329else
16330 cat >>confdefs.h <<_ACEOF
16331@%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16332_ACEOF
16333
16334fi
16335
16336echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16337echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16338cat >conftest.$ac_ext <<_ACEOF
16339#line $LINENO "configure"
16340#include "confdefs.h"
16341
16342#include <sys/types.h>
16343#include <utmp.h>
16344#ifdef HAVE_UTMPX_H
16345#include <utmpx.h>
16346#endif
16347#ifdef HAVE_PATHS_H
16348# include <paths.h>
16349#endif
16350
16351#ifdef F77_DUMMY_MAIN
16352# ifdef __cplusplus
16353 extern "C"
16354# endif
16355 int F77_DUMMY_MAIN() { return 1; }
16356#endif
16357int
16358main ()
16359{
16360 char *wtmpx = WTMPX_FILE;
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 echo "$as_me:$LINENO: result: yes" >&5
16378echo "${ECHO_T}yes" >&6
16379else
16380 echo "$as_me: failed program was:" >&5
16381cat conftest.$ac_ext >&5
16382 echo "$as_me:$LINENO: result: no" >&5
16383echo "${ECHO_T}no" >&6
16384 system_wtmpx_path=no
16385
16386fi
16387rm -f conftest.$ac_objext conftest.$ac_ext
16388if test -z "$conf_wtmpx_location"; then
16389 if test x"$system_wtmpx_path" = x"no" ; then
16390 cat >>confdefs.h <<\_ACEOF
16391@%:@define DISABLE_WTMPX 1
16392_ACEOF
16393
16394 fi
16395else
16396 cat >>confdefs.h <<_ACEOF
16397@%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16398_ACEOF
16399
16400fi
16401
16402
16403if test ! -z "$blibpath" ; then
16404 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16405 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16406echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16407fi
16408
16409if test "$PAM_MSG" = yes ; then
16410 LIBS=`echo $LIBS | sed 's/-lpam //'`
16411fi
16412if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16413 LIBS=`echo $LIBS | sed 's/-ldl //'`
16414fi
16415
16416
16417ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16418
16419cat >confcache <<\_ACEOF
16420# This file is a shell script that caches the results of configure
16421# tests run on this system so they can be shared between configure
16422# scripts and configure runs, see configure's option --config-cache.
16423# It is not useful on other systems. If it contains results you don't
16424# want to keep, you may remove or edit it.
16425#
16426# config.status only pays attention to the cache file if you give it
16427# the --recheck option to rerun configure.
16428#
16429# `ac_cv_env_foo' variables (set or unset) will be overriden when
16430# loading this file, other *unset* `ac_cv_foo' will be assigned the
16431# following values.
16432
16433_ACEOF
16434
16435# The following way of writing the cache mishandles newlines in values,
16436# but we know of no workaround that is simple, portable, and efficient.
16437# So, don't put newlines in cache variables' values.
16438# Ultrix sh set writes to stderr and can't be redirected directly,
16439# and sets the high bit in the cache file unless we assign to the vars.
16440{
16441 (set) 2>&1 |
16442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16443 *ac_space=\ *)
16444 # `set' does not quote correctly, so add quotes (double-quote
16445 # substitution turns \\\\ into \\, and sed turns \\ into \).
16446 sed -n \
16447 "s/'/'\\\\''/g;
16448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16449 ;;
16450 *)
16451 # `set' quotes correctly as required by POSIX, so do not add quotes.
16452 sed -n \
16453 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16454 ;;
16455 esac;
16456} |
16457 sed '
16458 t clear
16459 : clear
16460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16461 t end
16462 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16463 : end' >>confcache
16464if cmp -s $cache_file confcache; then :; else
16465 if test -w $cache_file; then
16466 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16467 cat confcache >$cache_file
16468 else
16469 echo "not updating unwritable cache $cache_file"
16470 fi
16471fi
16472rm -f confcache
16473
16474test "x$prefix" = xNONE && prefix=$ac_default_prefix
16475# Let make expand exec_prefix.
16476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16477
16478# VPATH may cause trouble with some makes, so we remove $(srcdir),
16479# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16480# trailing colons and then remove the whole line if VPATH becomes empty
16481# (actually we leave an empty line to preserve line numbers).
16482if test "x$srcdir" = x.; then
16483 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16484s/:*\$(srcdir):*/:/;
16485s/:*\${srcdir}:*/:/;
16486s/:*@srcdir@:*/:/;
16487s/^\([^=]*=[ ]*\):*/\1/;
16488s/:*$//;
16489s/^[^=]*=[ ]*$//;
16490}'
16491fi
16492
16493DEFS=-DHAVE_CONFIG_H
16494
16495
16496: ${CONFIG_STATUS=./config.status}
16497ac_clean_files_save=$ac_clean_files
16498ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16499{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16500echo "$as_me: creating $CONFIG_STATUS" >&6;}
16501cat >$CONFIG_STATUS <<_ACEOF
16502#! $SHELL
16503# Generated by $as_me.
16504# Run this file to recreate the current configuration.
16505# Compiler output produced by configure, useful for debugging
16506# configure, is in config.log if it exists.
16507
16508debug=false
16509SHELL=\${CONFIG_SHELL-$SHELL}
16510_ACEOF
16511
16512cat >>$CONFIG_STATUS <<\_ACEOF
16513
16514## --------------------- ##
16515## M4sh Initialization. ##
16516## --------------------- ##
16517
16518# Be Bourne compatible
16519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16520 emulate sh
16521 NULLCMD=:
16522elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16523 set -o posix
16524fi
16525
16526# NLS nuisances.
16527# Support unset when possible.
16528if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16529 as_unset=unset
16530else
16531 as_unset=false
16532fi
16533
16534(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16535 { $as_unset LANG || test "${LANG+set}" != set; } ||
16536 { LANG=C; export LANG; }
16537(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16538 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16539 { LC_ALL=C; export LC_ALL; }
16540(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16541 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16542 { LC_TIME=C; export LC_TIME; }
16543(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16544 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16545 { LC_CTYPE=C; export LC_CTYPE; }
16546(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16547 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16548 { LANGUAGE=C; export LANGUAGE; }
16549(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16550 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16551 { LC_COLLATE=C; export LC_COLLATE; }
16552(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16553 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16554 { LC_NUMERIC=C; export LC_NUMERIC; }
16555(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16556 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16557 { LC_MESSAGES=C; export LC_MESSAGES; }
16558
16559
16560# Name of the executable.
16561as_me=`(basename "$0") 2>/dev/null ||
16562$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16563 X"$0" : 'X\(//\)$' \| \
16564 X"$0" : 'X\(/\)$' \| \
16565 . : '\(.\)' 2>/dev/null ||
16566echo X/"$0" |
16567 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16568 /^X\/\(\/\/\)$/{ s//\1/; q; }
16569 /^X\/\(\/\).*/{ s//\1/; q; }
16570 s/.*/./; q'`
16571
16572# PATH needs CR, and LINENO needs CR and PATH.
16573# Avoid depending upon Character Ranges.
16574as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16575as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16576as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16577as_cr_digits='0123456789'
16578as_cr_alnum=$as_cr_Letters$as_cr_digits
16579
16580# The user is always right.
16581if test "${PATH_SEPARATOR+set}" != set; then
16582 echo "#! /bin/sh" >conftest.sh
16583 echo "exit 0" >>conftest.sh
16584 chmod +x conftest.sh
16585 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16586 PATH_SEPARATOR=';'
16587 else
16588 PATH_SEPARATOR=:
16589 fi
16590 rm -f conftest.sh
16591fi
16592
16593
16594 as_lineno_1=$LINENO
16595 as_lineno_2=$LINENO
16596 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16597 test "x$as_lineno_1" != "x$as_lineno_2" &&
16598 test "x$as_lineno_3" = "x$as_lineno_2" || {
16599 # Find who we are. Look in the path if we contain no path at all
16600 # relative or not.
16601 case $0 in
16602 *[\\/]* ) as_myself=$0 ;;
16603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16604for as_dir in $PATH
16605do
16606 IFS=$as_save_IFS
16607 test -z "$as_dir" && as_dir=.
16608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16609done
16610
16611 ;;
16612 esac
16613 # We did not find ourselves, most probably we were run as `sh COMMAND'
16614 # in which case we are not to be found in the path.
16615 if test "x$as_myself" = x; then
16616 as_myself=$0
16617 fi
16618 if test ! -f "$as_myself"; then
16619 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16620echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16621 { (exit 1); exit 1; }; }
16622 fi
16623 case $CONFIG_SHELL in
16624 '')
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16627do
16628 IFS=$as_save_IFS
16629 test -z "$as_dir" && as_dir=.
16630 for as_base in sh bash ksh sh5; do
16631 case $as_dir in
16632 /*)
16633 if ("$as_dir/$as_base" -c '
16634 as_lineno_1=$LINENO
16635 as_lineno_2=$LINENO
16636 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16637 test "x$as_lineno_1" != "x$as_lineno_2" &&
16638 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16639 CONFIG_SHELL=$as_dir/$as_base
16640 export CONFIG_SHELL
16641 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16642 fi;;
16643 esac
16644 done
16645done
16646;;
16647 esac
16648
16649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16650 # uniformly replaced by the line number. The first 'sed' inserts a
16651 # line-number line before each line; the second 'sed' does the real
16652 # work. The second script uses 'N' to pair each line-number line
16653 # with the numbered line, and appends trailing '-' during
16654 # substitution so that $LINENO is not a special case at line end.
16655 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16656 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16657 sed '=' <$as_myself |
16658 sed '
16659 N
16660 s,$,-,
16661 : loop
16662 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16663 t loop
16664 s,-$,,
16665 s,^['$as_cr_digits']*\n,,
16666 ' >$as_me.lineno &&
16667 chmod +x $as_me.lineno ||
16668 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16669echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16670 { (exit 1); exit 1; }; }
16671
16672 # Don't try to exec as it changes $[0], causing all sort of problems
16673 # (the dirname of $[0] is not the place where we might find the
16674 # original and so on. Autoconf is especially sensible to this).
16675 . ./$as_me.lineno
16676 # Exit status is that of the last command.
16677 exit
16678}
16679
16680
16681case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16682 *c*,-n*) ECHO_N= ECHO_C='
16683' ECHO_T=' ' ;;
16684 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16685 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16686esac
16687
16688if expr a : '\(a\)' >/dev/null 2>&1; then
16689 as_expr=expr
16690else
16691 as_expr=false
16692fi
16693
16694rm -f conf$$ conf$$.exe conf$$.file
16695echo >conf$$.file
16696if ln -s conf$$.file conf$$ 2>/dev/null; then
16697 # We could just check for DJGPP; but this test a) works b) is more generic
16698 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16699 if test -f conf$$.exe; then
16700 # Don't use ln at all; we don't have any links
16701 as_ln_s='cp -p'
16702 else
16703 as_ln_s='ln -s'
16704 fi
16705elif ln conf$$.file conf$$ 2>/dev/null; then
16706 as_ln_s=ln
16707else
16708 as_ln_s='cp -p'
16709fi
16710rm -f conf$$ conf$$.exe conf$$.file
16711
16712as_executable_p="test -f"
16713
16714# Sed expression to map a string onto a valid CPP name.
16715as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16716
16717# Sed expression to map a string onto a valid variable name.
16718as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16719
16720
16721# IFS
16722# We need space, tab and new line, in precisely that order.
16723as_nl='
16724'
16725IFS=" $as_nl"
16726
16727# CDPATH.
16728$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16729
16730exec 6>&1
16731
16732# Open the log real soon, to keep \$[0] and so on meaningful, and to
16733# report actual input values of CONFIG_FILES etc. instead of their
16734# values after options handling. Logging --version etc. is OK.
16735exec 5>>config.log
16736{
16737 echo
16738 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16739@%:@@%:@ Running $as_me. @%:@@%:@
16740_ASBOX
16741} >&5
16742cat >&5 <<_CSEOF
16743
16744This file was extended by $as_me, which was
16745generated by GNU Autoconf 2.53. Invocation command line was
16746
16747 CONFIG_FILES = $CONFIG_FILES
16748 CONFIG_HEADERS = $CONFIG_HEADERS
16749 CONFIG_LINKS = $CONFIG_LINKS
16750 CONFIG_COMMANDS = $CONFIG_COMMANDS
16751 $ $0 $@
16752
16753_CSEOF
16754echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16755echo >&5
16756_ACEOF
16757
16758# Files that config.status was made for.
16759if test -n "$ac_config_files"; then
16760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16761fi
16762
16763if test -n "$ac_config_headers"; then
16764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16765fi
16766
16767if test -n "$ac_config_links"; then
16768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16769fi
16770
16771if test -n "$ac_config_commands"; then
16772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16773fi
16774
16775cat >>$CONFIG_STATUS <<\_ACEOF
16776
16777ac_cs_usage="\
16778\`$as_me' instantiates files from templates according to the
16779current configuration.
16780
16781Usage: $0 [OPTIONS] [FILE]...
16782
16783 -h, --help print this help, then exit
16784 -V, --version print version number, then exit
16785 -d, --debug don't remove temporary files
16786 --recheck update $as_me by reconfiguring in the same conditions
16787 --file=FILE[:TEMPLATE]
16788 instantiate the configuration file FILE
16789 --header=FILE[:TEMPLATE]
16790 instantiate the configuration header FILE
16791
16792Configuration files:
16793$config_files
16794
16795Configuration headers:
16796$config_headers
16797
16798Report bugs to <bug-autoconf@gnu.org>."
16799_ACEOF
16800
16801cat >>$CONFIG_STATUS <<_ACEOF
16802ac_cs_version="\\
16803config.status
16804configured by $0, generated by GNU Autoconf 2.53,
16805 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16806
16807Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16808Free Software Foundation, Inc.
16809This config.status script is free software; the Free Software Foundation
16810gives unlimited permission to copy, distribute and modify it."
16811srcdir=$srcdir
16812INSTALL="$INSTALL"
16813_ACEOF
16814
16815cat >>$CONFIG_STATUS <<\_ACEOF
16816# If no file are specified by the user, then we need to provide default
16817# value. By we need to know if files were specified by the user.
16818ac_need_defaults=:
16819while test $# != 0
16820do
16821 case $1 in
16822 --*=*)
16823 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16824 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16825 shift
16826 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16827 shift
16828 ;;
16829 -*);;
16830 *) # This is not an option, so the user has probably given explicit
16831 # arguments.
16832 ac_need_defaults=false;;
16833 esac
16834
16835 case $1 in
16836 # Handling of the options.
16837_ACEOF
16838cat >>$CONFIG_STATUS <<_ACEOF
16839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16840 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16841 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16842_ACEOF
16843cat >>$CONFIG_STATUS <<\_ACEOF
16844 --version | --vers* | -V )
16845 echo "$ac_cs_version"; exit 0 ;;
16846 --he | --h)
16847 # Conflict between --help and --header
16848 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16849Try \`$0 --help' for more information." >&5
16850echo "$as_me: error: ambiguous option: $1
16851Try \`$0 --help' for more information." >&2;}
16852 { (exit 1); exit 1; }; };;
16853 --help | --hel | -h )
16854 echo "$ac_cs_usage"; exit 0 ;;
16855 --debug | --d* | -d )
16856 debug=: ;;
16857 --file | --fil | --fi | --f )
16858 shift
16859 CONFIG_FILES="$CONFIG_FILES $1"
16860 ac_need_defaults=false;;
16861 --header | --heade | --head | --hea )
16862 shift
16863 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16864 ac_need_defaults=false;;
16865
16866 # This is an error.
16867 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16868Try \`$0 --help' for more information." >&5
16869echo "$as_me: error: unrecognized option: $1
16870Try \`$0 --help' for more information." >&2;}
16871 { (exit 1); exit 1; }; } ;;
16872
16873 *) ac_config_targets="$ac_config_targets $1" ;;
16874
16875 esac
16876 shift
16877done
16878
16879_ACEOF
16880
16881
16882
16883
16884
16885cat >>$CONFIG_STATUS <<\_ACEOF
16886for ac_config_target in $ac_config_targets
16887do
16888 case "$ac_config_target" in
16889 # Handling of arguments.
16890 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16891 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16892 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16893 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16894 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16896echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16897 { (exit 1); exit 1; }; };;
16898 esac
16899done
16900
16901# If the user did not use the arguments to specify the items to instantiate,
16902# then the envvar interface is used. Set only those that are not.
16903# We use the long form for the default assignment because of an extremely
16904# bizarre bug on SunOS 4.1.3.
16905if $ac_need_defaults; then
16906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16908fi
16909
16910# Create a temporary directory, and hook for its removal unless debugging.
16911$debug ||
16912{
16913 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16914 trap '{ (exit 1); exit 1; }' 1 2 13 15
16915}
16916
16917# Create a (secure) tmp directory for tmp files.
16918: ${TMPDIR=/tmp}
16919{
16920 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16921 test -n "$tmp" && test -d "$tmp"
16922} ||
16923{
16924 tmp=$TMPDIR/cs$$-$RANDOM
16925 (umask 077 && mkdir $tmp)
16926} ||
16927{
16928 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16929 { (exit 1); exit 1; }
16930}
16931
16932_ACEOF
16933
16934cat >>$CONFIG_STATUS <<_ACEOF
16935
16936#
16937# CONFIG_FILES section.
16938#
16939
16940# No need to generate the scripts if there are no CONFIG_FILES.
16941# This happens for instance when ./config.status config.h
16942if test -n "\$CONFIG_FILES"; then
16943 # Protect against being on the right side of a sed subst in config.status.
16944 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16945 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16946s,@SHELL@,$SHELL,;t t
16947s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16948s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16949s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16950s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16951s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16952s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16953s,@exec_prefix@,$exec_prefix,;t t
16954s,@prefix@,$prefix,;t t
16955s,@program_transform_name@,$program_transform_name,;t t
16956s,@bindir@,$bindir,;t t
16957s,@sbindir@,$sbindir,;t t
16958s,@libexecdir@,$libexecdir,;t t
16959s,@datadir@,$datadir,;t t
16960s,@sysconfdir@,$sysconfdir,;t t
16961s,@sharedstatedir@,$sharedstatedir,;t t
16962s,@localstatedir@,$localstatedir,;t t
16963s,@libdir@,$libdir,;t t
16964s,@includedir@,$includedir,;t t
16965s,@oldincludedir@,$oldincludedir,;t t
16966s,@infodir@,$infodir,;t t
16967s,@mandir@,$mandir,;t t
16968s,@build_alias@,$build_alias,;t t
16969s,@host_alias@,$host_alias,;t t
16970s,@target_alias@,$target_alias,;t t
16971s,@DEFS@,$DEFS,;t t
16972s,@ECHO_C@,$ECHO_C,;t t
16973s,@ECHO_N@,$ECHO_N,;t t
16974s,@ECHO_T@,$ECHO_T,;t t
16975s,@LIBS@,$LIBS,;t t
16976s,@CC@,$CC,;t t
16977s,@CFLAGS@,$CFLAGS,;t t
16978s,@LDFLAGS@,$LDFLAGS,;t t
16979s,@CPPFLAGS@,$CPPFLAGS,;t t
16980s,@ac_ct_CC@,$ac_ct_CC,;t t
16981s,@EXEEXT@,$EXEEXT,;t t
16982s,@OBJEXT@,$OBJEXT,;t t
16983s,@build@,$build,;t t
16984s,@build_cpu@,$build_cpu,;t t
16985s,@build_vendor@,$build_vendor,;t t
16986s,@build_os@,$build_os,;t t
16987s,@host@,$host,;t t
16988s,@host_cpu@,$host_cpu,;t t
16989s,@host_vendor@,$host_vendor,;t t
16990s,@host_os@,$host_os,;t t
16991s,@CPP@,$CPP,;t t
16992s,@RANLIB@,$RANLIB,;t t
16993s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16994s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16995s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16996s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16997s,@AR@,$AR,;t t
16998s,@PERL@,$PERL,;t t
16999s,@ENT@,$ENT,;t t
17000s,@FILEPRIV@,$FILEPRIV,;t t
17001s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17002s,@SH@,$SH,;t t
17003s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17004s,@LD@,$LD,;t t
17005s,@LIBWRAP@,$LIBWRAP,;t t
17006s,@LIBPAM@,$LIBPAM,;t t
17007s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
680cee3b 17008s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
700318f3 17009s,@PROG_LS@,$PROG_LS,;t t
17010s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17011s,@PROG_ARP@,$PROG_ARP,;t t
17012s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17013s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17014s,@PROG_PS@,$PROG_PS,;t t
17015s,@PROG_SAR@,$PROG_SAR,;t t
17016s,@PROG_W@,$PROG_W,;t t
17017s,@PROG_WHO@,$PROG_WHO,;t t
17018s,@PROG_LAST@,$PROG_LAST,;t t
17019s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17020s,@PROG_DF@,$PROG_DF,;t t
17021s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17022s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17023s,@PROG_IPCS@,$PROG_IPCS,;t t
17024s,@PROG_TAIL@,$PROG_TAIL,;t t
17025s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17026s,@NO_SFTP@,$NO_SFTP,;t t
17027s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
700318f3 17028s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17029s,@xauth_path@,$xauth_path,;t t
17030s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17031s,@NROFF@,$NROFF,;t t
17032s,@MANTYPE@,$MANTYPE,;t t
17033s,@mansubdir@,$mansubdir,;t t
17034s,@user_path@,$user_path,;t t
700318f3 17035s,@piddir@,$piddir,;t t
17036CEOF
17037
17038_ACEOF
17039
17040 cat >>$CONFIG_STATUS <<\_ACEOF
17041 # Split the substitutions into bite-sized pieces for seds with
17042 # small command number limits, like on Digital OSF/1 and HP-UX.
17043 ac_max_sed_lines=48
17044 ac_sed_frag=1 # Number of current file.
17045 ac_beg=1 # First line for current file.
17046 ac_end=$ac_max_sed_lines # Line after last line for current file.
17047 ac_more_lines=:
17048 ac_sed_cmds=
17049 while $ac_more_lines; do
17050 if test $ac_beg -gt 1; then
17051 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17052 else
17053 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17054 fi
17055 if test ! -s $tmp/subs.frag; then
17056 ac_more_lines=false
17057 else
17058 # The purpose of the label and of the branching condition is to
17059 # speed up the sed processing (if there are no `@' at all, there
17060 # is no need to browse any of the substitutions).
17061 # These are the two extra sed commands mentioned above.
17062 (echo ':t
17063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17064 if test -z "$ac_sed_cmds"; then
17065 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17066 else
17067 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17068 fi
17069 ac_sed_frag=`expr $ac_sed_frag + 1`
17070 ac_beg=$ac_end
17071 ac_end=`expr $ac_end + $ac_max_sed_lines`
17072 fi
17073 done
17074 if test -z "$ac_sed_cmds"; then
17075 ac_sed_cmds=cat
17076 fi
17077fi # test -n "$CONFIG_FILES"
17078
17079_ACEOF
17080cat >>$CONFIG_STATUS <<\_ACEOF
17081for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17083 case $ac_file in
17084 - | *:- | *:-:* ) # input from stdin
17085 cat >$tmp/stdin
17086 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17088 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17090 * ) ac_file_in=$ac_file.in ;;
17091 esac
17092
17093 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17094 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17096 X"$ac_file" : 'X\(//\)[^/]' \| \
17097 X"$ac_file" : 'X\(//\)$' \| \
17098 X"$ac_file" : 'X\(/\)' \| \
17099 . : '\(.\)' 2>/dev/null ||
17100echo X"$ac_file" |
17101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17103 /^X\(\/\/\)$/{ s//\1/; q; }
17104 /^X\(\/\).*/{ s//\1/; q; }
17105 s/.*/./; q'`
17106 { case "$ac_dir" in
17107 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17108 *) as_incr_dir=.;;
17109esac
17110as_dummy="$ac_dir"
17111for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17112 case $as_mkdir_dir in
17113 # Skip DOS drivespec
17114 ?:) as_incr_dir=$as_mkdir_dir ;;
17115 *)
17116 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17117 test -d "$as_incr_dir" ||
17118 mkdir "$as_incr_dir" ||
17119 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17120echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17121 { (exit 1); exit 1; }; }
17122 ;;
17123 esac
17124done; }
17125
17126 ac_builddir=.
17127
17128if test "$ac_dir" != .; then
17129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17130 # A "../" for each directory in $ac_dir_suffix.
17131 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17132else
17133 ac_dir_suffix= ac_top_builddir=
17134fi
17135
17136case $srcdir in
17137 .) # No --srcdir option. We are building in place.
17138 ac_srcdir=.
17139 if test -z "$ac_top_builddir"; then
17140 ac_top_srcdir=.
17141 else
17142 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17143 fi ;;
17144 [\\/]* | ?:[\\/]* ) # Absolute path.
17145 ac_srcdir=$srcdir$ac_dir_suffix;
17146 ac_top_srcdir=$srcdir ;;
17147 *) # Relative path.
17148 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17149 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17150esac
17151# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17152# absolute.
17153ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17154ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17155ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17156ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17157
17158
17159 case $INSTALL in
17160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17161 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17162 esac
17163
17164 if test x"$ac_file" != x-; then
17165 { echo "$as_me:$LINENO: creating $ac_file" >&5
17166echo "$as_me: creating $ac_file" >&6;}
17167 rm -f "$ac_file"
17168 fi
17169 # Let's still pretend it is `configure' which instantiates (i.e., don't
17170 # use $as_me), people would be surprised to read:
17171 # /* config.h. Generated by config.status. */
17172 if test x"$ac_file" = x-; then
17173 configure_input=
17174 else
17175 configure_input="$ac_file. "
17176 fi
17177 configure_input=$configure_input"Generated from `echo $ac_file_in |
17178 sed 's,.*/,,'` by configure."
17179
17180 # First look for the input files in the build tree, otherwise in the
17181 # src tree.
17182 ac_file_inputs=`IFS=:
17183 for f in $ac_file_in; do
17184 case $f in
17185 -) echo $tmp/stdin ;;
17186 [\\/$]*)
17187 # Absolute (can't be DOS-style, as IFS=:)
17188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17189echo "$as_me: error: cannot find input file: $f" >&2;}
17190 { (exit 1); exit 1; }; }
17191 echo $f;;
17192 *) # Relative
17193 if test -f "$f"; then
17194 # Build tree
17195 echo $f
17196 elif test -f "$srcdir/$f"; then
17197 # Source tree
17198 echo $srcdir/$f
17199 else
17200 # /dev/null tree
17201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17202echo "$as_me: error: cannot find input file: $f" >&2;}
17203 { (exit 1); exit 1; }; }
17204 fi;;
17205 esac
17206 done` || { (exit 1); exit 1; }
17207_ACEOF
17208cat >>$CONFIG_STATUS <<_ACEOF
17209 sed "$ac_vpsub
17210$extrasub
17211_ACEOF
17212cat >>$CONFIG_STATUS <<\_ACEOF
17213:t
17214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17215s,@configure_input@,$configure_input,;t t
17216s,@srcdir@,$ac_srcdir,;t t
17217s,@abs_srcdir@,$ac_abs_srcdir,;t t
17218s,@top_srcdir@,$ac_top_srcdir,;t t
17219s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17220s,@builddir@,$ac_builddir,;t t
17221s,@abs_builddir@,$ac_abs_builddir,;t t
17222s,@top_builddir@,$ac_top_builddir,;t t
17223s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17224s,@INSTALL@,$ac_INSTALL,;t t
17225" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17226 rm -f $tmp/stdin
17227 if test x"$ac_file" != x-; then
17228 mv $tmp/out $ac_file
17229 else
17230 cat $tmp/out
17231 rm -f $tmp/out
17232 fi
17233
17234done
17235_ACEOF
17236cat >>$CONFIG_STATUS <<\_ACEOF
17237
17238#
17239# CONFIG_HEADER section.
17240#
17241
17242# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17243# NAME is the cpp macro being defined and VALUE is the value it is being given.
17244#
17245# ac_d sets the value in "#define NAME VALUE" lines.
17246ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17247ac_dB='[ ].*$,\1#\2'
17248ac_dC=' '
17249ac_dD=',;t'
17250# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17251ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17252ac_uB='$,\1#\2define\3'
17253ac_uC=' '
17254ac_uD=',;t'
17255
17256for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17258 case $ac_file in
17259 - | *:- | *:-:* ) # input from stdin
17260 cat >$tmp/stdin
17261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17263 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17265 * ) ac_file_in=$ac_file.in ;;
17266 esac
17267
17268 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17269echo "$as_me: creating $ac_file" >&6;}
17270
17271 # First look for the input files in the build tree, otherwise in the
17272 # src tree.
17273 ac_file_inputs=`IFS=:
17274 for f in $ac_file_in; do
17275 case $f in
17276 -) echo $tmp/stdin ;;
17277 [\\/$]*)
17278 # Absolute (can't be DOS-style, as IFS=:)
17279 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17280echo "$as_me: error: cannot find input file: $f" >&2;}
17281 { (exit 1); exit 1; }; }
17282 echo $f;;
17283 *) # Relative
17284 if test -f "$f"; then
17285 # Build tree
17286 echo $f
17287 elif test -f "$srcdir/$f"; then
17288 # Source tree
17289 echo $srcdir/$f
17290 else
17291 # /dev/null tree
17292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17293echo "$as_me: error: cannot find input file: $f" >&2;}
17294 { (exit 1); exit 1; }; }
17295 fi;;
17296 esac
17297 done` || { (exit 1); exit 1; }
17298 # Remove the trailing spaces.
17299 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17300
17301_ACEOF
17302
17303# Transform confdefs.h into two sed scripts, `conftest.defines' and
17304# `conftest.undefs', that substitutes the proper values into
17305# config.h.in to produce config.h. The first handles `#define'
17306# templates, and the second `#undef' templates.
17307# And first: Protect against being on the right side of a sed subst in
17308# config.status. Protect against being in an unquoted here document
17309# in config.status.
17310rm -f conftest.defines conftest.undefs
17311# Using a here document instead of a string reduces the quoting nightmare.
17312# Putting comments in sed scripts is not portable.
17313#
17314# `end' is used to avoid that the second main sed command (meant for
17315# 0-ary CPP macros) applies to n-ary macro definitions.
17316# See the Autoconf documentation for `clear'.
17317cat >confdef2sed.sed <<\_ACEOF
17318s/[\\&,]/\\&/g
17319s,[\\$`],\\&,g
17320t clear
17321: clear
17322s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17323t end
17324s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17325: end
17326_ACEOF
17327# If some macros were called several times there might be several times
17328# the same #defines, which is useless. Nevertheless, we may not want to
17329# sort them, since we want the *last* AC-DEFINE to be honored.
17330uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17331sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17332rm -f confdef2sed.sed
17333
17334# This sed command replaces #undef with comments. This is necessary, for
17335# example, in the case of _POSIX_SOURCE, which is predefined and required
17336# on some systems where configure will not decide to define it.
17337cat >>conftest.undefs <<\_ACEOF
17338s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17339_ACEOF
17340
17341# Break up conftest.defines because some shells have a limit on the size
17342# of here documents, and old seds have small limits too (100 cmds).
17343echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17344echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17345echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17346echo ' :' >>$CONFIG_STATUS
17347rm -f conftest.tail
17348while grep . conftest.defines >/dev/null
17349do
17350 # Write a limited-size here document to $tmp/defines.sed.
17351 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17352 # Speed up: don't consider the non `#define' lines.
17353 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17354 # Work around the forget-to-reset-the-flag bug.
17355 echo 't clr' >>$CONFIG_STATUS
17356 echo ': clr' >>$CONFIG_STATUS
17357 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17358 echo 'CEOF
17359 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17360 rm -f $tmp/in
17361 mv $tmp/out $tmp/in
17362' >>$CONFIG_STATUS
17363 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17364 rm -f conftest.defines
17365 mv conftest.tail conftest.defines
17366done
17367rm -f conftest.defines
17368echo ' fi # egrep' >>$CONFIG_STATUS
17369echo >>$CONFIG_STATUS
17370
17371# Break up conftest.undefs because some shells have a limit on the size
17372# of here documents, and old seds have small limits too (100 cmds).
17373echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17374rm -f conftest.tail
17375while grep . conftest.undefs >/dev/null
17376do
17377 # Write a limited-size here document to $tmp/undefs.sed.
17378 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17379 # Speed up: don't consider the non `#undef'
17380 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17381 # Work around the forget-to-reset-the-flag bug.
17382 echo 't clr' >>$CONFIG_STATUS
17383 echo ': clr' >>$CONFIG_STATUS
17384 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17385 echo 'CEOF
17386 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17387 rm -f $tmp/in
17388 mv $tmp/out $tmp/in
17389' >>$CONFIG_STATUS
17390 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17391 rm -f conftest.undefs
17392 mv conftest.tail conftest.undefs
17393done
17394rm -f conftest.undefs
17395
17396cat >>$CONFIG_STATUS <<\_ACEOF
17397 # Let's still pretend it is `configure' which instantiates (i.e., don't
17398 # use $as_me), people would be surprised to read:
17399 # /* config.h. Generated by config.status. */
17400 if test x"$ac_file" = x-; then
17401 echo "/* Generated by configure. */" >$tmp/config.h
17402 else
17403 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17404 fi
17405 cat $tmp/in >>$tmp/config.h
17406 rm -f $tmp/in
17407 if test x"$ac_file" != x-; then
17408 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17409 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17410echo "$as_me: $ac_file is unchanged" >&6;}
17411 else
17412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17414 X"$ac_file" : 'X\(//\)[^/]' \| \
17415 X"$ac_file" : 'X\(//\)$' \| \
17416 X"$ac_file" : 'X\(/\)' \| \
17417 . : '\(.\)' 2>/dev/null ||
17418echo X"$ac_file" |
17419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17421 /^X\(\/\/\)$/{ s//\1/; q; }
17422 /^X\(\/\).*/{ s//\1/; q; }
17423 s/.*/./; q'`
17424 { case "$ac_dir" in
17425 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17426 *) as_incr_dir=.;;
17427esac
17428as_dummy="$ac_dir"
17429for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17430 case $as_mkdir_dir in
17431 # Skip DOS drivespec
17432 ?:) as_incr_dir=$as_mkdir_dir ;;
17433 *)
17434 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17435 test -d "$as_incr_dir" ||
17436 mkdir "$as_incr_dir" ||
17437 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17438echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17439 { (exit 1); exit 1; }; }
17440 ;;
17441 esac
17442done; }
17443
17444 rm -f $ac_file
17445 mv $tmp/config.h $ac_file
17446 fi
17447 else
17448 cat $tmp/config.h
17449 rm -f $tmp/config.h
17450 fi
17451done
17452_ACEOF
17453
17454cat >>$CONFIG_STATUS <<\_ACEOF
17455
17456{ (exit 0); exit 0; }
17457_ACEOF
17458chmod +x $CONFIG_STATUS
17459ac_clean_files=$ac_clean_files_save
17460
17461
17462# configure is writing to config.log, and then calls config.status.
17463# config.status does its own redirection, appending to config.log.
17464# Unfortunately, on DOS this fails, as config.log is still kept open
17465# by configure, so config.status won't be able to write to it; its
17466# output is simply discarded. So we exec the FD to /dev/null,
17467# effectively closing config.log, so it can be properly (re)opened and
17468# appended to by config.status. When coming back to configure, we
17469# need to make the FD available again.
17470if test "$no_create" != yes; then
17471 ac_cs_success=:
17472 exec 5>/dev/null
17473 $SHELL $CONFIG_STATUS || ac_cs_success=false
17474 exec 5>>config.log
17475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17476 # would make configure fail if this is the last instruction.
17477 $ac_cs_success || { (exit 1); exit 1; }
17478fi
17479
17480
17481# Print summary of options
17482
17483# Someone please show me a better way :)
17484A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17485B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17486C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17487D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17488E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17489F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17490G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17491H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17492I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17493J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17494
17495echo ""
17496echo "OpenSSH has been configured with the following options:"
17497echo " User binaries: $B"
17498echo " System binaries: $C"
17499echo " Configuration files: $D"
17500echo " Askpass program: $E"
17501echo " Manual pages: $F"
17502echo " PID file: $G"
17503echo " Privilege separation chroot path: $H"
17504if test "$USES_LOGIN_CONF" = "yes" ; then
17505echo " At runtime, sshd will use the path defined in /etc/login.conf"
17506else
17507echo " sshd default user PATH: $I"
17508fi
17509if test ! -z "$superuser_path" ; then
17510echo " sshd superuser user PATH: $J"
17511fi
17512echo " Manpage format: $MANTYPE"
17513echo " PAM support: ${PAM_MSG}"
17514echo " KerberosIV support: $KRB4_MSG"
17515echo " KerberosV support: $KRB5_MSG"
17516echo " Smartcard support: $SCARD_MSG"
17517echo " AFS support: $AFS_MSG"
17518echo " S/KEY support: $SKEY_MSG"
17519echo " TCP Wrappers support: $TCPW_MSG"
17520echo " MD5 password support: $MD5_MSG"
17521echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17522echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17523echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17524echo " BSD Auth support: $BSD_AUTH_MSG"
17525echo " Random number source: $RAND_MSG"
17526if test ! -z "$USE_RAND_HELPER" ; then
17527echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17528fi
17529
17530echo ""
17531
17532echo " Host: ${host}"
17533echo " Compiler: ${CC}"
17534echo " Compiler flags: ${CFLAGS}"
17535echo "Preprocessor flags: ${CPPFLAGS}"
17536echo " Linker flags: ${LDFLAGS}"
17537echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17538
17539echo ""
17540
17541if test "x$PAM_MSG" = "xyes" ; then
17542 echo "PAM is enabled. You may need to install a PAM control file "
17543 echo "for sshd, otherwise password authentication may fail. "
17544 echo "Example PAM control files can be found in the contrib/ "
17545 echo "subdirectory"
17546 echo ""
17547fi
17548
17549if test ! -z "$NO_SFTP"; then
17550 echo "sftp-server will be disabled. Your compiler does not "
17551 echo "support 64bit integers."
17552 echo ""
17553fi
17554
17555if test ! -z "$RAND_HELPER_CMDHASH" ; then
17556 echo "WARNING: you are using the builtin random number collection "
17557 echo "service. Please read WARNING.RNG and request that your OS "
17558 echo "vendor includes kernel-based random number collection in "
17559 echo "future versions of your OS."
17560 echo ""
17561fi
17562
This page took 2.438505 seconds and 5 git commands to generate.