summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autom4te-2.53.cache/output.017911
-rw-r--r--autom4te-2.53.cache/requests96
-rw-r--r--autom4te-2.53.cache/traces.0905
-rw-r--r--config.h.in903
-rwxr-xr-xconfigure17911
-rw-r--r--contrib/gnome-ssh-askpass.c168
-rwxr-xr-x[-rw-r--r--]contrib/solaris/README0
-rw-r--r--openbsd-compat/fake-queue.h584
-rw-r--r--openbsd-compat/tree.h667
-rw-r--r--scard/Ssh.binbin0 -> 600 bytes
-rw-r--r--scp.088
-rw-r--r--sftp-server.027
-rw-r--r--sftp.0171
-rw-r--r--ssh-add.096
-rw-r--r--ssh-agent.0107
-rw-r--r--ssh-keygen.0183
-rw-r--r--ssh-keyscan.0103
-rw-r--r--ssh-keysign.042
-rw-r--r--ssh-rand-helper.049
-rw-r--r--ssh.0614
-rw-r--r--ssh_config.0403
-rw-r--r--sshd.0547
-rw-r--r--sshd_config.0470
23 files changed, 42045 insertions, 0 deletions
diff --git a/autom4te-2.53.cache/output.0 b/autom4te-2.53.cache/output.0
new file mode 100644
index 000000000..97d453542
--- /dev/null
+++ b/autom4te-2.53.cache/output.0
@@ -0,0 +1,17911 @@
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
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
865 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
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
2763# Extract the first word of "bash", so it can be a program name with args.
2764set dummy bash; ac_word=$2
2765echo "$as_me:$LINENO: checking for $ac_word" >&5
2766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770 case $TEST_MINUS_S_SH in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2773 ;;
2774 *)
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789 ;;
2790esac
2791fi
2792TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2793
2794if test -n "$TEST_MINUS_S_SH"; then
2795 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2796echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800fi
2801
2802# Extract the first word of "ksh", so it can be a program name with args.
2803set dummy ksh; ac_word=$2
2804echo "$as_me:$LINENO: checking for $ac_word" >&5
2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 case $TEST_MINUS_S_SH in
2810 [\\/]* | ?:[\\/]*)
2811 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2812 ;;
2813 *)
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828 ;;
2829esac
2830fi
2831TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2832
2833if test -n "$TEST_MINUS_S_SH"; then
2834 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2835echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2836else
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839fi
2840
2841# Extract the first word of "sh", so it can be a program name with args.
2842set dummy sh; ac_word=$2
2843echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 case $TEST_MINUS_S_SH in
2849 [\\/]* | ?:[\\/]*)
2850 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2851 ;;
2852 *)
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864done
2865done
2866
2867 ;;
2868esac
2869fi
2870TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2871
2872if test -n "$TEST_MINUS_S_SH"; then
2873 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2874echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880# Extract the first word of "sh", so it can be a program name with args.
2881set dummy sh; ac_word=$2
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884if test "${ac_cv_path_SH+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 case $SH in
2888 [\\/]* | ?:[\\/]*)
2889 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2890 ;;
2891 *)
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905
2906 ;;
2907esac
2908fi
2909SH=$ac_cv_path_SH
2910
2911if test -n "$SH"; then
2912 echo "$as_me:$LINENO: result: $SH" >&5
2913echo "${ECHO_T}$SH" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919
2920# System features
2921# Check whether --enable-largefile or --disable-largefile was given.
2922if test "${enable_largefile+set}" = set; then
2923 enableval="$enable_largefile"
2924
2925fi;
2926if test "$enable_largefile" != no; then
2927
2928 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2929echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2930if test "${ac_cv_sys_largefile_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 ac_cv_sys_largefile_CC=no
2934 if test "$GCC" != yes; then
2935 ac_save_CC=$CC
2936 while :; do
2937 # IRIX 6.2 and later do not support large files by default,
2938 # so use the C compiler's -n32 option if that helps.
2939 cat >conftest.$ac_ext <<_ACEOF
2940#line $LINENO "configure"
2941#include "confdefs.h"
2942@%:@include <sys/types.h>
2943 /* Check that off_t can represent 2**63 - 1 correctly.
2944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2945 since some C++ compilers masquerading as C compilers
2946 incorrectly reject 9223372036854775807. */
2947@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2949 && LARGE_OFF_T % 2147483647 == 1)
2950 ? 1 : -1];
2951#ifdef F77_DUMMY_MAIN
2952# ifdef __cplusplus
2953 extern "C"
2954# endif
2955 int F77_DUMMY_MAIN() { return 1; }
2956#endif
2957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965 rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 break
2978else
2979 echo "$as_me: failed program was:" >&5
2980cat conftest.$ac_ext >&5
2981fi
2982rm -f conftest.$ac_objext
2983 CC="$CC -n32"
2984 rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_sys_largefile_CC=' -n32'; break
2997else
2998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000fi
3001rm -f conftest.$ac_objext
3002 break
3003 done
3004 CC=$ac_save_CC
3005 rm -f conftest.$ac_ext
3006 fi
3007fi
3008echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3009echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3010 if test "$ac_cv_sys_largefile_CC" != no; then
3011 CC=$CC$ac_cv_sys_largefile_CC
3012 fi
3013
3014 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3015echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3016if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 while :; do
3020 ac_cv_sys_file_offset_bits=no
3021 cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
3023#include "confdefs.h"
3024@%:@include <sys/types.h>
3025 /* Check that off_t can represent 2**63 - 1 correctly.
3026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3027 since some C++ compilers masquerading as C compilers
3028 incorrectly reject 9223372036854775807. */
3029@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3031 && LARGE_OFF_T % 2147483647 == 1)
3032 ? 1 : -1];
3033#ifdef F77_DUMMY_MAIN
3034# ifdef __cplusplus
3035 extern "C"
3036# endif
3037 int F77_DUMMY_MAIN() { return 1; }
3038#endif
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 break
3060else
3061 echo "$as_me: failed program was:" >&5
3062cat conftest.$ac_ext >&5
3063fi
3064rm -f conftest.$ac_objext conftest.$ac_ext
3065 cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067#include "confdefs.h"
3068@%:@define _FILE_OFFSET_BITS 64
3069@%:@include <sys/types.h>
3070 /* Check that off_t can represent 2**63 - 1 correctly.
3071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3072 since some C++ compilers masquerading as C compilers
3073 incorrectly reject 9223372036854775807. */
3074@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3076 && LARGE_OFF_T % 2147483647 == 1)
3077 ? 1 : -1];
3078#ifdef F77_DUMMY_MAIN
3079# ifdef __cplusplus
3080 extern "C"
3081# endif
3082 int F77_DUMMY_MAIN() { return 1; }
3083#endif
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_sys_file_offset_bits=64; break
3105else
3106 echo "$as_me: failed program was:" >&5
3107cat conftest.$ac_ext >&5
3108fi
3109rm -f conftest.$ac_objext conftest.$ac_ext
3110 break
3111done
3112fi
3113echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3114echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3115if test "$ac_cv_sys_file_offset_bits" != no; then
3116
3117cat >>confdefs.h <<_ACEOF
3118@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3119_ACEOF
3120
3121fi
3122rm -f conftest*
3123 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3124echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3125if test "${ac_cv_sys_large_files+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 while :; do
3129 ac_cv_sys_large_files=no
3130 cat >conftest.$ac_ext <<_ACEOF
3131#line $LINENO "configure"
3132#include "confdefs.h"
3133@%:@include <sys/types.h>
3134 /* Check that off_t can represent 2**63 - 1 correctly.
3135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3136 since some C++ compilers masquerading as C compilers
3137 incorrectly reject 9223372036854775807. */
3138@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3140 && LARGE_OFF_T % 2147483647 == 1)
3141 ? 1 : -1];
3142#ifdef F77_DUMMY_MAIN
3143# ifdef __cplusplus
3144 extern "C"
3145# endif
3146 int F77_DUMMY_MAIN() { return 1; }
3147#endif
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 break
3169else
3170 echo "$as_me: failed program was:" >&5
3171cat conftest.$ac_ext >&5
3172fi
3173rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176#include "confdefs.h"
3177@%:@define _LARGE_FILES 1
3178@%:@include <sys/types.h>
3179 /* Check that off_t can represent 2**63 - 1 correctly.
3180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3181 since some C++ compilers masquerading as C compilers
3182 incorrectly reject 9223372036854775807. */
3183@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3185 && LARGE_OFF_T % 2147483647 == 1)
3186 ? 1 : -1];
3187#ifdef F77_DUMMY_MAIN
3188# ifdef __cplusplus
3189 extern "C"
3190# endif
3191 int F77_DUMMY_MAIN() { return 1; }
3192#endif
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_sys_large_files=1; break
3214else
3215 echo "$as_me: failed program was:" >&5
3216cat conftest.$ac_ext >&5
3217fi
3218rm -f conftest.$ac_objext conftest.$ac_ext
3219 break
3220done
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3223echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3224if test "$ac_cv_sys_large_files" != no; then
3225
3226cat >>confdefs.h <<_ACEOF
3227@%:@define _LARGE_FILES $ac_cv_sys_large_files
3228_ACEOF
3229
3230fi
3231rm -f conftest*
3232fi
3233
3234
3235if test -z "$AR" ; then
3236 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3237echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3238 { (exit 1); exit 1; }; }
3239fi
3240
3241# Use LOGIN_PROGRAM from environment if possible
3242if test ! -z "$LOGIN_PROGRAM" ; then
3243 cat >>confdefs.h <<_ACEOF
3244@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3245_ACEOF
3246
3247else
3248 # Search for login
3249 # Extract the first word of "login", so it can be a program name with args.
3250set dummy login; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 case $LOGIN_PROGRAM_FALLBACK in
3257 [\\/]* | ?:[\\/]*)
3258 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3259 ;;
3260 *)
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275 ;;
3276esac
3277fi
3278LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3279
3280if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3281 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3282echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3283else
3284 echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3289 cat >>confdefs.h <<_ACEOF
3290@%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3291_ACEOF
3292
3293 fi
3294fi
3295
3296if test -z "$LD" ; then
3297 LD=$CC
3298fi
3299
3300
3301echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3302echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3303if test "${ac_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 ac_cv_prog_cc_stdc=no
3307ac_save_CC=$CC
3308cat >conftest.$ac_ext <<_ACEOF
3309#line $LINENO "configure"
3310#include "confdefs.h"
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319 char **p;
3320 int i;
3321{
3322 return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332}
3333int test (int i, double x);
3334struct s1 {int (*f) (int a);};
3335struct s2 {int (*f) (double a);};
3336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337int argc;
3338char **argv;
3339#ifdef F77_DUMMY_MAIN
3340# ifdef __cplusplus
3341 extern "C"
3342# endif
3343 int F77_DUMMY_MAIN() { return 1; }
3344#endif
3345int
3346main ()
3347{
3348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353# Don't try gcc -ansi; that turns off useful extensions and
3354# breaks some systems' header files.
3355# AIX -qlanglvl=ansi
3356# Ultrix and OSF/1 -std1
3357# HP-UX 10.20 and later -Ae
3358# HP-UX older versions -Aa -D_HPUX_SOURCE
3359# SVR4 -Xc -D__EXTENSIONS__
3360for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361do
3362 CC="$ac_save_CC $ac_arg"
3363 rm -f conftest.$ac_objext
3364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_cc_stdc=$ac_arg
3376break
3377else
3378 echo "$as_me: failed program was:" >&5
3379cat conftest.$ac_ext >&5
3380fi
3381rm -f conftest.$ac_objext
3382done
3383rm -f conftest.$ac_ext conftest.$ac_objext
3384CC=$ac_save_CC
3385
3386fi
3387
3388case "x$ac_cv_prog_cc_stdc" in
3389 x|xno)
3390 echo "$as_me:$LINENO: result: none needed" >&5
3391echo "${ECHO_T}none needed" >&6 ;;
3392 *)
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3394echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3395 CC="$CC $ac_cv_prog_cc_stdc" ;;
3396esac
3397
3398echo "$as_me:$LINENO: checking for inline" >&5
3399echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 ac_cv_c_inline=no
3404for ac_kw in inline __inline__ __inline; do
3405 cat >conftest.$ac_ext <<_ACEOF
3406#line $LINENO "configure"
3407#include "confdefs.h"
3408#ifndef __cplusplus
3409static $ac_kw int static_foo () {return 0; }
3410$ac_kw int foo () {return 0; }
3411#endif
3412
3413_ACEOF
3414rm -f conftest.$ac_objext
3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_c_inline=$ac_kw; break
3427else
3428 echo "$as_me: failed program was:" >&5
3429cat conftest.$ac_ext >&5
3430fi
3431rm -f conftest.$ac_objext conftest.$ac_ext
3432done
3433
3434fi
3435echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3436echo "${ECHO_T}$ac_cv_c_inline" >&6
3437case $ac_cv_c_inline in
3438 inline | yes) ;;
3439 no)
3440cat >>confdefs.h <<\_ACEOF
3441@%:@define inline
3442_ACEOF
3443 ;;
3444 *) cat >>confdefs.h <<_ACEOF
3445@%:@define inline $ac_cv_c_inline
3446_ACEOF
3447 ;;
3448esac
3449
3450if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3451 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3452fi
3453
3454# Check for some target-specific stuff
3455case "$host" in
3456*-*-aix*)
3457 AFS_LIBS="-lld"
3458 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3459 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3460 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3461 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3462echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3463 saved_LDFLAGS="$LDFLAGS"
3464 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3465 cat >conftest.$ac_ext <<_ACEOF
3466#line $LINENO "configure"
3467#include "confdefs.h"
3468
3469#ifdef F77_DUMMY_MAIN
3470# ifdef __cplusplus
3471 extern "C"
3472# endif
3473 int F77_DUMMY_MAIN() { return 1; }
3474#endif
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext conftest$ac_exeext
3484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498 blibpath="/usr/lib:/lib:/usr/local/lib"
3499
3500else
3501 echo "$as_me: failed program was:" >&5
3502cat conftest.$ac_ext >&5
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505
3506fi
3507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 LDFLAGS="$saved_LDFLAGS"
3509 fi
3510 echo "$as_me:$LINENO: checking for authenticate" >&5
3511echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3512if test "${ac_cv_func_authenticate+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
3516#line $LINENO "configure"
3517#include "confdefs.h"
3518/* System header to define __stub macros and hopefully few prototypes,
3519 which can conflict with char authenticate (); below. */
3520#include <assert.h>
3521/* Override any gcc2 internal prototype to avoid an error. */
3522#ifdef __cplusplus
3523extern "C"
3524#endif
3525/* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3527char authenticate ();
3528char (*f) ();
3529
3530#ifdef F77_DUMMY_MAIN
3531# ifdef __cplusplus
3532 extern "C"
3533# endif
3534 int F77_DUMMY_MAIN() { return 1; }
3535#endif
3536int
3537main ()
3538{
3539/* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542#if defined (__stub_authenticate) || defined (__stub___authenticate)
3543choke me
3544#else
3545f = authenticate;
3546#endif
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554 (eval $ac_link) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -s conftest$ac_exeext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_func_authenticate=yes
3565else
3566 echo "$as_me: failed program was:" >&5
3567cat conftest.$ac_ext >&5
3568ac_cv_func_authenticate=no
3569fi
3570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3573echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3574if test $ac_cv_func_authenticate = yes; then
3575 cat >>confdefs.h <<\_ACEOF
3576@%:@define WITH_AIXAUTHENTICATE 1
3577_ACEOF
3578
3579else
3580 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3581echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3582if test "${ac_cv_lib_s_authenticate+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 ac_check_lib_save_LIBS=$LIBS
3586LIBS="-ls $LIBS"
3587cat >conftest.$ac_ext <<_ACEOF
3588#line $LINENO "configure"
3589#include "confdefs.h"
3590
3591/* Override any gcc2 internal prototype to avoid an error. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595/* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597char authenticate ();
3598#ifdef F77_DUMMY_MAIN
3599# ifdef __cplusplus
3600 extern "C"
3601# endif
3602 int F77_DUMMY_MAIN() { return 1; }
3603#endif
3604int
3605main ()
3606{
3607authenticate ();
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.$ac_objext conftest$ac_exeext
3613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest$ac_exeext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_lib_s_authenticate=yes
3625else
3626 echo "$as_me: failed program was:" >&5
3627cat conftest.$ac_ext >&5
3628ac_cv_lib_s_authenticate=no
3629fi
3630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631LIBS=$ac_check_lib_save_LIBS
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3634echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3635if test $ac_cv_lib_s_authenticate = yes; then
3636 cat >>confdefs.h <<\_ACEOF
3637@%:@define WITH_AIXAUTHENTICATE 1
3638_ACEOF
3639
3640 LIBS="$LIBS -ls"
3641
3642fi
3643
3644
3645fi
3646
3647 cat >>confdefs.h <<\_ACEOF
3648@%:@define BROKEN_GETADDRINFO 1
3649_ACEOF
3650
3651 cat >>confdefs.h <<\_ACEOF
3652@%:@define BROKEN_REALPATH 1
3653_ACEOF
3654
3655 cat >>confdefs.h <<\_ACEOF
3656@%:@define DISABLE_LASTLOG 1
3657_ACEOF
3658
3659 cat >>confdefs.h <<\_ACEOF
3660@%:@define LOGIN_NEEDS_UTMPX 1
3661_ACEOF
3662
3663 ;;
3664*-*-cygwin*)
3665 LIBS="$LIBS /usr/lib/textmode.o"
3666 cat >>confdefs.h <<\_ACEOF
3667@%:@define HAVE_CYGWIN 1
3668_ACEOF
3669
3670 cat >>confdefs.h <<\_ACEOF
3671@%:@define USE_PIPES 1
3672_ACEOF
3673
3674 cat >>confdefs.h <<\_ACEOF
3675@%:@define DISABLE_SHADOW 1
3676_ACEOF
3677
3678 cat >>confdefs.h <<\_ACEOF
3679@%:@define IPV4_DEFAULT 1
3680_ACEOF
3681
3682 cat >>confdefs.h <<\_ACEOF
3683@%:@define IP_TOS_IS_BROKEN 1
3684_ACEOF
3685
3686 cat >>confdefs.h <<\_ACEOF
3687@%:@define NO_X11_UNIX_SOCKETS 1
3688_ACEOF
3689
3690 cat >>confdefs.h <<\_ACEOF
3691@%:@define NO_IPPORT_RESERVED_CONCEPT 1
3692_ACEOF
3693
3694 cat >>confdefs.h <<\_ACEOF
3695@%:@define DISABLE_FD_PASSING 1
3696_ACEOF
3697
3698 cat >>confdefs.h <<\_ACEOF
3699@%:@define SETGROUPS_NOOP 1
3700_ACEOF
3701
3702 ;;
3703*-*-dgux*)
3704 cat >>confdefs.h <<\_ACEOF
3705@%:@define IP_TOS_IS_BROKEN 1
3706_ACEOF
3707
3708 ;;
3709*-*-darwin*)
3710 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3711echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3712 if test "$cross_compiling" = yes; then
3713 echo "$as_me:$LINENO: result: assume it is working" >&5
3714echo "${ECHO_T}assume it is working" >&6
3715else
3716 cat >conftest.$ac_ext <<_ACEOF
3717#line $LINENO "configure"
3718#include "confdefs.h"
3719#include <mach-o/dyld.h>
3720main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3721 exit(0);
3722 else
3723 exit(1);
3724}
3725_ACEOF
3726rm -f conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728 (eval $ac_link) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 echo "$as_me:$LINENO: result: working" >&5
3738echo "${ECHO_T}working" >&6
3739else
3740 echo "$as_me: program exited with status $ac_status" >&5
3741echo "$as_me: failed program was:" >&5
3742cat conftest.$ac_ext >&5
3743( exit $ac_status )
3744echo "$as_me:$LINENO: result: buggy" >&5
3745echo "${ECHO_T}buggy" >&6
3746 cat >>confdefs.h <<\_ACEOF
3747@%:@define BROKEN_GETADDRINFO 1
3748_ACEOF
3749
3750fi
3751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752fi
3753 ;;
3754*-*-hpux10.26)
3755 if test -z "$GCC"; then
3756 CFLAGS="$CFLAGS -Ae"
3757 fi
3758 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3759 IPADDR_IN_DISPLAY=yes
3760 cat >>confdefs.h <<\_ACEOF
3761@%:@define HAVE_SECUREWARE 1
3762_ACEOF
3763
3764 cat >>confdefs.h <<\_ACEOF
3765@%:@define USE_PIPES 1
3766_ACEOF
3767
3768 cat >>confdefs.h <<\_ACEOF
3769@%:@define LOGIN_NO_ENDOPT 1
3770_ACEOF
3771
3772 cat >>confdefs.h <<\_ACEOF
3773@%:@define LOGIN_NEEDS_UTMPX 1
3774_ACEOF
3775
3776 cat >>confdefs.h <<\_ACEOF
3777@%:@define DISABLE_SHADOW 1
3778_ACEOF
3779
3780 cat >>confdefs.h <<\_ACEOF
3781@%:@define DISABLE_UTMP 1
3782_ACEOF
3783
3784 cat >>confdefs.h <<\_ACEOF
3785@%:@define SPT_TYPE SPT_PSTAT
3786_ACEOF
3787
3788 LIBS="$LIBS -lsec -lsecpw"
3789
3790echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3791echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3792if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_check_lib_save_LIBS=$LIBS
3796LIBS="-lxnet $LIBS"
3797cat >conftest.$ac_ext <<_ACEOF
3798#line $LINENO "configure"
3799#include "confdefs.h"
3800
3801/* Override any gcc2 internal prototype to avoid an error. */
3802#ifdef __cplusplus
3803extern "C"
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char t_error ();
3808#ifdef F77_DUMMY_MAIN
3809# ifdef __cplusplus
3810 extern "C"
3811# endif
3812 int F77_DUMMY_MAIN() { return 1; }
3813#endif
3814int
3815main ()
3816{
3817t_error ();
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.$ac_objext conftest$ac_exeext
3823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -s conftest$ac_exeext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_xnet_t_error=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837cat conftest.$ac_ext >&5
3838ac_cv_lib_xnet_t_error=no
3839fi
3840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841LIBS=$ac_check_lib_save_LIBS
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3844echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3845if test $ac_cv_lib_xnet_t_error = yes; then
3846 cat >>confdefs.h <<_ACEOF
3847@%:@define HAVE_LIBXNET 1
3848_ACEOF
3849
3850 LIBS="-lxnet $LIBS"
3851
3852else
3853 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3854echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3855 { (exit 1); exit 1; }; }
3856fi
3857
3858 disable_ptmx_check=yes
3859 ;;
3860*-*-hpux10*)
3861 if test -z "$GCC"; then
3862 CFLAGS="$CFLAGS -Ae"
3863 fi
3864 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3865 IPADDR_IN_DISPLAY=yes
3866 cat >>confdefs.h <<\_ACEOF
3867@%:@define USE_PIPES 1
3868_ACEOF
3869
3870 cat >>confdefs.h <<\_ACEOF
3871@%:@define LOGIN_NO_ENDOPT 1
3872_ACEOF
3873
3874 cat >>confdefs.h <<\_ACEOF
3875@%:@define LOGIN_NEEDS_UTMPX 1
3876_ACEOF
3877
3878 cat >>confdefs.h <<\_ACEOF
3879@%:@define DISABLE_SHADOW 1
3880_ACEOF
3881
3882 cat >>confdefs.h <<\_ACEOF
3883@%:@define DISABLE_UTMP 1
3884_ACEOF
3885
3886 cat >>confdefs.h <<\_ACEOF
3887@%:@define SPT_TYPE SPT_PSTAT
3888_ACEOF
3889
3890 LIBS="$LIBS -lsec"
3891
3892echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3893echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3894if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-lxnet $LIBS"
3899cat >conftest.$ac_ext <<_ACEOF
3900#line $LINENO "configure"
3901#include "confdefs.h"
3902
3903/* Override any gcc2 internal prototype to avoid an error. */
3904#ifdef __cplusplus
3905extern "C"
3906#endif
3907/* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909char t_error ();
3910#ifdef F77_DUMMY_MAIN
3911# ifdef __cplusplus
3912 extern "C"
3913# endif
3914 int F77_DUMMY_MAIN() { return 1; }
3915#endif
3916int
3917main ()
3918{
3919t_error ();
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext conftest$ac_exeext
3925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_xnet_t_error=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939cat conftest.$ac_ext >&5
3940ac_cv_lib_xnet_t_error=no
3941fi
3942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943LIBS=$ac_check_lib_save_LIBS
3944fi
3945echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3946echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3947if test $ac_cv_lib_xnet_t_error = yes; then
3948 cat >>confdefs.h <<_ACEOF
3949@%:@define HAVE_LIBXNET 1
3950_ACEOF
3951
3952 LIBS="-lxnet $LIBS"
3953
3954else
3955 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3956echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3957 { (exit 1); exit 1; }; }
3958fi
3959
3960 ;;
3961*-*-hpux11*)
3962 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3963 IPADDR_IN_DISPLAY=yes
3964 cat >>confdefs.h <<\_ACEOF
3965@%:@define PAM_SUN_CODEBASE 1
3966_ACEOF
3967
3968 cat >>confdefs.h <<\_ACEOF
3969@%:@define USE_PIPES 1
3970_ACEOF
3971
3972 cat >>confdefs.h <<\_ACEOF
3973@%:@define LOGIN_NO_ENDOPT 1
3974_ACEOF
3975
3976 cat >>confdefs.h <<\_ACEOF
3977@%:@define LOGIN_NEEDS_UTMPX 1
3978_ACEOF
3979
3980 cat >>confdefs.h <<\_ACEOF
3981@%:@define DISABLE_SHADOW 1
3982_ACEOF
3983
3984 cat >>confdefs.h <<\_ACEOF
3985@%:@define DISABLE_UTMP 1
3986_ACEOF
3987
3988 cat >>confdefs.h <<\_ACEOF
3989@%:@define SPT_TYPE SPT_PSTAT
3990_ACEOF
3991
3992 LIBS="$LIBS -lsec"
3993
3994echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3995echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3996if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 ac_check_lib_save_LIBS=$LIBS
4000LIBS="-lxnet $LIBS"
4001cat >conftest.$ac_ext <<_ACEOF
4002#line $LINENO "configure"
4003#include "confdefs.h"
4004
4005/* Override any gcc2 internal prototype to avoid an error. */
4006#ifdef __cplusplus
4007extern "C"
4008#endif
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char t_error ();
4012#ifdef F77_DUMMY_MAIN
4013# ifdef __cplusplus
4014 extern "C"
4015# endif
4016 int F77_DUMMY_MAIN() { return 1; }
4017#endif
4018int
4019main ()
4020{
4021t_error ();
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_lib_xnet_t_error=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041cat conftest.$ac_ext >&5
4042ac_cv_lib_xnet_t_error=no
4043fi
4044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4045LIBS=$ac_check_lib_save_LIBS
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4048echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4049if test $ac_cv_lib_xnet_t_error = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051@%:@define HAVE_LIBXNET 1
4052_ACEOF
4053
4054 LIBS="-lxnet $LIBS"
4055
4056else
4057 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4058echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4059 { (exit 1); exit 1; }; }
4060fi
4061
4062 ;;
4063*-*-irix5*)
4064 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4065 LDFLAGS="$LDFLAGS"
4066 PATH="$PATH:/usr/etc"
4067 cat >>confdefs.h <<\_ACEOF
4068@%:@define BROKEN_INET_NTOA 1
4069_ACEOF
4070
4071 cat >>confdefs.h <<\_ACEOF
4072@%:@define WITH_ABBREV_NO_TTY 1
4073_ACEOF
4074
4075 ;;
4076*-*-irix6*)
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4078 LDFLAGS="$LDFLAGS"
4079 PATH="$PATH:/usr/etc"
4080 cat >>confdefs.h <<\_ACEOF
4081@%:@define WITH_IRIX_ARRAY 1
4082_ACEOF
4083
4084 cat >>confdefs.h <<\_ACEOF
4085@%:@define WITH_IRIX_PROJECT 1
4086_ACEOF
4087
4088 cat >>confdefs.h <<\_ACEOF
4089@%:@define WITH_IRIX_AUDIT 1
4090_ACEOF
4091
4092 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4093echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4094if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 cat >conftest.$ac_ext <<_ACEOF
4098#line $LINENO "configure"
4099#include "confdefs.h"
4100/* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char jlimit_startjob (); below. */
4102#include <assert.h>
4103/* Override any gcc2 internal prototype to avoid an error. */
4104#ifdef __cplusplus
4105extern "C"
4106#endif
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char jlimit_startjob ();
4110char (*f) ();
4111
4112#ifdef F77_DUMMY_MAIN
4113# ifdef __cplusplus
4114 extern "C"
4115# endif
4116 int F77_DUMMY_MAIN() { return 1; }
4117#endif
4118int
4119main ()
4120{
4121/* The GNU C library defines this for functions which it implements
4122 to always fail with ENOSYS. Some functions are actually named
4123 something starting with __ and the normal name is an alias. */
4124#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
4125choke me
4126#else
4127f = jlimit_startjob;
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -s conftest$ac_exeext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_func_jlimit_startjob=yes
4147else
4148 echo "$as_me: failed program was:" >&5
4149cat conftest.$ac_ext >&5
4150ac_cv_func_jlimit_startjob=no
4151fi
4152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4155echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4156if test $ac_cv_func_jlimit_startjob = yes; then
4157 cat >>confdefs.h <<\_ACEOF
4158@%:@define WITH_IRIX_JOBS 1
4159_ACEOF
4160
4161fi
4162
4163 cat >>confdefs.h <<\_ACEOF
4164@%:@define BROKEN_INET_NTOA 1
4165_ACEOF
4166
4167 cat >>confdefs.h <<\_ACEOF
4168@%:@define WITH_ABBREV_NO_TTY 1
4169_ACEOF
4170
4171 ;;
4172*-*-linux*)
4173 no_dev_ptmx=1
4174 check_for_libcrypt_later=1
4175 cat >>confdefs.h <<\_ACEOF
4176@%:@define DONT_TRY_OTHER_AF 1
4177_ACEOF
4178
4179 cat >>confdefs.h <<\_ACEOF
4180@%:@define PAM_TTY_KLUDGE 1
4181_ACEOF
4182
4183 inet6_default_4in6=yes
4184 ;;
4185mips-sony-bsd|mips-sony-newsos4)
4186 cat >>confdefs.h <<\_ACEOF
4187@%:@define HAVE_NEWS4 1
4188_ACEOF
4189
4190 SONY=1
4191 ;;
4192*-*-netbsd*)
4193 check_for_libcrypt_before=1
4194 need_dash_r=1
4195 ;;
4196*-*-freebsd*)
4197 check_for_libcrypt_later=1
4198 ;;
4199*-next-*)
4200 conf_lastlog_location="/usr/adm/lastlog"
4201 conf_utmp_location=/etc/utmp
4202 conf_wtmp_location=/usr/adm/wtmp
4203 MAIL=/usr/spool/mail
4204 cat >>confdefs.h <<\_ACEOF
4205@%:@define HAVE_NEXT 1
4206_ACEOF
4207
4208 cat >>confdefs.h <<\_ACEOF
4209@%:@define BROKEN_REALPATH 1
4210_ACEOF
4211
4212 cat >>confdefs.h <<\_ACEOF
4213@%:@define USE_PIPES 1
4214_ACEOF
4215
4216 cat >>confdefs.h <<\_ACEOF
4217@%:@define BROKEN_SAVED_UIDS 1
4218_ACEOF
4219
4220 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4221 CFLAGS="$CFLAGS"
4222 ;;
4223*-*-solaris*)
4224 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4225 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4226 need_dash_r=1
4227 cat >>confdefs.h <<\_ACEOF
4228@%:@define PAM_SUN_CODEBASE 1
4229_ACEOF
4230
4231 cat >>confdefs.h <<\_ACEOF
4232@%:@define LOGIN_NEEDS_UTMPX 1
4233_ACEOF
4234
4235 cat >>confdefs.h <<\_ACEOF
4236@%:@define LOGIN_NEEDS_TERM 1
4237_ACEOF
4238
4239 cat >>confdefs.h <<\_ACEOF
4240@%:@define PAM_TTY_KLUDGE 1
4241_ACEOF
4242
4243 # hardwire lastlog location (can't detect it on some versions)
4244 conf_lastlog_location="/var/adm/lastlog"
4245 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
4246echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4247 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4248 if test "$sol2ver" -ge 8; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 cat >>confdefs.h <<\_ACEOF
4252@%:@define DISABLE_UTMP 1
4253_ACEOF
4254
4255 cat >>confdefs.h <<\_ACEOF
4256@%:@define DISABLE_WTMP 1
4257_ACEOF
4258
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263 ;;
4264*-*-sunos4*)
4265 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4266
4267for ac_func in getpwanam
4268do
4269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4270echo "$as_me:$LINENO: checking for $ac_func" >&5
4271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4272if eval "test \"\${$as_ac_var+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276#line $LINENO "configure"
4277#include "confdefs.h"
4278/* System header to define __stub macros and hopefully few prototypes,
4279 which can conflict with char $ac_func (); below. */
4280#include <assert.h>
4281/* Override any gcc2 internal prototype to avoid an error. */
4282#ifdef __cplusplus
4283extern "C"
4284#endif
4285/* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4287char $ac_func ();
4288char (*f) ();
4289
4290#ifdef F77_DUMMY_MAIN
4291# ifdef __cplusplus
4292 extern "C"
4293# endif
4294 int F77_DUMMY_MAIN() { return 1; }
4295#endif
4296int
4297main ()
4298{
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4303choke me
4304#else
4305f = $ac_func;
4306#endif
4307
4308 ;
4309 return 0;
4310}
4311_ACEOF
4312rm -f conftest.$ac_objext conftest$ac_exeext
4313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4314 (eval $ac_link) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_var=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327cat conftest.$ac_ext >&5
4328eval "$as_ac_var=no"
4329fi
4330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334if test `eval echo '${'$as_ac_var'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340done
4341
4342 cat >>confdefs.h <<\_ACEOF
4343@%:@define PAM_SUN_CODEBASE 1
4344_ACEOF
4345
4346 conf_utmp_location=/etc/utmp
4347 conf_wtmp_location=/var/adm/wtmp
4348 conf_lastlog_location=/var/adm/lastlog
4349 cat >>confdefs.h <<\_ACEOF
4350@%:@define USE_PIPES 1
4351_ACEOF
4352
4353 ;;
4354*-ncr-sysv*)
4355 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4356 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4357 LIBS="$LIBS -lc89"
4358 cat >>confdefs.h <<\_ACEOF
4359@%:@define USE_PIPES 1
4360_ACEOF
4361
4362 ;;
4363*-sni-sysv*)
4364 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4365 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4366 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4367 IPADDR_IN_DISPLAY=yes
4368 cat >>confdefs.h <<\_ACEOF
4369@%:@define USE_PIPES 1
4370_ACEOF
4371
4372 cat >>confdefs.h <<\_ACEOF
4373@%:@define IP_TOS_IS_BROKEN 1
4374_ACEOF
4375
4376 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4377 # Attention: always take care to bind libsocket and libnsl before libc,
4378 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4379 ;;
4380*-*-sysv4.2*)
4381 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4382 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4383 cat >>confdefs.h <<\_ACEOF
4384@%:@define USE_PIPES 1
4385_ACEOF
4386
4387 ;;
4388*-*-sysv5*)
4389 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4390 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4391 cat >>confdefs.h <<\_ACEOF
4392@%:@define USE_PIPES 1
4393_ACEOF
4394
4395 ;;
4396*-*-sysv*)
4397 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4398 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4399 ;;
4400*-*-sco3.2v4*)
4401 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4403 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4404 RANLIB=true
4405 no_dev_ptmx=1
4406 cat >>confdefs.h <<\_ACEOF
4407@%:@define BROKEN_SYS_TERMIO_H 1
4408_ACEOF
4409
4410 cat >>confdefs.h <<\_ACEOF
4411@%:@define USE_PIPES 1
4412_ACEOF
4413
4414 cat >>confdefs.h <<\_ACEOF
4415@%:@define HAVE_SECUREWARE 1
4416_ACEOF
4417
4418 cat >>confdefs.h <<\_ACEOF
4419@%:@define DISABLE_SHADOW 1
4420_ACEOF
4421
4422 cat >>confdefs.h <<\_ACEOF
4423@%:@define BROKEN_SAVED_UIDS 1
4424_ACEOF
4425
4426
4427
4428for ac_func in getluid setluid
4429do
4430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4431echo "$as_me:$LINENO: checking for $ac_func" >&5
4432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4433if eval "test \"\${$as_ac_var+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437#line $LINENO "configure"
4438#include "confdefs.h"
4439/* System header to define __stub macros and hopefully few prototypes,
4440 which can conflict with char $ac_func (); below. */
4441#include <assert.h>
4442/* Override any gcc2 internal prototype to avoid an error. */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448char $ac_func ();
4449char (*f) ();
4450
4451#ifdef F77_DUMMY_MAIN
4452# ifdef __cplusplus
4453 extern "C"
4454# endif
4455 int F77_DUMMY_MAIN() { return 1; }
4456#endif
4457int
4458main ()
4459{
4460/* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464choke me
4465#else
4466f = $ac_func;
4467#endif
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_var=yes"
4486else
4487 echo "$as_me: failed program was:" >&5
4488cat conftest.$ac_ext >&5
4489eval "$as_ac_var=no"
4490fi
4491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4495if test `eval echo '${'$as_ac_var'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4498_ACEOF
4499
4500fi
4501done
4502
4503 MANTYPE=man
4504 do_sco3_extra_lib_check=yes
4505 ;;
4506*-*-sco3.2v5*)
4507 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4508 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4509 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4510 no_dev_ptmx=1
4511 cat >>confdefs.h <<\_ACEOF
4512@%:@define USE_PIPES 1
4513_ACEOF
4514
4515 cat >>confdefs.h <<\_ACEOF
4516@%:@define HAVE_SECUREWARE 1
4517_ACEOF
4518
4519 cat >>confdefs.h <<\_ACEOF
4520@%:@define DISABLE_SHADOW 1
4521_ACEOF
4522
4523 cat >>confdefs.h <<\_ACEOF
4524@%:@define DISABLE_FD_PASSING 1
4525_ACEOF
4526
4527
4528
4529for ac_func in getluid setluid
4530do
4531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4532echo "$as_me:$LINENO: checking for $ac_func" >&5
4533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4534if eval "test \"\${$as_ac_var+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 cat >conftest.$ac_ext <<_ACEOF
4538#line $LINENO "configure"
4539#include "confdefs.h"
4540/* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char $ac_func (); below. */
4542#include <assert.h>
4543/* Override any gcc2 internal prototype to avoid an error. */
4544#ifdef __cplusplus
4545extern "C"
4546#endif
4547/* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4549char $ac_func ();
4550char (*f) ();
4551
4552#ifdef F77_DUMMY_MAIN
4553# ifdef __cplusplus
4554 extern "C"
4555# endif
4556 int F77_DUMMY_MAIN() { return 1; }
4557#endif
4558int
4559main ()
4560{
4561/* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565choke me
4566#else
4567f = $ac_func;
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext conftest$ac_exeext
4575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 eval "$as_ac_var=yes"
4587else
4588 echo "$as_me: failed program was:" >&5
4589cat conftest.$ac_ext >&5
4590eval "$as_ac_var=no"
4591fi
4592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593fi
4594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596if test `eval echo '${'$as_ac_var'}'` = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4599_ACEOF
4600
4601fi
4602done
4603
4604 MANTYPE=man
4605 ;;
4606*-*-unicosmk*)
4607 no_libsocket=1
4608 no_libnsl=1
4609 cat >>confdefs.h <<\_ACEOF
4610@%:@define USE_PIPES 1
4611_ACEOF
4612
4613 cat >>confdefs.h <<\_ACEOF
4614@%:@define DISABLE_FD_PASSING 1
4615_ACEOF
4616
4617 LDFLAGS="$LDFLAGS"
4618 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4619 MANTYPE=cat
4620 ;;
4621*-*-unicos*)
4622 no_libsocket=1
4623 no_libnsl=1
4624 cat >>confdefs.h <<\_ACEOF
4625@%:@define USE_PIPES 1
4626_ACEOF
4627
4628 cat >>confdefs.h <<\_ACEOF
4629@%:@define DISABLE_FD_PASSING 1
4630_ACEOF
4631
4632 cat >>confdefs.h <<\_ACEOF
4633@%:@define NO_SSH_LASTLOG 1
4634_ACEOF
4635
4636 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4637 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4638 MANTYPE=cat
4639 ;;
4640*-dec-osf*)
4641 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4642echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4643 no_osfsia=""
4644
4645# Check whether --with-osfsia or --without-osfsia was given.
4646if test "${with_osfsia+set}" = set; then
4647 withval="$with_osfsia"
4648
4649 if test "x$withval" = "xno" ; then
4650 echo "$as_me:$LINENO: result: disabled" >&5
4651echo "${ECHO_T}disabled" >&6
4652 no_osfsia=1
4653 fi
4654
4655fi;
4656 if test -z "$no_osfsia" ; then
4657 if test -f /etc/sia/matrix.conf; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 cat >>confdefs.h <<\_ACEOF
4661@%:@define HAVE_OSF_SIA 1
4662_ACEOF
4663
4664 cat >>confdefs.h <<\_ACEOF
4665@%:@define DISABLE_LOGIN 1
4666_ACEOF
4667
4668 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673 fi
4674 ;;
4675
4676*-*-nto-qnx)
4677 cat >>confdefs.h <<\_ACEOF
4678@%:@define USE_PIPES 1
4679_ACEOF
4680
4681 cat >>confdefs.h <<\_ACEOF
4682@%:@define NO_X11_UNIX_SOCKETS 1
4683_ACEOF
4684
4685 cat >>confdefs.h <<\_ACEOF
4686@%:@define MISSING_NFDBITS 1
4687_ACEOF
4688
4689 cat >>confdefs.h <<\_ACEOF
4690@%:@define MISSING_HOWMANY 1
4691_ACEOF
4692
4693 cat >>confdefs.h <<\_ACEOF
4694@%:@define MISSING_FD_MASK 1
4695_ACEOF
4696
4697 ;;
4698esac
4699
4700# Allow user to specify flags
4701
4702# Check whether --with-cflags or --without-cflags was given.
4703if test "${with_cflags+set}" = set; then
4704 withval="$with_cflags"
4705
4706 if test "x$withval" != "xno" ; then
4707 CFLAGS="$CFLAGS $withval"
4708 fi
4709
4710
4711fi;
4712
4713# Check whether --with-cppflags or --without-cppflags was given.
4714if test "${with_cppflags+set}" = set; then
4715 withval="$with_cppflags"
4716
4717 if test "x$withval" != "xno"; then
4718 CPPFLAGS="$CPPFLAGS $withval"
4719 fi
4720
4721
4722fi;
4723
4724# Check whether --with-ldflags or --without-ldflags was given.
4725if test "${with_ldflags+set}" = set; then
4726 withval="$with_ldflags"
4727
4728 if test "x$withval" != "xno" ; then
4729 LDFLAGS="$LDFLAGS $withval"
4730 fi
4731
4732
4733fi;
4734
4735# Check whether --with-libs or --without-libs was given.
4736if test "${with_libs+set}" = set; then
4737 withval="$with_libs"
4738
4739 if test "x$withval" != "xno" ; then
4740 LIBS="$LIBS $withval"
4741 fi
4742
4743
4744fi;
4745
4746# Checks for header files.
4747
4748echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4749echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4750if test "${ac_cv_header_stdc+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754#line $LINENO "configure"
4755#include "confdefs.h"
4756#include <stdlib.h>
4757#include <stdarg.h>
4758#include <string.h>
4759#include <float.h>
4760
4761_ACEOF
4762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764 ac_status=$?
4765 egrep -v '^ *\+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null; then
4770 if test -s conftest.err; then
4771 ac_cpp_err=$ac_c_preproc_warn_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_cv_header_stdc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_header_stdc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786
4787if test $ac_cv_header_stdc = yes; then
4788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4790#line $LINENO "configure"
4791#include "confdefs.h"
4792#include <string.h>
4793
4794_ACEOF
4795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 egrep "memchr" >/dev/null 2>&1; then
4797 :
4798else
4799 ac_cv_header_stdc=no
4800fi
4801rm -f conftest*
4802
4803fi
4804
4805if test $ac_cv_header_stdc = yes; then
4806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4807 cat >conftest.$ac_ext <<_ACEOF
4808#line $LINENO "configure"
4809#include "confdefs.h"
4810#include <stdlib.h>
4811
4812_ACEOF
4813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "free" >/dev/null 2>&1; then
4815 :
4816else
4817 ac_cv_header_stdc=no
4818fi
4819rm -f conftest*
4820
4821fi
4822
4823if test $ac_cv_header_stdc = yes; then
4824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4825 if test "$cross_compiling" = yes; then
4826 :
4827else
4828 cat >conftest.$ac_ext <<_ACEOF
4829#line $LINENO "configure"
4830#include "confdefs.h"
4831#include <ctype.h>
4832#if ((' ' & 0x0FF) == 0x020)
4833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4835#else
4836# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4837 || ('j' <= (c) && (c) <= 'r') \
4838 || ('s' <= (c) && (c) <= 'z'))
4839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840#endif
4841
4842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843int
4844main ()
4845{
4846 int i;
4847 for (i = 0; i < 256; i++)
4848 if (XOR (islower (i), ISLOWER (i))
4849 || toupper (i) != TOUPPER (i))
4850 exit(2);
4851 exit (0);
4852}
4853_ACEOF
4854rm -f conftest$ac_exeext
4855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 :
4866else
4867 echo "$as_me: program exited with status $ac_status" >&5
4868echo "$as_me: failed program was:" >&5
4869cat conftest.$ac_ext >&5
4870( exit $ac_status )
4871ac_cv_header_stdc=no
4872fi
4873rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874fi
4875fi
4876fi
4877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4878echo "${ECHO_T}$ac_cv_header_stdc" >&6
4879if test $ac_cv_header_stdc = yes; then
4880
4881cat >>confdefs.h <<\_ACEOF
4882@%:@define STDC_HEADERS 1
4883_ACEOF
4884
4885fi
4886
4887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898 inttypes.h stdint.h unistd.h
4899do
4900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901echo "$as_me:$LINENO: checking for $ac_header" >&5
4902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4903if eval "test \"\${$as_ac_Header+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 cat >conftest.$ac_ext <<_ACEOF
4907#line $LINENO "configure"
4908#include "confdefs.h"
4909$ac_includes_default
4910
4911@%:@include <$ac_header>
4912_ACEOF
4913rm -f conftest.$ac_objext
4914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -s conftest.$ac_objext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 eval "$as_ac_Header=yes"
4926else
4927 echo "$as_me: failed program was:" >&5
4928cat conftest.$ac_ext >&5
4929eval "$as_ac_Header=no"
4930fi
4931rm -f conftest.$ac_objext conftest.$ac_ext
4932fi
4933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4935if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938_ACEOF
4939
4940fi
4941
4942done
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4988 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4989 login_cap.h maillock.h netdb.h netgroup.h \
4990 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4991 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4992 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4993 sys/mman.h sys/select.h sys/stat.h \
4994 sys/stropts.h sys/sysmacros.h sys/time.h \
4995 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4996 util.h utime.h utmp.h utmpx.h
4997do
4998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999if eval "test \"\${$as_ac_Header+set}\" = set"; then
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004fi
5005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5007else
5008 # Is the header compilable?
5009echo "$as_me:$LINENO: checking $ac_header usability" >&5
5010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5011cat >conftest.$ac_ext <<_ACEOF
5012#line $LINENO "configure"
5013#include "confdefs.h"
5014$ac_includes_default
5015@%:@include <$ac_header>
5016_ACEOF
5017rm -f conftest.$ac_objext
5018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler=yes
5030else
5031 echo "$as_me: failed program was:" >&5
5032cat conftest.$ac_ext >&5
5033ac_header_compiler=no
5034fi
5035rm -f conftest.$ac_objext conftest.$ac_ext
5036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037echo "${ECHO_T}$ac_header_compiler" >&6
5038
5039# Is the header present?
5040echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044#include "confdefs.h"
5045@%:@include <$ac_header>
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 egrep -v '^ *\+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_c_preproc_warn_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
5064 ac_header_preproc=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_header_preproc=no
5069fi
5070rm -f conftest.err conftest.$ac_ext
5071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6
5073
5074# So? What about this header?
5075case $ac_header_compiler:$ac_header_preproc in
5076 yes:no )
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5081 no:yes )
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5088esac
5089echo "$as_me:$LINENO: checking for $ac_header" >&5
5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 eval "$as_ac_Header=$ac_header_preproc"
5095fi
5096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098
5099fi
5100if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103_ACEOF
5104
5105fi
5106
5107done
5108
5109
5110# Checks for libraries.
5111echo "$as_me:$LINENO: checking for yp_match" >&5
5112echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5113if test "${ac_cv_func_yp_match+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117#line $LINENO "configure"
5118#include "confdefs.h"
5119/* System header to define __stub macros and hopefully few prototypes,
5120 which can conflict with char yp_match (); below. */
5121#include <assert.h>
5122/* Override any gcc2 internal prototype to avoid an error. */
5123#ifdef __cplusplus
5124extern "C"
5125#endif
5126/* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5128char yp_match ();
5129char (*f) ();
5130
5131#ifdef F77_DUMMY_MAIN
5132# ifdef __cplusplus
5133 extern "C"
5134# endif
5135 int F77_DUMMY_MAIN() { return 1; }
5136#endif
5137int
5138main ()
5139{
5140/* The GNU C library defines this for functions which it implements
5141 to always fail with ENOSYS. Some functions are actually named
5142 something starting with __ and the normal name is an alias. */
5143#if defined (__stub_yp_match) || defined (__stub___yp_match)
5144choke me
5145#else
5146f = yp_match;
5147#endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153rm -f conftest.$ac_objext conftest$ac_exeext
5154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -s conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_func_yp_match=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168cat conftest.$ac_ext >&5
5169ac_cv_func_yp_match=no
5170fi
5171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5172fi
5173echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5174echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5175if test $ac_cv_func_yp_match = yes; then
5176 :
5177else
5178
5179echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5180echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5181if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 ac_check_lib_save_LIBS=$LIBS
5185LIBS="-lnsl $LIBS"
5186cat >conftest.$ac_ext <<_ACEOF
5187#line $LINENO "configure"
5188#include "confdefs.h"
5189
5190/* Override any gcc2 internal prototype to avoid an error. */
5191#ifdef __cplusplus
5192extern "C"
5193#endif
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5196char yp_match ();
5197#ifdef F77_DUMMY_MAIN
5198# ifdef __cplusplus
5199 extern "C"
5200# endif
5201 int F77_DUMMY_MAIN() { return 1; }
5202#endif
5203int
5204main ()
5205{
5206yp_match ();
5207 ;
5208 return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_nsl_yp_match=yes
5224else
5225 echo "$as_me: failed program was:" >&5
5226cat conftest.$ac_ext >&5
5227ac_cv_lib_nsl_yp_match=no
5228fi
5229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230LIBS=$ac_check_lib_save_LIBS
5231fi
5232echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5233echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5234if test $ac_cv_lib_nsl_yp_match = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236@%:@define HAVE_LIBNSL 1
5237_ACEOF
5238
5239 LIBS="-lnsl $LIBS"
5240
5241fi
5242
5243fi
5244
5245echo "$as_me:$LINENO: checking for setsockopt" >&5
5246echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5247if test "${ac_cv_func_setsockopt+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 cat >conftest.$ac_ext <<_ACEOF
5251#line $LINENO "configure"
5252#include "confdefs.h"
5253/* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char setsockopt (); below. */
5255#include <assert.h>
5256/* Override any gcc2 internal prototype to avoid an error. */
5257#ifdef __cplusplus
5258extern "C"
5259#endif
5260/* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262char setsockopt ();
5263char (*f) ();
5264
5265#ifdef F77_DUMMY_MAIN
5266# ifdef __cplusplus
5267 extern "C"
5268# endif
5269 int F77_DUMMY_MAIN() { return 1; }
5270#endif
5271int
5272main ()
5273{
5274/* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5278choke me
5279#else
5280f = setsockopt;
5281#endif
5282
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287rm -f conftest.$ac_objext conftest$ac_exeext
5288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_func_setsockopt=yes
5300else
5301 echo "$as_me: failed program was:" >&5
5302cat conftest.$ac_ext >&5
5303ac_cv_func_setsockopt=no
5304fi
5305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5308echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5309if test $ac_cv_func_setsockopt = yes; then
5310 :
5311else
5312
5313echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5314echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5315if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 ac_check_lib_save_LIBS=$LIBS
5319LIBS="-lsocket $LIBS"
5320cat >conftest.$ac_ext <<_ACEOF
5321#line $LINENO "configure"
5322#include "confdefs.h"
5323
5324/* Override any gcc2 internal prototype to avoid an error. */
5325#ifdef __cplusplus
5326extern "C"
5327#endif
5328/* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330char setsockopt ();
5331#ifdef F77_DUMMY_MAIN
5332# ifdef __cplusplus
5333 extern "C"
5334# endif
5335 int F77_DUMMY_MAIN() { return 1; }
5336#endif
5337int
5338main ()
5339{
5340setsockopt ();
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext conftest$ac_exeext
5346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_lib_socket_setsockopt=yes
5358else
5359 echo "$as_me: failed program was:" >&5
5360cat conftest.$ac_ext >&5
5361ac_cv_lib_socket_setsockopt=no
5362fi
5363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364LIBS=$ac_check_lib_save_LIBS
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5367echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5368if test $ac_cv_lib_socket_setsockopt = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370@%:@define HAVE_LIBSOCKET 1
5371_ACEOF
5372
5373 LIBS="-lsocket $LIBS"
5374
5375fi
5376
5377fi
5378
5379
5380if test "x$with_tcp_wrappers" != "xno" ; then
5381 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5382 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5383echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5384if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 ac_check_lib_save_LIBS=$LIBS
5388LIBS="-lrpc -lyp -lrpc $LIBS"
5389cat >conftest.$ac_ext <<_ACEOF
5390#line $LINENO "configure"
5391#include "confdefs.h"
5392
5393/* Override any gcc2 internal prototype to avoid an error. */
5394#ifdef __cplusplus
5395extern "C"
5396#endif
5397/* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5399char innetgr ();
5400#ifdef F77_DUMMY_MAIN
5401# ifdef __cplusplus
5402 extern "C"
5403# endif
5404 int F77_DUMMY_MAIN() { return 1; }
5405#endif
5406int
5407main ()
5408{
5409innetgr ();
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext conftest$ac_exeext
5415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_rpc_innetgr=yes
5427else
5428 echo "$as_me: failed program was:" >&5
5429cat conftest.$ac_ext >&5
5430ac_cv_lib_rpc_innetgr=no
5431fi
5432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433LIBS=$ac_check_lib_save_LIBS
5434fi
5435echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5436echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5437if test $ac_cv_lib_rpc_innetgr = yes; then
5438 LIBS="-lrpc -lyp -lrpc $LIBS"
5439fi
5440
5441 fi
5442fi
5443
5444echo "$as_me:$LINENO: checking for getspnam" >&5
5445echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5446if test "${ac_cv_func_getspnam+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 cat >conftest.$ac_ext <<_ACEOF
5450#line $LINENO "configure"
5451#include "confdefs.h"
5452/* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char getspnam (); below. */
5454#include <assert.h>
5455/* Override any gcc2 internal prototype to avoid an error. */
5456#ifdef __cplusplus
5457extern "C"
5458#endif
5459/* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461char getspnam ();
5462char (*f) ();
5463
5464#ifdef F77_DUMMY_MAIN
5465# ifdef __cplusplus
5466 extern "C"
5467# endif
5468 int F77_DUMMY_MAIN() { return 1; }
5469#endif
5470int
5471main ()
5472{
5473/* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476#if defined (__stub_getspnam) || defined (__stub___getspnam)
5477choke me
5478#else
5479f = getspnam;
5480#endif
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486rm -f conftest.$ac_objext conftest$ac_exeext
5487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_getspnam=yes
5499else
5500 echo "$as_me: failed program was:" >&5
5501cat conftest.$ac_ext >&5
5502ac_cv_func_getspnam=no
5503fi
5504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505fi
5506echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5507echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5508if test $ac_cv_func_getspnam = yes; then
5509 :
5510else
5511 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5512echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5513if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 ac_check_lib_save_LIBS=$LIBS
5517LIBS="-lgen $LIBS"
5518cat >conftest.$ac_ext <<_ACEOF
5519#line $LINENO "configure"
5520#include "confdefs.h"
5521
5522/* Override any gcc2 internal prototype to avoid an error. */
5523#ifdef __cplusplus
5524extern "C"
5525#endif
5526/* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528char getspnam ();
5529#ifdef F77_DUMMY_MAIN
5530# ifdef __cplusplus
5531 extern "C"
5532# endif
5533 int F77_DUMMY_MAIN() { return 1; }
5534#endif
5535int
5536main ()
5537{
5538getspnam ();
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_gen_getspnam=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558cat conftest.$ac_ext >&5
5559ac_cv_lib_gen_getspnam=no
5560fi
5561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5565echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5566if test $ac_cv_lib_gen_getspnam = yes; then
5567 LIBS="$LIBS -lgen"
5568fi
5569
5570fi
5571
5572
5573
5574# Check whether --with-rpath or --without-rpath was given.
5575if test "${with_rpath+set}" = set; then
5576 withval="$with_rpath"
5577
5578 if test "x$withval" = "xno" ; then
5579 need_dash_r=""
5580 fi
5581 if test "x$withval" = "xyes" ; then
5582 need_dash_r=1
5583 fi
5584
5585
5586fi;
5587
5588
5589# Check whether --with-zlib or --without-zlib was given.
5590if test "${with_zlib+set}" = set; then
5591 withval="$with_zlib"
5592
5593 if test "x$withval" = "xno" ; then
5594 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5595echo "$as_me: error: *** zlib is required ***" >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 if test -d "$withval/lib"; then
5599 if test -n "${need_dash_r}"; then
5600 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5601 else
5602 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5603 fi
5604 else
5605 if test -n "${need_dash_r}"; then
5606 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5607 else
5608 LDFLAGS="-L${withval} ${LDFLAGS}"
5609 fi
5610 fi
5611 if test -d "$withval/include"; then
5612 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5613 else
5614 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5615 fi
5616
5617
5618fi;
5619
5620
5621echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5622echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5623if test "${ac_cv_lib_z_deflate+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626 ac_check_lib_save_LIBS=$LIBS
5627LIBS="-lz $LIBS"
5628cat >conftest.$ac_ext <<_ACEOF
5629#line $LINENO "configure"
5630#include "confdefs.h"
5631
5632/* Override any gcc2 internal prototype to avoid an error. */
5633#ifdef __cplusplus
5634extern "C"
5635#endif
5636/* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5638char deflate ();
5639#ifdef F77_DUMMY_MAIN
5640# ifdef __cplusplus
5641 extern "C"
5642# endif
5643 int F77_DUMMY_MAIN() { return 1; }
5644#endif
5645int
5646main ()
5647{
5648deflate ();
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_lib_z_deflate=yes
5666else
5667 echo "$as_me: failed program was:" >&5
5668cat conftest.$ac_ext >&5
5669ac_cv_lib_z_deflate=no
5670fi
5671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672LIBS=$ac_check_lib_save_LIBS
5673fi
5674echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5675echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5676if test $ac_cv_lib_z_deflate = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678@%:@define HAVE_LIBZ 1
5679_ACEOF
5680
5681 LIBS="-lz $LIBS"
5682
5683else
5684 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5685echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5686 { (exit 1); exit 1; }; }
5687fi
5688
5689
5690echo "$as_me:$LINENO: checking for strcasecmp" >&5
5691echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5692if test "${ac_cv_func_strcasecmp+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 cat >conftest.$ac_ext <<_ACEOF
5696#line $LINENO "configure"
5697#include "confdefs.h"
5698/* System header to define __stub macros and hopefully few prototypes,
5699 which can conflict with char strcasecmp (); below. */
5700#include <assert.h>
5701/* Override any gcc2 internal prototype to avoid an error. */
5702#ifdef __cplusplus
5703extern "C"
5704#endif
5705/* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5707char strcasecmp ();
5708char (*f) ();
5709
5710#ifdef F77_DUMMY_MAIN
5711# ifdef __cplusplus
5712 extern "C"
5713# endif
5714 int F77_DUMMY_MAIN() { return 1; }
5715#endif
5716int
5717main ()
5718{
5719/* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5723choke me
5724#else
5725f = strcasecmp;
5726#endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext conftest$ac_exeext
5733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_func_strcasecmp=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747cat conftest.$ac_ext >&5
5748ac_cv_func_strcasecmp=no
5749fi
5750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5753echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5754if test $ac_cv_func_strcasecmp = yes; then
5755 :
5756else
5757 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5758echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5759if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_check_lib_save_LIBS=$LIBS
5763LIBS="-lresolv $LIBS"
5764cat >conftest.$ac_ext <<_ACEOF
5765#line $LINENO "configure"
5766#include "confdefs.h"
5767
5768/* Override any gcc2 internal prototype to avoid an error. */
5769#ifdef __cplusplus
5770extern "C"
5771#endif
5772/* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774char strcasecmp ();
5775#ifdef F77_DUMMY_MAIN
5776# ifdef __cplusplus
5777 extern "C"
5778# endif
5779 int F77_DUMMY_MAIN() { return 1; }
5780#endif
5781int
5782main ()
5783{
5784strcasecmp ();
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
5790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_resolv_strcasecmp=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805ac_cv_lib_resolv_strcasecmp=no
5806fi
5807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808LIBS=$ac_check_lib_save_LIBS
5809fi
5810echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5811echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5812if test $ac_cv_lib_resolv_strcasecmp = yes; then
5813 LIBS="$LIBS -lresolv"
5814fi
5815
5816
5817fi
5818
5819echo "$as_me:$LINENO: checking for utimes" >&5
5820echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5821if test "${ac_cv_func_utimes+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 cat >conftest.$ac_ext <<_ACEOF
5825#line $LINENO "configure"
5826#include "confdefs.h"
5827/* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char utimes (); below. */
5829#include <assert.h>
5830/* Override any gcc2 internal prototype to avoid an error. */
5831#ifdef __cplusplus
5832extern "C"
5833#endif
5834/* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5836char utimes ();
5837char (*f) ();
5838
5839#ifdef F77_DUMMY_MAIN
5840# ifdef __cplusplus
5841 extern "C"
5842# endif
5843 int F77_DUMMY_MAIN() { return 1; }
5844#endif
5845int
5846main ()
5847{
5848/* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851#if defined (__stub_utimes) || defined (__stub___utimes)
5852choke me
5853#else
5854f = utimes;
5855#endif
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext conftest$ac_exeext
5862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_func_utimes=yes
5874else
5875 echo "$as_me: failed program was:" >&5
5876cat conftest.$ac_ext >&5
5877ac_cv_func_utimes=no
5878fi
5879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5882echo "${ECHO_T}$ac_cv_func_utimes" >&6
5883if test $ac_cv_func_utimes = yes; then
5884 :
5885else
5886 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5887echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5888if test "${ac_cv_lib_c89_utimes+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 ac_check_lib_save_LIBS=$LIBS
5892LIBS="-lc89 $LIBS"
5893cat >conftest.$ac_ext <<_ACEOF
5894#line $LINENO "configure"
5895#include "confdefs.h"
5896
5897/* Override any gcc2 internal prototype to avoid an error. */
5898#ifdef __cplusplus
5899extern "C"
5900#endif
5901/* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903char utimes ();
5904#ifdef F77_DUMMY_MAIN
5905# ifdef __cplusplus
5906 extern "C"
5907# endif
5908 int F77_DUMMY_MAIN() { return 1; }
5909#endif
5910int
5911main ()
5912{
5913utimes ();
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_c89_utimes=yes
5931else
5932 echo "$as_me: failed program was:" >&5
5933cat conftest.$ac_ext >&5
5934ac_cv_lib_c89_utimes=no
5935fi
5936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5937LIBS=$ac_check_lib_save_LIBS
5938fi
5939echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5940echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5941if test $ac_cv_lib_c89_utimes = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943@%:@define HAVE_UTIMES 1
5944_ACEOF
5945
5946 LIBS="$LIBS -lc89"
5947fi
5948
5949
5950fi
5951
5952
5953
5954for ac_header in libutil.h
5955do
5956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962fi
5963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965else
5966 # Is the header compilable?
5967echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969cat >conftest.$ac_ext <<_ACEOF
5970#line $LINENO "configure"
5971#include "confdefs.h"
5972$ac_includes_default
5973@%:@include <$ac_header>
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_header_compiler=yes
5988else
5989 echo "$as_me: failed program was:" >&5
5990cat conftest.$ac_ext >&5
5991ac_header_compiler=no
5992fi
5993rm -f conftest.$ac_objext conftest.$ac_ext
5994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995echo "${ECHO_T}$ac_header_compiler" >&6
5996
5997# Is the header present?
5998echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000cat >conftest.$ac_ext <<_ACEOF
6001#line $LINENO "configure"
6002#include "confdefs.h"
6003@%:@include <$ac_header>
6004_ACEOF
6005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 ac_status=$?
6008 egrep -v '^ *\+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null; then
6013 if test -s conftest.err; then
6014 ac_cpp_err=$ac_c_preproc_warn_flag
6015 else
6016 ac_cpp_err=
6017 fi
6018else
6019 ac_cpp_err=yes
6020fi
6021if test -z "$ac_cpp_err"; then
6022 ac_header_preproc=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_header_preproc=no
6027fi
6028rm -f conftest.err conftest.$ac_ext
6029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6030echo "${ECHO_T}$ac_header_preproc" >&6
6031
6032# So? What about this header?
6033case $ac_header_compiler:$ac_header_preproc in
6034 yes:no )
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6039 no:yes )
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6046esac
6047echo "$as_me:$LINENO: checking for $ac_header" >&5
6048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6049if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 eval "$as_ac_Header=$ac_header_preproc"
6053fi
6054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056
6057fi
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064
6065done
6066
6067echo "$as_me:$LINENO: checking for library containing login" >&5
6068echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6069if test "${ac_cv_search_login+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 ac_func_search_save_LIBS=$LIBS
6073ac_cv_search_login=no
6074cat >conftest.$ac_ext <<_ACEOF
6075#line $LINENO "configure"
6076#include "confdefs.h"
6077
6078/* Override any gcc2 internal prototype to avoid an error. */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char login ();
6085#ifdef F77_DUMMY_MAIN
6086# ifdef __cplusplus
6087 extern "C"
6088# endif
6089 int F77_DUMMY_MAIN() { return 1; }
6090#endif
6091int
6092main ()
6093{
6094login ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_search_login="none required"
6112else
6113 echo "$as_me: failed program was:" >&5
6114cat conftest.$ac_ext >&5
6115fi
6116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6117if test "$ac_cv_search_login" = no; then
6118 for ac_lib in util bsd; do
6119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121#line $LINENO "configure"
6122#include "confdefs.h"
6123
6124/* Override any gcc2 internal prototype to avoid an error. */
6125#ifdef __cplusplus
6126extern "C"
6127#endif
6128/* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6130char login ();
6131#ifdef F77_DUMMY_MAIN
6132# ifdef __cplusplus
6133 extern "C"
6134# endif
6135 int F77_DUMMY_MAIN() { return 1; }
6136#endif
6137int
6138main ()
6139{
6140login ();
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_login="-l$ac_lib"
6158break
6159else
6160 echo "$as_me: failed program was:" >&5
6161cat conftest.$ac_ext >&5
6162fi
6163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 done
6165fi
6166LIBS=$ac_func_search_save_LIBS
6167fi
6168echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6169echo "${ECHO_T}$ac_cv_search_login" >&6
6170if test "$ac_cv_search_login" != no; then
6171 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6172 cat >>confdefs.h <<\_ACEOF
6173@%:@define HAVE_LOGIN 1
6174_ACEOF
6175
6176fi
6177
6178
6179
6180
6181for ac_func in logout updwtmp logwtmp
6182do
6183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6184echo "$as_me:$LINENO: checking for $ac_func" >&5
6185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6186if eval "test \"\${$as_ac_var+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189 cat >conftest.$ac_ext <<_ACEOF
6190#line $LINENO "configure"
6191#include "confdefs.h"
6192/* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func (); below. */
6194#include <assert.h>
6195/* Override any gcc2 internal prototype to avoid an error. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201char $ac_func ();
6202char (*f) ();
6203
6204#ifdef F77_DUMMY_MAIN
6205# ifdef __cplusplus
6206 extern "C"
6207# endif
6208 int F77_DUMMY_MAIN() { return 1; }
6209#endif
6210int
6211main ()
6212{
6213/* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217choke me
6218#else
6219f = $ac_func;
6220#endif
6221
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext conftest$ac_exeext
6227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 eval "$as_ac_var=yes"
6239else
6240 echo "$as_me: failed program was:" >&5
6241cat conftest.$ac_ext >&5
6242eval "$as_ac_var=no"
6243fi
6244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6245fi
6246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251_ACEOF
6252
6253fi
6254done
6255
6256
6257
6258for ac_func in strftime
6259do
6260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261echo "$as_me:$LINENO: checking for $ac_func" >&5
6262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6263if eval "test \"\${$as_ac_var+set}\" = set"; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 cat >conftest.$ac_ext <<_ACEOF
6267#line $LINENO "configure"
6268#include "confdefs.h"
6269/* System header to define __stub macros and hopefully few prototypes,
6270 which can conflict with char $ac_func (); below. */
6271#include <assert.h>
6272/* Override any gcc2 internal prototype to avoid an error. */
6273#ifdef __cplusplus
6274extern "C"
6275#endif
6276/* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278char $ac_func ();
6279char (*f) ();
6280
6281#ifdef F77_DUMMY_MAIN
6282# ifdef __cplusplus
6283 extern "C"
6284# endif
6285 int F77_DUMMY_MAIN() { return 1; }
6286#endif
6287int
6288main ()
6289{
6290/* The GNU C library defines this for functions which it implements
6291 to always fail with ENOSYS. Some functions are actually named
6292 something starting with __ and the normal name is an alias. */
6293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294choke me
6295#else
6296f = $ac_func;
6297#endif
6298
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303rm -f conftest.$ac_objext conftest$ac_exeext
6304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 eval "$as_ac_var=yes"
6316else
6317 echo "$as_me: failed program was:" >&5
6318cat conftest.$ac_ext >&5
6319eval "$as_ac_var=no"
6320fi
6321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322fi
6323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6325if test `eval echo '${'$as_ac_var'}'` = yes; then
6326 cat >>confdefs.h <<_ACEOF
6327@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6328_ACEOF
6329
6330else
6331 # strftime is in -lintl on SCO UNIX.
6332echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6333echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6334if test "${ac_cv_lib_intl_strftime+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 ac_check_lib_save_LIBS=$LIBS
6338LIBS="-lintl $LIBS"
6339cat >conftest.$ac_ext <<_ACEOF
6340#line $LINENO "configure"
6341#include "confdefs.h"
6342
6343/* Override any gcc2 internal prototype to avoid an error. */
6344#ifdef __cplusplus
6345extern "C"
6346#endif
6347/* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349char strftime ();
6350#ifdef F77_DUMMY_MAIN
6351# ifdef __cplusplus
6352 extern "C"
6353# endif
6354 int F77_DUMMY_MAIN() { return 1; }
6355#endif
6356int
6357main ()
6358{
6359strftime ();
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext conftest$ac_exeext
6365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_lib_intl_strftime=yes
6377else
6378 echo "$as_me: failed program was:" >&5
6379cat conftest.$ac_ext >&5
6380ac_cv_lib_intl_strftime=no
6381fi
6382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_check_lib_save_LIBS
6384fi
6385echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6386echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6387if test $ac_cv_lib_intl_strftime = yes; then
6388 cat >>confdefs.h <<\_ACEOF
6389@%:@define HAVE_STRFTIME 1
6390_ACEOF
6391
6392LIBS="-lintl $LIBS"
6393fi
6394
6395fi
6396done
6397
6398
6399# Check for ALTDIRFUNC glob() extension
6400echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6401echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6402cat >conftest.$ac_ext <<_ACEOF
6403#line $LINENO "configure"
6404#include "confdefs.h"
6405
6406 #include <glob.h>
6407 #ifdef GLOB_ALTDIRFUNC
6408 FOUNDIT
6409 #endif
6410
6411_ACEOF
6412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 egrep "FOUNDIT" >/dev/null 2>&1; then
6414
6415 cat >>confdefs.h <<\_ACEOF
6416@%:@define GLOB_HAS_ALTDIRFUNC 1
6417_ACEOF
6418
6419 echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421
6422else
6423
6424 echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426
6427
6428fi
6429rm -f conftest*
6430
6431
6432# Check for g.gl_matchc glob() extension
6433echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6434echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436#line $LINENO "configure"
6437#include "confdefs.h"
6438
6439 #include <glob.h>
6440 int main(void){glob_t g; g.gl_matchc = 1;}
6441
6442_ACEOF
6443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 egrep "FOUNDIT" >/dev/null 2>&1; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447@%:@define GLOB_HAS_GL_MATCHC 1
6448_ACEOF
6449
6450 echo "$as_me:$LINENO: result: yes" >&5
6451echo "${ECHO_T}yes" >&6
6452
6453else
6454
6455 echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
6457
6458
6459fi
6460rm -f conftest*
6461
6462
6463echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6464echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6465if test "$cross_compiling" = yes; then
6466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6467echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6468 { (exit 1); exit 1; }; }
6469else
6470 cat >conftest.$ac_ext <<_ACEOF
6471#line $LINENO "configure"
6472#include "confdefs.h"
6473
6474#include <sys/types.h>
6475#include <dirent.h>
6476int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6477
6478_ACEOF
6479rm -f conftest$ac_exeext
6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
6492else
6493 echo "$as_me: program exited with status $ac_status" >&5
6494echo "$as_me: failed program was:" >&5
6495cat conftest.$ac_ext >&5
6496( exit $ac_status )
6497
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 cat >>confdefs.h <<\_ACEOF
6501@%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6502_ACEOF
6503
6504
6505
6506fi
6507rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508fi
6509
6510# Check whether user wants S/Key support
6511SKEY_MSG="no"
6512
6513# Check whether --with-skey or --without-skey was given.
6514if test "${with_skey+set}" = set; then
6515 withval="$with_skey"
6516
6517 if test "x$withval" != "xno" ; then
6518
6519 if test "x$withval" != "xyes" ; then
6520 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6521 LDFLAGS="$LDFLAGS -L${withval}/lib"
6522 fi
6523
6524 cat >>confdefs.h <<\_ACEOF
6525@%:@define SKEY 1
6526_ACEOF
6527
6528 LIBS="-lskey $LIBS"
6529 SKEY_MSG="yes"
6530
6531 echo "$as_me:$LINENO: checking for s/key support" >&5
6532echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6535echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6536 { (exit 1); exit 1; }; }
6537else
6538 cat >conftest.$ac_ext <<_ACEOF
6539#line $LINENO "configure"
6540#include "confdefs.h"
6541
6542#include <stdio.h>
6543#include <skey.h>
6544int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6545
6546_ACEOF
6547rm -f conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559echo "${ECHO_T}yes" >&6
6560else
6561 echo "$as_me: program exited with status $ac_status" >&5
6562echo "$as_me: failed program was:" >&5
6563cat conftest.$ac_ext >&5
6564( exit $ac_status )
6565
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6569echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6570 { (exit 1); exit 1; }; }
6571
6572fi
6573rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6574fi
6575 fi
6576
6577
6578fi;
6579
6580# Check whether user wants TCP wrappers support
6581TCPW_MSG="no"
6582
6583# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6584if test "${with_tcp_wrappers+set}" = set; then
6585 withval="$with_tcp_wrappers"
6586
6587 if test "x$withval" != "xno" ; then
6588 saved_LIBS="$LIBS"
6589 saved_LDFLAGS="$LDFLAGS"
6590 saved_CPPFLAGS="$CPPFLAGS"
6591 if test -n "${withval}" -a "${withval}" != "yes"; then
6592 if test -d "${withval}/lib"; then
6593 if test -n "${need_dash_r}"; then
6594 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6595 else
6596 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6597 fi
6598 else
6599 if test -n "${need_dash_r}"; then
6600 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6601 else
6602 LDFLAGS="-L${withval} ${LDFLAGS}"
6603 fi
6604 fi
6605 if test -d "${withval}/include"; then
6606 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6607 else
6608 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6609 fi
6610 fi
6611 LIBWRAP="-lwrap"
6612 LIBS="$LIBWRAP $LIBS"
6613 echo "$as_me:$LINENO: checking for libwrap" >&5
6614echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616#line $LINENO "configure"
6617#include "confdefs.h"
6618
6619#include <tcpd.h>
6620 int deny_severity = 0, allow_severity = 0;
6621
6622#ifdef F77_DUMMY_MAIN
6623# ifdef __cplusplus
6624 extern "C"
6625# endif
6626 int F77_DUMMY_MAIN() { return 1; }
6627#endif
6628int
6629main ()
6630{
6631hosts_access(0);
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext conftest$ac_exeext
6637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648
6649 echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6
6651 cat >>confdefs.h <<\_ACEOF
6652@%:@define LIBWRAP 1
6653_ACEOF
6654
6655
6656 TCPW_MSG="yes"
6657
6658else
6659 echo "$as_me: failed program was:" >&5
6660cat conftest.$ac_ext >&5
6661
6662 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6663echo "$as_me: error: *** libwrap missing" >&2;}
6664 { (exit 1); exit 1; }; }
6665
6666
6667fi
6668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669 LIBS="$saved_LIBS"
6670 fi
6671
6672
6673fi;
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6744 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6745 getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\
6746 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6747 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6748 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6749 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6750 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6751 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6752 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6753 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
6754do
6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756echo "$as_me:$LINENO: checking for $ac_func" >&5
6757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762#line $LINENO "configure"
6763#include "confdefs.h"
6764/* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func (); below. */
6766#include <assert.h>
6767/* Override any gcc2 internal prototype to avoid an error. */
6768#ifdef __cplusplus
6769extern "C"
6770#endif
6771/* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773char $ac_func ();
6774char (*f) ();
6775
6776#ifdef F77_DUMMY_MAIN
6777# ifdef __cplusplus
6778 extern "C"
6779# endif
6780 int F77_DUMMY_MAIN() { return 1; }
6781#endif
6782int
6783main ()
6784{
6785/* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789choke me
6790#else
6791f = $ac_func;
6792#endif
6793
6794 ;
6795 return 0;
6796}
6797_ACEOF
6798rm -f conftest.$ac_objext conftest$ac_exeext
6799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 eval "$as_ac_var=yes"
6811else
6812 echo "$as_me: failed program was:" >&5
6813cat conftest.$ac_ext >&5
6814eval "$as_ac_var=no"
6815fi
6816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817fi
6818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6820if test `eval echo '${'$as_ac_var'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826done
6827
6828
6829
6830for ac_func in dirname
6831do
6832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833echo "$as_me:$LINENO: checking for $ac_func" >&5
6834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
6839#line $LINENO "configure"
6840#include "confdefs.h"
6841/* System header to define __stub macros and hopefully few prototypes,
6842 which can conflict with char $ac_func (); below. */
6843#include <assert.h>
6844/* Override any gcc2 internal prototype to avoid an error. */
6845#ifdef __cplusplus
6846extern "C"
6847#endif
6848/* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850char $ac_func ();
6851char (*f) ();
6852
6853#ifdef F77_DUMMY_MAIN
6854# ifdef __cplusplus
6855 extern "C"
6856# endif
6857 int F77_DUMMY_MAIN() { return 1; }
6858#endif
6859int
6860main ()
6861{
6862/* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866choke me
6867#else
6868f = $ac_func;
6869#endif
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6888else
6889 echo "$as_me: failed program was:" >&5
6890cat conftest.$ac_ext >&5
6891eval "$as_ac_var=no"
6892fi
6893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6894fi
6895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6900_ACEOF
6901
6902for ac_header in libgen.h
6903do
6904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6905if eval "test \"\${$as_ac_Header+set}\" = set"; then
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910fi
6911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6913else
6914 # Is the header compilable?
6915echo "$as_me:$LINENO: checking $ac_header usability" >&5
6916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6917cat >conftest.$ac_ext <<_ACEOF
6918#line $LINENO "configure"
6919#include "confdefs.h"
6920$ac_includes_default
6921@%:@include <$ac_header>
6922_ACEOF
6923rm -f conftest.$ac_objext
6924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_header_compiler=yes
6936else
6937 echo "$as_me: failed program was:" >&5
6938cat conftest.$ac_ext >&5
6939ac_header_compiler=no
6940fi
6941rm -f conftest.$ac_objext conftest.$ac_ext
6942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943echo "${ECHO_T}$ac_header_compiler" >&6
6944
6945# Is the header present?
6946echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948cat >conftest.$ac_ext <<_ACEOF
6949#line $LINENO "configure"
6950#include "confdefs.h"
6951@%:@include <$ac_header>
6952_ACEOF
6953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955 ac_status=$?
6956 egrep -v '^ *\+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } >/dev/null; then
6961 if test -s conftest.err; then
6962 ac_cpp_err=$ac_c_preproc_warn_flag
6963 else
6964 ac_cpp_err=
6965 fi
6966else
6967 ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6971else
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 ac_header_preproc=no
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978echo "${ECHO_T}$ac_header_preproc" >&6
6979
6980# So? What about this header?
6981case $ac_header_compiler:$ac_header_preproc in
6982 yes:no )
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6987 no:yes )
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6994esac
6995echo "$as_me:$LINENO: checking for $ac_header" >&5
6996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 eval "$as_ac_Header=$ac_header_preproc"
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004
7005fi
7006if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009_ACEOF
7010
7011fi
7012
7013done
7014
7015else
7016
7017 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7018echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7019if test "${ac_cv_lib_gen_dirname+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 ac_check_lib_save_LIBS=$LIBS
7023LIBS="-lgen $LIBS"
7024cat >conftest.$ac_ext <<_ACEOF
7025#line $LINENO "configure"
7026#include "confdefs.h"
7027
7028/* Override any gcc2 internal prototype to avoid an error. */
7029#ifdef __cplusplus
7030extern "C"
7031#endif
7032/* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034char dirname ();
7035#ifdef F77_DUMMY_MAIN
7036# ifdef __cplusplus
7037 extern "C"
7038# endif
7039 int F77_DUMMY_MAIN() { return 1; }
7040#endif
7041int
7042main ()
7043{
7044dirname ();
7045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
7050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_dirname=yes
7062else
7063 echo "$as_me: failed program was:" >&5
7064cat conftest.$ac_ext >&5
7065ac_cv_lib_gen_dirname=no
7066fi
7067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068LIBS=$ac_check_lib_save_LIBS
7069fi
7070echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7071echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7072if test $ac_cv_lib_gen_dirname = yes; then
7073
7074 echo "$as_me:$LINENO: checking for broken dirname" >&5
7075echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7076if test "${ac_cv_have_broken_dirname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079
7080 save_LIBS="$LIBS"
7081 LIBS="$LIBS -lgen"
7082 if test "$cross_compiling" = yes; then
7083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7084echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7085 { (exit 1); exit 1; }; }
7086else
7087 cat >conftest.$ac_ext <<_ACEOF
7088#line $LINENO "configure"
7089#include "confdefs.h"
7090
7091#include <libgen.h>
7092#include <string.h>
7093
7094int main(int argc, char **argv) {
7095 char *s, buf[32];
7096
7097 strncpy(buf,"/etc", 32);
7098 s = dirname(buf);
7099 if (!s || strncmp(s, "/", 32) != 0) {
7100 exit(1);
7101 } else {
7102 exit(0);
7103 }
7104}
7105
7106_ACEOF
7107rm -f conftest$ac_exeext
7108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_have_broken_dirname="no"
7119else
7120 echo "$as_me: program exited with status $ac_status" >&5
7121echo "$as_me: failed program was:" >&5
7122cat conftest.$ac_ext >&5
7123( exit $ac_status )
7124 ac_cv_have_broken_dirname="yes"
7125
7126fi
7127rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7128fi
7129 LIBS="$save_LIBS"
7130
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7133echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7134 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7135 LIBS="$LIBS -lgen"
7136 cat >>confdefs.h <<\_ACEOF
7137@%:@define HAVE_DIRNAME 1
7138_ACEOF
7139
7140
7141for ac_header in libgen.h
7142do
7143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo "$as_me:$LINENO: checking for $ac_header" >&5
7146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7147if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149fi
7150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7152else
7153 # Is the header compilable?
7154echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157#line $LINENO "configure"
7158#include "confdefs.h"
7159$ac_includes_default
7160@%:@include <$ac_header>
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_header_compiler=yes
7175else
7176 echo "$as_me: failed program was:" >&5
7177cat conftest.$ac_ext >&5
7178ac_header_compiler=no
7179fi
7180rm -f conftest.$ac_objext conftest.$ac_ext
7181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182echo "${ECHO_T}$ac_header_compiler" >&6
7183
7184# Is the header present?
7185echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187cat >conftest.$ac_ext <<_ACEOF
7188#line $LINENO "configure"
7189#include "confdefs.h"
7190@%:@include <$ac_header>
7191_ACEOF
7192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
7195 egrep -v '^ *\+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
7202 else
7203 ac_cpp_err=
7204 fi
7205else
7206 ac_cpp_err=yes
7207fi
7208if test -z "$ac_cpp_err"; then
7209 ac_header_preproc=yes
7210else
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_header_preproc=no
7214fi
7215rm -f conftest.err conftest.$ac_ext
7216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217echo "${ECHO_T}$ac_header_preproc" >&6
7218
7219# So? What about this header?
7220case $ac_header_compiler:$ac_header_preproc in
7221 yes:no )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7226 no:yes )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7233esac
7234echo "$as_me:$LINENO: checking for $ac_header" >&5
7235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7236if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 eval "$as_ac_Header=$ac_header_preproc"
7240fi
7241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243
7244fi
7245if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248_ACEOF
7249
7250fi
7251
7252done
7253
7254 fi
7255
7256fi
7257
7258
7259fi
7260done
7261
7262
7263
7264
7265for ac_func in gettimeofday time
7266do
7267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7268echo "$as_me:$LINENO: checking for $ac_func" >&5
7269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7270if eval "test \"\${$as_ac_var+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 cat >conftest.$ac_ext <<_ACEOF
7274#line $LINENO "configure"
7275#include "confdefs.h"
7276/* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func (); below. */
7278#include <assert.h>
7279/* Override any gcc2 internal prototype to avoid an error. */
7280#ifdef __cplusplus
7281extern "C"
7282#endif
7283/* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7285char $ac_func ();
7286char (*f) ();
7287
7288#ifdef F77_DUMMY_MAIN
7289# ifdef __cplusplus
7290 extern "C"
7291# endif
7292 int F77_DUMMY_MAIN() { return 1; }
7293#endif
7294int
7295main ()
7296{
7297/* The GNU C library defines this for functions which it implements
7298 to always fail with ENOSYS. Some functions are actually named
7299 something starting with __ and the normal name is an alias. */
7300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7301choke me
7302#else
7303f = $ac_func;
7304#endif
7305
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310rm -f conftest.$ac_objext conftest$ac_exeext
7311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7323else
7324 echo "$as_me: failed program was:" >&5
7325cat conftest.$ac_ext >&5
7326eval "$as_ac_var=no"
7327fi
7328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7329fi
7330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7332if test `eval echo '${'$as_ac_var'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7335_ACEOF
7336
7337fi
7338done
7339
7340
7341
7342
7343
7344
7345
7346for ac_func in endutent getutent getutid getutline pututline setutent
7347do
7348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349echo "$as_me:$LINENO: checking for $ac_func" >&5
7350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7351if eval "test \"\${$as_ac_var+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 cat >conftest.$ac_ext <<_ACEOF
7355#line $LINENO "configure"
7356#include "confdefs.h"
7357/* System header to define __stub macros and hopefully few prototypes,
7358 which can conflict with char $ac_func (); below. */
7359#include <assert.h>
7360/* Override any gcc2 internal prototype to avoid an error. */
7361#ifdef __cplusplus
7362extern "C"
7363#endif
7364/* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366char $ac_func ();
7367char (*f) ();
7368
7369#ifdef F77_DUMMY_MAIN
7370# ifdef __cplusplus
7371 extern "C"
7372# endif
7373 int F77_DUMMY_MAIN() { return 1; }
7374#endif
7375int
7376main ()
7377{
7378/* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7382choke me
7383#else
7384f = $ac_func;
7385#endif
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext conftest$ac_exeext
7392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7404else
7405 echo "$as_me: failed program was:" >&5
7406cat conftest.$ac_ext >&5
7407eval "$as_ac_var=no"
7408fi
7409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410fi
7411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7413if test `eval echo '${'$as_ac_var'}'` = yes; then
7414 cat >>confdefs.h <<_ACEOF
7415@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7416_ACEOF
7417
7418fi
7419done
7420
7421
7422for ac_func in utmpname
7423do
7424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425echo "$as_me:$LINENO: checking for $ac_func" >&5
7426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7427if eval "test \"\${$as_ac_var+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 cat >conftest.$ac_ext <<_ACEOF
7431#line $LINENO "configure"
7432#include "confdefs.h"
7433/* System header to define __stub macros and hopefully few prototypes,
7434 which can conflict with char $ac_func (); below. */
7435#include <assert.h>
7436/* Override any gcc2 internal prototype to avoid an error. */
7437#ifdef __cplusplus
7438extern "C"
7439#endif
7440/* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7442char $ac_func ();
7443char (*f) ();
7444
7445#ifdef F77_DUMMY_MAIN
7446# ifdef __cplusplus
7447 extern "C"
7448# endif
7449 int F77_DUMMY_MAIN() { return 1; }
7450#endif
7451int
7452main ()
7453{
7454/* The GNU C library defines this for functions which it implements
7455 to always fail with ENOSYS. Some functions are actually named
7456 something starting with __ and the normal name is an alias. */
7457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7458choke me
7459#else
7460f = $ac_func;
7461#endif
7462
7463 ;
7464 return 0;
7465}
7466_ACEOF
7467rm -f conftest.$ac_objext conftest$ac_exeext
7468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 eval "$as_ac_var=yes"
7480else
7481 echo "$as_me: failed program was:" >&5
7482cat conftest.$ac_ext >&5
7483eval "$as_ac_var=no"
7484fi
7485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486fi
7487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7489if test `eval echo '${'$as_ac_var'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7492_ACEOF
7493
7494fi
7495done
7496
7497
7498
7499
7500
7501
7502for ac_func in endutxent getutxent getutxid getutxline pututxline
7503do
7504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505echo "$as_me:$LINENO: checking for $ac_func" >&5
7506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7507if eval "test \"\${$as_ac_var+set}\" = set"; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 cat >conftest.$ac_ext <<_ACEOF
7511#line $LINENO "configure"
7512#include "confdefs.h"
7513/* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char $ac_func (); below. */
7515#include <assert.h>
7516/* Override any gcc2 internal prototype to avoid an error. */
7517#ifdef __cplusplus
7518extern "C"
7519#endif
7520/* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7522char $ac_func ();
7523char (*f) ();
7524
7525#ifdef F77_DUMMY_MAIN
7526# ifdef __cplusplus
7527 extern "C"
7528# endif
7529 int F77_DUMMY_MAIN() { return 1; }
7530#endif
7531int
7532main ()
7533{
7534/* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538choke me
7539#else
7540f = $ac_func;
7541#endif
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 eval "$as_ac_var=yes"
7560else
7561 echo "$as_me: failed program was:" >&5
7562cat conftest.$ac_ext >&5
7563eval "$as_ac_var=no"
7564fi
7565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7566fi
7567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7569if test `eval echo '${'$as_ac_var'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575done
7576
7577
7578
7579for ac_func in setutxent utmpxname
7580do
7581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7582echo "$as_me:$LINENO: checking for $ac_func" >&5
7583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7584if eval "test \"\${$as_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 cat >conftest.$ac_ext <<_ACEOF
7588#line $LINENO "configure"
7589#include "confdefs.h"
7590/* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func (); below. */
7592#include <assert.h>
7593/* Override any gcc2 internal prototype to avoid an error. */
7594#ifdef __cplusplus
7595extern "C"
7596#endif
7597/* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599char $ac_func ();
7600char (*f) ();
7601
7602#ifdef F77_DUMMY_MAIN
7603# ifdef __cplusplus
7604 extern "C"
7605# endif
7606 int F77_DUMMY_MAIN() { return 1; }
7607#endif
7608int
7609main ()
7610{
7611/* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7615choke me
7616#else
7617f = $ac_func;
7618#endif
7619
7620 ;
7621 return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext conftest$ac_exeext
7625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 eval "$as_ac_var=yes"
7637else
7638 echo "$as_me: failed program was:" >&5
7639cat conftest.$ac_ext >&5
7640eval "$as_ac_var=no"
7641fi
7642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643fi
7644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7646if test `eval echo '${'$as_ac_var'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652done
7653
7654
7655echo "$as_me:$LINENO: checking for daemon" >&5
7656echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7657if test "${ac_cv_func_daemon+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 cat >conftest.$ac_ext <<_ACEOF
7661#line $LINENO "configure"
7662#include "confdefs.h"
7663/* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char daemon (); below. */
7665#include <assert.h>
7666/* Override any gcc2 internal prototype to avoid an error. */
7667#ifdef __cplusplus
7668extern "C"
7669#endif
7670/* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672char daemon ();
7673char (*f) ();
7674
7675#ifdef F77_DUMMY_MAIN
7676# ifdef __cplusplus
7677 extern "C"
7678# endif
7679 int F77_DUMMY_MAIN() { return 1; }
7680#endif
7681int
7682main ()
7683{
7684/* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687#if defined (__stub_daemon) || defined (__stub___daemon)
7688choke me
7689#else
7690f = daemon;
7691#endif
7692
7693 ;
7694 return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext conftest$ac_exeext
7698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_func_daemon=yes
7710else
7711 echo "$as_me: failed program was:" >&5
7712cat conftest.$ac_ext >&5
7713ac_cv_func_daemon=no
7714fi
7715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716fi
7717echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7718echo "${ECHO_T}$ac_cv_func_daemon" >&6
7719if test $ac_cv_func_daemon = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721@%:@define HAVE_DAEMON 1
7722_ACEOF
7723
7724else
7725 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7726echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7727if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 ac_check_lib_save_LIBS=$LIBS
7731LIBS="-lbsd $LIBS"
7732cat >conftest.$ac_ext <<_ACEOF
7733#line $LINENO "configure"
7734#include "confdefs.h"
7735
7736/* Override any gcc2 internal prototype to avoid an error. */
7737#ifdef __cplusplus
7738extern "C"
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char daemon ();
7743#ifdef F77_DUMMY_MAIN
7744# ifdef __cplusplus
7745 extern "C"
7746# endif
7747 int F77_DUMMY_MAIN() { return 1; }
7748#endif
7749int
7750main ()
7751{
7752daemon ();
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_lib_bsd_daemon=yes
7770else
7771 echo "$as_me: failed program was:" >&5
7772cat conftest.$ac_ext >&5
7773ac_cv_lib_bsd_daemon=no
7774fi
7775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7779echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7780if test $ac_cv_lib_bsd_daemon = yes; then
7781 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7782@%:@define HAVE_DAEMON 1
7783_ACEOF
7784
7785fi
7786
7787
7788fi
7789
7790
7791echo "$as_me:$LINENO: checking for getpagesize" >&5
7792echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7793if test "${ac_cv_func_getpagesize+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797#line $LINENO "configure"
7798#include "confdefs.h"
7799/* System header to define __stub macros and hopefully few prototypes,
7800 which can conflict with char getpagesize (); below. */
7801#include <assert.h>
7802/* Override any gcc2 internal prototype to avoid an error. */
7803#ifdef __cplusplus
7804extern "C"
7805#endif
7806/* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808char getpagesize ();
7809char (*f) ();
7810
7811#ifdef F77_DUMMY_MAIN
7812# ifdef __cplusplus
7813 extern "C"
7814# endif
7815 int F77_DUMMY_MAIN() { return 1; }
7816#endif
7817int
7818main ()
7819{
7820/* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7824choke me
7825#else
7826f = getpagesize;
7827#endif
7828
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_getpagesize=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848cat conftest.$ac_ext >&5
7849ac_cv_func_getpagesize=no
7850fi
7851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852fi
7853echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7854echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7855if test $ac_cv_func_getpagesize = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857@%:@define HAVE_GETPAGESIZE 1
7858_ACEOF
7859
7860else
7861 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7862echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7863if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lucb $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
7870#include "confdefs.h"
7871
7872/* Override any gcc2 internal prototype to avoid an error. */
7873#ifdef __cplusplus
7874extern "C"
7875#endif
7876/* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878char getpagesize ();
7879#ifdef F77_DUMMY_MAIN
7880# ifdef __cplusplus
7881 extern "C"
7882# endif
7883 int F77_DUMMY_MAIN() { return 1; }
7884#endif
7885int
7886main ()
7887{
7888getpagesize ();
7889 ;
7890 return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext conftest$ac_exeext
7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_ucb_getpagesize=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908cat conftest.$ac_ext >&5
7909ac_cv_lib_ucb_getpagesize=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7915echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7916if test $ac_cv_lib_ucb_getpagesize = yes; then
7917 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7918@%:@define HAVE_GETPAGESIZE 1
7919_ACEOF
7920
7921fi
7922
7923
7924fi
7925
7926
7927# Check for broken snprintf
7928if test "x$ac_cv_func_snprintf" = "xyes" ; then
7929 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7930echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7931 if test "$cross_compiling" = yes; then
7932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7933echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7934 { (exit 1); exit 1; }; }
7935else
7936 cat >conftest.$ac_ext <<_ACEOF
7937#line $LINENO "configure"
7938#include "confdefs.h"
7939
7940#include <stdio.h>
7941int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
7942
7943_ACEOF
7944rm -f conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
7957else
7958 echo "$as_me: program exited with status $ac_status" >&5
7959echo "$as_me: failed program was:" >&5
7960cat conftest.$ac_ext >&5
7961( exit $ac_status )
7962
7963 echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
7965 cat >>confdefs.h <<\_ACEOF
7966@%:@define BROKEN_SNPRINTF 1
7967_ACEOF
7968
7969 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7970echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7971
7972
7973fi
7974rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975fi
7976fi
7977
7978echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7979echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7980if test "${ac_cv_func_getpgrp_void+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 # Use it with a single arg.
7984cat >conftest.$ac_ext <<_ACEOF
7985#line $LINENO "configure"
7986#include "confdefs.h"
7987$ac_includes_default
7988#ifdef F77_DUMMY_MAIN
7989# ifdef __cplusplus
7990 extern "C"
7991# endif
7992 int F77_DUMMY_MAIN() { return 1; }
7993#endif
7994int
7995main ()
7996{
7997getpgrp (0);
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_func_getpgrp_void=no
8015else
8016 echo "$as_me: failed program was:" >&5
8017cat conftest.$ac_ext >&5
8018ac_cv_func_getpgrp_void=yes
8019fi
8020rm -f conftest.$ac_objext conftest.$ac_ext
8021
8022fi
8023echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8024echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8025if test $ac_cv_func_getpgrp_void = yes; then
8026
8027cat >>confdefs.h <<\_ACEOF
8028@%:@define GETPGRP_VOID 1
8029_ACEOF
8030
8031fi
8032
8033
8034# Check for PAM libs
8035PAM_MSG="no"
8036
8037# Check whether --with-pam or --without-pam was given.
8038if test "${with_pam+set}" = set; then
8039 withval="$with_pam"
8040
8041 if test "x$withval" != "xno" ; then
8042 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
8043 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
8044echo "$as_me: error: PAM headers not found" >&2;}
8045 { (exit 1); exit 1; }; }
8046 fi
8047
8048
8049echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 ac_check_lib_save_LIBS=$LIBS
8055LIBS="-ldl $LIBS"
8056cat >conftest.$ac_ext <<_ACEOF
8057#line $LINENO "configure"
8058#include "confdefs.h"
8059
8060/* Override any gcc2 internal prototype to avoid an error. */
8061#ifdef __cplusplus
8062extern "C"
8063#endif
8064/* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8066char dlopen ();
8067#ifdef F77_DUMMY_MAIN
8068# ifdef __cplusplus
8069 extern "C"
8070# endif
8071 int F77_DUMMY_MAIN() { return 1; }
8072#endif
8073int
8074main ()
8075{
8076dlopen ();
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_dl_dlopen=yes
8094else
8095 echo "$as_me: failed program was:" >&5
8096cat conftest.$ac_ext >&5
8097ac_cv_lib_dl_dlopen=no
8098fi
8099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100LIBS=$ac_check_lib_save_LIBS
8101fi
8102echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8103echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8104if test $ac_cv_lib_dl_dlopen = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106@%:@define HAVE_LIBDL 1
8107_ACEOF
8108
8109 LIBS="-ldl $LIBS"
8110
8111fi
8112
8113
8114echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
8115echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8116if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 ac_check_lib_save_LIBS=$LIBS
8120LIBS="-lpam $LIBS"
8121cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
8123#include "confdefs.h"
8124
8125/* Override any gcc2 internal prototype to avoid an error. */
8126#ifdef __cplusplus
8127extern "C"
8128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char pam_set_item ();
8132#ifdef F77_DUMMY_MAIN
8133# ifdef __cplusplus
8134 extern "C"
8135# endif
8136 int F77_DUMMY_MAIN() { return 1; }
8137#endif
8138int
8139main ()
8140{
8141pam_set_item ();
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext conftest$ac_exeext
8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_lib_pam_pam_set_item=yes
8159else
8160 echo "$as_me: failed program was:" >&5
8161cat conftest.$ac_ext >&5
8162ac_cv_lib_pam_pam_set_item=no
8163fi
8164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165LIBS=$ac_check_lib_save_LIBS
8166fi
8167echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
8168echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8169if test $ac_cv_lib_pam_pam_set_item = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171@%:@define HAVE_LIBPAM 1
8172_ACEOF
8173
8174 LIBS="-lpam $LIBS"
8175
8176else
8177 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8178echo "$as_me: error: *** libpam missing" >&2;}
8179 { (exit 1); exit 1; }; }
8180fi
8181
8182
8183for ac_func in pam_getenvlist
8184do
8185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186echo "$as_me:$LINENO: checking for $ac_func" >&5
8187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8188if eval "test \"\${$as_ac_var+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 cat >conftest.$ac_ext <<_ACEOF
8192#line $LINENO "configure"
8193#include "confdefs.h"
8194/* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func (); below. */
8196#include <assert.h>
8197/* Override any gcc2 internal prototype to avoid an error. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201/* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203char $ac_func ();
8204char (*f) ();
8205
8206#ifdef F77_DUMMY_MAIN
8207# ifdef __cplusplus
8208 extern "C"
8209# endif
8210 int F77_DUMMY_MAIN() { return 1; }
8211#endif
8212int
8213main ()
8214{
8215/* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219choke me
8220#else
8221f = $ac_func;
8222#endif
8223
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 eval "$as_ac_var=yes"
8241else
8242 echo "$as_me: failed program was:" >&5
8243cat conftest.$ac_ext >&5
8244eval "$as_ac_var=no"
8245fi
8246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247fi
8248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8250if test `eval echo '${'$as_ac_var'}'` = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8253_ACEOF
8254
8255fi
8256done
8257
8258
8259 disable_shadow=yes
8260 PAM_MSG="yes"
8261
8262 cat >>confdefs.h <<\_ACEOF
8263@%:@define USE_PAM 1
8264_ACEOF
8265
8266 if test $ac_cv_lib_dl_dlopen = yes; then
8267 LIBPAM="-lpam -ldl"
8268 else
8269 LIBPAM="-lpam"
8270 fi
8271
8272 fi
8273
8274
8275fi;
8276
8277# Check for older PAM
8278if test "x$PAM_MSG" = "xyes" ; then
8279 # Check PAM strerror arguments (old PAM)
8280 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8281echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8283#line $LINENO "configure"
8284#include "confdefs.h"
8285
8286#include <stdlib.h>
8287#include <security/pam_appl.h>
8288
8289#ifdef F77_DUMMY_MAIN
8290# ifdef __cplusplus
8291 extern "C"
8292# endif
8293 int F77_DUMMY_MAIN() { return 1; }
8294#endif
8295int
8296main ()
8297{
8298(void)pam_strerror((pam_handle_t *)NULL, -1);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext
8304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317else
8318 echo "$as_me: failed program was:" >&5
8319cat conftest.$ac_ext >&5
8320
8321 cat >>confdefs.h <<\_ACEOF
8322@%:@define HAVE_OLD_PAM 1
8323_ACEOF
8324
8325 echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327 PAM_MSG="yes (old library)"
8328
8329
8330fi
8331rm -f conftest.$ac_objext conftest.$ac_ext
8332fi
8333
8334# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8335# because the system crypt() is more featureful.
8336if test "x$check_for_libcrypt_before" = "x1"; then
8337
8338echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8339echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8340if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343 ac_check_lib_save_LIBS=$LIBS
8344LIBS="-lcrypt $LIBS"
8345cat >conftest.$ac_ext <<_ACEOF
8346#line $LINENO "configure"
8347#include "confdefs.h"
8348
8349/* Override any gcc2 internal prototype to avoid an error. */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353/* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8355char crypt ();
8356#ifdef F77_DUMMY_MAIN
8357# ifdef __cplusplus
8358 extern "C"
8359# endif
8360 int F77_DUMMY_MAIN() { return 1; }
8361#endif
8362int
8363main ()
8364{
8365crypt ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_crypt_crypt=yes
8383else
8384 echo "$as_me: failed program was:" >&5
8385cat conftest.$ac_ext >&5
8386ac_cv_lib_crypt_crypt=no
8387fi
8388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8392echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8393if test $ac_cv_lib_crypt_crypt = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395@%:@define HAVE_LIBCRYPT 1
8396_ACEOF
8397
8398 LIBS="-lcrypt $LIBS"
8399
8400fi
8401
8402fi
8403
8404# Search for OpenSSL
8405saved_CPPFLAGS="$CPPFLAGS"
8406saved_LDFLAGS="$LDFLAGS"
8407
8408# Check whether --with-ssl-dir or --without-ssl-dir was given.
8409if test "${with_ssl_dir+set}" = set; then
8410 withval="$with_ssl_dir"
8411
8412 if test "x$withval" != "xno" ; then
8413 if test -d "$withval/lib"; then
8414 if test -n "${need_dash_r}"; then
8415 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8416 else
8417 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8418 fi
8419 else
8420 if test -n "${need_dash_r}"; then
8421 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8422 else
8423 LDFLAGS="-L${withval} ${LDFLAGS}"
8424 fi
8425 fi
8426 if test -d "$withval/include"; then
8427 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8428 else
8429 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8430 fi
8431 fi
8432
8433
8434fi;
8435LIBS="$LIBS -lcrypto"
8436cat >conftest.$ac_ext <<_ACEOF
8437#line $LINENO "configure"
8438#include "confdefs.h"
8439
8440/* Override any gcc2 internal prototype to avoid an error. */
8441#ifdef __cplusplus
8442extern "C"
8443#endif
8444/* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446char RAND_add ();
8447#ifdef F77_DUMMY_MAIN
8448# ifdef __cplusplus
8449 extern "C"
8450# endif
8451 int F77_DUMMY_MAIN() { return 1; }
8452#endif
8453int
8454main ()
8455{
8456RAND_add ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 cat >>confdefs.h <<\_ACEOF
8474@%:@define HAVE_OPENSSL 1
8475_ACEOF
8476
8477else
8478 echo "$as_me: failed program was:" >&5
8479cat conftest.$ac_ext >&5
8480
8481 if test -n "${need_dash_r}"; then
8482 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8483 else
8484 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8485 fi
8486 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8487 cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
8489#include "confdefs.h"
8490
8491/* Override any gcc2 internal prototype to avoid an error. */
8492#ifdef __cplusplus
8493extern "C"
8494#endif
8495/* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497char RAND_add ();
8498#ifdef F77_DUMMY_MAIN
8499# ifdef __cplusplus
8500 extern "C"
8501# endif
8502 int F77_DUMMY_MAIN() { return 1; }
8503#endif
8504int
8505main ()
8506{
8507RAND_add ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 cat >>confdefs.h <<\_ACEOF
8525@%:@define HAVE_OPENSSL 1
8526_ACEOF
8527
8528else
8529 echo "$as_me: failed program was:" >&5
8530cat conftest.$ac_ext >&5
8531
8532 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8533echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8534 { (exit 1); exit 1; }; }
8535
8536
8537fi
8538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539
8540
8541fi
8542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8543
8544# Determine OpenSSL header version
8545echo "$as_me:$LINENO: checking OpenSSL header version" >&5
8546echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8547if test "$cross_compiling" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8549echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8550 { (exit 1); exit 1; }; }
8551else
8552 cat >conftest.$ac_ext <<_ACEOF
8553#line $LINENO "configure"
8554#include "confdefs.h"
8555
8556#include <stdio.h>
8557#include <string.h>
8558#include <openssl/opensslv.h>
8559#define DATA "conftest.sslincver"
8560int main(void) {
8561 FILE *fd;
8562 int rc;
8563
8564 fd = fopen(DATA,"w");
8565 if(fd == NULL)
8566 exit(1);
8567
8568 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8569 exit(1);
8570
8571 exit(0);
8572}
8573
8574_ACEOF
8575rm -f conftest$ac_exeext
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586
8587 ssl_header_ver=`cat conftest.sslincver`
8588 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
8589echo "${ECHO_T}$ssl_header_ver" >&6
8590
8591else
8592 echo "$as_me: program exited with status $ac_status" >&5
8593echo "$as_me: failed program was:" >&5
8594cat conftest.$ac_ext >&5
8595( exit $ac_status )
8596
8597 echo "$as_me:$LINENO: result: not found" >&5
8598echo "${ECHO_T}not found" >&6
8599 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
8600echo "$as_me: error: OpenSSL version header not found." >&2;}
8601 { (exit 1); exit 1; }; }
8602
8603
8604fi
8605rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8606fi
8607
8608# Determine OpenSSL library version
8609echo "$as_me:$LINENO: checking OpenSSL library version" >&5
8610echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8611if test "$cross_compiling" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8613echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8614 { (exit 1); exit 1; }; }
8615else
8616 cat >conftest.$ac_ext <<_ACEOF
8617#line $LINENO "configure"
8618#include "confdefs.h"
8619
8620#include <stdio.h>
8621#include <string.h>
8622#include <openssl/opensslv.h>
8623#include <openssl/crypto.h>
8624#define DATA "conftest.ssllibver"
8625int main(void) {
8626 FILE *fd;
8627 int rc;
8628
8629 fd = fopen(DATA,"w");
8630 if(fd == NULL)
8631 exit(1);
8632
8633 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
8634 exit(1);
8635
8636 exit(0);
8637}
8638
8639_ACEOF
8640rm -f conftest$ac_exeext
8641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651
8652 ssl_library_ver=`cat conftest.ssllibver`
8653 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
8654echo "${ECHO_T}$ssl_library_ver" >&6
8655
8656else
8657 echo "$as_me: program exited with status $ac_status" >&5
8658echo "$as_me: failed program was:" >&5
8659cat conftest.$ac_ext >&5
8660( exit $ac_status )
8661
8662 echo "$as_me:$LINENO: result: not found" >&5
8663echo "${ECHO_T}not found" >&6
8664 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
8665echo "$as_me: error: OpenSSL library not found." >&2;}
8666 { (exit 1); exit 1; }; }
8667
8668
8669fi
8670rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8671fi
8672
8673# Sanity check OpenSSL headers
8674echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8675echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8676if test "$cross_compiling" = yes; then
8677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8678echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8679 { (exit 1); exit 1; }; }
8680else
8681 cat >conftest.$ac_ext <<_ACEOF
8682#line $LINENO "configure"
8683#include "confdefs.h"
8684
8685#include <string.h>
8686#include <openssl/opensslv.h>
8687int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8688
8689_ACEOF
8690rm -f conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701
8702 echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704
8705else
8706 echo "$as_me: program exited with status $ac_status" >&5
8707echo "$as_me: failed program was:" >&5
8708cat conftest.$ac_ext >&5
8709( exit $ac_status )
8710
8711 echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
8713 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8714echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8715 { (exit 1); exit 1; }; }
8716
8717
8718fi
8719rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8720fi
8721
8722# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8723# version in OpenSSL. Skip this for PAM
8724if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8725 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8726echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8727if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 ac_check_lib_save_LIBS=$LIBS
8731LIBS="-lcrypt $LIBS"
8732cat >conftest.$ac_ext <<_ACEOF
8733#line $LINENO "configure"
8734#include "confdefs.h"
8735
8736/* Override any gcc2 internal prototype to avoid an error. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742char crypt ();
8743#ifdef F77_DUMMY_MAIN
8744# ifdef __cplusplus
8745 extern "C"
8746# endif
8747 int F77_DUMMY_MAIN() { return 1; }
8748#endif
8749int
8750main ()
8751{
8752crypt ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_crypt_crypt=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772cat conftest.$ac_ext >&5
8773ac_cv_lib_crypt_crypt=no
8774fi
8775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776LIBS=$ac_check_lib_save_LIBS
8777fi
8778echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8779echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8780if test $ac_cv_lib_crypt_crypt = yes; then
8781 LIBS="$LIBS -lcrypt"
8782fi
8783
8784fi
8785
8786
8787### Configure cryptographic random number support
8788
8789# Check wheter OpenSSL seeds itself
8790echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8791echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8792if test "$cross_compiling" = yes; then
8793 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8794echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8795 { (exit 1); exit 1; }; }
8796else
8797 cat >conftest.$ac_ext <<_ACEOF
8798#line $LINENO "configure"
8799#include "confdefs.h"
8800
8801#include <string.h>
8802#include <openssl/rand.h>
8803int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
8804
8805_ACEOF
8806rm -f conftest$ac_exeext
8807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817
8818 OPENSSL_SEEDS_ITSELF=yes
8819 echo "$as_me:$LINENO: result: yes" >&5
8820echo "${ECHO_T}yes" >&6
8821
8822else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824echo "$as_me: failed program was:" >&5
8825cat conftest.$ac_ext >&5
8826( exit $ac_status )
8827
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830 # Default to use of the rand helper if OpenSSL doesn't
8831 # seed itself
8832 USE_RAND_HELPER=yes
8833
8834
8835fi
8836rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837fi
8838
8839
8840# Do we want to force the use of the rand helper?
8841
8842# Check whether --with-rand-helper or --without-rand-helper was given.
8843if test "${with_rand_helper+set}" = set; then
8844 withval="$with_rand_helper"
8845
8846 if test "x$withval" = "xno" ; then
8847 # Force use of OpenSSL's internal RNG, even if
8848 # the previous test showed it to be unseeded.
8849 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8850 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8851echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8852 OPENSSL_SEEDS_ITSELF=yes
8853 USE_RAND_HELPER=""
8854 fi
8855 else
8856 USE_RAND_HELPER=yes
8857 fi
8858
8859fi;
8860
8861# Which randomness source do we use?
8862if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8863 # OpenSSL only
8864 cat >>confdefs.h <<\_ACEOF
8865@%:@define OPENSSL_PRNG_ONLY 1
8866_ACEOF
8867
8868 RAND_MSG="OpenSSL internal ONLY"
8869 INSTALL_SSH_RAND_HELPER=""
8870elif test ! -z "$USE_RAND_HELPER" ; then
8871 # install rand helper
8872 RAND_MSG="ssh-rand-helper"
8873 INSTALL_SSH_RAND_HELPER="yes"
8874fi
8875
8876
8877### Configuration of ssh-rand-helper
8878
8879# PRNGD TCP socket
8880
8881# Check whether --with-prngd-port or --without-prngd-port was given.
8882if test "${with_prngd_port+set}" = set; then
8883 withval="$with_prngd_port"
8884
8885 case "$withval" in
8886 no)
8887 withval=""
8888 ;;
8889 [0-9]*)
8890 ;;
8891 *)
8892 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8893echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8894 { (exit 1); exit 1; }; }
8895 ;;
8896 esac
8897 if test ! -z "$withval" ; then
8898 PRNGD_PORT="$withval"
8899 cat >>confdefs.h <<_ACEOF
8900@%:@define PRNGD_PORT $PRNGD_PORT
8901_ACEOF
8902
8903 fi
8904
8905
8906fi;
8907
8908# PRNGD Unix domain socket
8909
8910# Check whether --with-prngd-socket or --without-prngd-socket was given.
8911if test "${with_prngd_socket+set}" = set; then
8912 withval="$with_prngd_socket"
8913
8914 case "$withval" in
8915 yes)
8916 withval="/var/run/egd-pool"
8917 ;;
8918 no)
8919 withval=""
8920 ;;
8921 /*)
8922 ;;
8923 *)
8924 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8925echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8926 { (exit 1); exit 1; }; }
8927 ;;
8928 esac
8929
8930 if test ! -z "$withval" ; then
8931 if test ! -z "$PRNGD_PORT" ; then
8932 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8933echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8934 { (exit 1); exit 1; }; }
8935 fi
8936 if test ! -r "$withval" ; then
8937 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8938echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8939 fi
8940 PRNGD_SOCKET="$withval"
8941 cat >>confdefs.h <<_ACEOF
8942@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8943_ACEOF
8944
8945 fi
8946
8947else
8948
8949 # Check for existing socket only if we don't have a random device already
8950 if test "$USE_RAND_HELPER" = yes ; then
8951 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8952echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8953 # Insert other locations here
8954 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8955 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8956 PRNGD_SOCKET="$sock"
8957 cat >>confdefs.h <<_ACEOF
8958@%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
8959_ACEOF
8960
8961 break;
8962 fi
8963 done
8964 if test ! -z "$PRNGD_SOCKET" ; then
8965 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8966echo "${ECHO_T}$PRNGD_SOCKET" >&6
8967 else
8968 echo "$as_me:$LINENO: result: not found" >&5
8969echo "${ECHO_T}not found" >&6
8970 fi
8971 fi
8972
8973
8974fi;
8975
8976# Change default command timeout for hashing entropy source
8977entropy_timeout=200
8978
8979# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8980if test "${with_entropy_timeout+set}" = set; then
8981 withval="$with_entropy_timeout"
8982
8983 if test "x$withval" != "xno" ; then
8984 entropy_timeout=$withval
8985 fi
8986
8987
8988fi;
8989cat >>confdefs.h <<_ACEOF
8990@%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8991_ACEOF
8992
8993
8994SSH_PRIVSEP_USER=sshd
8995
8996# Check whether --with-privsep-user or --without-privsep-user was given.
8997if test "${with_privsep_user+set}" = set; then
8998 withval="$with_privsep_user"
8999
9000 if test -n "$withval"; then
9001 SSH_PRIVSEP_USER=$withval
9002 fi
9003
9004
9005fi;
9006cat >>confdefs.h <<_ACEOF
9007@%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9008_ACEOF
9009
9010
9011
9012# We do this little dance with the search path to insure
9013# that programs that we select for use by installed programs
9014# (which may be run by the super-user) come from trusted
9015# locations before they come from the user's private area.
9016# This should help avoid accidentally configuring some
9017# random version of a program in someone's personal bin.
9018
9019OPATH=$PATH
9020PATH=/bin:/usr/bin
9021test -h /bin 2> /dev/null && PATH=/usr/bin
9022test -d /sbin && PATH=$PATH:/sbin
9023test -d /usr/sbin && PATH=$PATH:/usr/sbin
9024PATH=$PATH:/etc:$OPATH
9025
9026# These programs are used by the command hashing source to gather entropy
9027
9028 # Extract the first word of "ls", so it can be a program name with args.
9029set dummy ls; ac_word=$2
9030echo "$as_me:$LINENO: checking for $ac_word" >&5
9031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9032if test "${ac_cv_path_PROG_LS+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035 case $PROG_LS in
9036 [\\/]* | ?:[\\/]*)
9037 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9038 ;;
9039 *)
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
9048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9050 fi
9051done
9052done
9053
9054 ;;
9055esac
9056fi
9057PROG_LS=$ac_cv_path_PROG_LS
9058
9059if test -n "$PROG_LS"; then
9060 echo "$as_me:$LINENO: result: $PROG_LS" >&5
9061echo "${ECHO_T}$PROG_LS" >&6
9062else
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065fi
9066
9067 if test -z "$PROG_LS" ; then
9068 PROG_LS="undef"
9069 fi
9070
9071
9072
9073 # Extract the first word of "netstat", so it can be a program name with args.
9074set dummy netstat; ac_word=$2
9075echo "$as_me:$LINENO: checking for $ac_word" >&5
9076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 case $PROG_NETSTAT in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097done
9098
9099 ;;
9100esac
9101fi
9102PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9103
9104if test -n "$PROG_NETSTAT"; then
9105 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
9106echo "${ECHO_T}$PROG_NETSTAT" >&6
9107else
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110fi
9111
9112 if test -z "$PROG_NETSTAT" ; then
9113 PROG_NETSTAT="undef"
9114 fi
9115
9116
9117
9118 # Extract the first word of "arp", so it can be a program name with args.
9119set dummy arp; ac_word=$2
9120echo "$as_me:$LINENO: checking for $ac_word" >&5
9121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122if test "${ac_cv_path_PROG_ARP+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 case $PROG_ARP in
9126 [\\/]* | ?:[\\/]*)
9127 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9128 ;;
9129 *)
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
9138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 break 2
9140 fi
9141done
9142done
9143
9144 ;;
9145esac
9146fi
9147PROG_ARP=$ac_cv_path_PROG_ARP
9148
9149if test -n "$PROG_ARP"; then
9150 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
9151echo "${ECHO_T}$PROG_ARP" >&6
9152else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155fi
9156
9157 if test -z "$PROG_ARP" ; then
9158 PROG_ARP="undef"
9159 fi
9160
9161
9162
9163 # Extract the first word of "ifconfig", so it can be a program name with args.
9164set dummy ifconfig; ac_word=$2
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170 case $PROG_IFCONFIG in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9173 ;;
9174 *)
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186done
9187done
9188
9189 ;;
9190esac
9191fi
9192PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9193
9194if test -n "$PROG_IFCONFIG"; then
9195 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
9196echo "${ECHO_T}$PROG_IFCONFIG" >&6
9197else
9198 echo "$as_me:$LINENO: result: no" >&5
9199echo "${ECHO_T}no" >&6
9200fi
9201
9202 if test -z "$PROG_IFCONFIG" ; then
9203 PROG_IFCONFIG="undef"
9204 fi
9205
9206
9207
9208 # Extract the first word of "jstat", so it can be a program name with args.
9209set dummy jstat; ac_word=$2
9210echo "$as_me:$LINENO: checking for $ac_word" >&5
9211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 case $PROG_JSTAT in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9218 ;;
9219 *)
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
9228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232done
9233
9234 ;;
9235esac
9236fi
9237PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9238
9239if test -n "$PROG_JSTAT"; then
9240 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
9241echo "${ECHO_T}$PROG_JSTAT" >&6
9242else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245fi
9246
9247 if test -z "$PROG_JSTAT" ; then
9248 PROG_JSTAT="undef"
9249 fi
9250
9251
9252
9253 # Extract the first word of "ps", so it can be a program name with args.
9254set dummy ps; ac_word=$2
9255echo "$as_me:$LINENO: checking for $ac_word" >&5
9256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9257if test "${ac_cv_path_PROG_PS+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 case $PROG_PS in
9261 [\\/]* | ?:[\\/]*)
9262 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9263 ;;
9264 *)
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266for as_dir in $PATH
9267do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
9273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276done
9277done
9278
9279 ;;
9280esac
9281fi
9282PROG_PS=$ac_cv_path_PROG_PS
9283
9284if test -n "$PROG_PS"; then
9285 echo "$as_me:$LINENO: result: $PROG_PS" >&5
9286echo "${ECHO_T}$PROG_PS" >&6
9287else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290fi
9291
9292 if test -z "$PROG_PS" ; then
9293 PROG_PS="undef"
9294 fi
9295
9296
9297
9298 # Extract the first word of "sar", so it can be a program name with args.
9299set dummy sar; ac_word=$2
9300echo "$as_me:$LINENO: checking for $ac_word" >&5
9301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302if test "${ac_cv_path_PROG_SAR+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 case $PROG_SAR in
9306 [\\/]* | ?:[\\/]*)
9307 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9308 ;;
9309 *)
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
9318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321done
9322done
9323
9324 ;;
9325esac
9326fi
9327PROG_SAR=$ac_cv_path_PROG_SAR
9328
9329if test -n "$PROG_SAR"; then
9330 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
9331echo "${ECHO_T}$PROG_SAR" >&6
9332else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335fi
9336
9337 if test -z "$PROG_SAR" ; then
9338 PROG_SAR="undef"
9339 fi
9340
9341
9342
9343 # Extract the first word of "w", so it can be a program name with args.
9344set dummy w; ac_word=$2
9345echo "$as_me:$LINENO: checking for $ac_word" >&5
9346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347if test "${ac_cv_path_PROG_W+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 case $PROG_W in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9353 ;;
9354 *)
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
9363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9365 fi
9366done
9367done
9368
9369 ;;
9370esac
9371fi
9372PROG_W=$ac_cv_path_PROG_W
9373
9374if test -n "$PROG_W"; then
9375 echo "$as_me:$LINENO: result: $PROG_W" >&5
9376echo "${ECHO_T}$PROG_W" >&6
9377else
9378 echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
9380fi
9381
9382 if test -z "$PROG_W" ; then
9383 PROG_W="undef"
9384 fi
9385
9386
9387
9388 # Extract the first word of "who", so it can be a program name with args.
9389set dummy who; ac_word=$2
9390echo "$as_me:$LINENO: checking for $ac_word" >&5
9391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392if test "${ac_cv_path_PROG_WHO+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 case $PROG_WHO in
9396 [\\/]* | ?:[\\/]*)
9397 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9398 ;;
9399 *)
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9407 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9410 fi
9411done
9412done
9413
9414 ;;
9415esac
9416fi
9417PROG_WHO=$ac_cv_path_PROG_WHO
9418
9419if test -n "$PROG_WHO"; then
9420 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9421echo "${ECHO_T}$PROG_WHO" >&6
9422else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425fi
9426
9427 if test -z "$PROG_WHO" ; then
9428 PROG_WHO="undef"
9429 fi
9430
9431
9432
9433 # Extract the first word of "last", so it can be a program name with args.
9434set dummy last; ac_word=$2
9435echo "$as_me:$LINENO: checking for $ac_word" >&5
9436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9437if test "${ac_cv_path_PROG_LAST+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 case $PROG_LAST in
9441 [\\/]* | ?:[\\/]*)
9442 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9443 ;;
9444 *)
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456done
9457done
9458
9459 ;;
9460esac
9461fi
9462PROG_LAST=$ac_cv_path_PROG_LAST
9463
9464if test -n "$PROG_LAST"; then
9465 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9466echo "${ECHO_T}$PROG_LAST" >&6
9467else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470fi
9471
9472 if test -z "$PROG_LAST" ; then
9473 PROG_LAST="undef"
9474 fi
9475
9476
9477
9478 # Extract the first word of "lastlog", so it can be a program name with args.
9479set dummy lastlog; ac_word=$2
9480echo "$as_me:$LINENO: checking for $ac_word" >&5
9481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9482if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 case $PROG_LASTLOG in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9488 ;;
9489 *)
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502done
9503
9504 ;;
9505esac
9506fi
9507PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9508
9509if test -n "$PROG_LASTLOG"; then
9510 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9511echo "${ECHO_T}$PROG_LASTLOG" >&6
9512else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515fi
9516
9517 if test -z "$PROG_LASTLOG" ; then
9518 PROG_LASTLOG="undef"
9519 fi
9520
9521
9522
9523 # Extract the first word of "df", so it can be a program name with args.
9524set dummy df; ac_word=$2
9525echo "$as_me:$LINENO: checking for $ac_word" >&5
9526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9527if test "${ac_cv_path_PROG_DF+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 case $PROG_DF in
9531 [\\/]* | ?:[\\/]*)
9532 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9533 ;;
9534 *)
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
9549 ;;
9550esac
9551fi
9552PROG_DF=$ac_cv_path_PROG_DF
9553
9554if test -n "$PROG_DF"; then
9555 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9556echo "${ECHO_T}$PROG_DF" >&6
9557else
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
9560fi
9561
9562 if test -z "$PROG_DF" ; then
9563 PROG_DF="undef"
9564 fi
9565
9566
9567
9568 # Extract the first word of "vmstat", so it can be a program name with args.
9569set dummy vmstat; ac_word=$2
9570echo "$as_me:$LINENO: checking for $ac_word" >&5
9571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9572if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 case $PROG_VMSTAT in
9576 [\\/]* | ?:[\\/]*)
9577 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9578 ;;
9579 *)
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591done
9592done
9593
9594 ;;
9595esac
9596fi
9597PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9598
9599if test -n "$PROG_VMSTAT"; then
9600 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9601echo "${ECHO_T}$PROG_VMSTAT" >&6
9602else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605fi
9606
9607 if test -z "$PROG_VMSTAT" ; then
9608 PROG_VMSTAT="undef"
9609 fi
9610
9611
9612
9613 # Extract the first word of "uptime", so it can be a program name with args.
9614set dummy uptime; ac_word=$2
9615echo "$as_me:$LINENO: checking for $ac_word" >&5
9616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9617if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 case $PROG_UPTIME in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9623 ;;
9624 *)
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9635 fi
9636done
9637done
9638
9639 ;;
9640esac
9641fi
9642PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9643
9644if test -n "$PROG_UPTIME"; then
9645 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9646echo "${ECHO_T}$PROG_UPTIME" >&6
9647else
9648 echo "$as_me:$LINENO: result: no" >&5
9649echo "${ECHO_T}no" >&6
9650fi
9651
9652 if test -z "$PROG_UPTIME" ; then
9653 PROG_UPTIME="undef"
9654 fi
9655
9656
9657
9658 # Extract the first word of "ipcs", so it can be a program name with args.
9659set dummy ipcs; ac_word=$2
9660echo "$as_me:$LINENO: checking for $ac_word" >&5
9661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9662if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 case $PROG_IPCS in
9666 [\\/]* | ?:[\\/]*)
9667 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9668 ;;
9669 *)
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9677 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682done
9683
9684 ;;
9685esac
9686fi
9687PROG_IPCS=$ac_cv_path_PROG_IPCS
9688
9689if test -n "$PROG_IPCS"; then
9690 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9691echo "${ECHO_T}$PROG_IPCS" >&6
9692else
9693 echo "$as_me:$LINENO: result: no" >&5
9694echo "${ECHO_T}no" >&6
9695fi
9696
9697 if test -z "$PROG_IPCS" ; then
9698 PROG_IPCS="undef"
9699 fi
9700
9701
9702
9703 # Extract the first word of "tail", so it can be a program name with args.
9704set dummy tail; ac_word=$2
9705echo "$as_me:$LINENO: checking for $ac_word" >&5
9706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710 case $PROG_TAIL in
9711 [\\/]* | ?:[\\/]*)
9712 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9713 ;;
9714 *)
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716for as_dir in $PATH
9717do
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726done
9727done
9728
9729 ;;
9730esac
9731fi
9732PROG_TAIL=$ac_cv_path_PROG_TAIL
9733
9734if test -n "$PROG_TAIL"; then
9735 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9736echo "${ECHO_T}$PROG_TAIL" >&6
9737else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740fi
9741
9742 if test -z "$PROG_TAIL" ; then
9743 PROG_TAIL="undef"
9744 fi
9745
9746
9747# restore PATH
9748PATH=$OPATH
9749
9750# Where does ssh-rand-helper get its randomness from?
9751INSTALL_SSH_PRNG_CMDS=""
9752if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9753 if test ! -z "$PRNGD_PORT" ; then
9754 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9755 elif test ! -z "$PRNGD_SOCKET" ; then
9756 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9757 else
9758 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9759 RAND_HELPER_CMDHASH=yes
9760 INSTALL_SSH_PRNG_CMDS="yes"
9761 fi
9762fi
9763
9764
9765
9766# Cheap hack to ensure NEWS-OS libraries are arranged right.
9767if test ! -z "$SONY" ; then
9768 LIBS="$LIBS -liberty";
9769fi
9770
9771# Checks for data types
9772echo "$as_me:$LINENO: checking for char" >&5
9773echo $ECHO_N "checking for char... $ECHO_C" >&6
9774if test "${ac_cv_type_char+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777 cat >conftest.$ac_ext <<_ACEOF
9778#line $LINENO "configure"
9779#include "confdefs.h"
9780$ac_includes_default
9781#ifdef F77_DUMMY_MAIN
9782# ifdef __cplusplus
9783 extern "C"
9784# endif
9785 int F77_DUMMY_MAIN() { return 1; }
9786#endif
9787int
9788main ()
9789{
9790if ((char *) 0)
9791 return 0;
9792if (sizeof (char))
9793 return 0;
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext
9799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_type_char=yes
9811else
9812 echo "$as_me: failed program was:" >&5
9813cat conftest.$ac_ext >&5
9814ac_cv_type_char=no
9815fi
9816rm -f conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9819echo "${ECHO_T}$ac_cv_type_char" >&6
9820
9821echo "$as_me:$LINENO: checking size of char" >&5
9822echo $ECHO_N "checking size of char... $ECHO_C" >&6
9823if test "${ac_cv_sizeof_char+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 if test "$ac_cv_type_char" = yes; then
9827 # The cast to unsigned long works around a bug in the HP C Compiler
9828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9830 # This bug is HP SR number 8606223364.
9831 if test "$cross_compiling" = yes; then
9832 # Depending upon the size, compute the lo and hi bounds.
9833cat >conftest.$ac_ext <<_ACEOF
9834#line $LINENO "configure"
9835#include "confdefs.h"
9836$ac_includes_default
9837#ifdef F77_DUMMY_MAIN
9838# ifdef __cplusplus
9839 extern "C"
9840# endif
9841 int F77_DUMMY_MAIN() { return 1; }
9842#endif
9843int
9844main ()
9845{
9846static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9847test_array @<:@0@:>@ = 0
9848
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext
9854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_lo=0 ac_mid=0
9866 while :; do
9867 cat >conftest.$ac_ext <<_ACEOF
9868#line $LINENO "configure"
9869#include "confdefs.h"
9870$ac_includes_default
9871#ifdef F77_DUMMY_MAIN
9872# ifdef __cplusplus
9873 extern "C"
9874# endif
9875 int F77_DUMMY_MAIN() { return 1; }
9876#endif
9877int
9878main ()
9879{
9880static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9881test_array @<:@0@:>@ = 0
9882
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext
9888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_hi=$ac_mid; break
9900else
9901 echo "$as_me: failed program was:" >&5
9902cat conftest.$ac_ext >&5
9903ac_lo=`expr $ac_mid + 1`
9904 if test $ac_lo -le $ac_mid; then
9905 ac_lo= ac_hi=
9906 break
9907 fi
9908 ac_mid=`expr 2 '*' $ac_mid + 1`
9909fi
9910rm -f conftest.$ac_objext conftest.$ac_ext
9911 done
9912else
9913 echo "$as_me: failed program was:" >&5
9914cat conftest.$ac_ext >&5
9915cat >conftest.$ac_ext <<_ACEOF
9916#line $LINENO "configure"
9917#include "confdefs.h"
9918$ac_includes_default
9919#ifdef F77_DUMMY_MAIN
9920# ifdef __cplusplus
9921 extern "C"
9922# endif
9923 int F77_DUMMY_MAIN() { return 1; }
9924#endif
9925int
9926main ()
9927{
9928static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9929test_array @<:@0@:>@ = 0
9930
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_hi=-1 ac_mid=-1
9948 while :; do
9949 cat >conftest.$ac_ext <<_ACEOF
9950#line $LINENO "configure"
9951#include "confdefs.h"
9952$ac_includes_default
9953#ifdef F77_DUMMY_MAIN
9954# ifdef __cplusplus
9955 extern "C"
9956# endif
9957 int F77_DUMMY_MAIN() { return 1; }
9958#endif
9959int
9960main ()
9961{
9962static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9963test_array @<:@0@:>@ = 0
9964
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_lo=$ac_mid; break
9982else
9983 echo "$as_me: failed program was:" >&5
9984cat conftest.$ac_ext >&5
9985ac_hi=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9987 ac_lo= ac_hi=
9988 break
9989 fi
9990 ac_mid=`expr 2 '*' $ac_mid`
9991fi
9992rm -f conftest.$ac_objext conftest.$ac_ext
9993 done
9994else
9995 echo "$as_me: failed program was:" >&5
9996cat conftest.$ac_ext >&5
9997ac_lo= ac_hi=
9998fi
9999rm -f conftest.$ac_objext conftest.$ac_ext
10000fi
10001rm -f conftest.$ac_objext conftest.$ac_ext
10002# Binary search between lo and hi bounds.
10003while test "x$ac_lo" != "x$ac_hi"; do
10004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10005 cat >conftest.$ac_ext <<_ACEOF
10006#line $LINENO "configure"
10007#include "confdefs.h"
10008$ac_includes_default
10009#ifdef F77_DUMMY_MAIN
10010# ifdef __cplusplus
10011 extern "C"
10012# endif
10013 int F77_DUMMY_MAIN() { return 1; }
10014#endif
10015int
10016main ()
10017{
10018static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
10019test_array @<:@0@:>@ = 0
10020
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext
10026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_hi=$ac_mid
10038else
10039 echo "$as_me: failed program was:" >&5
10040cat conftest.$ac_ext >&5
10041ac_lo=`expr '(' $ac_mid ')' + 1`
10042fi
10043rm -f conftest.$ac_objext conftest.$ac_ext
10044done
10045case $ac_lo in
10046?*) ac_cv_sizeof_char=$ac_lo;;
10047'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10048echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10049 { (exit 1); exit 1; }; } ;;
10050esac
10051else
10052 if test "$cross_compiling" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10054echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10055 { (exit 1); exit 1; }; }
10056else
10057 cat >conftest.$ac_ext <<_ACEOF
10058#line $LINENO "configure"
10059#include "confdefs.h"
10060$ac_includes_default
10061long longval () { return (long) (sizeof (char)); }
10062unsigned long ulongval () { return (long) (sizeof (char)); }
10063@%:@include <stdio.h>
10064@%:@include <stdlib.h>
10065#ifdef F77_DUMMY_MAIN
10066# ifdef __cplusplus
10067 extern "C"
10068# endif
10069 int F77_DUMMY_MAIN() { return 1; }
10070#endif
10071int
10072main ()
10073{
10074
10075 FILE *f = fopen ("conftest.val", "w");
10076 if (! f)
10077 exit (1);
10078 if (((long) (sizeof (char))) < 0)
10079 {
10080 long i = longval ();
10081 if (i != ((long) (sizeof (char))))
10082 exit (1);
10083 fprintf (f, "%ld\n", i);
10084 }
10085 else
10086 {
10087 unsigned long i = ulongval ();
10088 if (i != ((long) (sizeof (char))))
10089 exit (1);
10090 fprintf (f, "%lu\n", i);
10091 }
10092 exit (ferror (f) || fclose (f) != 0);
10093
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098rm -f conftest$ac_exeext
10099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_sizeof_char=`cat conftest.val`
10110else
10111 echo "$as_me: program exited with status $ac_status" >&5
10112echo "$as_me: failed program was:" >&5
10113cat conftest.$ac_ext >&5
10114( exit $ac_status )
10115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10116echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10117 { (exit 1); exit 1; }; }
10118fi
10119rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120fi
10121fi
10122rm -f conftest.val
10123else
10124 ac_cv_sizeof_char=0
10125fi
10126fi
10127echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10128echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10129cat >>confdefs.h <<_ACEOF
10130@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
10131_ACEOF
10132
10133
10134echo "$as_me:$LINENO: checking for short int" >&5
10135echo $ECHO_N "checking for short int... $ECHO_C" >&6
10136if test "${ac_cv_type_short_int+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140#line $LINENO "configure"
10141#include "confdefs.h"
10142$ac_includes_default
10143#ifdef F77_DUMMY_MAIN
10144# ifdef __cplusplus
10145 extern "C"
10146# endif
10147 int F77_DUMMY_MAIN() { return 1; }
10148#endif
10149int
10150main ()
10151{
10152if ((short int *) 0)
10153 return 0;
10154if (sizeof (short int))
10155 return 0;
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext
10161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_type_short_int=yes
10173else
10174 echo "$as_me: failed program was:" >&5
10175cat conftest.$ac_ext >&5
10176ac_cv_type_short_int=no
10177fi
10178rm -f conftest.$ac_objext conftest.$ac_ext
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
10181echo "${ECHO_T}$ac_cv_type_short_int" >&6
10182
10183echo "$as_me:$LINENO: checking size of short int" >&5
10184echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10185if test "${ac_cv_sizeof_short_int+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188 if test "$ac_cv_type_short_int" = yes; then
10189 # The cast to unsigned long works around a bug in the HP C Compiler
10190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10192 # This bug is HP SR number 8606223364.
10193 if test "$cross_compiling" = yes; then
10194 # Depending upon the size, compute the lo and hi bounds.
10195cat >conftest.$ac_ext <<_ACEOF
10196#line $LINENO "configure"
10197#include "confdefs.h"
10198$ac_includes_default
10199#ifdef F77_DUMMY_MAIN
10200# ifdef __cplusplus
10201 extern "C"
10202# endif
10203 int F77_DUMMY_MAIN() { return 1; }
10204#endif
10205int
10206main ()
10207{
10208static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
10209test_array @<:@0@:>@ = 0
10210
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext
10216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_lo=0 ac_mid=0
10228 while :; do
10229 cat >conftest.$ac_ext <<_ACEOF
10230#line $LINENO "configure"
10231#include "confdefs.h"
10232$ac_includes_default
10233#ifdef F77_DUMMY_MAIN
10234# ifdef __cplusplus
10235 extern "C"
10236# endif
10237 int F77_DUMMY_MAIN() { return 1; }
10238#endif
10239int
10240main ()
10241{
10242static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10243test_array @<:@0@:>@ = 0
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext
10250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_hi=$ac_mid; break
10262else
10263 echo "$as_me: failed program was:" >&5
10264cat conftest.$ac_ext >&5
10265ac_lo=`expr $ac_mid + 1`
10266 if test $ac_lo -le $ac_mid; then
10267 ac_lo= ac_hi=
10268 break
10269 fi
10270 ac_mid=`expr 2 '*' $ac_mid + 1`
10271fi
10272rm -f conftest.$ac_objext conftest.$ac_ext
10273 done
10274else
10275 echo "$as_me: failed program was:" >&5
10276cat conftest.$ac_ext >&5
10277cat >conftest.$ac_ext <<_ACEOF
10278#line $LINENO "configure"
10279#include "confdefs.h"
10280$ac_includes_default
10281#ifdef F77_DUMMY_MAIN
10282# ifdef __cplusplus
10283 extern "C"
10284# endif
10285 int F77_DUMMY_MAIN() { return 1; }
10286#endif
10287int
10288main ()
10289{
10290static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
10291test_array @<:@0@:>@ = 0
10292
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext
10298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_hi=-1 ac_mid=-1
10310 while :; do
10311 cat >conftest.$ac_ext <<_ACEOF
10312#line $LINENO "configure"
10313#include "confdefs.h"
10314$ac_includes_default
10315#ifdef F77_DUMMY_MAIN
10316# ifdef __cplusplus
10317 extern "C"
10318# endif
10319 int F77_DUMMY_MAIN() { return 1; }
10320#endif
10321int
10322main ()
10323{
10324static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
10325test_array @<:@0@:>@ = 0
10326
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext
10332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_lo=$ac_mid; break
10344else
10345 echo "$as_me: failed program was:" >&5
10346cat conftest.$ac_ext >&5
10347ac_hi=`expr '(' $ac_mid ')' - 1`
10348 if test $ac_mid -le $ac_hi; then
10349 ac_lo= ac_hi=
10350 break
10351 fi
10352 ac_mid=`expr 2 '*' $ac_mid`
10353fi
10354rm -f conftest.$ac_objext conftest.$ac_ext
10355 done
10356else
10357 echo "$as_me: failed program was:" >&5
10358cat conftest.$ac_ext >&5
10359ac_lo= ac_hi=
10360fi
10361rm -f conftest.$ac_objext conftest.$ac_ext
10362fi
10363rm -f conftest.$ac_objext conftest.$ac_ext
10364# Binary search between lo and hi bounds.
10365while test "x$ac_lo" != "x$ac_hi"; do
10366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10367 cat >conftest.$ac_ext <<_ACEOF
10368#line $LINENO "configure"
10369#include "confdefs.h"
10370$ac_includes_default
10371#ifdef F77_DUMMY_MAIN
10372# ifdef __cplusplus
10373 extern "C"
10374# endif
10375 int F77_DUMMY_MAIN() { return 1; }
10376#endif
10377int
10378main ()
10379{
10380static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10381test_array @<:@0@:>@ = 0
10382
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext
10388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_hi=$ac_mid
10400else
10401 echo "$as_me: failed program was:" >&5
10402cat conftest.$ac_ext >&5
10403ac_lo=`expr '(' $ac_mid ')' + 1`
10404fi
10405rm -f conftest.$ac_objext conftest.$ac_ext
10406done
10407case $ac_lo in
10408?*) ac_cv_sizeof_short_int=$ac_lo;;
10409'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10410echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10411 { (exit 1); exit 1; }; } ;;
10412esac
10413else
10414 if test "$cross_compiling" = yes; then
10415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10416echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10417 { (exit 1); exit 1; }; }
10418else
10419 cat >conftest.$ac_ext <<_ACEOF
10420#line $LINENO "configure"
10421#include "confdefs.h"
10422$ac_includes_default
10423long longval () { return (long) (sizeof (short int)); }
10424unsigned long ulongval () { return (long) (sizeof (short int)); }
10425@%:@include <stdio.h>
10426@%:@include <stdlib.h>
10427#ifdef F77_DUMMY_MAIN
10428# ifdef __cplusplus
10429 extern "C"
10430# endif
10431 int F77_DUMMY_MAIN() { return 1; }
10432#endif
10433int
10434main ()
10435{
10436
10437 FILE *f = fopen ("conftest.val", "w");
10438 if (! f)
10439 exit (1);
10440 if (((long) (sizeof (short int))) < 0)
10441 {
10442 long i = longval ();
10443 if (i != ((long) (sizeof (short int))))
10444 exit (1);
10445 fprintf (f, "%ld\n", i);
10446 }
10447 else
10448 {
10449 unsigned long i = ulongval ();
10450 if (i != ((long) (sizeof (short int))))
10451 exit (1);
10452 fprintf (f, "%lu\n", i);
10453 }
10454 exit (ferror (f) || fclose (f) != 0);
10455
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest$ac_exeext
10461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_sizeof_short_int=`cat conftest.val`
10472else
10473 echo "$as_me: program exited with status $ac_status" >&5
10474echo "$as_me: failed program was:" >&5
10475cat conftest.$ac_ext >&5
10476( exit $ac_status )
10477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10478echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10479 { (exit 1); exit 1; }; }
10480fi
10481rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482fi
10483fi
10484rm -f conftest.val
10485else
10486 ac_cv_sizeof_short_int=0
10487fi
10488fi
10489echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10490echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10491cat >>confdefs.h <<_ACEOF
10492@%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10493_ACEOF
10494
10495
10496echo "$as_me:$LINENO: checking for int" >&5
10497echo $ECHO_N "checking for int... $ECHO_C" >&6
10498if test "${ac_cv_type_int+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 cat >conftest.$ac_ext <<_ACEOF
10502#line $LINENO "configure"
10503#include "confdefs.h"
10504$ac_includes_default
10505#ifdef F77_DUMMY_MAIN
10506# ifdef __cplusplus
10507 extern "C"
10508# endif
10509 int F77_DUMMY_MAIN() { return 1; }
10510#endif
10511int
10512main ()
10513{
10514if ((int *) 0)
10515 return 0;
10516if (sizeof (int))
10517 return 0;
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_cv_type_int=yes
10535else
10536 echo "$as_me: failed program was:" >&5
10537cat conftest.$ac_ext >&5
10538ac_cv_type_int=no
10539fi
10540rm -f conftest.$ac_objext conftest.$ac_ext
10541fi
10542echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10543echo "${ECHO_T}$ac_cv_type_int" >&6
10544
10545echo "$as_me:$LINENO: checking size of int" >&5
10546echo $ECHO_N "checking size of int... $ECHO_C" >&6
10547if test "${ac_cv_sizeof_int+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549else
10550 if test "$ac_cv_type_int" = yes; then
10551 # The cast to unsigned long works around a bug in the HP C Compiler
10552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10554 # This bug is HP SR number 8606223364.
10555 if test "$cross_compiling" = yes; then
10556 # Depending upon the size, compute the lo and hi bounds.
10557cat >conftest.$ac_ext <<_ACEOF
10558#line $LINENO "configure"
10559#include "confdefs.h"
10560$ac_includes_default
10561#ifdef F77_DUMMY_MAIN
10562# ifdef __cplusplus
10563 extern "C"
10564# endif
10565 int F77_DUMMY_MAIN() { return 1; }
10566#endif
10567int
10568main ()
10569{
10570static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10571test_array @<:@0@:>@ = 0
10572
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_lo=0 ac_mid=0
10590 while :; do
10591 cat >conftest.$ac_ext <<_ACEOF
10592#line $LINENO "configure"
10593#include "confdefs.h"
10594$ac_includes_default
10595#ifdef F77_DUMMY_MAIN
10596# ifdef __cplusplus
10597 extern "C"
10598# endif
10599 int F77_DUMMY_MAIN() { return 1; }
10600#endif
10601int
10602main ()
10603{
10604static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10605test_array @<:@0@:>@ = 0
10606
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_hi=$ac_mid; break
10624else
10625 echo "$as_me: failed program was:" >&5
10626cat conftest.$ac_ext >&5
10627ac_lo=`expr $ac_mid + 1`
10628 if test $ac_lo -le $ac_mid; then
10629 ac_lo= ac_hi=
10630 break
10631 fi
10632 ac_mid=`expr 2 '*' $ac_mid + 1`
10633fi
10634rm -f conftest.$ac_objext conftest.$ac_ext
10635 done
10636else
10637 echo "$as_me: failed program was:" >&5
10638cat conftest.$ac_ext >&5
10639cat >conftest.$ac_ext <<_ACEOF
10640#line $LINENO "configure"
10641#include "confdefs.h"
10642$ac_includes_default
10643#ifdef F77_DUMMY_MAIN
10644# ifdef __cplusplus
10645 extern "C"
10646# endif
10647 int F77_DUMMY_MAIN() { return 1; }
10648#endif
10649int
10650main ()
10651{
10652static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10653test_array @<:@0@:>@ = 0
10654
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_hi=-1 ac_mid=-1
10672 while :; do
10673 cat >conftest.$ac_ext <<_ACEOF
10674#line $LINENO "configure"
10675#include "confdefs.h"
10676$ac_includes_default
10677#ifdef F77_DUMMY_MAIN
10678# ifdef __cplusplus
10679 extern "C"
10680# endif
10681 int F77_DUMMY_MAIN() { return 1; }
10682#endif
10683int
10684main ()
10685{
10686static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10687test_array @<:@0@:>@ = 0
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_lo=$ac_mid; break
10706else
10707 echo "$as_me: failed program was:" >&5
10708cat conftest.$ac_ext >&5
10709ac_hi=`expr '(' $ac_mid ')' - 1`
10710 if test $ac_mid -le $ac_hi; then
10711 ac_lo= ac_hi=
10712 break
10713 fi
10714 ac_mid=`expr 2 '*' $ac_mid`
10715fi
10716rm -f conftest.$ac_objext conftest.$ac_ext
10717 done
10718else
10719 echo "$as_me: failed program was:" >&5
10720cat conftest.$ac_ext >&5
10721ac_lo= ac_hi=
10722fi
10723rm -f conftest.$ac_objext conftest.$ac_ext
10724fi
10725rm -f conftest.$ac_objext conftest.$ac_ext
10726# Binary search between lo and hi bounds.
10727while test "x$ac_lo" != "x$ac_hi"; do
10728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10729 cat >conftest.$ac_ext <<_ACEOF
10730#line $LINENO "configure"
10731#include "confdefs.h"
10732$ac_includes_default
10733#ifdef F77_DUMMY_MAIN
10734# ifdef __cplusplus
10735 extern "C"
10736# endif
10737 int F77_DUMMY_MAIN() { return 1; }
10738#endif
10739int
10740main ()
10741{
10742static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10743test_array @<:@0@:>@ = 0
10744
10745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
10750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_hi=$ac_mid
10762else
10763 echo "$as_me: failed program was:" >&5
10764cat conftest.$ac_ext >&5
10765ac_lo=`expr '(' $ac_mid ')' + 1`
10766fi
10767rm -f conftest.$ac_objext conftest.$ac_ext
10768done
10769case $ac_lo in
10770?*) ac_cv_sizeof_int=$ac_lo;;
10771'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10772echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10773 { (exit 1); exit 1; }; } ;;
10774esac
10775else
10776 if test "$cross_compiling" = yes; then
10777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10778echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10779 { (exit 1); exit 1; }; }
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782#line $LINENO "configure"
10783#include "confdefs.h"
10784$ac_includes_default
10785long longval () { return (long) (sizeof (int)); }
10786unsigned long ulongval () { return (long) (sizeof (int)); }
10787@%:@include <stdio.h>
10788@%:@include <stdlib.h>
10789#ifdef F77_DUMMY_MAIN
10790# ifdef __cplusplus
10791 extern "C"
10792# endif
10793 int F77_DUMMY_MAIN() { return 1; }
10794#endif
10795int
10796main ()
10797{
10798
10799 FILE *f = fopen ("conftest.val", "w");
10800 if (! f)
10801 exit (1);
10802 if (((long) (sizeof (int))) < 0)
10803 {
10804 long i = longval ();
10805 if (i != ((long) (sizeof (int))))
10806 exit (1);
10807 fprintf (f, "%ld\n", i);
10808 }
10809 else
10810 {
10811 unsigned long i = ulongval ();
10812 if (i != ((long) (sizeof (int))))
10813 exit (1);
10814 fprintf (f, "%lu\n", i);
10815 }
10816 exit (ferror (f) || fclose (f) != 0);
10817
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822rm -f conftest$ac_exeext
10823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824 (eval $ac_link) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_sizeof_int=`cat conftest.val`
10834else
10835 echo "$as_me: program exited with status $ac_status" >&5
10836echo "$as_me: failed program was:" >&5
10837cat conftest.$ac_ext >&5
10838( exit $ac_status )
10839{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10840echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10841 { (exit 1); exit 1; }; }
10842fi
10843rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10844fi
10845fi
10846rm -f conftest.val
10847else
10848 ac_cv_sizeof_int=0
10849fi
10850fi
10851echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10852echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10853cat >>confdefs.h <<_ACEOF
10854@%:@define SIZEOF_INT $ac_cv_sizeof_int
10855_ACEOF
10856
10857
10858echo "$as_me:$LINENO: checking for long int" >&5
10859echo $ECHO_N "checking for long int... $ECHO_C" >&6
10860if test "${ac_cv_type_long_int+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 cat >conftest.$ac_ext <<_ACEOF
10864#line $LINENO "configure"
10865#include "confdefs.h"
10866$ac_includes_default
10867#ifdef F77_DUMMY_MAIN
10868# ifdef __cplusplus
10869 extern "C"
10870# endif
10871 int F77_DUMMY_MAIN() { return 1; }
10872#endif
10873int
10874main ()
10875{
10876if ((long int *) 0)
10877 return 0;
10878if (sizeof (long int))
10879 return 0;
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_type_long_int=yes
10897else
10898 echo "$as_me: failed program was:" >&5
10899cat conftest.$ac_ext >&5
10900ac_cv_type_long_int=no
10901fi
10902rm -f conftest.$ac_objext conftest.$ac_ext
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10905echo "${ECHO_T}$ac_cv_type_long_int" >&6
10906
10907echo "$as_me:$LINENO: checking size of long int" >&5
10908echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10909if test "${ac_cv_sizeof_long_int+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 if test "$ac_cv_type_long_int" = yes; then
10913 # The cast to unsigned long works around a bug in the HP C Compiler
10914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10916 # This bug is HP SR number 8606223364.
10917 if test "$cross_compiling" = yes; then
10918 # Depending upon the size, compute the lo and hi bounds.
10919cat >conftest.$ac_ext <<_ACEOF
10920#line $LINENO "configure"
10921#include "confdefs.h"
10922$ac_includes_default
10923#ifdef F77_DUMMY_MAIN
10924# ifdef __cplusplus
10925 extern "C"
10926# endif
10927 int F77_DUMMY_MAIN() { return 1; }
10928#endif
10929int
10930main ()
10931{
10932static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10933test_array @<:@0@:>@ = 0
10934
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_lo=0 ac_mid=0
10952 while :; do
10953 cat >conftest.$ac_ext <<_ACEOF
10954#line $LINENO "configure"
10955#include "confdefs.h"
10956$ac_includes_default
10957#ifdef F77_DUMMY_MAIN
10958# ifdef __cplusplus
10959 extern "C"
10960# endif
10961 int F77_DUMMY_MAIN() { return 1; }
10962#endif
10963int
10964main ()
10965{
10966static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10967test_array @<:@0@:>@ = 0
10968
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973rm -f conftest.$ac_objext
10974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_hi=$ac_mid; break
10986else
10987 echo "$as_me: failed program was:" >&5
10988cat conftest.$ac_ext >&5
10989ac_lo=`expr $ac_mid + 1`
10990 if test $ac_lo -le $ac_mid; then
10991 ac_lo= ac_hi=
10992 break
10993 fi
10994 ac_mid=`expr 2 '*' $ac_mid + 1`
10995fi
10996rm -f conftest.$ac_objext conftest.$ac_ext
10997 done
10998else
10999 echo "$as_me: failed program was:" >&5
11000cat conftest.$ac_ext >&5
11001cat >conftest.$ac_ext <<_ACEOF
11002#line $LINENO "configure"
11003#include "confdefs.h"
11004$ac_includes_default
11005#ifdef F77_DUMMY_MAIN
11006# ifdef __cplusplus
11007 extern "C"
11008# endif
11009 int F77_DUMMY_MAIN() { return 1; }
11010#endif
11011int
11012main ()
11013{
11014static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
11015test_array @<:@0@:>@ = 0
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_hi=-1 ac_mid=-1
11034 while :; do
11035 cat >conftest.$ac_ext <<_ACEOF
11036#line $LINENO "configure"
11037#include "confdefs.h"
11038$ac_includes_default
11039#ifdef F77_DUMMY_MAIN
11040# ifdef __cplusplus
11041 extern "C"
11042# endif
11043 int F77_DUMMY_MAIN() { return 1; }
11044#endif
11045int
11046main ()
11047{
11048static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
11049test_array @<:@0@:>@ = 0
11050
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext
11056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_lo=$ac_mid; break
11068else
11069 echo "$as_me: failed program was:" >&5
11070cat conftest.$ac_ext >&5
11071ac_hi=`expr '(' $ac_mid ')' - 1`
11072 if test $ac_mid -le $ac_hi; then
11073 ac_lo= ac_hi=
11074 break
11075 fi
11076 ac_mid=`expr 2 '*' $ac_mid`
11077fi
11078rm -f conftest.$ac_objext conftest.$ac_ext
11079 done
11080else
11081 echo "$as_me: failed program was:" >&5
11082cat conftest.$ac_ext >&5
11083ac_lo= ac_hi=
11084fi
11085rm -f conftest.$ac_objext conftest.$ac_ext
11086fi
11087rm -f conftest.$ac_objext conftest.$ac_ext
11088# Binary search between lo and hi bounds.
11089while test "x$ac_lo" != "x$ac_hi"; do
11090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11091 cat >conftest.$ac_ext <<_ACEOF
11092#line $LINENO "configure"
11093#include "confdefs.h"
11094$ac_includes_default
11095#ifdef F77_DUMMY_MAIN
11096# ifdef __cplusplus
11097 extern "C"
11098# endif
11099 int F77_DUMMY_MAIN() { return 1; }
11100#endif
11101int
11102main ()
11103{
11104static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
11105test_array @<:@0@:>@ = 0
11106
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_hi=$ac_mid
11124else
11125 echo "$as_me: failed program was:" >&5
11126cat conftest.$ac_ext >&5
11127ac_lo=`expr '(' $ac_mid ')' + 1`
11128fi
11129rm -f conftest.$ac_objext conftest.$ac_ext
11130done
11131case $ac_lo in
11132?*) ac_cv_sizeof_long_int=$ac_lo;;
11133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11134echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11135 { (exit 1); exit 1; }; } ;;
11136esac
11137else
11138 if test "$cross_compiling" = yes; then
11139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11141 { (exit 1); exit 1; }; }
11142else
11143 cat >conftest.$ac_ext <<_ACEOF
11144#line $LINENO "configure"
11145#include "confdefs.h"
11146$ac_includes_default
11147long longval () { return (long) (sizeof (long int)); }
11148unsigned long ulongval () { return (long) (sizeof (long int)); }
11149@%:@include <stdio.h>
11150@%:@include <stdlib.h>
11151#ifdef F77_DUMMY_MAIN
11152# ifdef __cplusplus
11153 extern "C"
11154# endif
11155 int F77_DUMMY_MAIN() { return 1; }
11156#endif
11157int
11158main ()
11159{
11160
11161 FILE *f = fopen ("conftest.val", "w");
11162 if (! f)
11163 exit (1);
11164 if (((long) (sizeof (long int))) < 0)
11165 {
11166 long i = longval ();
11167 if (i != ((long) (sizeof (long int))))
11168 exit (1);
11169 fprintf (f, "%ld\n", i);
11170 }
11171 else
11172 {
11173 unsigned long i = ulongval ();
11174 if (i != ((long) (sizeof (long int))))
11175 exit (1);
11176 fprintf (f, "%lu\n", i);
11177 }
11178 exit (ferror (f) || fclose (f) != 0);
11179
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest$ac_exeext
11185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_sizeof_long_int=`cat conftest.val`
11196else
11197 echo "$as_me: program exited with status $ac_status" >&5
11198echo "$as_me: failed program was:" >&5
11199cat conftest.$ac_ext >&5
11200( exit $ac_status )
11201{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11202echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11203 { (exit 1); exit 1; }; }
11204fi
11205rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11206fi
11207fi
11208rm -f conftest.val
11209else
11210 ac_cv_sizeof_long_int=0
11211fi
11212fi
11213echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11214echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11215cat >>confdefs.h <<_ACEOF
11216@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11217_ACEOF
11218
11219
11220echo "$as_me:$LINENO: checking for long long int" >&5
11221echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11222if test "${ac_cv_type_long_long_int+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 cat >conftest.$ac_ext <<_ACEOF
11226#line $LINENO "configure"
11227#include "confdefs.h"
11228$ac_includes_default
11229#ifdef F77_DUMMY_MAIN
11230# ifdef __cplusplus
11231 extern "C"
11232# endif
11233 int F77_DUMMY_MAIN() { return 1; }
11234#endif
11235int
11236main ()
11237{
11238if ((long long int *) 0)
11239 return 0;
11240if (sizeof (long long int))
11241 return 0;
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_type_long_long_int=yes
11259else
11260 echo "$as_me: failed program was:" >&5
11261cat conftest.$ac_ext >&5
11262ac_cv_type_long_long_int=no
11263fi
11264rm -f conftest.$ac_objext conftest.$ac_ext
11265fi
11266echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11267echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11268
11269echo "$as_me:$LINENO: checking size of long long int" >&5
11270echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11271if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test "$ac_cv_type_long_long_int" = yes; then
11275 # The cast to unsigned long works around a bug in the HP C Compiler
11276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11278 # This bug is HP SR number 8606223364.
11279 if test "$cross_compiling" = yes; then
11280 # Depending upon the size, compute the lo and hi bounds.
11281cat >conftest.$ac_ext <<_ACEOF
11282#line $LINENO "configure"
11283#include "confdefs.h"
11284$ac_includes_default
11285#ifdef F77_DUMMY_MAIN
11286# ifdef __cplusplus
11287 extern "C"
11288# endif
11289 int F77_DUMMY_MAIN() { return 1; }
11290#endif
11291int
11292main ()
11293{
11294static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
11295test_array @<:@0@:>@ = 0
11296
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext
11302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_lo=0 ac_mid=0
11314 while :; do
11315 cat >conftest.$ac_ext <<_ACEOF
11316#line $LINENO "configure"
11317#include "confdefs.h"
11318$ac_includes_default
11319#ifdef F77_DUMMY_MAIN
11320# ifdef __cplusplus
11321 extern "C"
11322# endif
11323 int F77_DUMMY_MAIN() { return 1; }
11324#endif
11325int
11326main ()
11327{
11328static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11329test_array @<:@0@:>@ = 0
11330
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_hi=$ac_mid; break
11348else
11349 echo "$as_me: failed program was:" >&5
11350cat conftest.$ac_ext >&5
11351ac_lo=`expr $ac_mid + 1`
11352 if test $ac_lo -le $ac_mid; then
11353 ac_lo= ac_hi=
11354 break
11355 fi
11356 ac_mid=`expr 2 '*' $ac_mid + 1`
11357fi
11358rm -f conftest.$ac_objext conftest.$ac_ext
11359 done
11360else
11361 echo "$as_me: failed program was:" >&5
11362cat conftest.$ac_ext >&5
11363cat >conftest.$ac_ext <<_ACEOF
11364#line $LINENO "configure"
11365#include "confdefs.h"
11366$ac_includes_default
11367#ifdef F77_DUMMY_MAIN
11368# ifdef __cplusplus
11369 extern "C"
11370# endif
11371 int F77_DUMMY_MAIN() { return 1; }
11372#endif
11373int
11374main ()
11375{
11376static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
11377test_array @<:@0@:>@ = 0
11378
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_hi=-1 ac_mid=-1
11396 while :; do
11397 cat >conftest.$ac_ext <<_ACEOF
11398#line $LINENO "configure"
11399#include "confdefs.h"
11400$ac_includes_default
11401#ifdef F77_DUMMY_MAIN
11402# ifdef __cplusplus
11403 extern "C"
11404# endif
11405 int F77_DUMMY_MAIN() { return 1; }
11406#endif
11407int
11408main ()
11409{
11410static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
11411test_array @<:@0@:>@ = 0
11412
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext
11418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11419 (eval $ac_compile) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_lo=$ac_mid; break
11430else
11431 echo "$as_me: failed program was:" >&5
11432cat conftest.$ac_ext >&5
11433ac_hi=`expr '(' $ac_mid ')' - 1`
11434 if test $ac_mid -le $ac_hi; then
11435 ac_lo= ac_hi=
11436 break
11437 fi
11438 ac_mid=`expr 2 '*' $ac_mid`
11439fi
11440rm -f conftest.$ac_objext conftest.$ac_ext
11441 done
11442else
11443 echo "$as_me: failed program was:" >&5
11444cat conftest.$ac_ext >&5
11445ac_lo= ac_hi=
11446fi
11447rm -f conftest.$ac_objext conftest.$ac_ext
11448fi
11449rm -f conftest.$ac_objext conftest.$ac_ext
11450# Binary search between lo and hi bounds.
11451while test "x$ac_lo" != "x$ac_hi"; do
11452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11453 cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
11455#include "confdefs.h"
11456$ac_includes_default
11457#ifdef F77_DUMMY_MAIN
11458# ifdef __cplusplus
11459 extern "C"
11460# endif
11461 int F77_DUMMY_MAIN() { return 1; }
11462#endif
11463int
11464main ()
11465{
11466static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11467test_array @<:@0@:>@ = 0
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_hi=$ac_mid
11486else
11487 echo "$as_me: failed program was:" >&5
11488cat conftest.$ac_ext >&5
11489ac_lo=`expr '(' $ac_mid ')' + 1`
11490fi
11491rm -f conftest.$ac_objext conftest.$ac_ext
11492done
11493case $ac_lo in
11494?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11495'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11496echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11497 { (exit 1); exit 1; }; } ;;
11498esac
11499else
11500 if test "$cross_compiling" = yes; then
11501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11502echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11503 { (exit 1); exit 1; }; }
11504else
11505 cat >conftest.$ac_ext <<_ACEOF
11506#line $LINENO "configure"
11507#include "confdefs.h"
11508$ac_includes_default
11509long longval () { return (long) (sizeof (long long int)); }
11510unsigned long ulongval () { return (long) (sizeof (long long int)); }
11511@%:@include <stdio.h>
11512@%:@include <stdlib.h>
11513#ifdef F77_DUMMY_MAIN
11514# ifdef __cplusplus
11515 extern "C"
11516# endif
11517 int F77_DUMMY_MAIN() { return 1; }
11518#endif
11519int
11520main ()
11521{
11522
11523 FILE *f = fopen ("conftest.val", "w");
11524 if (! f)
11525 exit (1);
11526 if (((long) (sizeof (long long int))) < 0)
11527 {
11528 long i = longval ();
11529 if (i != ((long) (sizeof (long long int))))
11530 exit (1);
11531 fprintf (f, "%ld\n", i);
11532 }
11533 else
11534 {
11535 unsigned long i = ulongval ();
11536 if (i != ((long) (sizeof (long long int))))
11537 exit (1);
11538 fprintf (f, "%lu\n", i);
11539 }
11540 exit (ferror (f) || fclose (f) != 0);
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest$ac_exeext
11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_sizeof_long_long_int=`cat conftest.val`
11558else
11559 echo "$as_me: program exited with status $ac_status" >&5
11560echo "$as_me: failed program was:" >&5
11561cat conftest.$ac_ext >&5
11562( exit $ac_status )
11563{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11564echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11565 { (exit 1); exit 1; }; }
11566fi
11567rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11568fi
11569fi
11570rm -f conftest.val
11571else
11572 ac_cv_sizeof_long_long_int=0
11573fi
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11576echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11577cat >>confdefs.h <<_ACEOF
11578@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11579_ACEOF
11580
11581
11582
11583# Sanity check long long for some platforms (AIX)
11584if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11585 ac_cv_sizeof_long_long_int=0
11586fi
11587
11588# More checks for data types
11589echo "$as_me:$LINENO: checking for u_int type" >&5
11590echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11591if test "${ac_cv_have_u_int+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594
11595 cat >conftest.$ac_ext <<_ACEOF
11596#line $LINENO "configure"
11597#include "confdefs.h"
11598 #include <sys/types.h>
11599#ifdef F77_DUMMY_MAIN
11600# ifdef __cplusplus
11601 extern "C"
11602# endif
11603 int F77_DUMMY_MAIN() { return 1; }
11604#endif
11605int
11606main ()
11607{
11608 u_int a; a = 1;
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_have_u_int="yes"
11626else
11627 echo "$as_me: failed program was:" >&5
11628cat conftest.$ac_ext >&5
11629 ac_cv_have_u_int="no"
11630
11631fi
11632rm -f conftest.$ac_objext conftest.$ac_ext
11633
11634fi
11635echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11636echo "${ECHO_T}$ac_cv_have_u_int" >&6
11637if test "x$ac_cv_have_u_int" = "xyes" ; then
11638 cat >>confdefs.h <<\_ACEOF
11639@%:@define HAVE_U_INT 1
11640_ACEOF
11641
11642 have_u_int=1
11643fi
11644
11645echo "$as_me:$LINENO: checking for intXX_t types" >&5
11646echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11647if test "${ac_cv_have_intxx_t+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650
11651 cat >conftest.$ac_ext <<_ACEOF
11652#line $LINENO "configure"
11653#include "confdefs.h"
11654 #include <sys/types.h>
11655#ifdef F77_DUMMY_MAIN
11656# ifdef __cplusplus
11657 extern "C"
11658# endif
11659 int F77_DUMMY_MAIN() { return 1; }
11660#endif
11661int
11662main ()
11663{
11664 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_have_intxx_t="yes"
11682else
11683 echo "$as_me: failed program was:" >&5
11684cat conftest.$ac_ext >&5
11685 ac_cv_have_intxx_t="no"
11686
11687fi
11688rm -f conftest.$ac_objext conftest.$ac_ext
11689
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11692echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11693if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11694 cat >>confdefs.h <<\_ACEOF
11695@%:@define HAVE_INTXX_T 1
11696_ACEOF
11697
11698 have_intxx_t=1
11699fi
11700
11701if (test -z "$have_intxx_t" && \
11702 test "x$ac_cv_header_stdint_h" = "xyes")
11703then
11704 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11705echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11707#line $LINENO "configure"
11708#include "confdefs.h"
11709 #include <stdint.h>
11710#ifdef F77_DUMMY_MAIN
11711# ifdef __cplusplus
11712 extern "C"
11713# endif
11714 int F77_DUMMY_MAIN() { return 1; }
11715#endif
11716int
11717main ()
11718{
11719 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738@%:@define HAVE_INTXX_T 1
11739_ACEOF
11740
11741 echo "$as_me:$LINENO: result: yes" >&5
11742echo "${ECHO_T}yes" >&6
11743
11744else
11745 echo "$as_me: failed program was:" >&5
11746cat conftest.$ac_ext >&5
11747 echo "$as_me:$LINENO: result: no" >&5
11748echo "${ECHO_T}no" >&6
11749
11750fi
11751rm -f conftest.$ac_objext conftest.$ac_ext
11752fi
11753
11754echo "$as_me:$LINENO: checking for int64_t type" >&5
11755echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11756if test "${ac_cv_have_int64_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759
11760 cat >conftest.$ac_ext <<_ACEOF
11761#line $LINENO "configure"
11762#include "confdefs.h"
11763
11764#include <sys/types.h>
11765#ifdef HAVE_STDINT_H
11766# include <stdint.h>
11767#endif
11768#include <sys/socket.h>
11769#ifdef HAVE_SYS_BITYPES_H
11770# include <sys/bitypes.h>
11771#endif
11772
11773#ifdef F77_DUMMY_MAIN
11774# ifdef __cplusplus
11775 extern "C"
11776# endif
11777 int F77_DUMMY_MAIN() { return 1; }
11778#endif
11779int
11780main ()
11781{
11782 int64_t a; a = 1;
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_have_int64_t="yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802cat conftest.$ac_ext >&5
11803 ac_cv_have_int64_t="no"
11804
11805fi
11806rm -f conftest.$ac_objext conftest.$ac_ext
11807
11808fi
11809echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11810echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11811if test "x$ac_cv_have_int64_t" = "xyes" ; then
11812 cat >>confdefs.h <<\_ACEOF
11813@%:@define HAVE_INT64_T 1
11814_ACEOF
11815
11816fi
11817
11818echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11819echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11820if test "${ac_cv_have_u_intxx_t+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
11823
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line $LINENO "configure"
11826#include "confdefs.h"
11827 #include <sys/types.h>
11828#ifdef F77_DUMMY_MAIN
11829# ifdef __cplusplus
11830 extern "C"
11831# endif
11832 int F77_DUMMY_MAIN() { return 1; }
11833#endif
11834int
11835main ()
11836{
11837 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_have_u_intxx_t="yes"
11855else
11856 echo "$as_me: failed program was:" >&5
11857cat conftest.$ac_ext >&5
11858 ac_cv_have_u_intxx_t="no"
11859
11860fi
11861rm -f conftest.$ac_objext conftest.$ac_ext
11862
11863fi
11864echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11865echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11866if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11867 cat >>confdefs.h <<\_ACEOF
11868@%:@define HAVE_U_INTXX_T 1
11869_ACEOF
11870
11871 have_u_intxx_t=1
11872fi
11873
11874if test -z "$have_u_intxx_t" ; then
11875 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11876echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11878#line $LINENO "configure"
11879#include "confdefs.h"
11880 #include <sys/socket.h>
11881#ifdef F77_DUMMY_MAIN
11882# ifdef __cplusplus
11883 extern "C"
11884# endif
11885 int F77_DUMMY_MAIN() { return 1; }
11886#endif
11887int
11888main ()
11889{
11890 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext
11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897 (eval $ac_compile) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907
11908 cat >>confdefs.h <<\_ACEOF
11909@%:@define HAVE_U_INTXX_T 1
11910_ACEOF
11911
11912 echo "$as_me:$LINENO: result: yes" >&5
11913echo "${ECHO_T}yes" >&6
11914
11915else
11916 echo "$as_me: failed program was:" >&5
11917cat conftest.$ac_ext >&5
11918 echo "$as_me:$LINENO: result: no" >&5
11919echo "${ECHO_T}no" >&6
11920
11921fi
11922rm -f conftest.$ac_objext conftest.$ac_ext
11923fi
11924
11925echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11926echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11927if test "${ac_cv_have_u_int64_t+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929else
11930
11931 cat >conftest.$ac_ext <<_ACEOF
11932#line $LINENO "configure"
11933#include "confdefs.h"
11934 #include <sys/types.h>
11935#ifdef F77_DUMMY_MAIN
11936# ifdef __cplusplus
11937 extern "C"
11938# endif
11939 int F77_DUMMY_MAIN() { return 1; }
11940#endif
11941int
11942main ()
11943{
11944 u_int64_t a; a = 1;
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_have_u_int64_t="yes"
11962else
11963 echo "$as_me: failed program was:" >&5
11964cat conftest.$ac_ext >&5
11965 ac_cv_have_u_int64_t="no"
11966
11967fi
11968rm -f conftest.$ac_objext conftest.$ac_ext
11969
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11972echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11974 cat >>confdefs.h <<\_ACEOF
11975@%:@define HAVE_U_INT64_T 1
11976_ACEOF
11977
11978 have_u_int64_t=1
11979fi
11980
11981if test -z "$have_u_int64_t" ; then
11982 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11983echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line $LINENO "configure"
11986#include "confdefs.h"
11987 #include <sys/bitypes.h>
11988#ifdef F77_DUMMY_MAIN
11989# ifdef __cplusplus
11990 extern "C"
11991# endif
11992 int F77_DUMMY_MAIN() { return 1; }
11993#endif
11994int
11995main ()
11996{
11997 u_int64_t a; a = 1
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014
12015 cat >>confdefs.h <<\_ACEOF
12016@%:@define HAVE_U_INT64_T 1
12017_ACEOF
12018
12019 echo "$as_me:$LINENO: result: yes" >&5
12020echo "${ECHO_T}yes" >&6
12021
12022else
12023 echo "$as_me: failed program was:" >&5
12024cat conftest.$ac_ext >&5
12025 echo "$as_me:$LINENO: result: no" >&5
12026echo "${ECHO_T}no" >&6
12027
12028fi
12029rm -f conftest.$ac_objext conftest.$ac_ext
12030fi
12031
12032if test -z "$have_u_intxx_t" ; then
12033 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
12034echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12035if test "${ac_cv_have_uintxx_t+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038
12039 cat >conftest.$ac_ext <<_ACEOF
12040#line $LINENO "configure"
12041#include "confdefs.h"
12042
12043#include <sys/types.h>
12044
12045#ifdef F77_DUMMY_MAIN
12046# ifdef __cplusplus
12047 extern "C"
12048# endif
12049 int F77_DUMMY_MAIN() { return 1; }
12050#endif
12051int
12052main ()
12053{
12054 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext
12060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_have_uintxx_t="yes"
12072else
12073 echo "$as_me: failed program was:" >&5
12074cat conftest.$ac_ext >&5
12075 ac_cv_have_uintxx_t="no"
12076
12077fi
12078rm -f conftest.$ac_objext conftest.$ac_ext
12079
12080fi
12081echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
12082echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12083 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12084 cat >>confdefs.h <<\_ACEOF
12085@%:@define HAVE_UINTXX_T 1
12086_ACEOF
12087
12088 fi
12089fi
12090
12091if test -z "$have_uintxx_t" ; then
12092 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
12093echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12095#line $LINENO "configure"
12096#include "confdefs.h"
12097 #include <stdint.h>
12098#ifdef F77_DUMMY_MAIN
12099# ifdef __cplusplus
12100 extern "C"
12101# endif
12102 int F77_DUMMY_MAIN() { return 1; }
12103#endif
12104int
12105main ()
12106{
12107 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124
12125 cat >>confdefs.h <<\_ACEOF
12126@%:@define HAVE_UINTXX_T 1
12127_ACEOF
12128
12129 echo "$as_me:$LINENO: result: yes" >&5
12130echo "${ECHO_T}yes" >&6
12131
12132else
12133 echo "$as_me: failed program was:" >&5
12134cat conftest.$ac_ext >&5
12135 echo "$as_me:$LINENO: result: no" >&5
12136echo "${ECHO_T}no" >&6
12137
12138fi
12139rm -f conftest.$ac_objext conftest.$ac_ext
12140fi
12141
12142if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12143 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12144then
12145 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12146echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12148#line $LINENO "configure"
12149#include "confdefs.h"
12150
12151#include <sys/bitypes.h>
12152
12153#ifdef F77_DUMMY_MAIN
12154# ifdef __cplusplus
12155 extern "C"
12156# endif
12157 int F77_DUMMY_MAIN() { return 1; }
12158#endif
12159int
12160main ()
12161{
12162
12163 int8_t a; int16_t b; int32_t c;
12164 u_int8_t e; u_int16_t f; u_int32_t g;
12165 a = b = c = e = f = g = 1;
12166
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185@%:@define HAVE_U_INTXX_T 1
12186_ACEOF
12187
12188 cat >>confdefs.h <<\_ACEOF
12189@%:@define HAVE_INTXX_T 1
12190_ACEOF
12191
12192 echo "$as_me:$LINENO: result: yes" >&5
12193echo "${ECHO_T}yes" >&6
12194
12195else
12196 echo "$as_me: failed program was:" >&5
12197cat conftest.$ac_ext >&5
12198echo "$as_me:$LINENO: result: no" >&5
12199echo "${ECHO_T}no" >&6
12200
12201fi
12202rm -f conftest.$ac_objext conftest.$ac_ext
12203fi
12204
12205
12206echo "$as_me:$LINENO: checking for u_char" >&5
12207echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12208if test "${ac_cv_have_u_char+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211
12212 cat >conftest.$ac_ext <<_ACEOF
12213#line $LINENO "configure"
12214#include "confdefs.h"
12215
12216#include <sys/types.h>
12217
12218#ifdef F77_DUMMY_MAIN
12219# ifdef __cplusplus
12220 extern "C"
12221# endif
12222 int F77_DUMMY_MAIN() { return 1; }
12223#endif
12224int
12225main ()
12226{
12227 u_char foo; foo = 125;
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext
12233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_have_u_char="yes"
12245else
12246 echo "$as_me: failed program was:" >&5
12247cat conftest.$ac_ext >&5
12248 ac_cv_have_u_char="no"
12249
12250fi
12251rm -f conftest.$ac_objext conftest.$ac_ext
12252
12253fi
12254echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
12255echo "${ECHO_T}$ac_cv_have_u_char" >&6
12256if test "x$ac_cv_have_u_char" = "xyes" ; then
12257 cat >>confdefs.h <<\_ACEOF
12258@%:@define HAVE_U_CHAR 1
12259_ACEOF
12260
12261fi
12262
12263
12264 echo "$as_me:$LINENO: checking for socklen_t" >&5
12265echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12266if test "${ac_cv_type_socklen_t+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270#line $LINENO "configure"
12271#include "confdefs.h"
12272#include <sys/types.h>
12273#include <sys/socket.h>
12274
12275#ifdef F77_DUMMY_MAIN
12276# ifdef __cplusplus
12277 extern "C"
12278# endif
12279 int F77_DUMMY_MAIN() { return 1; }
12280#endif
12281int
12282main ()
12283{
12284if ((socklen_t *) 0)
12285 return 0;
12286if (sizeof (socklen_t))
12287 return 0;
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_type_socklen_t=yes
12305else
12306 echo "$as_me: failed program was:" >&5
12307cat conftest.$ac_ext >&5
12308ac_cv_type_socklen_t=no
12309fi
12310rm -f conftest.$ac_objext conftest.$ac_ext
12311fi
12312echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12313echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12314if test $ac_cv_type_socklen_t = yes; then
12315 :
12316else
12317
12318 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12319echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12320 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323
12324 # Systems have either "struct sockaddr *" or
12325 # "void *" as the second argument to getpeername
12326 curl_cv_socklen_t_equiv=
12327 for arg2 in "struct sockaddr" void; do
12328 for t in int size_t unsigned long "unsigned long"; do
12329 cat >conftest.$ac_ext <<_ACEOF
12330#line $LINENO "configure"
12331#include "confdefs.h"
12332
12333 #include <sys/types.h>
12334 #include <sys/socket.h>
12335
12336 int getpeername (int, $arg2 *, $t *);
12337
12338#ifdef F77_DUMMY_MAIN
12339# ifdef __cplusplus
12340 extern "C"
12341# endif
12342 int F77_DUMMY_MAIN() { return 1; }
12343#endif
12344int
12345main ()
12346{
12347
12348 $t len;
12349 getpeername(0,0,&len);
12350
12351 ;
12352 return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext
12356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367
12368 curl_cv_socklen_t_equiv="$t"
12369 break
12370
12371else
12372 echo "$as_me: failed program was:" >&5
12373cat conftest.$ac_ext >&5
12374fi
12375rm -f conftest.$ac_objext conftest.$ac_ext
12376 done
12377 done
12378
12379 if test "x$curl_cv_socklen_t_equiv" = x; then
12380 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12381echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12382 { (exit 1); exit 1; }; }
12383 fi
12384
12385fi
12386
12387 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12388echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12389
12390cat >>confdefs.h <<_ACEOF
12391@%:@define socklen_t $curl_cv_socklen_t_equiv
12392_ACEOF
12393
12394fi
12395
12396
12397
12398echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12399echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12400if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404#line $LINENO "configure"
12405#include "confdefs.h"
12406#include <signal.h>
12407
12408#ifdef F77_DUMMY_MAIN
12409# ifdef __cplusplus
12410 extern "C"
12411# endif
12412 int F77_DUMMY_MAIN() { return 1; }
12413#endif
12414int
12415main ()
12416{
12417if ((sig_atomic_t *) 0)
12418 return 0;
12419if (sizeof (sig_atomic_t))
12420 return 0;
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_type_sig_atomic_t=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440cat conftest.$ac_ext >&5
12441ac_cv_type_sig_atomic_t=no
12442fi
12443rm -f conftest.$ac_objext conftest.$ac_ext
12444fi
12445echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12446echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12447if test $ac_cv_type_sig_atomic_t = yes; then
12448
12449cat >>confdefs.h <<_ACEOF
12450@%:@define HAVE_SIG_ATOMIC_T 1
12451_ACEOF
12452
12453
12454fi
12455
12456
12457echo "$as_me:$LINENO: checking for size_t" >&5
12458echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12459if test "${ac_cv_have_size_t+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462
12463 cat >conftest.$ac_ext <<_ACEOF
12464#line $LINENO "configure"
12465#include "confdefs.h"
12466
12467#include <sys/types.h>
12468
12469#ifdef F77_DUMMY_MAIN
12470# ifdef __cplusplus
12471 extern "C"
12472# endif
12473 int F77_DUMMY_MAIN() { return 1; }
12474#endif
12475int
12476main ()
12477{
12478 size_t foo; foo = 1235;
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_have_size_t="yes"
12496else
12497 echo "$as_me: failed program was:" >&5
12498cat conftest.$ac_ext >&5
12499 ac_cv_have_size_t="no"
12500
12501fi
12502rm -f conftest.$ac_objext conftest.$ac_ext
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12506echo "${ECHO_T}$ac_cv_have_size_t" >&6
12507if test "x$ac_cv_have_size_t" = "xyes" ; then
12508 cat >>confdefs.h <<\_ACEOF
12509@%:@define HAVE_SIZE_T 1
12510_ACEOF
12511
12512fi
12513
12514echo "$as_me:$LINENO: checking for ssize_t" >&5
12515echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12516if test "${ac_cv_have_ssize_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519
12520 cat >conftest.$ac_ext <<_ACEOF
12521#line $LINENO "configure"
12522#include "confdefs.h"
12523
12524#include <sys/types.h>
12525
12526#ifdef F77_DUMMY_MAIN
12527# ifdef __cplusplus
12528 extern "C"
12529# endif
12530 int F77_DUMMY_MAIN() { return 1; }
12531#endif
12532int
12533main ()
12534{
12535 ssize_t foo; foo = 1235;
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_have_ssize_t="yes"
12553else
12554 echo "$as_me: failed program was:" >&5
12555cat conftest.$ac_ext >&5
12556 ac_cv_have_ssize_t="no"
12557
12558fi
12559rm -f conftest.$ac_objext conftest.$ac_ext
12560
12561fi
12562echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12563echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12564if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12565 cat >>confdefs.h <<\_ACEOF
12566@%:@define HAVE_SSIZE_T 1
12567_ACEOF
12568
12569fi
12570
12571echo "$as_me:$LINENO: checking for clock_t" >&5
12572echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12573if test "${ac_cv_have_clock_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575else
12576
12577 cat >conftest.$ac_ext <<_ACEOF
12578#line $LINENO "configure"
12579#include "confdefs.h"
12580
12581#include <time.h>
12582
12583#ifdef F77_DUMMY_MAIN
12584# ifdef __cplusplus
12585 extern "C"
12586# endif
12587 int F77_DUMMY_MAIN() { return 1; }
12588#endif
12589int
12590main ()
12591{
12592 clock_t foo; foo = 1235;
12593 ;
12594 return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext
12598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_have_clock_t="yes"
12610else
12611 echo "$as_me: failed program was:" >&5
12612cat conftest.$ac_ext >&5
12613 ac_cv_have_clock_t="no"
12614
12615fi
12616rm -f conftest.$ac_objext conftest.$ac_ext
12617
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12620echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12621if test "x$ac_cv_have_clock_t" = "xyes" ; then
12622 cat >>confdefs.h <<\_ACEOF
12623@%:@define HAVE_CLOCK_T 1
12624_ACEOF
12625
12626fi
12627
12628echo "$as_me:$LINENO: checking for sa_family_t" >&5
12629echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12630if test "${ac_cv_have_sa_family_t+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633
12634 cat >conftest.$ac_ext <<_ACEOF
12635#line $LINENO "configure"
12636#include "confdefs.h"
12637
12638#include <sys/types.h>
12639#include <sys/socket.h>
12640
12641#ifdef F77_DUMMY_MAIN
12642# ifdef __cplusplus
12643 extern "C"
12644# endif
12645 int F77_DUMMY_MAIN() { return 1; }
12646#endif
12647int
12648main ()
12649{
12650 sa_family_t foo; foo = 1235;
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655rm -f conftest.$ac_objext
12656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_have_sa_family_t="yes"
12668else
12669 echo "$as_me: failed program was:" >&5
12670cat conftest.$ac_ext >&5
12671 cat >conftest.$ac_ext <<_ACEOF
12672#line $LINENO "configure"
12673#include "confdefs.h"
12674
12675#include <sys/types.h>
12676#include <sys/socket.h>
12677#include <netinet/in.h>
12678
12679#ifdef F77_DUMMY_MAIN
12680# ifdef __cplusplus
12681 extern "C"
12682# endif
12683 int F77_DUMMY_MAIN() { return 1; }
12684#endif
12685int
12686main ()
12687{
12688 sa_family_t foo; foo = 1235;
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_have_sa_family_t="yes"
12706else
12707 echo "$as_me: failed program was:" >&5
12708cat conftest.$ac_ext >&5
12709 ac_cv_have_sa_family_t="no"
12710
12711fi
12712rm -f conftest.$ac_objext conftest.$ac_ext
12713
12714fi
12715rm -f conftest.$ac_objext conftest.$ac_ext
12716
12717fi
12718echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12719echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12720if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12721 cat >>confdefs.h <<\_ACEOF
12722@%:@define HAVE_SA_FAMILY_T 1
12723_ACEOF
12724
12725fi
12726
12727echo "$as_me:$LINENO: checking for pid_t" >&5
12728echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12729if test "${ac_cv_have_pid_t+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732
12733 cat >conftest.$ac_ext <<_ACEOF
12734#line $LINENO "configure"
12735#include "confdefs.h"
12736
12737#include <sys/types.h>
12738
12739#ifdef F77_DUMMY_MAIN
12740# ifdef __cplusplus
12741 extern "C"
12742# endif
12743 int F77_DUMMY_MAIN() { return 1; }
12744#endif
12745int
12746main ()
12747{
12748 pid_t foo; foo = 1235;
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753rm -f conftest.$ac_objext
12754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_have_pid_t="yes"
12766else
12767 echo "$as_me: failed program was:" >&5
12768cat conftest.$ac_ext >&5
12769 ac_cv_have_pid_t="no"
12770
12771fi
12772rm -f conftest.$ac_objext conftest.$ac_ext
12773
12774fi
12775echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12776echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12777if test "x$ac_cv_have_pid_t" = "xyes" ; then
12778 cat >>confdefs.h <<\_ACEOF
12779@%:@define HAVE_PID_T 1
12780_ACEOF
12781
12782fi
12783
12784echo "$as_me:$LINENO: checking for mode_t" >&5
12785echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12786if test "${ac_cv_have_mode_t+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789
12790 cat >conftest.$ac_ext <<_ACEOF
12791#line $LINENO "configure"
12792#include "confdefs.h"
12793
12794#include <sys/types.h>
12795
12796#ifdef F77_DUMMY_MAIN
12797# ifdef __cplusplus
12798 extern "C"
12799# endif
12800 int F77_DUMMY_MAIN() { return 1; }
12801#endif
12802int
12803main ()
12804{
12805 mode_t foo; foo = 1235;
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_have_mode_t="yes"
12823else
12824 echo "$as_me: failed program was:" >&5
12825cat conftest.$ac_ext >&5
12826 ac_cv_have_mode_t="no"
12827
12828fi
12829rm -f conftest.$ac_objext conftest.$ac_ext
12830
12831fi
12832echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12833echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12834if test "x$ac_cv_have_mode_t" = "xyes" ; then
12835 cat >>confdefs.h <<\_ACEOF
12836@%:@define HAVE_MODE_T 1
12837_ACEOF
12838
12839fi
12840
12841
12842echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12843echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12844if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847
12848 cat >conftest.$ac_ext <<_ACEOF
12849#line $LINENO "configure"
12850#include "confdefs.h"
12851
12852#include <sys/types.h>
12853#include <sys/socket.h>
12854
12855#ifdef F77_DUMMY_MAIN
12856# ifdef __cplusplus
12857 extern "C"
12858# endif
12859 int F77_DUMMY_MAIN() { return 1; }
12860#endif
12861int
12862main ()
12863{
12864 struct sockaddr_storage s;
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869rm -f conftest.$ac_objext
12870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_have_struct_sockaddr_storage="yes"
12882else
12883 echo "$as_me: failed program was:" >&5
12884cat conftest.$ac_ext >&5
12885 ac_cv_have_struct_sockaddr_storage="no"
12886
12887fi
12888rm -f conftest.$ac_objext conftest.$ac_ext
12889
12890fi
12891echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12892echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12893if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12894 cat >>confdefs.h <<\_ACEOF
12895@%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12896_ACEOF
12897
12898fi
12899
12900echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12901echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12902if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905
12906 cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908#include "confdefs.h"
12909
12910#include <sys/types.h>
12911#include <netinet/in.h>
12912
12913#ifdef F77_DUMMY_MAIN
12914# ifdef __cplusplus
12915 extern "C"
12916# endif
12917 int F77_DUMMY_MAIN() { return 1; }
12918#endif
12919int
12920main ()
12921{
12922 struct sockaddr_in6 s; s.sin6_family = 0;
12923 ;
12924 return 0;
12925}
12926_ACEOF
12927rm -f conftest.$ac_objext
12928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_have_struct_sockaddr_in6="yes"
12940else
12941 echo "$as_me: failed program was:" >&5
12942cat conftest.$ac_ext >&5
12943 ac_cv_have_struct_sockaddr_in6="no"
12944
12945fi
12946rm -f conftest.$ac_objext conftest.$ac_ext
12947
12948fi
12949echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12950echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12951if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12952 cat >>confdefs.h <<\_ACEOF
12953@%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12954_ACEOF
12955
12956fi
12957
12958echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12959echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12960if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963
12964 cat >conftest.$ac_ext <<_ACEOF
12965#line $LINENO "configure"
12966#include "confdefs.h"
12967
12968#include <sys/types.h>
12969#include <netinet/in.h>
12970
12971#ifdef F77_DUMMY_MAIN
12972# ifdef __cplusplus
12973 extern "C"
12974# endif
12975 int F77_DUMMY_MAIN() { return 1; }
12976#endif
12977int
12978main ()
12979{
12980 struct in6_addr s; s.s6_addr[0] = 0;
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_have_struct_in6_addr="yes"
12998else
12999 echo "$as_me: failed program was:" >&5
13000cat conftest.$ac_ext >&5
13001 ac_cv_have_struct_in6_addr="no"
13002
13003fi
13004rm -f conftest.$ac_objext conftest.$ac_ext
13005
13006fi
13007echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13008echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13009if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13010 cat >>confdefs.h <<\_ACEOF
13011@%:@define HAVE_STRUCT_IN6_ADDR 1
13012_ACEOF
13013
13014fi
13015
13016echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13017echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13018if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021
13022 cat >conftest.$ac_ext <<_ACEOF
13023#line $LINENO "configure"
13024#include "confdefs.h"
13025
13026#include <sys/types.h>
13027#include <sys/socket.h>
13028#include <netdb.h>
13029
13030#ifdef F77_DUMMY_MAIN
13031# ifdef __cplusplus
13032 extern "C"
13033# endif
13034 int F77_DUMMY_MAIN() { return 1; }
13035#endif
13036int
13037main ()
13038{
13039 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044rm -f conftest.$ac_objext
13045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_have_struct_addrinfo="yes"
13057else
13058 echo "$as_me: failed program was:" >&5
13059cat conftest.$ac_ext >&5
13060 ac_cv_have_struct_addrinfo="no"
13061
13062fi
13063rm -f conftest.$ac_objext conftest.$ac_ext
13064
13065fi
13066echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
13067echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13068if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13069 cat >>confdefs.h <<\_ACEOF
13070@%:@define HAVE_STRUCT_ADDRINFO 1
13071_ACEOF
13072
13073fi
13074
13075echo "$as_me:$LINENO: checking for struct timeval" >&5
13076echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13077if test "${ac_cv_have_struct_timeval+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080
13081 cat >conftest.$ac_ext <<_ACEOF
13082#line $LINENO "configure"
13083#include "confdefs.h"
13084 #include <sys/time.h>
13085#ifdef F77_DUMMY_MAIN
13086# ifdef __cplusplus
13087 extern "C"
13088# endif
13089 int F77_DUMMY_MAIN() { return 1; }
13090#endif
13091int
13092main ()
13093{
13094 struct timeval tv; tv.tv_sec = 1;
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_have_struct_timeval="yes"
13112else
13113 echo "$as_me: failed program was:" >&5
13114cat conftest.$ac_ext >&5
13115 ac_cv_have_struct_timeval="no"
13116
13117fi
13118rm -f conftest.$ac_objext conftest.$ac_ext
13119
13120fi
13121echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
13122echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13123if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13124 cat >>confdefs.h <<\_ACEOF
13125@%:@define HAVE_STRUCT_TIMEVAL 1
13126_ACEOF
13127
13128 have_struct_timeval=1
13129fi
13130
13131# If we don't have int64_t then we can't compile sftp-server. So don't
13132# even attempt to do it.
13133if test "x$ac_cv_have_int64_t" = "xno" -a \
13134 "x$ac_cv_sizeof_long_int" != "x8" -a \
13135 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13136 NO_SFTP='#'
13137else
13138 if test "$cross_compiling" = yes; then
13139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13141 { (exit 1); exit 1; }; }
13142else
13143 cat >conftest.$ac_ext <<_ACEOF
13144#line $LINENO "configure"
13145#include "confdefs.h"
13146
13147#include <stdio.h>
13148#include <string.h>
13149#ifdef HAVE_SNPRINTF
13150main()
13151{
13152 char buf[50];
13153 char expected_out[50];
13154 int mazsize = 50 ;
13155#if (SIZEOF_LONG_INT == 8)
13156 long int num = 0x7fffffffffffffff;
13157#else
13158 long long num = 0x7fffffffffffffffll;
13159#endif
13160 strcpy(expected_out, "9223372036854775807");
13161 snprintf(buf, mazsize, "%lld", num);
13162 if(strcmp(buf, expected_out) != 0)
13163 exit(1);
13164 exit(0);
13165}
13166#else
13167main() { exit(0); }
13168#endif
13169
13170_ACEOF
13171rm -f conftest$ac_exeext
13172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 true
13183else
13184 echo "$as_me: program exited with status $ac_status" >&5
13185echo "$as_me: failed program was:" >&5
13186cat conftest.$ac_ext >&5
13187( exit $ac_status )
13188 cat >>confdefs.h <<\_ACEOF
13189@%:@define BROKEN_SNPRINTF 1
13190_ACEOF
13191
13192
13193fi
13194rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195fi
13196fi
13197
13198
13199
13200# look for field 'ut_host' in header 'utmp.h'
13201 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13202 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13203 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
13204echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13205 if eval "test \"\${$ossh_varname+set}\" = set"; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208
13209 cat >conftest.$ac_ext <<_ACEOF
13210#line $LINENO "configure"
13211#include "confdefs.h"
13212#include <utmp.h>
13213
13214_ACEOF
13215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 egrep "ut_host" >/dev/null 2>&1; then
13217 eval "$ossh_varname=yes"
13218else
13219 eval "$ossh_varname=no"
13220fi
13221rm -f conftest*
13222
13223fi
13224
13225 ossh_result=`eval 'echo $'"$ossh_varname"`
13226 if test -n "`echo $ossh_varname`"; then
13227 echo "$as_me:$LINENO: result: $ossh_result" >&5
13228echo "${ECHO_T}$ossh_result" >&6
13229 if test "x$ossh_result" = "xyes"; then
13230 cat >>confdefs.h <<\_ACEOF
13231@%:@define HAVE_HOST_IN_UTMP 1
13232_ACEOF
13233
13234 fi
13235 else
13236 echo "$as_me:$LINENO: result: no" >&5
13237echo "${ECHO_T}no" >&6
13238 fi
13239
13240
13241# look for field 'ut_host' in header 'utmpx.h'
13242 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13243 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13244 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
13245echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13246 if eval "test \"\${$ossh_varname+set}\" = set"; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248else
13249
13250 cat >conftest.$ac_ext <<_ACEOF
13251#line $LINENO "configure"
13252#include "confdefs.h"
13253#include <utmpx.h>
13254
13255_ACEOF
13256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 egrep "ut_host" >/dev/null 2>&1; then
13258 eval "$ossh_varname=yes"
13259else
13260 eval "$ossh_varname=no"
13261fi
13262rm -f conftest*
13263
13264fi
13265
13266 ossh_result=`eval 'echo $'"$ossh_varname"`
13267 if test -n "`echo $ossh_varname`"; then
13268 echo "$as_me:$LINENO: result: $ossh_result" >&5
13269echo "${ECHO_T}$ossh_result" >&6
13270 if test "x$ossh_result" = "xyes"; then
13271 cat >>confdefs.h <<\_ACEOF
13272@%:@define HAVE_HOST_IN_UTMPX 1
13273_ACEOF
13274
13275 fi
13276 else
13277 echo "$as_me:$LINENO: result: no" >&5
13278echo "${ECHO_T}no" >&6
13279 fi
13280
13281
13282# look for field 'syslen' in header 'utmpx.h'
13283 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13284 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13285 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13286echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13287 if eval "test \"\${$ossh_varname+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289else
13290
13291 cat >conftest.$ac_ext <<_ACEOF
13292#line $LINENO "configure"
13293#include "confdefs.h"
13294#include <utmpx.h>
13295
13296_ACEOF
13297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 egrep "syslen" >/dev/null 2>&1; then
13299 eval "$ossh_varname=yes"
13300else
13301 eval "$ossh_varname=no"
13302fi
13303rm -f conftest*
13304
13305fi
13306
13307 ossh_result=`eval 'echo $'"$ossh_varname"`
13308 if test -n "`echo $ossh_varname`"; then
13309 echo "$as_me:$LINENO: result: $ossh_result" >&5
13310echo "${ECHO_T}$ossh_result" >&6
13311 if test "x$ossh_result" = "xyes"; then
13312 cat >>confdefs.h <<\_ACEOF
13313@%:@define HAVE_SYSLEN_IN_UTMPX 1
13314_ACEOF
13315
13316 fi
13317 else
13318 echo "$as_me:$LINENO: result: no" >&5
13319echo "${ECHO_T}no" >&6
13320 fi
13321
13322
13323# look for field 'ut_pid' in header 'utmp.h'
13324 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13325 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13326 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13327echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13328 if eval "test \"\${$ossh_varname+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331
13332 cat >conftest.$ac_ext <<_ACEOF
13333#line $LINENO "configure"
13334#include "confdefs.h"
13335#include <utmp.h>
13336
13337_ACEOF
13338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 egrep "ut_pid" >/dev/null 2>&1; then
13340 eval "$ossh_varname=yes"
13341else
13342 eval "$ossh_varname=no"
13343fi
13344rm -f conftest*
13345
13346fi
13347
13348 ossh_result=`eval 'echo $'"$ossh_varname"`
13349 if test -n "`echo $ossh_varname`"; then
13350 echo "$as_me:$LINENO: result: $ossh_result" >&5
13351echo "${ECHO_T}$ossh_result" >&6
13352 if test "x$ossh_result" = "xyes"; then
13353 cat >>confdefs.h <<\_ACEOF
13354@%:@define HAVE_PID_IN_UTMP 1
13355_ACEOF
13356
13357 fi
13358 else
13359 echo "$as_me:$LINENO: result: no" >&5
13360echo "${ECHO_T}no" >&6
13361 fi
13362
13363
13364# look for field 'ut_type' in header 'utmp.h'
13365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13367 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13368echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13369 if eval "test \"\${$ossh_varname+set}\" = set"; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372
13373 cat >conftest.$ac_ext <<_ACEOF
13374#line $LINENO "configure"
13375#include "confdefs.h"
13376#include <utmp.h>
13377
13378_ACEOF
13379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 egrep "ut_type" >/dev/null 2>&1; then
13381 eval "$ossh_varname=yes"
13382else
13383 eval "$ossh_varname=no"
13384fi
13385rm -f conftest*
13386
13387fi
13388
13389 ossh_result=`eval 'echo $'"$ossh_varname"`
13390 if test -n "`echo $ossh_varname`"; then
13391 echo "$as_me:$LINENO: result: $ossh_result" >&5
13392echo "${ECHO_T}$ossh_result" >&6
13393 if test "x$ossh_result" = "xyes"; then
13394 cat >>confdefs.h <<\_ACEOF
13395@%:@define HAVE_TYPE_IN_UTMP 1
13396_ACEOF
13397
13398 fi
13399 else
13400 echo "$as_me:$LINENO: result: no" >&5
13401echo "${ECHO_T}no" >&6
13402 fi
13403
13404
13405# look for field 'ut_type' in header 'utmpx.h'
13406 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13407 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13408 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13409echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13410 if eval "test \"\${$ossh_varname+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413
13414 cat >conftest.$ac_ext <<_ACEOF
13415#line $LINENO "configure"
13416#include "confdefs.h"
13417#include <utmpx.h>
13418
13419_ACEOF
13420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "ut_type" >/dev/null 2>&1; then
13422 eval "$ossh_varname=yes"
13423else
13424 eval "$ossh_varname=no"
13425fi
13426rm -f conftest*
13427
13428fi
13429
13430 ossh_result=`eval 'echo $'"$ossh_varname"`
13431 if test -n "`echo $ossh_varname`"; then
13432 echo "$as_me:$LINENO: result: $ossh_result" >&5
13433echo "${ECHO_T}$ossh_result" >&6
13434 if test "x$ossh_result" = "xyes"; then
13435 cat >>confdefs.h <<\_ACEOF
13436@%:@define HAVE_TYPE_IN_UTMPX 1
13437_ACEOF
13438
13439 fi
13440 else
13441 echo "$as_me:$LINENO: result: no" >&5
13442echo "${ECHO_T}no" >&6
13443 fi
13444
13445
13446# look for field 'ut_tv' in header 'utmp.h'
13447 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13448 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13449 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13450echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13451 if eval "test \"\${$ossh_varname+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454
13455 cat >conftest.$ac_ext <<_ACEOF
13456#line $LINENO "configure"
13457#include "confdefs.h"
13458#include <utmp.h>
13459
13460_ACEOF
13461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 egrep "ut_tv" >/dev/null 2>&1; then
13463 eval "$ossh_varname=yes"
13464else
13465 eval "$ossh_varname=no"
13466fi
13467rm -f conftest*
13468
13469fi
13470
13471 ossh_result=`eval 'echo $'"$ossh_varname"`
13472 if test -n "`echo $ossh_varname`"; then
13473 echo "$as_me:$LINENO: result: $ossh_result" >&5
13474echo "${ECHO_T}$ossh_result" >&6
13475 if test "x$ossh_result" = "xyes"; then
13476 cat >>confdefs.h <<\_ACEOF
13477@%:@define HAVE_TV_IN_UTMP 1
13478_ACEOF
13479
13480 fi
13481 else
13482 echo "$as_me:$LINENO: result: no" >&5
13483echo "${ECHO_T}no" >&6
13484 fi
13485
13486
13487# look for field 'ut_id' in header 'utmp.h'
13488 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13489 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13490 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13491echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13492 if eval "test \"\${$ossh_varname+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495
13496 cat >conftest.$ac_ext <<_ACEOF
13497#line $LINENO "configure"
13498#include "confdefs.h"
13499#include <utmp.h>
13500
13501_ACEOF
13502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503 egrep "ut_id" >/dev/null 2>&1; then
13504 eval "$ossh_varname=yes"
13505else
13506 eval "$ossh_varname=no"
13507fi
13508rm -f conftest*
13509
13510fi
13511
13512 ossh_result=`eval 'echo $'"$ossh_varname"`
13513 if test -n "`echo $ossh_varname`"; then
13514 echo "$as_me:$LINENO: result: $ossh_result" >&5
13515echo "${ECHO_T}$ossh_result" >&6
13516 if test "x$ossh_result" = "xyes"; then
13517 cat >>confdefs.h <<\_ACEOF
13518@%:@define HAVE_ID_IN_UTMP 1
13519_ACEOF
13520
13521 fi
13522 else
13523 echo "$as_me:$LINENO: result: no" >&5
13524echo "${ECHO_T}no" >&6
13525 fi
13526
13527
13528# look for field 'ut_id' in header 'utmpx.h'
13529 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13530 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13531 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13532echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13533 if eval "test \"\${$ossh_varname+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536
13537 cat >conftest.$ac_ext <<_ACEOF
13538#line $LINENO "configure"
13539#include "confdefs.h"
13540#include <utmpx.h>
13541
13542_ACEOF
13543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13544 egrep "ut_id" >/dev/null 2>&1; then
13545 eval "$ossh_varname=yes"
13546else
13547 eval "$ossh_varname=no"
13548fi
13549rm -f conftest*
13550
13551fi
13552
13553 ossh_result=`eval 'echo $'"$ossh_varname"`
13554 if test -n "`echo $ossh_varname`"; then
13555 echo "$as_me:$LINENO: result: $ossh_result" >&5
13556echo "${ECHO_T}$ossh_result" >&6
13557 if test "x$ossh_result" = "xyes"; then
13558 cat >>confdefs.h <<\_ACEOF
13559@%:@define HAVE_ID_IN_UTMPX 1
13560_ACEOF
13561
13562 fi
13563 else
13564 echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566 fi
13567
13568
13569# look for field 'ut_addr' in header 'utmp.h'
13570 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13571 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13572 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13573echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13574 if eval "test \"\${$ossh_varname+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577
13578 cat >conftest.$ac_ext <<_ACEOF
13579#line $LINENO "configure"
13580#include "confdefs.h"
13581#include <utmp.h>
13582
13583_ACEOF
13584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 egrep "ut_addr" >/dev/null 2>&1; then
13586 eval "$ossh_varname=yes"
13587else
13588 eval "$ossh_varname=no"
13589fi
13590rm -f conftest*
13591
13592fi
13593
13594 ossh_result=`eval 'echo $'"$ossh_varname"`
13595 if test -n "`echo $ossh_varname`"; then
13596 echo "$as_me:$LINENO: result: $ossh_result" >&5
13597echo "${ECHO_T}$ossh_result" >&6
13598 if test "x$ossh_result" = "xyes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600@%:@define HAVE_ADDR_IN_UTMP 1
13601_ACEOF
13602
13603 fi
13604 else
13605 echo "$as_me:$LINENO: result: no" >&5
13606echo "${ECHO_T}no" >&6
13607 fi
13608
13609
13610# look for field 'ut_addr' in header 'utmpx.h'
13611 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13612 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13613 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13614echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13615 if eval "test \"\${$ossh_varname+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618
13619 cat >conftest.$ac_ext <<_ACEOF
13620#line $LINENO "configure"
13621#include "confdefs.h"
13622#include <utmpx.h>
13623
13624_ACEOF
13625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 egrep "ut_addr" >/dev/null 2>&1; then
13627 eval "$ossh_varname=yes"
13628else
13629 eval "$ossh_varname=no"
13630fi
13631rm -f conftest*
13632
13633fi
13634
13635 ossh_result=`eval 'echo $'"$ossh_varname"`
13636 if test -n "`echo $ossh_varname`"; then
13637 echo "$as_me:$LINENO: result: $ossh_result" >&5
13638echo "${ECHO_T}$ossh_result" >&6
13639 if test "x$ossh_result" = "xyes"; then
13640 cat >>confdefs.h <<\_ACEOF
13641@%:@define HAVE_ADDR_IN_UTMPX 1
13642_ACEOF
13643
13644 fi
13645 else
13646 echo "$as_me:$LINENO: result: no" >&5
13647echo "${ECHO_T}no" >&6
13648 fi
13649
13650
13651# look for field 'ut_addr_v6' in header 'utmp.h'
13652 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13653 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13654 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13655echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13656 if eval "test \"\${$ossh_varname+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659
13660 cat >conftest.$ac_ext <<_ACEOF
13661#line $LINENO "configure"
13662#include "confdefs.h"
13663#include <utmp.h>
13664
13665_ACEOF
13666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "ut_addr_v6" >/dev/null 2>&1; then
13668 eval "$ossh_varname=yes"
13669else
13670 eval "$ossh_varname=no"
13671fi
13672rm -f conftest*
13673
13674fi
13675
13676 ossh_result=`eval 'echo $'"$ossh_varname"`
13677 if test -n "`echo $ossh_varname`"; then
13678 echo "$as_me:$LINENO: result: $ossh_result" >&5
13679echo "${ECHO_T}$ossh_result" >&6
13680 if test "x$ossh_result" = "xyes"; then
13681 cat >>confdefs.h <<\_ACEOF
13682@%:@define HAVE_ADDR_V6_IN_UTMP 1
13683_ACEOF
13684
13685 fi
13686 else
13687 echo "$as_me:$LINENO: result: no" >&5
13688echo "${ECHO_T}no" >&6
13689 fi
13690
13691
13692# look for field 'ut_addr_v6' in header 'utmpx.h'
13693 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13694 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13695 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13696echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13697 if eval "test \"\${$ossh_varname+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700
13701 cat >conftest.$ac_ext <<_ACEOF
13702#line $LINENO "configure"
13703#include "confdefs.h"
13704#include <utmpx.h>
13705
13706_ACEOF
13707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708 egrep "ut_addr_v6" >/dev/null 2>&1; then
13709 eval "$ossh_varname=yes"
13710else
13711 eval "$ossh_varname=no"
13712fi
13713rm -f conftest*
13714
13715fi
13716
13717 ossh_result=`eval 'echo $'"$ossh_varname"`
13718 if test -n "`echo $ossh_varname`"; then
13719 echo "$as_me:$LINENO: result: $ossh_result" >&5
13720echo "${ECHO_T}$ossh_result" >&6
13721 if test "x$ossh_result" = "xyes"; then
13722 cat >>confdefs.h <<\_ACEOF
13723@%:@define HAVE_ADDR_V6_IN_UTMPX 1
13724_ACEOF
13725
13726 fi
13727 else
13728 echo "$as_me:$LINENO: result: no" >&5
13729echo "${ECHO_T}no" >&6
13730 fi
13731
13732
13733# look for field 'ut_exit' in header 'utmp.h'
13734 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13735 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13736 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13737echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13738 if eval "test \"\${$ossh_varname+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741
13742 cat >conftest.$ac_ext <<_ACEOF
13743#line $LINENO "configure"
13744#include "confdefs.h"
13745#include <utmp.h>
13746
13747_ACEOF
13748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 egrep "ut_exit" >/dev/null 2>&1; then
13750 eval "$ossh_varname=yes"
13751else
13752 eval "$ossh_varname=no"
13753fi
13754rm -f conftest*
13755
13756fi
13757
13758 ossh_result=`eval 'echo $'"$ossh_varname"`
13759 if test -n "`echo $ossh_varname`"; then
13760 echo "$as_me:$LINENO: result: $ossh_result" >&5
13761echo "${ECHO_T}$ossh_result" >&6
13762 if test "x$ossh_result" = "xyes"; then
13763 cat >>confdefs.h <<\_ACEOF
13764@%:@define HAVE_EXIT_IN_UTMP 1
13765_ACEOF
13766
13767 fi
13768 else
13769 echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771 fi
13772
13773
13774# look for field 'ut_time' in header 'utmp.h'
13775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13777 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13778echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13779 if eval "test \"\${$ossh_varname+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782
13783 cat >conftest.$ac_ext <<_ACEOF
13784#line $LINENO "configure"
13785#include "confdefs.h"
13786#include <utmp.h>
13787
13788_ACEOF
13789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 egrep "ut_time" >/dev/null 2>&1; then
13791 eval "$ossh_varname=yes"
13792else
13793 eval "$ossh_varname=no"
13794fi
13795rm -f conftest*
13796
13797fi
13798
13799 ossh_result=`eval 'echo $'"$ossh_varname"`
13800 if test -n "`echo $ossh_varname`"; then
13801 echo "$as_me:$LINENO: result: $ossh_result" >&5
13802echo "${ECHO_T}$ossh_result" >&6
13803 if test "x$ossh_result" = "xyes"; then
13804 cat >>confdefs.h <<\_ACEOF
13805@%:@define HAVE_TIME_IN_UTMP 1
13806_ACEOF
13807
13808 fi
13809 else
13810 echo "$as_me:$LINENO: result: no" >&5
13811echo "${ECHO_T}no" >&6
13812 fi
13813
13814
13815# look for field 'ut_time' in header 'utmpx.h'
13816 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13817 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13818 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13819echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13820 if eval "test \"\${$ossh_varname+set}\" = set"; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823
13824 cat >conftest.$ac_ext <<_ACEOF
13825#line $LINENO "configure"
13826#include "confdefs.h"
13827#include <utmpx.h>
13828
13829_ACEOF
13830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 egrep "ut_time" >/dev/null 2>&1; then
13832 eval "$ossh_varname=yes"
13833else
13834 eval "$ossh_varname=no"
13835fi
13836rm -f conftest*
13837
13838fi
13839
13840 ossh_result=`eval 'echo $'"$ossh_varname"`
13841 if test -n "`echo $ossh_varname`"; then
13842 echo "$as_me:$LINENO: result: $ossh_result" >&5
13843echo "${ECHO_T}$ossh_result" >&6
13844 if test "x$ossh_result" = "xyes"; then
13845 cat >>confdefs.h <<\_ACEOF
13846@%:@define HAVE_TIME_IN_UTMPX 1
13847_ACEOF
13848
13849 fi
13850 else
13851 echo "$as_me:$LINENO: result: no" >&5
13852echo "${ECHO_T}no" >&6
13853 fi
13854
13855
13856# look for field 'ut_tv' in header 'utmpx.h'
13857 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13858 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13859 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13860echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13861 if eval "test \"\${$ossh_varname+set}\" = set"; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863else
13864
13865 cat >conftest.$ac_ext <<_ACEOF
13866#line $LINENO "configure"
13867#include "confdefs.h"
13868#include <utmpx.h>
13869
13870_ACEOF
13871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 egrep "ut_tv" >/dev/null 2>&1; then
13873 eval "$ossh_varname=yes"
13874else
13875 eval "$ossh_varname=no"
13876fi
13877rm -f conftest*
13878
13879fi
13880
13881 ossh_result=`eval 'echo $'"$ossh_varname"`
13882 if test -n "`echo $ossh_varname`"; then
13883 echo "$as_me:$LINENO: result: $ossh_result" >&5
13884echo "${ECHO_T}$ossh_result" >&6
13885 if test "x$ossh_result" = "xyes"; then
13886 cat >>confdefs.h <<\_ACEOF
13887@%:@define HAVE_TV_IN_UTMPX 1
13888_ACEOF
13889
13890 fi
13891 else
13892 echo "$as_me:$LINENO: result: no" >&5
13893echo "${ECHO_T}no" >&6
13894 fi
13895
13896
13897echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13898echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13899if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 cat >conftest.$ac_ext <<_ACEOF
13903#line $LINENO "configure"
13904#include "confdefs.h"
13905$ac_includes_default
13906#ifdef F77_DUMMY_MAIN
13907# ifdef __cplusplus
13908 extern "C"
13909# endif
13910 int F77_DUMMY_MAIN() { return 1; }
13911#endif
13912int
13913main ()
13914{
13915static struct stat ac_aggr;
13916if (ac_aggr.st_blksize)
13917return 0;
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
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_member_struct_stat_st_blksize=yes
13935else
13936 echo "$as_me: failed program was:" >&5
13937cat conftest.$ac_ext >&5
13938ac_cv_member_struct_stat_st_blksize=no
13939fi
13940rm -f conftest.$ac_objext conftest.$ac_ext
13941fi
13942echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13943echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13944if test $ac_cv_member_struct_stat_st_blksize = yes; then
13945
13946cat >>confdefs.h <<_ACEOF
13947@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13948_ACEOF
13949
13950
13951fi
13952
13953
13954echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13955echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13956if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959
13960 cat >conftest.$ac_ext <<_ACEOF
13961#line $LINENO "configure"
13962#include "confdefs.h"
13963
13964#include <sys/types.h>
13965#include <sys/socket.h>
13966
13967#ifdef F77_DUMMY_MAIN
13968# ifdef __cplusplus
13969 extern "C"
13970# endif
13971 int F77_DUMMY_MAIN() { return 1; }
13972#endif
13973int
13974main ()
13975{
13976 struct sockaddr_storage s; s.ss_family = 1;
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_have_ss_family_in_struct_ss="yes"
13994else
13995 echo "$as_me: failed program was:" >&5
13996cat conftest.$ac_ext >&5
13997 ac_cv_have_ss_family_in_struct_ss="no"
13998fi
13999rm -f conftest.$ac_objext conftest.$ac_ext
14000
14001fi
14002echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14003echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14004if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14005 cat >>confdefs.h <<\_ACEOF
14006@%:@define HAVE_SS_FAMILY_IN_SS 1
14007_ACEOF
14008
14009fi
14010
14011echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
14012echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14013if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016
14017 cat >conftest.$ac_ext <<_ACEOF
14018#line $LINENO "configure"
14019#include "confdefs.h"
14020
14021#include <sys/types.h>
14022#include <sys/socket.h>
14023
14024#ifdef F77_DUMMY_MAIN
14025# ifdef __cplusplus
14026 extern "C"
14027# endif
14028 int F77_DUMMY_MAIN() { return 1; }
14029#endif
14030int
14031main ()
14032{
14033 struct sockaddr_storage s; s.__ss_family = 1;
14034 ;
14035 return 0;
14036}
14037_ACEOF
14038rm -f conftest.$ac_objext
14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_have___ss_family_in_struct_ss="yes"
14051else
14052 echo "$as_me: failed program was:" >&5
14053cat conftest.$ac_ext >&5
14054 ac_cv_have___ss_family_in_struct_ss="no"
14055
14056fi
14057rm -f conftest.$ac_objext conftest.$ac_ext
14058
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14061echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14062if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14063 cat >>confdefs.h <<\_ACEOF
14064@%:@define HAVE___SS_FAMILY_IN_SS 1
14065_ACEOF
14066
14067fi
14068
14069echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
14070echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14071if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074
14075 cat >conftest.$ac_ext <<_ACEOF
14076#line $LINENO "configure"
14077#include "confdefs.h"
14078
14079#include <pwd.h>
14080
14081#ifdef F77_DUMMY_MAIN
14082# ifdef __cplusplus
14083 extern "C"
14084# endif
14085 int F77_DUMMY_MAIN() { return 1; }
14086#endif
14087int
14088main ()
14089{
14090 struct passwd p; p.pw_class = 0;
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_have_pw_class_in_struct_passwd="yes"
14108else
14109 echo "$as_me: failed program was:" >&5
14110cat conftest.$ac_ext >&5
14111 ac_cv_have_pw_class_in_struct_passwd="no"
14112
14113fi
14114rm -f conftest.$ac_objext conftest.$ac_ext
14115
14116fi
14117echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14118echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14119if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14120 cat >>confdefs.h <<\_ACEOF
14121@%:@define HAVE_PW_CLASS_IN_PASSWD 1
14122_ACEOF
14123
14124fi
14125
14126echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
14127echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14128if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131
14132 cat >conftest.$ac_ext <<_ACEOF
14133#line $LINENO "configure"
14134#include "confdefs.h"
14135
14136#include <pwd.h>
14137
14138#ifdef F77_DUMMY_MAIN
14139# ifdef __cplusplus
14140 extern "C"
14141# endif
14142 int F77_DUMMY_MAIN() { return 1; }
14143#endif
14144int
14145main ()
14146{
14147 struct passwd p; p.pw_expire = 0;
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
14153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_have_pw_expire_in_struct_passwd="yes"
14165else
14166 echo "$as_me: failed program was:" >&5
14167cat conftest.$ac_ext >&5
14168 ac_cv_have_pw_expire_in_struct_passwd="no"
14169
14170fi
14171rm -f conftest.$ac_objext conftest.$ac_ext
14172
14173fi
14174echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14175echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14176if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14177 cat >>confdefs.h <<\_ACEOF
14178@%:@define HAVE_PW_EXPIRE_IN_PASSWD 1
14179_ACEOF
14180
14181fi
14182
14183echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
14184echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14185if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188
14189 cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191#include "confdefs.h"
14192
14193#include <pwd.h>
14194
14195#ifdef F77_DUMMY_MAIN
14196# ifdef __cplusplus
14197 extern "C"
14198# endif
14199 int F77_DUMMY_MAIN() { return 1; }
14200#endif
14201int
14202main ()
14203{
14204 struct passwd p; p.pw_change = 0;
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext
14210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_have_pw_change_in_struct_passwd="yes"
14222else
14223 echo "$as_me: failed program was:" >&5
14224cat conftest.$ac_ext >&5
14225 ac_cv_have_pw_change_in_struct_passwd="no"
14226
14227fi
14228rm -f conftest.$ac_objext conftest.$ac_ext
14229
14230fi
14231echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14232echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14233if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14234 cat >>confdefs.h <<\_ACEOF
14235@%:@define HAVE_PW_CHANGE_IN_PASSWD 1
14236_ACEOF
14237
14238fi
14239
14240echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
14241echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14242if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245
14246 if test "$cross_compiling" = yes; then
14247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14248echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14249 { (exit 1); exit 1; }; }
14250else
14251 cat >conftest.$ac_ext <<_ACEOF
14252#line $LINENO "configure"
14253#include "confdefs.h"
14254
14255#include <sys/types.h>
14256#include <sys/socket.h>
14257#include <sys/uio.h>
14258int main() {
14259#ifdef msg_accrights
14260exit(1);
14261#endif
14262struct msghdr m;
14263m.msg_accrights = 0;
14264exit(0);
14265}
14266
14267_ACEOF
14268rm -f conftest$ac_exeext
14269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14270 (eval $ac_link) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && { ac_try='./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_have_accrights_in_msghdr="yes"
14280else
14281 echo "$as_me: program exited with status $ac_status" >&5
14282echo "$as_me: failed program was:" >&5
14283cat conftest.$ac_ext >&5
14284( exit $ac_status )
14285 ac_cv_have_accrights_in_msghdr="no"
14286
14287fi
14288rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14289fi
14290
14291fi
14292echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14293echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14294if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14295 cat >>confdefs.h <<\_ACEOF
14296@%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
14297_ACEOF
14298
14299fi
14300
14301echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14302echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14303if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306
14307 if test "$cross_compiling" = yes; then
14308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14309echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14310 { (exit 1); exit 1; }; }
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313#line $LINENO "configure"
14314#include "confdefs.h"
14315
14316#include <sys/types.h>
14317#include <sys/socket.h>
14318#include <sys/uio.h>
14319int main() {
14320#ifdef msg_control
14321exit(1);
14322#endif
14323struct msghdr m;
14324m.msg_control = 0;
14325exit(0);
14326}
14327
14328_ACEOF
14329rm -f conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_have_control_in_msghdr="yes"
14341else
14342 echo "$as_me: program exited with status $ac_status" >&5
14343echo "$as_me: failed program was:" >&5
14344cat conftest.$ac_ext >&5
14345( exit $ac_status )
14346 ac_cv_have_control_in_msghdr="no"
14347
14348fi
14349rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350fi
14351
14352fi
14353echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14354echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14355if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14356 cat >>confdefs.h <<\_ACEOF
14357@%:@define HAVE_CONTROL_IN_MSGHDR 1
14358_ACEOF
14359
14360fi
14361
14362echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14363echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14364if test "${ac_cv_libc_defines___progname+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366else
14367
14368 cat >conftest.$ac_ext <<_ACEOF
14369#line $LINENO "configure"
14370#include "confdefs.h"
14371
14372#ifdef F77_DUMMY_MAIN
14373# ifdef __cplusplus
14374 extern "C"
14375# endif
14376 int F77_DUMMY_MAIN() { return 1; }
14377#endif
14378int
14379main ()
14380{
14381 extern char *__progname; printf("%s", __progname);
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_libc_defines___progname="yes"
14399else
14400 echo "$as_me: failed program was:" >&5
14401cat conftest.$ac_ext >&5
14402 ac_cv_libc_defines___progname="no"
14403
14404fi
14405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14406
14407fi
14408echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14409echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14410if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14411 cat >>confdefs.h <<\_ACEOF
14412@%:@define HAVE___PROGNAME 1
14413_ACEOF
14414
14415fi
14416
14417echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14418echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14419if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424#line $LINENO "configure"
14425#include "confdefs.h"
14426
14427#include <stdio.h>
14428
14429#ifdef F77_DUMMY_MAIN
14430# ifdef __cplusplus
14431 extern "C"
14432# endif
14433 int F77_DUMMY_MAIN() { return 1; }
14434#endif
14435int
14436main ()
14437{
14438 printf("%s", __FUNCTION__);
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest$ac_exeext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_cc_implements___FUNCTION__="yes"
14456else
14457 echo "$as_me: failed program was:" >&5
14458cat conftest.$ac_ext >&5
14459 ac_cv_cc_implements___FUNCTION__="no"
14460
14461fi
14462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14463
14464fi
14465echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14466echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14467if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14468 cat >>confdefs.h <<\_ACEOF
14469@%:@define HAVE___FUNCTION__ 1
14470_ACEOF
14471
14472fi
14473
14474echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14475echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14476if test "${ac_cv_cc_implements___func__+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479
14480 cat >conftest.$ac_ext <<_ACEOF
14481#line $LINENO "configure"
14482#include "confdefs.h"
14483
14484#include <stdio.h>
14485
14486#ifdef F77_DUMMY_MAIN
14487# ifdef __cplusplus
14488 extern "C"
14489# endif
14490 int F77_DUMMY_MAIN() { return 1; }
14491#endif
14492int
14493main ()
14494{
14495 printf("%s", __func__);
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext conftest$ac_exeext
14501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_cc_implements___func__="yes"
14513else
14514 echo "$as_me: failed program was:" >&5
14515cat conftest.$ac_ext >&5
14516 ac_cv_cc_implements___func__="no"
14517
14518fi
14519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14520
14521fi
14522echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14523echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14524if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14525 cat >>confdefs.h <<\_ACEOF
14526@%:@define HAVE___func__ 1
14527_ACEOF
14528
14529fi
14530
14531echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14532echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14533if test "${ac_cv_have_getopt_optreset+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535else
14536
14537 cat >conftest.$ac_ext <<_ACEOF
14538#line $LINENO "configure"
14539#include "confdefs.h"
14540
14541#include <getopt.h>
14542
14543#ifdef F77_DUMMY_MAIN
14544# ifdef __cplusplus
14545 extern "C"
14546# endif
14547 int F77_DUMMY_MAIN() { return 1; }
14548#endif
14549int
14550main ()
14551{
14552 extern int optreset; optreset = 0;
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext conftest$ac_exeext
14558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_have_getopt_optreset="yes"
14570else
14571 echo "$as_me: failed program was:" >&5
14572cat conftest.$ac_ext >&5
14573 ac_cv_have_getopt_optreset="no"
14574
14575fi
14576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14577
14578fi
14579echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14580echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14581if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14582 cat >>confdefs.h <<\_ACEOF
14583@%:@define HAVE_GETOPT_OPTRESET 1
14584_ACEOF
14585
14586fi
14587
14588echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14589echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14590if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593
14594 cat >conftest.$ac_ext <<_ACEOF
14595#line $LINENO "configure"
14596#include "confdefs.h"
14597
14598#ifdef F77_DUMMY_MAIN
14599# ifdef __cplusplus
14600 extern "C"
14601# endif
14602 int F77_DUMMY_MAIN() { return 1; }
14603#endif
14604int
14605main ()
14606{
14607 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext conftest$ac_exeext
14613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -s conftest$ac_exeext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_libc_defines_sys_errlist="yes"
14625else
14626 echo "$as_me: failed program was:" >&5
14627cat conftest.$ac_ext >&5
14628 ac_cv_libc_defines_sys_errlist="no"
14629
14630fi
14631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14632
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14635echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14636if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14637 cat >>confdefs.h <<\_ACEOF
14638@%:@define HAVE_SYS_ERRLIST 1
14639_ACEOF
14640
14641fi
14642
14643
14644echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14645echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14646if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649
14650 cat >conftest.$ac_ext <<_ACEOF
14651#line $LINENO "configure"
14652#include "confdefs.h"
14653
14654#ifdef F77_DUMMY_MAIN
14655# ifdef __cplusplus
14656 extern "C"
14657# endif
14658 int F77_DUMMY_MAIN() { return 1; }
14659#endif
14660int
14661main ()
14662{
14663 extern int sys_nerr; printf("%i", sys_nerr);
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext conftest$ac_exeext
14669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_libc_defines_sys_nerr="yes"
14681else
14682 echo "$as_me: failed program was:" >&5
14683cat conftest.$ac_ext >&5
14684 ac_cv_libc_defines_sys_nerr="no"
14685
14686fi
14687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14688
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14691echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14692if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14693 cat >>confdefs.h <<\_ACEOF
14694@%:@define HAVE_SYS_NERR 1
14695_ACEOF
14696
14697fi
14698
14699SCARD_MSG="no"
14700
14701# Check whether user wants sectok support
14702
14703# Check whether --with-sectok or --without-sectok was given.
14704if test "${with_sectok+set}" = set; then
14705 withval="$with_sectok"
14706
14707 if test "x$withval" != "xno" ; then
14708 if test "x$withval" != "xyes" ; then
14709 CPPFLAGS="$CPPFLAGS -I${withval}"
14710 LDFLAGS="$LDFLAGS -L${withval}"
14711 if test ! -z "$need_dash_r" ; then
14712 LDFLAGS="$LDFLAGS -R${withval}"
14713 fi
14714 if test ! -z "$blibpath" ; then
14715 blibpath="$blibpath:${withval}"
14716 fi
14717 fi
14718
14719for ac_header in sectok.h
14720do
14721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo "$as_me:$LINENO: checking for $ac_header" >&5
14724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14725if eval "test \"\${$as_ac_Header+set}\" = set"; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727fi
14728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730else
14731 # Is the header compilable?
14732echo "$as_me:$LINENO: checking $ac_header usability" >&5
14733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14734cat >conftest.$ac_ext <<_ACEOF
14735#line $LINENO "configure"
14736#include "confdefs.h"
14737$ac_includes_default
14738@%:@include <$ac_header>
14739_ACEOF
14740rm -f conftest.$ac_objext
14741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_header_compiler=yes
14753else
14754 echo "$as_me: failed program was:" >&5
14755cat conftest.$ac_ext >&5
14756ac_header_compiler=no
14757fi
14758rm -f conftest.$ac_objext conftest.$ac_ext
14759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760echo "${ECHO_T}$ac_header_compiler" >&6
14761
14762# Is the header present?
14763echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14765cat >conftest.$ac_ext <<_ACEOF
14766#line $LINENO "configure"
14767#include "confdefs.h"
14768@%:@include <$ac_header>
14769_ACEOF
14770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14772 ac_status=$?
14773 egrep -v '^ *\+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 else
14781 ac_cpp_err=
14782 fi
14783else
14784 ac_cpp_err=yes
14785fi
14786if test -z "$ac_cpp_err"; then
14787 ac_header_preproc=yes
14788else
14789 echo "$as_me: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 ac_header_preproc=no
14792fi
14793rm -f conftest.err conftest.$ac_ext
14794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14795echo "${ECHO_T}$ac_header_preproc" >&6
14796
14797# So? What about this header?
14798case $ac_header_compiler:$ac_header_preproc in
14799 yes:no )
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14804 no:yes )
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14811esac
14812echo "$as_me:$LINENO: checking for $ac_header" >&5
14813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14814if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 eval "$as_ac_Header=$ac_header_preproc"
14818fi
14819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14821
14822fi
14823if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826_ACEOF
14827
14828fi
14829
14830done
14831
14832 if test "$ac_cv_header_sectok_h" != yes; then
14833 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14834echo "$as_me: error: Can't find sectok.h" >&2;}
14835 { (exit 1); exit 1; }; }
14836 fi
14837
14838echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14839echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14840if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 ac_check_lib_save_LIBS=$LIBS
14844LIBS="-lsectok $LIBS"
14845cat >conftest.$ac_ext <<_ACEOF
14846#line $LINENO "configure"
14847#include "confdefs.h"
14848
14849/* Override any gcc2 internal prototype to avoid an error. */
14850#ifdef __cplusplus
14851extern "C"
14852#endif
14853/* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855char sectok_open ();
14856#ifdef F77_DUMMY_MAIN
14857# ifdef __cplusplus
14858 extern "C"
14859# endif
14860 int F77_DUMMY_MAIN() { return 1; }
14861#endif
14862int
14863main ()
14864{
14865sectok_open ();
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext conftest$ac_exeext
14871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_lib_sectok_sectok_open=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885cat conftest.$ac_ext >&5
14886ac_cv_lib_sectok_sectok_open=no
14887fi
14888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14889LIBS=$ac_check_lib_save_LIBS
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14892echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14893if test $ac_cv_lib_sectok_sectok_open = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895@%:@define HAVE_LIBSECTOK 1
14896_ACEOF
14897
14898 LIBS="-lsectok $LIBS"
14899
14900fi
14901
14902 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14903 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14904echo "$as_me: error: Can't find libsectok" >&2;}
14905 { (exit 1); exit 1; }; }
14906 fi
14907 cat >>confdefs.h <<\_ACEOF
14908@%:@define SMARTCARD 1
14909_ACEOF
14910
14911 cat >>confdefs.h <<\_ACEOF
14912@%:@define USE_SECTOK 1
14913_ACEOF
14914
14915 SCARD_MSG="yes, using sectok"
14916 fi
14917
14918
14919fi;
14920
14921# Check whether user wants OpenSC support
14922
14923# Check whether --with-opensc or --without-opensc was given.
14924if test "${with_opensc+set}" = set; then
14925 withval="$with_opensc"
14926 opensc_config_prefix="$withval"
14927else
14928 opensc_config_prefix=""
14929fi;
14930if test x$opensc_config_prefix != x ; then
14931 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14932 # Extract the first word of "opensc-config", so it can be a program name with args.
14933set dummy opensc-config; ac_word=$2
14934echo "$as_me:$LINENO: checking for $ac_word" >&5
14935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14936if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939 case $OPENSC_CONFIG in
14940 [\\/]* | ?:[\\/]*)
14941 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14942 ;;
14943 *)
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945for as_dir in $PATH
14946do
14947 IFS=$as_save_IFS
14948 test -z "$as_dir" && as_dir=.
14949 for ac_exec_ext in '' $ac_executable_extensions; do
14950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14951 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14953 break 2
14954 fi
14955done
14956done
14957
14958 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14959 ;;
14960esac
14961fi
14962OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14963
14964if test -n "$OPENSC_CONFIG"; then
14965 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14966echo "${ECHO_T}$OPENSC_CONFIG" >&6
14967else
14968 echo "$as_me:$LINENO: result: no" >&5
14969echo "${ECHO_T}no" >&6
14970fi
14971
14972 if test "$OPENSC_CONFIG" != "no"; then
14973 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14974 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14975 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14976 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14977 cat >>confdefs.h <<\_ACEOF
14978@%:@define SMARTCARD 1
14979_ACEOF
14980
14981 cat >>confdefs.h <<\_ACEOF
14982@%:@define USE_OPENSC 1
14983_ACEOF
14984
14985 SCARD_MSG="yes, using OpenSC"
14986 fi
14987fi
14988
14989# Check whether user wants Kerberos 5 support
14990KRB5_MSG="no"
14991
14992# Check whether --with-kerberos5 or --without-kerberos5 was given.
14993if test "${with_kerberos5+set}" = set; then
14994 withval="$with_kerberos5"
14995
14996 if test "x$withval" != "xno" ; then
14997 if test "x$withval" = "xyes" ; then
14998 KRB5ROOT="/usr/local"
14999 else
15000 KRB5ROOT=${withval}
15001 fi
15002 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15003 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15004 cat >>confdefs.h <<\_ACEOF
15005@%:@define KRB5 1
15006_ACEOF
15007
15008 KRB5_MSG="yes"
15009 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
15010echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012#line $LINENO "configure"
15013#include "confdefs.h"
15014 #include <krb5.h>
15015#ifdef F77_DUMMY_MAIN
15016# ifdef __cplusplus
15017 extern "C"
15018# endif
15019 int F77_DUMMY_MAIN() { return 1; }
15020#endif
15021int
15022main ()
15023{
15024 char *tmp = heimdal_version;
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 echo "$as_me:$LINENO: result: yes" >&5
15042echo "${ECHO_T}yes" >&6
15043 cat >>confdefs.h <<\_ACEOF
15044@%:@define HEIMDAL 1
15045_ACEOF
15046
15047 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15048
15049else
15050 echo "$as_me: failed program was:" >&5
15051cat conftest.$ac_ext >&5
15052 echo "$as_me:$LINENO: result: no" >&5
15053echo "${ECHO_T}no" >&6
15054 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15055
15056
15057fi
15058rm -f conftest.$ac_objext conftest.$ac_ext
15059 if test ! -z "$need_dash_r" ; then
15060 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15061 fi
15062 if test ! -z "$blibpath" ; then
15063 blibpath="$blibpath:${KRB5ROOT}/lib"
15064 fi
15065
15066echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15067echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15068if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070else
15071 ac_check_lib_save_LIBS=$LIBS
15072LIBS="-lresolv $LIBS"
15073cat >conftest.$ac_ext <<_ACEOF
15074#line $LINENO "configure"
15075#include "confdefs.h"
15076
15077/* Override any gcc2 internal prototype to avoid an error. */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081/* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15083char dn_expand ();
15084#ifdef F77_DUMMY_MAIN
15085# ifdef __cplusplus
15086 extern "C"
15087# endif
15088 int F77_DUMMY_MAIN() { return 1; }
15089#endif
15090int
15091main ()
15092{
15093dn_expand ();
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_lib_resolv_dn_expand=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113cat conftest.$ac_ext >&5
15114ac_cv_lib_resolv_dn_expand=no
15115fi
15116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117LIBS=$ac_check_lib_save_LIBS
15118fi
15119echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15120echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15121if test $ac_cv_lib_resolv_dn_expand = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123@%:@define HAVE_LIBRESOLV 1
15124_ACEOF
15125
15126 LIBS="-lresolv $LIBS"
15127
15128fi
15129
15130
15131 KRB5=yes
15132 fi
15133
15134
15135fi;
15136# Check whether user wants Kerberos 4 support
15137KRB4_MSG="no"
15138
15139# Check whether --with-kerberos4 or --without-kerberos4 was given.
15140if test "${with_kerberos4+set}" = set; then
15141 withval="$with_kerberos4"
15142
15143 if test "x$withval" != "xno" ; then
15144 if test "x$withval" != "xyes" ; then
15145 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15146 LDFLAGS="$LDFLAGS -L${withval}/lib"
15147 if test ! -z "$need_dash_r" ; then
15148 LDFLAGS="$LDFLAGS -R${withval}/lib"
15149 fi
15150 if test ! -z "$blibpath" ; then
15151 blibpath="$blibpath:${withval}/lib"
15152 fi
15153 else
15154 if test -d /usr/include/kerberosIV ; then
15155 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
15156 fi
15157 fi
15158
15159
15160for ac_header in krb.h
15161do
15162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15166if eval "test \"\${$as_ac_Header+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171else
15172 # Is the header compilable?
15173echo "$as_me:$LINENO: checking $ac_header usability" >&5
15174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15175cat >conftest.$ac_ext <<_ACEOF
15176#line $LINENO "configure"
15177#include "confdefs.h"
15178$ac_includes_default
15179@%:@include <$ac_header>
15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194else
15195 echo "$as_me: failed program was:" >&5
15196cat conftest.$ac_ext >&5
15197ac_header_compiler=no
15198fi
15199rm -f conftest.$ac_objext conftest.$ac_ext
15200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201echo "${ECHO_T}$ac_header_compiler" >&6
15202
15203# Is the header present?
15204echo "$as_me:$LINENO: checking $ac_header presence" >&5
15205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15206cat >conftest.$ac_ext <<_ACEOF
15207#line $LINENO "configure"
15208#include "confdefs.h"
15209@%:@include <$ac_header>
15210_ACEOF
15211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 egrep -v '^ *\+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 else
15222 ac_cpp_err=
15223 fi
15224else
15225 ac_cpp_err=yes
15226fi
15227if test -z "$ac_cpp_err"; then
15228 ac_header_preproc=yes
15229else
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 ac_header_preproc=no
15233fi
15234rm -f conftest.err conftest.$ac_ext
15235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236echo "${ECHO_T}$ac_header_preproc" >&6
15237
15238# So? What about this header?
15239case $ac_header_compiler:$ac_header_preproc in
15240 yes:no )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15245 no:yes )
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15252esac
15253echo "$as_me:$LINENO: checking for $ac_header" >&5
15254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257else
15258 eval "$as_ac_Header=$ac_header_preproc"
15259fi
15260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267_ACEOF
15268
15269fi
15270
15271done
15272
15273 if test "$ac_cv_header_krb_h" != yes; then
15274 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
15275echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
15276 fi
15277
15278echo "$as_me:$LINENO: checking for main in -lkrb" >&5
15279echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
15280if test "${ac_cv_lib_krb_main+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 ac_check_lib_save_LIBS=$LIBS
15284LIBS="-lkrb $LIBS"
15285cat >conftest.$ac_ext <<_ACEOF
15286#line $LINENO "configure"
15287#include "confdefs.h"
15288
15289
15290#ifdef F77_DUMMY_MAIN
15291# ifdef __cplusplus
15292 extern "C"
15293# endif
15294 int F77_DUMMY_MAIN() { return 1; }
15295#endif
15296int
15297main ()
15298{
15299main ();
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304rm -f conftest.$ac_objext conftest$ac_exeext
15305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_lib_krb_main=yes
15317else
15318 echo "$as_me: failed program was:" >&5
15319cat conftest.$ac_ext >&5
15320ac_cv_lib_krb_main=no
15321fi
15322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323LIBS=$ac_check_lib_save_LIBS
15324fi
15325echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15326echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15327if test $ac_cv_lib_krb_main = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329@%:@define HAVE_LIBKRB 1
15330_ACEOF
15331
15332 LIBS="-lkrb $LIBS"
15333
15334fi
15335
15336 if test "$ac_cv_lib_krb_main" != yes; then
15337
15338echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15339echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15340if test "${ac_cv_lib_krb4_main+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 ac_check_lib_save_LIBS=$LIBS
15344LIBS="-lkrb4 $LIBS"
15345cat >conftest.$ac_ext <<_ACEOF
15346#line $LINENO "configure"
15347#include "confdefs.h"
15348
15349
15350#ifdef F77_DUMMY_MAIN
15351# ifdef __cplusplus
15352 extern "C"
15353# endif
15354 int F77_DUMMY_MAIN() { return 1; }
15355#endif
15356int
15357main ()
15358{
15359main ();
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_krb4_main=yes
15377else
15378 echo "$as_me: failed program was:" >&5
15379cat conftest.$ac_ext >&5
15380ac_cv_lib_krb4_main=no
15381fi
15382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383LIBS=$ac_check_lib_save_LIBS
15384fi
15385echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15386echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15387if test $ac_cv_lib_krb4_main = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389@%:@define HAVE_LIBKRB4 1
15390_ACEOF
15391
15392 LIBS="-lkrb4 $LIBS"
15393
15394fi
15395
15396 if test "$ac_cv_lib_krb4_main" != yes; then
15397 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15398echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15399 else
15400 KLIBS="-lkrb4"
15401 fi
15402 else
15403 KLIBS="-lkrb"
15404 fi
15405
15406echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15407echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15408if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411 ac_check_lib_save_LIBS=$LIBS
15412LIBS="-ldes $LIBS"
15413cat >conftest.$ac_ext <<_ACEOF
15414#line $LINENO "configure"
15415#include "confdefs.h"
15416
15417/* Override any gcc2 internal prototype to avoid an error. */
15418#ifdef __cplusplus
15419extern "C"
15420#endif
15421/* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423char des_cbc_encrypt ();
15424#ifdef F77_DUMMY_MAIN
15425# ifdef __cplusplus
15426 extern "C"
15427# endif
15428 int F77_DUMMY_MAIN() { return 1; }
15429#endif
15430int
15431main ()
15432{
15433des_cbc_encrypt ();
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext conftest$ac_exeext
15439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_des_des_cbc_encrypt=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453cat conftest.$ac_ext >&5
15454ac_cv_lib_des_des_cbc_encrypt=no
15455fi
15456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15457LIBS=$ac_check_lib_save_LIBS
15458fi
15459echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15460echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15461if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15462 cat >>confdefs.h <<_ACEOF
15463@%:@define HAVE_LIBDES 1
15464_ACEOF
15465
15466 LIBS="-ldes $LIBS"
15467
15468fi
15469
15470 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15471
15472echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15473echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15474if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 ac_check_lib_save_LIBS=$LIBS
15478LIBS="-ldes425 $LIBS"
15479cat >conftest.$ac_ext <<_ACEOF
15480#line $LINENO "configure"
15481#include "confdefs.h"
15482
15483/* Override any gcc2 internal prototype to avoid an error. */
15484#ifdef __cplusplus
15485extern "C"
15486#endif
15487/* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15489char des_cbc_encrypt ();
15490#ifdef F77_DUMMY_MAIN
15491# ifdef __cplusplus
15492 extern "C"
15493# endif
15494 int F77_DUMMY_MAIN() { return 1; }
15495#endif
15496int
15497main ()
15498{
15499des_cbc_encrypt ();
15500 ;
15501 return 0;
15502}
15503_ACEOF
15504rm -f conftest.$ac_objext conftest$ac_exeext
15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_lib_des425_des_cbc_encrypt=yes
15517else
15518 echo "$as_me: failed program was:" >&5
15519cat conftest.$ac_ext >&5
15520ac_cv_lib_des425_des_cbc_encrypt=no
15521fi
15522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15523LIBS=$ac_check_lib_save_LIBS
15524fi
15525echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15526echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15527if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529@%:@define HAVE_LIBDES425 1
15530_ACEOF
15531
15532 LIBS="-ldes425 $LIBS"
15533
15534fi
15535
15536 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15537 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15538echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15539 else
15540 KLIBS="-ldes425"
15541 fi
15542 else
15543 KLIBS="-ldes"
15544 fi
15545
15546echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15547echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15548if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 ac_check_lib_save_LIBS=$LIBS
15552LIBS="-lresolv $LIBS"
15553cat >conftest.$ac_ext <<_ACEOF
15554#line $LINENO "configure"
15555#include "confdefs.h"
15556
15557/* Override any gcc2 internal prototype to avoid an error. */
15558#ifdef __cplusplus
15559extern "C"
15560#endif
15561/* We use char because int might match the return type of a gcc2
15562 builtin and then its argument prototype would still apply. */
15563char dn_expand ();
15564#ifdef F77_DUMMY_MAIN
15565# ifdef __cplusplus
15566 extern "C"
15567# endif
15568 int F77_DUMMY_MAIN() { return 1; }
15569#endif
15570int
15571main ()
15572{
15573dn_expand ();
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_resolv_dn_expand=yes
15591else
15592 echo "$as_me: failed program was:" >&5
15593cat conftest.$ac_ext >&5
15594ac_cv_lib_resolv_dn_expand=no
15595fi
15596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597LIBS=$ac_check_lib_save_LIBS
15598fi
15599echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15600echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15601if test $ac_cv_lib_resolv_dn_expand = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603@%:@define HAVE_LIBRESOLV 1
15604_ACEOF
15605
15606 LIBS="-lresolv $LIBS"
15607
15608fi
15609
15610 KRB4=yes
15611 KRB4_MSG="yes"
15612 cat >>confdefs.h <<\_ACEOF
15613@%:@define KRB4 1
15614_ACEOF
15615
15616 fi
15617
15618
15619fi;
15620
15621# Check whether user wants AFS support
15622AFS_MSG="no"
15623
15624# Check whether --with-afs or --without-afs was given.
15625if test "${with_afs+set}" = set; then
15626 withval="$with_afs"
15627
15628 if test "x$withval" != "xno" ; then
15629
15630 if test "x$withval" != "xyes" ; then
15631 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15632 LDFLAGS="$LDFLAGS -L${withval}/lib"
15633 fi
15634
15635 if test -z "$KRB4" ; then
15636 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15637echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15638 fi
15639
15640 LIBS="-lkafs $LIBS"
15641 if test ! -z "$AFS_LIBS" ; then
15642 LIBS="$LIBS $AFS_LIBS"
15643 fi
15644 cat >>confdefs.h <<\_ACEOF
15645@%:@define AFS 1
15646_ACEOF
15647
15648 AFS_MSG="yes"
15649 fi
15650
15651
15652fi;
15653LIBS="$LIBS $KLIBS $K5LIBS"
15654
15655# Looking for programs, paths and files
15656
15657PRIVSEP_PATH=/var/empty
15658
15659# Check whether --with-privsep-path or --without-privsep-path was given.
15660if test "${with_privsep_path+set}" = set; then
15661 withval="$with_privsep_path"
15662
15663 if test "x$withval" != "$no" ; then
15664 PRIVSEP_PATH=$withval
15665 fi
15666
15667
15668fi;
15669
15670
15671
15672# Check whether --with-xauth or --without-xauth was given.
15673if test "${with_xauth+set}" = set; then
15674 withval="$with_xauth"
15675
15676 if test "x$withval" != "xno" ; then
15677 xauth_path=$withval
15678 fi
15679
15680else
15681
15682 TestPath="$PATH"
15683 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15684 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15685 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15686 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15687 # Extract the first word of "xauth", so it can be a program name with args.
15688set dummy xauth; ac_word=$2
15689echo "$as_me:$LINENO: checking for $ac_word" >&5
15690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15691if test "${ac_cv_path_xauth_path+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694 case $xauth_path in
15695 [\\/]* | ?:[\\/]*)
15696 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15697 ;;
15698 *)
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700for as_dir in $TestPath
15701do
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15709 fi
15710done
15711done
15712
15713 ;;
15714esac
15715fi
15716xauth_path=$ac_cv_path_xauth_path
15717
15718if test -n "$xauth_path"; then
15719 echo "$as_me:$LINENO: result: $xauth_path" >&5
15720echo "${ECHO_T}$xauth_path" >&6
15721else
15722 echo "$as_me:$LINENO: result: no" >&5
15723echo "${ECHO_T}no" >&6
15724fi
15725
15726 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15727 xauth_path="/usr/openwin/bin/xauth"
15728 fi
15729
15730
15731fi;
15732
15733if test -z "$xauth_path" ; then
15734 XAUTH_PATH="undefined"
15735
15736else
15737 cat >>confdefs.h <<_ACEOF
15738@%:@define XAUTH_PATH "$xauth_path"
15739_ACEOF
15740
15741 XAUTH_PATH=$xauth_path
15742
15743fi
15744
15745# Check for mail directory (last resort if we cannot get it from headers)
15746if test ! -z "$MAIL" ; then
15747 maildir=`dirname $MAIL`
15748 cat >>confdefs.h <<_ACEOF
15749@%:@define MAIL_DIRECTORY "$maildir"
15750_ACEOF
15751
15752fi
15753
15754if test -z "$no_dev_ptmx" ; then
15755 if test "x$disable_ptmx_check" != "xyes" ; then
15756 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15757echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15758if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760else
15761 test "$cross_compiling" = yes &&
15762 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15763echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15764 { (exit 1); exit 1; }; }
15765if test -r ""/dev/ptmx""; then
15766 ac_cv_file___dev_ptmx_=yes
15767else
15768 ac_cv_file___dev_ptmx_=no
15769fi
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15772echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15773if test $ac_cv_file___dev_ptmx_ = yes; then
15774
15775 cat >>confdefs.h <<_ACEOF
15776@%:@define HAVE_DEV_PTMX 1
15777_ACEOF
15778
15779 have_dev_ptmx=1
15780
15781
15782fi
15783
15784 fi
15785fi
15786echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15787echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15788if test "${ac_cv_file___dev_ptc_+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 test "$cross_compiling" = yes &&
15792 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15793echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15794 { (exit 1); exit 1; }; }
15795if test -r ""/dev/ptc""; then
15796 ac_cv_file___dev_ptc_=yes
15797else
15798 ac_cv_file___dev_ptc_=no
15799fi
15800fi
15801echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15802echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15803if test $ac_cv_file___dev_ptc_ = yes; then
15804
15805 cat >>confdefs.h <<_ACEOF
15806@%:@define HAVE_DEV_PTS_AND_PTC 1
15807_ACEOF
15808
15809 have_dev_ptc=1
15810
15811
15812fi
15813
15814
15815# Options from here on. Some of these are preset by platform above
15816
15817# Check whether --with-mantype or --without-mantype was given.
15818if test "${with_mantype+set}" = set; then
15819 withval="$with_mantype"
15820
15821 case "$withval" in
15822 man|cat|doc)
15823 MANTYPE=$withval
15824 ;;
15825 *)
15826 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15827echo "$as_me: error: invalid man type: $withval" >&2;}
15828 { (exit 1); exit 1; }; }
15829 ;;
15830 esac
15831
15832
15833fi;
15834if test -z "$MANTYPE"; then
15835 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15836 for ac_prog in nroff awf
15837do
15838 # Extract the first word of "$ac_prog", so it can be a program name with args.
15839set dummy $ac_prog; ac_word=$2
15840echo "$as_me:$LINENO: checking for $ac_word" >&5
15841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842if test "${ac_cv_path_NROFF+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844else
15845 case $NROFF in
15846 [\\/]* | ?:[\\/]*)
15847 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15848 ;;
15849 *)
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851for as_dir in $TestPath
15852do
15853 IFS=$as_save_IFS
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15859 break 2
15860 fi
15861done
15862done
15863
15864 ;;
15865esac
15866fi
15867NROFF=$ac_cv_path_NROFF
15868
15869if test -n "$NROFF"; then
15870 echo "$as_me:$LINENO: result: $NROFF" >&5
15871echo "${ECHO_T}$NROFF" >&6
15872else
15873 echo "$as_me:$LINENO: result: no" >&5
15874echo "${ECHO_T}no" >&6
15875fi
15876
15877 test -n "$NROFF" && break
15878done
15879test -n "$NROFF" || NROFF="/bin/false"
15880
15881 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15882 MANTYPE=doc
15883 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15884 MANTYPE=man
15885 else
15886 MANTYPE=cat
15887 fi
15888fi
15889
15890if test "$MANTYPE" = "doc"; then
15891 mansubdir=man;
15892else
15893 mansubdir=$MANTYPE;
15894fi
15895
15896
15897# Check whether to enable MD5 passwords
15898MD5_MSG="no"
15899
15900# Check whether --with-md5-passwords or --without-md5-passwords was given.
15901if test "${with_md5_passwords+set}" = set; then
15902 withval="$with_md5_passwords"
15903
15904 if test "x$withval" != "xno" ; then
15905 cat >>confdefs.h <<\_ACEOF
15906@%:@define HAVE_MD5_PASSWORDS 1
15907_ACEOF
15908
15909 MD5_MSG="yes"
15910 fi
15911
15912
15913fi;
15914
15915# Whether to disable shadow password support
15916
15917# Check whether --with-shadow or --without-shadow was given.
15918if test "${with_shadow+set}" = set; then
15919 withval="$with_shadow"
15920
15921 if test "x$withval" = "xno" ; then
15922 cat >>confdefs.h <<\_ACEOF
15923@%:@define DISABLE_SHADOW 1
15924_ACEOF
15925
15926 disable_shadow=yes
15927 fi
15928
15929
15930fi;
15931
15932if test -z "$disable_shadow" ; then
15933 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15934echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936#line $LINENO "configure"
15937#include "confdefs.h"
15938
15939#include <sys/types.h>
15940#include <shadow.h>
15941 struct spwd sp;
15942
15943#ifdef F77_DUMMY_MAIN
15944# ifdef __cplusplus
15945 extern "C"
15946# endif
15947 int F77_DUMMY_MAIN() { return 1; }
15948#endif
15949int
15950main ()
15951{
15952 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 sp_expire_available=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972cat conftest.$ac_ext >&5
15973
15974
15975fi
15976rm -f conftest.$ac_objext conftest.$ac_ext
15977
15978 if test "x$sp_expire_available" = "xyes" ; then
15979 echo "$as_me:$LINENO: result: yes" >&5
15980echo "${ECHO_T}yes" >&6
15981 cat >>confdefs.h <<\_ACEOF
15982@%:@define HAS_SHADOW_EXPIRE 1
15983_ACEOF
15984
15985 else
15986 echo "$as_me:$LINENO: result: no" >&5
15987echo "${ECHO_T}no" >&6
15988 fi
15989fi
15990
15991# Use ip address instead of hostname in $DISPLAY
15992if test ! -z "$IPADDR_IN_DISPLAY" ; then
15993 DISPLAY_HACK_MSG="yes"
15994 cat >>confdefs.h <<\_ACEOF
15995@%:@define IPADDR_IN_DISPLAY 1
15996_ACEOF
15997
15998else
15999 DISPLAY_HACK_MSG="no"
16000
16001# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16002if test "${with_ipaddr_display+set}" = set; then
16003 withval="$with_ipaddr_display"
16004
16005 if test "x$withval" != "xno" ; then
16006 cat >>confdefs.h <<\_ACEOF
16007@%:@define IPADDR_IN_DISPLAY 1
16008_ACEOF
16009
16010 DISPLAY_HACK_MSG="yes"
16011 fi
16012
16013
16014fi;
16015fi
16016
16017if test $ac_cv_func_login_getcapbool = "yes" -a \
16018 $ac_cv_header_login_cap_h = "yes" ; then
16019 USES_LOGIN_CONF=yes
16020fi
16021# Whether to mess with the default path
16022SERVER_PATH_MSG="(default)"
16023
16024# Check whether --with-default-path or --without-default-path was given.
16025if test "${with_default_path+set}" = set; then
16026 withval="$with_default_path"
16027
16028 if test "$USES_LOGIN_CONF" = "yes" ; then
16029 { echo "$as_me:$LINENO: WARNING:
16030--with-default-path=PATH has no effect on this system.
16031Edit /etc/login.conf instead." >&5
16032echo "$as_me: WARNING:
16033--with-default-path=PATH has no effect on this system.
16034Edit /etc/login.conf instead." >&2;}
16035 elif test "x$withval" != "xno" ; then
16036 user_path="$withval"
16037 SERVER_PATH_MSG="$withval"
16038 fi
16039
16040else
16041 if test "$USES_LOGIN_CONF" = "yes" ; then
16042 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16043echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16044 else
16045 if test "$cross_compiling" = yes; then
16046 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16047
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050#line $LINENO "configure"
16051#include "confdefs.h"
16052
16053/* find out what STDPATH is */
16054#include <stdio.h>
16055#ifdef HAVE_PATHS_H
16056# include <paths.h>
16057#endif
16058#ifndef _PATH_STDPATH
16059# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16060#endif
16061#include <sys/types.h>
16062#include <sys/stat.h>
16063#include <fcntl.h>
16064#define DATA "conftest.stdpath"
16065
16066main()
16067{
16068 FILE *fd;
16069 int rc;
16070
16071 fd = fopen(DATA,"w");
16072 if(fd == NULL)
16073 exit(1);
16074
16075 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16076 exit(1);
16077
16078 exit(0);
16079}
16080
16081_ACEOF
16082rm -f conftest$ac_exeext
16083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16084 (eval $ac_link) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 user_path=`cat conftest.stdpath`
16094else
16095 echo "$as_me: program exited with status $ac_status" >&5
16096echo "$as_me: failed program was:" >&5
16097cat conftest.$ac_ext >&5
16098( exit $ac_status )
16099 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16100fi
16101rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16102fi
16103# make sure $bindir is in USER_PATH so scp will work
16104 t_bindir=`eval echo ${bindir}`
16105 case $t_bindir in
16106 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16107 esac
16108 case $t_bindir in
16109 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16110 esac
16111 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16112 if test $? -ne 0 ; then
16113 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16114 if test $? -ne 0 ; then
16115 user_path=$user_path:$t_bindir
16116 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16117echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16118 fi
16119 fi
16120 fi
16121
16122fi;
16123if test "$USES_LOGIN_CONF" != "yes" ; then
16124 cat >>confdefs.h <<_ACEOF
16125@%:@define USER_PATH "$user_path"
16126_ACEOF
16127
16128
16129fi
16130
16131# Set superuser path separately to user path
16132
16133# Check whether --with-superuser-path or --without-superuser-path was given.
16134if test "${with_superuser_path+set}" = set; then
16135 withval="$with_superuser_path"
16136
16137 if test "x$withval" != "xno" ; then
16138 cat >>confdefs.h <<_ACEOF
16139@%:@define SUPERUSER_PATH "$withval"
16140_ACEOF
16141
16142 superuser_path=$withval
16143 fi
16144
16145
16146fi;
16147
16148
16149# Whether to force IPv4 by default (needed on broken glibc Linux)
16150IPV4_HACK_MSG="no"
16151
16152# Check whether --with-ipv4-default or --without-ipv4-default was given.
16153if test "${with_ipv4_default+set}" = set; then
16154 withval="$with_ipv4_default"
16155
16156 if test "x$withval" != "xno" ; then
16157 cat >>confdefs.h <<\_ACEOF
16158@%:@define IPV4_DEFAULT 1
16159_ACEOF
16160
16161 IPV4_HACK_MSG="yes"
16162 fi
16163
16164
16165fi;
16166
16167echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16168echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16169IPV4_IN6_HACK_MSG="no"
16170
16171# Check whether --with-4in6 or --without-4in6 was given.
16172if test "${with_4in6+set}" = set; then
16173 withval="$with_4in6"
16174
16175 if test "x$withval" != "xno" ; then
16176 echo "$as_me:$LINENO: result: yes" >&5
16177echo "${ECHO_T}yes" >&6
16178 cat >>confdefs.h <<\_ACEOF
16179@%:@define IPV4_IN_IPV6 1
16180_ACEOF
16181
16182 IPV4_IN6_HACK_MSG="yes"
16183 else
16184 echo "$as_me:$LINENO: result: no" >&5
16185echo "${ECHO_T}no" >&6
16186 fi
16187
16188else
16189
16190 if test "x$inet6_default_4in6" = "xyes"; then
16191 echo "$as_me:$LINENO: result: yes (default)" >&5
16192echo "${ECHO_T}yes (default)" >&6
16193 cat >>confdefs.h <<\_ACEOF
16194@%:@define IPV4_IN_IPV6 1
16195_ACEOF
16196
16197 IPV4_IN6_HACK_MSG="yes"
16198 else
16199 echo "$as_me:$LINENO: result: no (default)" >&5
16200echo "${ECHO_T}no (default)" >&6
16201 fi
16202
16203
16204fi;
16205
16206# Whether to enable BSD auth support
16207BSD_AUTH_MSG=no
16208
16209# Check whether --with-bsd-auth or --without-bsd-auth was given.
16210if test "${with_bsd_auth+set}" = set; then
16211 withval="$with_bsd_auth"
16212
16213 if test "x$withval" != "xno" ; then
16214 cat >>confdefs.h <<\_ACEOF
16215@%:@define BSD_AUTH 1
16216_ACEOF
16217
16218 BSD_AUTH_MSG=yes
16219 fi
16220
16221
16222fi;
16223
16224# Where to place sshd.pid
16225piddir=/var/run
16226# make sure the directory exists
16227if test ! -d $piddir ; then
16228 piddir=`eval echo ${sysconfdir}`
16229 case $piddir in
16230 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16231 esac
16232fi
16233
16234
16235# Check whether --with-pid-dir or --without-pid-dir was given.
16236if test "${with_pid_dir+set}" = set; then
16237 withval="$with_pid_dir"
16238
16239 if test "x$withval" != "xno" ; then
16240 piddir=$withval
16241 if test ! -d $piddir ; then
16242 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16243echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16244 fi
16245 fi
16246
16247
16248fi;
16249
16250cat >>confdefs.h <<_ACEOF
16251@%:@define _PATH_SSH_PIDDIR "$piddir"
16252_ACEOF
16253
16254
16255
16256# Check whether --enable-lastlog or --disable-lastlog was given.
16257if test "${enable_lastlog+set}" = set; then
16258 enableval="$enable_lastlog"
16259 cat >>confdefs.h <<\_ACEOF
16260@%:@define DISABLE_LASTLOG 1
16261_ACEOF
16262
16263
16264fi;
16265# Check whether --enable-utmp or --disable-utmp was given.
16266if test "${enable_utmp+set}" = set; then
16267 enableval="$enable_utmp"
16268 cat >>confdefs.h <<\_ACEOF
16269@%:@define DISABLE_UTMP 1
16270_ACEOF
16271
16272
16273fi;
16274# Check whether --enable-utmpx or --disable-utmpx was given.
16275if test "${enable_utmpx+set}" = set; then
16276 enableval="$enable_utmpx"
16277 cat >>confdefs.h <<\_ACEOF
16278@%:@define DISABLE_UTMPX 1
16279_ACEOF
16280
16281
16282fi;
16283# Check whether --enable-wtmp or --disable-wtmp was given.
16284if test "${enable_wtmp+set}" = set; then
16285 enableval="$enable_wtmp"
16286 cat >>confdefs.h <<\_ACEOF
16287@%:@define DISABLE_WTMP 1
16288_ACEOF
16289
16290
16291fi;
16292# Check whether --enable-wtmpx or --disable-wtmpx was given.
16293if test "${enable_wtmpx+set}" = set; then
16294 enableval="$enable_wtmpx"
16295 cat >>confdefs.h <<\_ACEOF
16296@%:@define DISABLE_WTMPX 1
16297_ACEOF
16298
16299
16300fi;
16301# Check whether --enable-libutil or --disable-libutil was given.
16302if test "${enable_libutil+set}" = set; then
16303 enableval="$enable_libutil"
16304 cat >>confdefs.h <<\_ACEOF
16305@%:@define DISABLE_LOGIN 1
16306_ACEOF
16307
16308
16309fi;
16310# Check whether --enable-pututline or --disable-pututline was given.
16311if test "${enable_pututline+set}" = set; then
16312 enableval="$enable_pututline"
16313 cat >>confdefs.h <<\_ACEOF
16314@%:@define DISABLE_PUTUTLINE 1
16315_ACEOF
16316
16317
16318fi;
16319# Check whether --enable-pututxline or --disable-pututxline was given.
16320if test "${enable_pututxline+set}" = set; then
16321 enableval="$enable_pututxline"
16322 cat >>confdefs.h <<\_ACEOF
16323@%:@define DISABLE_PUTUTXLINE 1
16324_ACEOF
16325
16326
16327fi;
16328
16329# Check whether --with-lastlog or --without-lastlog was given.
16330if test "${with_lastlog+set}" = set; then
16331 withval="$with_lastlog"
16332
16333 if test "x$withval" = "xno" ; then
16334 cat >>confdefs.h <<\_ACEOF
16335@%:@define DISABLE_LASTLOG 1
16336_ACEOF
16337
16338 else
16339 conf_lastlog_location=$withval
16340 fi
16341
16342
16343fi;
16344
16345
16346echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16347echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16348cat >conftest.$ac_ext <<_ACEOF
16349#line $LINENO "configure"
16350#include "confdefs.h"
16351
16352#include <sys/types.h>
16353#include <utmp.h>
16354#ifdef HAVE_LASTLOG_H
16355# include <lastlog.h>
16356#endif
16357#ifdef HAVE_PATHS_H
16358# include <paths.h>
16359#endif
16360#ifdef HAVE_LOGIN_H
16361# include <login.h>
16362#endif
16363
16364#ifdef F77_DUMMY_MAIN
16365# ifdef __cplusplus
16366 extern "C"
16367# endif
16368 int F77_DUMMY_MAIN() { return 1; }
16369#endif
16370int
16371main ()
16372{
16373 char *lastlog = LASTLOG_FILE;
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380 (eval $ac_compile) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -s conftest.$ac_objext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 echo "$as_me:$LINENO: result: yes" >&5
16391echo "${ECHO_T}yes" >&6
16392else
16393 echo "$as_me: failed program was:" >&5
16394cat conftest.$ac_ext >&5
16395
16396 echo "$as_me:$LINENO: result: no" >&5
16397echo "${ECHO_T}no" >&6
16398 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16399echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16400 cat >conftest.$ac_ext <<_ACEOF
16401#line $LINENO "configure"
16402#include "confdefs.h"
16403
16404#include <sys/types.h>
16405#include <utmp.h>
16406#ifdef HAVE_LASTLOG_H
16407# include <lastlog.h>
16408#endif
16409#ifdef HAVE_PATHS_H
16410# include <paths.h>
16411#endif
16412
16413#ifdef F77_DUMMY_MAIN
16414# ifdef __cplusplus
16415 extern "C"
16416# endif
16417 int F77_DUMMY_MAIN() { return 1; }
16418#endif
16419int
16420main ()
16421{
16422 char *lastlog = _PATH_LASTLOG;
16423 ;
16424 return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext
16428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -s conftest.$ac_objext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 echo "$as_me:$LINENO: result: yes" >&5
16440echo "${ECHO_T}yes" >&6
16441else
16442 echo "$as_me: failed program was:" >&5
16443cat conftest.$ac_ext >&5
16444
16445 echo "$as_me:$LINENO: result: no" >&5
16446echo "${ECHO_T}no" >&6
16447 system_lastlog_path=no
16448
16449fi
16450rm -f conftest.$ac_objext conftest.$ac_ext
16451
16452
16453fi
16454rm -f conftest.$ac_objext conftest.$ac_ext
16455
16456if test -z "$conf_lastlog_location"; then
16457 if test x"$system_lastlog_path" = x"no" ; then
16458 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16459 if (test -d "$f" || test -f "$f") ; then
16460 conf_lastlog_location=$f
16461 fi
16462 done
16463 if test -z "$conf_lastlog_location"; then
16464 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16465echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16466 fi
16467 fi
16468fi
16469
16470if test -n "$conf_lastlog_location"; then
16471 cat >>confdefs.h <<_ACEOF
16472@%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16473_ACEOF
16474
16475fi
16476
16477echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16478echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16479cat >conftest.$ac_ext <<_ACEOF
16480#line $LINENO "configure"
16481#include "confdefs.h"
16482
16483#include <sys/types.h>
16484#include <utmp.h>
16485#ifdef HAVE_PATHS_H
16486# include <paths.h>
16487#endif
16488
16489#ifdef F77_DUMMY_MAIN
16490# ifdef __cplusplus
16491 extern "C"
16492# endif
16493 int F77_DUMMY_MAIN() { return 1; }
16494#endif
16495int
16496main ()
16497{
16498 char *utmp = UTMP_FILE;
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext
16504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 echo "$as_me:$LINENO: result: yes" >&5
16516echo "${ECHO_T}yes" >&6
16517else
16518 echo "$as_me: failed program was:" >&5
16519cat conftest.$ac_ext >&5
16520 echo "$as_me:$LINENO: result: no" >&5
16521echo "${ECHO_T}no" >&6
16522 system_utmp_path=no
16523
16524fi
16525rm -f conftest.$ac_objext conftest.$ac_ext
16526if test -z "$conf_utmp_location"; then
16527 if test x"$system_utmp_path" = x"no" ; then
16528 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16529 if test -f $f ; then
16530 conf_utmp_location=$f
16531 fi
16532 done
16533 if test -z "$conf_utmp_location"; then
16534 cat >>confdefs.h <<\_ACEOF
16535@%:@define DISABLE_UTMP 1
16536_ACEOF
16537
16538 fi
16539 fi
16540fi
16541if test -n "$conf_utmp_location"; then
16542 cat >>confdefs.h <<_ACEOF
16543@%:@define CONF_UTMP_FILE "$conf_utmp_location"
16544_ACEOF
16545
16546fi
16547
16548echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16549echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16550cat >conftest.$ac_ext <<_ACEOF
16551#line $LINENO "configure"
16552#include "confdefs.h"
16553
16554#include <sys/types.h>
16555#include <utmp.h>
16556#ifdef HAVE_PATHS_H
16557# include <paths.h>
16558#endif
16559
16560#ifdef F77_DUMMY_MAIN
16561# ifdef __cplusplus
16562 extern "C"
16563# endif
16564 int F77_DUMMY_MAIN() { return 1; }
16565#endif
16566int
16567main ()
16568{
16569 char *wtmp = WTMP_FILE;
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 echo "$as_me:$LINENO: result: yes" >&5
16587echo "${ECHO_T}yes" >&6
16588else
16589 echo "$as_me: failed program was:" >&5
16590cat conftest.$ac_ext >&5
16591 echo "$as_me:$LINENO: result: no" >&5
16592echo "${ECHO_T}no" >&6
16593 system_wtmp_path=no
16594
16595fi
16596rm -f conftest.$ac_objext conftest.$ac_ext
16597if test -z "$conf_wtmp_location"; then
16598 if test x"$system_wtmp_path" = x"no" ; then
16599 for f in /usr/adm/wtmp /var/log/wtmp; do
16600 if test -f $f ; then
16601 conf_wtmp_location=$f
16602 fi
16603 done
16604 if test -z "$conf_wtmp_location"; then
16605 cat >>confdefs.h <<\_ACEOF
16606@%:@define DISABLE_WTMP 1
16607_ACEOF
16608
16609 fi
16610 fi
16611fi
16612if test -n "$conf_wtmp_location"; then
16613 cat >>confdefs.h <<_ACEOF
16614@%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16615_ACEOF
16616
16617fi
16618
16619
16620echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16621echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16622cat >conftest.$ac_ext <<_ACEOF
16623#line $LINENO "configure"
16624#include "confdefs.h"
16625
16626#include <sys/types.h>
16627#include <utmp.h>
16628#ifdef HAVE_UTMPX_H
16629#include <utmpx.h>
16630#endif
16631#ifdef HAVE_PATHS_H
16632# include <paths.h>
16633#endif
16634
16635#ifdef F77_DUMMY_MAIN
16636# ifdef __cplusplus
16637 extern "C"
16638# endif
16639 int F77_DUMMY_MAIN() { return 1; }
16640#endif
16641int
16642main ()
16643{
16644 char *utmpx = UTMPX_FILE;
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 echo "$as_me:$LINENO: result: yes" >&5
16662echo "${ECHO_T}yes" >&6
16663else
16664 echo "$as_me: failed program was:" >&5
16665cat conftest.$ac_ext >&5
16666 echo "$as_me:$LINENO: result: no" >&5
16667echo "${ECHO_T}no" >&6
16668 system_utmpx_path=no
16669
16670fi
16671rm -f conftest.$ac_objext conftest.$ac_ext
16672if test -z "$conf_utmpx_location"; then
16673 if test x"$system_utmpx_path" = x"no" ; then
16674 cat >>confdefs.h <<\_ACEOF
16675@%:@define DISABLE_UTMPX 1
16676_ACEOF
16677
16678 fi
16679else
16680 cat >>confdefs.h <<_ACEOF
16681@%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16682_ACEOF
16683
16684fi
16685
16686echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16687echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16688cat >conftest.$ac_ext <<_ACEOF
16689#line $LINENO "configure"
16690#include "confdefs.h"
16691
16692#include <sys/types.h>
16693#include <utmp.h>
16694#ifdef HAVE_UTMPX_H
16695#include <utmpx.h>
16696#endif
16697#ifdef HAVE_PATHS_H
16698# include <paths.h>
16699#endif
16700
16701#ifdef F77_DUMMY_MAIN
16702# ifdef __cplusplus
16703 extern "C"
16704# endif
16705 int F77_DUMMY_MAIN() { return 1; }
16706#endif
16707int
16708main ()
16709{
16710 char *wtmpx = WTMPX_FILE;
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 echo "$as_me:$LINENO: result: yes" >&5
16728echo "${ECHO_T}yes" >&6
16729else
16730 echo "$as_me: failed program was:" >&5
16731cat conftest.$ac_ext >&5
16732 echo "$as_me:$LINENO: result: no" >&5
16733echo "${ECHO_T}no" >&6
16734 system_wtmpx_path=no
16735
16736fi
16737rm -f conftest.$ac_objext conftest.$ac_ext
16738if test -z "$conf_wtmpx_location"; then
16739 if test x"$system_wtmpx_path" = x"no" ; then
16740 cat >>confdefs.h <<\_ACEOF
16741@%:@define DISABLE_WTMPX 1
16742_ACEOF
16743
16744 fi
16745else
16746 cat >>confdefs.h <<_ACEOF
16747@%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16748_ACEOF
16749
16750fi
16751
16752
16753if test ! -z "$blibpath" ; then
16754 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16755 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16756echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16757fi
16758
16759if test "$PAM_MSG" = yes ; then
16760 LIBS=`echo $LIBS | sed 's/-lpam //'`
16761fi
16762if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16763 LIBS=`echo $LIBS | sed 's/-ldl //'`
16764fi
16765
16766
16767ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16768
16769cat >confcache <<\_ACEOF
16770# This file is a shell script that caches the results of configure
16771# tests run on this system so they can be shared between configure
16772# scripts and configure runs, see configure's option --config-cache.
16773# It is not useful on other systems. If it contains results you don't
16774# want to keep, you may remove or edit it.
16775#
16776# config.status only pays attention to the cache file if you give it
16777# the --recheck option to rerun configure.
16778#
16779# `ac_cv_env_foo' variables (set or unset) will be overriden when
16780# loading this file, other *unset* `ac_cv_foo' will be assigned the
16781# following values.
16782
16783_ACEOF
16784
16785# The following way of writing the cache mishandles newlines in values,
16786# but we know of no workaround that is simple, portable, and efficient.
16787# So, don't put newlines in cache variables' values.
16788# Ultrix sh set writes to stderr and can't be redirected directly,
16789# and sets the high bit in the cache file unless we assign to the vars.
16790{
16791 (set) 2>&1 |
16792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16793 *ac_space=\ *)
16794 # `set' does not quote correctly, so add quotes (double-quote
16795 # substitution turns \\\\ into \\, and sed turns \\ into \).
16796 sed -n \
16797 "s/'/'\\\\''/g;
16798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799 ;;
16800 *)
16801 # `set' quotes correctly as required by POSIX, so do not add quotes.
16802 sed -n \
16803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16804 ;;
16805 esac;
16806} |
16807 sed '
16808 t clear
16809 : clear
16810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811 t end
16812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813 : end' >>confcache
16814if cmp -s $cache_file confcache; then :; else
16815 if test -w $cache_file; then
16816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817 cat confcache >$cache_file
16818 else
16819 echo "not updating unwritable cache $cache_file"
16820 fi
16821fi
16822rm -f confcache
16823
16824test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825# Let make expand exec_prefix.
16826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16827
16828# VPATH may cause trouble with some makes, so we remove $(srcdir),
16829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830# trailing colons and then remove the whole line if VPATH becomes empty
16831# (actually we leave an empty line to preserve line numbers).
16832if test "x$srcdir" = x.; then
16833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16834s/:*\$(srcdir):*/:/;
16835s/:*\${srcdir}:*/:/;
16836s/:*@srcdir@:*/:/;
16837s/^\([^=]*=[ ]*\):*/\1/;
16838s/:*$//;
16839s/^[^=]*=[ ]*$//;
16840}'
16841fi
16842
16843DEFS=-DHAVE_CONFIG_H
16844
16845
16846: ${CONFIG_STATUS=./config.status}
16847ac_clean_files_save=$ac_clean_files
16848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851cat >$CONFIG_STATUS <<_ACEOF
16852#! $SHELL
16853# Generated by $as_me.
16854# Run this file to recreate the current configuration.
16855# Compiler output produced by configure, useful for debugging
16856# configure, is in config.log if it exists.
16857
16858debug=false
16859SHELL=\${CONFIG_SHELL-$SHELL}
16860_ACEOF
16861
16862cat >>$CONFIG_STATUS <<\_ACEOF
16863
16864## --------------------- ##
16865## M4sh Initialization. ##
16866## --------------------- ##
16867
16868# Be Bourne compatible
16869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16870 emulate sh
16871 NULLCMD=:
16872elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16873 set -o posix
16874fi
16875
16876# NLS nuisances.
16877# Support unset when possible.
16878if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16879 as_unset=unset
16880else
16881 as_unset=false
16882fi
16883
16884(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16885 { $as_unset LANG || test "${LANG+set}" != set; } ||
16886 { LANG=C; export LANG; }
16887(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16888 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16889 { LC_ALL=C; export LC_ALL; }
16890(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16891 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16892 { LC_TIME=C; export LC_TIME; }
16893(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16894 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16895 { LC_CTYPE=C; export LC_CTYPE; }
16896(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16897 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16898 { LANGUAGE=C; export LANGUAGE; }
16899(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16900 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16901 { LC_COLLATE=C; export LC_COLLATE; }
16902(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16903 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16904 { LC_NUMERIC=C; export LC_NUMERIC; }
16905(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16906 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16907 { LC_MESSAGES=C; export LC_MESSAGES; }
16908
16909
16910# Name of the executable.
16911as_me=`(basename "$0") 2>/dev/null ||
16912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)$' \| \
16915 . : '\(.\)' 2>/dev/null ||
16916echo X/"$0" |
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918 /^X\/\(\/\/\)$/{ s//\1/; q; }
16919 /^X\/\(\/\).*/{ s//\1/; q; }
16920 s/.*/./; q'`
16921
16922# PATH needs CR, and LINENO needs CR and PATH.
16923# Avoid depending upon Character Ranges.
16924as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927as_cr_digits='0123456789'
16928as_cr_alnum=$as_cr_Letters$as_cr_digits
16929
16930# The user is always right.
16931if test "${PATH_SEPARATOR+set}" != set; then
16932 echo "#! /bin/sh" >conftest.sh
16933 echo "exit 0" >>conftest.sh
16934 chmod +x conftest.sh
16935 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16936 PATH_SEPARATOR=';'
16937 else
16938 PATH_SEPARATOR=:
16939 fi
16940 rm -f conftest.sh
16941fi
16942
16943
16944 as_lineno_1=$LINENO
16945 as_lineno_2=$LINENO
16946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16947 test "x$as_lineno_1" != "x$as_lineno_2" &&
16948 test "x$as_lineno_3" = "x$as_lineno_2" || {
16949 # Find who we are. Look in the path if we contain no path at all
16950 # relative or not.
16951 case $0 in
16952 *[\\/]* ) as_myself=$0 ;;
16953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954for as_dir in $PATH
16955do
16956 IFS=$as_save_IFS
16957 test -z "$as_dir" && as_dir=.
16958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16959done
16960
16961 ;;
16962 esac
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x; then
16966 as_myself=$0
16967 fi
16968 if test ! -f "$as_myself"; then
16969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971 { (exit 1); exit 1; }; }
16972 fi
16973 case $CONFIG_SHELL in
16974 '')
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16977do
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for as_base in sh bash ksh sh5; do
16981 case $as_dir in
16982 /*)
16983 if ("$as_dir/$as_base" -c '
16984 as_lineno_1=$LINENO
16985 as_lineno_2=$LINENO
16986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16987 test "x$as_lineno_1" != "x$as_lineno_2" &&
16988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16989 CONFIG_SHELL=$as_dir/$as_base
16990 export CONFIG_SHELL
16991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16992 fi;;
16993 esac
16994 done
16995done
16996;;
16997 esac
16998
16999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17000 # uniformly replaced by the line number. The first 'sed' inserts a
17001 # line-number line before each line; the second 'sed' does the real
17002 # work. The second script uses 'N' to pair each line-number line
17003 # with the numbered line, and appends trailing '-' during
17004 # substitution so that $LINENO is not a special case at line end.
17005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17007 sed '=' <$as_myself |
17008 sed '
17009 N
17010 s,$,-,
17011 : loop
17012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17013 t loop
17014 s,-$,,
17015 s,^['$as_cr_digits']*\n,,
17016 ' >$as_me.lineno &&
17017 chmod +x $as_me.lineno ||
17018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17019echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020 { (exit 1); exit 1; }; }
17021
17022 # Don't try to exec as it changes $[0], causing all sort of problems
17023 # (the dirname of $[0] is not the place where we might find the
17024 # original and so on. Autoconf is especially sensible to this).
17025 . ./$as_me.lineno
17026 # Exit status is that of the last command.
17027 exit
17028}
17029
17030
17031case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032 *c*,-n*) ECHO_N= ECHO_C='
17033' ECHO_T=' ' ;;
17034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17036esac
17037
17038if expr a : '\(a\)' >/dev/null 2>&1; then
17039 as_expr=expr
17040else
17041 as_expr=false
17042fi
17043
17044rm -f conf$$ conf$$.exe conf$$.file
17045echo >conf$$.file
17046if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 # We could just check for DJGPP; but this test a) works b) is more generic
17048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17049 if test -f conf$$.exe; then
17050 # Don't use ln at all; we don't have any links
17051 as_ln_s='cp -p'
17052 else
17053 as_ln_s='ln -s'
17054 fi
17055elif ln conf$$.file conf$$ 2>/dev/null; then
17056 as_ln_s=ln
17057else
17058 as_ln_s='cp -p'
17059fi
17060rm -f conf$$ conf$$.exe conf$$.file
17061
17062as_executable_p="test -f"
17063
17064# Sed expression to map a string onto a valid CPP name.
17065as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17066
17067# Sed expression to map a string onto a valid variable name.
17068as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17069
17070
17071# IFS
17072# We need space, tab and new line, in precisely that order.
17073as_nl='
17074'
17075IFS=" $as_nl"
17076
17077# CDPATH.
17078$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17079
17080exec 6>&1
17081
17082# Open the log real soon, to keep \$[0] and so on meaningful, and to
17083# report actual input values of CONFIG_FILES etc. instead of their
17084# values after options handling. Logging --version etc. is OK.
17085exec 5>>config.log
17086{
17087 echo
17088 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17089@%:@@%:@ Running $as_me. @%:@@%:@
17090_ASBOX
17091} >&5
17092cat >&5 <<_CSEOF
17093
17094This file was extended by $as_me, which was
17095generated by GNU Autoconf 2.53. Invocation command line was
17096
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17101 $ $0 $@
17102
17103_CSEOF
17104echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17105echo >&5
17106_ACEOF
17107
17108# Files that config.status was made for.
17109if test -n "$ac_config_files"; then
17110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17111fi
17112
17113if test -n "$ac_config_headers"; then
17114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17115fi
17116
17117if test -n "$ac_config_links"; then
17118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17119fi
17120
17121if test -n "$ac_config_commands"; then
17122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17123fi
17124
17125cat >>$CONFIG_STATUS <<\_ACEOF
17126
17127ac_cs_usage="\
17128\`$as_me' instantiates files from templates according to the
17129current configuration.
17130
17131Usage: $0 [OPTIONS] [FILE]...
17132
17133 -h, --help print this help, then exit
17134 -V, --version print version number, then exit
17135 -d, --debug don't remove temporary files
17136 --recheck update $as_me by reconfiguring in the same conditions
17137 --file=FILE[:TEMPLATE]
17138 instantiate the configuration file FILE
17139 --header=FILE[:TEMPLATE]
17140 instantiate the configuration header FILE
17141
17142Configuration files:
17143$config_files
17144
17145Configuration headers:
17146$config_headers
17147
17148Report bugs to <bug-autoconf@gnu.org>."
17149_ACEOF
17150
17151cat >>$CONFIG_STATUS <<_ACEOF
17152ac_cs_version="\\
17153config.status
17154configured by $0, generated by GNU Autoconf 2.53,
17155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17156
17157Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17158Free Software Foundation, Inc.
17159This config.status script is free software; the Free Software Foundation
17160gives unlimited permission to copy, distribute and modify it."
17161srcdir=$srcdir
17162INSTALL="$INSTALL"
17163_ACEOF
17164
17165cat >>$CONFIG_STATUS <<\_ACEOF
17166# If no file are specified by the user, then we need to provide default
17167# value. By we need to know if files were specified by the user.
17168ac_need_defaults=:
17169while test $# != 0
17170do
17171 case $1 in
17172 --*=*)
17173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17175 shift
17176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17177 shift
17178 ;;
17179 -*);;
17180 *) # This is not an option, so the user has probably given explicit
17181 # arguments.
17182 ac_need_defaults=false;;
17183 esac
17184
17185 case $1 in
17186 # Handling of the options.
17187_ACEOF
17188cat >>$CONFIG_STATUS <<_ACEOF
17189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17190 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17191 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17192_ACEOF
17193cat >>$CONFIG_STATUS <<\_ACEOF
17194 --version | --vers* | -V )
17195 echo "$ac_cs_version"; exit 0 ;;
17196 --he | --h)
17197 # Conflict between --help and --header
17198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17199Try \`$0 --help' for more information." >&5
17200echo "$as_me: error: ambiguous option: $1
17201Try \`$0 --help' for more information." >&2;}
17202 { (exit 1); exit 1; }; };;
17203 --help | --hel | -h )
17204 echo "$ac_cs_usage"; exit 0 ;;
17205 --debug | --d* | -d )
17206 debug=: ;;
17207 --file | --fil | --fi | --f )
17208 shift
17209 CONFIG_FILES="$CONFIG_FILES $1"
17210 ac_need_defaults=false;;
17211 --header | --heade | --head | --hea )
17212 shift
17213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17214 ac_need_defaults=false;;
17215
17216 # This is an error.
17217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17218Try \`$0 --help' for more information." >&5
17219echo "$as_me: error: unrecognized option: $1
17220Try \`$0 --help' for more information." >&2;}
17221 { (exit 1); exit 1; }; } ;;
17222
17223 *) ac_config_targets="$ac_config_targets $1" ;;
17224
17225 esac
17226 shift
17227done
17228
17229_ACEOF
17230
17231
17232
17233
17234
17235cat >>$CONFIG_STATUS <<\_ACEOF
17236for ac_config_target in $ac_config_targets
17237do
17238 case "$ac_config_target" in
17239 # Handling of arguments.
17240 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17241 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17242 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17243 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17244 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17246echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17247 { (exit 1); exit 1; }; };;
17248 esac
17249done
17250
17251# If the user did not use the arguments to specify the items to instantiate,
17252# then the envvar interface is used. Set only those that are not.
17253# We use the long form for the default assignment because of an extremely
17254# bizarre bug on SunOS 4.1.3.
17255if $ac_need_defaults; then
17256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17258fi
17259
17260# Create a temporary directory, and hook for its removal unless debugging.
17261$debug ||
17262{
17263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17264 trap '{ (exit 1); exit 1; }' 1 2 13 15
17265}
17266
17267# Create a (secure) tmp directory for tmp files.
17268: ${TMPDIR=/tmp}
17269{
17270 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17271 test -n "$tmp" && test -d "$tmp"
17272} ||
17273{
17274 tmp=$TMPDIR/cs$$-$RANDOM
17275 (umask 077 && mkdir $tmp)
17276} ||
17277{
17278 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17279 { (exit 1); exit 1; }
17280}
17281
17282_ACEOF
17283
17284cat >>$CONFIG_STATUS <<_ACEOF
17285
17286#
17287# CONFIG_FILES section.
17288#
17289
17290# No need to generate the scripts if there are no CONFIG_FILES.
17291# This happens for instance when ./config.status config.h
17292if test -n "\$CONFIG_FILES"; then
17293 # Protect against being on the right side of a sed subst in config.status.
17294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17296s,@SHELL@,$SHELL,;t t
17297s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17298s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17299s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17300s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17301s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17302s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17303s,@exec_prefix@,$exec_prefix,;t t
17304s,@prefix@,$prefix,;t t
17305s,@program_transform_name@,$program_transform_name,;t t
17306s,@bindir@,$bindir,;t t
17307s,@sbindir@,$sbindir,;t t
17308s,@libexecdir@,$libexecdir,;t t
17309s,@datadir@,$datadir,;t t
17310s,@sysconfdir@,$sysconfdir,;t t
17311s,@sharedstatedir@,$sharedstatedir,;t t
17312s,@localstatedir@,$localstatedir,;t t
17313s,@libdir@,$libdir,;t t
17314s,@includedir@,$includedir,;t t
17315s,@oldincludedir@,$oldincludedir,;t t
17316s,@infodir@,$infodir,;t t
17317s,@mandir@,$mandir,;t t
17318s,@build_alias@,$build_alias,;t t
17319s,@host_alias@,$host_alias,;t t
17320s,@target_alias@,$target_alias,;t t
17321s,@DEFS@,$DEFS,;t t
17322s,@ECHO_C@,$ECHO_C,;t t
17323s,@ECHO_N@,$ECHO_N,;t t
17324s,@ECHO_T@,$ECHO_T,;t t
17325s,@LIBS@,$LIBS,;t t
17326s,@CC@,$CC,;t t
17327s,@CFLAGS@,$CFLAGS,;t t
17328s,@LDFLAGS@,$LDFLAGS,;t t
17329s,@CPPFLAGS@,$CPPFLAGS,;t t
17330s,@ac_ct_CC@,$ac_ct_CC,;t t
17331s,@EXEEXT@,$EXEEXT,;t t
17332s,@OBJEXT@,$OBJEXT,;t t
17333s,@build@,$build,;t t
17334s,@build_cpu@,$build_cpu,;t t
17335s,@build_vendor@,$build_vendor,;t t
17336s,@build_os@,$build_os,;t t
17337s,@host@,$host,;t t
17338s,@host_cpu@,$host_cpu,;t t
17339s,@host_vendor@,$host_vendor,;t t
17340s,@host_os@,$host_os,;t t
17341s,@CPP@,$CPP,;t t
17342s,@RANLIB@,$RANLIB,;t t
17343s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17346s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17347s,@AR@,$AR,;t t
17348s,@PERL@,$PERL,;t t
17349s,@ENT@,$ENT,;t t
17350s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17351s,@SH@,$SH,;t t
17352s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17353s,@LD@,$LD,;t t
17354s,@LIBWRAP@,$LIBWRAP,;t t
17355s,@LIBPAM@,$LIBPAM,;t t
17356s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17357s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17358s,@PROG_LS@,$PROG_LS,;t t
17359s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17360s,@PROG_ARP@,$PROG_ARP,;t t
17361s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17362s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17363s,@PROG_PS@,$PROG_PS,;t t
17364s,@PROG_SAR@,$PROG_SAR,;t t
17365s,@PROG_W@,$PROG_W,;t t
17366s,@PROG_WHO@,$PROG_WHO,;t t
17367s,@PROG_LAST@,$PROG_LAST,;t t
17368s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17369s,@PROG_DF@,$PROG_DF,;t t
17370s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17371s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17372s,@PROG_IPCS@,$PROG_IPCS,;t t
17373s,@PROG_TAIL@,$PROG_TAIL,;t t
17374s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17375s,@NO_SFTP@,$NO_SFTP,;t t
17376s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17377s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17378s,@xauth_path@,$xauth_path,;t t
17379s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17380s,@NROFF@,$NROFF,;t t
17381s,@MANTYPE@,$MANTYPE,;t t
17382s,@mansubdir@,$mansubdir,;t t
17383s,@user_path@,$user_path,;t t
17384s,@piddir@,$piddir,;t t
17385CEOF
17386
17387_ACEOF
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 # Split the substitutions into bite-sized pieces for seds with
17391 # small command number limits, like on Digital OSF/1 and HP-UX.
17392 ac_max_sed_lines=48
17393 ac_sed_frag=1 # Number of current file.
17394 ac_beg=1 # First line for current file.
17395 ac_end=$ac_max_sed_lines # Line after last line for current file.
17396 ac_more_lines=:
17397 ac_sed_cmds=
17398 while $ac_more_lines; do
17399 if test $ac_beg -gt 1; then
17400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17401 else
17402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17403 fi
17404 if test ! -s $tmp/subs.frag; then
17405 ac_more_lines=false
17406 else
17407 # The purpose of the label and of the branching condition is to
17408 # speed up the sed processing (if there are no `@' at all, there
17409 # is no need to browse any of the substitutions).
17410 # These are the two extra sed commands mentioned above.
17411 (echo ':t
17412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17413 if test -z "$ac_sed_cmds"; then
17414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17415 else
17416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17417 fi
17418 ac_sed_frag=`expr $ac_sed_frag + 1`
17419 ac_beg=$ac_end
17420 ac_end=`expr $ac_end + $ac_max_sed_lines`
17421 fi
17422 done
17423 if test -z "$ac_sed_cmds"; then
17424 ac_sed_cmds=cat
17425 fi
17426fi # test -n "$CONFIG_FILES"
17427
17428_ACEOF
17429cat >>$CONFIG_STATUS <<\_ACEOF
17430for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 case $ac_file in
17433 - | *:- | *:-:* ) # input from stdin
17434 cat >$tmp/stdin
17435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in=$ac_file.in ;;
17440 esac
17441
17442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17443 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445 X"$ac_file" : 'X\(//\)[^/]' \| \
17446 X"$ac_file" : 'X\(//\)$' \| \
17447 X"$ac_file" : 'X\(/\)' \| \
17448 . : '\(.\)' 2>/dev/null ||
17449echo X"$ac_file" |
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17454 s/.*/./; q'`
17455 { case "$ac_dir" in
17456 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17457 *) as_incr_dir=.;;
17458esac
17459as_dummy="$ac_dir"
17460for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17461 case $as_mkdir_dir in
17462 # Skip DOS drivespec
17463 ?:) as_incr_dir=$as_mkdir_dir ;;
17464 *)
17465 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17466 test -d "$as_incr_dir" ||
17467 mkdir "$as_incr_dir" ||
17468 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17469echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17471 ;;
17472 esac
17473done; }
17474
17475 ac_builddir=.
17476
17477if test "$ac_dir" != .; then
17478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17479 # A "../" for each directory in $ac_dir_suffix.
17480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17481else
17482 ac_dir_suffix= ac_top_builddir=
17483fi
17484
17485case $srcdir in
17486 .) # No --srcdir option. We are building in place.
17487 ac_srcdir=.
17488 if test -z "$ac_top_builddir"; then
17489 ac_top_srcdir=.
17490 else
17491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17492 fi ;;
17493 [\\/]* | ?:[\\/]* ) # Absolute path.
17494 ac_srcdir=$srcdir$ac_dir_suffix;
17495 ac_top_srcdir=$srcdir ;;
17496 *) # Relative path.
17497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17499esac
17500# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17501# absolute.
17502ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17504ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17506
17507
17508 case $INSTALL in
17509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17511 esac
17512
17513 if test x"$ac_file" != x-; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515echo "$as_me: creating $ac_file" >&6;}
17516 rm -f "$ac_file"
17517 fi
17518 # Let's still pretend it is `configure' which instantiates (i.e., don't
17519 # use $as_me), people would be surprised to read:
17520 # /* config.h. Generated by config.status. */
17521 if test x"$ac_file" = x-; then
17522 configure_input=
17523 else
17524 configure_input="$ac_file. "
17525 fi
17526 configure_input=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17528
17529 # First look for the input files in the build tree, otherwise in the
17530 # src tree.
17531 ac_file_inputs=`IFS=:
17532 for f in $ac_file_in; do
17533 case $f in
17534 -) echo $tmp/stdin ;;
17535 [\\/$]*)
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17540 echo $f;;
17541 *) # Relative
17542 if test -f "$f"; then
17543 # Build tree
17544 echo $f
17545 elif test -f "$srcdir/$f"; then
17546 # Source tree
17547 echo $srcdir/$f
17548 else
17549 # /dev/null tree
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17553 fi;;
17554 esac
17555 done` || { (exit 1); exit 1; }
17556_ACEOF
17557cat >>$CONFIG_STATUS <<_ACEOF
17558 sed "$ac_vpsub
17559$extrasub
17560_ACEOF
17561cat >>$CONFIG_STATUS <<\_ACEOF
17562:t
17563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564s,@configure_input@,$configure_input,;t t
17565s,@srcdir@,$ac_srcdir,;t t
17566s,@abs_srcdir@,$ac_abs_srcdir,;t t
17567s,@top_srcdir@,$ac_top_srcdir,;t t
17568s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17569s,@builddir@,$ac_builddir,;t t
17570s,@abs_builddir@,$ac_abs_builddir,;t t
17571s,@top_builddir@,$ac_top_builddir,;t t
17572s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17573s,@INSTALL@,$ac_INSTALL,;t t
17574" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17575 rm -f $tmp/stdin
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17578 else
17579 cat $tmp/out
17580 rm -f $tmp/out
17581 fi
17582
17583done
17584_ACEOF
17585cat >>$CONFIG_STATUS <<\_ACEOF
17586
17587#
17588# CONFIG_HEADER section.
17589#
17590
17591# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592# NAME is the cpp macro being defined and VALUE is the value it is being given.
17593#
17594# ac_d sets the value in "#define NAME VALUE" lines.
17595ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596ac_dB='[ ].*$,\1#\2'
17597ac_dC=' '
17598ac_dD=',;t'
17599# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601ac_uB='$,\1#\2define\3'
17602ac_uC=' '
17603ac_uD=',;t'
17604
17605for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17607 case $ac_file in
17608 - | *:- | *:-:* ) # input from stdin
17609 cat >$tmp/stdin
17610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in=$ac_file.in ;;
17615 esac
17616
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618echo "$as_me: creating $ac_file" >&6;}
17619
17620 # First look for the input files in the build tree, otherwise in the
17621 # src tree.
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17624 case $f in
17625 -) echo $tmp/stdin ;;
17626 [\\/$]*)
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17631 echo $f;;
17632 *) # Relative
17633 if test -f "$f"; then
17634 # Build tree
17635 echo $f
17636 elif test -f "$srcdir/$f"; then
17637 # Source tree
17638 echo $srcdir/$f
17639 else
17640 # /dev/null tree
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17644 fi;;
17645 esac
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17649
17650_ACEOF
17651
17652# Transform confdefs.h into two sed scripts, `conftest.defines' and
17653# `conftest.undefs', that substitutes the proper values into
17654# config.h.in to produce config.h. The first handles `#define'
17655# templates, and the second `#undef' templates.
17656# And first: Protect against being on the right side of a sed subst in
17657# config.status. Protect against being in an unquoted here document
17658# in config.status.
17659rm -f conftest.defines conftest.undefs
17660# Using a here document instead of a string reduces the quoting nightmare.
17661# Putting comments in sed scripts is not portable.
17662#
17663# `end' is used to avoid that the second main sed command (meant for
17664# 0-ary CPP macros) applies to n-ary macro definitions.
17665# See the Autoconf documentation for `clear'.
17666cat >confdef2sed.sed <<\_ACEOF
17667s/[\\&,]/\\&/g
17668s,[\\$`],\\&,g
17669t clear
17670: clear
17671s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672t end
17673s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674: end
17675_ACEOF
17676# If some macros were called several times there might be several times
17677# the same #defines, which is useless. Nevertheless, we may not want to
17678# sort them, since we want the *last* AC-DEFINE to be honored.
17679uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681rm -f confdef2sed.sed
17682
17683# This sed command replaces #undef with comments. This is necessary, for
17684# example, in the case of _POSIX_SOURCE, which is predefined and required
17685# on some systems where configure will not decide to define it.
17686cat >>conftest.undefs <<\_ACEOF
17687s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688_ACEOF
17689
17690# Break up conftest.defines because some shells have a limit on the size
17691# of here documents, and old seds have small limits too (100 cmds).
17692echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695echo ' :' >>$CONFIG_STATUS
17696rm -f conftest.tail
17697while grep . conftest.defines >/dev/null
17698do
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707 echo 'CEOF
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17715done
17716rm -f conftest.defines
17717echo ' fi # egrep' >>$CONFIG_STATUS
17718echo >>$CONFIG_STATUS
17719
17720# Break up conftest.undefs because some shells have a limit on the size
17721# of here documents, and old seds have small limits too (100 cmds).
17722echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723rm -f conftest.tail
17724while grep . conftest.undefs >/dev/null
17725do
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734 echo 'CEOF
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736 rm -f $tmp/in
17737 mv $tmp/out $tmp/in
17738' >>$CONFIG_STATUS
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17742done
17743rm -f conftest.undefs
17744
17745cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x"$ac_file" = x-; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17751 else
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17753 fi
17754 cat $tmp/in >>$tmp/config.h
17755 rm -f $tmp/in
17756 if test x"$ac_file" != x-; then
17757 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759echo "$as_me: $ac_file is unchanged" >&6;}
17760 else
17761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17767echo X"$ac_file" |
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17772 s/.*/./; q'`
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17775 *) as_incr_dir=.;;
17776esac
17777as_dummy="$ac_dir"
17778for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?:) as_incr_dir=$as_mkdir_dir ;;
17782 *)
17783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir "$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17789 ;;
17790 esac
17791done; }
17792
17793 rm -f $ac_file
17794 mv $tmp/config.h $ac_file
17795 fi
17796 else
17797 cat $tmp/config.h
17798 rm -f $tmp/config.h
17799 fi
17800done
17801_ACEOF
17802
17803cat >>$CONFIG_STATUS <<\_ACEOF
17804
17805{ (exit 0); exit 0; }
17806_ACEOF
17807chmod +x $CONFIG_STATUS
17808ac_clean_files=$ac_clean_files_save
17809
17810
17811# configure is writing to config.log, and then calls config.status.
17812# config.status does its own redirection, appending to config.log.
17813# Unfortunately, on DOS this fails, as config.log is still kept open
17814# by configure, so config.status won't be able to write to it; its
17815# output is simply discarded. So we exec the FD to /dev/null,
17816# effectively closing config.log, so it can be properly (re)opened and
17817# appended to by config.status. When coming back to configure, we
17818# need to make the FD available again.
17819if test "$no_create" != yes; then
17820 ac_cs_success=:
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17827fi
17828
17829
17830# Print summary of options
17831
17832# Someone please show me a better way :)
17833A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17834B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17835C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17836D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17837E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17838F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17839G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17840H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17841I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17842J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17843
17844echo ""
17845echo "OpenSSH has been configured with the following options:"
17846echo " User binaries: $B"
17847echo " System binaries: $C"
17848echo " Configuration files: $D"
17849echo " Askpass program: $E"
17850echo " Manual pages: $F"
17851echo " PID file: $G"
17852echo " Privilege separation chroot path: $H"
17853if test "$USES_LOGIN_CONF" = "yes" ; then
17854echo " At runtime, sshd will use the path defined in /etc/login.conf"
17855else
17856echo " sshd default user PATH: $I"
17857fi
17858if test ! -z "$superuser_path" ; then
17859echo " sshd superuser user PATH: $J"
17860fi
17861echo " Manpage format: $MANTYPE"
17862echo " PAM support: ${PAM_MSG}"
17863echo " KerberosIV support: $KRB4_MSG"
17864echo " KerberosV support: $KRB5_MSG"
17865echo " Smartcard support: $SCARD_MSG"
17866echo " AFS support: $AFS_MSG"
17867echo " S/KEY support: $SKEY_MSG"
17868echo " TCP Wrappers support: $TCPW_MSG"
17869echo " MD5 password support: $MD5_MSG"
17870echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17871echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17872echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873echo " BSD Auth support: $BSD_AUTH_MSG"
17874echo " Random number source: $RAND_MSG"
17875if test ! -z "$USE_RAND_HELPER" ; then
17876echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17877fi
17878
17879echo ""
17880
17881echo " Host: ${host}"
17882echo " Compiler: ${CC}"
17883echo " Compiler flags: ${CFLAGS}"
17884echo "Preprocessor flags: ${CPPFLAGS}"
17885echo " Linker flags: ${LDFLAGS}"
17886echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17887
17888echo ""
17889
17890if test "x$PAM_MSG" = "xyes" ; then
17891 echo "PAM is enabled. You may need to install a PAM control file "
17892 echo "for sshd, otherwise password authentication may fail. "
17893 echo "Example PAM control files can be found in the contrib/ "
17894 echo "subdirectory"
17895 echo ""
17896fi
17897
17898if test ! -z "$NO_SFTP"; then
17899 echo "sftp-server will be disabled. Your compiler does not "
17900 echo "support 64bit integers."
17901 echo ""
17902fi
17903
17904if test ! -z "$RAND_HELPER_CMDHASH" ; then
17905 echo "WARNING: you are using the builtin random number collection "
17906 echo "service. Please read WARNING.RNG and request that your OS "
17907 echo "vendor includes kernel-based random number collection in "
17908 echo "future versions of your OS."
17909 echo ""
17910fi
17911
diff --git a/autom4te-2.53.cache/requests b/autom4te-2.53.cache/requests
new file mode 100644
index 000000000..a1d9e872f
--- /dev/null
+++ b/autom4te-2.53.cache/requests
@@ -0,0 +1,96 @@
1# This file was created by autom4te-2.53.
2# It contains the lists of macros which have been traced.
3# It can be safely removed.
4
5@request = (
6 bless( [
7 '0',
8 1,
9 [
10 '/usr/share/autoconf-2.53'
11 ],
12 [
13 '--reload-state=/usr/share/autoconf-2.53/autoconf/autoconf.m4f',
14 'aclocal.m4',
15 'configure.ac'
16 ],
17 {
18 'AC_HEADER_STAT' => 1,
19 'AC_FUNC_STRFTIME' => 1,
20 'AC_PROG_RANLIB' => 1,
21 'AC_FUNC_WAIT3' => 1,
22 'AC_FUNC_SETPGRP' => 1,
23 'AC_HEADER_TIME' => 1,
24 'AC_FUNC_SETVBUF_REVERSED' => 1,
25 'AC_HEADER_SYS_WAIT' => 1,
26 'AC_TYPE_UID_T' => 1,
27 'AM_CONDITIONAL' => 1,
28 'AC_CHECK_LIB' => 1,
29 'AC_PROG_LN_S' => 1,
30 'AC_FUNC_MEMCMP' => 1,
31 'AC_FUNC_FORK' => 1,
32 'AC_FUNC_GETGROUPS' => 1,
33 'AC_HEADER_MAJOR' => 1,
34 'AC_FUNC_STRTOD' => 1,
35 'AC_HEADER_DIRENT' => 1,
36 'AC_FUNC_UTIME_NULL' => 1,
37 'AC_CONFIG_FILES' => 1,
38 'AC_FUNC_ALLOCA' => 1,
39 'AC_C_CONST' => 1,
40 'include' => 1,
41 'AC_FUNC_OBSTACK' => 1,
42 'AC_FUNC_LSTAT' => 1,
43 'AC_STRUCT_TIMEZONE' => 1,
44 'AC_FUNC_GETPGRP' => 1,
45 'AC_DEFINE_TRACE_LITERAL' => 1,
46 'AC_CHECK_HEADERS' => 1,
47 'AC_TYPE_MODE_T' => 1,
48 'AC_CHECK_TYPES' => 1,
49 'AC_PROG_YACC' => 1,
50 'AC_TYPE_PID_T' => 1,
51 'AC_FUNC_STRERROR_R' => 1,
52 'AC_STRUCT_ST_BLOCKS' => 1,
53 'AC_PROG_GCC_TRADITIONAL' => 1,
54 'AC_TYPE_SIGNAL' => 1,
55 'AM_PROG_LIBTOOL' => 1,
56 'AC_FUNC_FNMATCH' => 1,
57 'AC_PROG_CPP' => 1,
58 'AC_FUNC_STAT' => 1,
59 'AC_PROG_INSTALL' => 1,
60 'AM_GNU_GETTEXT' => 1,
61 'AC_CONFIG_SUBDIRS' => 1,
62 'AC_FUNC_STRCOLL' => 1,
63 'AC_LIBSOURCE' => 1,
64 'AC_C_INLINE' => 1,
65 'AC_FUNC_CHOWN' => 1,
66 'AC_INIT' => 1,
67 'AC_PROG_LEX' => 1,
68 'AH_OUTPUT' => 1,
69 'AC_HEADER_STDC' => 1,
70 'AC_FUNC_GETLOADAVG' => 1,
71 'AC_CHECK_FUNCS' => 1,
72 'AC_TYPE_SIZE_T' => 1,
73 'AC_DECL_SYS_SIGLIST' => 1,
74 'AC_FUNC_MKTIME' => 1,
75 'AC_PROG_MAKE_SET' => 1,
76 'AC_PROG_CXX' => 1,
77 'm4_pattern_allow' => 1,
78 'm4_include' => 1,
79 'm4_pattern_forbid' => 1,
80 'AC_PROG_AWK' => 1,
81 'AC_FUNC_VPRINTF' => 1,
82 'AC_CONFIG_HEADERS' => 1,
83 'AC_PATH_X' => 1,
84 'AC_TYPE_OFF_T' => 1,
85 'AC_FUNC_MALLOC' => 1,
86 'AC_FUNC_ERROR_AT_LINE' => 1,
87 'AC_FUNC_FSEEKO' => 1,
88 'AC_FUNC_MMAP' => 1,
89 'AC_STRUCT_TM' => 1,
90 'AC_SUBST' => 1,
91 'AC_PROG_LIBTOOL' => 1,
92 'AC_PROG_CC' => 1
93 }
94 ], 'Request' )
95 );
96
diff --git a/autom4te-2.53.cache/traces.0 b/autom4te-2.53.cache/traces.0
new file mode 100644
index 000000000..3fcfab66c
--- /dev/null
+++ b/autom4te-2.53.cache/traces.0
@@ -0,0 +1,905 @@
1m4trace:configure.ac:3: -1- AC_INIT
2m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_])
3m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_])
4m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs. LIBOBJS'])
5m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$])
6m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_])
7m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$])
8m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_])
9m4trace:configure.ac:3: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
10m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR])
11m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
12m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
13m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
14m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
15m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
16m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
17m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE])
18m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,])
19m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
20m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
21m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
22m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${prefix}/share'])
23m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
24m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
25m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
26m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
27m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include'])
28m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include'])
29m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${prefix}/info'])
30m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${prefix}/man'])
31m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
32m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
33#undef PACKAGE_NAME])
34m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
35m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
36#undef PACKAGE_TARNAME])
37m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
38m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
39#undef PACKAGE_VERSION])
40m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
41m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
42#undef PACKAGE_STRING])
43m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
44m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
45#undef PACKAGE_BUGREPORT])
46m4trace:configure.ac:3: -1- AC_SUBST([build_alias])
47m4trace:configure.ac:3: -1- AC_SUBST([host_alias])
48m4trace:configure.ac:3: -1- AC_SUBST([target_alias])
49m4trace:configure.ac:3: -1- AC_SUBST([DEFS])
50m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C])
51m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N])
52m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T])
53m4trace:configure.ac:3: -1- AC_SUBST([LIBS])
54m4trace:configure.ac:6: -1- AC_CONFIG_HEADERS([config.h])
55m4trace:configure.ac:7: -1- AC_PROG_CC
56m4trace:configure.ac:7: -1- AC_SUBST([CC])
57m4trace:configure.ac:7: -1- AC_SUBST([CFLAGS])
58m4trace:configure.ac:7: -1- AC_SUBST([LDFLAGS])
59m4trace:configure.ac:7: -1- AC_SUBST([CPPFLAGS])
60m4trace:configure.ac:7: -1- AC_SUBST([CC])
61m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
62m4trace:configure.ac:7: -1- AC_SUBST([CC])
63m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
64m4trace:configure.ac:7: -1- AC_SUBST([CC])
65m4trace:configure.ac:7: -1- AC_SUBST([CC])
66m4trace:configure.ac:7: -1- AC_SUBST([ac_ct_CC])
67m4trace:configure.ac:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
68m4trace:configure.ac:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
69m4trace:configure.ac:8: -1- AC_SUBST([build], [$ac_cv_build])
70m4trace:configure.ac:8: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
71m4trace:configure.ac:8: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
72m4trace:configure.ac:8: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
73m4trace:configure.ac:8: -1- AC_SUBST([host], [$ac_cv_host])
74m4trace:configure.ac:8: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
75m4trace:configure.ac:8: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
76m4trace:configure.ac:8: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
77m4trace:configure.ac:9: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
78m4trace:configure.ac:9: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte
79 first (like Motorola and SPARC, unlike Intel and VAX). */
80#undef WORDS_BIGENDIAN])
81m4trace:configure.ac:12: -1- AC_PROG_CPP
82m4trace:configure.ac:12: -1- AC_SUBST([CPP])
83m4trace:configure.ac:12: -1- AC_SUBST([CPPFLAGS])
84m4trace:configure.ac:12: -1- AC_SUBST([CPP])
85m4trace:configure.ac:13: -1- AC_PROG_RANLIB
86m4trace:configure.ac:13: -1- AC_SUBST([RANLIB])
87m4trace:configure.ac:13: -1- AC_SUBST([ac_ct_RANLIB])
88m4trace:configure.ac:14: -1- AC_PROG_INSTALL
89m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_PROGRAM])
90m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_SCRIPT])
91m4trace:configure.ac:14: -1- AC_SUBST([INSTALL_DATA])
92m4trace:configure.ac:15: -1- AC_SUBST([AR], [$ac_cv_path_AR])
93m4trace:configure.ac:16: -1- AC_SUBST([PERL], [$ac_cv_path_PERL])
94m4trace:configure.ac:17: -1- AC_SUBST([PERL])
95m4trace:configure.ac:18: -1- AC_SUBST([ENT], [$ac_cv_path_ENT])
96m4trace:configure.ac:19: -1- AC_SUBST([ENT])
97m4trace:configure.ac:20: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
98m4trace:configure.ac:21: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
99m4trace:configure.ac:22: -1- AC_SUBST([TEST_MINUS_S_SH], [$ac_cv_path_TEST_MINUS_S_SH])
100m4trace:configure.ac:23: -1- AC_SUBST([SH], [$ac_cv_path_SH])
101m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS])
102m4trace:configure.ac:26: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */
103#undef _FILE_OFFSET_BITS])
104m4trace:configure.ac:26: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES])
105m4trace:configure.ac:26: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */
106#undef _LARGE_FILES])
107m4trace:configure.ac:34: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
108m4trace:configure.ac:37: -1- AC_SUBST([LOGIN_PROGRAM_FALLBACK], [$ac_cv_path_LOGIN_PROGRAM_FALLBACK])
109m4trace:configure.ac:39: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_PROGRAM_FALLBACK])
110m4trace:configure.ac:46: -1- AC_SUBST([LD])
111m4trace:configure.ac:48: -1- AC_C_INLINE
112m4trace:configure.ac:48: -1- AC_DEFINE_TRACE_LITERAL([inline])
113m4trace:configure.ac:48: -1- AH_OUTPUT([inline], [/* Define as \`__inline' if that's what the C compiler calls it, or to nothing
114 if it is not supported. */
115#undef inline])
116m4trace:configure.ac:48: -1- AC_DEFINE_TRACE_LITERAL([inline])
117m4trace:configure.ac:78: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
118m4trace:configure.ac:78: -1- AC_CHECK_LIB([s], [authenticate], [ AC_DEFINE(WITH_AIXAUTHENTICATE)
119 LIBS="$LIBS -ls"
120 ])
121m4trace:configure.ac:78: -1- AC_DEFINE_TRACE_LITERAL([WITH_AIXAUTHENTICATE])
122m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
123m4trace:configure.ac:80: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
124m4trace:configure.ac:82: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
125m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
126m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CYGWIN])
127m4trace:configure.ac:88: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
128m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
129m4trace:configure.ac:90: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
130m4trace:configure.ac:91: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
131m4trace:configure.ac:92: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
132m4trace:configure.ac:93: -1- AC_DEFINE_TRACE_LITERAL([NO_IPPORT_RESERVED_CONCEPT])
133m4trace:configure.ac:94: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
134m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([SETGROUPS_NOOP])
135m4trace:configure.ac:98: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
136m4trace:configure.ac:110: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_GETADDRINFO])
137m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
138m4trace:configure.ac:119: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
139m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
140m4trace:configure.ac:121: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
141m4trace:configure.ac:122: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
142m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
143m4trace:configure.ac:124: -1- AC_DEFINE_TRACE_LITERAL([SPT_TYPE])
144m4trace:configure.ac:126: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
145echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
146 { (exit 1); exit 1; }; }])
147m4trace:configure.ac:126: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
148#undef HAVE_LIBXNET])
149m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
150m4trace:configure.ac:135: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
151m4trace:configure.ac:136: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
152m4trace:configure.ac:137: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
153m4trace:configure.ac:138: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
154m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
155m4trace:configure.ac:140: -1- AC_DEFINE_TRACE_LITERAL([SPT_TYPE])
156m4trace:configure.ac:142: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
157echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
158 { (exit 1); exit 1; }; }])
159m4trace:configure.ac:142: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
160#undef HAVE_LIBXNET])
161m4trace:configure.ac:142: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
162m4trace:configure.ac:147: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
163m4trace:configure.ac:148: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
164m4trace:configure.ac:149: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NO_ENDOPT])
165m4trace:configure.ac:150: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
166m4trace:configure.ac:151: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
167m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
168m4trace:configure.ac:153: -1- AC_DEFINE_TRACE_LITERAL([SPT_TYPE])
169m4trace:configure.ac:155: -1- AC_CHECK_LIB([xnet], [t_error], [], [{ { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
170echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
171 { (exit 1); exit 1; }; }])
172m4trace:configure.ac:155: -1- AH_OUTPUT([HAVE_LIBXNET], [/* Define to 1 if you have the \`xnet' library (-lxnet). */
173#undef HAVE_LIBXNET])
174m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXNET])
175m4trace:configure.ac:161: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
176m4trace:configure.ac:162: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
177m4trace:configure.ac:168: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_ARRAY])
178m4trace:configure.ac:169: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_PROJECT])
179m4trace:configure.ac:170: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_AUDIT])
180m4trace:configure.ac:171: -1- AC_DEFINE_TRACE_LITERAL([WITH_IRIX_JOBS])
181m4trace:configure.ac:172: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_INET_NTOA])
182m4trace:configure.ac:173: -1- AC_DEFINE_TRACE_LITERAL([WITH_ABBREV_NO_TTY])
183m4trace:configure.ac:178: -1- AC_DEFINE_TRACE_LITERAL([DONT_TRY_OTHER_AF])
184m4trace:configure.ac:179: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
185m4trace:configure.ac:183: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEWS4])
186m4trace:configure.ac:198: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEXT])
187m4trace:configure.ac:199: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_REALPATH])
188m4trace:configure.ac:200: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
189m4trace:configure.ac:201: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
190m4trace:configure.ac:209: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
191m4trace:configure.ac:210: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_UTMPX])
192m4trace:configure.ac:211: -1- AC_DEFINE_TRACE_LITERAL([LOGIN_NEEDS_TERM])
193m4trace:configure.ac:212: -1- AC_DEFINE_TRACE_LITERAL([PAM_TTY_KLUDGE])
194m4trace:configure.ac:219: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
195m4trace:configure.ac:220: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
196m4trace:configure.ac:227: -1- AC_CHECK_FUNCS([getpwanam])
197m4trace:configure.ac:227: -1- AH_OUTPUT([HAVE_GETPWANAM], [/* Define to 1 if you have the \`getpwanam' function. */
198#undef HAVE_GETPWANAM])
199m4trace:configure.ac:228: -1- AC_DEFINE_TRACE_LITERAL([PAM_SUN_CODEBASE])
200m4trace:configure.ac:232: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
201m4trace:configure.ac:238: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
202m4trace:configure.ac:245: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
203m4trace:configure.ac:246: -1- AC_DEFINE_TRACE_LITERAL([IP_TOS_IS_BROKEN])
204m4trace:configure.ac:254: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
205m4trace:configure.ac:259: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
206m4trace:configure.ac:271: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SYS_TERMIO_H])
207m4trace:configure.ac:272: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
208m4trace:configure.ac:273: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
209m4trace:configure.ac:274: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
210m4trace:configure.ac:275: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SAVED_UIDS])
211m4trace:configure.ac:276: -1- AC_CHECK_FUNCS([getluid setluid])
212m4trace:configure.ac:276: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */
213#undef HAVE_GETLUID])
214m4trace:configure.ac:276: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */
215#undef HAVE_SETLUID])
216m4trace:configure.ac:285: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
217m4trace:configure.ac:286: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SECUREWARE])
218m4trace:configure.ac:287: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
219m4trace:configure.ac:288: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
220m4trace:configure.ac:289: -1- AC_CHECK_FUNCS([getluid setluid])
221m4trace:configure.ac:289: -1- AH_OUTPUT([HAVE_GETLUID], [/* Define to 1 if you have the \`getluid' function. */
222#undef HAVE_GETLUID])
223m4trace:configure.ac:289: -1- AH_OUTPUT([HAVE_SETLUID], [/* Define to 1 if you have the \`setluid' function. */
224#undef HAVE_SETLUID])
225m4trace:configure.ac:295: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
226m4trace:configure.ac:296: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
227m4trace:configure.ac:304: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
228m4trace:configure.ac:305: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_FD_PASSING])
229m4trace:configure.ac:306: -1- AC_DEFINE_TRACE_LITERAL([NO_SSH_LASTLOG])
230m4trace:configure.ac:326: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OSF_SIA])
231m4trace:configure.ac:327: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
232m4trace:configure.ac:336: -1- AC_DEFINE_TRACE_LITERAL([USE_PIPES])
233m4trace:configure.ac:337: -1- AC_DEFINE_TRACE_LITERAL([NO_X11_UNIX_SOCKETS])
234m4trace:configure.ac:338: -1- AC_DEFINE_TRACE_LITERAL([MISSING_NFDBITS])
235m4trace:configure.ac:339: -1- AC_DEFINE_TRACE_LITERAL([MISSING_HOWMANY])
236m4trace:configure.ac:340: -1- AC_DEFINE_TRACE_LITERAL([MISSING_FD_MASK])
237m4trace:configure.ac:388: -1- AC_CHECK_HEADERS([bstring.h crypt.h endian.h floatingpoint.h \
238 getopt.h glob.h ia.h lastlog.h limits.h login.h \
239 login_cap.h maillock.h netdb.h netgroup.h \
240 netinet/in_systm.h paths.h pty.h readpassphrase.h \
241 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
242 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
243 sys/mman.h sys/select.h sys/stat.h \
244 sys/stropts.h sys/sysmacros.h sys/time.h \
245 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
246 util.h utime.h utmp.h utmpx.h])
247m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_BSTRING_H], [/* Define to 1 if you have the <bstring.h> header file. */
248#undef HAVE_BSTRING_H])
249m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_CRYPT_H], [/* Define to 1 if you have the <crypt.h> header file. */
250#undef HAVE_CRYPT_H])
251m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_ENDIAN_H], [/* Define to 1 if you have the <endian.h> header file. */
252#undef HAVE_ENDIAN_H])
253m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_FLOATINGPOINT_H], [/* Define to 1 if you have the <floatingpoint.h> header file. */
254#undef HAVE_FLOATINGPOINT_H])
255m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_GETOPT_H], [/* Define to 1 if you have the <getopt.h> header file. */
256#undef HAVE_GETOPT_H])
257m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_GLOB_H], [/* Define to 1 if you have the <glob.h> header file. */
258#undef HAVE_GLOB_H])
259m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_IA_H], [/* Define to 1 if you have the <ia.h> header file. */
260#undef HAVE_IA_H])
261m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_LASTLOG_H], [/* Define to 1 if you have the <lastlog.h> header file. */
262#undef HAVE_LASTLOG_H])
263m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_LIMITS_H], [/* Define to 1 if you have the <limits.h> header file. */
264#undef HAVE_LIMITS_H])
265m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_LOGIN_H], [/* Define to 1 if you have the <login.h> header file. */
266#undef HAVE_LOGIN_H])
267m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_LOGIN_CAP_H], [/* Define to 1 if you have the <login_cap.h> header file. */
268#undef HAVE_LOGIN_CAP_H])
269m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_MAILLOCK_H], [/* Define to 1 if you have the <maillock.h> header file. */
270#undef HAVE_MAILLOCK_H])
271m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_NETDB_H], [/* Define to 1 if you have the <netdb.h> header file. */
272#undef HAVE_NETDB_H])
273m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_NETGROUP_H], [/* Define to 1 if you have the <netgroup.h> header file. */
274#undef HAVE_NETGROUP_H])
275m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_NETINET_IN_SYSTM_H], [/* Define to 1 if you have the <netinet/in_systm.h> header file. */
276#undef HAVE_NETINET_IN_SYSTM_H])
277m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the <paths.h> header file. */
278#undef HAVE_PATHS_H])
279m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_PTY_H], [/* Define to 1 if you have the <pty.h> header file. */
280#undef HAVE_PTY_H])
281m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_READPASSPHRASE_H], [/* Define to 1 if you have the <readpassphrase.h> header file. */
282#undef HAVE_READPASSPHRASE_H])
283m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_RPC_TYPES_H], [/* Define to 1 if you have the <rpc/types.h> header file. */
284#undef HAVE_RPC_TYPES_H])
285m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SECURITY_PAM_APPL_H], [/* Define to 1 if you have the <security/pam_appl.h> header file. */
286#undef HAVE_SECURITY_PAM_APPL_H])
287m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SHADOW_H], [/* Define to 1 if you have the <shadow.h> header file. */
288#undef HAVE_SHADOW_H])
289m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */
290#undef HAVE_STDDEF_H])
291m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
292#undef HAVE_STDINT_H])
293m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
294#undef HAVE_STRINGS_H])
295m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_BITYPES_H], [/* Define to 1 if you have the <sys/bitypes.h> header file. */
296#undef HAVE_SYS_BITYPES_H])
297m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_BSDTTY_H], [/* Define to 1 if you have the <sys/bsdtty.h> header file. */
298#undef HAVE_SYS_BSDTTY_H])
299m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_CDEFS_H], [/* Define to 1 if you have the <sys/cdefs.h> header file. */
300#undef HAVE_SYS_CDEFS_H])
301m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_MMAN_H], [/* Define to 1 if you have the <sys/mman.h> header file. */
302#undef HAVE_SYS_MMAN_H])
303m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */
304#undef HAVE_SYS_SELECT_H])
305m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
306#undef HAVE_SYS_STAT_H])
307m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_STROPTS_H], [/* Define to 1 if you have the <sys/stropts.h> header file. */
308#undef HAVE_SYS_STROPTS_H])
309m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_SYSMACROS_H], [/* Define to 1 if you have the <sys/sysmacros.h> header file. */
310#undef HAVE_SYS_SYSMACROS_H])
311m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the <sys/time.h> header file. */
312#undef HAVE_SYS_TIME_H])
313m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_UN_H], [/* Define to 1 if you have the <sys/un.h> header file. */
314#undef HAVE_SYS_UN_H])
315m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_TIME_H], [/* Define to 1 if you have the <time.h> header file. */
316#undef HAVE_TIME_H])
317m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_TMPDIR_H], [/* Define to 1 if you have the <tmpdir.h> header file. */
318#undef HAVE_TMPDIR_H])
319m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_TTYENT_H], [/* Define to 1 if you have the <ttyent.h> header file. */
320#undef HAVE_TTYENT_H])
321m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_USERSEC_H], [/* Define to 1 if you have the <usersec.h> header file. */
322#undef HAVE_USERSEC_H])
323m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_UTIL_H], [/* Define to 1 if you have the <util.h> header file. */
324#undef HAVE_UTIL_H])
325m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_UTIME_H], [/* Define to 1 if you have the <utime.h> header file. */
326#undef HAVE_UTIME_H])
327m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_UTMP_H], [/* Define to 1 if you have the <utmp.h> header file. */
328#undef HAVE_UTMP_H])
329m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_UTMPX_H], [/* Define to 1 if you have the <utmpx.h> header file. */
330#undef HAVE_UTMPX_H])
331m4trace:configure.ac:388: -1- AC_HEADER_STDC
332m4trace:configure.ac:388: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
333m4trace:configure.ac:388: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
334#undef STDC_HEADERS])
335m4trace:configure.ac:388: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
336 inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
337m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
338#undef HAVE_SYS_TYPES_H])
339m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
340#undef HAVE_SYS_STAT_H])
341m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
342#undef HAVE_STDLIB_H])
343m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
344#undef HAVE_STRING_H])
345m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
346#undef HAVE_MEMORY_H])
347m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
348#undef HAVE_STRINGS_H])
349m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
350#undef HAVE_INTTYPES_H])
351m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
352#undef HAVE_STDINT_H])
353m4trace:configure.ac:388: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
354#undef HAVE_UNISTD_H])
355m4trace:configure.ac:391: -2- AC_CHECK_LIB([nsl], [yp_match])
356m4trace:configure.ac:391: -2- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the \`nsl' library (-lnsl). */
357#undef HAVE_LIBNSL])
358m4trace:configure.ac:391: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL])
359m4trace:configure.ac:392: -2- AC_CHECK_LIB([socket], [setsockopt])
360m4trace:configure.ac:392: -2- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the \`socket' library (-lsocket). */
361#undef HAVE_LIBSOCKET])
362m4trace:configure.ac:392: -2- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET])
363m4trace:configure.ac:397: -1- AC_CHECK_LIB([rpc], [innetgr], [LIBS="-lrpc -lyp -lrpc $LIBS" ], [], [-lyp -lrpc])
364m4trace:configure.ac:402: -2- AC_CHECK_LIB([gen], [getspnam], [LIBS="$LIBS -lgen"])
365m4trace:configure.ac:444: -1- AC_CHECK_LIB([z], [deflate], [], [{ { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
366echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
367 { (exit 1); exit 1; }; }])
368m4trace:configure.ac:444: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the \`z' library (-lz). */
369#undef HAVE_LIBZ])
370m4trace:configure.ac:444: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
371m4trace:configure.ac:449: -1- AC_CHECK_LIB([resolv], [strcasecmp], [LIBS="$LIBS -lresolv"])
372m4trace:configure.ac:453: -1- AC_CHECK_LIB([c89], [utimes], [AC_DEFINE(HAVE_UTIMES)
373 LIBS="$LIBS -lc89"])
374m4trace:configure.ac:453: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UTIMES])
375m4trace:configure.ac:456: -1- AC_CHECK_HEADERS([libutil.h])
376m4trace:configure.ac:456: -1- AH_OUTPUT([HAVE_LIBUTIL_H], [/* Define to 1 if you have the <libutil.h> header file. */
377#undef HAVE_LIBUTIL_H])
378m4trace:configure.ac:457: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LOGIN])
379m4trace:configure.ac:458: -1- AC_CHECK_FUNCS([logout updwtmp logwtmp])
380m4trace:configure.ac:458: -1- AH_OUTPUT([HAVE_LOGOUT], [/* Define to 1 if you have the \`logout' function. */
381#undef HAVE_LOGOUT])
382m4trace:configure.ac:458: -1- AH_OUTPUT([HAVE_UPDWTMP], [/* Define to 1 if you have the \`updwtmp' function. */
383#undef HAVE_UPDWTMP])
384m4trace:configure.ac:458: -1- AH_OUTPUT([HAVE_LOGWTMP], [/* Define to 1 if you have the \`logwtmp' function. */
385#undef HAVE_LOGWTMP])
386m4trace:configure.ac:460: -1- AC_FUNC_STRFTIME
387m4trace:configure.ac:460: -1- AC_CHECK_FUNCS([strftime], [], [# strftime is in -lintl on SCO UNIX.
388AC_CHECK_LIB(intl, strftime,
389 [AC_DEFINE(HAVE_STRFTIME)
390LIBS="-lintl $LIBS"])])
391m4trace:configure.ac:460: -1- AH_OUTPUT([HAVE_STRFTIME], [/* Define to 1 if you have the \`strftime' function. */
392#undef HAVE_STRFTIME])
393m4trace:configure.ac:460: -1- AC_CHECK_LIB([intl], [strftime], [AC_DEFINE(HAVE_STRFTIME)
394LIBS="-lintl $LIBS"])
395m4trace:configure.ac:460: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRFTIME])
396m4trace:configure.ac:478: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_ALTDIRFUNC])
397m4trace:configure.ac:494: -1- AC_DEFINE_TRACE_LITERAL([GLOB_HAS_GL_MATCHC])
398m4trace:configure.ac:508: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_ONE_BYTE_DIRENT_D_NAME])
399m4trace:configure.ac:541: -1- AC_DEFINE_TRACE_LITERAL([SKEY])
400m4trace:configure.ac:595: -1- AC_DEFINE_TRACE_LITERAL([LIBWRAP])
401m4trace:configure.ac:595: -1- AC_SUBST([LIBWRAP])
402m4trace:configure.ac:608: -1- AC_CHECK_FUNCS([arc4random b64_ntop bcopy bindresvport_sa \
403 clock fchmod fchown freeaddrinfo futimes gai_strerror \
404 getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\
405 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
406 inet_ntop innetgr login_getcapbool md5_crypt memmove \
407 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
408 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
409 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
410 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
411 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
412 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty])
413m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_ARC4RANDOM], [/* Define to 1 if you have the \`arc4random' function. */
414#undef HAVE_ARC4RANDOM])
415m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_B64_NTOP], [/* Define to 1 if you have the \`b64_ntop' function. */
416#undef HAVE_B64_NTOP])
417m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_BCOPY], [/* Define to 1 if you have the \`bcopy' function. */
418#undef HAVE_BCOPY])
419m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_BINDRESVPORT_SA], [/* Define to 1 if you have the \`bindresvport_sa' function. */
420#undef HAVE_BINDRESVPORT_SA])
421m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_CLOCK], [/* Define to 1 if you have the \`clock' function. */
422#undef HAVE_CLOCK])
423m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_FCHMOD], [/* Define to 1 if you have the \`fchmod' function. */
424#undef HAVE_FCHMOD])
425m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_FCHOWN], [/* Define to 1 if you have the \`fchown' function. */
426#undef HAVE_FCHOWN])
427m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_FREEADDRINFO], [/* Define to 1 if you have the \`freeaddrinfo' function. */
428#undef HAVE_FREEADDRINFO])
429m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_FUTIMES], [/* Define to 1 if you have the \`futimes' function. */
430#undef HAVE_FUTIMES])
431m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GAI_STRERROR], [/* Define to 1 if you have the \`gai_strerror' function. */
432#undef HAVE_GAI_STRERROR])
433m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETADDRINFO], [/* Define to 1 if you have the \`getaddrinfo' function. */
434#undef HAVE_GETADDRINFO])
435m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETCWD], [/* Define to 1 if you have the \`getcwd' function. */
436#undef HAVE_GETCWD])
437m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETGROUPLIST], [/* Define to 1 if you have the \`getgrouplist' function. */
438#undef HAVE_GETGROUPLIST])
439m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETNAMEINFO], [/* Define to 1 if you have the \`getnameinfo' function. */
440#undef HAVE_GETNAMEINFO])
441m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETOPT], [/* Define to 1 if you have the \`getopt' function. */
442#undef HAVE_GETOPT])
443m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETPEEREID], [/* Define to 1 if you have the \`getpeereid' function. */
444#undef HAVE_GETPEEREID])
445m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETRLIMIT], [/* Define to 1 if you have the \`getrlimit' function. */
446#undef HAVE_GETRLIMIT])
447m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETRUSAGE], [/* Define to 1 if you have the \`getrusage' function. */
448#undef HAVE_GETRUSAGE])
449m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GETTTYENT], [/* Define to 1 if you have the \`getttyent' function. */
450#undef HAVE_GETTTYENT])
451m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_GLOB], [/* Define to 1 if you have the \`glob' function. */
452#undef HAVE_GLOB])
453m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_INET_ATON], [/* Define to 1 if you have the \`inet_aton' function. */
454#undef HAVE_INET_ATON])
455m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_INET_NTOA], [/* Define to 1 if you have the \`inet_ntoa' function. */
456#undef HAVE_INET_NTOA])
457m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_INET_NTOP], [/* Define to 1 if you have the \`inet_ntop' function. */
458#undef HAVE_INET_NTOP])
459m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_INNETGR], [/* Define to 1 if you have the \`innetgr' function. */
460#undef HAVE_INNETGR])
461m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_LOGIN_GETCAPBOOL], [/* Define to 1 if you have the \`login_getcapbool' function. */
462#undef HAVE_LOGIN_GETCAPBOOL])
463m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_MD5_CRYPT], [/* Define to 1 if you have the \`md5_crypt' function. */
464#undef HAVE_MD5_CRYPT])
465m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_MEMMOVE], [/* Define to 1 if you have the \`memmove' function. */
466#undef HAVE_MEMMOVE])
467m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_MKDTEMP], [/* Define to 1 if you have the \`mkdtemp' function. */
468#undef HAVE_MKDTEMP])
469m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_MMAP], [/* Define to 1 if you have the \`mmap' function. */
470#undef HAVE_MMAP])
471m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_NGETADDRINFO], [/* Define to 1 if you have the \`ngetaddrinfo' function. */
472#undef HAVE_NGETADDRINFO])
473m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_OPENPTY], [/* Define to 1 if you have the \`openpty' function. */
474#undef HAVE_OPENPTY])
475m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_OGETADDRINFO], [/* Define to 1 if you have the \`ogetaddrinfo' function. */
476#undef HAVE_OGETADDRINFO])
477m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_READPASSPHRASE], [/* Define to 1 if you have the \`readpassphrase' function. */
478#undef HAVE_READPASSPHRASE])
479m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_REALPATH], [/* Define to 1 if you have the \`realpath' function. */
480#undef HAVE_REALPATH])
481m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_RECVMSG], [/* Define to 1 if you have the \`recvmsg' function. */
482#undef HAVE_RECVMSG])
483m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_RRESVPORT_AF], [/* Define to 1 if you have the \`rresvport_af' function. */
484#undef HAVE_RRESVPORT_AF])
485m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SENDMSG], [/* Define to 1 if you have the \`sendmsg' function. */
486#undef HAVE_SENDMSG])
487m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETDTABLESIZE], [/* Define to 1 if you have the \`setdtablesize' function. */
488#undef HAVE_SETDTABLESIZE])
489m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETEGID], [/* Define to 1 if you have the \`setegid' function. */
490#undef HAVE_SETEGID])
491m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETENV], [/* Define to 1 if you have the \`setenv' function. */
492#undef HAVE_SETENV])
493m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETEUID], [/* Define to 1 if you have the \`seteuid' function. */
494#undef HAVE_SETEUID])
495m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETGROUPS], [/* Define to 1 if you have the \`setgroups' function. */
496#undef HAVE_SETGROUPS])
497m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETLOGIN], [/* Define to 1 if you have the \`setlogin' function. */
498#undef HAVE_SETLOGIN])
499m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETPROCTITLE], [/* Define to 1 if you have the \`setproctitle' function. */
500#undef HAVE_SETPROCTITLE])
501m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETRESGID], [/* Define to 1 if you have the \`setresgid' function. */
502#undef HAVE_SETRESGID])
503m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETREUID], [/* Define to 1 if you have the \`setreuid' function. */
504#undef HAVE_SETREUID])
505m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETRLIMIT], [/* Define to 1 if you have the \`setrlimit' function. */
506#undef HAVE_SETRLIMIT])
507m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETSID], [/* Define to 1 if you have the \`setsid' function. */
508#undef HAVE_SETSID])
509m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETPCRED], [/* Define to 1 if you have the \`setpcred' function. */
510#undef HAVE_SETPCRED])
511m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SETVBUF], [/* Define to 1 if you have the \`setvbuf' function. */
512#undef HAVE_SETVBUF])
513m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SIGACTION], [/* Define to 1 if you have the \`sigaction' function. */
514#undef HAVE_SIGACTION])
515m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SIGVEC], [/* Define to 1 if you have the \`sigvec' function. */
516#undef HAVE_SIGVEC])
517m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the \`snprintf' function. */
518#undef HAVE_SNPRINTF])
519m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SOCKETPAIR], [/* Define to 1 if you have the \`socketpair' function. */
520#undef HAVE_SOCKETPAIR])
521m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the \`strerror' function. */
522#undef HAVE_STRERROR])
523m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the \`strlcat' function. */
524#undef HAVE_STRLCAT])
525m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_STRLCPY], [/* Define to 1 if you have the \`strlcpy' function. */
526#undef HAVE_STRLCPY])
527m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_STRMODE], [/* Define to 1 if you have the \`strmode' function. */
528#undef HAVE_STRMODE])
529m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_STRSEP], [/* Define to 1 if you have the \`strsep' function. */
530#undef HAVE_STRSEP])
531m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_SYSCONF], [/* Define to 1 if you have the \`sysconf' function. */
532#undef HAVE_SYSCONF])
533m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_TCGETPGRP], [/* Define to 1 if you have the \`tcgetpgrp' function. */
534#undef HAVE_TCGETPGRP])
535m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_TRUNCATE], [/* Define to 1 if you have the \`truncate' function. */
536#undef HAVE_TRUNCATE])
537m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_UTIMES], [/* Define to 1 if you have the \`utimes' function. */
538#undef HAVE_UTIMES])
539m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_VHANGUP], [/* Define to 1 if you have the \`vhangup' function. */
540#undef HAVE_VHANGUP])
541m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the \`vsnprintf' function. */
542#undef HAVE_VSNPRINTF])
543m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE_WAITPID], [/* Define to 1 if you have the \`waitpid' function. */
544#undef HAVE_WAITPID])
545m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE___B64_NTOP], [/* Define to 1 if you have the \`__b64_ntop' function. */
546#undef HAVE___B64_NTOP])
547m4trace:configure.ac:608: -1- AH_OUTPUT([HAVE__GETPTY], [/* Define to 1 if you have the \`_getpty' function. */
548#undef HAVE__GETPTY])
549m4trace:configure.ac:645: -1- AC_CHECK_FUNCS([dirname], [AC_CHECK_HEADERS(libgen.h) ], [
550 AC_CHECK_LIB(gen, dirname,[
551 AC_CACHE_CHECK([for broken dirname],
552 ac_cv_have_broken_dirname, [
553 save_LIBS="$LIBS"
554 LIBS="$LIBS -lgen"
555 AC_TRY_RUN(
556 [
557#include <libgen.h>
558#include <string.h>
559
560int main(int argc, char **argv) {
561 char *s, buf[32];
562
563 strncpy(buf,"/etc", 32);
564 s = dirname(buf);
565 if (!s || strncmp(s, "/", 32) != 0) {
566 exit(1);
567 } else {
568 exit(0);
569 }
570}
571 ],
572 [ ac_cv_have_broken_dirname="no" ],
573 [ ac_cv_have_broken_dirname="yes" ]
574 )
575 LIBS="$save_LIBS"
576 ])
577 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
578 LIBS="$LIBS -lgen"
579 AC_DEFINE(HAVE_DIRNAME)
580 AC_CHECK_HEADERS(libgen.h)
581 fi
582 ])
583])
584m4trace:configure.ac:645: -1- AH_OUTPUT([HAVE_DIRNAME], [/* Define to 1 if you have the \`dirname' function. */
585#undef HAVE_DIRNAME])
586m4trace:configure.ac:645: -1- AC_CHECK_HEADERS([libgen.h])
587m4trace:configure.ac:645: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
588#undef HAVE_LIBGEN_H])
589m4trace:configure.ac:645: -1- AC_CHECK_LIB([gen], [dirname], [
590 AC_CACHE_CHECK([for broken dirname],
591 ac_cv_have_broken_dirname, [
592 save_LIBS="$LIBS"
593 LIBS="$LIBS -lgen"
594 AC_TRY_RUN(
595 [
596#include <libgen.h>
597#include <string.h>
598
599int main(int argc, char **argv) {
600 char *s, buf[32];
601
602 strncpy(buf,"/etc", 32);
603 s = dirname(buf);
604 if (!s || strncmp(s, "/", 32) != 0) {
605 exit(1);
606 } else {
607 exit(0);
608 }
609}
610 ],
611 [ ac_cv_have_broken_dirname="no" ],
612 [ ac_cv_have_broken_dirname="yes" ]
613 )
614 LIBS="$save_LIBS"
615 ])
616 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
617 LIBS="$LIBS -lgen"
618 AC_DEFINE(HAVE_DIRNAME)
619 AC_CHECK_HEADERS(libgen.h)
620 fi
621 ])
622m4trace:configure.ac:645: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DIRNAME])
623m4trace:configure.ac:645: -1- AC_CHECK_HEADERS([libgen.h])
624m4trace:configure.ac:645: -1- AH_OUTPUT([HAVE_LIBGEN_H], [/* Define to 1 if you have the <libgen.h> header file. */
625#undef HAVE_LIBGEN_H])
626m4trace:configure.ac:648: -1- AC_CHECK_FUNCS([gettimeofday time])
627m4trace:configure.ac:648: -1- AH_OUTPUT([HAVE_GETTIMEOFDAY], [/* Define to 1 if you have the \`gettimeofday' function. */
628#undef HAVE_GETTIMEOFDAY])
629m4trace:configure.ac:648: -1- AH_OUTPUT([HAVE_TIME], [/* Define to 1 if you have the \`time' function. */
630#undef HAVE_TIME])
631m4trace:configure.ac:650: -1- AC_CHECK_FUNCS([endutent getutent getutid getutline pututline setutent])
632m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_ENDUTENT], [/* Define to 1 if you have the \`endutent' function. */
633#undef HAVE_ENDUTENT])
634m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_GETUTENT], [/* Define to 1 if you have the \`getutent' function. */
635#undef HAVE_GETUTENT])
636m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_GETUTID], [/* Define to 1 if you have the \`getutid' function. */
637#undef HAVE_GETUTID])
638m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_GETUTLINE], [/* Define to 1 if you have the \`getutline' function. */
639#undef HAVE_GETUTLINE])
640m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_PUTUTLINE], [/* Define to 1 if you have the \`pututline' function. */
641#undef HAVE_PUTUTLINE])
642m4trace:configure.ac:650: -1- AH_OUTPUT([HAVE_SETUTENT], [/* Define to 1 if you have the \`setutent' function. */
643#undef HAVE_SETUTENT])
644m4trace:configure.ac:651: -1- AC_CHECK_FUNCS([utmpname])
645m4trace:configure.ac:651: -1- AH_OUTPUT([HAVE_UTMPNAME], [/* Define to 1 if you have the \`utmpname' function. */
646#undef HAVE_UTMPNAME])
647m4trace:configure.ac:653: -1- AC_CHECK_FUNCS([endutxent getutxent getutxid getutxline pututxline ])
648m4trace:configure.ac:653: -1- AH_OUTPUT([HAVE_ENDUTXENT], [/* Define to 1 if you have the \`endutxent' function. */
649#undef HAVE_ENDUTXENT])
650m4trace:configure.ac:653: -1- AH_OUTPUT([HAVE_GETUTXENT], [/* Define to 1 if you have the \`getutxent' function. */
651#undef HAVE_GETUTXENT])
652m4trace:configure.ac:653: -1- AH_OUTPUT([HAVE_GETUTXID], [/* Define to 1 if you have the \`getutxid' function. */
653#undef HAVE_GETUTXID])
654m4trace:configure.ac:653: -1- AH_OUTPUT([HAVE_GETUTXLINE], [/* Define to 1 if you have the \`getutxline' function. */
655#undef HAVE_GETUTXLINE])
656m4trace:configure.ac:653: -1- AH_OUTPUT([HAVE_PUTUTXLINE], [/* Define to 1 if you have the \`pututxline' function. */
657#undef HAVE_PUTUTXLINE])
658m4trace:configure.ac:654: -1- AC_CHECK_FUNCS([setutxent utmpxname])
659m4trace:configure.ac:654: -1- AH_OUTPUT([HAVE_SETUTXENT], [/* Define to 1 if you have the \`setutxent' function. */
660#undef HAVE_SETUTXENT])
661m4trace:configure.ac:654: -1- AH_OUTPUT([HAVE_UTMPXNAME], [/* Define to 1 if you have the \`utmpxname' function. */
662#undef HAVE_UTMPXNAME])
663m4trace:configure.ac:659: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
664m4trace:configure.ac:659: -1- AC_CHECK_LIB([bsd], [daemon], [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])
665m4trace:configure.ac:659: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DAEMON])
666m4trace:configure.ac:664: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
667m4trace:configure.ac:664: -1- AC_CHECK_LIB([ucb], [getpagesize], [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])
668m4trace:configure.ac:664: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETPAGESIZE])
669m4trace:configure.ac:680: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
670m4trace:configure.ac:683: -1- AC_FUNC_GETPGRP
671m4trace:configure.ac:683: -1- AC_DEFINE_TRACE_LITERAL([GETPGRP_VOID])
672m4trace:configure.ac:683: -1- AH_OUTPUT([GETPGRP_VOID], [/* Define to 1 if the \`getpgrp' function requires zero arguments. */
673#undef GETPGRP_VOID])
674m4trace:configure.ac:711: -1- AC_CHECK_LIB([dl], [dlopen], [], [])
675m4trace:configure.ac:711: -1- AH_OUTPUT([HAVE_LIBDL], [/* Define to 1 if you have the \`dl' library (-ldl). */
676#undef HAVE_LIBDL])
677m4trace:configure.ac:711: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDL])
678m4trace:configure.ac:711: -1- AC_CHECK_LIB([pam], [pam_set_item], [], [{ { echo "$as_me:$LINENO: error: *** libpam missing" >&5
679echo "$as_me: error: *** libpam missing" >&2;}
680 { (exit 1); exit 1; }; }])
681m4trace:configure.ac:711: -1- AH_OUTPUT([HAVE_LIBPAM], [/* Define to 1 if you have the \`pam' library (-lpam). */
682#undef HAVE_LIBPAM])
683m4trace:configure.ac:711: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPAM])
684m4trace:configure.ac:711: -1- AC_CHECK_FUNCS([pam_getenvlist])
685m4trace:configure.ac:711: -1- AH_OUTPUT([HAVE_PAM_GETENVLIST], [/* Define to 1 if you have the \`pam_getenvlist' function. */
686#undef HAVE_PAM_GETENVLIST])
687m4trace:configure.ac:711: -1- AC_DEFINE_TRACE_LITERAL([USE_PAM])
688m4trace:configure.ac:711: -1- AC_SUBST([LIBPAM])
689m4trace:configure.ac:729: -1- AC_DEFINE_TRACE_LITERAL([HAVE_OLD_PAM])
690m4trace:configure.ac:735: -1- AC_CHECK_LIB([crypt], [crypt])
691m4trace:configure.ac:735: -1- AH_OUTPUT([HAVE_LIBCRYPT], [/* Define to 1 if you have the \`crypt' library (-lcrypt). */
692#undef HAVE_LIBCRYPT])
693m4trace:configure.ac:735: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCRYPT])
694m4trace:configure.ac:767: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
695m4trace:configure.ac:782: -2- AC_DEFINE_TRACE_LITERAL([HAVE_OPENSSL])
696m4trace:configure.ac:869: -1- AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
697m4trace:configure.ac:917: -1- AC_DEFINE_TRACE_LITERAL([OPENSSL_PRNG_ONLY])
698m4trace:configure.ac:925: -1- AC_SUBST([INSTALL_SSH_RAND_HELPER])
699m4trace:configure.ac:948: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_PORT])
700m4trace:configure.ac:998: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
701m4trace:configure.ac:998: -1- AC_DEFINE_TRACE_LITERAL([PRNGD_SOCKET])
702m4trace:configure.ac:1010: -1- AC_DEFINE_TRACE_LITERAL([ENTROPY_TIMEOUT_MSEC])
703m4trace:configure.ac:1021: -1- AC_DEFINE_TRACE_LITERAL([SSH_PRIVSEP_USER])
704m4trace:configure.ac:1022: -1- AC_SUBST([SSH_PRIVSEP_USER])
705m4trace:configure.ac:1039: -1- AC_SUBST([PROG_LS], [$ac_cv_path_PROG_LS])
706m4trace:configure.ac:1039: -1- AC_SUBST([PROG_LS])
707m4trace:configure.ac:1040: -1- AC_SUBST([PROG_NETSTAT], [$ac_cv_path_PROG_NETSTAT])
708m4trace:configure.ac:1040: -1- AC_SUBST([PROG_NETSTAT])
709m4trace:configure.ac:1041: -1- AC_SUBST([PROG_ARP], [$ac_cv_path_PROG_ARP])
710m4trace:configure.ac:1041: -1- AC_SUBST([PROG_ARP])
711m4trace:configure.ac:1042: -1- AC_SUBST([PROG_IFCONFIG], [$ac_cv_path_PROG_IFCONFIG])
712m4trace:configure.ac:1042: -1- AC_SUBST([PROG_IFCONFIG])
713m4trace:configure.ac:1043: -1- AC_SUBST([PROG_JSTAT], [$ac_cv_path_PROG_JSTAT])
714m4trace:configure.ac:1043: -1- AC_SUBST([PROG_JSTAT])
715m4trace:configure.ac:1044: -1- AC_SUBST([PROG_PS], [$ac_cv_path_PROG_PS])
716m4trace:configure.ac:1044: -1- AC_SUBST([PROG_PS])
717m4trace:configure.ac:1045: -1- AC_SUBST([PROG_SAR], [$ac_cv_path_PROG_SAR])
718m4trace:configure.ac:1045: -1- AC_SUBST([PROG_SAR])
719m4trace:configure.ac:1046: -1- AC_SUBST([PROG_W], [$ac_cv_path_PROG_W])
720m4trace:configure.ac:1046: -1- AC_SUBST([PROG_W])
721m4trace:configure.ac:1047: -1- AC_SUBST([PROG_WHO], [$ac_cv_path_PROG_WHO])
722m4trace:configure.ac:1047: -1- AC_SUBST([PROG_WHO])
723m4trace:configure.ac:1048: -1- AC_SUBST([PROG_LAST], [$ac_cv_path_PROG_LAST])
724m4trace:configure.ac:1048: -1- AC_SUBST([PROG_LAST])
725m4trace:configure.ac:1049: -1- AC_SUBST([PROG_LASTLOG], [$ac_cv_path_PROG_LASTLOG])
726m4trace:configure.ac:1049: -1- AC_SUBST([PROG_LASTLOG])
727m4trace:configure.ac:1050: -1- AC_SUBST([PROG_DF], [$ac_cv_path_PROG_DF])
728m4trace:configure.ac:1050: -1- AC_SUBST([PROG_DF])
729m4trace:configure.ac:1051: -1- AC_SUBST([PROG_VMSTAT], [$ac_cv_path_PROG_VMSTAT])
730m4trace:configure.ac:1051: -1- AC_SUBST([PROG_VMSTAT])
731m4trace:configure.ac:1052: -1- AC_SUBST([PROG_UPTIME], [$ac_cv_path_PROG_UPTIME])
732m4trace:configure.ac:1052: -1- AC_SUBST([PROG_UPTIME])
733m4trace:configure.ac:1053: -1- AC_SUBST([PROG_IPCS], [$ac_cv_path_PROG_IPCS])
734m4trace:configure.ac:1053: -1- AC_SUBST([PROG_IPCS])
735m4trace:configure.ac:1054: -1- AC_SUBST([PROG_TAIL], [$ac_cv_path_PROG_TAIL])
736m4trace:configure.ac:1054: -1- AC_SUBST([PROG_TAIL])
737m4trace:configure.ac:1071: -1- AC_SUBST([INSTALL_SSH_PRNG_CMDS])
738m4trace:configure.ac:1080: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_CHAR])
739m4trace:configure.ac:1080: -1- AH_OUTPUT([SIZEOF_CHAR], [/* The size of a \`char', as computed by sizeof. */
740#undef SIZEOF_CHAR])
741m4trace:configure.ac:1081: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_SHORT_INT])
742m4trace:configure.ac:1081: -1- AH_OUTPUT([SIZEOF_SHORT_INT], [/* The size of a \`short int', as computed by sizeof. */
743#undef SIZEOF_SHORT_INT])
744m4trace:configure.ac:1082: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_INT])
745m4trace:configure.ac:1082: -1- AH_OUTPUT([SIZEOF_INT], [/* The size of a \`int', as computed by sizeof. */
746#undef SIZEOF_INT])
747m4trace:configure.ac:1083: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_INT])
748m4trace:configure.ac:1083: -1- AH_OUTPUT([SIZEOF_LONG_INT], [/* The size of a \`long int', as computed by sizeof. */
749#undef SIZEOF_LONG_INT])
750m4trace:configure.ac:1084: -1- AC_DEFINE_TRACE_LITERAL([SIZEOF_LONG_LONG_INT])
751m4trace:configure.ac:1084: -1- AH_OUTPUT([SIZEOF_LONG_LONG_INT], [/* The size of a \`long long int', as computed by sizeof. */
752#undef SIZEOF_LONG_LONG_INT])
753m4trace:configure.ac:1101: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT])
754m4trace:configure.ac:1114: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
755m4trace:configure.ac:1130: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
756m4trace:configure.ac:1151: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INT64_T])
757m4trace:configure.ac:1163: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
758m4trace:configure.ac:1177: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
759m4trace:configure.ac:1189: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
760m4trace:configure.ac:1203: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INT64_T])
761m4trace:configure.ac:1218: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
762m4trace:configure.ac:1232: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UINTXX_T])
763m4trace:configure.ac:1254: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_INTXX_T])
764m4trace:configure.ac:1254: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INTXX_T])
765m4trace:configure.ac:1269: -1- AC_DEFINE_TRACE_LITERAL([HAVE_U_CHAR])
766m4trace:configure.ac:1272: -1- AC_DEFINE_TRACE_LITERAL([socklen_t])
767m4trace:configure.ac:1272: -1- AH_OUTPUT([socklen_t], [/* type to use in place of socklen_t if not defined */
768#undef socklen_t])
769m4trace:configure.ac:1274: -1- AC_CHECK_TYPES([sig_atomic_t], [], [], [#include <signal.h>])
770m4trace:configure.ac:1274: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIG_ATOMIC_T])
771m4trace:configure.ac:1274: -1- AH_OUTPUT([HAVE_SIG_ATOMIC_T], [/* Define to 1 if the system has the type \`sig_atomic_t'. */
772#undef HAVE_SIG_ATOMIC_T])
773m4trace:configure.ac:1287: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SIZE_T])
774m4trace:configure.ac:1301: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T])
775m4trace:configure.ac:1315: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CLOCK_T])
776m4trace:configure.ac:1340: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SA_FAMILY_T])
777m4trace:configure.ac:1354: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_T])
778m4trace:configure.ac:1368: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MODE_T])
779m4trace:configure.ac:1384: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_STORAGE])
780m4trace:configure.ac:1399: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_SOCKADDR_IN6])
781m4trace:configure.ac:1414: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_IN6_ADDR])
782m4trace:configure.ac:1430: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_ADDRINFO])
783m4trace:configure.ac:1442: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_TIMEVAL])
784m4trace:configure.ac:1479: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SNPRINTF])
785m4trace:configure.ac:1481: -1- AC_SUBST([NO_SFTP])
786m4trace:configure.ac:1484: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMP])
787m4trace:configure.ac:1485: -1- AC_DEFINE_TRACE_LITERAL([HAVE_HOST_IN_UTMPX])
788m4trace:configure.ac:1486: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYSLEN_IN_UTMPX])
789m4trace:configure.ac:1487: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PID_IN_UTMP])
790m4trace:configure.ac:1488: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMP])
791m4trace:configure.ac:1489: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TYPE_IN_UTMPX])
792m4trace:configure.ac:1490: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMP])
793m4trace:configure.ac:1491: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMP])
794m4trace:configure.ac:1492: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ID_IN_UTMPX])
795m4trace:configure.ac:1493: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMP])
796m4trace:configure.ac:1494: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_IN_UTMPX])
797m4trace:configure.ac:1495: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMP])
798m4trace:configure.ac:1496: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ADDR_V6_IN_UTMPX])
799m4trace:configure.ac:1497: -1- AC_DEFINE_TRACE_LITERAL([HAVE_EXIT_IN_UTMP])
800m4trace:configure.ac:1498: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMP])
801m4trace:configure.ac:1499: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TIME_IN_UTMPX])
802m4trace:configure.ac:1500: -1- AC_DEFINE_TRACE_LITERAL([HAVE_TV_IN_UTMPX])
803m4trace:configure.ac:1502: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRUCT_STAT_ST_BLKSIZE])
804m4trace:configure.ac:1502: -1- AH_OUTPUT([HAVE_STRUCT_STAT_ST_BLKSIZE], [/* Define to 1 if \`st_blksize' is member of \`struct stat'. */
805#undef HAVE_STRUCT_STAT_ST_BLKSIZE])
806m4trace:configure.ac:1517: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SS_FAMILY_IN_SS])
807m4trace:configure.ac:1533: -1- AC_DEFINE_TRACE_LITERAL([HAVE___SS_FAMILY_IN_SS])
808m4trace:configure.ac:1548: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CLASS_IN_PASSWD])
809m4trace:configure.ac:1563: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_EXPIRE_IN_PASSWD])
810m4trace:configure.ac:1578: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PW_CHANGE_IN_PASSWD])
811m4trace:configure.ac:1603: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ACCRIGHTS_IN_MSGHDR])
812m4trace:configure.ac:1627: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CONTROL_IN_MSGHDR])
813m4trace:configure.ac:1638: -1- AC_DEFINE_TRACE_LITERAL([HAVE___PROGNAME])
814m4trace:configure.ac:1651: -1- AC_DEFINE_TRACE_LITERAL([HAVE___FUNCTION__])
815m4trace:configure.ac:1664: -1- AC_DEFINE_TRACE_LITERAL([HAVE___func__])
816m4trace:configure.ac:1679: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GETOPT_OPTRESET])
817m4trace:configure.ac:1690: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_ERRLIST])
818m4trace:configure.ac:1702: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SYS_NERR])
819m4trace:configure.ac:1735: -1- AC_CHECK_HEADERS([sectok.h])
820m4trace:configure.ac:1735: -1- AH_OUTPUT([HAVE_SECTOK_H], [/* Define to 1 if you have the <sectok.h> header file. */
821#undef HAVE_SECTOK_H])
822m4trace:configure.ac:1735: -1- AC_CHECK_LIB([sectok], [sectok_open])
823m4trace:configure.ac:1735: -1- AH_OUTPUT([HAVE_LIBSECTOK], [/* Define to 1 if you have the \`sectok' library (-lsectok). */
824#undef HAVE_LIBSECTOK])
825m4trace:configure.ac:1735: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSECTOK])
826m4trace:configure.ac:1735: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
827m4trace:configure.ac:1735: -1- AC_DEFINE_TRACE_LITERAL([USE_SECTOK])
828m4trace:configure.ac:1744: -1- AC_SUBST([OPENSC_CONFIG], [$ac_cv_path_OPENSC_CONFIG])
829m4trace:configure.ac:1750: -1- AC_DEFINE_TRACE_LITERAL([SMARTCARD])
830m4trace:configure.ac:1751: -1- AC_DEFINE_TRACE_LITERAL([USE_OPENSC])
831m4trace:configure.ac:1793: -1- AC_DEFINE_TRACE_LITERAL([KRB5])
832m4trace:configure.ac:1793: -1- AC_DEFINE_TRACE_LITERAL([HEIMDAL])
833m4trace:configure.ac:1793: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
834m4trace:configure.ac:1793: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */
835#undef HAVE_LIBRESOLV])
836m4trace:configure.ac:1793: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
837m4trace:configure.ac:1847: -1- AC_CHECK_HEADERS([krb.h])
838m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_KRB_H], [/* Define to 1 if you have the <krb.h> header file. */
839#undef HAVE_KRB_H])
840m4trace:configure.ac:1847: -1- AC_CHECK_LIB([krb], [main])
841m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_LIBKRB], [/* Define to 1 if you have the \`krb' library (-lkrb). */
842#undef HAVE_LIBKRB])
843m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB])
844m4trace:configure.ac:1847: -1- AC_CHECK_LIB([krb4], [main])
845m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_LIBKRB4], [/* Define to 1 if you have the \`krb4' library (-lkrb4). */
846#undef HAVE_LIBKRB4])
847m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBKRB4])
848m4trace:configure.ac:1847: -1- AC_CHECK_LIB([des], [des_cbc_encrypt])
849m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_LIBDES], [/* Define to 1 if you have the \`des' library (-ldes). */
850#undef HAVE_LIBDES])
851m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES])
852m4trace:configure.ac:1847: -1- AC_CHECK_LIB([des425], [des_cbc_encrypt])
853m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_LIBDES425], [/* Define to 1 if you have the \`des425' library (-ldes425). */
854#undef HAVE_LIBDES425])
855m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBDES425])
856m4trace:configure.ac:1847: -1- AC_CHECK_LIB([resolv], [dn_expand], [], [])
857m4trace:configure.ac:1847: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the \`resolv' library (-lresolv). */
858#undef HAVE_LIBRESOLV])
859m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
860m4trace:configure.ac:1847: -1- AC_DEFINE_TRACE_LITERAL([KRB4])
861m4trace:configure.ac:1873: -1- AC_DEFINE_TRACE_LITERAL([AFS])
862m4trace:configure.ac:1887: -1- AC_SUBST([PRIVSEP_PATH])
863m4trace:configure.ac:1907: -1- AC_SUBST([xauth_path], [$ac_cv_path_xauth_path])
864m4trace:configure.ac:1911: -1- AC_SUBST([XAUTH_PATH])
865m4trace:configure.ac:1913: -1- AC_DEFINE_TRACE_LITERAL([XAUTH_PATH])
866m4trace:configure.ac:1915: -1- AC_SUBST([XAUTH_PATH])
867m4trace:configure.ac:1921: -1- AC_DEFINE_TRACE_LITERAL([MAIL_DIRECTORY])
868m4trace:configure.ac:1931: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTMX])
869m4trace:configure.ac:1939: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEV_PTS_AND_PTC])
870m4trace:configure.ac:1957: -1- AC_SUBST([NROFF], [$ac_cv_path_NROFF])
871m4trace:configure.ac:1966: -1- AC_SUBST([MANTYPE])
872m4trace:configure.ac:1972: -1- AC_SUBST([mansubdir])
873m4trace:configure.ac:1984: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MD5_PASSWORDS])
874m4trace:configure.ac:1995: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_SHADOW])
875m4trace:configure.ac:2010: -1- AC_DEFINE_TRACE_LITERAL([HAS_SHADOW_EXPIRE])
876m4trace:configure.ac:2019: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
877m4trace:configure.ac:2030: -1- AC_DEFINE_TRACE_LITERAL([IPADDR_IN_DISPLAY])
878m4trace:configure.ac:2107: -1- AC_DEFINE_TRACE_LITERAL([USER_PATH])
879m4trace:configure.ac:2108: -1- AC_SUBST([user_path])
880m4trace:configure.ac:2120: -1- AC_DEFINE_TRACE_LITERAL([SUPERUSER_PATH])
881m4trace:configure.ac:2133: -1- AC_DEFINE_TRACE_LITERAL([IPV4_DEFAULT])
882m4trace:configure.ac:2156: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
883m4trace:configure.ac:2156: -1- AC_DEFINE_TRACE_LITERAL([IPV4_IN_IPV6])
884m4trace:configure.ac:2168: -1- AC_DEFINE_TRACE_LITERAL([BSD_AUTH])
885m4trace:configure.ac:2192: -1- AC_DEFINE_TRACE_LITERAL([_PATH_SSH_PIDDIR])
886m4trace:configure.ac:2193: -1- AC_SUBST([piddir])
887m4trace:configure.ac:2199: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
888m4trace:configure.ac:2203: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
889m4trace:configure.ac:2207: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
890m4trace:configure.ac:2211: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
891m4trace:configure.ac:2215: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
892m4trace:configure.ac:2219: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LOGIN])
893m4trace:configure.ac:2223: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTLINE])
894m4trace:configure.ac:2227: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_PUTUTXLINE])
895m4trace:configure.ac:2237: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_LASTLOG])
896m4trace:configure.ac:2299: -1- AC_DEFINE_TRACE_LITERAL([CONF_LASTLOG_FILE])
897m4trace:configure.ac:2324: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMP])
898m4trace:configure.ac:2329: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMP_FILE])
899m4trace:configure.ac:2354: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMP])
900m4trace:configure.ac:2359: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMP_FILE])
901m4trace:configure.ac:2384: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_UTMPX])
902m4trace:configure.ac:2387: -1- AC_DEFINE_TRACE_LITERAL([CONF_UTMPX_FILE])
903m4trace:configure.ac:2409: -1- AC_DEFINE_TRACE_LITERAL([DISABLE_WTMPX])
904m4trace:configure.ac:2412: -1- AC_DEFINE_TRACE_LITERAL([CONF_WTMPX_FILE])
905m4trace:configure.ac:2430: -1- AC_CONFIG_FILES([Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds])
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..e87309415
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,903 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2/* $Id: acconfig.h,v 1.145 2002/09/26 00:38:48 tim Exp $ */
3
4#ifndef _CONFIG_H
5#define _CONFIG_H
6
7/* Generated automatically from acconfig.h by autoheader. */
8/* Please make your changes there */
9
10
11/* Define to a Set Process Title type if your system is */
12/* supported by bsd-setproctitle.c */
13#undef SPT_TYPE
14
15/* setgroups() NOOP allowed */
16#undef SETGROUPS_NOOP
17
18/* SCO workaround */
19#undef BROKEN_SYS_TERMIO_H
20
21/* Define if you have SecureWare-based protected password database */
22#undef HAVE_SECUREWARE
23
24/* If your header files don't define LOGIN_PROGRAM, then use this (detected) */
25/* from environment and PATH */
26#undef LOGIN_PROGRAM_FALLBACK
27
28/* Define if your password has a pw_class field */
29#undef HAVE_PW_CLASS_IN_PASSWD
30
31/* Define if your password has a pw_expire field */
32#undef HAVE_PW_EXPIRE_IN_PASSWD
33
34/* Define if your password has a pw_change field */
35#undef HAVE_PW_CHANGE_IN_PASSWD
36
37/* Define if your system uses access rights style file descriptor passing */
38#undef HAVE_ACCRIGHTS_IN_MSGHDR
39
40/* Define if your system uses ancillary data style file descriptor passing */
41#undef HAVE_CONTROL_IN_MSGHDR
42
43/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
44#undef BROKEN_INET_NTOA
45
46/* Define if your system defines sys_errlist[] */
47#undef HAVE_SYS_ERRLIST
48
49/* Define if your system defines sys_nerr */
50#undef HAVE_SYS_NERR
51
52/* Define if your system choked on IP TOS setting */
53#undef IP_TOS_IS_BROKEN
54
55/* Define if you have the getuserattr function. */
56#undef HAVE_GETUSERATTR
57
58/* Work around problematic Linux PAM modules handling of PAM_TTY */
59#undef PAM_TTY_KLUDGE
60
61/* Use PIPES instead of a socketpair() */
62#undef USE_PIPES
63
64/* Define if your snprintf is busted */
65#undef BROKEN_SNPRINTF
66
67/* Define if you are on Cygwin */
68#undef HAVE_CYGWIN
69
70/* Define if you have a broken realpath. */
71#undef BROKEN_REALPATH
72
73/* Define if you are on NeXT */
74#undef HAVE_NEXT
75
76/* Define if you are on NEWS-OS */
77#undef HAVE_NEWS4
78
79/* Define if you want to enable PAM support */
80#undef USE_PAM
81
82/* Define if you want to enable AIX4's authenticate function */
83#undef WITH_AIXAUTHENTICATE
84
85/* Define if you have/want arrays (cluster-wide session managment, not C arrays) */
86#undef WITH_IRIX_ARRAY
87
88/* Define if you want IRIX project management */
89#undef WITH_IRIX_PROJECT
90
91/* Define if you want IRIX audit trails */
92#undef WITH_IRIX_AUDIT
93
94/* Define if you want IRIX kernel jobs */
95#undef WITH_IRIX_JOBS
96
97/* Location of PRNGD/EGD random number socket */
98#undef PRNGD_SOCKET
99
100/* Port number of PRNGD/EGD random number socket */
101#undef PRNGD_PORT
102
103/* Builtin PRNG command timeout */
104#undef ENTROPY_TIMEOUT_MSEC
105
106/* non-privileged user for privilege separation */
107#undef SSH_PRIVSEP_USER
108
109/* Define if you want to install preformatted manpages.*/
110#undef MANTYPE
111
112/* Define if your ssl headers are included with #include <openssl/header.h> */
113#undef HAVE_OPENSSL
114
115/* Define if you are linking against RSAref. Used only to print the right
116 * message at run-time. */
117#undef RSAREF
118
119/* struct timeval */
120#undef HAVE_STRUCT_TIMEVAL
121
122/* struct utmp and struct utmpx fields */
123#undef HAVE_HOST_IN_UTMP
124#undef HAVE_HOST_IN_UTMPX
125#undef HAVE_ADDR_IN_UTMP
126#undef HAVE_ADDR_IN_UTMPX
127#undef HAVE_ADDR_V6_IN_UTMP
128#undef HAVE_ADDR_V6_IN_UTMPX
129#undef HAVE_SYSLEN_IN_UTMPX
130#undef HAVE_PID_IN_UTMP
131#undef HAVE_TYPE_IN_UTMP
132#undef HAVE_TYPE_IN_UTMPX
133#undef HAVE_TV_IN_UTMP
134#undef HAVE_TV_IN_UTMPX
135#undef HAVE_ID_IN_UTMP
136#undef HAVE_ID_IN_UTMPX
137#undef HAVE_EXIT_IN_UTMP
138#undef HAVE_TIME_IN_UTMP
139#undef HAVE_TIME_IN_UTMPX
140
141/* Define if you don't want to use your system's login() call */
142#undef DISABLE_LOGIN
143
144/* Define if you don't want to use pututline() etc. to write [uw]tmp */
145#undef DISABLE_PUTUTLINE
146
147/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
148#undef DISABLE_PUTUTXLINE
149
150/* Define if you don't want to use lastlog */
151#undef DISABLE_LASTLOG
152
153/* Define if you don't want to use lastlog in session.c */
154#undef NO_SSH_LASTLOG
155
156/* Define if you don't want to use utmp */
157#undef DISABLE_UTMP
158
159/* Define if you don't want to use utmpx */
160#undef DISABLE_UTMPX
161
162/* Define if you don't want to use wtmp */
163#undef DISABLE_WTMP
164
165/* Define if you don't want to use wtmpx */
166#undef DISABLE_WTMPX
167
168/* Some systems need a utmpx entry for /bin/login to work */
169#undef LOGIN_NEEDS_UTMPX
170
171/* Some versions of /bin/login need the TERM supplied on the commandline */
172#undef LOGIN_NEEDS_TERM
173
174/* Define if your login program cannot handle end of options ("--") */
175#undef LOGIN_NO_ENDOPT
176
177/* Define if you want to specify the path to your lastlog file */
178#undef CONF_LASTLOG_FILE
179
180/* Define if you want to specify the path to your utmp file */
181#undef CONF_UTMP_FILE
182
183/* Define if you want to specify the path to your wtmp file */
184#undef CONF_WTMP_FILE
185
186/* Define if you want to specify the path to your utmpx file */
187#undef CONF_UTMPX_FILE
188
189/* Define if you want to specify the path to your wtmpx file */
190#undef CONF_WTMPX_FILE
191
192/* Define if you want external askpass support */
193#undef USE_EXTERNAL_ASKPASS
194
195/* Define if libc defines __progname */
196#undef HAVE___PROGNAME
197
198/* Define if compiler implements __FUNCTION__ */
199#undef HAVE___FUNCTION__
200
201/* Define if compiler implements __func__ */
202#undef HAVE___func__
203
204/* Define if you want Kerberos 5 support */
205#undef KRB5
206
207/* Define this if you are using the Heimdal version of Kerberos V5 */
208#undef HEIMDAL
209
210/* Define if you want Kerberos 4 support */
211#undef KRB4
212
213/* Define if you want AFS support */
214#undef AFS
215
216/* Define if you want S/Key support */
217#undef SKEY
218
219/* Define if you want TCP Wrappers support */
220#undef LIBWRAP
221
222/* Define if your libraries define login() */
223#undef HAVE_LOGIN
224
225/* Define if your libraries define daemon() */
226#undef HAVE_DAEMON
227
228/* Define if your libraries define getpagesize() */
229#undef HAVE_GETPAGESIZE
230
231/* Define if xauth is found in your path */
232#undef XAUTH_PATH
233
234/* Define if you want to allow MD5 passwords */
235#undef HAVE_MD5_PASSWORDS
236
237/* Define if you want to disable shadow passwords */
238#undef DISABLE_SHADOW
239
240/* Define if you want to use shadow password expire field */
241#undef HAS_SHADOW_EXPIRE
242
243/* Define if you have Digital Unix Security Integration Architecture */
244#undef HAVE_OSF_SIA
245
246/* Define if you have getpwanam(3) [SunOS 4.x] */
247#undef HAVE_GETPWANAM
248
249/* Define if you have an old version of PAM which takes only one argument */
250/* to pam_strerror */
251#undef HAVE_OLD_PAM
252
253/* Define if you are using Solaris-derived PAM which passes pam_messages */
254/* to the conversation function with an extra level of indirection */
255#undef PAM_SUN_CODEBASE
256
257/* Set this to your mail directory if you don't have maillock.h */
258#undef MAIL_DIRECTORY
259
260/* Data types */
261#undef HAVE_U_INT
262#undef HAVE_INTXX_T
263#undef HAVE_U_INTXX_T
264#undef HAVE_UINTXX_T
265#undef HAVE_INT64_T
266#undef HAVE_U_INT64_T
267#undef HAVE_U_CHAR
268#undef HAVE_SIZE_T
269#undef HAVE_SSIZE_T
270#undef HAVE_CLOCK_T
271#undef HAVE_MODE_T
272#undef HAVE_PID_T
273#undef HAVE_SA_FAMILY_T
274#undef HAVE_STRUCT_SOCKADDR_STORAGE
275#undef HAVE_STRUCT_ADDRINFO
276#undef HAVE_STRUCT_IN6_ADDR
277#undef HAVE_STRUCT_SOCKADDR_IN6
278
279/* Fields in struct sockaddr_storage */
280#undef HAVE_SS_FAMILY_IN_SS
281#undef HAVE___SS_FAMILY_IN_SS
282
283/* Define if you have /dev/ptmx */
284#undef HAVE_DEV_PTMX
285
286/* Define if you have /dev/ptc */
287#undef HAVE_DEV_PTS_AND_PTC
288
289/* Define if you need to use IP address instead of hostname in $DISPLAY */
290#undef IPADDR_IN_DISPLAY
291
292/* Specify default $PATH */
293#undef USER_PATH
294
295/* Specify location of ssh.pid */
296#undef _PATH_SSH_PIDDIR
297
298/* Use IPv4 for connection by default, IPv6 can still if explicity asked */
299#undef IPV4_DEFAULT
300
301/* getaddrinfo is broken (if present) */
302#undef BROKEN_GETADDRINFO
303
304/* Workaround more Linux IPv6 quirks */
305#undef DONT_TRY_OTHER_AF
306
307/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
308#undef IPV4_IN_IPV6
309
310/* Define if you have BSD auth support */
311#undef BSD_AUTH
312
313/* Define if X11 doesn't support AF_UNIX sockets on that system */
314#undef NO_X11_UNIX_SOCKETS
315
316/* Define if the concept of ports only accessible to superusers isn't known */
317#undef NO_IPPORT_RESERVED_CONCEPT
318
319/* Needed for SCO and NeXT */
320#undef BROKEN_SAVED_UIDS
321
322/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
323#undef GLOB_HAS_ALTDIRFUNC
324
325/* Define if your system glob() function has gl_matchc options in glob_t */
326#undef GLOB_HAS_GL_MATCHC
327
328/* Define in your struct dirent expects you to allocate extra space for d_name */
329#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
330
331/* Define if your getopt(3) defines and uses optreset */
332#undef HAVE_GETOPT_OPTRESET
333
334/* Define on *nto-qnx systems */
335#undef MISSING_NFDBITS
336
337/* Define on *nto-qnx systems */
338#undef MISSING_HOWMANY
339
340/* Define on *nto-qnx systems */
341#undef MISSING_FD_MASK
342
343/* Define if you want smartcard support */
344#undef SMARTCARD
345
346/* Define if you want smartcard support using sectok */
347#undef USE_SECTOK
348
349/* Define if you want smartcard support using OpenSC */
350#undef USE_OPENSC
351
352/* Define if you want to use OpenSSL's internally seeded PRNG only */
353#undef OPENSSL_PRNG_ONLY
354
355/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
356#undef WITH_ABBREV_NO_TTY
357
358/* Define if you want a different $PATH for the superuser */
359#undef SUPERUSER_PATH
360
361/* Path that unprivileged child will chroot() to in privep mode */
362#undef PRIVSEP_PATH
363
364/* Define if your platform needs to skip post auth file descriptor passing */
365#undef DISABLE_FD_PASSING
366
367
368/* Define to 1 if the `getpgrp' function requires zero arguments. */
369#undef GETPGRP_VOID
370
371/* Define to 1 if you have the `arc4random' function. */
372#undef HAVE_ARC4RANDOM
373
374/* Define to 1 if you have the `b64_ntop' function. */
375#undef HAVE_B64_NTOP
376
377/* Define to 1 if you have the `bcopy' function. */
378#undef HAVE_BCOPY
379
380/* Define to 1 if you have the `bindresvport_sa' function. */
381#undef HAVE_BINDRESVPORT_SA
382
383/* Define to 1 if you have the <bstring.h> header file. */
384#undef HAVE_BSTRING_H
385
386/* Define to 1 if you have the `clock' function. */
387#undef HAVE_CLOCK
388
389/* Define to 1 if you have the <crypt.h> header file. */
390#undef HAVE_CRYPT_H
391
392/* Define to 1 if you have the `dirname' function. */
393#undef HAVE_DIRNAME
394
395/* Define to 1 if you have the <endian.h> header file. */
396#undef HAVE_ENDIAN_H
397
398/* Define to 1 if you have the `endutent' function. */
399#undef HAVE_ENDUTENT
400
401/* Define to 1 if you have the `endutxent' function. */
402#undef HAVE_ENDUTXENT
403
404/* Define to 1 if you have the `fchmod' function. */
405#undef HAVE_FCHMOD
406
407/* Define to 1 if you have the `fchown' function. */
408#undef HAVE_FCHOWN
409
410/* Define to 1 if you have the <floatingpoint.h> header file. */
411#undef HAVE_FLOATINGPOINT_H
412
413/* Define to 1 if you have the `freeaddrinfo' function. */
414#undef HAVE_FREEADDRINFO
415
416/* Define to 1 if you have the `futimes' function. */
417#undef HAVE_FUTIMES
418
419/* Define to 1 if you have the `gai_strerror' function. */
420#undef HAVE_GAI_STRERROR
421
422/* Define to 1 if you have the `getaddrinfo' function. */
423#undef HAVE_GETADDRINFO
424
425/* Define to 1 if you have the `getcwd' function. */
426#undef HAVE_GETCWD
427
428/* Define to 1 if you have the `getgrouplist' function. */
429#undef HAVE_GETGROUPLIST
430
431/* Define to 1 if you have the `getluid' function. */
432#undef HAVE_GETLUID
433
434/* Define to 1 if you have the `getnameinfo' function. */
435#undef HAVE_GETNAMEINFO
436
437/* Define to 1 if you have the `getopt' function. */
438#undef HAVE_GETOPT
439
440/* Define to 1 if you have the <getopt.h> header file. */
441#undef HAVE_GETOPT_H
442
443/* Define to 1 if you have the `getpeereid' function. */
444#undef HAVE_GETPEEREID
445
446/* Define to 1 if you have the `getpwanam' function. */
447#undef HAVE_GETPWANAM
448
449/* Define to 1 if you have the `getrlimit' function. */
450#undef HAVE_GETRLIMIT
451
452/* Define to 1 if you have the `getrusage' function. */
453#undef HAVE_GETRUSAGE
454
455/* Define to 1 if you have the `gettimeofday' function. */
456#undef HAVE_GETTIMEOFDAY
457
458/* Define to 1 if you have the `getttyent' function. */
459#undef HAVE_GETTTYENT
460
461/* Define to 1 if you have the `getutent' function. */
462#undef HAVE_GETUTENT
463
464/* Define to 1 if you have the `getutid' function. */
465#undef HAVE_GETUTID
466
467/* Define to 1 if you have the `getutline' function. */
468#undef HAVE_GETUTLINE
469
470/* Define to 1 if you have the `getutxent' function. */
471#undef HAVE_GETUTXENT
472
473/* Define to 1 if you have the `getutxid' function. */
474#undef HAVE_GETUTXID
475
476/* Define to 1 if you have the `getutxline' function. */
477#undef HAVE_GETUTXLINE
478
479/* Define to 1 if you have the `glob' function. */
480#undef HAVE_GLOB
481
482/* Define to 1 if you have the <glob.h> header file. */
483#undef HAVE_GLOB_H
484
485/* Define to 1 if you have the <ia.h> header file. */
486#undef HAVE_IA_H
487
488/* Define to 1 if you have the `inet_aton' function. */
489#undef HAVE_INET_ATON
490
491/* Define to 1 if you have the `inet_ntoa' function. */
492#undef HAVE_INET_NTOA
493
494/* Define to 1 if you have the `inet_ntop' function. */
495#undef HAVE_INET_NTOP
496
497/* Define to 1 if you have the `innetgr' function. */
498#undef HAVE_INNETGR
499
500/* Define to 1 if you have the <inttypes.h> header file. */
501#undef HAVE_INTTYPES_H
502
503/* Define to 1 if you have the <krb.h> header file. */
504#undef HAVE_KRB_H
505
506/* Define to 1 if you have the <lastlog.h> header file. */
507#undef HAVE_LASTLOG_H
508
509/* Define to 1 if you have the `crypt' library (-lcrypt). */
510#undef HAVE_LIBCRYPT
511
512/* Define to 1 if you have the `des' library (-ldes). */
513#undef HAVE_LIBDES
514
515/* Define to 1 if you have the `des425' library (-ldes425). */
516#undef HAVE_LIBDES425
517
518/* Define to 1 if you have the `dl' library (-ldl). */
519#undef HAVE_LIBDL
520
521/* Define to 1 if you have the <libgen.h> header file. */
522#undef HAVE_LIBGEN_H
523
524/* Define to 1 if you have the `krb' library (-lkrb). */
525#undef HAVE_LIBKRB
526
527/* Define to 1 if you have the `krb4' library (-lkrb4). */
528#undef HAVE_LIBKRB4
529
530/* Define to 1 if you have the `nsl' library (-lnsl). */
531#undef HAVE_LIBNSL
532
533/* Define to 1 if you have the `pam' library (-lpam). */
534#undef HAVE_LIBPAM
535
536/* Define to 1 if you have the `resolv' library (-lresolv). */
537#undef HAVE_LIBRESOLV
538
539/* Define to 1 if you have the `sectok' library (-lsectok). */
540#undef HAVE_LIBSECTOK
541
542/* Define to 1 if you have the `socket' library (-lsocket). */
543#undef HAVE_LIBSOCKET
544
545/* Define to 1 if you have the <libutil.h> header file. */
546#undef HAVE_LIBUTIL_H
547
548/* Define to 1 if you have the `xnet' library (-lxnet). */
549#undef HAVE_LIBXNET
550
551/* Define to 1 if you have the `z' library (-lz). */
552#undef HAVE_LIBZ
553
554/* Define to 1 if you have the <limits.h> header file. */
555#undef HAVE_LIMITS_H
556
557/* Define to 1 if you have the <login_cap.h> header file. */
558#undef HAVE_LOGIN_CAP_H
559
560/* Define to 1 if you have the `login_getcapbool' function. */
561#undef HAVE_LOGIN_GETCAPBOOL
562
563/* Define to 1 if you have the <login.h> header file. */
564#undef HAVE_LOGIN_H
565
566/* Define to 1 if you have the `logout' function. */
567#undef HAVE_LOGOUT
568
569/* Define to 1 if you have the `logwtmp' function. */
570#undef HAVE_LOGWTMP
571
572/* Define to 1 if you have the <maillock.h> header file. */
573#undef HAVE_MAILLOCK_H
574
575/* Define to 1 if you have the `md5_crypt' function. */
576#undef HAVE_MD5_CRYPT
577
578/* Define to 1 if you have the `memmove' function. */
579#undef HAVE_MEMMOVE
580
581/* Define to 1 if you have the <memory.h> header file. */
582#undef HAVE_MEMORY_H
583
584/* Define to 1 if you have the `mkdtemp' function. */
585#undef HAVE_MKDTEMP
586
587/* Define to 1 if you have the `mmap' function. */
588#undef HAVE_MMAP
589
590/* Define to 1 if you have the <netdb.h> header file. */
591#undef HAVE_NETDB_H
592
593/* Define to 1 if you have the <netgroup.h> header file. */
594#undef HAVE_NETGROUP_H
595
596/* Define to 1 if you have the <netinet/in_systm.h> header file. */
597#undef HAVE_NETINET_IN_SYSTM_H
598
599/* Define to 1 if you have the `ngetaddrinfo' function. */
600#undef HAVE_NGETADDRINFO
601
602/* Define to 1 if you have the `ogetaddrinfo' function. */
603#undef HAVE_OGETADDRINFO
604
605/* Define to 1 if you have the `openpty' function. */
606#undef HAVE_OPENPTY
607
608/* Define to 1 if you have the `pam_getenvlist' function. */
609#undef HAVE_PAM_GETENVLIST
610
611/* Define to 1 if you have the <paths.h> header file. */
612#undef HAVE_PATHS_H
613
614/* Define to 1 if you have the <pty.h> header file. */
615#undef HAVE_PTY_H
616
617/* Define to 1 if you have the `pututline' function. */
618#undef HAVE_PUTUTLINE
619
620/* Define to 1 if you have the `pututxline' function. */
621#undef HAVE_PUTUTXLINE
622
623/* Define to 1 if you have the `readpassphrase' function. */
624#undef HAVE_READPASSPHRASE
625
626/* Define to 1 if you have the <readpassphrase.h> header file. */
627#undef HAVE_READPASSPHRASE_H
628
629/* Define to 1 if you have the `realpath' function. */
630#undef HAVE_REALPATH
631
632/* Define to 1 if you have the `recvmsg' function. */
633#undef HAVE_RECVMSG
634
635/* Define to 1 if you have the <rpc/types.h> header file. */
636#undef HAVE_RPC_TYPES_H
637
638/* Define to 1 if you have the `rresvport_af' function. */
639#undef HAVE_RRESVPORT_AF
640
641/* Define to 1 if you have the <sectok.h> header file. */
642#undef HAVE_SECTOK_H
643
644/* Define to 1 if you have the <security/pam_appl.h> header file. */
645#undef HAVE_SECURITY_PAM_APPL_H
646
647/* Define to 1 if you have the `sendmsg' function. */
648#undef HAVE_SENDMSG
649
650/* Define to 1 if you have the `setdtablesize' function. */
651#undef HAVE_SETDTABLESIZE
652
653/* Define to 1 if you have the `setegid' function. */
654#undef HAVE_SETEGID
655
656/* Define to 1 if you have the `setenv' function. */
657#undef HAVE_SETENV
658
659/* Define to 1 if you have the `seteuid' function. */
660#undef HAVE_SETEUID
661
662/* Define to 1 if you have the `setgroups' function. */
663#undef HAVE_SETGROUPS
664
665/* Define to 1 if you have the `setlogin' function. */
666#undef HAVE_SETLOGIN
667
668/* Define to 1 if you have the `setluid' function. */
669#undef HAVE_SETLUID
670
671/* Define to 1 if you have the `setpcred' function. */
672#undef HAVE_SETPCRED
673
674/* Define to 1 if you have the `setproctitle' function. */
675#undef HAVE_SETPROCTITLE
676
677/* Define to 1 if you have the `setresgid' function. */
678#undef HAVE_SETRESGID
679
680/* Define to 1 if you have the `setreuid' function. */
681#undef HAVE_SETREUID
682
683/* Define to 1 if you have the `setrlimit' function. */
684#undef HAVE_SETRLIMIT
685
686/* Define to 1 if you have the `setsid' function. */
687#undef HAVE_SETSID
688
689/* Define to 1 if you have the `setutent' function. */
690#undef HAVE_SETUTENT
691
692/* Define to 1 if you have the `setutxent' function. */
693#undef HAVE_SETUTXENT
694
695/* Define to 1 if you have the `setvbuf' function. */
696#undef HAVE_SETVBUF
697
698/* Define to 1 if you have the <shadow.h> header file. */
699#undef HAVE_SHADOW_H
700
701/* Define to 1 if you have the `sigaction' function. */
702#undef HAVE_SIGACTION
703
704/* Define to 1 if you have the `sigvec' function. */
705#undef HAVE_SIGVEC
706
707/* Define to 1 if the system has the type `sig_atomic_t'. */
708#undef HAVE_SIG_ATOMIC_T
709
710/* Define to 1 if you have the `snprintf' function. */
711#undef HAVE_SNPRINTF
712
713/* Define to 1 if you have the `socketpair' function. */
714#undef HAVE_SOCKETPAIR
715
716/* Define to 1 if you have the <stddef.h> header file. */
717#undef HAVE_STDDEF_H
718
719/* Define to 1 if you have the <stdint.h> header file. */
720#undef HAVE_STDINT_H
721
722/* Define to 1 if you have the <stdlib.h> header file. */
723#undef HAVE_STDLIB_H
724
725/* Define to 1 if you have the `strerror' function. */
726#undef HAVE_STRERROR
727
728/* Define to 1 if you have the `strftime' function. */
729#undef HAVE_STRFTIME
730
731/* Define to 1 if you have the <strings.h> header file. */
732#undef HAVE_STRINGS_H
733
734/* Define to 1 if you have the <string.h> header file. */
735#undef HAVE_STRING_H
736
737/* Define to 1 if you have the `strlcat' function. */
738#undef HAVE_STRLCAT
739
740/* Define to 1 if you have the `strlcpy' function. */
741#undef HAVE_STRLCPY
742
743/* Define to 1 if you have the `strmode' function. */
744#undef HAVE_STRMODE
745
746/* Define to 1 if you have the `strsep' function. */
747#undef HAVE_STRSEP
748
749/* Define to 1 if `st_blksize' is member of `struct stat'. */
750#undef HAVE_STRUCT_STAT_ST_BLKSIZE
751
752/* Define to 1 if you have the `sysconf' function. */
753#undef HAVE_SYSCONF
754
755/* Define to 1 if you have the <sys/bitypes.h> header file. */
756#undef HAVE_SYS_BITYPES_H
757
758/* Define to 1 if you have the <sys/bsdtty.h> header file. */
759#undef HAVE_SYS_BSDTTY_H
760
761/* Define to 1 if you have the <sys/cdefs.h> header file. */
762#undef HAVE_SYS_CDEFS_H
763
764/* Define to 1 if you have the <sys/mman.h> header file. */
765#undef HAVE_SYS_MMAN_H
766
767/* Define to 1 if you have the <sys/select.h> header file. */
768#undef HAVE_SYS_SELECT_H
769
770/* Define to 1 if you have the <sys/stat.h> header file. */
771#undef HAVE_SYS_STAT_H
772
773/* Define to 1 if you have the <sys/stropts.h> header file. */
774#undef HAVE_SYS_STROPTS_H
775
776/* Define to 1 if you have the <sys/sysmacros.h> header file. */
777#undef HAVE_SYS_SYSMACROS_H
778
779/* Define to 1 if you have the <sys/time.h> header file. */
780#undef HAVE_SYS_TIME_H
781
782/* Define to 1 if you have the <sys/types.h> header file. */
783#undef HAVE_SYS_TYPES_H
784
785/* Define to 1 if you have the <sys/un.h> header file. */
786#undef HAVE_SYS_UN_H
787
788/* Define to 1 if you have the `tcgetpgrp' function. */
789#undef HAVE_TCGETPGRP
790
791/* Define to 1 if you have the `time' function. */
792#undef HAVE_TIME
793
794/* Define to 1 if you have the <time.h> header file. */
795#undef HAVE_TIME_H
796
797/* Define to 1 if you have the <tmpdir.h> header file. */
798#undef HAVE_TMPDIR_H
799
800/* Define to 1 if you have the `truncate' function. */
801#undef HAVE_TRUNCATE
802
803/* Define to 1 if you have the <ttyent.h> header file. */
804#undef HAVE_TTYENT_H
805
806/* Define to 1 if you have the <unistd.h> header file. */
807#undef HAVE_UNISTD_H
808
809/* Define to 1 if you have the `updwtmp' function. */
810#undef HAVE_UPDWTMP
811
812/* Define to 1 if you have the <usersec.h> header file. */
813#undef HAVE_USERSEC_H
814
815/* Define to 1 if you have the <util.h> header file. */
816#undef HAVE_UTIL_H
817
818/* Define to 1 if you have the `utimes' function. */
819#undef HAVE_UTIMES
820
821/* Define to 1 if you have the <utime.h> header file. */
822#undef HAVE_UTIME_H
823
824/* Define to 1 if you have the `utmpname' function. */
825#undef HAVE_UTMPNAME
826
827/* Define to 1 if you have the `utmpxname' function. */
828#undef HAVE_UTMPXNAME
829
830/* Define to 1 if you have the <utmpx.h> header file. */
831#undef HAVE_UTMPX_H
832
833/* Define to 1 if you have the <utmp.h> header file. */
834#undef HAVE_UTMP_H
835
836/* Define to 1 if you have the `vhangup' function. */
837#undef HAVE_VHANGUP
838
839/* Define to 1 if you have the `vsnprintf' function. */
840#undef HAVE_VSNPRINTF
841
842/* Define to 1 if you have the `waitpid' function. */
843#undef HAVE_WAITPID
844
845/* Define to 1 if you have the `_getpty' function. */
846#undef HAVE__GETPTY
847
848/* Define to 1 if you have the `__b64_ntop' function. */
849#undef HAVE___B64_NTOP
850
851/* Define to the address where bug reports for this package should be sent. */
852#undef PACKAGE_BUGREPORT
853
854/* Define to the full name of this package. */
855#undef PACKAGE_NAME
856
857/* Define to the full name and version of this package. */
858#undef PACKAGE_STRING
859
860/* Define to the one symbol short name of this package. */
861#undef PACKAGE_TARNAME
862
863/* Define to the version of this package. */
864#undef PACKAGE_VERSION
865
866/* The size of a `char', as computed by sizeof. */
867#undef SIZEOF_CHAR
868
869/* The size of a `int', as computed by sizeof. */
870#undef SIZEOF_INT
871
872/* The size of a `long int', as computed by sizeof. */
873#undef SIZEOF_LONG_INT
874
875/* The size of a `long long int', as computed by sizeof. */
876#undef SIZEOF_LONG_LONG_INT
877
878/* The size of a `short int', as computed by sizeof. */
879#undef SIZEOF_SHORT_INT
880
881/* Define to 1 if you have the ANSI C header files. */
882#undef STDC_HEADERS
883
884/* Define to 1 if your processor stores words with the most significant byte
885 first (like Motorola and SPARC, unlike Intel and VAX). */
886#undef WORDS_BIGENDIAN
887
888/* Number of bits in a file offset, on hosts where this is settable. */
889#undef _FILE_OFFSET_BITS
890
891/* Define for large files, on AIX-style hosts. */
892#undef _LARGE_FILES
893
894/* Define as `__inline' if that's what the C compiler calls it, or to nothing
895 if it is not supported. */
896#undef inline
897
898/* type to use in place of socklen_t if not defined */
899#undef socklen_t
900
901/* ******************* Shouldn't need to edit below this line ************** */
902
903#endif /* _CONFIG_H */
diff --git a/configure b/configure
new file mode 100755
index 000000000..565e9ee79
--- /dev/null
+++ b/configure
@@ -0,0 +1,17911 @@
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
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
865 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
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
2763# Extract the first word of "bash", so it can be a program name with args.
2764set dummy bash; ac_word=$2
2765echo "$as_me:$LINENO: checking for $ac_word" >&5
2766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
2770 case $TEST_MINUS_S_SH in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2773 ;;
2774 *)
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786done
2787done
2788
2789 ;;
2790esac
2791fi
2792TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2793
2794if test -n "$TEST_MINUS_S_SH"; then
2795 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2796echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2797else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800fi
2801
2802# Extract the first word of "ksh", so it can be a program name with args.
2803set dummy ksh; ac_word=$2
2804echo "$as_me:$LINENO: checking for $ac_word" >&5
2805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809 case $TEST_MINUS_S_SH in
2810 [\\/]* | ?:[\\/]*)
2811 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2812 ;;
2813 *)
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828 ;;
2829esac
2830fi
2831TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2832
2833if test -n "$TEST_MINUS_S_SH"; then
2834 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2835echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2836else
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839fi
2840
2841# Extract the first word of "sh", so it can be a program name with args.
2842set dummy sh; ac_word=$2
2843echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 case $TEST_MINUS_S_SH in
2849 [\\/]* | ?:[\\/]*)
2850 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2851 ;;
2852 *)
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864done
2865done
2866
2867 ;;
2868esac
2869fi
2870TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2871
2872if test -n "$TEST_MINUS_S_SH"; then
2873 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2874echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880# Extract the first word of "sh", so it can be a program name with args.
2881set dummy sh; ac_word=$2
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884if test "${ac_cv_path_SH+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 case $SH in
2888 [\\/]* | ?:[\\/]*)
2889 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2890 ;;
2891 *)
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905
2906 ;;
2907esac
2908fi
2909SH=$ac_cv_path_SH
2910
2911if test -n "$SH"; then
2912 echo "$as_me:$LINENO: result: $SH" >&5
2913echo "${ECHO_T}$SH" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919
2920# System features
2921# Check whether --enable-largefile or --disable-largefile was given.
2922if test "${enable_largefile+set}" = set; then
2923 enableval="$enable_largefile"
2924
2925fi;
2926if test "$enable_largefile" != no; then
2927
2928 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2929echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2930if test "${ac_cv_sys_largefile_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 ac_cv_sys_largefile_CC=no
2934 if test "$GCC" != yes; then
2935 ac_save_CC=$CC
2936 while :; do
2937 # IRIX 6.2 and later do not support large files by default,
2938 # so use the C compiler's -n32 option if that helps.
2939 cat >conftest.$ac_ext <<_ACEOF
2940#line $LINENO "configure"
2941#include "confdefs.h"
2942#include <sys/types.h>
2943 /* Check that off_t can represent 2**63 - 1 correctly.
2944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2945 since some C++ compilers masquerading as C compilers
2946 incorrectly reject 9223372036854775807. */
2947#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2949 && LARGE_OFF_T % 2147483647 == 1)
2950 ? 1 : -1];
2951#ifdef F77_DUMMY_MAIN
2952# ifdef __cplusplus
2953 extern "C"
2954# endif
2955 int F77_DUMMY_MAIN() { return 1; }
2956#endif
2957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965 rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 break
2978else
2979 echo "$as_me: failed program was:" >&5
2980cat conftest.$ac_ext >&5
2981fi
2982rm -f conftest.$ac_objext
2983 CC="$CC -n32"
2984 rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_sys_largefile_CC=' -n32'; break
2997else
2998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000fi
3001rm -f conftest.$ac_objext
3002 break
3003 done
3004 CC=$ac_save_CC
3005 rm -f conftest.$ac_ext
3006 fi
3007fi
3008echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3009echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3010 if test "$ac_cv_sys_largefile_CC" != no; then
3011 CC=$CC$ac_cv_sys_largefile_CC
3012 fi
3013
3014 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3015echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3016if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 while :; do
3020 ac_cv_sys_file_offset_bits=no
3021 cat >conftest.$ac_ext <<_ACEOF
3022#line $LINENO "configure"
3023#include "confdefs.h"
3024#include <sys/types.h>
3025 /* Check that off_t can represent 2**63 - 1 correctly.
3026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3027 since some C++ compilers masquerading as C compilers
3028 incorrectly reject 9223372036854775807. */
3029#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3031 && LARGE_OFF_T % 2147483647 == 1)
3032 ? 1 : -1];
3033#ifdef F77_DUMMY_MAIN
3034# ifdef __cplusplus
3035 extern "C"
3036# endif
3037 int F77_DUMMY_MAIN() { return 1; }
3038#endif
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 break
3060else
3061 echo "$as_me: failed program was:" >&5
3062cat conftest.$ac_ext >&5
3063fi
3064rm -f conftest.$ac_objext conftest.$ac_ext
3065 cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067#include "confdefs.h"
3068#define _FILE_OFFSET_BITS 64
3069#include <sys/types.h>
3070 /* Check that off_t can represent 2**63 - 1 correctly.
3071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3072 since some C++ compilers masquerading as C compilers
3073 incorrectly reject 9223372036854775807. */
3074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3076 && LARGE_OFF_T % 2147483647 == 1)
3077 ? 1 : -1];
3078#ifdef F77_DUMMY_MAIN
3079# ifdef __cplusplus
3080 extern "C"
3081# endif
3082 int F77_DUMMY_MAIN() { return 1; }
3083#endif
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_sys_file_offset_bits=64; break
3105else
3106 echo "$as_me: failed program was:" >&5
3107cat conftest.$ac_ext >&5
3108fi
3109rm -f conftest.$ac_objext conftest.$ac_ext
3110 break
3111done
3112fi
3113echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3114echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3115if test "$ac_cv_sys_file_offset_bits" != no; then
3116
3117cat >>confdefs.h <<_ACEOF
3118#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3119_ACEOF
3120
3121fi
3122rm -f conftest*
3123 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3124echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3125if test "${ac_cv_sys_large_files+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 while :; do
3129 ac_cv_sys_large_files=no
3130 cat >conftest.$ac_ext <<_ACEOF
3131#line $LINENO "configure"
3132#include "confdefs.h"
3133#include <sys/types.h>
3134 /* Check that off_t can represent 2**63 - 1 correctly.
3135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3136 since some C++ compilers masquerading as C compilers
3137 incorrectly reject 9223372036854775807. */
3138#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3140 && LARGE_OFF_T % 2147483647 == 1)
3141 ? 1 : -1];
3142#ifdef F77_DUMMY_MAIN
3143# ifdef __cplusplus
3144 extern "C"
3145# endif
3146 int F77_DUMMY_MAIN() { return 1; }
3147#endif
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 break
3169else
3170 echo "$as_me: failed program was:" >&5
3171cat conftest.$ac_ext >&5
3172fi
3173rm -f conftest.$ac_objext conftest.$ac_ext
3174 cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176#include "confdefs.h"
3177#define _LARGE_FILES 1
3178#include <sys/types.h>
3179 /* Check that off_t can represent 2**63 - 1 correctly.
3180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3181 since some C++ compilers masquerading as C compilers
3182 incorrectly reject 9223372036854775807. */
3183#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3185 && LARGE_OFF_T % 2147483647 == 1)
3186 ? 1 : -1];
3187#ifdef F77_DUMMY_MAIN
3188# ifdef __cplusplus
3189 extern "C"
3190# endif
3191 int F77_DUMMY_MAIN() { return 1; }
3192#endif
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_sys_large_files=1; break
3214else
3215 echo "$as_me: failed program was:" >&5
3216cat conftest.$ac_ext >&5
3217fi
3218rm -f conftest.$ac_objext conftest.$ac_ext
3219 break
3220done
3221fi
3222echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3223echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3224if test "$ac_cv_sys_large_files" != no; then
3225
3226cat >>confdefs.h <<_ACEOF
3227#define _LARGE_FILES $ac_cv_sys_large_files
3228_ACEOF
3229
3230fi
3231rm -f conftest*
3232fi
3233
3234
3235if test -z "$AR" ; then
3236 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3237echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3238 { (exit 1); exit 1; }; }
3239fi
3240
3241# Use LOGIN_PROGRAM from environment if possible
3242if test ! -z "$LOGIN_PROGRAM" ; then
3243 cat >>confdefs.h <<_ACEOF
3244#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3245_ACEOF
3246
3247else
3248 # Search for login
3249 # Extract the first word of "login", so it can be a program name with args.
3250set dummy login; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 case $LOGIN_PROGRAM_FALLBACK in
3257 [\\/]* | ?:[\\/]*)
3258 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3259 ;;
3260 *)
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273done
3274
3275 ;;
3276esac
3277fi
3278LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3279
3280if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3281 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3282echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3283else
3284 echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3289 cat >>confdefs.h <<_ACEOF
3290#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3291_ACEOF
3292
3293 fi
3294fi
3295
3296if test -z "$LD" ; then
3297 LD=$CC
3298fi
3299
3300
3301echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3302echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3303if test "${ac_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 ac_cv_prog_cc_stdc=no
3307ac_save_CC=$CC
3308cat >conftest.$ac_ext <<_ACEOF
3309#line $LINENO "configure"
3310#include "confdefs.h"
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319 char **p;
3320 int i;
3321{
3322 return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332}
3333int test (int i, double x);
3334struct s1 {int (*f) (int a);};
3335struct s2 {int (*f) (double a);};
3336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337int argc;
3338char **argv;
3339#ifdef F77_DUMMY_MAIN
3340# ifdef __cplusplus
3341 extern "C"
3342# endif
3343 int F77_DUMMY_MAIN() { return 1; }
3344#endif
3345int
3346main ()
3347{
3348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353# Don't try gcc -ansi; that turns off useful extensions and
3354# breaks some systems' header files.
3355# AIX -qlanglvl=ansi
3356# Ultrix and OSF/1 -std1
3357# HP-UX 10.20 and later -Ae
3358# HP-UX older versions -Aa -D_HPUX_SOURCE
3359# SVR4 -Xc -D__EXTENSIONS__
3360for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361do
3362 CC="$ac_save_CC $ac_arg"
3363 rm -f conftest.$ac_objext
3364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_cc_stdc=$ac_arg
3376break
3377else
3378 echo "$as_me: failed program was:" >&5
3379cat conftest.$ac_ext >&5
3380fi
3381rm -f conftest.$ac_objext
3382done
3383rm -f conftest.$ac_ext conftest.$ac_objext
3384CC=$ac_save_CC
3385
3386fi
3387
3388case "x$ac_cv_prog_cc_stdc" in
3389 x|xno)
3390 echo "$as_me:$LINENO: result: none needed" >&5
3391echo "${ECHO_T}none needed" >&6 ;;
3392 *)
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3394echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3395 CC="$CC $ac_cv_prog_cc_stdc" ;;
3396esac
3397
3398echo "$as_me:$LINENO: checking for inline" >&5
3399echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 ac_cv_c_inline=no
3404for ac_kw in inline __inline__ __inline; do
3405 cat >conftest.$ac_ext <<_ACEOF
3406#line $LINENO "configure"
3407#include "confdefs.h"
3408#ifndef __cplusplus
3409static $ac_kw int static_foo () {return 0; }
3410$ac_kw int foo () {return 0; }
3411#endif
3412
3413_ACEOF
3414rm -f conftest.$ac_objext
3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 (eval $ac_try) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_c_inline=$ac_kw; break
3427else
3428 echo "$as_me: failed program was:" >&5
3429cat conftest.$ac_ext >&5
3430fi
3431rm -f conftest.$ac_objext conftest.$ac_ext
3432done
3433
3434fi
3435echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3436echo "${ECHO_T}$ac_cv_c_inline" >&6
3437case $ac_cv_c_inline in
3438 inline | yes) ;;
3439 no)
3440cat >>confdefs.h <<\_ACEOF
3441#define inline
3442_ACEOF
3443 ;;
3444 *) cat >>confdefs.h <<_ACEOF
3445#define inline $ac_cv_c_inline
3446_ACEOF
3447 ;;
3448esac
3449
3450if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3451 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3452fi
3453
3454# Check for some target-specific stuff
3455case "$host" in
3456*-*-aix*)
3457 AFS_LIBS="-lld"
3458 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3459 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3460 if (test "$LD" != "gcc" && test -z "$blibpath"); then
3461 echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5
3462echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6
3463 saved_LDFLAGS="$LDFLAGS"
3464 LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib"
3465 cat >conftest.$ac_ext <<_ACEOF
3466#line $LINENO "configure"
3467#include "confdefs.h"
3468
3469#ifdef F77_DUMMY_MAIN
3470# ifdef __cplusplus
3471 extern "C"
3472# endif
3473 int F77_DUMMY_MAIN() { return 1; }
3474#endif
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext conftest$ac_exeext
3484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498 blibpath="/usr/lib:/lib:/usr/local/lib"
3499
3500else
3501 echo "$as_me: failed program was:" >&5
3502cat conftest.$ac_ext >&5
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505
3506fi
3507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 LDFLAGS="$saved_LDFLAGS"
3509 fi
3510 echo "$as_me:$LINENO: checking for authenticate" >&5
3511echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3512if test "${ac_cv_func_authenticate+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
3516#line $LINENO "configure"
3517#include "confdefs.h"
3518/* System header to define __stub macros and hopefully few prototypes,
3519 which can conflict with char authenticate (); below. */
3520#include <assert.h>
3521/* Override any gcc2 internal prototype to avoid an error. */
3522#ifdef __cplusplus
3523extern "C"
3524#endif
3525/* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3527char authenticate ();
3528char (*f) ();
3529
3530#ifdef F77_DUMMY_MAIN
3531# ifdef __cplusplus
3532 extern "C"
3533# endif
3534 int F77_DUMMY_MAIN() { return 1; }
3535#endif
3536int
3537main ()
3538{
3539/* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542#if defined (__stub_authenticate) || defined (__stub___authenticate)
3543choke me
3544#else
3545f = authenticate;
3546#endif
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554 (eval $ac_link) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -s conftest$ac_exeext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_func_authenticate=yes
3565else
3566 echo "$as_me: failed program was:" >&5
3567cat conftest.$ac_ext >&5
3568ac_cv_func_authenticate=no
3569fi
3570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3573echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3574if test $ac_cv_func_authenticate = yes; then
3575 cat >>confdefs.h <<\_ACEOF
3576#define WITH_AIXAUTHENTICATE 1
3577_ACEOF
3578
3579else
3580 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3581echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3582if test "${ac_cv_lib_s_authenticate+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 ac_check_lib_save_LIBS=$LIBS
3586LIBS="-ls $LIBS"
3587cat >conftest.$ac_ext <<_ACEOF
3588#line $LINENO "configure"
3589#include "confdefs.h"
3590
3591/* Override any gcc2 internal prototype to avoid an error. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595/* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597char authenticate ();
3598#ifdef F77_DUMMY_MAIN
3599# ifdef __cplusplus
3600 extern "C"
3601# endif
3602 int F77_DUMMY_MAIN() { return 1; }
3603#endif
3604int
3605main ()
3606{
3607authenticate ();
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.$ac_objext conftest$ac_exeext
3613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest$ac_exeext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_lib_s_authenticate=yes
3625else
3626 echo "$as_me: failed program was:" >&5
3627cat conftest.$ac_ext >&5
3628ac_cv_lib_s_authenticate=no
3629fi
3630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631LIBS=$ac_check_lib_save_LIBS
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3634echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3635if test $ac_cv_lib_s_authenticate = yes; then
3636 cat >>confdefs.h <<\_ACEOF
3637#define WITH_AIXAUTHENTICATE 1
3638_ACEOF
3639
3640 LIBS="$LIBS -ls"
3641
3642fi
3643
3644
3645fi
3646
3647 cat >>confdefs.h <<\_ACEOF
3648#define BROKEN_GETADDRINFO 1
3649_ACEOF
3650
3651 cat >>confdefs.h <<\_ACEOF
3652#define BROKEN_REALPATH 1
3653_ACEOF
3654
3655 cat >>confdefs.h <<\_ACEOF
3656#define DISABLE_LASTLOG 1
3657_ACEOF
3658
3659 cat >>confdefs.h <<\_ACEOF
3660#define LOGIN_NEEDS_UTMPX 1
3661_ACEOF
3662
3663 ;;
3664*-*-cygwin*)
3665 LIBS="$LIBS /usr/lib/textmode.o"
3666 cat >>confdefs.h <<\_ACEOF
3667#define HAVE_CYGWIN 1
3668_ACEOF
3669
3670 cat >>confdefs.h <<\_ACEOF
3671#define USE_PIPES 1
3672_ACEOF
3673
3674 cat >>confdefs.h <<\_ACEOF
3675#define DISABLE_SHADOW 1
3676_ACEOF
3677
3678 cat >>confdefs.h <<\_ACEOF
3679#define IPV4_DEFAULT 1
3680_ACEOF
3681
3682 cat >>confdefs.h <<\_ACEOF
3683#define IP_TOS_IS_BROKEN 1
3684_ACEOF
3685
3686 cat >>confdefs.h <<\_ACEOF
3687#define NO_X11_UNIX_SOCKETS 1
3688_ACEOF
3689
3690 cat >>confdefs.h <<\_ACEOF
3691#define NO_IPPORT_RESERVED_CONCEPT 1
3692_ACEOF
3693
3694 cat >>confdefs.h <<\_ACEOF
3695#define DISABLE_FD_PASSING 1
3696_ACEOF
3697
3698 cat >>confdefs.h <<\_ACEOF
3699#define SETGROUPS_NOOP 1
3700_ACEOF
3701
3702 ;;
3703*-*-dgux*)
3704 cat >>confdefs.h <<\_ACEOF
3705#define IP_TOS_IS_BROKEN 1
3706_ACEOF
3707
3708 ;;
3709*-*-darwin*)
3710 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3711echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6
3712 if test "$cross_compiling" = yes; then
3713 echo "$as_me:$LINENO: result: assume it is working" >&5
3714echo "${ECHO_T}assume it is working" >&6
3715else
3716 cat >conftest.$ac_ext <<_ACEOF
3717#line $LINENO "configure"
3718#include "confdefs.h"
3719#include <mach-o/dyld.h>
3720main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3721 exit(0);
3722 else
3723 exit(1);
3724}
3725_ACEOF
3726rm -f conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728 (eval $ac_link) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 echo "$as_me:$LINENO: result: working" >&5
3738echo "${ECHO_T}working" >&6
3739else
3740 echo "$as_me: program exited with status $ac_status" >&5
3741echo "$as_me: failed program was:" >&5
3742cat conftest.$ac_ext >&5
3743( exit $ac_status )
3744echo "$as_me:$LINENO: result: buggy" >&5
3745echo "${ECHO_T}buggy" >&6
3746 cat >>confdefs.h <<\_ACEOF
3747#define BROKEN_GETADDRINFO 1
3748_ACEOF
3749
3750fi
3751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752fi
3753 ;;
3754*-*-hpux10.26)
3755 if test -z "$GCC"; then
3756 CFLAGS="$CFLAGS -Ae"
3757 fi
3758 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3759 IPADDR_IN_DISPLAY=yes
3760 cat >>confdefs.h <<\_ACEOF
3761#define HAVE_SECUREWARE 1
3762_ACEOF
3763
3764 cat >>confdefs.h <<\_ACEOF
3765#define USE_PIPES 1
3766_ACEOF
3767
3768 cat >>confdefs.h <<\_ACEOF
3769#define LOGIN_NO_ENDOPT 1
3770_ACEOF
3771
3772 cat >>confdefs.h <<\_ACEOF
3773#define LOGIN_NEEDS_UTMPX 1
3774_ACEOF
3775
3776 cat >>confdefs.h <<\_ACEOF
3777#define DISABLE_SHADOW 1
3778_ACEOF
3779
3780 cat >>confdefs.h <<\_ACEOF
3781#define DISABLE_UTMP 1
3782_ACEOF
3783
3784 cat >>confdefs.h <<\_ACEOF
3785#define SPT_TYPE SPT_PSTAT
3786_ACEOF
3787
3788 LIBS="$LIBS -lsec -lsecpw"
3789
3790echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3791echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3792if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_check_lib_save_LIBS=$LIBS
3796LIBS="-lxnet $LIBS"
3797cat >conftest.$ac_ext <<_ACEOF
3798#line $LINENO "configure"
3799#include "confdefs.h"
3800
3801/* Override any gcc2 internal prototype to avoid an error. */
3802#ifdef __cplusplus
3803extern "C"
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char t_error ();
3808#ifdef F77_DUMMY_MAIN
3809# ifdef __cplusplus
3810 extern "C"
3811# endif
3812 int F77_DUMMY_MAIN() { return 1; }
3813#endif
3814int
3815main ()
3816{
3817t_error ();
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.$ac_objext conftest$ac_exeext
3823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -s conftest$ac_exeext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_xnet_t_error=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837cat conftest.$ac_ext >&5
3838ac_cv_lib_xnet_t_error=no
3839fi
3840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841LIBS=$ac_check_lib_save_LIBS
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3844echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3845if test $ac_cv_lib_xnet_t_error = yes; then
3846 cat >>confdefs.h <<_ACEOF
3847#define HAVE_LIBXNET 1
3848_ACEOF
3849
3850 LIBS="-lxnet $LIBS"
3851
3852else
3853 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3854echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3855 { (exit 1); exit 1; }; }
3856fi
3857
3858 disable_ptmx_check=yes
3859 ;;
3860*-*-hpux10*)
3861 if test -z "$GCC"; then
3862 CFLAGS="$CFLAGS -Ae"
3863 fi
3864 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3865 IPADDR_IN_DISPLAY=yes
3866 cat >>confdefs.h <<\_ACEOF
3867#define USE_PIPES 1
3868_ACEOF
3869
3870 cat >>confdefs.h <<\_ACEOF
3871#define LOGIN_NO_ENDOPT 1
3872_ACEOF
3873
3874 cat >>confdefs.h <<\_ACEOF
3875#define LOGIN_NEEDS_UTMPX 1
3876_ACEOF
3877
3878 cat >>confdefs.h <<\_ACEOF
3879#define DISABLE_SHADOW 1
3880_ACEOF
3881
3882 cat >>confdefs.h <<\_ACEOF
3883#define DISABLE_UTMP 1
3884_ACEOF
3885
3886 cat >>confdefs.h <<\_ACEOF
3887#define SPT_TYPE SPT_PSTAT
3888_ACEOF
3889
3890 LIBS="$LIBS -lsec"
3891
3892echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3893echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3894if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-lxnet $LIBS"
3899cat >conftest.$ac_ext <<_ACEOF
3900#line $LINENO "configure"
3901#include "confdefs.h"
3902
3903/* Override any gcc2 internal prototype to avoid an error. */
3904#ifdef __cplusplus
3905extern "C"
3906#endif
3907/* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909char t_error ();
3910#ifdef F77_DUMMY_MAIN
3911# ifdef __cplusplus
3912 extern "C"
3913# endif
3914 int F77_DUMMY_MAIN() { return 1; }
3915#endif
3916int
3917main ()
3918{
3919t_error ();
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext conftest$ac_exeext
3925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_xnet_t_error=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939cat conftest.$ac_ext >&5
3940ac_cv_lib_xnet_t_error=no
3941fi
3942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943LIBS=$ac_check_lib_save_LIBS
3944fi
3945echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3946echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3947if test $ac_cv_lib_xnet_t_error = yes; then
3948 cat >>confdefs.h <<_ACEOF
3949#define HAVE_LIBXNET 1
3950_ACEOF
3951
3952 LIBS="-lxnet $LIBS"
3953
3954else
3955 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3956echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3957 { (exit 1); exit 1; }; }
3958fi
3959
3960 ;;
3961*-*-hpux11*)
3962 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
3963 IPADDR_IN_DISPLAY=yes
3964 cat >>confdefs.h <<\_ACEOF
3965#define PAM_SUN_CODEBASE 1
3966_ACEOF
3967
3968 cat >>confdefs.h <<\_ACEOF
3969#define USE_PIPES 1
3970_ACEOF
3971
3972 cat >>confdefs.h <<\_ACEOF
3973#define LOGIN_NO_ENDOPT 1
3974_ACEOF
3975
3976 cat >>confdefs.h <<\_ACEOF
3977#define LOGIN_NEEDS_UTMPX 1
3978_ACEOF
3979
3980 cat >>confdefs.h <<\_ACEOF
3981#define DISABLE_SHADOW 1
3982_ACEOF
3983
3984 cat >>confdefs.h <<\_ACEOF
3985#define DISABLE_UTMP 1
3986_ACEOF
3987
3988 cat >>confdefs.h <<\_ACEOF
3989#define SPT_TYPE SPT_PSTAT
3990_ACEOF
3991
3992 LIBS="$LIBS -lsec"
3993
3994echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3995echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3996if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 ac_check_lib_save_LIBS=$LIBS
4000LIBS="-lxnet $LIBS"
4001cat >conftest.$ac_ext <<_ACEOF
4002#line $LINENO "configure"
4003#include "confdefs.h"
4004
4005/* Override any gcc2 internal prototype to avoid an error. */
4006#ifdef __cplusplus
4007extern "C"
4008#endif
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char t_error ();
4012#ifdef F77_DUMMY_MAIN
4013# ifdef __cplusplus
4014 extern "C"
4015# endif
4016 int F77_DUMMY_MAIN() { return 1; }
4017#endif
4018int
4019main ()
4020{
4021t_error ();
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_lib_xnet_t_error=yes
4039else
4040 echo "$as_me: failed program was:" >&5
4041cat conftest.$ac_ext >&5
4042ac_cv_lib_xnet_t_error=no
4043fi
4044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4045LIBS=$ac_check_lib_save_LIBS
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4048echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4049if test $ac_cv_lib_xnet_t_error = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051#define HAVE_LIBXNET 1
4052_ACEOF
4053
4054 LIBS="-lxnet $LIBS"
4055
4056else
4057 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4058echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4059 { (exit 1); exit 1; }; }
4060fi
4061
4062 ;;
4063*-*-irix5*)
4064 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4065 LDFLAGS="$LDFLAGS"
4066 PATH="$PATH:/usr/etc"
4067 cat >>confdefs.h <<\_ACEOF
4068#define BROKEN_INET_NTOA 1
4069_ACEOF
4070
4071 cat >>confdefs.h <<\_ACEOF
4072#define WITH_ABBREV_NO_TTY 1
4073_ACEOF
4074
4075 ;;
4076*-*-irix6*)
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4078 LDFLAGS="$LDFLAGS"
4079 PATH="$PATH:/usr/etc"
4080 cat >>confdefs.h <<\_ACEOF
4081#define WITH_IRIX_ARRAY 1
4082_ACEOF
4083
4084 cat >>confdefs.h <<\_ACEOF
4085#define WITH_IRIX_PROJECT 1
4086_ACEOF
4087
4088 cat >>confdefs.h <<\_ACEOF
4089#define WITH_IRIX_AUDIT 1
4090_ACEOF
4091
4092 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4093echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4094if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 cat >conftest.$ac_ext <<_ACEOF
4098#line $LINENO "configure"
4099#include "confdefs.h"
4100/* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char jlimit_startjob (); below. */
4102#include <assert.h>
4103/* Override any gcc2 internal prototype to avoid an error. */
4104#ifdef __cplusplus
4105extern "C"
4106#endif
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char jlimit_startjob ();
4110char (*f) ();
4111
4112#ifdef F77_DUMMY_MAIN
4113# ifdef __cplusplus
4114 extern "C"
4115# endif
4116 int F77_DUMMY_MAIN() { return 1; }
4117#endif
4118int
4119main ()
4120{
4121/* The GNU C library defines this for functions which it implements
4122 to always fail with ENOSYS. Some functions are actually named
4123 something starting with __ and the normal name is an alias. */
4124#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
4125choke me
4126#else
4127f = jlimit_startjob;
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext conftest$ac_exeext
4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -s conftest$ac_exeext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_func_jlimit_startjob=yes
4147else
4148 echo "$as_me: failed program was:" >&5
4149cat conftest.$ac_ext >&5
4150ac_cv_func_jlimit_startjob=no
4151fi
4152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4153fi
4154echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4155echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4156if test $ac_cv_func_jlimit_startjob = yes; then
4157 cat >>confdefs.h <<\_ACEOF
4158#define WITH_IRIX_JOBS 1
4159_ACEOF
4160
4161fi
4162
4163 cat >>confdefs.h <<\_ACEOF
4164#define BROKEN_INET_NTOA 1
4165_ACEOF
4166
4167 cat >>confdefs.h <<\_ACEOF
4168#define WITH_ABBREV_NO_TTY 1
4169_ACEOF
4170
4171 ;;
4172*-*-linux*)
4173 no_dev_ptmx=1
4174 check_for_libcrypt_later=1
4175 cat >>confdefs.h <<\_ACEOF
4176#define DONT_TRY_OTHER_AF 1
4177_ACEOF
4178
4179 cat >>confdefs.h <<\_ACEOF
4180#define PAM_TTY_KLUDGE 1
4181_ACEOF
4182
4183 inet6_default_4in6=yes
4184 ;;
4185mips-sony-bsd|mips-sony-newsos4)
4186 cat >>confdefs.h <<\_ACEOF
4187#define HAVE_NEWS4 1
4188_ACEOF
4189
4190 SONY=1
4191 ;;
4192*-*-netbsd*)
4193 check_for_libcrypt_before=1
4194 need_dash_r=1
4195 ;;
4196*-*-freebsd*)
4197 check_for_libcrypt_later=1
4198 ;;
4199*-next-*)
4200 conf_lastlog_location="/usr/adm/lastlog"
4201 conf_utmp_location=/etc/utmp
4202 conf_wtmp_location=/usr/adm/wtmp
4203 MAIL=/usr/spool/mail
4204 cat >>confdefs.h <<\_ACEOF
4205#define HAVE_NEXT 1
4206_ACEOF
4207
4208 cat >>confdefs.h <<\_ACEOF
4209#define BROKEN_REALPATH 1
4210_ACEOF
4211
4212 cat >>confdefs.h <<\_ACEOF
4213#define USE_PIPES 1
4214_ACEOF
4215
4216 cat >>confdefs.h <<\_ACEOF
4217#define BROKEN_SAVED_UIDS 1
4218_ACEOF
4219
4220 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4221 CFLAGS="$CFLAGS"
4222 ;;
4223*-*-solaris*)
4224 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4225 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4226 need_dash_r=1
4227 cat >>confdefs.h <<\_ACEOF
4228#define PAM_SUN_CODEBASE 1
4229_ACEOF
4230
4231 cat >>confdefs.h <<\_ACEOF
4232#define LOGIN_NEEDS_UTMPX 1
4233_ACEOF
4234
4235 cat >>confdefs.h <<\_ACEOF
4236#define LOGIN_NEEDS_TERM 1
4237_ACEOF
4238
4239 cat >>confdefs.h <<\_ACEOF
4240#define PAM_TTY_KLUDGE 1
4241_ACEOF
4242
4243 # hardwire lastlog location (can't detect it on some versions)
4244 conf_lastlog_location="/var/adm/lastlog"
4245 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
4246echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6
4247 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
4248 if test "$sol2ver" -ge 8; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 cat >>confdefs.h <<\_ACEOF
4252#define DISABLE_UTMP 1
4253_ACEOF
4254
4255 cat >>confdefs.h <<\_ACEOF
4256#define DISABLE_WTMP 1
4257_ACEOF
4258
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263 ;;
4264*-*-sunos4*)
4265 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4266
4267for ac_func in getpwanam
4268do
4269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4270echo "$as_me:$LINENO: checking for $ac_func" >&5
4271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4272if eval "test \"\${$as_ac_var+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
4276#line $LINENO "configure"
4277#include "confdefs.h"
4278/* System header to define __stub macros and hopefully few prototypes,
4279 which can conflict with char $ac_func (); below. */
4280#include <assert.h>
4281/* Override any gcc2 internal prototype to avoid an error. */
4282#ifdef __cplusplus
4283extern "C"
4284#endif
4285/* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4287char $ac_func ();
4288char (*f) ();
4289
4290#ifdef F77_DUMMY_MAIN
4291# ifdef __cplusplus
4292 extern "C"
4293# endif
4294 int F77_DUMMY_MAIN() { return 1; }
4295#endif
4296int
4297main ()
4298{
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4303choke me
4304#else
4305f = $ac_func;
4306#endif
4307
4308 ;
4309 return 0;
4310}
4311_ACEOF
4312rm -f conftest.$ac_objext conftest$ac_exeext
4313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4314 (eval $ac_link) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_var=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327cat conftest.$ac_ext >&5
4328eval "$as_ac_var=no"
4329fi
4330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4331fi
4332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334if test `eval echo '${'$as_ac_var'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340done
4341
4342 cat >>confdefs.h <<\_ACEOF
4343#define PAM_SUN_CODEBASE 1
4344_ACEOF
4345
4346 conf_utmp_location=/etc/utmp
4347 conf_wtmp_location=/var/adm/wtmp
4348 conf_lastlog_location=/var/adm/lastlog
4349 cat >>confdefs.h <<\_ACEOF
4350#define USE_PIPES 1
4351_ACEOF
4352
4353 ;;
4354*-ncr-sysv*)
4355 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4356 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4357 LIBS="$LIBS -lc89"
4358 cat >>confdefs.h <<\_ACEOF
4359#define USE_PIPES 1
4360_ACEOF
4361
4362 ;;
4363*-sni-sysv*)
4364 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4365 # /usr/ucblib MUST NOT be searched on ReliantUNIX
4366 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4367 IPADDR_IN_DISPLAY=yes
4368 cat >>confdefs.h <<\_ACEOF
4369#define USE_PIPES 1
4370_ACEOF
4371
4372 cat >>confdefs.h <<\_ACEOF
4373#define IP_TOS_IS_BROKEN 1
4374_ACEOF
4375
4376 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
4377 # Attention: always take care to bind libsocket and libnsl before libc,
4378 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
4379 ;;
4380*-*-sysv4.2*)
4381 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4382 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4383 cat >>confdefs.h <<\_ACEOF
4384#define USE_PIPES 1
4385_ACEOF
4386
4387 ;;
4388*-*-sysv5*)
4389 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4390 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4391 cat >>confdefs.h <<\_ACEOF
4392#define USE_PIPES 1
4393_ACEOF
4394
4395 ;;
4396*-*-sysv*)
4397 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4398 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4399 ;;
4400*-*-sco3.2v4*)
4401 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4403 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4404 RANLIB=true
4405 no_dev_ptmx=1
4406 cat >>confdefs.h <<\_ACEOF
4407#define BROKEN_SYS_TERMIO_H 1
4408_ACEOF
4409
4410 cat >>confdefs.h <<\_ACEOF
4411#define USE_PIPES 1
4412_ACEOF
4413
4414 cat >>confdefs.h <<\_ACEOF
4415#define HAVE_SECUREWARE 1
4416_ACEOF
4417
4418 cat >>confdefs.h <<\_ACEOF
4419#define DISABLE_SHADOW 1
4420_ACEOF
4421
4422 cat >>confdefs.h <<\_ACEOF
4423#define BROKEN_SAVED_UIDS 1
4424_ACEOF
4425
4426
4427
4428for ac_func in getluid setluid
4429do
4430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4431echo "$as_me:$LINENO: checking for $ac_func" >&5
4432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4433if eval "test \"\${$as_ac_var+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437#line $LINENO "configure"
4438#include "confdefs.h"
4439/* System header to define __stub macros and hopefully few prototypes,
4440 which can conflict with char $ac_func (); below. */
4441#include <assert.h>
4442/* Override any gcc2 internal prototype to avoid an error. */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4448char $ac_func ();
4449char (*f) ();
4450
4451#ifdef F77_DUMMY_MAIN
4452# ifdef __cplusplus
4453 extern "C"
4454# endif
4455 int F77_DUMMY_MAIN() { return 1; }
4456#endif
4457int
4458main ()
4459{
4460/* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464choke me
4465#else
4466f = $ac_func;
4467#endif
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_var=yes"
4486else
4487 echo "$as_me: failed program was:" >&5
4488cat conftest.$ac_ext >&5
4489eval "$as_ac_var=no"
4490fi
4491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4495if test `eval echo '${'$as_ac_var'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4498_ACEOF
4499
4500fi
4501done
4502
4503 MANTYPE=man
4504 do_sco3_extra_lib_check=yes
4505 ;;
4506*-*-sco3.2v5*)
4507 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4508 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4509 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4510 no_dev_ptmx=1
4511 cat >>confdefs.h <<\_ACEOF
4512#define USE_PIPES 1
4513_ACEOF
4514
4515 cat >>confdefs.h <<\_ACEOF
4516#define HAVE_SECUREWARE 1
4517_ACEOF
4518
4519 cat >>confdefs.h <<\_ACEOF
4520#define DISABLE_SHADOW 1
4521_ACEOF
4522
4523 cat >>confdefs.h <<\_ACEOF
4524#define DISABLE_FD_PASSING 1
4525_ACEOF
4526
4527
4528
4529for ac_func in getluid setluid
4530do
4531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4532echo "$as_me:$LINENO: checking for $ac_func" >&5
4533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4534if eval "test \"\${$as_ac_var+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 cat >conftest.$ac_ext <<_ACEOF
4538#line $LINENO "configure"
4539#include "confdefs.h"
4540/* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char $ac_func (); below. */
4542#include <assert.h>
4543/* Override any gcc2 internal prototype to avoid an error. */
4544#ifdef __cplusplus
4545extern "C"
4546#endif
4547/* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4549char $ac_func ();
4550char (*f) ();
4551
4552#ifdef F77_DUMMY_MAIN
4553# ifdef __cplusplus
4554 extern "C"
4555# endif
4556 int F77_DUMMY_MAIN() { return 1; }
4557#endif
4558int
4559main ()
4560{
4561/* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565choke me
4566#else
4567f = $ac_func;
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext conftest$ac_exeext
4575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 eval "$as_ac_var=yes"
4587else
4588 echo "$as_me: failed program was:" >&5
4589cat conftest.$ac_ext >&5
4590eval "$as_ac_var=no"
4591fi
4592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593fi
4594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596if test `eval echo '${'$as_ac_var'}'` = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4599_ACEOF
4600
4601fi
4602done
4603
4604 MANTYPE=man
4605 ;;
4606*-*-unicosmk*)
4607 no_libsocket=1
4608 no_libnsl=1
4609 cat >>confdefs.h <<\_ACEOF
4610#define USE_PIPES 1
4611_ACEOF
4612
4613 cat >>confdefs.h <<\_ACEOF
4614#define DISABLE_FD_PASSING 1
4615_ACEOF
4616
4617 LDFLAGS="$LDFLAGS"
4618 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4619 MANTYPE=cat
4620 ;;
4621*-*-unicos*)
4622 no_libsocket=1
4623 no_libnsl=1
4624 cat >>confdefs.h <<\_ACEOF
4625#define USE_PIPES 1
4626_ACEOF
4627
4628 cat >>confdefs.h <<\_ACEOF
4629#define DISABLE_FD_PASSING 1
4630_ACEOF
4631
4632 cat >>confdefs.h <<\_ACEOF
4633#define NO_SSH_LASTLOG 1
4634_ACEOF
4635
4636 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4637 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4638 MANTYPE=cat
4639 ;;
4640*-dec-osf*)
4641 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4642echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4643 no_osfsia=""
4644
4645# Check whether --with-osfsia or --without-osfsia was given.
4646if test "${with_osfsia+set}" = set; then
4647 withval="$with_osfsia"
4648
4649 if test "x$withval" = "xno" ; then
4650 echo "$as_me:$LINENO: result: disabled" >&5
4651echo "${ECHO_T}disabled" >&6
4652 no_osfsia=1
4653 fi
4654
4655fi;
4656 if test -z "$no_osfsia" ; then
4657 if test -f /etc/sia/matrix.conf; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 cat >>confdefs.h <<\_ACEOF
4661#define HAVE_OSF_SIA 1
4662_ACEOF
4663
4664 cat >>confdefs.h <<\_ACEOF
4665#define DISABLE_LOGIN 1
4666_ACEOF
4667
4668 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6
4672 fi
4673 fi
4674 ;;
4675
4676*-*-nto-qnx)
4677 cat >>confdefs.h <<\_ACEOF
4678#define USE_PIPES 1
4679_ACEOF
4680
4681 cat >>confdefs.h <<\_ACEOF
4682#define NO_X11_UNIX_SOCKETS 1
4683_ACEOF
4684
4685 cat >>confdefs.h <<\_ACEOF
4686#define MISSING_NFDBITS 1
4687_ACEOF
4688
4689 cat >>confdefs.h <<\_ACEOF
4690#define MISSING_HOWMANY 1
4691_ACEOF
4692
4693 cat >>confdefs.h <<\_ACEOF
4694#define MISSING_FD_MASK 1
4695_ACEOF
4696
4697 ;;
4698esac
4699
4700# Allow user to specify flags
4701
4702# Check whether --with-cflags or --without-cflags was given.
4703if test "${with_cflags+set}" = set; then
4704 withval="$with_cflags"
4705
4706 if test "x$withval" != "xno" ; then
4707 CFLAGS="$CFLAGS $withval"
4708 fi
4709
4710
4711fi;
4712
4713# Check whether --with-cppflags or --without-cppflags was given.
4714if test "${with_cppflags+set}" = set; then
4715 withval="$with_cppflags"
4716
4717 if test "x$withval" != "xno"; then
4718 CPPFLAGS="$CPPFLAGS $withval"
4719 fi
4720
4721
4722fi;
4723
4724# Check whether --with-ldflags or --without-ldflags was given.
4725if test "${with_ldflags+set}" = set; then
4726 withval="$with_ldflags"
4727
4728 if test "x$withval" != "xno" ; then
4729 LDFLAGS="$LDFLAGS $withval"
4730 fi
4731
4732
4733fi;
4734
4735# Check whether --with-libs or --without-libs was given.
4736if test "${with_libs+set}" = set; then
4737 withval="$with_libs"
4738
4739 if test "x$withval" != "xno" ; then
4740 LIBS="$LIBS $withval"
4741 fi
4742
4743
4744fi;
4745
4746# Checks for header files.
4747
4748echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4749echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4750if test "${ac_cv_header_stdc+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753 cat >conftest.$ac_ext <<_ACEOF
4754#line $LINENO "configure"
4755#include "confdefs.h"
4756#include <stdlib.h>
4757#include <stdarg.h>
4758#include <string.h>
4759#include <float.h>
4760
4761_ACEOF
4762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4764 ac_status=$?
4765 egrep -v '^ *\+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null; then
4770 if test -s conftest.err; then
4771 ac_cpp_err=$ac_c_preproc_warn_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_cv_header_stdc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_header_stdc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786
4787if test $ac_cv_header_stdc = yes; then
4788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4790#line $LINENO "configure"
4791#include "confdefs.h"
4792#include <string.h>
4793
4794_ACEOF
4795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 egrep "memchr" >/dev/null 2>&1; then
4797 :
4798else
4799 ac_cv_header_stdc=no
4800fi
4801rm -f conftest*
4802
4803fi
4804
4805if test $ac_cv_header_stdc = yes; then
4806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4807 cat >conftest.$ac_ext <<_ACEOF
4808#line $LINENO "configure"
4809#include "confdefs.h"
4810#include <stdlib.h>
4811
4812_ACEOF
4813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "free" >/dev/null 2>&1; then
4815 :
4816else
4817 ac_cv_header_stdc=no
4818fi
4819rm -f conftest*
4820
4821fi
4822
4823if test $ac_cv_header_stdc = yes; then
4824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4825 if test "$cross_compiling" = yes; then
4826 :
4827else
4828 cat >conftest.$ac_ext <<_ACEOF
4829#line $LINENO "configure"
4830#include "confdefs.h"
4831#include <ctype.h>
4832#if ((' ' & 0x0FF) == 0x020)
4833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4835#else
4836# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4837 || ('j' <= (c) && (c) <= 'r') \
4838 || ('s' <= (c) && (c) <= 'z'))
4839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840#endif
4841
4842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843int
4844main ()
4845{
4846 int i;
4847 for (i = 0; i < 256; i++)
4848 if (XOR (islower (i), ISLOWER (i))
4849 || toupper (i) != TOUPPER (i))
4850 exit(2);
4851 exit (0);
4852}
4853_ACEOF
4854rm -f conftest$ac_exeext
4855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 :
4866else
4867 echo "$as_me: program exited with status $ac_status" >&5
4868echo "$as_me: failed program was:" >&5
4869cat conftest.$ac_ext >&5
4870( exit $ac_status )
4871ac_cv_header_stdc=no
4872fi
4873rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874fi
4875fi
4876fi
4877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4878echo "${ECHO_T}$ac_cv_header_stdc" >&6
4879if test $ac_cv_header_stdc = yes; then
4880
4881cat >>confdefs.h <<\_ACEOF
4882#define STDC_HEADERS 1
4883_ACEOF
4884
4885fi
4886
4887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898 inttypes.h stdint.h unistd.h
4899do
4900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901echo "$as_me:$LINENO: checking for $ac_header" >&5
4902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4903if eval "test \"\${$as_ac_Header+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 cat >conftest.$ac_ext <<_ACEOF
4907#line $LINENO "configure"
4908#include "confdefs.h"
4909$ac_includes_default
4910
4911#include <$ac_header>
4912_ACEOF
4913rm -f conftest.$ac_objext
4914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -s conftest.$ac_objext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 eval "$as_ac_Header=yes"
4926else
4927 echo "$as_me: failed program was:" >&5
4928cat conftest.$ac_ext >&5
4929eval "$as_ac_Header=no"
4930fi
4931rm -f conftest.$ac_objext conftest.$ac_ext
4932fi
4933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4935if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938_ACEOF
4939
4940fi
4941
4942done
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4988 getopt.h glob.h ia.h lastlog.h limits.h login.h \
4989 login_cap.h maillock.h netdb.h netgroup.h \
4990 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4991 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4992 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4993 sys/mman.h sys/select.h sys/stat.h \
4994 sys/stropts.h sys/sysmacros.h sys/time.h \
4995 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4996 util.h utime.h utmp.h utmpx.h
4997do
4998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999if eval "test \"\${$as_ac_Header+set}\" = set"; then
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004fi
5005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5007else
5008 # Is the header compilable?
5009echo "$as_me:$LINENO: checking $ac_header usability" >&5
5010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5011cat >conftest.$ac_ext <<_ACEOF
5012#line $LINENO "configure"
5013#include "confdefs.h"
5014$ac_includes_default
5015#include <$ac_header>
5016_ACEOF
5017rm -f conftest.$ac_objext
5018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler=yes
5030else
5031 echo "$as_me: failed program was:" >&5
5032cat conftest.$ac_ext >&5
5033ac_header_compiler=no
5034fi
5035rm -f conftest.$ac_objext conftest.$ac_ext
5036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037echo "${ECHO_T}$ac_header_compiler" >&6
5038
5039# Is the header present?
5040echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044#include "confdefs.h"
5045#include <$ac_header>
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 egrep -v '^ *\+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_c_preproc_warn_flag
5057 else
5058 ac_cpp_err=
5059 fi
5060else
5061 ac_cpp_err=yes
5062fi
5063if test -z "$ac_cpp_err"; then
5064 ac_header_preproc=yes
5065else
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_header_preproc=no
5069fi
5070rm -f conftest.err conftest.$ac_ext
5071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6
5073
5074# So? What about this header?
5075case $ac_header_compiler:$ac_header_preproc in
5076 yes:no )
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5081 no:yes )
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5088esac
5089echo "$as_me:$LINENO: checking for $ac_header" >&5
5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 eval "$as_ac_Header=$ac_header_preproc"
5095fi
5096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098
5099fi
5100if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103_ACEOF
5104
5105fi
5106
5107done
5108
5109
5110# Checks for libraries.
5111echo "$as_me:$LINENO: checking for yp_match" >&5
5112echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5113if test "${ac_cv_func_yp_match+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117#line $LINENO "configure"
5118#include "confdefs.h"
5119/* System header to define __stub macros and hopefully few prototypes,
5120 which can conflict with char yp_match (); below. */
5121#include <assert.h>
5122/* Override any gcc2 internal prototype to avoid an error. */
5123#ifdef __cplusplus
5124extern "C"
5125#endif
5126/* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5128char yp_match ();
5129char (*f) ();
5130
5131#ifdef F77_DUMMY_MAIN
5132# ifdef __cplusplus
5133 extern "C"
5134# endif
5135 int F77_DUMMY_MAIN() { return 1; }
5136#endif
5137int
5138main ()
5139{
5140/* The GNU C library defines this for functions which it implements
5141 to always fail with ENOSYS. Some functions are actually named
5142 something starting with __ and the normal name is an alias. */
5143#if defined (__stub_yp_match) || defined (__stub___yp_match)
5144choke me
5145#else
5146f = yp_match;
5147#endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153rm -f conftest.$ac_objext conftest$ac_exeext
5154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -s conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_func_yp_match=yes
5166else
5167 echo "$as_me: failed program was:" >&5
5168cat conftest.$ac_ext >&5
5169ac_cv_func_yp_match=no
5170fi
5171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5172fi
5173echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5174echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5175if test $ac_cv_func_yp_match = yes; then
5176 :
5177else
5178
5179echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5180echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5181if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 ac_check_lib_save_LIBS=$LIBS
5185LIBS="-lnsl $LIBS"
5186cat >conftest.$ac_ext <<_ACEOF
5187#line $LINENO "configure"
5188#include "confdefs.h"
5189
5190/* Override any gcc2 internal prototype to avoid an error. */
5191#ifdef __cplusplus
5192extern "C"
5193#endif
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5196char yp_match ();
5197#ifdef F77_DUMMY_MAIN
5198# ifdef __cplusplus
5199 extern "C"
5200# endif
5201 int F77_DUMMY_MAIN() { return 1; }
5202#endif
5203int
5204main ()
5205{
5206yp_match ();
5207 ;
5208 return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_nsl_yp_match=yes
5224else
5225 echo "$as_me: failed program was:" >&5
5226cat conftest.$ac_ext >&5
5227ac_cv_lib_nsl_yp_match=no
5228fi
5229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230LIBS=$ac_check_lib_save_LIBS
5231fi
5232echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5233echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5234if test $ac_cv_lib_nsl_yp_match = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236#define HAVE_LIBNSL 1
5237_ACEOF
5238
5239 LIBS="-lnsl $LIBS"
5240
5241fi
5242
5243fi
5244
5245echo "$as_me:$LINENO: checking for setsockopt" >&5
5246echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5247if test "${ac_cv_func_setsockopt+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 cat >conftest.$ac_ext <<_ACEOF
5251#line $LINENO "configure"
5252#include "confdefs.h"
5253/* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char setsockopt (); below. */
5255#include <assert.h>
5256/* Override any gcc2 internal prototype to avoid an error. */
5257#ifdef __cplusplus
5258extern "C"
5259#endif
5260/* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262char setsockopt ();
5263char (*f) ();
5264
5265#ifdef F77_DUMMY_MAIN
5266# ifdef __cplusplus
5267 extern "C"
5268# endif
5269 int F77_DUMMY_MAIN() { return 1; }
5270#endif
5271int
5272main ()
5273{
5274/* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5278choke me
5279#else
5280f = setsockopt;
5281#endif
5282
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287rm -f conftest.$ac_objext conftest$ac_exeext
5288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_func_setsockopt=yes
5300else
5301 echo "$as_me: failed program was:" >&5
5302cat conftest.$ac_ext >&5
5303ac_cv_func_setsockopt=no
5304fi
5305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5308echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5309if test $ac_cv_func_setsockopt = yes; then
5310 :
5311else
5312
5313echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5314echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5315if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 ac_check_lib_save_LIBS=$LIBS
5319LIBS="-lsocket $LIBS"
5320cat >conftest.$ac_ext <<_ACEOF
5321#line $LINENO "configure"
5322#include "confdefs.h"
5323
5324/* Override any gcc2 internal prototype to avoid an error. */
5325#ifdef __cplusplus
5326extern "C"
5327#endif
5328/* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330char setsockopt ();
5331#ifdef F77_DUMMY_MAIN
5332# ifdef __cplusplus
5333 extern "C"
5334# endif
5335 int F77_DUMMY_MAIN() { return 1; }
5336#endif
5337int
5338main ()
5339{
5340setsockopt ();
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext conftest$ac_exeext
5346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_lib_socket_setsockopt=yes
5358else
5359 echo "$as_me: failed program was:" >&5
5360cat conftest.$ac_ext >&5
5361ac_cv_lib_socket_setsockopt=no
5362fi
5363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364LIBS=$ac_check_lib_save_LIBS
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5367echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5368if test $ac_cv_lib_socket_setsockopt = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370#define HAVE_LIBSOCKET 1
5371_ACEOF
5372
5373 LIBS="-lsocket $LIBS"
5374
5375fi
5376
5377fi
5378
5379
5380if test "x$with_tcp_wrappers" != "xno" ; then
5381 if test "x$do_sco3_extra_lib_check" = "xyes" ; then
5382 echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5
5383echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5384if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 ac_check_lib_save_LIBS=$LIBS
5388LIBS="-lrpc -lyp -lrpc $LIBS"
5389cat >conftest.$ac_ext <<_ACEOF
5390#line $LINENO "configure"
5391#include "confdefs.h"
5392
5393/* Override any gcc2 internal prototype to avoid an error. */
5394#ifdef __cplusplus
5395extern "C"
5396#endif
5397/* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5399char innetgr ();
5400#ifdef F77_DUMMY_MAIN
5401# ifdef __cplusplus
5402 extern "C"
5403# endif
5404 int F77_DUMMY_MAIN() { return 1; }
5405#endif
5406int
5407main ()
5408{
5409innetgr ();
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext conftest$ac_exeext
5415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -s conftest$ac_exeext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_rpc_innetgr=yes
5427else
5428 echo "$as_me: failed program was:" >&5
5429cat conftest.$ac_ext >&5
5430ac_cv_lib_rpc_innetgr=no
5431fi
5432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433LIBS=$ac_check_lib_save_LIBS
5434fi
5435echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5436echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5437if test $ac_cv_lib_rpc_innetgr = yes; then
5438 LIBS="-lrpc -lyp -lrpc $LIBS"
5439fi
5440
5441 fi
5442fi
5443
5444echo "$as_me:$LINENO: checking for getspnam" >&5
5445echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5446if test "${ac_cv_func_getspnam+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 cat >conftest.$ac_ext <<_ACEOF
5450#line $LINENO "configure"
5451#include "confdefs.h"
5452/* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char getspnam (); below. */
5454#include <assert.h>
5455/* Override any gcc2 internal prototype to avoid an error. */
5456#ifdef __cplusplus
5457extern "C"
5458#endif
5459/* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461char getspnam ();
5462char (*f) ();
5463
5464#ifdef F77_DUMMY_MAIN
5465# ifdef __cplusplus
5466 extern "C"
5467# endif
5468 int F77_DUMMY_MAIN() { return 1; }
5469#endif
5470int
5471main ()
5472{
5473/* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476#if defined (__stub_getspnam) || defined (__stub___getspnam)
5477choke me
5478#else
5479f = getspnam;
5480#endif
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486rm -f conftest.$ac_objext conftest$ac_exeext
5487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_getspnam=yes
5499else
5500 echo "$as_me: failed program was:" >&5
5501cat conftest.$ac_ext >&5
5502ac_cv_func_getspnam=no
5503fi
5504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505fi
5506echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5507echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5508if test $ac_cv_func_getspnam = yes; then
5509 :
5510else
5511 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5512echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5513if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 ac_check_lib_save_LIBS=$LIBS
5517LIBS="-lgen $LIBS"
5518cat >conftest.$ac_ext <<_ACEOF
5519#line $LINENO "configure"
5520#include "confdefs.h"
5521
5522/* Override any gcc2 internal prototype to avoid an error. */
5523#ifdef __cplusplus
5524extern "C"
5525#endif
5526/* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528char getspnam ();
5529#ifdef F77_DUMMY_MAIN
5530# ifdef __cplusplus
5531 extern "C"
5532# endif
5533 int F77_DUMMY_MAIN() { return 1; }
5534#endif
5535int
5536main ()
5537{
5538getspnam ();
5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_gen_getspnam=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558cat conftest.$ac_ext >&5
5559ac_cv_lib_gen_getspnam=no
5560fi
5561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5565echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5566if test $ac_cv_lib_gen_getspnam = yes; then
5567 LIBS="$LIBS -lgen"
5568fi
5569
5570fi
5571
5572
5573
5574# Check whether --with-rpath or --without-rpath was given.
5575if test "${with_rpath+set}" = set; then
5576 withval="$with_rpath"
5577
5578 if test "x$withval" = "xno" ; then
5579 need_dash_r=""
5580 fi
5581 if test "x$withval" = "xyes" ; then
5582 need_dash_r=1
5583 fi
5584
5585
5586fi;
5587
5588
5589# Check whether --with-zlib or --without-zlib was given.
5590if test "${with_zlib+set}" = set; then
5591 withval="$with_zlib"
5592
5593 if test "x$withval" = "xno" ; then
5594 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5595echo "$as_me: error: *** zlib is required ***" >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 if test -d "$withval/lib"; then
5599 if test -n "${need_dash_r}"; then
5600 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5601 else
5602 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5603 fi
5604 else
5605 if test -n "${need_dash_r}"; then
5606 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5607 else
5608 LDFLAGS="-L${withval} ${LDFLAGS}"
5609 fi
5610 fi
5611 if test -d "$withval/include"; then
5612 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5613 else
5614 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5615 fi
5616
5617
5618fi;
5619
5620
5621echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5622echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5623if test "${ac_cv_lib_z_deflate+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626 ac_check_lib_save_LIBS=$LIBS
5627LIBS="-lz $LIBS"
5628cat >conftest.$ac_ext <<_ACEOF
5629#line $LINENO "configure"
5630#include "confdefs.h"
5631
5632/* Override any gcc2 internal prototype to avoid an error. */
5633#ifdef __cplusplus
5634extern "C"
5635#endif
5636/* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5638char deflate ();
5639#ifdef F77_DUMMY_MAIN
5640# ifdef __cplusplus
5641 extern "C"
5642# endif
5643 int F77_DUMMY_MAIN() { return 1; }
5644#endif
5645int
5646main ()
5647{
5648deflate ();
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_lib_z_deflate=yes
5666else
5667 echo "$as_me: failed program was:" >&5
5668cat conftest.$ac_ext >&5
5669ac_cv_lib_z_deflate=no
5670fi
5671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672LIBS=$ac_check_lib_save_LIBS
5673fi
5674echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5675echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5676if test $ac_cv_lib_z_deflate = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678#define HAVE_LIBZ 1
5679_ACEOF
5680
5681 LIBS="-lz $LIBS"
5682
5683else
5684 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5685echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5686 { (exit 1); exit 1; }; }
5687fi
5688
5689
5690echo "$as_me:$LINENO: checking for strcasecmp" >&5
5691echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5692if test "${ac_cv_func_strcasecmp+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 cat >conftest.$ac_ext <<_ACEOF
5696#line $LINENO "configure"
5697#include "confdefs.h"
5698/* System header to define __stub macros and hopefully few prototypes,
5699 which can conflict with char strcasecmp (); below. */
5700#include <assert.h>
5701/* Override any gcc2 internal prototype to avoid an error. */
5702#ifdef __cplusplus
5703extern "C"
5704#endif
5705/* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5707char strcasecmp ();
5708char (*f) ();
5709
5710#ifdef F77_DUMMY_MAIN
5711# ifdef __cplusplus
5712 extern "C"
5713# endif
5714 int F77_DUMMY_MAIN() { return 1; }
5715#endif
5716int
5717main ()
5718{
5719/* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5723choke me
5724#else
5725f = strcasecmp;
5726#endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext conftest$ac_exeext
5733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_func_strcasecmp=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747cat conftest.$ac_ext >&5
5748ac_cv_func_strcasecmp=no
5749fi
5750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5753echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5754if test $ac_cv_func_strcasecmp = yes; then
5755 :
5756else
5757 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5758echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5759if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 ac_check_lib_save_LIBS=$LIBS
5763LIBS="-lresolv $LIBS"
5764cat >conftest.$ac_ext <<_ACEOF
5765#line $LINENO "configure"
5766#include "confdefs.h"
5767
5768/* Override any gcc2 internal prototype to avoid an error. */
5769#ifdef __cplusplus
5770extern "C"
5771#endif
5772/* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5774char strcasecmp ();
5775#ifdef F77_DUMMY_MAIN
5776# ifdef __cplusplus
5777 extern "C"
5778# endif
5779 int F77_DUMMY_MAIN() { return 1; }
5780#endif
5781int
5782main ()
5783{
5784strcasecmp ();
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
5790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_resolv_strcasecmp=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804cat conftest.$ac_ext >&5
5805ac_cv_lib_resolv_strcasecmp=no
5806fi
5807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808LIBS=$ac_check_lib_save_LIBS
5809fi
5810echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5811echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5812if test $ac_cv_lib_resolv_strcasecmp = yes; then
5813 LIBS="$LIBS -lresolv"
5814fi
5815
5816
5817fi
5818
5819echo "$as_me:$LINENO: checking for utimes" >&5
5820echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5821if test "${ac_cv_func_utimes+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 cat >conftest.$ac_ext <<_ACEOF
5825#line $LINENO "configure"
5826#include "confdefs.h"
5827/* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char utimes (); below. */
5829#include <assert.h>
5830/* Override any gcc2 internal prototype to avoid an error. */
5831#ifdef __cplusplus
5832extern "C"
5833#endif
5834/* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5836char utimes ();
5837char (*f) ();
5838
5839#ifdef F77_DUMMY_MAIN
5840# ifdef __cplusplus
5841 extern "C"
5842# endif
5843 int F77_DUMMY_MAIN() { return 1; }
5844#endif
5845int
5846main ()
5847{
5848/* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851#if defined (__stub_utimes) || defined (__stub___utimes)
5852choke me
5853#else
5854f = utimes;
5855#endif
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext conftest$ac_exeext
5862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_func_utimes=yes
5874else
5875 echo "$as_me: failed program was:" >&5
5876cat conftest.$ac_ext >&5
5877ac_cv_func_utimes=no
5878fi
5879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5882echo "${ECHO_T}$ac_cv_func_utimes" >&6
5883if test $ac_cv_func_utimes = yes; then
5884 :
5885else
5886 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5887echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5888if test "${ac_cv_lib_c89_utimes+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 ac_check_lib_save_LIBS=$LIBS
5892LIBS="-lc89 $LIBS"
5893cat >conftest.$ac_ext <<_ACEOF
5894#line $LINENO "configure"
5895#include "confdefs.h"
5896
5897/* Override any gcc2 internal prototype to avoid an error. */
5898#ifdef __cplusplus
5899extern "C"
5900#endif
5901/* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903char utimes ();
5904#ifdef F77_DUMMY_MAIN
5905# ifdef __cplusplus
5906 extern "C"
5907# endif
5908 int F77_DUMMY_MAIN() { return 1; }
5909#endif
5910int
5911main ()
5912{
5913utimes ();
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_c89_utimes=yes
5931else
5932 echo "$as_me: failed program was:" >&5
5933cat conftest.$ac_ext >&5
5934ac_cv_lib_c89_utimes=no
5935fi
5936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5937LIBS=$ac_check_lib_save_LIBS
5938fi
5939echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5940echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5941if test $ac_cv_lib_c89_utimes = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943#define HAVE_UTIMES 1
5944_ACEOF
5945
5946 LIBS="$LIBS -lc89"
5947fi
5948
5949
5950fi
5951
5952
5953
5954for ac_header in libutil.h
5955do
5956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962fi
5963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965else
5966 # Is the header compilable?
5967echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969cat >conftest.$ac_ext <<_ACEOF
5970#line $LINENO "configure"
5971#include "confdefs.h"
5972$ac_includes_default
5973#include <$ac_header>
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_header_compiler=yes
5988else
5989 echo "$as_me: failed program was:" >&5
5990cat conftest.$ac_ext >&5
5991ac_header_compiler=no
5992fi
5993rm -f conftest.$ac_objext conftest.$ac_ext
5994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995echo "${ECHO_T}$ac_header_compiler" >&6
5996
5997# Is the header present?
5998echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000cat >conftest.$ac_ext <<_ACEOF
6001#line $LINENO "configure"
6002#include "confdefs.h"
6003#include <$ac_header>
6004_ACEOF
6005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 ac_status=$?
6008 egrep -v '^ *\+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null; then
6013 if test -s conftest.err; then
6014 ac_cpp_err=$ac_c_preproc_warn_flag
6015 else
6016 ac_cpp_err=
6017 fi
6018else
6019 ac_cpp_err=yes
6020fi
6021if test -z "$ac_cpp_err"; then
6022 ac_header_preproc=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_header_preproc=no
6027fi
6028rm -f conftest.err conftest.$ac_ext
6029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6030echo "${ECHO_T}$ac_header_preproc" >&6
6031
6032# So? What about this header?
6033case $ac_header_compiler:$ac_header_preproc in
6034 yes:no )
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6039 no:yes )
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6046esac
6047echo "$as_me:$LINENO: checking for $ac_header" >&5
6048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6049if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 eval "$as_ac_Header=$ac_header_preproc"
6053fi
6054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056
6057fi
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064
6065done
6066
6067echo "$as_me:$LINENO: checking for library containing login" >&5
6068echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6069if test "${ac_cv_search_login+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 ac_func_search_save_LIBS=$LIBS
6073ac_cv_search_login=no
6074cat >conftest.$ac_ext <<_ACEOF
6075#line $LINENO "configure"
6076#include "confdefs.h"
6077
6078/* Override any gcc2 internal prototype to avoid an error. */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char login ();
6085#ifdef F77_DUMMY_MAIN
6086# ifdef __cplusplus
6087 extern "C"
6088# endif
6089 int F77_DUMMY_MAIN() { return 1; }
6090#endif
6091int
6092main ()
6093{
6094login ();
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_search_login="none required"
6112else
6113 echo "$as_me: failed program was:" >&5
6114cat conftest.$ac_ext >&5
6115fi
6116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6117if test "$ac_cv_search_login" = no; then
6118 for ac_lib in util bsd; do
6119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121#line $LINENO "configure"
6122#include "confdefs.h"
6123
6124/* Override any gcc2 internal prototype to avoid an error. */
6125#ifdef __cplusplus
6126extern "C"
6127#endif
6128/* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6130char login ();
6131#ifdef F77_DUMMY_MAIN
6132# ifdef __cplusplus
6133 extern "C"
6134# endif
6135 int F77_DUMMY_MAIN() { return 1; }
6136#endif
6137int
6138main ()
6139{
6140login ();
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_login="-l$ac_lib"
6158break
6159else
6160 echo "$as_me: failed program was:" >&5
6161cat conftest.$ac_ext >&5
6162fi
6163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 done
6165fi
6166LIBS=$ac_func_search_save_LIBS
6167fi
6168echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6169echo "${ECHO_T}$ac_cv_search_login" >&6
6170if test "$ac_cv_search_login" != no; then
6171 test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
6172 cat >>confdefs.h <<\_ACEOF
6173#define HAVE_LOGIN 1
6174_ACEOF
6175
6176fi
6177
6178
6179
6180
6181for ac_func in logout updwtmp logwtmp
6182do
6183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6184echo "$as_me:$LINENO: checking for $ac_func" >&5
6185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6186if eval "test \"\${$as_ac_var+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189 cat >conftest.$ac_ext <<_ACEOF
6190#line $LINENO "configure"
6191#include "confdefs.h"
6192/* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func (); below. */
6194#include <assert.h>
6195/* Override any gcc2 internal prototype to avoid an error. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201char $ac_func ();
6202char (*f) ();
6203
6204#ifdef F77_DUMMY_MAIN
6205# ifdef __cplusplus
6206 extern "C"
6207# endif
6208 int F77_DUMMY_MAIN() { return 1; }
6209#endif
6210int
6211main ()
6212{
6213/* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217choke me
6218#else
6219f = $ac_func;
6220#endif
6221
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext conftest$ac_exeext
6227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 eval "$as_ac_var=yes"
6239else
6240 echo "$as_me: failed program was:" >&5
6241cat conftest.$ac_ext >&5
6242eval "$as_ac_var=no"
6243fi
6244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6245fi
6246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251_ACEOF
6252
6253fi
6254done
6255
6256
6257
6258for ac_func in strftime
6259do
6260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261echo "$as_me:$LINENO: checking for $ac_func" >&5
6262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6263if eval "test \"\${$as_ac_var+set}\" = set"; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 cat >conftest.$ac_ext <<_ACEOF
6267#line $LINENO "configure"
6268#include "confdefs.h"
6269/* System header to define __stub macros and hopefully few prototypes,
6270 which can conflict with char $ac_func (); below. */
6271#include <assert.h>
6272/* Override any gcc2 internal prototype to avoid an error. */
6273#ifdef __cplusplus
6274extern "C"
6275#endif
6276/* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278char $ac_func ();
6279char (*f) ();
6280
6281#ifdef F77_DUMMY_MAIN
6282# ifdef __cplusplus
6283 extern "C"
6284# endif
6285 int F77_DUMMY_MAIN() { return 1; }
6286#endif
6287int
6288main ()
6289{
6290/* The GNU C library defines this for functions which it implements
6291 to always fail with ENOSYS. Some functions are actually named
6292 something starting with __ and the normal name is an alias. */
6293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6294choke me
6295#else
6296f = $ac_func;
6297#endif
6298
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303rm -f conftest.$ac_objext conftest$ac_exeext
6304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 eval "$as_ac_var=yes"
6316else
6317 echo "$as_me: failed program was:" >&5
6318cat conftest.$ac_ext >&5
6319eval "$as_ac_var=no"
6320fi
6321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322fi
6323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6325if test `eval echo '${'$as_ac_var'}'` = yes; then
6326 cat >>confdefs.h <<_ACEOF
6327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6328_ACEOF
6329
6330else
6331 # strftime is in -lintl on SCO UNIX.
6332echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6333echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6334if test "${ac_cv_lib_intl_strftime+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337 ac_check_lib_save_LIBS=$LIBS
6338LIBS="-lintl $LIBS"
6339cat >conftest.$ac_ext <<_ACEOF
6340#line $LINENO "configure"
6341#include "confdefs.h"
6342
6343/* Override any gcc2 internal prototype to avoid an error. */
6344#ifdef __cplusplus
6345extern "C"
6346#endif
6347/* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349char strftime ();
6350#ifdef F77_DUMMY_MAIN
6351# ifdef __cplusplus
6352 extern "C"
6353# endif
6354 int F77_DUMMY_MAIN() { return 1; }
6355#endif
6356int
6357main ()
6358{
6359strftime ();
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext conftest$ac_exeext
6365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_lib_intl_strftime=yes
6377else
6378 echo "$as_me: failed program was:" >&5
6379cat conftest.$ac_ext >&5
6380ac_cv_lib_intl_strftime=no
6381fi
6382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_check_lib_save_LIBS
6384fi
6385echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6386echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6387if test $ac_cv_lib_intl_strftime = yes; then
6388 cat >>confdefs.h <<\_ACEOF
6389#define HAVE_STRFTIME 1
6390_ACEOF
6391
6392LIBS="-lintl $LIBS"
6393fi
6394
6395fi
6396done
6397
6398
6399# Check for ALTDIRFUNC glob() extension
6400echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6401echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6402cat >conftest.$ac_ext <<_ACEOF
6403#line $LINENO "configure"
6404#include "confdefs.h"
6405
6406 #include <glob.h>
6407 #ifdef GLOB_ALTDIRFUNC
6408 FOUNDIT
6409 #endif
6410
6411_ACEOF
6412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 egrep "FOUNDIT" >/dev/null 2>&1; then
6414
6415 cat >>confdefs.h <<\_ACEOF
6416#define GLOB_HAS_ALTDIRFUNC 1
6417_ACEOF
6418
6419 echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421
6422else
6423
6424 echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426
6427
6428fi
6429rm -f conftest*
6430
6431
6432# Check for g.gl_matchc glob() extension
6433echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6434echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436#line $LINENO "configure"
6437#include "confdefs.h"
6438
6439 #include <glob.h>
6440 int main(void){glob_t g; g.gl_matchc = 1;}
6441
6442_ACEOF
6443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 egrep "FOUNDIT" >/dev/null 2>&1; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447#define GLOB_HAS_GL_MATCHC 1
6448_ACEOF
6449
6450 echo "$as_me:$LINENO: result: yes" >&5
6451echo "${ECHO_T}yes" >&6
6452
6453else
6454
6455 echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
6457
6458
6459fi
6460rm -f conftest*
6461
6462
6463echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6464echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6465if test "$cross_compiling" = yes; then
6466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6467echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6468 { (exit 1); exit 1; }; }
6469else
6470 cat >conftest.$ac_ext <<_ACEOF
6471#line $LINENO "configure"
6472#include "confdefs.h"
6473
6474#include <sys/types.h>
6475#include <dirent.h>
6476int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6477
6478_ACEOF
6479rm -f conftest$ac_exeext
6480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
6492else
6493 echo "$as_me: program exited with status $ac_status" >&5
6494echo "$as_me: failed program was:" >&5
6495cat conftest.$ac_ext >&5
6496( exit $ac_status )
6497
6498 echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6
6500 cat >>confdefs.h <<\_ACEOF
6501#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6502_ACEOF
6503
6504
6505
6506fi
6507rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508fi
6509
6510# Check whether user wants S/Key support
6511SKEY_MSG="no"
6512
6513# Check whether --with-skey or --without-skey was given.
6514if test "${with_skey+set}" = set; then
6515 withval="$with_skey"
6516
6517 if test "x$withval" != "xno" ; then
6518
6519 if test "x$withval" != "xyes" ; then
6520 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6521 LDFLAGS="$LDFLAGS -L${withval}/lib"
6522 fi
6523
6524 cat >>confdefs.h <<\_ACEOF
6525#define SKEY 1
6526_ACEOF
6527
6528 LIBS="-lskey $LIBS"
6529 SKEY_MSG="yes"
6530
6531 echo "$as_me:$LINENO: checking for s/key support" >&5
6532echo $ECHO_N "checking for s/key support... $ECHO_C" >&6
6533 if test "$cross_compiling" = yes; then
6534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6535echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6536 { (exit 1); exit 1; }; }
6537else
6538 cat >conftest.$ac_ext <<_ACEOF
6539#line $LINENO "configure"
6540#include "confdefs.h"
6541
6542#include <stdio.h>
6543#include <skey.h>
6544int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6545
6546_ACEOF
6547rm -f conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559echo "${ECHO_T}yes" >&6
6560else
6561 echo "$as_me: program exited with status $ac_status" >&5
6562echo "$as_me: failed program was:" >&5
6563cat conftest.$ac_ext >&5
6564( exit $ac_status )
6565
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6569echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6570 { (exit 1); exit 1; }; }
6571
6572fi
6573rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6574fi
6575 fi
6576
6577
6578fi;
6579
6580# Check whether user wants TCP wrappers support
6581TCPW_MSG="no"
6582
6583# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6584if test "${with_tcp_wrappers+set}" = set; then
6585 withval="$with_tcp_wrappers"
6586
6587 if test "x$withval" != "xno" ; then
6588 saved_LIBS="$LIBS"
6589 saved_LDFLAGS="$LDFLAGS"
6590 saved_CPPFLAGS="$CPPFLAGS"
6591 if test -n "${withval}" -a "${withval}" != "yes"; then
6592 if test -d "${withval}/lib"; then
6593 if test -n "${need_dash_r}"; then
6594 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
6595 else
6596 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6597 fi
6598 else
6599 if test -n "${need_dash_r}"; then
6600 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6601 else
6602 LDFLAGS="-L${withval} ${LDFLAGS}"
6603 fi
6604 fi
6605 if test -d "${withval}/include"; then
6606 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6607 else
6608 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6609 fi
6610 fi
6611 LIBWRAP="-lwrap"
6612 LIBS="$LIBWRAP $LIBS"
6613 echo "$as_me:$LINENO: checking for libwrap" >&5
6614echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616#line $LINENO "configure"
6617#include "confdefs.h"
6618
6619#include <tcpd.h>
6620 int deny_severity = 0, allow_severity = 0;
6621
6622#ifdef F77_DUMMY_MAIN
6623# ifdef __cplusplus
6624 extern "C"
6625# endif
6626 int F77_DUMMY_MAIN() { return 1; }
6627#endif
6628int
6629main ()
6630{
6631hosts_access(0);
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext conftest$ac_exeext
6637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648
6649 echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6
6651 cat >>confdefs.h <<\_ACEOF
6652#define LIBWRAP 1
6653_ACEOF
6654
6655
6656 TCPW_MSG="yes"
6657
6658else
6659 echo "$as_me: failed program was:" >&5
6660cat conftest.$ac_ext >&5
6661
6662 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6663echo "$as_me: error: *** libwrap missing" >&2;}
6664 { (exit 1); exit 1; }; }
6665
6666
6667fi
6668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669 LIBS="$saved_LIBS"
6670 fi
6671
6672
6673fi;
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743for ac_func in arc4random b64_ntop bcopy bindresvport_sa \
6744 clock fchmod fchown freeaddrinfo futimes gai_strerror \
6745 getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\
6746 getrlimit getrusage getttyent glob inet_aton inet_ntoa \
6747 inet_ntop innetgr login_getcapbool md5_crypt memmove \
6748 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \
6749 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
6750 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \
6751 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \
6752 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \
6753 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty
6754do
6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756echo "$as_me:$LINENO: checking for $ac_func" >&5
6757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762#line $LINENO "configure"
6763#include "confdefs.h"
6764/* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func (); below. */
6766#include <assert.h>
6767/* Override any gcc2 internal prototype to avoid an error. */
6768#ifdef __cplusplus
6769extern "C"
6770#endif
6771/* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773char $ac_func ();
6774char (*f) ();
6775
6776#ifdef F77_DUMMY_MAIN
6777# ifdef __cplusplus
6778 extern "C"
6779# endif
6780 int F77_DUMMY_MAIN() { return 1; }
6781#endif
6782int
6783main ()
6784{
6785/* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789choke me
6790#else
6791f = $ac_func;
6792#endif
6793
6794 ;
6795 return 0;
6796}
6797_ACEOF
6798rm -f conftest.$ac_objext conftest$ac_exeext
6799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 eval "$as_ac_var=yes"
6811else
6812 echo "$as_me: failed program was:" >&5
6813cat conftest.$ac_ext >&5
6814eval "$as_ac_var=no"
6815fi
6816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817fi
6818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6820if test `eval echo '${'$as_ac_var'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826done
6827
6828
6829
6830for ac_func in dirname
6831do
6832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833echo "$as_me:$LINENO: checking for $ac_func" >&5
6834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 cat >conftest.$ac_ext <<_ACEOF
6839#line $LINENO "configure"
6840#include "confdefs.h"
6841/* System header to define __stub macros and hopefully few prototypes,
6842 which can conflict with char $ac_func (); below. */
6843#include <assert.h>
6844/* Override any gcc2 internal prototype to avoid an error. */
6845#ifdef __cplusplus
6846extern "C"
6847#endif
6848/* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850char $ac_func ();
6851char (*f) ();
6852
6853#ifdef F77_DUMMY_MAIN
6854# ifdef __cplusplus
6855 extern "C"
6856# endif
6857 int F77_DUMMY_MAIN() { return 1; }
6858#endif
6859int
6860main ()
6861{
6862/* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866choke me
6867#else
6868f = $ac_func;
6869#endif
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6888else
6889 echo "$as_me: failed program was:" >&5
6890cat conftest.$ac_ext >&5
6891eval "$as_ac_var=no"
6892fi
6893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6894fi
6895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6900_ACEOF
6901
6902for ac_header in libgen.h
6903do
6904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6905if eval "test \"\${$as_ac_Header+set}\" = set"; then
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910fi
6911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6913else
6914 # Is the header compilable?
6915echo "$as_me:$LINENO: checking $ac_header usability" >&5
6916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6917cat >conftest.$ac_ext <<_ACEOF
6918#line $LINENO "configure"
6919#include "confdefs.h"
6920$ac_includes_default
6921#include <$ac_header>
6922_ACEOF
6923rm -f conftest.$ac_objext
6924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_header_compiler=yes
6936else
6937 echo "$as_me: failed program was:" >&5
6938cat conftest.$ac_ext >&5
6939ac_header_compiler=no
6940fi
6941rm -f conftest.$ac_objext conftest.$ac_ext
6942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943echo "${ECHO_T}$ac_header_compiler" >&6
6944
6945# Is the header present?
6946echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948cat >conftest.$ac_ext <<_ACEOF
6949#line $LINENO "configure"
6950#include "confdefs.h"
6951#include <$ac_header>
6952_ACEOF
6953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955 ac_status=$?
6956 egrep -v '^ *\+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } >/dev/null; then
6961 if test -s conftest.err; then
6962 ac_cpp_err=$ac_c_preproc_warn_flag
6963 else
6964 ac_cpp_err=
6965 fi
6966else
6967 ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6971else
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 ac_header_preproc=no
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978echo "${ECHO_T}$ac_header_preproc" >&6
6979
6980# So? What about this header?
6981case $ac_header_compiler:$ac_header_preproc in
6982 yes:no )
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6987 no:yes )
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6994esac
6995echo "$as_me:$LINENO: checking for $ac_header" >&5
6996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999else
7000 eval "$as_ac_Header=$ac_header_preproc"
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004
7005fi
7006if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009_ACEOF
7010
7011fi
7012
7013done
7014
7015else
7016
7017 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7018echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7019if test "${ac_cv_lib_gen_dirname+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 ac_check_lib_save_LIBS=$LIBS
7023LIBS="-lgen $LIBS"
7024cat >conftest.$ac_ext <<_ACEOF
7025#line $LINENO "configure"
7026#include "confdefs.h"
7027
7028/* Override any gcc2 internal prototype to avoid an error. */
7029#ifdef __cplusplus
7030extern "C"
7031#endif
7032/* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034char dirname ();
7035#ifdef F77_DUMMY_MAIN
7036# ifdef __cplusplus
7037 extern "C"
7038# endif
7039 int F77_DUMMY_MAIN() { return 1; }
7040#endif
7041int
7042main ()
7043{
7044dirname ();
7045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
7050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_dirname=yes
7062else
7063 echo "$as_me: failed program was:" >&5
7064cat conftest.$ac_ext >&5
7065ac_cv_lib_gen_dirname=no
7066fi
7067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068LIBS=$ac_check_lib_save_LIBS
7069fi
7070echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7071echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7072if test $ac_cv_lib_gen_dirname = yes; then
7073
7074 echo "$as_me:$LINENO: checking for broken dirname" >&5
7075echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7076if test "${ac_cv_have_broken_dirname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079
7080 save_LIBS="$LIBS"
7081 LIBS="$LIBS -lgen"
7082 if test "$cross_compiling" = yes; then
7083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7084echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7085 { (exit 1); exit 1; }; }
7086else
7087 cat >conftest.$ac_ext <<_ACEOF
7088#line $LINENO "configure"
7089#include "confdefs.h"
7090
7091#include <libgen.h>
7092#include <string.h>
7093
7094int main(int argc, char **argv) {
7095 char *s, buf[32];
7096
7097 strncpy(buf,"/etc", 32);
7098 s = dirname(buf);
7099 if (!s || strncmp(s, "/", 32) != 0) {
7100 exit(1);
7101 } else {
7102 exit(0);
7103 }
7104}
7105
7106_ACEOF
7107rm -f conftest$ac_exeext
7108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_have_broken_dirname="no"
7119else
7120 echo "$as_me: program exited with status $ac_status" >&5
7121echo "$as_me: failed program was:" >&5
7122cat conftest.$ac_ext >&5
7123( exit $ac_status )
7124 ac_cv_have_broken_dirname="yes"
7125
7126fi
7127rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7128fi
7129 LIBS="$save_LIBS"
7130
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7133echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7134 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7135 LIBS="$LIBS -lgen"
7136 cat >>confdefs.h <<\_ACEOF
7137#define HAVE_DIRNAME 1
7138_ACEOF
7139
7140
7141for ac_header in libgen.h
7142do
7143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo "$as_me:$LINENO: checking for $ac_header" >&5
7146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7147if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149fi
7150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7152else
7153 # Is the header compilable?
7154echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157#line $LINENO "configure"
7158#include "confdefs.h"
7159$ac_includes_default
7160#include <$ac_header>
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest.$ac_objext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_header_compiler=yes
7175else
7176 echo "$as_me: failed program was:" >&5
7177cat conftest.$ac_ext >&5
7178ac_header_compiler=no
7179fi
7180rm -f conftest.$ac_objext conftest.$ac_ext
7181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182echo "${ECHO_T}$ac_header_compiler" >&6
7183
7184# Is the header present?
7185echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187cat >conftest.$ac_ext <<_ACEOF
7188#line $LINENO "configure"
7189#include "confdefs.h"
7190#include <$ac_header>
7191_ACEOF
7192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
7195 egrep -v '^ *\+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
7202 else
7203 ac_cpp_err=
7204 fi
7205else
7206 ac_cpp_err=yes
7207fi
7208if test -z "$ac_cpp_err"; then
7209 ac_header_preproc=yes
7210else
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_header_preproc=no
7214fi
7215rm -f conftest.err conftest.$ac_ext
7216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217echo "${ECHO_T}$ac_header_preproc" >&6
7218
7219# So? What about this header?
7220case $ac_header_compiler:$ac_header_preproc in
7221 yes:no )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7226 no:yes )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7233esac
7234echo "$as_me:$LINENO: checking for $ac_header" >&5
7235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7236if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 eval "$as_ac_Header=$ac_header_preproc"
7240fi
7241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243
7244fi
7245if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248_ACEOF
7249
7250fi
7251
7252done
7253
7254 fi
7255
7256fi
7257
7258
7259fi
7260done
7261
7262
7263
7264
7265for ac_func in gettimeofday time
7266do
7267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7268echo "$as_me:$LINENO: checking for $ac_func" >&5
7269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7270if eval "test \"\${$as_ac_var+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 cat >conftest.$ac_ext <<_ACEOF
7274#line $LINENO "configure"
7275#include "confdefs.h"
7276/* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func (); below. */
7278#include <assert.h>
7279/* Override any gcc2 internal prototype to avoid an error. */
7280#ifdef __cplusplus
7281extern "C"
7282#endif
7283/* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7285char $ac_func ();
7286char (*f) ();
7287
7288#ifdef F77_DUMMY_MAIN
7289# ifdef __cplusplus
7290 extern "C"
7291# endif
7292 int F77_DUMMY_MAIN() { return 1; }
7293#endif
7294int
7295main ()
7296{
7297/* The GNU C library defines this for functions which it implements
7298 to always fail with ENOSYS. Some functions are actually named
7299 something starting with __ and the normal name is an alias. */
7300#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7301choke me
7302#else
7303f = $ac_func;
7304#endif
7305
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310rm -f conftest.$ac_objext conftest$ac_exeext
7311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7323else
7324 echo "$as_me: failed program was:" >&5
7325cat conftest.$ac_ext >&5
7326eval "$as_ac_var=no"
7327fi
7328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7329fi
7330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7332if test `eval echo '${'$as_ac_var'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7335_ACEOF
7336
7337fi
7338done
7339
7340
7341
7342
7343
7344
7345
7346for ac_func in endutent getutent getutid getutline pututline setutent
7347do
7348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349echo "$as_me:$LINENO: checking for $ac_func" >&5
7350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7351if eval "test \"\${$as_ac_var+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 cat >conftest.$ac_ext <<_ACEOF
7355#line $LINENO "configure"
7356#include "confdefs.h"
7357/* System header to define __stub macros and hopefully few prototypes,
7358 which can conflict with char $ac_func (); below. */
7359#include <assert.h>
7360/* Override any gcc2 internal prototype to avoid an error. */
7361#ifdef __cplusplus
7362extern "C"
7363#endif
7364/* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366char $ac_func ();
7367char (*f) ();
7368
7369#ifdef F77_DUMMY_MAIN
7370# ifdef __cplusplus
7371 extern "C"
7372# endif
7373 int F77_DUMMY_MAIN() { return 1; }
7374#endif
7375int
7376main ()
7377{
7378/* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7382choke me
7383#else
7384f = $ac_func;
7385#endif
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext conftest$ac_exeext
7392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7404else
7405 echo "$as_me: failed program was:" >&5
7406cat conftest.$ac_ext >&5
7407eval "$as_ac_var=no"
7408fi
7409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410fi
7411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7413if test `eval echo '${'$as_ac_var'}'` = yes; then
7414 cat >>confdefs.h <<_ACEOF
7415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7416_ACEOF
7417
7418fi
7419done
7420
7421
7422for ac_func in utmpname
7423do
7424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425echo "$as_me:$LINENO: checking for $ac_func" >&5
7426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7427if eval "test \"\${$as_ac_var+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 cat >conftest.$ac_ext <<_ACEOF
7431#line $LINENO "configure"
7432#include "confdefs.h"
7433/* System header to define __stub macros and hopefully few prototypes,
7434 which can conflict with char $ac_func (); below. */
7435#include <assert.h>
7436/* Override any gcc2 internal prototype to avoid an error. */
7437#ifdef __cplusplus
7438extern "C"
7439#endif
7440/* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7442char $ac_func ();
7443char (*f) ();
7444
7445#ifdef F77_DUMMY_MAIN
7446# ifdef __cplusplus
7447 extern "C"
7448# endif
7449 int F77_DUMMY_MAIN() { return 1; }
7450#endif
7451int
7452main ()
7453{
7454/* The GNU C library defines this for functions which it implements
7455 to always fail with ENOSYS. Some functions are actually named
7456 something starting with __ and the normal name is an alias. */
7457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7458choke me
7459#else
7460f = $ac_func;
7461#endif
7462
7463 ;
7464 return 0;
7465}
7466_ACEOF
7467rm -f conftest.$ac_objext conftest$ac_exeext
7468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 eval "$as_ac_var=yes"
7480else
7481 echo "$as_me: failed program was:" >&5
7482cat conftest.$ac_ext >&5
7483eval "$as_ac_var=no"
7484fi
7485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486fi
7487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7489if test `eval echo '${'$as_ac_var'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7492_ACEOF
7493
7494fi
7495done
7496
7497
7498
7499
7500
7501
7502for ac_func in endutxent getutxent getutxid getutxline pututxline
7503do
7504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505echo "$as_me:$LINENO: checking for $ac_func" >&5
7506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7507if eval "test \"\${$as_ac_var+set}\" = set"; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 cat >conftest.$ac_ext <<_ACEOF
7511#line $LINENO "configure"
7512#include "confdefs.h"
7513/* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char $ac_func (); below. */
7515#include <assert.h>
7516/* Override any gcc2 internal prototype to avoid an error. */
7517#ifdef __cplusplus
7518extern "C"
7519#endif
7520/* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7522char $ac_func ();
7523char (*f) ();
7524
7525#ifdef F77_DUMMY_MAIN
7526# ifdef __cplusplus
7527 extern "C"
7528# endif
7529 int F77_DUMMY_MAIN() { return 1; }
7530#endif
7531int
7532main ()
7533{
7534/* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7538choke me
7539#else
7540f = $ac_func;
7541#endif
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 eval "$as_ac_var=yes"
7560else
7561 echo "$as_me: failed program was:" >&5
7562cat conftest.$ac_ext >&5
7563eval "$as_ac_var=no"
7564fi
7565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7566fi
7567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7569if test `eval echo '${'$as_ac_var'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575done
7576
7577
7578
7579for ac_func in setutxent utmpxname
7580do
7581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7582echo "$as_me:$LINENO: checking for $ac_func" >&5
7583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7584if eval "test \"\${$as_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 cat >conftest.$ac_ext <<_ACEOF
7588#line $LINENO "configure"
7589#include "confdefs.h"
7590/* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func (); below. */
7592#include <assert.h>
7593/* Override any gcc2 internal prototype to avoid an error. */
7594#ifdef __cplusplus
7595extern "C"
7596#endif
7597/* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7599char $ac_func ();
7600char (*f) ();
7601
7602#ifdef F77_DUMMY_MAIN
7603# ifdef __cplusplus
7604 extern "C"
7605# endif
7606 int F77_DUMMY_MAIN() { return 1; }
7607#endif
7608int
7609main ()
7610{
7611/* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7615choke me
7616#else
7617f = $ac_func;
7618#endif
7619
7620 ;
7621 return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext conftest$ac_exeext
7625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 eval "$as_ac_var=yes"
7637else
7638 echo "$as_me: failed program was:" >&5
7639cat conftest.$ac_ext >&5
7640eval "$as_ac_var=no"
7641fi
7642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643fi
7644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7646if test `eval echo '${'$as_ac_var'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652done
7653
7654
7655echo "$as_me:$LINENO: checking for daemon" >&5
7656echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7657if test "${ac_cv_func_daemon+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 cat >conftest.$ac_ext <<_ACEOF
7661#line $LINENO "configure"
7662#include "confdefs.h"
7663/* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char daemon (); below. */
7665#include <assert.h>
7666/* Override any gcc2 internal prototype to avoid an error. */
7667#ifdef __cplusplus
7668extern "C"
7669#endif
7670/* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672char daemon ();
7673char (*f) ();
7674
7675#ifdef F77_DUMMY_MAIN
7676# ifdef __cplusplus
7677 extern "C"
7678# endif
7679 int F77_DUMMY_MAIN() { return 1; }
7680#endif
7681int
7682main ()
7683{
7684/* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687#if defined (__stub_daemon) || defined (__stub___daemon)
7688choke me
7689#else
7690f = daemon;
7691#endif
7692
7693 ;
7694 return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext conftest$ac_exeext
7698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_func_daemon=yes
7710else
7711 echo "$as_me: failed program was:" >&5
7712cat conftest.$ac_ext >&5
7713ac_cv_func_daemon=no
7714fi
7715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716fi
7717echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7718echo "${ECHO_T}$ac_cv_func_daemon" >&6
7719if test $ac_cv_func_daemon = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721#define HAVE_DAEMON 1
7722_ACEOF
7723
7724else
7725 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7726echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7727if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 ac_check_lib_save_LIBS=$LIBS
7731LIBS="-lbsd $LIBS"
7732cat >conftest.$ac_ext <<_ACEOF
7733#line $LINENO "configure"
7734#include "confdefs.h"
7735
7736/* Override any gcc2 internal prototype to avoid an error. */
7737#ifdef __cplusplus
7738extern "C"
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char daemon ();
7743#ifdef F77_DUMMY_MAIN
7744# ifdef __cplusplus
7745 extern "C"
7746# endif
7747 int F77_DUMMY_MAIN() { return 1; }
7748#endif
7749int
7750main ()
7751{
7752daemon ();
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_lib_bsd_daemon=yes
7770else
7771 echo "$as_me: failed program was:" >&5
7772cat conftest.$ac_ext >&5
7773ac_cv_lib_bsd_daemon=no
7774fi
7775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776LIBS=$ac_check_lib_save_LIBS
7777fi
7778echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7779echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7780if test $ac_cv_lib_bsd_daemon = yes; then
7781 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7782#define HAVE_DAEMON 1
7783_ACEOF
7784
7785fi
7786
7787
7788fi
7789
7790
7791echo "$as_me:$LINENO: checking for getpagesize" >&5
7792echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7793if test "${ac_cv_func_getpagesize+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797#line $LINENO "configure"
7798#include "confdefs.h"
7799/* System header to define __stub macros and hopefully few prototypes,
7800 which can conflict with char getpagesize (); below. */
7801#include <assert.h>
7802/* Override any gcc2 internal prototype to avoid an error. */
7803#ifdef __cplusplus
7804extern "C"
7805#endif
7806/* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808char getpagesize ();
7809char (*f) ();
7810
7811#ifdef F77_DUMMY_MAIN
7812# ifdef __cplusplus
7813 extern "C"
7814# endif
7815 int F77_DUMMY_MAIN() { return 1; }
7816#endif
7817int
7818main ()
7819{
7820/* The GNU C library defines this for functions which it implements
7821 to always fail with ENOSYS. Some functions are actually named
7822 something starting with __ and the normal name is an alias. */
7823#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
7824choke me
7825#else
7826f = getpagesize;
7827#endif
7828
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_getpagesize=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848cat conftest.$ac_ext >&5
7849ac_cv_func_getpagesize=no
7850fi
7851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7852fi
7853echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7854echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7855if test $ac_cv_func_getpagesize = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857#define HAVE_GETPAGESIZE 1
7858_ACEOF
7859
7860else
7861 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7862echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7863if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lucb $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
7870#include "confdefs.h"
7871
7872/* Override any gcc2 internal prototype to avoid an error. */
7873#ifdef __cplusplus
7874extern "C"
7875#endif
7876/* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878char getpagesize ();
7879#ifdef F77_DUMMY_MAIN
7880# ifdef __cplusplus
7881 extern "C"
7882# endif
7883 int F77_DUMMY_MAIN() { return 1; }
7884#endif
7885int
7886main ()
7887{
7888getpagesize ();
7889 ;
7890 return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext conftest$ac_exeext
7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_ucb_getpagesize=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908cat conftest.$ac_ext >&5
7909ac_cv_lib_ucb_getpagesize=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7915echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7916if test $ac_cv_lib_ucb_getpagesize = yes; then
7917 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7918#define HAVE_GETPAGESIZE 1
7919_ACEOF
7920
7921fi
7922
7923
7924fi
7925
7926
7927# Check for broken snprintf
7928if test "x$ac_cv_func_snprintf" = "xyes" ; then
7929 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7930echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
7931 if test "$cross_compiling" = yes; then
7932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7933echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7934 { (exit 1); exit 1; }; }
7935else
7936 cat >conftest.$ac_ext <<_ACEOF
7937#line $LINENO "configure"
7938#include "confdefs.h"
7939
7940#include <stdio.h>
7941int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
7942
7943_ACEOF
7944rm -f conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
7957else
7958 echo "$as_me: program exited with status $ac_status" >&5
7959echo "$as_me: failed program was:" >&5
7960cat conftest.$ac_ext >&5
7961( exit $ac_status )
7962
7963 echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
7965 cat >>confdefs.h <<\_ACEOF
7966#define BROKEN_SNPRINTF 1
7967_ACEOF
7968
7969 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7970echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7971
7972
7973fi
7974rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975fi
7976fi
7977
7978echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7979echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7980if test "${ac_cv_func_getpgrp_void+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 # Use it with a single arg.
7984cat >conftest.$ac_ext <<_ACEOF
7985#line $LINENO "configure"
7986#include "confdefs.h"
7987$ac_includes_default
7988#ifdef F77_DUMMY_MAIN
7989# ifdef __cplusplus
7990 extern "C"
7991# endif
7992 int F77_DUMMY_MAIN() { return 1; }
7993#endif
7994int
7995main ()
7996{
7997getpgrp (0);
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_func_getpgrp_void=no
8015else
8016 echo "$as_me: failed program was:" >&5
8017cat conftest.$ac_ext >&5
8018ac_cv_func_getpgrp_void=yes
8019fi
8020rm -f conftest.$ac_objext conftest.$ac_ext
8021
8022fi
8023echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8024echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8025if test $ac_cv_func_getpgrp_void = yes; then
8026
8027cat >>confdefs.h <<\_ACEOF
8028#define GETPGRP_VOID 1
8029_ACEOF
8030
8031fi
8032
8033
8034# Check for PAM libs
8035PAM_MSG="no"
8036
8037# Check whether --with-pam or --without-pam was given.
8038if test "${with_pam+set}" = set; then
8039 withval="$with_pam"
8040
8041 if test "x$withval" != "xno" ; then
8042 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
8043 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
8044echo "$as_me: error: PAM headers not found" >&2;}
8045 { (exit 1); exit 1; }; }
8046 fi
8047
8048
8049echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 ac_check_lib_save_LIBS=$LIBS
8055LIBS="-ldl $LIBS"
8056cat >conftest.$ac_ext <<_ACEOF
8057#line $LINENO "configure"
8058#include "confdefs.h"
8059
8060/* Override any gcc2 internal prototype to avoid an error. */
8061#ifdef __cplusplus
8062extern "C"
8063#endif
8064/* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8066char dlopen ();
8067#ifdef F77_DUMMY_MAIN
8068# ifdef __cplusplus
8069 extern "C"
8070# endif
8071 int F77_DUMMY_MAIN() { return 1; }
8072#endif
8073int
8074main ()
8075{
8076dlopen ();
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_dl_dlopen=yes
8094else
8095 echo "$as_me: failed program was:" >&5
8096cat conftest.$ac_ext >&5
8097ac_cv_lib_dl_dlopen=no
8098fi
8099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100LIBS=$ac_check_lib_save_LIBS
8101fi
8102echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8103echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8104if test $ac_cv_lib_dl_dlopen = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106#define HAVE_LIBDL 1
8107_ACEOF
8108
8109 LIBS="-ldl $LIBS"
8110
8111fi
8112
8113
8114echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
8115echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8116if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 ac_check_lib_save_LIBS=$LIBS
8120LIBS="-lpam $LIBS"
8121cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
8123#include "confdefs.h"
8124
8125/* Override any gcc2 internal prototype to avoid an error. */
8126#ifdef __cplusplus
8127extern "C"
8128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char pam_set_item ();
8132#ifdef F77_DUMMY_MAIN
8133# ifdef __cplusplus
8134 extern "C"
8135# endif
8136 int F77_DUMMY_MAIN() { return 1; }
8137#endif
8138int
8139main ()
8140{
8141pam_set_item ();
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext conftest$ac_exeext
8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_lib_pam_pam_set_item=yes
8159else
8160 echo "$as_me: failed program was:" >&5
8161cat conftest.$ac_ext >&5
8162ac_cv_lib_pam_pam_set_item=no
8163fi
8164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165LIBS=$ac_check_lib_save_LIBS
8166fi
8167echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
8168echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8169if test $ac_cv_lib_pam_pam_set_item = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171#define HAVE_LIBPAM 1
8172_ACEOF
8173
8174 LIBS="-lpam $LIBS"
8175
8176else
8177 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8178echo "$as_me: error: *** libpam missing" >&2;}
8179 { (exit 1); exit 1; }; }
8180fi
8181
8182
8183for ac_func in pam_getenvlist
8184do
8185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186echo "$as_me:$LINENO: checking for $ac_func" >&5
8187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8188if eval "test \"\${$as_ac_var+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 cat >conftest.$ac_ext <<_ACEOF
8192#line $LINENO "configure"
8193#include "confdefs.h"
8194/* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func (); below. */
8196#include <assert.h>
8197/* Override any gcc2 internal prototype to avoid an error. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201/* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203char $ac_func ();
8204char (*f) ();
8205
8206#ifdef F77_DUMMY_MAIN
8207# ifdef __cplusplus
8208 extern "C"
8209# endif
8210 int F77_DUMMY_MAIN() { return 1; }
8211#endif
8212int
8213main ()
8214{
8215/* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219choke me
8220#else
8221f = $ac_func;
8222#endif
8223
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 eval "$as_ac_var=yes"
8241else
8242 echo "$as_me: failed program was:" >&5
8243cat conftest.$ac_ext >&5
8244eval "$as_ac_var=no"
8245fi
8246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247fi
8248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8250if test `eval echo '${'$as_ac_var'}'` = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8253_ACEOF
8254
8255fi
8256done
8257
8258
8259 disable_shadow=yes
8260 PAM_MSG="yes"
8261
8262 cat >>confdefs.h <<\_ACEOF
8263#define USE_PAM 1
8264_ACEOF
8265
8266 if test $ac_cv_lib_dl_dlopen = yes; then
8267 LIBPAM="-lpam -ldl"
8268 else
8269 LIBPAM="-lpam"
8270 fi
8271
8272 fi
8273
8274
8275fi;
8276
8277# Check for older PAM
8278if test "x$PAM_MSG" = "xyes" ; then
8279 # Check PAM strerror arguments (old PAM)
8280 echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
8281echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8283#line $LINENO "configure"
8284#include "confdefs.h"
8285
8286#include <stdlib.h>
8287#include <security/pam_appl.h>
8288
8289#ifdef F77_DUMMY_MAIN
8290# ifdef __cplusplus
8291 extern "C"
8292# endif
8293 int F77_DUMMY_MAIN() { return 1; }
8294#endif
8295int
8296main ()
8297{
8298(void)pam_strerror((pam_handle_t *)NULL, -1);
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext
8304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317else
8318 echo "$as_me: failed program was:" >&5
8319cat conftest.$ac_ext >&5
8320
8321 cat >>confdefs.h <<\_ACEOF
8322#define HAVE_OLD_PAM 1
8323_ACEOF
8324
8325 echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327 PAM_MSG="yes (old library)"
8328
8329
8330fi
8331rm -f conftest.$ac_objext conftest.$ac_ext
8332fi
8333
8334# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8335# because the system crypt() is more featureful.
8336if test "x$check_for_libcrypt_before" = "x1"; then
8337
8338echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8339echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8340if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343 ac_check_lib_save_LIBS=$LIBS
8344LIBS="-lcrypt $LIBS"
8345cat >conftest.$ac_ext <<_ACEOF
8346#line $LINENO "configure"
8347#include "confdefs.h"
8348
8349/* Override any gcc2 internal prototype to avoid an error. */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353/* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8355char crypt ();
8356#ifdef F77_DUMMY_MAIN
8357# ifdef __cplusplus
8358 extern "C"
8359# endif
8360 int F77_DUMMY_MAIN() { return 1; }
8361#endif
8362int
8363main ()
8364{
8365crypt ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_crypt_crypt=yes
8383else
8384 echo "$as_me: failed program was:" >&5
8385cat conftest.$ac_ext >&5
8386ac_cv_lib_crypt_crypt=no
8387fi
8388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8392echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8393if test $ac_cv_lib_crypt_crypt = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395#define HAVE_LIBCRYPT 1
8396_ACEOF
8397
8398 LIBS="-lcrypt $LIBS"
8399
8400fi
8401
8402fi
8403
8404# Search for OpenSSL
8405saved_CPPFLAGS="$CPPFLAGS"
8406saved_LDFLAGS="$LDFLAGS"
8407
8408# Check whether --with-ssl-dir or --without-ssl-dir was given.
8409if test "${with_ssl_dir+set}" = set; then
8410 withval="$with_ssl_dir"
8411
8412 if test "x$withval" != "xno" ; then
8413 if test -d "$withval/lib"; then
8414 if test -n "${need_dash_r}"; then
8415 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8416 else
8417 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8418 fi
8419 else
8420 if test -n "${need_dash_r}"; then
8421 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8422 else
8423 LDFLAGS="-L${withval} ${LDFLAGS}"
8424 fi
8425 fi
8426 if test -d "$withval/include"; then
8427 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8428 else
8429 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8430 fi
8431 fi
8432
8433
8434fi;
8435LIBS="$LIBS -lcrypto"
8436cat >conftest.$ac_ext <<_ACEOF
8437#line $LINENO "configure"
8438#include "confdefs.h"
8439
8440/* Override any gcc2 internal prototype to avoid an error. */
8441#ifdef __cplusplus
8442extern "C"
8443#endif
8444/* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446char RAND_add ();
8447#ifdef F77_DUMMY_MAIN
8448# ifdef __cplusplus
8449 extern "C"
8450# endif
8451 int F77_DUMMY_MAIN() { return 1; }
8452#endif
8453int
8454main ()
8455{
8456RAND_add ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 cat >>confdefs.h <<\_ACEOF
8474#define HAVE_OPENSSL 1
8475_ACEOF
8476
8477else
8478 echo "$as_me: failed program was:" >&5
8479cat conftest.$ac_ext >&5
8480
8481 if test -n "${need_dash_r}"; then
8482 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8483 else
8484 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8485 fi
8486 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8487 cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
8489#include "confdefs.h"
8490
8491/* Override any gcc2 internal prototype to avoid an error. */
8492#ifdef __cplusplus
8493extern "C"
8494#endif
8495/* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497char RAND_add ();
8498#ifdef F77_DUMMY_MAIN
8499# ifdef __cplusplus
8500 extern "C"
8501# endif
8502 int F77_DUMMY_MAIN() { return 1; }
8503#endif
8504int
8505main ()
8506{
8507RAND_add ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 cat >>confdefs.h <<\_ACEOF
8525#define HAVE_OPENSSL 1
8526_ACEOF
8527
8528else
8529 echo "$as_me: failed program was:" >&5
8530cat conftest.$ac_ext >&5
8531
8532 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8533echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8534 { (exit 1); exit 1; }; }
8535
8536
8537fi
8538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539
8540
8541fi
8542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8543
8544# Determine OpenSSL header version
8545echo "$as_me:$LINENO: checking OpenSSL header version" >&5
8546echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8547if test "$cross_compiling" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8549echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8550 { (exit 1); exit 1; }; }
8551else
8552 cat >conftest.$ac_ext <<_ACEOF
8553#line $LINENO "configure"
8554#include "confdefs.h"
8555
8556#include <stdio.h>
8557#include <string.h>
8558#include <openssl/opensslv.h>
8559#define DATA "conftest.sslincver"
8560int main(void) {
8561 FILE *fd;
8562 int rc;
8563
8564 fd = fopen(DATA,"w");
8565 if(fd == NULL)
8566 exit(1);
8567
8568 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8569 exit(1);
8570
8571 exit(0);
8572}
8573
8574_ACEOF
8575rm -f conftest$ac_exeext
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586
8587 ssl_header_ver=`cat conftest.sslincver`
8588 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
8589echo "${ECHO_T}$ssl_header_ver" >&6
8590
8591else
8592 echo "$as_me: program exited with status $ac_status" >&5
8593echo "$as_me: failed program was:" >&5
8594cat conftest.$ac_ext >&5
8595( exit $ac_status )
8596
8597 echo "$as_me:$LINENO: result: not found" >&5
8598echo "${ECHO_T}not found" >&6
8599 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
8600echo "$as_me: error: OpenSSL version header not found." >&2;}
8601 { (exit 1); exit 1; }; }
8602
8603
8604fi
8605rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8606fi
8607
8608# Determine OpenSSL library version
8609echo "$as_me:$LINENO: checking OpenSSL library version" >&5
8610echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8611if test "$cross_compiling" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8613echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8614 { (exit 1); exit 1; }; }
8615else
8616 cat >conftest.$ac_ext <<_ACEOF
8617#line $LINENO "configure"
8618#include "confdefs.h"
8619
8620#include <stdio.h>
8621#include <string.h>
8622#include <openssl/opensslv.h>
8623#include <openssl/crypto.h>
8624#define DATA "conftest.ssllibver"
8625int main(void) {
8626 FILE *fd;
8627 int rc;
8628
8629 fd = fopen(DATA,"w");
8630 if(fd == NULL)
8631 exit(1);
8632
8633 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
8634 exit(1);
8635
8636 exit(0);
8637}
8638
8639_ACEOF
8640rm -f conftest$ac_exeext
8641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651
8652 ssl_library_ver=`cat conftest.ssllibver`
8653 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
8654echo "${ECHO_T}$ssl_library_ver" >&6
8655
8656else
8657 echo "$as_me: program exited with status $ac_status" >&5
8658echo "$as_me: failed program was:" >&5
8659cat conftest.$ac_ext >&5
8660( exit $ac_status )
8661
8662 echo "$as_me:$LINENO: result: not found" >&5
8663echo "${ECHO_T}not found" >&6
8664 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
8665echo "$as_me: error: OpenSSL library not found." >&2;}
8666 { (exit 1); exit 1; }; }
8667
8668
8669fi
8670rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8671fi
8672
8673# Sanity check OpenSSL headers
8674echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8675echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8676if test "$cross_compiling" = yes; then
8677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8678echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8679 { (exit 1); exit 1; }; }
8680else
8681 cat >conftest.$ac_ext <<_ACEOF
8682#line $LINENO "configure"
8683#include "confdefs.h"
8684
8685#include <string.h>
8686#include <openssl/opensslv.h>
8687int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8688
8689_ACEOF
8690rm -f conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701
8702 echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704
8705else
8706 echo "$as_me: program exited with status $ac_status" >&5
8707echo "$as_me: failed program was:" >&5
8708cat conftest.$ac_ext >&5
8709( exit $ac_status )
8710
8711 echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
8713 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8714echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8715 { (exit 1); exit 1; }; }
8716
8717
8718fi
8719rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8720fi
8721
8722# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8723# version in OpenSSL. Skip this for PAM
8724if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8725 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8726echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8727if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 ac_check_lib_save_LIBS=$LIBS
8731LIBS="-lcrypt $LIBS"
8732cat >conftest.$ac_ext <<_ACEOF
8733#line $LINENO "configure"
8734#include "confdefs.h"
8735
8736/* Override any gcc2 internal prototype to avoid an error. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742char crypt ();
8743#ifdef F77_DUMMY_MAIN
8744# ifdef __cplusplus
8745 extern "C"
8746# endif
8747 int F77_DUMMY_MAIN() { return 1; }
8748#endif
8749int
8750main ()
8751{
8752crypt ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_crypt_crypt=yes
8770else
8771 echo "$as_me: failed program was:" >&5
8772cat conftest.$ac_ext >&5
8773ac_cv_lib_crypt_crypt=no
8774fi
8775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776LIBS=$ac_check_lib_save_LIBS
8777fi
8778echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8779echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8780if test $ac_cv_lib_crypt_crypt = yes; then
8781 LIBS="$LIBS -lcrypt"
8782fi
8783
8784fi
8785
8786
8787### Configure cryptographic random number support
8788
8789# Check wheter OpenSSL seeds itself
8790echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8791echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8792if test "$cross_compiling" = yes; then
8793 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8794echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8795 { (exit 1); exit 1; }; }
8796else
8797 cat >conftest.$ac_ext <<_ACEOF
8798#line $LINENO "configure"
8799#include "confdefs.h"
8800
8801#include <string.h>
8802#include <openssl/rand.h>
8803int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
8804
8805_ACEOF
8806rm -f conftest$ac_exeext
8807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817
8818 OPENSSL_SEEDS_ITSELF=yes
8819 echo "$as_me:$LINENO: result: yes" >&5
8820echo "${ECHO_T}yes" >&6
8821
8822else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824echo "$as_me: failed program was:" >&5
8825cat conftest.$ac_ext >&5
8826( exit $ac_status )
8827
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830 # Default to use of the rand helper if OpenSSL doesn't
8831 # seed itself
8832 USE_RAND_HELPER=yes
8833
8834
8835fi
8836rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837fi
8838
8839
8840# Do we want to force the use of the rand helper?
8841
8842# Check whether --with-rand-helper or --without-rand-helper was given.
8843if test "${with_rand_helper+set}" = set; then
8844 withval="$with_rand_helper"
8845
8846 if test "x$withval" = "xno" ; then
8847 # Force use of OpenSSL's internal RNG, even if
8848 # the previous test showed it to be unseeded.
8849 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
8850 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
8851echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8852 OPENSSL_SEEDS_ITSELF=yes
8853 USE_RAND_HELPER=""
8854 fi
8855 else
8856 USE_RAND_HELPER=yes
8857 fi
8858
8859fi;
8860
8861# Which randomness source do we use?
8862if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8863 # OpenSSL only
8864 cat >>confdefs.h <<\_ACEOF
8865#define OPENSSL_PRNG_ONLY 1
8866_ACEOF
8867
8868 RAND_MSG="OpenSSL internal ONLY"
8869 INSTALL_SSH_RAND_HELPER=""
8870elif test ! -z "$USE_RAND_HELPER" ; then
8871 # install rand helper
8872 RAND_MSG="ssh-rand-helper"
8873 INSTALL_SSH_RAND_HELPER="yes"
8874fi
8875
8876
8877### Configuration of ssh-rand-helper
8878
8879# PRNGD TCP socket
8880
8881# Check whether --with-prngd-port or --without-prngd-port was given.
8882if test "${with_prngd_port+set}" = set; then
8883 withval="$with_prngd_port"
8884
8885 case "$withval" in
8886 no)
8887 withval=""
8888 ;;
8889 [0-9]*)
8890 ;;
8891 *)
8892 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8893echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8894 { (exit 1); exit 1; }; }
8895 ;;
8896 esac
8897 if test ! -z "$withval" ; then
8898 PRNGD_PORT="$withval"
8899 cat >>confdefs.h <<_ACEOF
8900#define PRNGD_PORT $PRNGD_PORT
8901_ACEOF
8902
8903 fi
8904
8905
8906fi;
8907
8908# PRNGD Unix domain socket
8909
8910# Check whether --with-prngd-socket or --without-prngd-socket was given.
8911if test "${with_prngd_socket+set}" = set; then
8912 withval="$with_prngd_socket"
8913
8914 case "$withval" in
8915 yes)
8916 withval="/var/run/egd-pool"
8917 ;;
8918 no)
8919 withval=""
8920 ;;
8921 /*)
8922 ;;
8923 *)
8924 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8925echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8926 { (exit 1); exit 1; }; }
8927 ;;
8928 esac
8929
8930 if test ! -z "$withval" ; then
8931 if test ! -z "$PRNGD_PORT" ; then
8932 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
8933echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8934 { (exit 1); exit 1; }; }
8935 fi
8936 if test ! -r "$withval" ; then
8937 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8938echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8939 fi
8940 PRNGD_SOCKET="$withval"
8941 cat >>confdefs.h <<_ACEOF
8942#define PRNGD_SOCKET "$PRNGD_SOCKET"
8943_ACEOF
8944
8945 fi
8946
8947else
8948
8949 # Check for existing socket only if we don't have a random device already
8950 if test "$USE_RAND_HELPER" = yes ; then
8951 echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
8952echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6
8953 # Insert other locations here
8954 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
8955 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
8956 PRNGD_SOCKET="$sock"
8957 cat >>confdefs.h <<_ACEOF
8958#define PRNGD_SOCKET "$PRNGD_SOCKET"
8959_ACEOF
8960
8961 break;
8962 fi
8963 done
8964 if test ! -z "$PRNGD_SOCKET" ; then
8965 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8966echo "${ECHO_T}$PRNGD_SOCKET" >&6
8967 else
8968 echo "$as_me:$LINENO: result: not found" >&5
8969echo "${ECHO_T}not found" >&6
8970 fi
8971 fi
8972
8973
8974fi;
8975
8976# Change default command timeout for hashing entropy source
8977entropy_timeout=200
8978
8979# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8980if test "${with_entropy_timeout+set}" = set; then
8981 withval="$with_entropy_timeout"
8982
8983 if test "x$withval" != "xno" ; then
8984 entropy_timeout=$withval
8985 fi
8986
8987
8988fi;
8989cat >>confdefs.h <<_ACEOF
8990#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8991_ACEOF
8992
8993
8994SSH_PRIVSEP_USER=sshd
8995
8996# Check whether --with-privsep-user or --without-privsep-user was given.
8997if test "${with_privsep_user+set}" = set; then
8998 withval="$with_privsep_user"
8999
9000 if test -n "$withval"; then
9001 SSH_PRIVSEP_USER=$withval
9002 fi
9003
9004
9005fi;
9006cat >>confdefs.h <<_ACEOF
9007#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
9008_ACEOF
9009
9010
9011
9012# We do this little dance with the search path to insure
9013# that programs that we select for use by installed programs
9014# (which may be run by the super-user) come from trusted
9015# locations before they come from the user's private area.
9016# This should help avoid accidentally configuring some
9017# random version of a program in someone's personal bin.
9018
9019OPATH=$PATH
9020PATH=/bin:/usr/bin
9021test -h /bin 2> /dev/null && PATH=/usr/bin
9022test -d /sbin && PATH=$PATH:/sbin
9023test -d /usr/sbin && PATH=$PATH:/usr/sbin
9024PATH=$PATH:/etc:$OPATH
9025
9026# These programs are used by the command hashing source to gather entropy
9027
9028 # Extract the first word of "ls", so it can be a program name with args.
9029set dummy ls; ac_word=$2
9030echo "$as_me:$LINENO: checking for $ac_word" >&5
9031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9032if test "${ac_cv_path_PROG_LS+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035 case $PROG_LS in
9036 [\\/]* | ?:[\\/]*)
9037 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9038 ;;
9039 *)
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
9048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9049 break 2
9050 fi
9051done
9052done
9053
9054 ;;
9055esac
9056fi
9057PROG_LS=$ac_cv_path_PROG_LS
9058
9059if test -n "$PROG_LS"; then
9060 echo "$as_me:$LINENO: result: $PROG_LS" >&5
9061echo "${ECHO_T}$PROG_LS" >&6
9062else
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
9065fi
9066
9067 if test -z "$PROG_LS" ; then
9068 PROG_LS="undef"
9069 fi
9070
9071
9072
9073 # Extract the first word of "netstat", so it can be a program name with args.
9074set dummy netstat; ac_word=$2
9075echo "$as_me:$LINENO: checking for $ac_word" >&5
9076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 case $PROG_NETSTAT in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097done
9098
9099 ;;
9100esac
9101fi
9102PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9103
9104if test -n "$PROG_NETSTAT"; then
9105 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
9106echo "${ECHO_T}$PROG_NETSTAT" >&6
9107else
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110fi
9111
9112 if test -z "$PROG_NETSTAT" ; then
9113 PROG_NETSTAT="undef"
9114 fi
9115
9116
9117
9118 # Extract the first word of "arp", so it can be a program name with args.
9119set dummy arp; ac_word=$2
9120echo "$as_me:$LINENO: checking for $ac_word" >&5
9121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122if test "${ac_cv_path_PROG_ARP+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 case $PROG_ARP in
9126 [\\/]* | ?:[\\/]*)
9127 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9128 ;;
9129 *)
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
9138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 break 2
9140 fi
9141done
9142done
9143
9144 ;;
9145esac
9146fi
9147PROG_ARP=$ac_cv_path_PROG_ARP
9148
9149if test -n "$PROG_ARP"; then
9150 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
9151echo "${ECHO_T}$PROG_ARP" >&6
9152else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155fi
9156
9157 if test -z "$PROG_ARP" ; then
9158 PROG_ARP="undef"
9159 fi
9160
9161
9162
9163 # Extract the first word of "ifconfig", so it can be a program name with args.
9164set dummy ifconfig; ac_word=$2
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170 case $PROG_IFCONFIG in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9173 ;;
9174 *)
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
9183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186done
9187done
9188
9189 ;;
9190esac
9191fi
9192PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9193
9194if test -n "$PROG_IFCONFIG"; then
9195 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
9196echo "${ECHO_T}$PROG_IFCONFIG" >&6
9197else
9198 echo "$as_me:$LINENO: result: no" >&5
9199echo "${ECHO_T}no" >&6
9200fi
9201
9202 if test -z "$PROG_IFCONFIG" ; then
9203 PROG_IFCONFIG="undef"
9204 fi
9205
9206
9207
9208 # Extract the first word of "jstat", so it can be a program name with args.
9209set dummy jstat; ac_word=$2
9210echo "$as_me:$LINENO: checking for $ac_word" >&5
9211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 case $PROG_JSTAT in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9218 ;;
9219 *)
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
9228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232done
9233
9234 ;;
9235esac
9236fi
9237PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9238
9239if test -n "$PROG_JSTAT"; then
9240 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
9241echo "${ECHO_T}$PROG_JSTAT" >&6
9242else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245fi
9246
9247 if test -z "$PROG_JSTAT" ; then
9248 PROG_JSTAT="undef"
9249 fi
9250
9251
9252
9253 # Extract the first word of "ps", so it can be a program name with args.
9254set dummy ps; ac_word=$2
9255echo "$as_me:$LINENO: checking for $ac_word" >&5
9256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9257if test "${ac_cv_path_PROG_PS+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 case $PROG_PS in
9261 [\\/]* | ?:[\\/]*)
9262 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9263 ;;
9264 *)
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266for as_dir in $PATH
9267do
9268 IFS=$as_save_IFS
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
9273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276done
9277done
9278
9279 ;;
9280esac
9281fi
9282PROG_PS=$ac_cv_path_PROG_PS
9283
9284if test -n "$PROG_PS"; then
9285 echo "$as_me:$LINENO: result: $PROG_PS" >&5
9286echo "${ECHO_T}$PROG_PS" >&6
9287else
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290fi
9291
9292 if test -z "$PROG_PS" ; then
9293 PROG_PS="undef"
9294 fi
9295
9296
9297
9298 # Extract the first word of "sar", so it can be a program name with args.
9299set dummy sar; ac_word=$2
9300echo "$as_me:$LINENO: checking for $ac_word" >&5
9301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302if test "${ac_cv_path_PROG_SAR+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 case $PROG_SAR in
9306 [\\/]* | ?:[\\/]*)
9307 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9308 ;;
9309 *)
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
9318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321done
9322done
9323
9324 ;;
9325esac
9326fi
9327PROG_SAR=$ac_cv_path_PROG_SAR
9328
9329if test -n "$PROG_SAR"; then
9330 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
9331echo "${ECHO_T}$PROG_SAR" >&6
9332else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335fi
9336
9337 if test -z "$PROG_SAR" ; then
9338 PROG_SAR="undef"
9339 fi
9340
9341
9342
9343 # Extract the first word of "w", so it can be a program name with args.
9344set dummy w; ac_word=$2
9345echo "$as_me:$LINENO: checking for $ac_word" >&5
9346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347if test "${ac_cv_path_PROG_W+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 case $PROG_W in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9353 ;;
9354 *)
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
9363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9365 fi
9366done
9367done
9368
9369 ;;
9370esac
9371fi
9372PROG_W=$ac_cv_path_PROG_W
9373
9374if test -n "$PROG_W"; then
9375 echo "$as_me:$LINENO: result: $PROG_W" >&5
9376echo "${ECHO_T}$PROG_W" >&6
9377else
9378 echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
9380fi
9381
9382 if test -z "$PROG_W" ; then
9383 PROG_W="undef"
9384 fi
9385
9386
9387
9388 # Extract the first word of "who", so it can be a program name with args.
9389set dummy who; ac_word=$2
9390echo "$as_me:$LINENO: checking for $ac_word" >&5
9391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392if test "${ac_cv_path_PROG_WHO+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 case $PROG_WHO in
9396 [\\/]* | ?:[\\/]*)
9397 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9398 ;;
9399 *)
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9407 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
9408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9410 fi
9411done
9412done
9413
9414 ;;
9415esac
9416fi
9417PROG_WHO=$ac_cv_path_PROG_WHO
9418
9419if test -n "$PROG_WHO"; then
9420 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9421echo "${ECHO_T}$PROG_WHO" >&6
9422else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425fi
9426
9427 if test -z "$PROG_WHO" ; then
9428 PROG_WHO="undef"
9429 fi
9430
9431
9432
9433 # Extract the first word of "last", so it can be a program name with args.
9434set dummy last; ac_word=$2
9435echo "$as_me:$LINENO: checking for $ac_word" >&5
9436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9437if test "${ac_cv_path_PROG_LAST+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 case $PROG_LAST in
9441 [\\/]* | ?:[\\/]*)
9442 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9443 ;;
9444 *)
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448 IFS=$as_save_IFS
9449 test -z "$as_dir" && as_dir=.
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
9453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456done
9457done
9458
9459 ;;
9460esac
9461fi
9462PROG_LAST=$ac_cv_path_PROG_LAST
9463
9464if test -n "$PROG_LAST"; then
9465 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9466echo "${ECHO_T}$PROG_LAST" >&6
9467else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470fi
9471
9472 if test -z "$PROG_LAST" ; then
9473 PROG_LAST="undef"
9474 fi
9475
9476
9477
9478 # Extract the first word of "lastlog", so it can be a program name with args.
9479set dummy lastlog; ac_word=$2
9480echo "$as_me:$LINENO: checking for $ac_word" >&5
9481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9482if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 case $PROG_LASTLOG in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9488 ;;
9489 *)
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502done
9503
9504 ;;
9505esac
9506fi
9507PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9508
9509if test -n "$PROG_LASTLOG"; then
9510 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9511echo "${ECHO_T}$PROG_LASTLOG" >&6
9512else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515fi
9516
9517 if test -z "$PROG_LASTLOG" ; then
9518 PROG_LASTLOG="undef"
9519 fi
9520
9521
9522
9523 # Extract the first word of "df", so it can be a program name with args.
9524set dummy df; ac_word=$2
9525echo "$as_me:$LINENO: checking for $ac_word" >&5
9526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9527if test "${ac_cv_path_PROG_DF+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530 case $PROG_DF in
9531 [\\/]* | ?:[\\/]*)
9532 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9533 ;;
9534 *)
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
9549 ;;
9550esac
9551fi
9552PROG_DF=$ac_cv_path_PROG_DF
9553
9554if test -n "$PROG_DF"; then
9555 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9556echo "${ECHO_T}$PROG_DF" >&6
9557else
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
9560fi
9561
9562 if test -z "$PROG_DF" ; then
9563 PROG_DF="undef"
9564 fi
9565
9566
9567
9568 # Extract the first word of "vmstat", so it can be a program name with args.
9569set dummy vmstat; ac_word=$2
9570echo "$as_me:$LINENO: checking for $ac_word" >&5
9571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9572if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 case $PROG_VMSTAT in
9576 [\\/]* | ?:[\\/]*)
9577 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9578 ;;
9579 *)
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
9588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591done
9592done
9593
9594 ;;
9595esac
9596fi
9597PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9598
9599if test -n "$PROG_VMSTAT"; then
9600 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9601echo "${ECHO_T}$PROG_VMSTAT" >&6
9602else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605fi
9606
9607 if test -z "$PROG_VMSTAT" ; then
9608 PROG_VMSTAT="undef"
9609 fi
9610
9611
9612
9613 # Extract the first word of "uptime", so it can be a program name with args.
9614set dummy uptime; ac_word=$2
9615echo "$as_me:$LINENO: checking for $ac_word" >&5
9616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9617if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620 case $PROG_UPTIME in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9623 ;;
9624 *)
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9635 fi
9636done
9637done
9638
9639 ;;
9640esac
9641fi
9642PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9643
9644if test -n "$PROG_UPTIME"; then
9645 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9646echo "${ECHO_T}$PROG_UPTIME" >&6
9647else
9648 echo "$as_me:$LINENO: result: no" >&5
9649echo "${ECHO_T}no" >&6
9650fi
9651
9652 if test -z "$PROG_UPTIME" ; then
9653 PROG_UPTIME="undef"
9654 fi
9655
9656
9657
9658 # Extract the first word of "ipcs", so it can be a program name with args.
9659set dummy ipcs; ac_word=$2
9660echo "$as_me:$LINENO: checking for $ac_word" >&5
9661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9662if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 case $PROG_IPCS in
9666 [\\/]* | ?:[\\/]*)
9667 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9668 ;;
9669 *)
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9677 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
9678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682done
9683
9684 ;;
9685esac
9686fi
9687PROG_IPCS=$ac_cv_path_PROG_IPCS
9688
9689if test -n "$PROG_IPCS"; then
9690 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9691echo "${ECHO_T}$PROG_IPCS" >&6
9692else
9693 echo "$as_me:$LINENO: result: no" >&5
9694echo "${ECHO_T}no" >&6
9695fi
9696
9697 if test -z "$PROG_IPCS" ; then
9698 PROG_IPCS="undef"
9699 fi
9700
9701
9702
9703 # Extract the first word of "tail", so it can be a program name with args.
9704set dummy tail; ac_word=$2
9705echo "$as_me:$LINENO: checking for $ac_word" >&5
9706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710 case $PROG_TAIL in
9711 [\\/]* | ?:[\\/]*)
9712 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9713 ;;
9714 *)
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716for as_dir in $PATH
9717do
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
9723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726done
9727done
9728
9729 ;;
9730esac
9731fi
9732PROG_TAIL=$ac_cv_path_PROG_TAIL
9733
9734if test -n "$PROG_TAIL"; then
9735 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9736echo "${ECHO_T}$PROG_TAIL" >&6
9737else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740fi
9741
9742 if test -z "$PROG_TAIL" ; then
9743 PROG_TAIL="undef"
9744 fi
9745
9746
9747# restore PATH
9748PATH=$OPATH
9749
9750# Where does ssh-rand-helper get its randomness from?
9751INSTALL_SSH_PRNG_CMDS=""
9752if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
9753 if test ! -z "$PRNGD_PORT" ; then
9754 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
9755 elif test ! -z "$PRNGD_SOCKET" ; then
9756 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
9757 else
9758 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9759 RAND_HELPER_CMDHASH=yes
9760 INSTALL_SSH_PRNG_CMDS="yes"
9761 fi
9762fi
9763
9764
9765
9766# Cheap hack to ensure NEWS-OS libraries are arranged right.
9767if test ! -z "$SONY" ; then
9768 LIBS="$LIBS -liberty";
9769fi
9770
9771# Checks for data types
9772echo "$as_me:$LINENO: checking for char" >&5
9773echo $ECHO_N "checking for char... $ECHO_C" >&6
9774if test "${ac_cv_type_char+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777 cat >conftest.$ac_ext <<_ACEOF
9778#line $LINENO "configure"
9779#include "confdefs.h"
9780$ac_includes_default
9781#ifdef F77_DUMMY_MAIN
9782# ifdef __cplusplus
9783 extern "C"
9784# endif
9785 int F77_DUMMY_MAIN() { return 1; }
9786#endif
9787int
9788main ()
9789{
9790if ((char *) 0)
9791 return 0;
9792if (sizeof (char))
9793 return 0;
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext
9799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_type_char=yes
9811else
9812 echo "$as_me: failed program was:" >&5
9813cat conftest.$ac_ext >&5
9814ac_cv_type_char=no
9815fi
9816rm -f conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9819echo "${ECHO_T}$ac_cv_type_char" >&6
9820
9821echo "$as_me:$LINENO: checking size of char" >&5
9822echo $ECHO_N "checking size of char... $ECHO_C" >&6
9823if test "${ac_cv_sizeof_char+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 if test "$ac_cv_type_char" = yes; then
9827 # The cast to unsigned long works around a bug in the HP C Compiler
9828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9830 # This bug is HP SR number 8606223364.
9831 if test "$cross_compiling" = yes; then
9832 # Depending upon the size, compute the lo and hi bounds.
9833cat >conftest.$ac_ext <<_ACEOF
9834#line $LINENO "configure"
9835#include "confdefs.h"
9836$ac_includes_default
9837#ifdef F77_DUMMY_MAIN
9838# ifdef __cplusplus
9839 extern "C"
9840# endif
9841 int F77_DUMMY_MAIN() { return 1; }
9842#endif
9843int
9844main ()
9845{
9846static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
9847test_array [0] = 0
9848
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext
9854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_lo=0 ac_mid=0
9866 while :; do
9867 cat >conftest.$ac_ext <<_ACEOF
9868#line $LINENO "configure"
9869#include "confdefs.h"
9870$ac_includes_default
9871#ifdef F77_DUMMY_MAIN
9872# ifdef __cplusplus
9873 extern "C"
9874# endif
9875 int F77_DUMMY_MAIN() { return 1; }
9876#endif
9877int
9878main ()
9879{
9880static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
9881test_array [0] = 0
9882
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext
9888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -s conftest.$ac_objext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 (eval $ac_try) 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_hi=$ac_mid; break
9900else
9901 echo "$as_me: failed program was:" >&5
9902cat conftest.$ac_ext >&5
9903ac_lo=`expr $ac_mid + 1`
9904 if test $ac_lo -le $ac_mid; then
9905 ac_lo= ac_hi=
9906 break
9907 fi
9908 ac_mid=`expr 2 '*' $ac_mid + 1`
9909fi
9910rm -f conftest.$ac_objext conftest.$ac_ext
9911 done
9912else
9913 echo "$as_me: failed program was:" >&5
9914cat conftest.$ac_ext >&5
9915cat >conftest.$ac_ext <<_ACEOF
9916#line $LINENO "configure"
9917#include "confdefs.h"
9918$ac_includes_default
9919#ifdef F77_DUMMY_MAIN
9920# ifdef __cplusplus
9921 extern "C"
9922# endif
9923 int F77_DUMMY_MAIN() { return 1; }
9924#endif
9925int
9926main ()
9927{
9928static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
9929test_array [0] = 0
9930
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_hi=-1 ac_mid=-1
9948 while :; do
9949 cat >conftest.$ac_ext <<_ACEOF
9950#line $LINENO "configure"
9951#include "confdefs.h"
9952$ac_includes_default
9953#ifdef F77_DUMMY_MAIN
9954# ifdef __cplusplus
9955 extern "C"
9956# endif
9957 int F77_DUMMY_MAIN() { return 1; }
9958#endif
9959int
9960main ()
9961{
9962static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
9963test_array [0] = 0
9964
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_lo=$ac_mid; break
9982else
9983 echo "$as_me: failed program was:" >&5
9984cat conftest.$ac_ext >&5
9985ac_hi=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9987 ac_lo= ac_hi=
9988 break
9989 fi
9990 ac_mid=`expr 2 '*' $ac_mid`
9991fi
9992rm -f conftest.$ac_objext conftest.$ac_ext
9993 done
9994else
9995 echo "$as_me: failed program was:" >&5
9996cat conftest.$ac_ext >&5
9997ac_lo= ac_hi=
9998fi
9999rm -f conftest.$ac_objext conftest.$ac_ext
10000fi
10001rm -f conftest.$ac_objext conftest.$ac_ext
10002# Binary search between lo and hi bounds.
10003while test "x$ac_lo" != "x$ac_hi"; do
10004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10005 cat >conftest.$ac_ext <<_ACEOF
10006#line $LINENO "configure"
10007#include "confdefs.h"
10008$ac_includes_default
10009#ifdef F77_DUMMY_MAIN
10010# ifdef __cplusplus
10011 extern "C"
10012# endif
10013 int F77_DUMMY_MAIN() { return 1; }
10014#endif
10015int
10016main ()
10017{
10018static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10019test_array [0] = 0
10020
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext
10026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -s conftest.$ac_objext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_hi=$ac_mid
10038else
10039 echo "$as_me: failed program was:" >&5
10040cat conftest.$ac_ext >&5
10041ac_lo=`expr '(' $ac_mid ')' + 1`
10042fi
10043rm -f conftest.$ac_objext conftest.$ac_ext
10044done
10045case $ac_lo in
10046?*) ac_cv_sizeof_char=$ac_lo;;
10047'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10048echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10049 { (exit 1); exit 1; }; } ;;
10050esac
10051else
10052 if test "$cross_compiling" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10054echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10055 { (exit 1); exit 1; }; }
10056else
10057 cat >conftest.$ac_ext <<_ACEOF
10058#line $LINENO "configure"
10059#include "confdefs.h"
10060$ac_includes_default
10061long longval () { return (long) (sizeof (char)); }
10062unsigned long ulongval () { return (long) (sizeof (char)); }
10063#include <stdio.h>
10064#include <stdlib.h>
10065#ifdef F77_DUMMY_MAIN
10066# ifdef __cplusplus
10067 extern "C"
10068# endif
10069 int F77_DUMMY_MAIN() { return 1; }
10070#endif
10071int
10072main ()
10073{
10074
10075 FILE *f = fopen ("conftest.val", "w");
10076 if (! f)
10077 exit (1);
10078 if (((long) (sizeof (char))) < 0)
10079 {
10080 long i = longval ();
10081 if (i != ((long) (sizeof (char))))
10082 exit (1);
10083 fprintf (f, "%ld\n", i);
10084 }
10085 else
10086 {
10087 unsigned long i = ulongval ();
10088 if (i != ((long) (sizeof (char))))
10089 exit (1);
10090 fprintf (f, "%lu\n", i);
10091 }
10092 exit (ferror (f) || fclose (f) != 0);
10093
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098rm -f conftest$ac_exeext
10099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_sizeof_char=`cat conftest.val`
10110else
10111 echo "$as_me: program exited with status $ac_status" >&5
10112echo "$as_me: failed program was:" >&5
10113cat conftest.$ac_ext >&5
10114( exit $ac_status )
10115{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10116echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10117 { (exit 1); exit 1; }; }
10118fi
10119rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120fi
10121fi
10122rm -f conftest.val
10123else
10124 ac_cv_sizeof_char=0
10125fi
10126fi
10127echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10128echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10129cat >>confdefs.h <<_ACEOF
10130#define SIZEOF_CHAR $ac_cv_sizeof_char
10131_ACEOF
10132
10133
10134echo "$as_me:$LINENO: checking for short int" >&5
10135echo $ECHO_N "checking for short int... $ECHO_C" >&6
10136if test "${ac_cv_type_short_int+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140#line $LINENO "configure"
10141#include "confdefs.h"
10142$ac_includes_default
10143#ifdef F77_DUMMY_MAIN
10144# ifdef __cplusplus
10145 extern "C"
10146# endif
10147 int F77_DUMMY_MAIN() { return 1; }
10148#endif
10149int
10150main ()
10151{
10152if ((short int *) 0)
10153 return 0;
10154if (sizeof (short int))
10155 return 0;
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext
10161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_type_short_int=yes
10173else
10174 echo "$as_me: failed program was:" >&5
10175cat conftest.$ac_ext >&5
10176ac_cv_type_short_int=no
10177fi
10178rm -f conftest.$ac_objext conftest.$ac_ext
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
10181echo "${ECHO_T}$ac_cv_type_short_int" >&6
10182
10183echo "$as_me:$LINENO: checking size of short int" >&5
10184echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10185if test "${ac_cv_sizeof_short_int+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188 if test "$ac_cv_type_short_int" = yes; then
10189 # The cast to unsigned long works around a bug in the HP C Compiler
10190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10192 # This bug is HP SR number 8606223364.
10193 if test "$cross_compiling" = yes; then
10194 # Depending upon the size, compute the lo and hi bounds.
10195cat >conftest.$ac_ext <<_ACEOF
10196#line $LINENO "configure"
10197#include "confdefs.h"
10198$ac_includes_default
10199#ifdef F77_DUMMY_MAIN
10200# ifdef __cplusplus
10201 extern "C"
10202# endif
10203 int F77_DUMMY_MAIN() { return 1; }
10204#endif
10205int
10206main ()
10207{
10208static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
10209test_array [0] = 0
10210
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext
10216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_lo=0 ac_mid=0
10228 while :; do
10229 cat >conftest.$ac_ext <<_ACEOF
10230#line $LINENO "configure"
10231#include "confdefs.h"
10232$ac_includes_default
10233#ifdef F77_DUMMY_MAIN
10234# ifdef __cplusplus
10235 extern "C"
10236# endif
10237 int F77_DUMMY_MAIN() { return 1; }
10238#endif
10239int
10240main ()
10241{
10242static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10243test_array [0] = 0
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext
10250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_hi=$ac_mid; break
10262else
10263 echo "$as_me: failed program was:" >&5
10264cat conftest.$ac_ext >&5
10265ac_lo=`expr $ac_mid + 1`
10266 if test $ac_lo -le $ac_mid; then
10267 ac_lo= ac_hi=
10268 break
10269 fi
10270 ac_mid=`expr 2 '*' $ac_mid + 1`
10271fi
10272rm -f conftest.$ac_objext conftest.$ac_ext
10273 done
10274else
10275 echo "$as_me: failed program was:" >&5
10276cat conftest.$ac_ext >&5
10277cat >conftest.$ac_ext <<_ACEOF
10278#line $LINENO "configure"
10279#include "confdefs.h"
10280$ac_includes_default
10281#ifdef F77_DUMMY_MAIN
10282# ifdef __cplusplus
10283 extern "C"
10284# endif
10285 int F77_DUMMY_MAIN() { return 1; }
10286#endif
10287int
10288main ()
10289{
10290static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
10291test_array [0] = 0
10292
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext
10298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_hi=-1 ac_mid=-1
10310 while :; do
10311 cat >conftest.$ac_ext <<_ACEOF
10312#line $LINENO "configure"
10313#include "confdefs.h"
10314$ac_includes_default
10315#ifdef F77_DUMMY_MAIN
10316# ifdef __cplusplus
10317 extern "C"
10318# endif
10319 int F77_DUMMY_MAIN() { return 1; }
10320#endif
10321int
10322main ()
10323{
10324static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
10325test_array [0] = 0
10326
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext
10332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_lo=$ac_mid; break
10344else
10345 echo "$as_me: failed program was:" >&5
10346cat conftest.$ac_ext >&5
10347ac_hi=`expr '(' $ac_mid ')' - 1`
10348 if test $ac_mid -le $ac_hi; then
10349 ac_lo= ac_hi=
10350 break
10351 fi
10352 ac_mid=`expr 2 '*' $ac_mid`
10353fi
10354rm -f conftest.$ac_objext conftest.$ac_ext
10355 done
10356else
10357 echo "$as_me: failed program was:" >&5
10358cat conftest.$ac_ext >&5
10359ac_lo= ac_hi=
10360fi
10361rm -f conftest.$ac_objext conftest.$ac_ext
10362fi
10363rm -f conftest.$ac_objext conftest.$ac_ext
10364# Binary search between lo and hi bounds.
10365while test "x$ac_lo" != "x$ac_hi"; do
10366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10367 cat >conftest.$ac_ext <<_ACEOF
10368#line $LINENO "configure"
10369#include "confdefs.h"
10370$ac_includes_default
10371#ifdef F77_DUMMY_MAIN
10372# ifdef __cplusplus
10373 extern "C"
10374# endif
10375 int F77_DUMMY_MAIN() { return 1; }
10376#endif
10377int
10378main ()
10379{
10380static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10381test_array [0] = 0
10382
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext
10388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_hi=$ac_mid
10400else
10401 echo "$as_me: failed program was:" >&5
10402cat conftest.$ac_ext >&5
10403ac_lo=`expr '(' $ac_mid ')' + 1`
10404fi
10405rm -f conftest.$ac_objext conftest.$ac_ext
10406done
10407case $ac_lo in
10408?*) ac_cv_sizeof_short_int=$ac_lo;;
10409'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10410echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10411 { (exit 1); exit 1; }; } ;;
10412esac
10413else
10414 if test "$cross_compiling" = yes; then
10415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10416echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10417 { (exit 1); exit 1; }; }
10418else
10419 cat >conftest.$ac_ext <<_ACEOF
10420#line $LINENO "configure"
10421#include "confdefs.h"
10422$ac_includes_default
10423long longval () { return (long) (sizeof (short int)); }
10424unsigned long ulongval () { return (long) (sizeof (short int)); }
10425#include <stdio.h>
10426#include <stdlib.h>
10427#ifdef F77_DUMMY_MAIN
10428# ifdef __cplusplus
10429 extern "C"
10430# endif
10431 int F77_DUMMY_MAIN() { return 1; }
10432#endif
10433int
10434main ()
10435{
10436
10437 FILE *f = fopen ("conftest.val", "w");
10438 if (! f)
10439 exit (1);
10440 if (((long) (sizeof (short int))) < 0)
10441 {
10442 long i = longval ();
10443 if (i != ((long) (sizeof (short int))))
10444 exit (1);
10445 fprintf (f, "%ld\n", i);
10446 }
10447 else
10448 {
10449 unsigned long i = ulongval ();
10450 if (i != ((long) (sizeof (short int))))
10451 exit (1);
10452 fprintf (f, "%lu\n", i);
10453 }
10454 exit (ferror (f) || fclose (f) != 0);
10455
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest$ac_exeext
10461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_sizeof_short_int=`cat conftest.val`
10472else
10473 echo "$as_me: program exited with status $ac_status" >&5
10474echo "$as_me: failed program was:" >&5
10475cat conftest.$ac_ext >&5
10476( exit $ac_status )
10477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10478echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10479 { (exit 1); exit 1; }; }
10480fi
10481rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482fi
10483fi
10484rm -f conftest.val
10485else
10486 ac_cv_sizeof_short_int=0
10487fi
10488fi
10489echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10490echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10491cat >>confdefs.h <<_ACEOF
10492#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10493_ACEOF
10494
10495
10496echo "$as_me:$LINENO: checking for int" >&5
10497echo $ECHO_N "checking for int... $ECHO_C" >&6
10498if test "${ac_cv_type_int+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 cat >conftest.$ac_ext <<_ACEOF
10502#line $LINENO "configure"
10503#include "confdefs.h"
10504$ac_includes_default
10505#ifdef F77_DUMMY_MAIN
10506# ifdef __cplusplus
10507 extern "C"
10508# endif
10509 int F77_DUMMY_MAIN() { return 1; }
10510#endif
10511int
10512main ()
10513{
10514if ((int *) 0)
10515 return 0;
10516if (sizeof (int))
10517 return 0;
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_cv_type_int=yes
10535else
10536 echo "$as_me: failed program was:" >&5
10537cat conftest.$ac_ext >&5
10538ac_cv_type_int=no
10539fi
10540rm -f conftest.$ac_objext conftest.$ac_ext
10541fi
10542echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10543echo "${ECHO_T}$ac_cv_type_int" >&6
10544
10545echo "$as_me:$LINENO: checking size of int" >&5
10546echo $ECHO_N "checking size of int... $ECHO_C" >&6
10547if test "${ac_cv_sizeof_int+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549else
10550 if test "$ac_cv_type_int" = yes; then
10551 # The cast to unsigned long works around a bug in the HP C Compiler
10552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10554 # This bug is HP SR number 8606223364.
10555 if test "$cross_compiling" = yes; then
10556 # Depending upon the size, compute the lo and hi bounds.
10557cat >conftest.$ac_ext <<_ACEOF
10558#line $LINENO "configure"
10559#include "confdefs.h"
10560$ac_includes_default
10561#ifdef F77_DUMMY_MAIN
10562# ifdef __cplusplus
10563 extern "C"
10564# endif
10565 int F77_DUMMY_MAIN() { return 1; }
10566#endif
10567int
10568main ()
10569{
10570static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10571test_array [0] = 0
10572
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_lo=0 ac_mid=0
10590 while :; do
10591 cat >conftest.$ac_ext <<_ACEOF
10592#line $LINENO "configure"
10593#include "confdefs.h"
10594$ac_includes_default
10595#ifdef F77_DUMMY_MAIN
10596# ifdef __cplusplus
10597 extern "C"
10598# endif
10599 int F77_DUMMY_MAIN() { return 1; }
10600#endif
10601int
10602main ()
10603{
10604static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10605test_array [0] = 0
10606
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_hi=$ac_mid; break
10624else
10625 echo "$as_me: failed program was:" >&5
10626cat conftest.$ac_ext >&5
10627ac_lo=`expr $ac_mid + 1`
10628 if test $ac_lo -le $ac_mid; then
10629 ac_lo= ac_hi=
10630 break
10631 fi
10632 ac_mid=`expr 2 '*' $ac_mid + 1`
10633fi
10634rm -f conftest.$ac_objext conftest.$ac_ext
10635 done
10636else
10637 echo "$as_me: failed program was:" >&5
10638cat conftest.$ac_ext >&5
10639cat >conftest.$ac_ext <<_ACEOF
10640#line $LINENO "configure"
10641#include "confdefs.h"
10642$ac_includes_default
10643#ifdef F77_DUMMY_MAIN
10644# ifdef __cplusplus
10645 extern "C"
10646# endif
10647 int F77_DUMMY_MAIN() { return 1; }
10648#endif
10649int
10650main ()
10651{
10652static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10653test_array [0] = 0
10654
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_hi=-1 ac_mid=-1
10672 while :; do
10673 cat >conftest.$ac_ext <<_ACEOF
10674#line $LINENO "configure"
10675#include "confdefs.h"
10676$ac_includes_default
10677#ifdef F77_DUMMY_MAIN
10678# ifdef __cplusplus
10679 extern "C"
10680# endif
10681 int F77_DUMMY_MAIN() { return 1; }
10682#endif
10683int
10684main ()
10685{
10686static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10687test_array [0] = 0
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_lo=$ac_mid; break
10706else
10707 echo "$as_me: failed program was:" >&5
10708cat conftest.$ac_ext >&5
10709ac_hi=`expr '(' $ac_mid ')' - 1`
10710 if test $ac_mid -le $ac_hi; then
10711 ac_lo= ac_hi=
10712 break
10713 fi
10714 ac_mid=`expr 2 '*' $ac_mid`
10715fi
10716rm -f conftest.$ac_objext conftest.$ac_ext
10717 done
10718else
10719 echo "$as_me: failed program was:" >&5
10720cat conftest.$ac_ext >&5
10721ac_lo= ac_hi=
10722fi
10723rm -f conftest.$ac_objext conftest.$ac_ext
10724fi
10725rm -f conftest.$ac_objext conftest.$ac_ext
10726# Binary search between lo and hi bounds.
10727while test "x$ac_lo" != "x$ac_hi"; do
10728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10729 cat >conftest.$ac_ext <<_ACEOF
10730#line $LINENO "configure"
10731#include "confdefs.h"
10732$ac_includes_default
10733#ifdef F77_DUMMY_MAIN
10734# ifdef __cplusplus
10735 extern "C"
10736# endif
10737 int F77_DUMMY_MAIN() { return 1; }
10738#endif
10739int
10740main ()
10741{
10742static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10743test_array [0] = 0
10744
10745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
10750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_hi=$ac_mid
10762else
10763 echo "$as_me: failed program was:" >&5
10764cat conftest.$ac_ext >&5
10765ac_lo=`expr '(' $ac_mid ')' + 1`
10766fi
10767rm -f conftest.$ac_objext conftest.$ac_ext
10768done
10769case $ac_lo in
10770?*) ac_cv_sizeof_int=$ac_lo;;
10771'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10772echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10773 { (exit 1); exit 1; }; } ;;
10774esac
10775else
10776 if test "$cross_compiling" = yes; then
10777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10778echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10779 { (exit 1); exit 1; }; }
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782#line $LINENO "configure"
10783#include "confdefs.h"
10784$ac_includes_default
10785long longval () { return (long) (sizeof (int)); }
10786unsigned long ulongval () { return (long) (sizeof (int)); }
10787#include <stdio.h>
10788#include <stdlib.h>
10789#ifdef F77_DUMMY_MAIN
10790# ifdef __cplusplus
10791 extern "C"
10792# endif
10793 int F77_DUMMY_MAIN() { return 1; }
10794#endif
10795int
10796main ()
10797{
10798
10799 FILE *f = fopen ("conftest.val", "w");
10800 if (! f)
10801 exit (1);
10802 if (((long) (sizeof (int))) < 0)
10803 {
10804 long i = longval ();
10805 if (i != ((long) (sizeof (int))))
10806 exit (1);
10807 fprintf (f, "%ld\n", i);
10808 }
10809 else
10810 {
10811 unsigned long i = ulongval ();
10812 if (i != ((long) (sizeof (int))))
10813 exit (1);
10814 fprintf (f, "%lu\n", i);
10815 }
10816 exit (ferror (f) || fclose (f) != 0);
10817
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822rm -f conftest$ac_exeext
10823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824 (eval $ac_link) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_sizeof_int=`cat conftest.val`
10834else
10835 echo "$as_me: program exited with status $ac_status" >&5
10836echo "$as_me: failed program was:" >&5
10837cat conftest.$ac_ext >&5
10838( exit $ac_status )
10839{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10840echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10841 { (exit 1); exit 1; }; }
10842fi
10843rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10844fi
10845fi
10846rm -f conftest.val
10847else
10848 ac_cv_sizeof_int=0
10849fi
10850fi
10851echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10852echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10853cat >>confdefs.h <<_ACEOF
10854#define SIZEOF_INT $ac_cv_sizeof_int
10855_ACEOF
10856
10857
10858echo "$as_me:$LINENO: checking for long int" >&5
10859echo $ECHO_N "checking for long int... $ECHO_C" >&6
10860if test "${ac_cv_type_long_int+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 cat >conftest.$ac_ext <<_ACEOF
10864#line $LINENO "configure"
10865#include "confdefs.h"
10866$ac_includes_default
10867#ifdef F77_DUMMY_MAIN
10868# ifdef __cplusplus
10869 extern "C"
10870# endif
10871 int F77_DUMMY_MAIN() { return 1; }
10872#endif
10873int
10874main ()
10875{
10876if ((long int *) 0)
10877 return 0;
10878if (sizeof (long int))
10879 return 0;
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_type_long_int=yes
10897else
10898 echo "$as_me: failed program was:" >&5
10899cat conftest.$ac_ext >&5
10900ac_cv_type_long_int=no
10901fi
10902rm -f conftest.$ac_objext conftest.$ac_ext
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10905echo "${ECHO_T}$ac_cv_type_long_int" >&6
10906
10907echo "$as_me:$LINENO: checking size of long int" >&5
10908echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10909if test "${ac_cv_sizeof_long_int+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 if test "$ac_cv_type_long_int" = yes; then
10913 # The cast to unsigned long works around a bug in the HP C Compiler
10914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10916 # This bug is HP SR number 8606223364.
10917 if test "$cross_compiling" = yes; then
10918 # Depending upon the size, compute the lo and hi bounds.
10919cat >conftest.$ac_ext <<_ACEOF
10920#line $LINENO "configure"
10921#include "confdefs.h"
10922$ac_includes_default
10923#ifdef F77_DUMMY_MAIN
10924# ifdef __cplusplus
10925 extern "C"
10926# endif
10927 int F77_DUMMY_MAIN() { return 1; }
10928#endif
10929int
10930main ()
10931{
10932static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
10933test_array [0] = 0
10934
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_lo=0 ac_mid=0
10952 while :; do
10953 cat >conftest.$ac_ext <<_ACEOF
10954#line $LINENO "configure"
10955#include "confdefs.h"
10956$ac_includes_default
10957#ifdef F77_DUMMY_MAIN
10958# ifdef __cplusplus
10959 extern "C"
10960# endif
10961 int F77_DUMMY_MAIN() { return 1; }
10962#endif
10963int
10964main ()
10965{
10966static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
10967test_array [0] = 0
10968
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973rm -f conftest.$ac_objext
10974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_hi=$ac_mid; break
10986else
10987 echo "$as_me: failed program was:" >&5
10988cat conftest.$ac_ext >&5
10989ac_lo=`expr $ac_mid + 1`
10990 if test $ac_lo -le $ac_mid; then
10991 ac_lo= ac_hi=
10992 break
10993 fi
10994 ac_mid=`expr 2 '*' $ac_mid + 1`
10995fi
10996rm -f conftest.$ac_objext conftest.$ac_ext
10997 done
10998else
10999 echo "$as_me: failed program was:" >&5
11000cat conftest.$ac_ext >&5
11001cat >conftest.$ac_ext <<_ACEOF
11002#line $LINENO "configure"
11003#include "confdefs.h"
11004$ac_includes_default
11005#ifdef F77_DUMMY_MAIN
11006# ifdef __cplusplus
11007 extern "C"
11008# endif
11009 int F77_DUMMY_MAIN() { return 1; }
11010#endif
11011int
11012main ()
11013{
11014static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
11015test_array [0] = 0
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_hi=-1 ac_mid=-1
11034 while :; do
11035 cat >conftest.$ac_ext <<_ACEOF
11036#line $LINENO "configure"
11037#include "confdefs.h"
11038$ac_includes_default
11039#ifdef F77_DUMMY_MAIN
11040# ifdef __cplusplus
11041 extern "C"
11042# endif
11043 int F77_DUMMY_MAIN() { return 1; }
11044#endif
11045int
11046main ()
11047{
11048static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
11049test_array [0] = 0
11050
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext
11056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_lo=$ac_mid; break
11068else
11069 echo "$as_me: failed program was:" >&5
11070cat conftest.$ac_ext >&5
11071ac_hi=`expr '(' $ac_mid ')' - 1`
11072 if test $ac_mid -le $ac_hi; then
11073 ac_lo= ac_hi=
11074 break
11075 fi
11076 ac_mid=`expr 2 '*' $ac_mid`
11077fi
11078rm -f conftest.$ac_objext conftest.$ac_ext
11079 done
11080else
11081 echo "$as_me: failed program was:" >&5
11082cat conftest.$ac_ext >&5
11083ac_lo= ac_hi=
11084fi
11085rm -f conftest.$ac_objext conftest.$ac_ext
11086fi
11087rm -f conftest.$ac_objext conftest.$ac_ext
11088# Binary search between lo and hi bounds.
11089while test "x$ac_lo" != "x$ac_hi"; do
11090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11091 cat >conftest.$ac_ext <<_ACEOF
11092#line $LINENO "configure"
11093#include "confdefs.h"
11094$ac_includes_default
11095#ifdef F77_DUMMY_MAIN
11096# ifdef __cplusplus
11097 extern "C"
11098# endif
11099 int F77_DUMMY_MAIN() { return 1; }
11100#endif
11101int
11102main ()
11103{
11104static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
11105test_array [0] = 0
11106
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_hi=$ac_mid
11124else
11125 echo "$as_me: failed program was:" >&5
11126cat conftest.$ac_ext >&5
11127ac_lo=`expr '(' $ac_mid ')' + 1`
11128fi
11129rm -f conftest.$ac_objext conftest.$ac_ext
11130done
11131case $ac_lo in
11132?*) ac_cv_sizeof_long_int=$ac_lo;;
11133'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11134echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11135 { (exit 1); exit 1; }; } ;;
11136esac
11137else
11138 if test "$cross_compiling" = yes; then
11139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11141 { (exit 1); exit 1; }; }
11142else
11143 cat >conftest.$ac_ext <<_ACEOF
11144#line $LINENO "configure"
11145#include "confdefs.h"
11146$ac_includes_default
11147long longval () { return (long) (sizeof (long int)); }
11148unsigned long ulongval () { return (long) (sizeof (long int)); }
11149#include <stdio.h>
11150#include <stdlib.h>
11151#ifdef F77_DUMMY_MAIN
11152# ifdef __cplusplus
11153 extern "C"
11154# endif
11155 int F77_DUMMY_MAIN() { return 1; }
11156#endif
11157int
11158main ()
11159{
11160
11161 FILE *f = fopen ("conftest.val", "w");
11162 if (! f)
11163 exit (1);
11164 if (((long) (sizeof (long int))) < 0)
11165 {
11166 long i = longval ();
11167 if (i != ((long) (sizeof (long int))))
11168 exit (1);
11169 fprintf (f, "%ld\n", i);
11170 }
11171 else
11172 {
11173 unsigned long i = ulongval ();
11174 if (i != ((long) (sizeof (long int))))
11175 exit (1);
11176 fprintf (f, "%lu\n", i);
11177 }
11178 exit (ferror (f) || fclose (f) != 0);
11179
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest$ac_exeext
11185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_sizeof_long_int=`cat conftest.val`
11196else
11197 echo "$as_me: program exited with status $ac_status" >&5
11198echo "$as_me: failed program was:" >&5
11199cat conftest.$ac_ext >&5
11200( exit $ac_status )
11201{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11202echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11203 { (exit 1); exit 1; }; }
11204fi
11205rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11206fi
11207fi
11208rm -f conftest.val
11209else
11210 ac_cv_sizeof_long_int=0
11211fi
11212fi
11213echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11214echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11215cat >>confdefs.h <<_ACEOF
11216#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11217_ACEOF
11218
11219
11220echo "$as_me:$LINENO: checking for long long int" >&5
11221echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11222if test "${ac_cv_type_long_long_int+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 cat >conftest.$ac_ext <<_ACEOF
11226#line $LINENO "configure"
11227#include "confdefs.h"
11228$ac_includes_default
11229#ifdef F77_DUMMY_MAIN
11230# ifdef __cplusplus
11231 extern "C"
11232# endif
11233 int F77_DUMMY_MAIN() { return 1; }
11234#endif
11235int
11236main ()
11237{
11238if ((long long int *) 0)
11239 return 0;
11240if (sizeof (long long int))
11241 return 0;
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_type_long_long_int=yes
11259else
11260 echo "$as_me: failed program was:" >&5
11261cat conftest.$ac_ext >&5
11262ac_cv_type_long_long_int=no
11263fi
11264rm -f conftest.$ac_objext conftest.$ac_ext
11265fi
11266echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11267echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11268
11269echo "$as_me:$LINENO: checking size of long long int" >&5
11270echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11271if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 if test "$ac_cv_type_long_long_int" = yes; then
11275 # The cast to unsigned long works around a bug in the HP C Compiler
11276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11278 # This bug is HP SR number 8606223364.
11279 if test "$cross_compiling" = yes; then
11280 # Depending upon the size, compute the lo and hi bounds.
11281cat >conftest.$ac_ext <<_ACEOF
11282#line $LINENO "configure"
11283#include "confdefs.h"
11284$ac_includes_default
11285#ifdef F77_DUMMY_MAIN
11286# ifdef __cplusplus
11287 extern "C"
11288# endif
11289 int F77_DUMMY_MAIN() { return 1; }
11290#endif
11291int
11292main ()
11293{
11294static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
11295test_array [0] = 0
11296
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext
11302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_lo=0 ac_mid=0
11314 while :; do
11315 cat >conftest.$ac_ext <<_ACEOF
11316#line $LINENO "configure"
11317#include "confdefs.h"
11318$ac_includes_default
11319#ifdef F77_DUMMY_MAIN
11320# ifdef __cplusplus
11321 extern "C"
11322# endif
11323 int F77_DUMMY_MAIN() { return 1; }
11324#endif
11325int
11326main ()
11327{
11328static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
11329test_array [0] = 0
11330
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_hi=$ac_mid; break
11348else
11349 echo "$as_me: failed program was:" >&5
11350cat conftest.$ac_ext >&5
11351ac_lo=`expr $ac_mid + 1`
11352 if test $ac_lo -le $ac_mid; then
11353 ac_lo= ac_hi=
11354 break
11355 fi
11356 ac_mid=`expr 2 '*' $ac_mid + 1`
11357fi
11358rm -f conftest.$ac_objext conftest.$ac_ext
11359 done
11360else
11361 echo "$as_me: failed program was:" >&5
11362cat conftest.$ac_ext >&5
11363cat >conftest.$ac_ext <<_ACEOF
11364#line $LINENO "configure"
11365#include "confdefs.h"
11366$ac_includes_default
11367#ifdef F77_DUMMY_MAIN
11368# ifdef __cplusplus
11369 extern "C"
11370# endif
11371 int F77_DUMMY_MAIN() { return 1; }
11372#endif
11373int
11374main ()
11375{
11376static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
11377test_array [0] = 0
11378
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_hi=-1 ac_mid=-1
11396 while :; do
11397 cat >conftest.$ac_ext <<_ACEOF
11398#line $LINENO "configure"
11399#include "confdefs.h"
11400$ac_includes_default
11401#ifdef F77_DUMMY_MAIN
11402# ifdef __cplusplus
11403 extern "C"
11404# endif
11405 int F77_DUMMY_MAIN() { return 1; }
11406#endif
11407int
11408main ()
11409{
11410static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
11411test_array [0] = 0
11412
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext
11418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11419 (eval $ac_compile) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_lo=$ac_mid; break
11430else
11431 echo "$as_me: failed program was:" >&5
11432cat conftest.$ac_ext >&5
11433ac_hi=`expr '(' $ac_mid ')' - 1`
11434 if test $ac_mid -le $ac_hi; then
11435 ac_lo= ac_hi=
11436 break
11437 fi
11438 ac_mid=`expr 2 '*' $ac_mid`
11439fi
11440rm -f conftest.$ac_objext conftest.$ac_ext
11441 done
11442else
11443 echo "$as_me: failed program was:" >&5
11444cat conftest.$ac_ext >&5
11445ac_lo= ac_hi=
11446fi
11447rm -f conftest.$ac_objext conftest.$ac_ext
11448fi
11449rm -f conftest.$ac_objext conftest.$ac_ext
11450# Binary search between lo and hi bounds.
11451while test "x$ac_lo" != "x$ac_hi"; do
11452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11453 cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
11455#include "confdefs.h"
11456$ac_includes_default
11457#ifdef F77_DUMMY_MAIN
11458# ifdef __cplusplus
11459 extern "C"
11460# endif
11461 int F77_DUMMY_MAIN() { return 1; }
11462#endif
11463int
11464main ()
11465{
11466static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
11467test_array [0] = 0
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_hi=$ac_mid
11486else
11487 echo "$as_me: failed program was:" >&5
11488cat conftest.$ac_ext >&5
11489ac_lo=`expr '(' $ac_mid ')' + 1`
11490fi
11491rm -f conftest.$ac_objext conftest.$ac_ext
11492done
11493case $ac_lo in
11494?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11495'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11496echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11497 { (exit 1); exit 1; }; } ;;
11498esac
11499else
11500 if test "$cross_compiling" = yes; then
11501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11502echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11503 { (exit 1); exit 1; }; }
11504else
11505 cat >conftest.$ac_ext <<_ACEOF
11506#line $LINENO "configure"
11507#include "confdefs.h"
11508$ac_includes_default
11509long longval () { return (long) (sizeof (long long int)); }
11510unsigned long ulongval () { return (long) (sizeof (long long int)); }
11511#include <stdio.h>
11512#include <stdlib.h>
11513#ifdef F77_DUMMY_MAIN
11514# ifdef __cplusplus
11515 extern "C"
11516# endif
11517 int F77_DUMMY_MAIN() { return 1; }
11518#endif
11519int
11520main ()
11521{
11522
11523 FILE *f = fopen ("conftest.val", "w");
11524 if (! f)
11525 exit (1);
11526 if (((long) (sizeof (long long int))) < 0)
11527 {
11528 long i = longval ();
11529 if (i != ((long) (sizeof (long long int))))
11530 exit (1);
11531 fprintf (f, "%ld\n", i);
11532 }
11533 else
11534 {
11535 unsigned long i = ulongval ();
11536 if (i != ((long) (sizeof (long long int))))
11537 exit (1);
11538 fprintf (f, "%lu\n", i);
11539 }
11540 exit (ferror (f) || fclose (f) != 0);
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest$ac_exeext
11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_sizeof_long_long_int=`cat conftest.val`
11558else
11559 echo "$as_me: program exited with status $ac_status" >&5
11560echo "$as_me: failed program was:" >&5
11561cat conftest.$ac_ext >&5
11562( exit $ac_status )
11563{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11564echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11565 { (exit 1); exit 1; }; }
11566fi
11567rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11568fi
11569fi
11570rm -f conftest.val
11571else
11572 ac_cv_sizeof_long_long_int=0
11573fi
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11576echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11577cat >>confdefs.h <<_ACEOF
11578#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11579_ACEOF
11580
11581
11582
11583# Sanity check long long for some platforms (AIX)
11584if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11585 ac_cv_sizeof_long_long_int=0
11586fi
11587
11588# More checks for data types
11589echo "$as_me:$LINENO: checking for u_int type" >&5
11590echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11591if test "${ac_cv_have_u_int+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11593else
11594
11595 cat >conftest.$ac_ext <<_ACEOF
11596#line $LINENO "configure"
11597#include "confdefs.h"
11598 #include <sys/types.h>
11599#ifdef F77_DUMMY_MAIN
11600# ifdef __cplusplus
11601 extern "C"
11602# endif
11603 int F77_DUMMY_MAIN() { return 1; }
11604#endif
11605int
11606main ()
11607{
11608 u_int a; a = 1;
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_have_u_int="yes"
11626else
11627 echo "$as_me: failed program was:" >&5
11628cat conftest.$ac_ext >&5
11629 ac_cv_have_u_int="no"
11630
11631fi
11632rm -f conftest.$ac_objext conftest.$ac_ext
11633
11634fi
11635echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11636echo "${ECHO_T}$ac_cv_have_u_int" >&6
11637if test "x$ac_cv_have_u_int" = "xyes" ; then
11638 cat >>confdefs.h <<\_ACEOF
11639#define HAVE_U_INT 1
11640_ACEOF
11641
11642 have_u_int=1
11643fi
11644
11645echo "$as_me:$LINENO: checking for intXX_t types" >&5
11646echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11647if test "${ac_cv_have_intxx_t+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650
11651 cat >conftest.$ac_ext <<_ACEOF
11652#line $LINENO "configure"
11653#include "confdefs.h"
11654 #include <sys/types.h>
11655#ifdef F77_DUMMY_MAIN
11656# ifdef __cplusplus
11657 extern "C"
11658# endif
11659 int F77_DUMMY_MAIN() { return 1; }
11660#endif
11661int
11662main ()
11663{
11664 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_have_intxx_t="yes"
11682else
11683 echo "$as_me: failed program was:" >&5
11684cat conftest.$ac_ext >&5
11685 ac_cv_have_intxx_t="no"
11686
11687fi
11688rm -f conftest.$ac_objext conftest.$ac_ext
11689
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11692echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11693if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11694 cat >>confdefs.h <<\_ACEOF
11695#define HAVE_INTXX_T 1
11696_ACEOF
11697
11698 have_intxx_t=1
11699fi
11700
11701if (test -z "$have_intxx_t" && \
11702 test "x$ac_cv_header_stdint_h" = "xyes")
11703then
11704 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11705echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11707#line $LINENO "configure"
11708#include "confdefs.h"
11709 #include <stdint.h>
11710#ifdef F77_DUMMY_MAIN
11711# ifdef __cplusplus
11712 extern "C"
11713# endif
11714 int F77_DUMMY_MAIN() { return 1; }
11715#endif
11716int
11717main ()
11718{
11719 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738#define HAVE_INTXX_T 1
11739_ACEOF
11740
11741 echo "$as_me:$LINENO: result: yes" >&5
11742echo "${ECHO_T}yes" >&6
11743
11744else
11745 echo "$as_me: failed program was:" >&5
11746cat conftest.$ac_ext >&5
11747 echo "$as_me:$LINENO: result: no" >&5
11748echo "${ECHO_T}no" >&6
11749
11750fi
11751rm -f conftest.$ac_objext conftest.$ac_ext
11752fi
11753
11754echo "$as_me:$LINENO: checking for int64_t type" >&5
11755echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11756if test "${ac_cv_have_int64_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759
11760 cat >conftest.$ac_ext <<_ACEOF
11761#line $LINENO "configure"
11762#include "confdefs.h"
11763
11764#include <sys/types.h>
11765#ifdef HAVE_STDINT_H
11766# include <stdint.h>
11767#endif
11768#include <sys/socket.h>
11769#ifdef HAVE_SYS_BITYPES_H
11770# include <sys/bitypes.h>
11771#endif
11772
11773#ifdef F77_DUMMY_MAIN
11774# ifdef __cplusplus
11775 extern "C"
11776# endif
11777 int F77_DUMMY_MAIN() { return 1; }
11778#endif
11779int
11780main ()
11781{
11782 int64_t a; a = 1;
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_have_int64_t="yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802cat conftest.$ac_ext >&5
11803 ac_cv_have_int64_t="no"
11804
11805fi
11806rm -f conftest.$ac_objext conftest.$ac_ext
11807
11808fi
11809echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11810echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11811if test "x$ac_cv_have_int64_t" = "xyes" ; then
11812 cat >>confdefs.h <<\_ACEOF
11813#define HAVE_INT64_T 1
11814_ACEOF
11815
11816fi
11817
11818echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11819echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11820if test "${ac_cv_have_u_intxx_t+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822else
11823
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line $LINENO "configure"
11826#include "confdefs.h"
11827 #include <sys/types.h>
11828#ifdef F77_DUMMY_MAIN
11829# ifdef __cplusplus
11830 extern "C"
11831# endif
11832 int F77_DUMMY_MAIN() { return 1; }
11833#endif
11834int
11835main ()
11836{
11837 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_have_u_intxx_t="yes"
11855else
11856 echo "$as_me: failed program was:" >&5
11857cat conftest.$ac_ext >&5
11858 ac_cv_have_u_intxx_t="no"
11859
11860fi
11861rm -f conftest.$ac_objext conftest.$ac_ext
11862
11863fi
11864echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11865echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11866if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11867 cat >>confdefs.h <<\_ACEOF
11868#define HAVE_U_INTXX_T 1
11869_ACEOF
11870
11871 have_u_intxx_t=1
11872fi
11873
11874if test -z "$have_u_intxx_t" ; then
11875 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11876echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11878#line $LINENO "configure"
11879#include "confdefs.h"
11880 #include <sys/socket.h>
11881#ifdef F77_DUMMY_MAIN
11882# ifdef __cplusplus
11883 extern "C"
11884# endif
11885 int F77_DUMMY_MAIN() { return 1; }
11886#endif
11887int
11888main ()
11889{
11890 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext
11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897 (eval $ac_compile) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907
11908 cat >>confdefs.h <<\_ACEOF
11909#define HAVE_U_INTXX_T 1
11910_ACEOF
11911
11912 echo "$as_me:$LINENO: result: yes" >&5
11913echo "${ECHO_T}yes" >&6
11914
11915else
11916 echo "$as_me: failed program was:" >&5
11917cat conftest.$ac_ext >&5
11918 echo "$as_me:$LINENO: result: no" >&5
11919echo "${ECHO_T}no" >&6
11920
11921fi
11922rm -f conftest.$ac_objext conftest.$ac_ext
11923fi
11924
11925echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11926echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11927if test "${ac_cv_have_u_int64_t+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929else
11930
11931 cat >conftest.$ac_ext <<_ACEOF
11932#line $LINENO "configure"
11933#include "confdefs.h"
11934 #include <sys/types.h>
11935#ifdef F77_DUMMY_MAIN
11936# ifdef __cplusplus
11937 extern "C"
11938# endif
11939 int F77_DUMMY_MAIN() { return 1; }
11940#endif
11941int
11942main ()
11943{
11944 u_int64_t a; a = 1;
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_have_u_int64_t="yes"
11962else
11963 echo "$as_me: failed program was:" >&5
11964cat conftest.$ac_ext >&5
11965 ac_cv_have_u_int64_t="no"
11966
11967fi
11968rm -f conftest.$ac_objext conftest.$ac_ext
11969
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11972echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11974 cat >>confdefs.h <<\_ACEOF
11975#define HAVE_U_INT64_T 1
11976_ACEOF
11977
11978 have_u_int64_t=1
11979fi
11980
11981if test -z "$have_u_int64_t" ; then
11982 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11983echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11985#line $LINENO "configure"
11986#include "confdefs.h"
11987 #include <sys/bitypes.h>
11988#ifdef F77_DUMMY_MAIN
11989# ifdef __cplusplus
11990 extern "C"
11991# endif
11992 int F77_DUMMY_MAIN() { return 1; }
11993#endif
11994int
11995main ()
11996{
11997 u_int64_t a; a = 1
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014
12015 cat >>confdefs.h <<\_ACEOF
12016#define HAVE_U_INT64_T 1
12017_ACEOF
12018
12019 echo "$as_me:$LINENO: result: yes" >&5
12020echo "${ECHO_T}yes" >&6
12021
12022else
12023 echo "$as_me: failed program was:" >&5
12024cat conftest.$ac_ext >&5
12025 echo "$as_me:$LINENO: result: no" >&5
12026echo "${ECHO_T}no" >&6
12027
12028fi
12029rm -f conftest.$ac_objext conftest.$ac_ext
12030fi
12031
12032if test -z "$have_u_intxx_t" ; then
12033 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
12034echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12035if test "${ac_cv_have_uintxx_t+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038
12039 cat >conftest.$ac_ext <<_ACEOF
12040#line $LINENO "configure"
12041#include "confdefs.h"
12042
12043#include <sys/types.h>
12044
12045#ifdef F77_DUMMY_MAIN
12046# ifdef __cplusplus
12047 extern "C"
12048# endif
12049 int F77_DUMMY_MAIN() { return 1; }
12050#endif
12051int
12052main ()
12053{
12054 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext
12060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_have_uintxx_t="yes"
12072else
12073 echo "$as_me: failed program was:" >&5
12074cat conftest.$ac_ext >&5
12075 ac_cv_have_uintxx_t="no"
12076
12077fi
12078rm -f conftest.$ac_objext conftest.$ac_ext
12079
12080fi
12081echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
12082echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
12083 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12084 cat >>confdefs.h <<\_ACEOF
12085#define HAVE_UINTXX_T 1
12086_ACEOF
12087
12088 fi
12089fi
12090
12091if test -z "$have_uintxx_t" ; then
12092 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
12093echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12095#line $LINENO "configure"
12096#include "confdefs.h"
12097 #include <stdint.h>
12098#ifdef F77_DUMMY_MAIN
12099# ifdef __cplusplus
12100 extern "C"
12101# endif
12102 int F77_DUMMY_MAIN() { return 1; }
12103#endif
12104int
12105main ()
12106{
12107 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124
12125 cat >>confdefs.h <<\_ACEOF
12126#define HAVE_UINTXX_T 1
12127_ACEOF
12128
12129 echo "$as_me:$LINENO: result: yes" >&5
12130echo "${ECHO_T}yes" >&6
12131
12132else
12133 echo "$as_me: failed program was:" >&5
12134cat conftest.$ac_ext >&5
12135 echo "$as_me:$LINENO: result: no" >&5
12136echo "${ECHO_T}no" >&6
12137
12138fi
12139rm -f conftest.$ac_objext conftest.$ac_ext
12140fi
12141
12142if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12143 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12144then
12145 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12146echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12148#line $LINENO "configure"
12149#include "confdefs.h"
12150
12151#include <sys/bitypes.h>
12152
12153#ifdef F77_DUMMY_MAIN
12154# ifdef __cplusplus
12155 extern "C"
12156# endif
12157 int F77_DUMMY_MAIN() { return 1; }
12158#endif
12159int
12160main ()
12161{
12162
12163 int8_t a; int16_t b; int32_t c;
12164 u_int8_t e; u_int16_t f; u_int32_t g;
12165 a = b = c = e = f = g = 1;
12166
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171rm -f conftest.$ac_objext
12172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185#define HAVE_U_INTXX_T 1
12186_ACEOF
12187
12188 cat >>confdefs.h <<\_ACEOF
12189#define HAVE_INTXX_T 1
12190_ACEOF
12191
12192 echo "$as_me:$LINENO: result: yes" >&5
12193echo "${ECHO_T}yes" >&6
12194
12195else
12196 echo "$as_me: failed program was:" >&5
12197cat conftest.$ac_ext >&5
12198echo "$as_me:$LINENO: result: no" >&5
12199echo "${ECHO_T}no" >&6
12200
12201fi
12202rm -f conftest.$ac_objext conftest.$ac_ext
12203fi
12204
12205
12206echo "$as_me:$LINENO: checking for u_char" >&5
12207echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12208if test "${ac_cv_have_u_char+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211
12212 cat >conftest.$ac_ext <<_ACEOF
12213#line $LINENO "configure"
12214#include "confdefs.h"
12215
12216#include <sys/types.h>
12217
12218#ifdef F77_DUMMY_MAIN
12219# ifdef __cplusplus
12220 extern "C"
12221# endif
12222 int F77_DUMMY_MAIN() { return 1; }
12223#endif
12224int
12225main ()
12226{
12227 u_char foo; foo = 125;
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext
12233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_have_u_char="yes"
12245else
12246 echo "$as_me: failed program was:" >&5
12247cat conftest.$ac_ext >&5
12248 ac_cv_have_u_char="no"
12249
12250fi
12251rm -f conftest.$ac_objext conftest.$ac_ext
12252
12253fi
12254echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
12255echo "${ECHO_T}$ac_cv_have_u_char" >&6
12256if test "x$ac_cv_have_u_char" = "xyes" ; then
12257 cat >>confdefs.h <<\_ACEOF
12258#define HAVE_U_CHAR 1
12259_ACEOF
12260
12261fi
12262
12263
12264 echo "$as_me:$LINENO: checking for socklen_t" >&5
12265echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12266if test "${ac_cv_type_socklen_t+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270#line $LINENO "configure"
12271#include "confdefs.h"
12272#include <sys/types.h>
12273#include <sys/socket.h>
12274
12275#ifdef F77_DUMMY_MAIN
12276# ifdef __cplusplus
12277 extern "C"
12278# endif
12279 int F77_DUMMY_MAIN() { return 1; }
12280#endif
12281int
12282main ()
12283{
12284if ((socklen_t *) 0)
12285 return 0;
12286if (sizeof (socklen_t))
12287 return 0;
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_type_socklen_t=yes
12305else
12306 echo "$as_me: failed program was:" >&5
12307cat conftest.$ac_ext >&5
12308ac_cv_type_socklen_t=no
12309fi
12310rm -f conftest.$ac_objext conftest.$ac_ext
12311fi
12312echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12313echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12314if test $ac_cv_type_socklen_t = yes; then
12315 :
12316else
12317
12318 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12319echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
12320 if test "${curl_cv_socklen_t_equiv+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323
12324 # Systems have either "struct sockaddr *" or
12325 # "void *" as the second argument to getpeername
12326 curl_cv_socklen_t_equiv=
12327 for arg2 in "struct sockaddr" void; do
12328 for t in int size_t unsigned long "unsigned long"; do
12329 cat >conftest.$ac_ext <<_ACEOF
12330#line $LINENO "configure"
12331#include "confdefs.h"
12332
12333 #include <sys/types.h>
12334 #include <sys/socket.h>
12335
12336 int getpeername (int, $arg2 *, $t *);
12337
12338#ifdef F77_DUMMY_MAIN
12339# ifdef __cplusplus
12340 extern "C"
12341# endif
12342 int F77_DUMMY_MAIN() { return 1; }
12343#endif
12344int
12345main ()
12346{
12347
12348 $t len;
12349 getpeername(0,0,&len);
12350
12351 ;
12352 return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext
12356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367
12368 curl_cv_socklen_t_equiv="$t"
12369 break
12370
12371else
12372 echo "$as_me: failed program was:" >&5
12373cat conftest.$ac_ext >&5
12374fi
12375rm -f conftest.$ac_objext conftest.$ac_ext
12376 done
12377 done
12378
12379 if test "x$curl_cv_socklen_t_equiv" = x; then
12380 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12381echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12382 { (exit 1); exit 1; }; }
12383 fi
12384
12385fi
12386
12387 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12388echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12389
12390cat >>confdefs.h <<_ACEOF
12391#define socklen_t $curl_cv_socklen_t_equiv
12392_ACEOF
12393
12394fi
12395
12396
12397
12398echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12399echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12400if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404#line $LINENO "configure"
12405#include "confdefs.h"
12406#include <signal.h>
12407
12408#ifdef F77_DUMMY_MAIN
12409# ifdef __cplusplus
12410 extern "C"
12411# endif
12412 int F77_DUMMY_MAIN() { return 1; }
12413#endif
12414int
12415main ()
12416{
12417if ((sig_atomic_t *) 0)
12418 return 0;
12419if (sizeof (sig_atomic_t))
12420 return 0;
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_type_sig_atomic_t=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440cat conftest.$ac_ext >&5
12441ac_cv_type_sig_atomic_t=no
12442fi
12443rm -f conftest.$ac_objext conftest.$ac_ext
12444fi
12445echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12446echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12447if test $ac_cv_type_sig_atomic_t = yes; then
12448
12449cat >>confdefs.h <<_ACEOF
12450#define HAVE_SIG_ATOMIC_T 1
12451_ACEOF
12452
12453
12454fi
12455
12456
12457echo "$as_me:$LINENO: checking for size_t" >&5
12458echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12459if test "${ac_cv_have_size_t+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462
12463 cat >conftest.$ac_ext <<_ACEOF
12464#line $LINENO "configure"
12465#include "confdefs.h"
12466
12467#include <sys/types.h>
12468
12469#ifdef F77_DUMMY_MAIN
12470# ifdef __cplusplus
12471 extern "C"
12472# endif
12473 int F77_DUMMY_MAIN() { return 1; }
12474#endif
12475int
12476main ()
12477{
12478 size_t foo; foo = 1235;
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_have_size_t="yes"
12496else
12497 echo "$as_me: failed program was:" >&5
12498cat conftest.$ac_ext >&5
12499 ac_cv_have_size_t="no"
12500
12501fi
12502rm -f conftest.$ac_objext conftest.$ac_ext
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12506echo "${ECHO_T}$ac_cv_have_size_t" >&6
12507if test "x$ac_cv_have_size_t" = "xyes" ; then
12508 cat >>confdefs.h <<\_ACEOF
12509#define HAVE_SIZE_T 1
12510_ACEOF
12511
12512fi
12513
12514echo "$as_me:$LINENO: checking for ssize_t" >&5
12515echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12516if test "${ac_cv_have_ssize_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518else
12519
12520 cat >conftest.$ac_ext <<_ACEOF
12521#line $LINENO "configure"
12522#include "confdefs.h"
12523
12524#include <sys/types.h>
12525
12526#ifdef F77_DUMMY_MAIN
12527# ifdef __cplusplus
12528 extern "C"
12529# endif
12530 int F77_DUMMY_MAIN() { return 1; }
12531#endif
12532int
12533main ()
12534{
12535 ssize_t foo; foo = 1235;
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_have_ssize_t="yes"
12553else
12554 echo "$as_me: failed program was:" >&5
12555cat conftest.$ac_ext >&5
12556 ac_cv_have_ssize_t="no"
12557
12558fi
12559rm -f conftest.$ac_objext conftest.$ac_ext
12560
12561fi
12562echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12563echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12564if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12565 cat >>confdefs.h <<\_ACEOF
12566#define HAVE_SSIZE_T 1
12567_ACEOF
12568
12569fi
12570
12571echo "$as_me:$LINENO: checking for clock_t" >&5
12572echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12573if test "${ac_cv_have_clock_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575else
12576
12577 cat >conftest.$ac_ext <<_ACEOF
12578#line $LINENO "configure"
12579#include "confdefs.h"
12580
12581#include <time.h>
12582
12583#ifdef F77_DUMMY_MAIN
12584# ifdef __cplusplus
12585 extern "C"
12586# endif
12587 int F77_DUMMY_MAIN() { return 1; }
12588#endif
12589int
12590main ()
12591{
12592 clock_t foo; foo = 1235;
12593 ;
12594 return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext
12598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_have_clock_t="yes"
12610else
12611 echo "$as_me: failed program was:" >&5
12612cat conftest.$ac_ext >&5
12613 ac_cv_have_clock_t="no"
12614
12615fi
12616rm -f conftest.$ac_objext conftest.$ac_ext
12617
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12620echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12621if test "x$ac_cv_have_clock_t" = "xyes" ; then
12622 cat >>confdefs.h <<\_ACEOF
12623#define HAVE_CLOCK_T 1
12624_ACEOF
12625
12626fi
12627
12628echo "$as_me:$LINENO: checking for sa_family_t" >&5
12629echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12630if test "${ac_cv_have_sa_family_t+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633
12634 cat >conftest.$ac_ext <<_ACEOF
12635#line $LINENO "configure"
12636#include "confdefs.h"
12637
12638#include <sys/types.h>
12639#include <sys/socket.h>
12640
12641#ifdef F77_DUMMY_MAIN
12642# ifdef __cplusplus
12643 extern "C"
12644# endif
12645 int F77_DUMMY_MAIN() { return 1; }
12646#endif
12647int
12648main ()
12649{
12650 sa_family_t foo; foo = 1235;
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655rm -f conftest.$ac_objext
12656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_have_sa_family_t="yes"
12668else
12669 echo "$as_me: failed program was:" >&5
12670cat conftest.$ac_ext >&5
12671 cat >conftest.$ac_ext <<_ACEOF
12672#line $LINENO "configure"
12673#include "confdefs.h"
12674
12675#include <sys/types.h>
12676#include <sys/socket.h>
12677#include <netinet/in.h>
12678
12679#ifdef F77_DUMMY_MAIN
12680# ifdef __cplusplus
12681 extern "C"
12682# endif
12683 int F77_DUMMY_MAIN() { return 1; }
12684#endif
12685int
12686main ()
12687{
12688 sa_family_t foo; foo = 1235;
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_have_sa_family_t="yes"
12706else
12707 echo "$as_me: failed program was:" >&5
12708cat conftest.$ac_ext >&5
12709 ac_cv_have_sa_family_t="no"
12710
12711fi
12712rm -f conftest.$ac_objext conftest.$ac_ext
12713
12714fi
12715rm -f conftest.$ac_objext conftest.$ac_ext
12716
12717fi
12718echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12719echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12720if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12721 cat >>confdefs.h <<\_ACEOF
12722#define HAVE_SA_FAMILY_T 1
12723_ACEOF
12724
12725fi
12726
12727echo "$as_me:$LINENO: checking for pid_t" >&5
12728echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12729if test "${ac_cv_have_pid_t+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732
12733 cat >conftest.$ac_ext <<_ACEOF
12734#line $LINENO "configure"
12735#include "confdefs.h"
12736
12737#include <sys/types.h>
12738
12739#ifdef F77_DUMMY_MAIN
12740# ifdef __cplusplus
12741 extern "C"
12742# endif
12743 int F77_DUMMY_MAIN() { return 1; }
12744#endif
12745int
12746main ()
12747{
12748 pid_t foo; foo = 1235;
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753rm -f conftest.$ac_objext
12754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_have_pid_t="yes"
12766else
12767 echo "$as_me: failed program was:" >&5
12768cat conftest.$ac_ext >&5
12769 ac_cv_have_pid_t="no"
12770
12771fi
12772rm -f conftest.$ac_objext conftest.$ac_ext
12773
12774fi
12775echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12776echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12777if test "x$ac_cv_have_pid_t" = "xyes" ; then
12778 cat >>confdefs.h <<\_ACEOF
12779#define HAVE_PID_T 1
12780_ACEOF
12781
12782fi
12783
12784echo "$as_me:$LINENO: checking for mode_t" >&5
12785echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12786if test "${ac_cv_have_mode_t+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789
12790 cat >conftest.$ac_ext <<_ACEOF
12791#line $LINENO "configure"
12792#include "confdefs.h"
12793
12794#include <sys/types.h>
12795
12796#ifdef F77_DUMMY_MAIN
12797# ifdef __cplusplus
12798 extern "C"
12799# endif
12800 int F77_DUMMY_MAIN() { return 1; }
12801#endif
12802int
12803main ()
12804{
12805 mode_t foo; foo = 1235;
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_have_mode_t="yes"
12823else
12824 echo "$as_me: failed program was:" >&5
12825cat conftest.$ac_ext >&5
12826 ac_cv_have_mode_t="no"
12827
12828fi
12829rm -f conftest.$ac_objext conftest.$ac_ext
12830
12831fi
12832echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12833echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12834if test "x$ac_cv_have_mode_t" = "xyes" ; then
12835 cat >>confdefs.h <<\_ACEOF
12836#define HAVE_MODE_T 1
12837_ACEOF
12838
12839fi
12840
12841
12842echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12843echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12844if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847
12848 cat >conftest.$ac_ext <<_ACEOF
12849#line $LINENO "configure"
12850#include "confdefs.h"
12851
12852#include <sys/types.h>
12853#include <sys/socket.h>
12854
12855#ifdef F77_DUMMY_MAIN
12856# ifdef __cplusplus
12857 extern "C"
12858# endif
12859 int F77_DUMMY_MAIN() { return 1; }
12860#endif
12861int
12862main ()
12863{
12864 struct sockaddr_storage s;
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869rm -f conftest.$ac_objext
12870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_have_struct_sockaddr_storage="yes"
12882else
12883 echo "$as_me: failed program was:" >&5
12884cat conftest.$ac_ext >&5
12885 ac_cv_have_struct_sockaddr_storage="no"
12886
12887fi
12888rm -f conftest.$ac_objext conftest.$ac_ext
12889
12890fi
12891echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12892echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12893if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12894 cat >>confdefs.h <<\_ACEOF
12895#define HAVE_STRUCT_SOCKADDR_STORAGE 1
12896_ACEOF
12897
12898fi
12899
12900echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12901echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12902if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12904else
12905
12906 cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908#include "confdefs.h"
12909
12910#include <sys/types.h>
12911#include <netinet/in.h>
12912
12913#ifdef F77_DUMMY_MAIN
12914# ifdef __cplusplus
12915 extern "C"
12916# endif
12917 int F77_DUMMY_MAIN() { return 1; }
12918#endif
12919int
12920main ()
12921{
12922 struct sockaddr_in6 s; s.sin6_family = 0;
12923 ;
12924 return 0;
12925}
12926_ACEOF
12927rm -f conftest.$ac_objext
12928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_have_struct_sockaddr_in6="yes"
12940else
12941 echo "$as_me: failed program was:" >&5
12942cat conftest.$ac_ext >&5
12943 ac_cv_have_struct_sockaddr_in6="no"
12944
12945fi
12946rm -f conftest.$ac_objext conftest.$ac_ext
12947
12948fi
12949echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12950echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12951if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12952 cat >>confdefs.h <<\_ACEOF
12953#define HAVE_STRUCT_SOCKADDR_IN6 1
12954_ACEOF
12955
12956fi
12957
12958echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12959echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12960if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
12963
12964 cat >conftest.$ac_ext <<_ACEOF
12965#line $LINENO "configure"
12966#include "confdefs.h"
12967
12968#include <sys/types.h>
12969#include <netinet/in.h>
12970
12971#ifdef F77_DUMMY_MAIN
12972# ifdef __cplusplus
12973 extern "C"
12974# endif
12975 int F77_DUMMY_MAIN() { return 1; }
12976#endif
12977int
12978main ()
12979{
12980 struct in6_addr s; s.s6_addr[0] = 0;
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_have_struct_in6_addr="yes"
12998else
12999 echo "$as_me: failed program was:" >&5
13000cat conftest.$ac_ext >&5
13001 ac_cv_have_struct_in6_addr="no"
13002
13003fi
13004rm -f conftest.$ac_objext conftest.$ac_ext
13005
13006fi
13007echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13008echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13009if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13010 cat >>confdefs.h <<\_ACEOF
13011#define HAVE_STRUCT_IN6_ADDR 1
13012_ACEOF
13013
13014fi
13015
13016echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13017echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13018if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021
13022 cat >conftest.$ac_ext <<_ACEOF
13023#line $LINENO "configure"
13024#include "confdefs.h"
13025
13026#include <sys/types.h>
13027#include <sys/socket.h>
13028#include <netdb.h>
13029
13030#ifdef F77_DUMMY_MAIN
13031# ifdef __cplusplus
13032 extern "C"
13033# endif
13034 int F77_DUMMY_MAIN() { return 1; }
13035#endif
13036int
13037main ()
13038{
13039 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044rm -f conftest.$ac_objext
13045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_have_struct_addrinfo="yes"
13057else
13058 echo "$as_me: failed program was:" >&5
13059cat conftest.$ac_ext >&5
13060 ac_cv_have_struct_addrinfo="no"
13061
13062fi
13063rm -f conftest.$ac_objext conftest.$ac_ext
13064
13065fi
13066echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
13067echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13068if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13069 cat >>confdefs.h <<\_ACEOF
13070#define HAVE_STRUCT_ADDRINFO 1
13071_ACEOF
13072
13073fi
13074
13075echo "$as_me:$LINENO: checking for struct timeval" >&5
13076echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13077if test "${ac_cv_have_struct_timeval+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080
13081 cat >conftest.$ac_ext <<_ACEOF
13082#line $LINENO "configure"
13083#include "confdefs.h"
13084 #include <sys/time.h>
13085#ifdef F77_DUMMY_MAIN
13086# ifdef __cplusplus
13087 extern "C"
13088# endif
13089 int F77_DUMMY_MAIN() { return 1; }
13090#endif
13091int
13092main ()
13093{
13094 struct timeval tv; tv.tv_sec = 1;
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_have_struct_timeval="yes"
13112else
13113 echo "$as_me: failed program was:" >&5
13114cat conftest.$ac_ext >&5
13115 ac_cv_have_struct_timeval="no"
13116
13117fi
13118rm -f conftest.$ac_objext conftest.$ac_ext
13119
13120fi
13121echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
13122echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13123if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13124 cat >>confdefs.h <<\_ACEOF
13125#define HAVE_STRUCT_TIMEVAL 1
13126_ACEOF
13127
13128 have_struct_timeval=1
13129fi
13130
13131# If we don't have int64_t then we can't compile sftp-server. So don't
13132# even attempt to do it.
13133if test "x$ac_cv_have_int64_t" = "xno" -a \
13134 "x$ac_cv_sizeof_long_int" != "x8" -a \
13135 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13136 NO_SFTP='#'
13137else
13138 if test "$cross_compiling" = yes; then
13139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13140echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13141 { (exit 1); exit 1; }; }
13142else
13143 cat >conftest.$ac_ext <<_ACEOF
13144#line $LINENO "configure"
13145#include "confdefs.h"
13146
13147#include <stdio.h>
13148#include <string.h>
13149#ifdef HAVE_SNPRINTF
13150main()
13151{
13152 char buf[50];
13153 char expected_out[50];
13154 int mazsize = 50 ;
13155#if (SIZEOF_LONG_INT == 8)
13156 long int num = 0x7fffffffffffffff;
13157#else
13158 long long num = 0x7fffffffffffffffll;
13159#endif
13160 strcpy(expected_out, "9223372036854775807");
13161 snprintf(buf, mazsize, "%lld", num);
13162 if(strcmp(buf, expected_out) != 0)
13163 exit(1);
13164 exit(0);
13165}
13166#else
13167main() { exit(0); }
13168#endif
13169
13170_ACEOF
13171rm -f conftest$ac_exeext
13172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 true
13183else
13184 echo "$as_me: program exited with status $ac_status" >&5
13185echo "$as_me: failed program was:" >&5
13186cat conftest.$ac_ext >&5
13187( exit $ac_status )
13188 cat >>confdefs.h <<\_ACEOF
13189#define BROKEN_SNPRINTF 1
13190_ACEOF
13191
13192
13193fi
13194rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195fi
13196fi
13197
13198
13199
13200# look for field 'ut_host' in header 'utmp.h'
13201 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13202 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13203 echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
13204echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6
13205 if eval "test \"\${$ossh_varname+set}\" = set"; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208
13209 cat >conftest.$ac_ext <<_ACEOF
13210#line $LINENO "configure"
13211#include "confdefs.h"
13212#include <utmp.h>
13213
13214_ACEOF
13215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 egrep "ut_host" >/dev/null 2>&1; then
13217 eval "$ossh_varname=yes"
13218else
13219 eval "$ossh_varname=no"
13220fi
13221rm -f conftest*
13222
13223fi
13224
13225 ossh_result=`eval 'echo $'"$ossh_varname"`
13226 if test -n "`echo $ossh_varname`"; then
13227 echo "$as_me:$LINENO: result: $ossh_result" >&5
13228echo "${ECHO_T}$ossh_result" >&6
13229 if test "x$ossh_result" = "xyes"; then
13230 cat >>confdefs.h <<\_ACEOF
13231#define HAVE_HOST_IN_UTMP 1
13232_ACEOF
13233
13234 fi
13235 else
13236 echo "$as_me:$LINENO: result: no" >&5
13237echo "${ECHO_T}no" >&6
13238 fi
13239
13240
13241# look for field 'ut_host' in header 'utmpx.h'
13242 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13243 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13244 echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
13245echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6
13246 if eval "test \"\${$ossh_varname+set}\" = set"; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248else
13249
13250 cat >conftest.$ac_ext <<_ACEOF
13251#line $LINENO "configure"
13252#include "confdefs.h"
13253#include <utmpx.h>
13254
13255_ACEOF
13256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 egrep "ut_host" >/dev/null 2>&1; then
13258 eval "$ossh_varname=yes"
13259else
13260 eval "$ossh_varname=no"
13261fi
13262rm -f conftest*
13263
13264fi
13265
13266 ossh_result=`eval 'echo $'"$ossh_varname"`
13267 if test -n "`echo $ossh_varname`"; then
13268 echo "$as_me:$LINENO: result: $ossh_result" >&5
13269echo "${ECHO_T}$ossh_result" >&6
13270 if test "x$ossh_result" = "xyes"; then
13271 cat >>confdefs.h <<\_ACEOF
13272#define HAVE_HOST_IN_UTMPX 1
13273_ACEOF
13274
13275 fi
13276 else
13277 echo "$as_me:$LINENO: result: no" >&5
13278echo "${ECHO_T}no" >&6
13279 fi
13280
13281
13282# look for field 'syslen' in header 'utmpx.h'
13283 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13284 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13285 echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
13286echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6
13287 if eval "test \"\${$ossh_varname+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289else
13290
13291 cat >conftest.$ac_ext <<_ACEOF
13292#line $LINENO "configure"
13293#include "confdefs.h"
13294#include <utmpx.h>
13295
13296_ACEOF
13297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 egrep "syslen" >/dev/null 2>&1; then
13299 eval "$ossh_varname=yes"
13300else
13301 eval "$ossh_varname=no"
13302fi
13303rm -f conftest*
13304
13305fi
13306
13307 ossh_result=`eval 'echo $'"$ossh_varname"`
13308 if test -n "`echo $ossh_varname`"; then
13309 echo "$as_me:$LINENO: result: $ossh_result" >&5
13310echo "${ECHO_T}$ossh_result" >&6
13311 if test "x$ossh_result" = "xyes"; then
13312 cat >>confdefs.h <<\_ACEOF
13313#define HAVE_SYSLEN_IN_UTMPX 1
13314_ACEOF
13315
13316 fi
13317 else
13318 echo "$as_me:$LINENO: result: no" >&5
13319echo "${ECHO_T}no" >&6
13320 fi
13321
13322
13323# look for field 'ut_pid' in header 'utmp.h'
13324 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13325 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13326 echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
13327echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6
13328 if eval "test \"\${$ossh_varname+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331
13332 cat >conftest.$ac_ext <<_ACEOF
13333#line $LINENO "configure"
13334#include "confdefs.h"
13335#include <utmp.h>
13336
13337_ACEOF
13338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 egrep "ut_pid" >/dev/null 2>&1; then
13340 eval "$ossh_varname=yes"
13341else
13342 eval "$ossh_varname=no"
13343fi
13344rm -f conftest*
13345
13346fi
13347
13348 ossh_result=`eval 'echo $'"$ossh_varname"`
13349 if test -n "`echo $ossh_varname`"; then
13350 echo "$as_me:$LINENO: result: $ossh_result" >&5
13351echo "${ECHO_T}$ossh_result" >&6
13352 if test "x$ossh_result" = "xyes"; then
13353 cat >>confdefs.h <<\_ACEOF
13354#define HAVE_PID_IN_UTMP 1
13355_ACEOF
13356
13357 fi
13358 else
13359 echo "$as_me:$LINENO: result: no" >&5
13360echo "${ECHO_T}no" >&6
13361 fi
13362
13363
13364# look for field 'ut_type' in header 'utmp.h'
13365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13367 echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
13368echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6
13369 if eval "test \"\${$ossh_varname+set}\" = set"; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372
13373 cat >conftest.$ac_ext <<_ACEOF
13374#line $LINENO "configure"
13375#include "confdefs.h"
13376#include <utmp.h>
13377
13378_ACEOF
13379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 egrep "ut_type" >/dev/null 2>&1; then
13381 eval "$ossh_varname=yes"
13382else
13383 eval "$ossh_varname=no"
13384fi
13385rm -f conftest*
13386
13387fi
13388
13389 ossh_result=`eval 'echo $'"$ossh_varname"`
13390 if test -n "`echo $ossh_varname`"; then
13391 echo "$as_me:$LINENO: result: $ossh_result" >&5
13392echo "${ECHO_T}$ossh_result" >&6
13393 if test "x$ossh_result" = "xyes"; then
13394 cat >>confdefs.h <<\_ACEOF
13395#define HAVE_TYPE_IN_UTMP 1
13396_ACEOF
13397
13398 fi
13399 else
13400 echo "$as_me:$LINENO: result: no" >&5
13401echo "${ECHO_T}no" >&6
13402 fi
13403
13404
13405# look for field 'ut_type' in header 'utmpx.h'
13406 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13407 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13408 echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
13409echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6
13410 if eval "test \"\${$ossh_varname+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413
13414 cat >conftest.$ac_ext <<_ACEOF
13415#line $LINENO "configure"
13416#include "confdefs.h"
13417#include <utmpx.h>
13418
13419_ACEOF
13420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "ut_type" >/dev/null 2>&1; then
13422 eval "$ossh_varname=yes"
13423else
13424 eval "$ossh_varname=no"
13425fi
13426rm -f conftest*
13427
13428fi
13429
13430 ossh_result=`eval 'echo $'"$ossh_varname"`
13431 if test -n "`echo $ossh_varname`"; then
13432 echo "$as_me:$LINENO: result: $ossh_result" >&5
13433echo "${ECHO_T}$ossh_result" >&6
13434 if test "x$ossh_result" = "xyes"; then
13435 cat >>confdefs.h <<\_ACEOF
13436#define HAVE_TYPE_IN_UTMPX 1
13437_ACEOF
13438
13439 fi
13440 else
13441 echo "$as_me:$LINENO: result: no" >&5
13442echo "${ECHO_T}no" >&6
13443 fi
13444
13445
13446# look for field 'ut_tv' in header 'utmp.h'
13447 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13448 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13449 echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
13450echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6
13451 if eval "test \"\${$ossh_varname+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454
13455 cat >conftest.$ac_ext <<_ACEOF
13456#line $LINENO "configure"
13457#include "confdefs.h"
13458#include <utmp.h>
13459
13460_ACEOF
13461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 egrep "ut_tv" >/dev/null 2>&1; then
13463 eval "$ossh_varname=yes"
13464else
13465 eval "$ossh_varname=no"
13466fi
13467rm -f conftest*
13468
13469fi
13470
13471 ossh_result=`eval 'echo $'"$ossh_varname"`
13472 if test -n "`echo $ossh_varname`"; then
13473 echo "$as_me:$LINENO: result: $ossh_result" >&5
13474echo "${ECHO_T}$ossh_result" >&6
13475 if test "x$ossh_result" = "xyes"; then
13476 cat >>confdefs.h <<\_ACEOF
13477#define HAVE_TV_IN_UTMP 1
13478_ACEOF
13479
13480 fi
13481 else
13482 echo "$as_me:$LINENO: result: no" >&5
13483echo "${ECHO_T}no" >&6
13484 fi
13485
13486
13487# look for field 'ut_id' in header 'utmp.h'
13488 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13489 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13490 echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
13491echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6
13492 if eval "test \"\${$ossh_varname+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495
13496 cat >conftest.$ac_ext <<_ACEOF
13497#line $LINENO "configure"
13498#include "confdefs.h"
13499#include <utmp.h>
13500
13501_ACEOF
13502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503 egrep "ut_id" >/dev/null 2>&1; then
13504 eval "$ossh_varname=yes"
13505else
13506 eval "$ossh_varname=no"
13507fi
13508rm -f conftest*
13509
13510fi
13511
13512 ossh_result=`eval 'echo $'"$ossh_varname"`
13513 if test -n "`echo $ossh_varname`"; then
13514 echo "$as_me:$LINENO: result: $ossh_result" >&5
13515echo "${ECHO_T}$ossh_result" >&6
13516 if test "x$ossh_result" = "xyes"; then
13517 cat >>confdefs.h <<\_ACEOF
13518#define HAVE_ID_IN_UTMP 1
13519_ACEOF
13520
13521 fi
13522 else
13523 echo "$as_me:$LINENO: result: no" >&5
13524echo "${ECHO_T}no" >&6
13525 fi
13526
13527
13528# look for field 'ut_id' in header 'utmpx.h'
13529 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13530 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13531 echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
13532echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6
13533 if eval "test \"\${$ossh_varname+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536
13537 cat >conftest.$ac_ext <<_ACEOF
13538#line $LINENO "configure"
13539#include "confdefs.h"
13540#include <utmpx.h>
13541
13542_ACEOF
13543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13544 egrep "ut_id" >/dev/null 2>&1; then
13545 eval "$ossh_varname=yes"
13546else
13547 eval "$ossh_varname=no"
13548fi
13549rm -f conftest*
13550
13551fi
13552
13553 ossh_result=`eval 'echo $'"$ossh_varname"`
13554 if test -n "`echo $ossh_varname`"; then
13555 echo "$as_me:$LINENO: result: $ossh_result" >&5
13556echo "${ECHO_T}$ossh_result" >&6
13557 if test "x$ossh_result" = "xyes"; then
13558 cat >>confdefs.h <<\_ACEOF
13559#define HAVE_ID_IN_UTMPX 1
13560_ACEOF
13561
13562 fi
13563 else
13564 echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566 fi
13567
13568
13569# look for field 'ut_addr' in header 'utmp.h'
13570 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13571 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13572 echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
13573echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6
13574 if eval "test \"\${$ossh_varname+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577
13578 cat >conftest.$ac_ext <<_ACEOF
13579#line $LINENO "configure"
13580#include "confdefs.h"
13581#include <utmp.h>
13582
13583_ACEOF
13584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 egrep "ut_addr" >/dev/null 2>&1; then
13586 eval "$ossh_varname=yes"
13587else
13588 eval "$ossh_varname=no"
13589fi
13590rm -f conftest*
13591
13592fi
13593
13594 ossh_result=`eval 'echo $'"$ossh_varname"`
13595 if test -n "`echo $ossh_varname`"; then
13596 echo "$as_me:$LINENO: result: $ossh_result" >&5
13597echo "${ECHO_T}$ossh_result" >&6
13598 if test "x$ossh_result" = "xyes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600#define HAVE_ADDR_IN_UTMP 1
13601_ACEOF
13602
13603 fi
13604 else
13605 echo "$as_me:$LINENO: result: no" >&5
13606echo "${ECHO_T}no" >&6
13607 fi
13608
13609
13610# look for field 'ut_addr' in header 'utmpx.h'
13611 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13612 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13613 echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
13614echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6
13615 if eval "test \"\${$ossh_varname+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618
13619 cat >conftest.$ac_ext <<_ACEOF
13620#line $LINENO "configure"
13621#include "confdefs.h"
13622#include <utmpx.h>
13623
13624_ACEOF
13625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 egrep "ut_addr" >/dev/null 2>&1; then
13627 eval "$ossh_varname=yes"
13628else
13629 eval "$ossh_varname=no"
13630fi
13631rm -f conftest*
13632
13633fi
13634
13635 ossh_result=`eval 'echo $'"$ossh_varname"`
13636 if test -n "`echo $ossh_varname`"; then
13637 echo "$as_me:$LINENO: result: $ossh_result" >&5
13638echo "${ECHO_T}$ossh_result" >&6
13639 if test "x$ossh_result" = "xyes"; then
13640 cat >>confdefs.h <<\_ACEOF
13641#define HAVE_ADDR_IN_UTMPX 1
13642_ACEOF
13643
13644 fi
13645 else
13646 echo "$as_me:$LINENO: result: no" >&5
13647echo "${ECHO_T}no" >&6
13648 fi
13649
13650
13651# look for field 'ut_addr_v6' in header 'utmp.h'
13652 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13653 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13654 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
13655echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6
13656 if eval "test \"\${$ossh_varname+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659
13660 cat >conftest.$ac_ext <<_ACEOF
13661#line $LINENO "configure"
13662#include "confdefs.h"
13663#include <utmp.h>
13664
13665_ACEOF
13666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "ut_addr_v6" >/dev/null 2>&1; then
13668 eval "$ossh_varname=yes"
13669else
13670 eval "$ossh_varname=no"
13671fi
13672rm -f conftest*
13673
13674fi
13675
13676 ossh_result=`eval 'echo $'"$ossh_varname"`
13677 if test -n "`echo $ossh_varname`"; then
13678 echo "$as_me:$LINENO: result: $ossh_result" >&5
13679echo "${ECHO_T}$ossh_result" >&6
13680 if test "x$ossh_result" = "xyes"; then
13681 cat >>confdefs.h <<\_ACEOF
13682#define HAVE_ADDR_V6_IN_UTMP 1
13683_ACEOF
13684
13685 fi
13686 else
13687 echo "$as_me:$LINENO: result: no" >&5
13688echo "${ECHO_T}no" >&6
13689 fi
13690
13691
13692# look for field 'ut_addr_v6' in header 'utmpx.h'
13693 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13694 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13695 echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
13696echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6
13697 if eval "test \"\${$ossh_varname+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700
13701 cat >conftest.$ac_ext <<_ACEOF
13702#line $LINENO "configure"
13703#include "confdefs.h"
13704#include <utmpx.h>
13705
13706_ACEOF
13707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708 egrep "ut_addr_v6" >/dev/null 2>&1; then
13709 eval "$ossh_varname=yes"
13710else
13711 eval "$ossh_varname=no"
13712fi
13713rm -f conftest*
13714
13715fi
13716
13717 ossh_result=`eval 'echo $'"$ossh_varname"`
13718 if test -n "`echo $ossh_varname`"; then
13719 echo "$as_me:$LINENO: result: $ossh_result" >&5
13720echo "${ECHO_T}$ossh_result" >&6
13721 if test "x$ossh_result" = "xyes"; then
13722 cat >>confdefs.h <<\_ACEOF
13723#define HAVE_ADDR_V6_IN_UTMPX 1
13724_ACEOF
13725
13726 fi
13727 else
13728 echo "$as_me:$LINENO: result: no" >&5
13729echo "${ECHO_T}no" >&6
13730 fi
13731
13732
13733# look for field 'ut_exit' in header 'utmp.h'
13734 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13735 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13736 echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
13737echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6
13738 if eval "test \"\${$ossh_varname+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741
13742 cat >conftest.$ac_ext <<_ACEOF
13743#line $LINENO "configure"
13744#include "confdefs.h"
13745#include <utmp.h>
13746
13747_ACEOF
13748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 egrep "ut_exit" >/dev/null 2>&1; then
13750 eval "$ossh_varname=yes"
13751else
13752 eval "$ossh_varname=no"
13753fi
13754rm -f conftest*
13755
13756fi
13757
13758 ossh_result=`eval 'echo $'"$ossh_varname"`
13759 if test -n "`echo $ossh_varname`"; then
13760 echo "$as_me:$LINENO: result: $ossh_result" >&5
13761echo "${ECHO_T}$ossh_result" >&6
13762 if test "x$ossh_result" = "xyes"; then
13763 cat >>confdefs.h <<\_ACEOF
13764#define HAVE_EXIT_IN_UTMP 1
13765_ACEOF
13766
13767 fi
13768 else
13769 echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771 fi
13772
13773
13774# look for field 'ut_time' in header 'utmp.h'
13775 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13776 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13777 echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
13778echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6
13779 if eval "test \"\${$ossh_varname+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781else
13782
13783 cat >conftest.$ac_ext <<_ACEOF
13784#line $LINENO "configure"
13785#include "confdefs.h"
13786#include <utmp.h>
13787
13788_ACEOF
13789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 egrep "ut_time" >/dev/null 2>&1; then
13791 eval "$ossh_varname=yes"
13792else
13793 eval "$ossh_varname=no"
13794fi
13795rm -f conftest*
13796
13797fi
13798
13799 ossh_result=`eval 'echo $'"$ossh_varname"`
13800 if test -n "`echo $ossh_varname`"; then
13801 echo "$as_me:$LINENO: result: $ossh_result" >&5
13802echo "${ECHO_T}$ossh_result" >&6
13803 if test "x$ossh_result" = "xyes"; then
13804 cat >>confdefs.h <<\_ACEOF
13805#define HAVE_TIME_IN_UTMP 1
13806_ACEOF
13807
13808 fi
13809 else
13810 echo "$as_me:$LINENO: result: no" >&5
13811echo "${ECHO_T}no" >&6
13812 fi
13813
13814
13815# look for field 'ut_time' in header 'utmpx.h'
13816 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13817 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13818 echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
13819echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6
13820 if eval "test \"\${$ossh_varname+set}\" = set"; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823
13824 cat >conftest.$ac_ext <<_ACEOF
13825#line $LINENO "configure"
13826#include "confdefs.h"
13827#include <utmpx.h>
13828
13829_ACEOF
13830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 egrep "ut_time" >/dev/null 2>&1; then
13832 eval "$ossh_varname=yes"
13833else
13834 eval "$ossh_varname=no"
13835fi
13836rm -f conftest*
13837
13838fi
13839
13840 ossh_result=`eval 'echo $'"$ossh_varname"`
13841 if test -n "`echo $ossh_varname`"; then
13842 echo "$as_me:$LINENO: result: $ossh_result" >&5
13843echo "${ECHO_T}$ossh_result" >&6
13844 if test "x$ossh_result" = "xyes"; then
13845 cat >>confdefs.h <<\_ACEOF
13846#define HAVE_TIME_IN_UTMPX 1
13847_ACEOF
13848
13849 fi
13850 else
13851 echo "$as_me:$LINENO: result: no" >&5
13852echo "${ECHO_T}no" >&6
13853 fi
13854
13855
13856# look for field 'ut_tv' in header 'utmpx.h'
13857 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13858 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13859 echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
13860echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6
13861 if eval "test \"\${$ossh_varname+set}\" = set"; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863else
13864
13865 cat >conftest.$ac_ext <<_ACEOF
13866#line $LINENO "configure"
13867#include "confdefs.h"
13868#include <utmpx.h>
13869
13870_ACEOF
13871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 egrep "ut_tv" >/dev/null 2>&1; then
13873 eval "$ossh_varname=yes"
13874else
13875 eval "$ossh_varname=no"
13876fi
13877rm -f conftest*
13878
13879fi
13880
13881 ossh_result=`eval 'echo $'"$ossh_varname"`
13882 if test -n "`echo $ossh_varname`"; then
13883 echo "$as_me:$LINENO: result: $ossh_result" >&5
13884echo "${ECHO_T}$ossh_result" >&6
13885 if test "x$ossh_result" = "xyes"; then
13886 cat >>confdefs.h <<\_ACEOF
13887#define HAVE_TV_IN_UTMPX 1
13888_ACEOF
13889
13890 fi
13891 else
13892 echo "$as_me:$LINENO: result: no" >&5
13893echo "${ECHO_T}no" >&6
13894 fi
13895
13896
13897echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13898echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13899if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 cat >conftest.$ac_ext <<_ACEOF
13903#line $LINENO "configure"
13904#include "confdefs.h"
13905$ac_includes_default
13906#ifdef F77_DUMMY_MAIN
13907# ifdef __cplusplus
13908 extern "C"
13909# endif
13910 int F77_DUMMY_MAIN() { return 1; }
13911#endif
13912int
13913main ()
13914{
13915static struct stat ac_aggr;
13916if (ac_aggr.st_blksize)
13917return 0;
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
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_member_struct_stat_st_blksize=yes
13935else
13936 echo "$as_me: failed program was:" >&5
13937cat conftest.$ac_ext >&5
13938ac_cv_member_struct_stat_st_blksize=no
13939fi
13940rm -f conftest.$ac_objext conftest.$ac_ext
13941fi
13942echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13943echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13944if test $ac_cv_member_struct_stat_st_blksize = yes; then
13945
13946cat >>confdefs.h <<_ACEOF
13947#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13948_ACEOF
13949
13950
13951fi
13952
13953
13954echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13955echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13956if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959
13960 cat >conftest.$ac_ext <<_ACEOF
13961#line $LINENO "configure"
13962#include "confdefs.h"
13963
13964#include <sys/types.h>
13965#include <sys/socket.h>
13966
13967#ifdef F77_DUMMY_MAIN
13968# ifdef __cplusplus
13969 extern "C"
13970# endif
13971 int F77_DUMMY_MAIN() { return 1; }
13972#endif
13973int
13974main ()
13975{
13976 struct sockaddr_storage s; s.ss_family = 1;
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_have_ss_family_in_struct_ss="yes"
13994else
13995 echo "$as_me: failed program was:" >&5
13996cat conftest.$ac_ext >&5
13997 ac_cv_have_ss_family_in_struct_ss="no"
13998fi
13999rm -f conftest.$ac_objext conftest.$ac_ext
14000
14001fi
14002echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14003echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14004if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14005 cat >>confdefs.h <<\_ACEOF
14006#define HAVE_SS_FAMILY_IN_SS 1
14007_ACEOF
14008
14009fi
14010
14011echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
14012echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14013if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016
14017 cat >conftest.$ac_ext <<_ACEOF
14018#line $LINENO "configure"
14019#include "confdefs.h"
14020
14021#include <sys/types.h>
14022#include <sys/socket.h>
14023
14024#ifdef F77_DUMMY_MAIN
14025# ifdef __cplusplus
14026 extern "C"
14027# endif
14028 int F77_DUMMY_MAIN() { return 1; }
14029#endif
14030int
14031main ()
14032{
14033 struct sockaddr_storage s; s.__ss_family = 1;
14034 ;
14035 return 0;
14036}
14037_ACEOF
14038rm -f conftest.$ac_objext
14039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_have___ss_family_in_struct_ss="yes"
14051else
14052 echo "$as_me: failed program was:" >&5
14053cat conftest.$ac_ext >&5
14054 ac_cv_have___ss_family_in_struct_ss="no"
14055
14056fi
14057rm -f conftest.$ac_objext conftest.$ac_ext
14058
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14061echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14062if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14063 cat >>confdefs.h <<\_ACEOF
14064#define HAVE___SS_FAMILY_IN_SS 1
14065_ACEOF
14066
14067fi
14068
14069echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
14070echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14071if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074
14075 cat >conftest.$ac_ext <<_ACEOF
14076#line $LINENO "configure"
14077#include "confdefs.h"
14078
14079#include <pwd.h>
14080
14081#ifdef F77_DUMMY_MAIN
14082# ifdef __cplusplus
14083 extern "C"
14084# endif
14085 int F77_DUMMY_MAIN() { return 1; }
14086#endif
14087int
14088main ()
14089{
14090 struct passwd p; p.pw_class = 0;
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_have_pw_class_in_struct_passwd="yes"
14108else
14109 echo "$as_me: failed program was:" >&5
14110cat conftest.$ac_ext >&5
14111 ac_cv_have_pw_class_in_struct_passwd="no"
14112
14113fi
14114rm -f conftest.$ac_objext conftest.$ac_ext
14115
14116fi
14117echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14118echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14119if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14120 cat >>confdefs.h <<\_ACEOF
14121#define HAVE_PW_CLASS_IN_PASSWD 1
14122_ACEOF
14123
14124fi
14125
14126echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
14127echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14128if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131
14132 cat >conftest.$ac_ext <<_ACEOF
14133#line $LINENO "configure"
14134#include "confdefs.h"
14135
14136#include <pwd.h>
14137
14138#ifdef F77_DUMMY_MAIN
14139# ifdef __cplusplus
14140 extern "C"
14141# endif
14142 int F77_DUMMY_MAIN() { return 1; }
14143#endif
14144int
14145main ()
14146{
14147 struct passwd p; p.pw_expire = 0;
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
14153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_have_pw_expire_in_struct_passwd="yes"
14165else
14166 echo "$as_me: failed program was:" >&5
14167cat conftest.$ac_ext >&5
14168 ac_cv_have_pw_expire_in_struct_passwd="no"
14169
14170fi
14171rm -f conftest.$ac_objext conftest.$ac_ext
14172
14173fi
14174echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14175echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14176if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14177 cat >>confdefs.h <<\_ACEOF
14178#define HAVE_PW_EXPIRE_IN_PASSWD 1
14179_ACEOF
14180
14181fi
14182
14183echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
14184echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14185if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188
14189 cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191#include "confdefs.h"
14192
14193#include <pwd.h>
14194
14195#ifdef F77_DUMMY_MAIN
14196# ifdef __cplusplus
14197 extern "C"
14198# endif
14199 int F77_DUMMY_MAIN() { return 1; }
14200#endif
14201int
14202main ()
14203{
14204 struct passwd p; p.pw_change = 0;
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext
14210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_have_pw_change_in_struct_passwd="yes"
14222else
14223 echo "$as_me: failed program was:" >&5
14224cat conftest.$ac_ext >&5
14225 ac_cv_have_pw_change_in_struct_passwd="no"
14226
14227fi
14228rm -f conftest.$ac_objext conftest.$ac_ext
14229
14230fi
14231echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14232echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14233if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14234 cat >>confdefs.h <<\_ACEOF
14235#define HAVE_PW_CHANGE_IN_PASSWD 1
14236_ACEOF
14237
14238fi
14239
14240echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
14241echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14242if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245
14246 if test "$cross_compiling" = yes; then
14247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14248echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14249 { (exit 1); exit 1; }; }
14250else
14251 cat >conftest.$ac_ext <<_ACEOF
14252#line $LINENO "configure"
14253#include "confdefs.h"
14254
14255#include <sys/types.h>
14256#include <sys/socket.h>
14257#include <sys/uio.h>
14258int main() {
14259#ifdef msg_accrights
14260exit(1);
14261#endif
14262struct msghdr m;
14263m.msg_accrights = 0;
14264exit(0);
14265}
14266
14267_ACEOF
14268rm -f conftest$ac_exeext
14269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14270 (eval $ac_link) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && { ac_try='./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_have_accrights_in_msghdr="yes"
14280else
14281 echo "$as_me: program exited with status $ac_status" >&5
14282echo "$as_me: failed program was:" >&5
14283cat conftest.$ac_ext >&5
14284( exit $ac_status )
14285 ac_cv_have_accrights_in_msghdr="no"
14286
14287fi
14288rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14289fi
14290
14291fi
14292echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14293echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14294if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14295 cat >>confdefs.h <<\_ACEOF
14296#define HAVE_ACCRIGHTS_IN_MSGHDR 1
14297_ACEOF
14298
14299fi
14300
14301echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14302echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14303if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306
14307 if test "$cross_compiling" = yes; then
14308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14309echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14310 { (exit 1); exit 1; }; }
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313#line $LINENO "configure"
14314#include "confdefs.h"
14315
14316#include <sys/types.h>
14317#include <sys/socket.h>
14318#include <sys/uio.h>
14319int main() {
14320#ifdef msg_control
14321exit(1);
14322#endif
14323struct msghdr m;
14324m.msg_control = 0;
14325exit(0);
14326}
14327
14328_ACEOF
14329rm -f conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_have_control_in_msghdr="yes"
14341else
14342 echo "$as_me: program exited with status $ac_status" >&5
14343echo "$as_me: failed program was:" >&5
14344cat conftest.$ac_ext >&5
14345( exit $ac_status )
14346 ac_cv_have_control_in_msghdr="no"
14347
14348fi
14349rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350fi
14351
14352fi
14353echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14354echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14355if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14356 cat >>confdefs.h <<\_ACEOF
14357#define HAVE_CONTROL_IN_MSGHDR 1
14358_ACEOF
14359
14360fi
14361
14362echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14363echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14364if test "${ac_cv_libc_defines___progname+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366else
14367
14368 cat >conftest.$ac_ext <<_ACEOF
14369#line $LINENO "configure"
14370#include "confdefs.h"
14371
14372#ifdef F77_DUMMY_MAIN
14373# ifdef __cplusplus
14374 extern "C"
14375# endif
14376 int F77_DUMMY_MAIN() { return 1; }
14377#endif
14378int
14379main ()
14380{
14381 extern char *__progname; printf("%s", __progname);
14382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext conftest$ac_exeext
14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_libc_defines___progname="yes"
14399else
14400 echo "$as_me: failed program was:" >&5
14401cat conftest.$ac_ext >&5
14402 ac_cv_libc_defines___progname="no"
14403
14404fi
14405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14406
14407fi
14408echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14409echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14410if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14411 cat >>confdefs.h <<\_ACEOF
14412#define HAVE___PROGNAME 1
14413_ACEOF
14414
14415fi
14416
14417echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14418echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14419if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424#line $LINENO "configure"
14425#include "confdefs.h"
14426
14427#include <stdio.h>
14428
14429#ifdef F77_DUMMY_MAIN
14430# ifdef __cplusplus
14431 extern "C"
14432# endif
14433 int F77_DUMMY_MAIN() { return 1; }
14434#endif
14435int
14436main ()
14437{
14438 printf("%s", __FUNCTION__);
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest$ac_exeext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_cc_implements___FUNCTION__="yes"
14456else
14457 echo "$as_me: failed program was:" >&5
14458cat conftest.$ac_ext >&5
14459 ac_cv_cc_implements___FUNCTION__="no"
14460
14461fi
14462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14463
14464fi
14465echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14466echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14467if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14468 cat >>confdefs.h <<\_ACEOF
14469#define HAVE___FUNCTION__ 1
14470_ACEOF
14471
14472fi
14473
14474echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14475echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14476if test "${ac_cv_cc_implements___func__+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479
14480 cat >conftest.$ac_ext <<_ACEOF
14481#line $LINENO "configure"
14482#include "confdefs.h"
14483
14484#include <stdio.h>
14485
14486#ifdef F77_DUMMY_MAIN
14487# ifdef __cplusplus
14488 extern "C"
14489# endif
14490 int F77_DUMMY_MAIN() { return 1; }
14491#endif
14492int
14493main ()
14494{
14495 printf("%s", __func__);
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext conftest$ac_exeext
14501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_cc_implements___func__="yes"
14513else
14514 echo "$as_me: failed program was:" >&5
14515cat conftest.$ac_ext >&5
14516 ac_cv_cc_implements___func__="no"
14517
14518fi
14519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14520
14521fi
14522echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14523echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14524if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14525 cat >>confdefs.h <<\_ACEOF
14526#define HAVE___func__ 1
14527_ACEOF
14528
14529fi
14530
14531echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14532echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14533if test "${ac_cv_have_getopt_optreset+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535else
14536
14537 cat >conftest.$ac_ext <<_ACEOF
14538#line $LINENO "configure"
14539#include "confdefs.h"
14540
14541#include <getopt.h>
14542
14543#ifdef F77_DUMMY_MAIN
14544# ifdef __cplusplus
14545 extern "C"
14546# endif
14547 int F77_DUMMY_MAIN() { return 1; }
14548#endif
14549int
14550main ()
14551{
14552 extern int optreset; optreset = 0;
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext conftest$ac_exeext
14558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_have_getopt_optreset="yes"
14570else
14571 echo "$as_me: failed program was:" >&5
14572cat conftest.$ac_ext >&5
14573 ac_cv_have_getopt_optreset="no"
14574
14575fi
14576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14577
14578fi
14579echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14580echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14581if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14582 cat >>confdefs.h <<\_ACEOF
14583#define HAVE_GETOPT_OPTRESET 1
14584_ACEOF
14585
14586fi
14587
14588echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14589echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14590if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593
14594 cat >conftest.$ac_ext <<_ACEOF
14595#line $LINENO "configure"
14596#include "confdefs.h"
14597
14598#ifdef F77_DUMMY_MAIN
14599# ifdef __cplusplus
14600 extern "C"
14601# endif
14602 int F77_DUMMY_MAIN() { return 1; }
14603#endif
14604int
14605main ()
14606{
14607 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext conftest$ac_exeext
14613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -s conftest$ac_exeext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_libc_defines_sys_errlist="yes"
14625else
14626 echo "$as_me: failed program was:" >&5
14627cat conftest.$ac_ext >&5
14628 ac_cv_libc_defines_sys_errlist="no"
14629
14630fi
14631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14632
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14635echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14636if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14637 cat >>confdefs.h <<\_ACEOF
14638#define HAVE_SYS_ERRLIST 1
14639_ACEOF
14640
14641fi
14642
14643
14644echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14645echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14646if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649
14650 cat >conftest.$ac_ext <<_ACEOF
14651#line $LINENO "configure"
14652#include "confdefs.h"
14653
14654#ifdef F77_DUMMY_MAIN
14655# ifdef __cplusplus
14656 extern "C"
14657# endif
14658 int F77_DUMMY_MAIN() { return 1; }
14659#endif
14660int
14661main ()
14662{
14663 extern int sys_nerr; printf("%i", sys_nerr);
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext conftest$ac_exeext
14669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_libc_defines_sys_nerr="yes"
14681else
14682 echo "$as_me: failed program was:" >&5
14683cat conftest.$ac_ext >&5
14684 ac_cv_libc_defines_sys_nerr="no"
14685
14686fi
14687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14688
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14691echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14692if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14693 cat >>confdefs.h <<\_ACEOF
14694#define HAVE_SYS_NERR 1
14695_ACEOF
14696
14697fi
14698
14699SCARD_MSG="no"
14700
14701# Check whether user wants sectok support
14702
14703# Check whether --with-sectok or --without-sectok was given.
14704if test "${with_sectok+set}" = set; then
14705 withval="$with_sectok"
14706
14707 if test "x$withval" != "xno" ; then
14708 if test "x$withval" != "xyes" ; then
14709 CPPFLAGS="$CPPFLAGS -I${withval}"
14710 LDFLAGS="$LDFLAGS -L${withval}"
14711 if test ! -z "$need_dash_r" ; then
14712 LDFLAGS="$LDFLAGS -R${withval}"
14713 fi
14714 if test ! -z "$blibpath" ; then
14715 blibpath="$blibpath:${withval}"
14716 fi
14717 fi
14718
14719for ac_header in sectok.h
14720do
14721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo "$as_me:$LINENO: checking for $ac_header" >&5
14724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14725if eval "test \"\${$as_ac_Header+set}\" = set"; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727fi
14728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730else
14731 # Is the header compilable?
14732echo "$as_me:$LINENO: checking $ac_header usability" >&5
14733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14734cat >conftest.$ac_ext <<_ACEOF
14735#line $LINENO "configure"
14736#include "confdefs.h"
14737$ac_includes_default
14738#include <$ac_header>
14739_ACEOF
14740rm -f conftest.$ac_objext
14741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_header_compiler=yes
14753else
14754 echo "$as_me: failed program was:" >&5
14755cat conftest.$ac_ext >&5
14756ac_header_compiler=no
14757fi
14758rm -f conftest.$ac_objext conftest.$ac_ext
14759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760echo "${ECHO_T}$ac_header_compiler" >&6
14761
14762# Is the header present?
14763echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14765cat >conftest.$ac_ext <<_ACEOF
14766#line $LINENO "configure"
14767#include "confdefs.h"
14768#include <$ac_header>
14769_ACEOF
14770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14772 ac_status=$?
14773 egrep -v '^ *\+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 else
14781 ac_cpp_err=
14782 fi
14783else
14784 ac_cpp_err=yes
14785fi
14786if test -z "$ac_cpp_err"; then
14787 ac_header_preproc=yes
14788else
14789 echo "$as_me: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 ac_header_preproc=no
14792fi
14793rm -f conftest.err conftest.$ac_ext
14794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14795echo "${ECHO_T}$ac_header_preproc" >&6
14796
14797# So? What about this header?
14798case $ac_header_compiler:$ac_header_preproc in
14799 yes:no )
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14804 no:yes )
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14811esac
14812echo "$as_me:$LINENO: checking for $ac_header" >&5
14813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14814if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 eval "$as_ac_Header=$ac_header_preproc"
14818fi
14819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14821
14822fi
14823if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826_ACEOF
14827
14828fi
14829
14830done
14831
14832 if test "$ac_cv_header_sectok_h" != yes; then
14833 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14834echo "$as_me: error: Can't find sectok.h" >&2;}
14835 { (exit 1); exit 1; }; }
14836 fi
14837
14838echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14839echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14840if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 ac_check_lib_save_LIBS=$LIBS
14844LIBS="-lsectok $LIBS"
14845cat >conftest.$ac_ext <<_ACEOF
14846#line $LINENO "configure"
14847#include "confdefs.h"
14848
14849/* Override any gcc2 internal prototype to avoid an error. */
14850#ifdef __cplusplus
14851extern "C"
14852#endif
14853/* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855char sectok_open ();
14856#ifdef F77_DUMMY_MAIN
14857# ifdef __cplusplus
14858 extern "C"
14859# endif
14860 int F77_DUMMY_MAIN() { return 1; }
14861#endif
14862int
14863main ()
14864{
14865sectok_open ();
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext conftest$ac_exeext
14871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_lib_sectok_sectok_open=yes
14883else
14884 echo "$as_me: failed program was:" >&5
14885cat conftest.$ac_ext >&5
14886ac_cv_lib_sectok_sectok_open=no
14887fi
14888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14889LIBS=$ac_check_lib_save_LIBS
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14892echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14893if test $ac_cv_lib_sectok_sectok_open = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895#define HAVE_LIBSECTOK 1
14896_ACEOF
14897
14898 LIBS="-lsectok $LIBS"
14899
14900fi
14901
14902 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14903 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14904echo "$as_me: error: Can't find libsectok" >&2;}
14905 { (exit 1); exit 1; }; }
14906 fi
14907 cat >>confdefs.h <<\_ACEOF
14908#define SMARTCARD 1
14909_ACEOF
14910
14911 cat >>confdefs.h <<\_ACEOF
14912#define USE_SECTOK 1
14913_ACEOF
14914
14915 SCARD_MSG="yes, using sectok"
14916 fi
14917
14918
14919fi;
14920
14921# Check whether user wants OpenSC support
14922
14923# Check whether --with-opensc or --without-opensc was given.
14924if test "${with_opensc+set}" = set; then
14925 withval="$with_opensc"
14926 opensc_config_prefix="$withval"
14927else
14928 opensc_config_prefix=""
14929fi;
14930if test x$opensc_config_prefix != x ; then
14931 OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config
14932 # Extract the first word of "opensc-config", so it can be a program name with args.
14933set dummy opensc-config; ac_word=$2
14934echo "$as_me:$LINENO: checking for $ac_word" >&5
14935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14936if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939 case $OPENSC_CONFIG in
14940 [\\/]* | ?:[\\/]*)
14941 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14942 ;;
14943 *)
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945for as_dir in $PATH
14946do
14947 IFS=$as_save_IFS
14948 test -z "$as_dir" && as_dir=.
14949 for ac_exec_ext in '' $ac_executable_extensions; do
14950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14951 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14953 break 2
14954 fi
14955done
14956done
14957
14958 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14959 ;;
14960esac
14961fi
14962OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14963
14964if test -n "$OPENSC_CONFIG"; then
14965 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14966echo "${ECHO_T}$OPENSC_CONFIG" >&6
14967else
14968 echo "$as_me:$LINENO: result: no" >&5
14969echo "${ECHO_T}no" >&6
14970fi
14971
14972 if test "$OPENSC_CONFIG" != "no"; then
14973 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14974 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14975 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14976 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
14977 cat >>confdefs.h <<\_ACEOF
14978#define SMARTCARD 1
14979_ACEOF
14980
14981 cat >>confdefs.h <<\_ACEOF
14982#define USE_OPENSC 1
14983_ACEOF
14984
14985 SCARD_MSG="yes, using OpenSC"
14986 fi
14987fi
14988
14989# Check whether user wants Kerberos 5 support
14990KRB5_MSG="no"
14991
14992# Check whether --with-kerberos5 or --without-kerberos5 was given.
14993if test "${with_kerberos5+set}" = set; then
14994 withval="$with_kerberos5"
14995
14996 if test "x$withval" != "xno" ; then
14997 if test "x$withval" = "xyes" ; then
14998 KRB5ROOT="/usr/local"
14999 else
15000 KRB5ROOT=${withval}
15001 fi
15002 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15003 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15004 cat >>confdefs.h <<\_ACEOF
15005#define KRB5 1
15006_ACEOF
15007
15008 KRB5_MSG="yes"
15009 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
15010echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012#line $LINENO "configure"
15013#include "confdefs.h"
15014 #include <krb5.h>
15015#ifdef F77_DUMMY_MAIN
15016# ifdef __cplusplus
15017 extern "C"
15018# endif
15019 int F77_DUMMY_MAIN() { return 1; }
15020#endif
15021int
15022main ()
15023{
15024 char *tmp = heimdal_version;
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 echo "$as_me:$LINENO: result: yes" >&5
15042echo "${ECHO_T}yes" >&6
15043 cat >>confdefs.h <<\_ACEOF
15044#define HEIMDAL 1
15045_ACEOF
15046
15047 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15048
15049else
15050 echo "$as_me: failed program was:" >&5
15051cat conftest.$ac_ext >&5
15052 echo "$as_me:$LINENO: result: no" >&5
15053echo "${ECHO_T}no" >&6
15054 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15055
15056
15057fi
15058rm -f conftest.$ac_objext conftest.$ac_ext
15059 if test ! -z "$need_dash_r" ; then
15060 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15061 fi
15062 if test ! -z "$blibpath" ; then
15063 blibpath="$blibpath:${KRB5ROOT}/lib"
15064 fi
15065
15066echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15067echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15068if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070else
15071 ac_check_lib_save_LIBS=$LIBS
15072LIBS="-lresolv $LIBS"
15073cat >conftest.$ac_ext <<_ACEOF
15074#line $LINENO "configure"
15075#include "confdefs.h"
15076
15077/* Override any gcc2 internal prototype to avoid an error. */
15078#ifdef __cplusplus
15079extern "C"
15080#endif
15081/* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15083char dn_expand ();
15084#ifdef F77_DUMMY_MAIN
15085# ifdef __cplusplus
15086 extern "C"
15087# endif
15088 int F77_DUMMY_MAIN() { return 1; }
15089#endif
15090int
15091main ()
15092{
15093dn_expand ();
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_lib_resolv_dn_expand=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113cat conftest.$ac_ext >&5
15114ac_cv_lib_resolv_dn_expand=no
15115fi
15116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117LIBS=$ac_check_lib_save_LIBS
15118fi
15119echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15120echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15121if test $ac_cv_lib_resolv_dn_expand = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123#define HAVE_LIBRESOLV 1
15124_ACEOF
15125
15126 LIBS="-lresolv $LIBS"
15127
15128fi
15129
15130
15131 KRB5=yes
15132 fi
15133
15134
15135fi;
15136# Check whether user wants Kerberos 4 support
15137KRB4_MSG="no"
15138
15139# Check whether --with-kerberos4 or --without-kerberos4 was given.
15140if test "${with_kerberos4+set}" = set; then
15141 withval="$with_kerberos4"
15142
15143 if test "x$withval" != "xno" ; then
15144 if test "x$withval" != "xyes" ; then
15145 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15146 LDFLAGS="$LDFLAGS -L${withval}/lib"
15147 if test ! -z "$need_dash_r" ; then
15148 LDFLAGS="$LDFLAGS -R${withval}/lib"
15149 fi
15150 if test ! -z "$blibpath" ; then
15151 blibpath="$blibpath:${withval}/lib"
15152 fi
15153 else
15154 if test -d /usr/include/kerberosIV ; then
15155 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
15156 fi
15157 fi
15158
15159
15160for ac_header in krb.h
15161do
15162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15166if eval "test \"\${$as_ac_Header+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171else
15172 # Is the header compilable?
15173echo "$as_me:$LINENO: checking $ac_header usability" >&5
15174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15175cat >conftest.$ac_ext <<_ACEOF
15176#line $LINENO "configure"
15177#include "confdefs.h"
15178$ac_includes_default
15179#include <$ac_header>
15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194else
15195 echo "$as_me: failed program was:" >&5
15196cat conftest.$ac_ext >&5
15197ac_header_compiler=no
15198fi
15199rm -f conftest.$ac_objext conftest.$ac_ext
15200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201echo "${ECHO_T}$ac_header_compiler" >&6
15202
15203# Is the header present?
15204echo "$as_me:$LINENO: checking $ac_header presence" >&5
15205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15206cat >conftest.$ac_ext <<_ACEOF
15207#line $LINENO "configure"
15208#include "confdefs.h"
15209#include <$ac_header>
15210_ACEOF
15211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 egrep -v '^ *\+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 else
15222 ac_cpp_err=
15223 fi
15224else
15225 ac_cpp_err=yes
15226fi
15227if test -z "$ac_cpp_err"; then
15228 ac_header_preproc=yes
15229else
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 ac_header_preproc=no
15233fi
15234rm -f conftest.err conftest.$ac_ext
15235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236echo "${ECHO_T}$ac_header_preproc" >&6
15237
15238# So? What about this header?
15239case $ac_header_compiler:$ac_header_preproc in
15240 yes:no )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15245 no:yes )
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15252esac
15253echo "$as_me:$LINENO: checking for $ac_header" >&5
15254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257else
15258 eval "$as_ac_Header=$ac_header_preproc"
15259fi
15260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267_ACEOF
15268
15269fi
15270
15271done
15272
15273 if test "$ac_cv_header_krb_h" != yes; then
15274 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
15275echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
15276 fi
15277
15278echo "$as_me:$LINENO: checking for main in -lkrb" >&5
15279echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
15280if test "${ac_cv_lib_krb_main+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 ac_check_lib_save_LIBS=$LIBS
15284LIBS="-lkrb $LIBS"
15285cat >conftest.$ac_ext <<_ACEOF
15286#line $LINENO "configure"
15287#include "confdefs.h"
15288
15289
15290#ifdef F77_DUMMY_MAIN
15291# ifdef __cplusplus
15292 extern "C"
15293# endif
15294 int F77_DUMMY_MAIN() { return 1; }
15295#endif
15296int
15297main ()
15298{
15299main ();
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304rm -f conftest.$ac_objext conftest$ac_exeext
15305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_lib_krb_main=yes
15317else
15318 echo "$as_me: failed program was:" >&5
15319cat conftest.$ac_ext >&5
15320ac_cv_lib_krb_main=no
15321fi
15322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323LIBS=$ac_check_lib_save_LIBS
15324fi
15325echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15326echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15327if test $ac_cv_lib_krb_main = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329#define HAVE_LIBKRB 1
15330_ACEOF
15331
15332 LIBS="-lkrb $LIBS"
15333
15334fi
15335
15336 if test "$ac_cv_lib_krb_main" != yes; then
15337
15338echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15339echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15340if test "${ac_cv_lib_krb4_main+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 ac_check_lib_save_LIBS=$LIBS
15344LIBS="-lkrb4 $LIBS"
15345cat >conftest.$ac_ext <<_ACEOF
15346#line $LINENO "configure"
15347#include "confdefs.h"
15348
15349
15350#ifdef F77_DUMMY_MAIN
15351# ifdef __cplusplus
15352 extern "C"
15353# endif
15354 int F77_DUMMY_MAIN() { return 1; }
15355#endif
15356int
15357main ()
15358{
15359main ();
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext conftest$ac_exeext
15365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_krb4_main=yes
15377else
15378 echo "$as_me: failed program was:" >&5
15379cat conftest.$ac_ext >&5
15380ac_cv_lib_krb4_main=no
15381fi
15382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383LIBS=$ac_check_lib_save_LIBS
15384fi
15385echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15386echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15387if test $ac_cv_lib_krb4_main = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389#define HAVE_LIBKRB4 1
15390_ACEOF
15391
15392 LIBS="-lkrb4 $LIBS"
15393
15394fi
15395
15396 if test "$ac_cv_lib_krb4_main" != yes; then
15397 { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5
15398echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15399 else
15400 KLIBS="-lkrb4"
15401 fi
15402 else
15403 KLIBS="-lkrb"
15404 fi
15405
15406echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15407echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15408if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else
15411 ac_check_lib_save_LIBS=$LIBS
15412LIBS="-ldes $LIBS"
15413cat >conftest.$ac_ext <<_ACEOF
15414#line $LINENO "configure"
15415#include "confdefs.h"
15416
15417/* Override any gcc2 internal prototype to avoid an error. */
15418#ifdef __cplusplus
15419extern "C"
15420#endif
15421/* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423char des_cbc_encrypt ();
15424#ifdef F77_DUMMY_MAIN
15425# ifdef __cplusplus
15426 extern "C"
15427# endif
15428 int F77_DUMMY_MAIN() { return 1; }
15429#endif
15430int
15431main ()
15432{
15433des_cbc_encrypt ();
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext conftest$ac_exeext
15439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_des_des_cbc_encrypt=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453cat conftest.$ac_ext >&5
15454ac_cv_lib_des_des_cbc_encrypt=no
15455fi
15456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15457LIBS=$ac_check_lib_save_LIBS
15458fi
15459echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15460echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15461if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15462 cat >>confdefs.h <<_ACEOF
15463#define HAVE_LIBDES 1
15464_ACEOF
15465
15466 LIBS="-ldes $LIBS"
15467
15468fi
15469
15470 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15471
15472echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15473echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15474if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 ac_check_lib_save_LIBS=$LIBS
15478LIBS="-ldes425 $LIBS"
15479cat >conftest.$ac_ext <<_ACEOF
15480#line $LINENO "configure"
15481#include "confdefs.h"
15482
15483/* Override any gcc2 internal prototype to avoid an error. */
15484#ifdef __cplusplus
15485extern "C"
15486#endif
15487/* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15489char des_cbc_encrypt ();
15490#ifdef F77_DUMMY_MAIN
15491# ifdef __cplusplus
15492 extern "C"
15493# endif
15494 int F77_DUMMY_MAIN() { return 1; }
15495#endif
15496int
15497main ()
15498{
15499des_cbc_encrypt ();
15500 ;
15501 return 0;
15502}
15503_ACEOF
15504rm -f conftest.$ac_objext conftest$ac_exeext
15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_lib_des425_des_cbc_encrypt=yes
15517else
15518 echo "$as_me: failed program was:" >&5
15519cat conftest.$ac_ext >&5
15520ac_cv_lib_des425_des_cbc_encrypt=no
15521fi
15522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15523LIBS=$ac_check_lib_save_LIBS
15524fi
15525echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15526echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15527if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529#define HAVE_LIBDES425 1
15530_ACEOF
15531
15532 LIBS="-ldes425 $LIBS"
15533
15534fi
15535
15536 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
15537 { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5
15538echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15539 else
15540 KLIBS="-ldes425"
15541 fi
15542 else
15543 KLIBS="-ldes"
15544 fi
15545
15546echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15547echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15548if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 ac_check_lib_save_LIBS=$LIBS
15552LIBS="-lresolv $LIBS"
15553cat >conftest.$ac_ext <<_ACEOF
15554#line $LINENO "configure"
15555#include "confdefs.h"
15556
15557/* Override any gcc2 internal prototype to avoid an error. */
15558#ifdef __cplusplus
15559extern "C"
15560#endif
15561/* We use char because int might match the return type of a gcc2
15562 builtin and then its argument prototype would still apply. */
15563char dn_expand ();
15564#ifdef F77_DUMMY_MAIN
15565# ifdef __cplusplus
15566 extern "C"
15567# endif
15568 int F77_DUMMY_MAIN() { return 1; }
15569#endif
15570int
15571main ()
15572{
15573dn_expand ();
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_resolv_dn_expand=yes
15591else
15592 echo "$as_me: failed program was:" >&5
15593cat conftest.$ac_ext >&5
15594ac_cv_lib_resolv_dn_expand=no
15595fi
15596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597LIBS=$ac_check_lib_save_LIBS
15598fi
15599echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15600echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15601if test $ac_cv_lib_resolv_dn_expand = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603#define HAVE_LIBRESOLV 1
15604_ACEOF
15605
15606 LIBS="-lresolv $LIBS"
15607
15608fi
15609
15610 KRB4=yes
15611 KRB4_MSG="yes"
15612 cat >>confdefs.h <<\_ACEOF
15613#define KRB4 1
15614_ACEOF
15615
15616 fi
15617
15618
15619fi;
15620
15621# Check whether user wants AFS support
15622AFS_MSG="no"
15623
15624# Check whether --with-afs or --without-afs was given.
15625if test "${with_afs+set}" = set; then
15626 withval="$with_afs"
15627
15628 if test "x$withval" != "xno" ; then
15629
15630 if test "x$withval" != "xyes" ; then
15631 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15632 LDFLAGS="$LDFLAGS -L${withval}/lib"
15633 fi
15634
15635 if test -z "$KRB4" ; then
15636 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15637echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15638 fi
15639
15640 LIBS="-lkafs $LIBS"
15641 if test ! -z "$AFS_LIBS" ; then
15642 LIBS="$LIBS $AFS_LIBS"
15643 fi
15644 cat >>confdefs.h <<\_ACEOF
15645#define AFS 1
15646_ACEOF
15647
15648 AFS_MSG="yes"
15649 fi
15650
15651
15652fi;
15653LIBS="$LIBS $KLIBS $K5LIBS"
15654
15655# Looking for programs, paths and files
15656
15657PRIVSEP_PATH=/var/empty
15658
15659# Check whether --with-privsep-path or --without-privsep-path was given.
15660if test "${with_privsep_path+set}" = set; then
15661 withval="$with_privsep_path"
15662
15663 if test "x$withval" != "$no" ; then
15664 PRIVSEP_PATH=$withval
15665 fi
15666
15667
15668fi;
15669
15670
15671
15672# Check whether --with-xauth or --without-xauth was given.
15673if test "${with_xauth+set}" = set; then
15674 withval="$with_xauth"
15675
15676 if test "x$withval" != "xno" ; then
15677 xauth_path=$withval
15678 fi
15679
15680else
15681
15682 TestPath="$PATH"
15683 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15684 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15685 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15686 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15687 # Extract the first word of "xauth", so it can be a program name with args.
15688set dummy xauth; ac_word=$2
15689echo "$as_me:$LINENO: checking for $ac_word" >&5
15690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15691if test "${ac_cv_path_xauth_path+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694 case $xauth_path in
15695 [\\/]* | ?:[\\/]*)
15696 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15697 ;;
15698 *)
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700for as_dir in $TestPath
15701do
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15709 fi
15710done
15711done
15712
15713 ;;
15714esac
15715fi
15716xauth_path=$ac_cv_path_xauth_path
15717
15718if test -n "$xauth_path"; then
15719 echo "$as_me:$LINENO: result: $xauth_path" >&5
15720echo "${ECHO_T}$xauth_path" >&6
15721else
15722 echo "$as_me:$LINENO: result: no" >&5
15723echo "${ECHO_T}no" >&6
15724fi
15725
15726 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15727 xauth_path="/usr/openwin/bin/xauth"
15728 fi
15729
15730
15731fi;
15732
15733if test -z "$xauth_path" ; then
15734 XAUTH_PATH="undefined"
15735
15736else
15737 cat >>confdefs.h <<_ACEOF
15738#define XAUTH_PATH "$xauth_path"
15739_ACEOF
15740
15741 XAUTH_PATH=$xauth_path
15742
15743fi
15744
15745# Check for mail directory (last resort if we cannot get it from headers)
15746if test ! -z "$MAIL" ; then
15747 maildir=`dirname $MAIL`
15748 cat >>confdefs.h <<_ACEOF
15749#define MAIL_DIRECTORY "$maildir"
15750_ACEOF
15751
15752fi
15753
15754if test -z "$no_dev_ptmx" ; then
15755 if test "x$disable_ptmx_check" != "xyes" ; then
15756 echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
15757echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15758if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760else
15761 test "$cross_compiling" = yes &&
15762 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15763echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15764 { (exit 1); exit 1; }; }
15765if test -r ""/dev/ptmx""; then
15766 ac_cv_file___dev_ptmx_=yes
15767else
15768 ac_cv_file___dev_ptmx_=no
15769fi
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15772echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15773if test $ac_cv_file___dev_ptmx_ = yes; then
15774
15775 cat >>confdefs.h <<_ACEOF
15776#define HAVE_DEV_PTMX 1
15777_ACEOF
15778
15779 have_dev_ptmx=1
15780
15781
15782fi
15783
15784 fi
15785fi
15786echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15787echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15788if test "${ac_cv_file___dev_ptc_+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 test "$cross_compiling" = yes &&
15792 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15793echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15794 { (exit 1); exit 1; }; }
15795if test -r ""/dev/ptc""; then
15796 ac_cv_file___dev_ptc_=yes
15797else
15798 ac_cv_file___dev_ptc_=no
15799fi
15800fi
15801echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15802echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15803if test $ac_cv_file___dev_ptc_ = yes; then
15804
15805 cat >>confdefs.h <<_ACEOF
15806#define HAVE_DEV_PTS_AND_PTC 1
15807_ACEOF
15808
15809 have_dev_ptc=1
15810
15811
15812fi
15813
15814
15815# Options from here on. Some of these are preset by platform above
15816
15817# Check whether --with-mantype or --without-mantype was given.
15818if test "${with_mantype+set}" = set; then
15819 withval="$with_mantype"
15820
15821 case "$withval" in
15822 man|cat|doc)
15823 MANTYPE=$withval
15824 ;;
15825 *)
15826 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15827echo "$as_me: error: invalid man type: $withval" >&2;}
15828 { (exit 1); exit 1; }; }
15829 ;;
15830 esac
15831
15832
15833fi;
15834if test -z "$MANTYPE"; then
15835 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15836 for ac_prog in nroff awf
15837do
15838 # Extract the first word of "$ac_prog", so it can be a program name with args.
15839set dummy $ac_prog; ac_word=$2
15840echo "$as_me:$LINENO: checking for $ac_word" >&5
15841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842if test "${ac_cv_path_NROFF+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844else
15845 case $NROFF in
15846 [\\/]* | ?:[\\/]*)
15847 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15848 ;;
15849 *)
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851for as_dir in $TestPath
15852do
15853 IFS=$as_save_IFS
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15859 break 2
15860 fi
15861done
15862done
15863
15864 ;;
15865esac
15866fi
15867NROFF=$ac_cv_path_NROFF
15868
15869if test -n "$NROFF"; then
15870 echo "$as_me:$LINENO: result: $NROFF" >&5
15871echo "${ECHO_T}$NROFF" >&6
15872else
15873 echo "$as_me:$LINENO: result: no" >&5
15874echo "${ECHO_T}no" >&6
15875fi
15876
15877 test -n "$NROFF" && break
15878done
15879test -n "$NROFF" || NROFF="/bin/false"
15880
15881 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15882 MANTYPE=doc
15883 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15884 MANTYPE=man
15885 else
15886 MANTYPE=cat
15887 fi
15888fi
15889
15890if test "$MANTYPE" = "doc"; then
15891 mansubdir=man;
15892else
15893 mansubdir=$MANTYPE;
15894fi
15895
15896
15897# Check whether to enable MD5 passwords
15898MD5_MSG="no"
15899
15900# Check whether --with-md5-passwords or --without-md5-passwords was given.
15901if test "${with_md5_passwords+set}" = set; then
15902 withval="$with_md5_passwords"
15903
15904 if test "x$withval" != "xno" ; then
15905 cat >>confdefs.h <<\_ACEOF
15906#define HAVE_MD5_PASSWORDS 1
15907_ACEOF
15908
15909 MD5_MSG="yes"
15910 fi
15911
15912
15913fi;
15914
15915# Whether to disable shadow password support
15916
15917# Check whether --with-shadow or --without-shadow was given.
15918if test "${with_shadow+set}" = set; then
15919 withval="$with_shadow"
15920
15921 if test "x$withval" = "xno" ; then
15922 cat >>confdefs.h <<\_ACEOF
15923#define DISABLE_SHADOW 1
15924_ACEOF
15925
15926 disable_shadow=yes
15927 fi
15928
15929
15930fi;
15931
15932if test -z "$disable_shadow" ; then
15933 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15934echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936#line $LINENO "configure"
15937#include "confdefs.h"
15938
15939#include <sys/types.h>
15940#include <shadow.h>
15941 struct spwd sp;
15942
15943#ifdef F77_DUMMY_MAIN
15944# ifdef __cplusplus
15945 extern "C"
15946# endif
15947 int F77_DUMMY_MAIN() { return 1; }
15948#endif
15949int
15950main ()
15951{
15952 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 sp_expire_available=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972cat conftest.$ac_ext >&5
15973
15974
15975fi
15976rm -f conftest.$ac_objext conftest.$ac_ext
15977
15978 if test "x$sp_expire_available" = "xyes" ; then
15979 echo "$as_me:$LINENO: result: yes" >&5
15980echo "${ECHO_T}yes" >&6
15981 cat >>confdefs.h <<\_ACEOF
15982#define HAS_SHADOW_EXPIRE 1
15983_ACEOF
15984
15985 else
15986 echo "$as_me:$LINENO: result: no" >&5
15987echo "${ECHO_T}no" >&6
15988 fi
15989fi
15990
15991# Use ip address instead of hostname in $DISPLAY
15992if test ! -z "$IPADDR_IN_DISPLAY" ; then
15993 DISPLAY_HACK_MSG="yes"
15994 cat >>confdefs.h <<\_ACEOF
15995#define IPADDR_IN_DISPLAY 1
15996_ACEOF
15997
15998else
15999 DISPLAY_HACK_MSG="no"
16000
16001# Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16002if test "${with_ipaddr_display+set}" = set; then
16003 withval="$with_ipaddr_display"
16004
16005 if test "x$withval" != "xno" ; then
16006 cat >>confdefs.h <<\_ACEOF
16007#define IPADDR_IN_DISPLAY 1
16008_ACEOF
16009
16010 DISPLAY_HACK_MSG="yes"
16011 fi
16012
16013
16014fi;
16015fi
16016
16017if test $ac_cv_func_login_getcapbool = "yes" -a \
16018 $ac_cv_header_login_cap_h = "yes" ; then
16019 USES_LOGIN_CONF=yes
16020fi
16021# Whether to mess with the default path
16022SERVER_PATH_MSG="(default)"
16023
16024# Check whether --with-default-path or --without-default-path was given.
16025if test "${with_default_path+set}" = set; then
16026 withval="$with_default_path"
16027
16028 if test "$USES_LOGIN_CONF" = "yes" ; then
16029 { echo "$as_me:$LINENO: WARNING:
16030--with-default-path=PATH has no effect on this system.
16031Edit /etc/login.conf instead." >&5
16032echo "$as_me: WARNING:
16033--with-default-path=PATH has no effect on this system.
16034Edit /etc/login.conf instead." >&2;}
16035 elif test "x$withval" != "xno" ; then
16036 user_path="$withval"
16037 SERVER_PATH_MSG="$withval"
16038 fi
16039
16040else
16041 if test "$USES_LOGIN_CONF" = "yes" ; then
16042 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16043echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16044 else
16045 if test "$cross_compiling" = yes; then
16046 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16047
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050#line $LINENO "configure"
16051#include "confdefs.h"
16052
16053/* find out what STDPATH is */
16054#include <stdio.h>
16055#ifdef HAVE_PATHS_H
16056# include <paths.h>
16057#endif
16058#ifndef _PATH_STDPATH
16059# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16060#endif
16061#include <sys/types.h>
16062#include <sys/stat.h>
16063#include <fcntl.h>
16064#define DATA "conftest.stdpath"
16065
16066main()
16067{
16068 FILE *fd;
16069 int rc;
16070
16071 fd = fopen(DATA,"w");
16072 if(fd == NULL)
16073 exit(1);
16074
16075 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16076 exit(1);
16077
16078 exit(0);
16079}
16080
16081_ACEOF
16082rm -f conftest$ac_exeext
16083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16084 (eval $ac_link) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 user_path=`cat conftest.stdpath`
16094else
16095 echo "$as_me: program exited with status $ac_status" >&5
16096echo "$as_me: failed program was:" >&5
16097cat conftest.$ac_ext >&5
16098( exit $ac_status )
16099 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16100fi
16101rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16102fi
16103# make sure $bindir is in USER_PATH so scp will work
16104 t_bindir=`eval echo ${bindir}`
16105 case $t_bindir in
16106 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16107 esac
16108 case $t_bindir in
16109 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16110 esac
16111 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16112 if test $? -ne 0 ; then
16113 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16114 if test $? -ne 0 ; then
16115 user_path=$user_path:$t_bindir
16116 echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16117echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16118 fi
16119 fi
16120 fi
16121
16122fi;
16123if test "$USES_LOGIN_CONF" != "yes" ; then
16124 cat >>confdefs.h <<_ACEOF
16125#define USER_PATH "$user_path"
16126_ACEOF
16127
16128
16129fi
16130
16131# Set superuser path separately to user path
16132
16133# Check whether --with-superuser-path or --without-superuser-path was given.
16134if test "${with_superuser_path+set}" = set; then
16135 withval="$with_superuser_path"
16136
16137 if test "x$withval" != "xno" ; then
16138 cat >>confdefs.h <<_ACEOF
16139#define SUPERUSER_PATH "$withval"
16140_ACEOF
16141
16142 superuser_path=$withval
16143 fi
16144
16145
16146fi;
16147
16148
16149# Whether to force IPv4 by default (needed on broken glibc Linux)
16150IPV4_HACK_MSG="no"
16151
16152# Check whether --with-ipv4-default or --without-ipv4-default was given.
16153if test "${with_ipv4_default+set}" = set; then
16154 withval="$with_ipv4_default"
16155
16156 if test "x$withval" != "xno" ; then
16157 cat >>confdefs.h <<\_ACEOF
16158#define IPV4_DEFAULT 1
16159_ACEOF
16160
16161 IPV4_HACK_MSG="yes"
16162 fi
16163
16164
16165fi;
16166
16167echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16168echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16169IPV4_IN6_HACK_MSG="no"
16170
16171# Check whether --with-4in6 or --without-4in6 was given.
16172if test "${with_4in6+set}" = set; then
16173 withval="$with_4in6"
16174
16175 if test "x$withval" != "xno" ; then
16176 echo "$as_me:$LINENO: result: yes" >&5
16177echo "${ECHO_T}yes" >&6
16178 cat >>confdefs.h <<\_ACEOF
16179#define IPV4_IN_IPV6 1
16180_ACEOF
16181
16182 IPV4_IN6_HACK_MSG="yes"
16183 else
16184 echo "$as_me:$LINENO: result: no" >&5
16185echo "${ECHO_T}no" >&6
16186 fi
16187
16188else
16189
16190 if test "x$inet6_default_4in6" = "xyes"; then
16191 echo "$as_me:$LINENO: result: yes (default)" >&5
16192echo "${ECHO_T}yes (default)" >&6
16193 cat >>confdefs.h <<\_ACEOF
16194#define IPV4_IN_IPV6 1
16195_ACEOF
16196
16197 IPV4_IN6_HACK_MSG="yes"
16198 else
16199 echo "$as_me:$LINENO: result: no (default)" >&5
16200echo "${ECHO_T}no (default)" >&6
16201 fi
16202
16203
16204fi;
16205
16206# Whether to enable BSD auth support
16207BSD_AUTH_MSG=no
16208
16209# Check whether --with-bsd-auth or --without-bsd-auth was given.
16210if test "${with_bsd_auth+set}" = set; then
16211 withval="$with_bsd_auth"
16212
16213 if test "x$withval" != "xno" ; then
16214 cat >>confdefs.h <<\_ACEOF
16215#define BSD_AUTH 1
16216_ACEOF
16217
16218 BSD_AUTH_MSG=yes
16219 fi
16220
16221
16222fi;
16223
16224# Where to place sshd.pid
16225piddir=/var/run
16226# make sure the directory exists
16227if test ! -d $piddir ; then
16228 piddir=`eval echo ${sysconfdir}`
16229 case $piddir in
16230 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16231 esac
16232fi
16233
16234
16235# Check whether --with-pid-dir or --without-pid-dir was given.
16236if test "${with_pid_dir+set}" = set; then
16237 withval="$with_pid_dir"
16238
16239 if test "x$withval" != "xno" ; then
16240 piddir=$withval
16241 if test ! -d $piddir ; then
16242 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16243echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16244 fi
16245 fi
16246
16247
16248fi;
16249
16250cat >>confdefs.h <<_ACEOF
16251#define _PATH_SSH_PIDDIR "$piddir"
16252_ACEOF
16253
16254
16255
16256# Check whether --enable-lastlog or --disable-lastlog was given.
16257if test "${enable_lastlog+set}" = set; then
16258 enableval="$enable_lastlog"
16259 cat >>confdefs.h <<\_ACEOF
16260#define DISABLE_LASTLOG 1
16261_ACEOF
16262
16263
16264fi;
16265# Check whether --enable-utmp or --disable-utmp was given.
16266if test "${enable_utmp+set}" = set; then
16267 enableval="$enable_utmp"
16268 cat >>confdefs.h <<\_ACEOF
16269#define DISABLE_UTMP 1
16270_ACEOF
16271
16272
16273fi;
16274# Check whether --enable-utmpx or --disable-utmpx was given.
16275if test "${enable_utmpx+set}" = set; then
16276 enableval="$enable_utmpx"
16277 cat >>confdefs.h <<\_ACEOF
16278#define DISABLE_UTMPX 1
16279_ACEOF
16280
16281
16282fi;
16283# Check whether --enable-wtmp or --disable-wtmp was given.
16284if test "${enable_wtmp+set}" = set; then
16285 enableval="$enable_wtmp"
16286 cat >>confdefs.h <<\_ACEOF
16287#define DISABLE_WTMP 1
16288_ACEOF
16289
16290
16291fi;
16292# Check whether --enable-wtmpx or --disable-wtmpx was given.
16293if test "${enable_wtmpx+set}" = set; then
16294 enableval="$enable_wtmpx"
16295 cat >>confdefs.h <<\_ACEOF
16296#define DISABLE_WTMPX 1
16297_ACEOF
16298
16299
16300fi;
16301# Check whether --enable-libutil or --disable-libutil was given.
16302if test "${enable_libutil+set}" = set; then
16303 enableval="$enable_libutil"
16304 cat >>confdefs.h <<\_ACEOF
16305#define DISABLE_LOGIN 1
16306_ACEOF
16307
16308
16309fi;
16310# Check whether --enable-pututline or --disable-pututline was given.
16311if test "${enable_pututline+set}" = set; then
16312 enableval="$enable_pututline"
16313 cat >>confdefs.h <<\_ACEOF
16314#define DISABLE_PUTUTLINE 1
16315_ACEOF
16316
16317
16318fi;
16319# Check whether --enable-pututxline or --disable-pututxline was given.
16320if test "${enable_pututxline+set}" = set; then
16321 enableval="$enable_pututxline"
16322 cat >>confdefs.h <<\_ACEOF
16323#define DISABLE_PUTUTXLINE 1
16324_ACEOF
16325
16326
16327fi;
16328
16329# Check whether --with-lastlog or --without-lastlog was given.
16330if test "${with_lastlog+set}" = set; then
16331 withval="$with_lastlog"
16332
16333 if test "x$withval" = "xno" ; then
16334 cat >>confdefs.h <<\_ACEOF
16335#define DISABLE_LASTLOG 1
16336_ACEOF
16337
16338 else
16339 conf_lastlog_location=$withval
16340 fi
16341
16342
16343fi;
16344
16345
16346echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16347echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16348cat >conftest.$ac_ext <<_ACEOF
16349#line $LINENO "configure"
16350#include "confdefs.h"
16351
16352#include <sys/types.h>
16353#include <utmp.h>
16354#ifdef HAVE_LASTLOG_H
16355# include <lastlog.h>
16356#endif
16357#ifdef HAVE_PATHS_H
16358# include <paths.h>
16359#endif
16360#ifdef HAVE_LOGIN_H
16361# include <login.h>
16362#endif
16363
16364#ifdef F77_DUMMY_MAIN
16365# ifdef __cplusplus
16366 extern "C"
16367# endif
16368 int F77_DUMMY_MAIN() { return 1; }
16369#endif
16370int
16371main ()
16372{
16373 char *lastlog = LASTLOG_FILE;
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380 (eval $ac_compile) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -s conftest.$ac_objext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 echo "$as_me:$LINENO: result: yes" >&5
16391echo "${ECHO_T}yes" >&6
16392else
16393 echo "$as_me: failed program was:" >&5
16394cat conftest.$ac_ext >&5
16395
16396 echo "$as_me:$LINENO: result: no" >&5
16397echo "${ECHO_T}no" >&6
16398 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16399echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6
16400 cat >conftest.$ac_ext <<_ACEOF
16401#line $LINENO "configure"
16402#include "confdefs.h"
16403
16404#include <sys/types.h>
16405#include <utmp.h>
16406#ifdef HAVE_LASTLOG_H
16407# include <lastlog.h>
16408#endif
16409#ifdef HAVE_PATHS_H
16410# include <paths.h>
16411#endif
16412
16413#ifdef F77_DUMMY_MAIN
16414# ifdef __cplusplus
16415 extern "C"
16416# endif
16417 int F77_DUMMY_MAIN() { return 1; }
16418#endif
16419int
16420main ()
16421{
16422 char *lastlog = _PATH_LASTLOG;
16423 ;
16424 return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext
16428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -s conftest.$ac_objext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 echo "$as_me:$LINENO: result: yes" >&5
16440echo "${ECHO_T}yes" >&6
16441else
16442 echo "$as_me: failed program was:" >&5
16443cat conftest.$ac_ext >&5
16444
16445 echo "$as_me:$LINENO: result: no" >&5
16446echo "${ECHO_T}no" >&6
16447 system_lastlog_path=no
16448
16449fi
16450rm -f conftest.$ac_objext conftest.$ac_ext
16451
16452
16453fi
16454rm -f conftest.$ac_objext conftest.$ac_ext
16455
16456if test -z "$conf_lastlog_location"; then
16457 if test x"$system_lastlog_path" = x"no" ; then
16458 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16459 if (test -d "$f" || test -f "$f") ; then
16460 conf_lastlog_location=$f
16461 fi
16462 done
16463 if test -z "$conf_lastlog_location"; then
16464 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16465echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16466 fi
16467 fi
16468fi
16469
16470if test -n "$conf_lastlog_location"; then
16471 cat >>confdefs.h <<_ACEOF
16472#define CONF_LASTLOG_FILE "$conf_lastlog_location"
16473_ACEOF
16474
16475fi
16476
16477echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16478echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16479cat >conftest.$ac_ext <<_ACEOF
16480#line $LINENO "configure"
16481#include "confdefs.h"
16482
16483#include <sys/types.h>
16484#include <utmp.h>
16485#ifdef HAVE_PATHS_H
16486# include <paths.h>
16487#endif
16488
16489#ifdef F77_DUMMY_MAIN
16490# ifdef __cplusplus
16491 extern "C"
16492# endif
16493 int F77_DUMMY_MAIN() { return 1; }
16494#endif
16495int
16496main ()
16497{
16498 char *utmp = UTMP_FILE;
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext
16504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 echo "$as_me:$LINENO: result: yes" >&5
16516echo "${ECHO_T}yes" >&6
16517else
16518 echo "$as_me: failed program was:" >&5
16519cat conftest.$ac_ext >&5
16520 echo "$as_me:$LINENO: result: no" >&5
16521echo "${ECHO_T}no" >&6
16522 system_utmp_path=no
16523
16524fi
16525rm -f conftest.$ac_objext conftest.$ac_ext
16526if test -z "$conf_utmp_location"; then
16527 if test x"$system_utmp_path" = x"no" ; then
16528 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16529 if test -f $f ; then
16530 conf_utmp_location=$f
16531 fi
16532 done
16533 if test -z "$conf_utmp_location"; then
16534 cat >>confdefs.h <<\_ACEOF
16535#define DISABLE_UTMP 1
16536_ACEOF
16537
16538 fi
16539 fi
16540fi
16541if test -n "$conf_utmp_location"; then
16542 cat >>confdefs.h <<_ACEOF
16543#define CONF_UTMP_FILE "$conf_utmp_location"
16544_ACEOF
16545
16546fi
16547
16548echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16549echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16550cat >conftest.$ac_ext <<_ACEOF
16551#line $LINENO "configure"
16552#include "confdefs.h"
16553
16554#include <sys/types.h>
16555#include <utmp.h>
16556#ifdef HAVE_PATHS_H
16557# include <paths.h>
16558#endif
16559
16560#ifdef F77_DUMMY_MAIN
16561# ifdef __cplusplus
16562 extern "C"
16563# endif
16564 int F77_DUMMY_MAIN() { return 1; }
16565#endif
16566int
16567main ()
16568{
16569 char *wtmp = WTMP_FILE;
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 echo "$as_me:$LINENO: result: yes" >&5
16587echo "${ECHO_T}yes" >&6
16588else
16589 echo "$as_me: failed program was:" >&5
16590cat conftest.$ac_ext >&5
16591 echo "$as_me:$LINENO: result: no" >&5
16592echo "${ECHO_T}no" >&6
16593 system_wtmp_path=no
16594
16595fi
16596rm -f conftest.$ac_objext conftest.$ac_ext
16597if test -z "$conf_wtmp_location"; then
16598 if test x"$system_wtmp_path" = x"no" ; then
16599 for f in /usr/adm/wtmp /var/log/wtmp; do
16600 if test -f $f ; then
16601 conf_wtmp_location=$f
16602 fi
16603 done
16604 if test -z "$conf_wtmp_location"; then
16605 cat >>confdefs.h <<\_ACEOF
16606#define DISABLE_WTMP 1
16607_ACEOF
16608
16609 fi
16610 fi
16611fi
16612if test -n "$conf_wtmp_location"; then
16613 cat >>confdefs.h <<_ACEOF
16614#define CONF_WTMP_FILE "$conf_wtmp_location"
16615_ACEOF
16616
16617fi
16618
16619
16620echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16621echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16622cat >conftest.$ac_ext <<_ACEOF
16623#line $LINENO "configure"
16624#include "confdefs.h"
16625
16626#include <sys/types.h>
16627#include <utmp.h>
16628#ifdef HAVE_UTMPX_H
16629#include <utmpx.h>
16630#endif
16631#ifdef HAVE_PATHS_H
16632# include <paths.h>
16633#endif
16634
16635#ifdef F77_DUMMY_MAIN
16636# ifdef __cplusplus
16637 extern "C"
16638# endif
16639 int F77_DUMMY_MAIN() { return 1; }
16640#endif
16641int
16642main ()
16643{
16644 char *utmpx = UTMPX_FILE;
16645 ;
16646 return 0;
16647}
16648_ACEOF
16649rm -f conftest.$ac_objext
16650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 echo "$as_me:$LINENO: result: yes" >&5
16662echo "${ECHO_T}yes" >&6
16663else
16664 echo "$as_me: failed program was:" >&5
16665cat conftest.$ac_ext >&5
16666 echo "$as_me:$LINENO: result: no" >&5
16667echo "${ECHO_T}no" >&6
16668 system_utmpx_path=no
16669
16670fi
16671rm -f conftest.$ac_objext conftest.$ac_ext
16672if test -z "$conf_utmpx_location"; then
16673 if test x"$system_utmpx_path" = x"no" ; then
16674 cat >>confdefs.h <<\_ACEOF
16675#define DISABLE_UTMPX 1
16676_ACEOF
16677
16678 fi
16679else
16680 cat >>confdefs.h <<_ACEOF
16681#define CONF_UTMPX_FILE "$conf_utmpx_location"
16682_ACEOF
16683
16684fi
16685
16686echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16687echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16688cat >conftest.$ac_ext <<_ACEOF
16689#line $LINENO "configure"
16690#include "confdefs.h"
16691
16692#include <sys/types.h>
16693#include <utmp.h>
16694#ifdef HAVE_UTMPX_H
16695#include <utmpx.h>
16696#endif
16697#ifdef HAVE_PATHS_H
16698# include <paths.h>
16699#endif
16700
16701#ifdef F77_DUMMY_MAIN
16702# ifdef __cplusplus
16703 extern "C"
16704# endif
16705 int F77_DUMMY_MAIN() { return 1; }
16706#endif
16707int
16708main ()
16709{
16710 char *wtmpx = WTMPX_FILE;
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 echo "$as_me:$LINENO: result: yes" >&5
16728echo "${ECHO_T}yes" >&6
16729else
16730 echo "$as_me: failed program was:" >&5
16731cat conftest.$ac_ext >&5
16732 echo "$as_me:$LINENO: result: no" >&5
16733echo "${ECHO_T}no" >&6
16734 system_wtmpx_path=no
16735
16736fi
16737rm -f conftest.$ac_objext conftest.$ac_ext
16738if test -z "$conf_wtmpx_location"; then
16739 if test x"$system_wtmpx_path" = x"no" ; then
16740 cat >>confdefs.h <<\_ACEOF
16741#define DISABLE_WTMPX 1
16742_ACEOF
16743
16744 fi
16745else
16746 cat >>confdefs.h <<_ACEOF
16747#define CONF_WTMPX_FILE "$conf_wtmpx_location"
16748_ACEOF
16749
16750fi
16751
16752
16753if test ! -z "$blibpath" ; then
16754 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
16755 { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5
16756echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16757fi
16758
16759if test "$PAM_MSG" = yes ; then
16760 LIBS=`echo $LIBS | sed 's/-lpam //'`
16761fi
16762if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16763 LIBS=`echo $LIBS | sed 's/-ldl //'`
16764fi
16765
16766
16767ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16768
16769cat >confcache <<\_ACEOF
16770# This file is a shell script that caches the results of configure
16771# tests run on this system so they can be shared between configure
16772# scripts and configure runs, see configure's option --config-cache.
16773# It is not useful on other systems. If it contains results you don't
16774# want to keep, you may remove or edit it.
16775#
16776# config.status only pays attention to the cache file if you give it
16777# the --recheck option to rerun configure.
16778#
16779# `ac_cv_env_foo' variables (set or unset) will be overriden when
16780# loading this file, other *unset* `ac_cv_foo' will be assigned the
16781# following values.
16782
16783_ACEOF
16784
16785# The following way of writing the cache mishandles newlines in values,
16786# but we know of no workaround that is simple, portable, and efficient.
16787# So, don't put newlines in cache variables' values.
16788# Ultrix sh set writes to stderr and can't be redirected directly,
16789# and sets the high bit in the cache file unless we assign to the vars.
16790{
16791 (set) 2>&1 |
16792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16793 *ac_space=\ *)
16794 # `set' does not quote correctly, so add quotes (double-quote
16795 # substitution turns \\\\ into \\, and sed turns \\ into \).
16796 sed -n \
16797 "s/'/'\\\\''/g;
16798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799 ;;
16800 *)
16801 # `set' quotes correctly as required by POSIX, so do not add quotes.
16802 sed -n \
16803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16804 ;;
16805 esac;
16806} |
16807 sed '
16808 t clear
16809 : clear
16810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811 t end
16812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813 : end' >>confcache
16814if cmp -s $cache_file confcache; then :; else
16815 if test -w $cache_file; then
16816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16817 cat confcache >$cache_file
16818 else
16819 echo "not updating unwritable cache $cache_file"
16820 fi
16821fi
16822rm -f confcache
16823
16824test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825# Let make expand exec_prefix.
16826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16827
16828# VPATH may cause trouble with some makes, so we remove $(srcdir),
16829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16830# trailing colons and then remove the whole line if VPATH becomes empty
16831# (actually we leave an empty line to preserve line numbers).
16832if test "x$srcdir" = x.; then
16833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16834s/:*\$(srcdir):*/:/;
16835s/:*\${srcdir}:*/:/;
16836s/:*@srcdir@:*/:/;
16837s/^\([^=]*=[ ]*\):*/\1/;
16838s/:*$//;
16839s/^[^=]*=[ ]*$//;
16840}'
16841fi
16842
16843DEFS=-DHAVE_CONFIG_H
16844
16845
16846: ${CONFIG_STATUS=./config.status}
16847ac_clean_files_save=$ac_clean_files
16848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851cat >$CONFIG_STATUS <<_ACEOF
16852#! $SHELL
16853# Generated by $as_me.
16854# Run this file to recreate the current configuration.
16855# Compiler output produced by configure, useful for debugging
16856# configure, is in config.log if it exists.
16857
16858debug=false
16859SHELL=\${CONFIG_SHELL-$SHELL}
16860_ACEOF
16861
16862cat >>$CONFIG_STATUS <<\_ACEOF
16863
16864## --------------------- ##
16865## M4sh Initialization. ##
16866## --------------------- ##
16867
16868# Be Bourne compatible
16869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16870 emulate sh
16871 NULLCMD=:
16872elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16873 set -o posix
16874fi
16875
16876# NLS nuisances.
16877# Support unset when possible.
16878if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16879 as_unset=unset
16880else
16881 as_unset=false
16882fi
16883
16884(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16885 { $as_unset LANG || test "${LANG+set}" != set; } ||
16886 { LANG=C; export LANG; }
16887(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16888 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16889 { LC_ALL=C; export LC_ALL; }
16890(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16891 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16892 { LC_TIME=C; export LC_TIME; }
16893(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16894 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16895 { LC_CTYPE=C; export LC_CTYPE; }
16896(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16897 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16898 { LANGUAGE=C; export LANGUAGE; }
16899(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16900 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16901 { LC_COLLATE=C; export LC_COLLATE; }
16902(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16903 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16904 { LC_NUMERIC=C; export LC_NUMERIC; }
16905(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16906 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16907 { LC_MESSAGES=C; export LC_MESSAGES; }
16908
16909
16910# Name of the executable.
16911as_me=`(basename "$0") 2>/dev/null ||
16912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)$' \| \
16915 . : '\(.\)' 2>/dev/null ||
16916echo X/"$0" |
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918 /^X\/\(\/\/\)$/{ s//\1/; q; }
16919 /^X\/\(\/\).*/{ s//\1/; q; }
16920 s/.*/./; q'`
16921
16922# PATH needs CR, and LINENO needs CR and PATH.
16923# Avoid depending upon Character Ranges.
16924as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927as_cr_digits='0123456789'
16928as_cr_alnum=$as_cr_Letters$as_cr_digits
16929
16930# The user is always right.
16931if test "${PATH_SEPARATOR+set}" != set; then
16932 echo "#! /bin/sh" >conftest.sh
16933 echo "exit 0" >>conftest.sh
16934 chmod +x conftest.sh
16935 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16936 PATH_SEPARATOR=';'
16937 else
16938 PATH_SEPARATOR=:
16939 fi
16940 rm -f conftest.sh
16941fi
16942
16943
16944 as_lineno_1=$LINENO
16945 as_lineno_2=$LINENO
16946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16947 test "x$as_lineno_1" != "x$as_lineno_2" &&
16948 test "x$as_lineno_3" = "x$as_lineno_2" || {
16949 # Find who we are. Look in the path if we contain no path at all
16950 # relative or not.
16951 case $0 in
16952 *[\\/]* ) as_myself=$0 ;;
16953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954for as_dir in $PATH
16955do
16956 IFS=$as_save_IFS
16957 test -z "$as_dir" && as_dir=.
16958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16959done
16960
16961 ;;
16962 esac
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x; then
16966 as_myself=$0
16967 fi
16968 if test ! -f "$as_myself"; then
16969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971 { (exit 1); exit 1; }; }
16972 fi
16973 case $CONFIG_SHELL in
16974 '')
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16977do
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for as_base in sh bash ksh sh5; do
16981 case $as_dir in
16982 /*)
16983 if ("$as_dir/$as_base" -c '
16984 as_lineno_1=$LINENO
16985 as_lineno_2=$LINENO
16986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16987 test "x$as_lineno_1" != "x$as_lineno_2" &&
16988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16989 CONFIG_SHELL=$as_dir/$as_base
16990 export CONFIG_SHELL
16991 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16992 fi;;
16993 esac
16994 done
16995done
16996;;
16997 esac
16998
16999 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17000 # uniformly replaced by the line number. The first 'sed' inserts a
17001 # line-number line before each line; the second 'sed' does the real
17002 # work. The second script uses 'N' to pair each line-number line
17003 # with the numbered line, and appends trailing '-' during
17004 # substitution so that $LINENO is not a special case at line end.
17005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17006 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17007 sed '=' <$as_myself |
17008 sed '
17009 N
17010 s,$,-,
17011 : loop
17012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17013 t loop
17014 s,-$,,
17015 s,^['$as_cr_digits']*\n,,
17016 ' >$as_me.lineno &&
17017 chmod +x $as_me.lineno ||
17018 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17019echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020 { (exit 1); exit 1; }; }
17021
17022 # Don't try to exec as it changes $[0], causing all sort of problems
17023 # (the dirname of $[0] is not the place where we might find the
17024 # original and so on. Autoconf is especially sensible to this).
17025 . ./$as_me.lineno
17026 # Exit status is that of the last command.
17027 exit
17028}
17029
17030
17031case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032 *c*,-n*) ECHO_N= ECHO_C='
17033' ECHO_T=' ' ;;
17034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17036esac
17037
17038if expr a : '\(a\)' >/dev/null 2>&1; then
17039 as_expr=expr
17040else
17041 as_expr=false
17042fi
17043
17044rm -f conf$$ conf$$.exe conf$$.file
17045echo >conf$$.file
17046if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 # We could just check for DJGPP; but this test a) works b) is more generic
17048 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17049 if test -f conf$$.exe; then
17050 # Don't use ln at all; we don't have any links
17051 as_ln_s='cp -p'
17052 else
17053 as_ln_s='ln -s'
17054 fi
17055elif ln conf$$.file conf$$ 2>/dev/null; then
17056 as_ln_s=ln
17057else
17058 as_ln_s='cp -p'
17059fi
17060rm -f conf$$ conf$$.exe conf$$.file
17061
17062as_executable_p="test -f"
17063
17064# Sed expression to map a string onto a valid CPP name.
17065as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17066
17067# Sed expression to map a string onto a valid variable name.
17068as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17069
17070
17071# IFS
17072# We need space, tab and new line, in precisely that order.
17073as_nl='
17074'
17075IFS=" $as_nl"
17076
17077# CDPATH.
17078$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17079
17080exec 6>&1
17081
17082# Open the log real soon, to keep \$[0] and so on meaningful, and to
17083# report actual input values of CONFIG_FILES etc. instead of their
17084# values after options handling. Logging --version etc. is OK.
17085exec 5>>config.log
17086{
17087 echo
17088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17089## Running $as_me. ##
17090_ASBOX
17091} >&5
17092cat >&5 <<_CSEOF
17093
17094This file was extended by $as_me, which was
17095generated by GNU Autoconf 2.53. Invocation command line was
17096
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17101 $ $0 $@
17102
17103_CSEOF
17104echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17105echo >&5
17106_ACEOF
17107
17108# Files that config.status was made for.
17109if test -n "$ac_config_files"; then
17110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17111fi
17112
17113if test -n "$ac_config_headers"; then
17114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17115fi
17116
17117if test -n "$ac_config_links"; then
17118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17119fi
17120
17121if test -n "$ac_config_commands"; then
17122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17123fi
17124
17125cat >>$CONFIG_STATUS <<\_ACEOF
17126
17127ac_cs_usage="\
17128\`$as_me' instantiates files from templates according to the
17129current configuration.
17130
17131Usage: $0 [OPTIONS] [FILE]...
17132
17133 -h, --help print this help, then exit
17134 -V, --version print version number, then exit
17135 -d, --debug don't remove temporary files
17136 --recheck update $as_me by reconfiguring in the same conditions
17137 --file=FILE[:TEMPLATE]
17138 instantiate the configuration file FILE
17139 --header=FILE[:TEMPLATE]
17140 instantiate the configuration header FILE
17141
17142Configuration files:
17143$config_files
17144
17145Configuration headers:
17146$config_headers
17147
17148Report bugs to <bug-autoconf@gnu.org>."
17149_ACEOF
17150
17151cat >>$CONFIG_STATUS <<_ACEOF
17152ac_cs_version="\\
17153config.status
17154configured by $0, generated by GNU Autoconf 2.53,
17155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17156
17157Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17158Free Software Foundation, Inc.
17159This config.status script is free software; the Free Software Foundation
17160gives unlimited permission to copy, distribute and modify it."
17161srcdir=$srcdir
17162INSTALL="$INSTALL"
17163_ACEOF
17164
17165cat >>$CONFIG_STATUS <<\_ACEOF
17166# If no file are specified by the user, then we need to provide default
17167# value. By we need to know if files were specified by the user.
17168ac_need_defaults=:
17169while test $# != 0
17170do
17171 case $1 in
17172 --*=*)
17173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17175 shift
17176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17177 shift
17178 ;;
17179 -*);;
17180 *) # This is not an option, so the user has probably given explicit
17181 # arguments.
17182 ac_need_defaults=false;;
17183 esac
17184
17185 case $1 in
17186 # Handling of the options.
17187_ACEOF
17188cat >>$CONFIG_STATUS <<_ACEOF
17189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17190 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17191 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17192_ACEOF
17193cat >>$CONFIG_STATUS <<\_ACEOF
17194 --version | --vers* | -V )
17195 echo "$ac_cs_version"; exit 0 ;;
17196 --he | --h)
17197 # Conflict between --help and --header
17198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17199Try \`$0 --help' for more information." >&5
17200echo "$as_me: error: ambiguous option: $1
17201Try \`$0 --help' for more information." >&2;}
17202 { (exit 1); exit 1; }; };;
17203 --help | --hel | -h )
17204 echo "$ac_cs_usage"; exit 0 ;;
17205 --debug | --d* | -d )
17206 debug=: ;;
17207 --file | --fil | --fi | --f )
17208 shift
17209 CONFIG_FILES="$CONFIG_FILES $1"
17210 ac_need_defaults=false;;
17211 --header | --heade | --head | --hea )
17212 shift
17213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17214 ac_need_defaults=false;;
17215
17216 # This is an error.
17217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17218Try \`$0 --help' for more information." >&5
17219echo "$as_me: error: unrecognized option: $1
17220Try \`$0 --help' for more information." >&2;}
17221 { (exit 1); exit 1; }; } ;;
17222
17223 *) ac_config_targets="$ac_config_targets $1" ;;
17224
17225 esac
17226 shift
17227done
17228
17229_ACEOF
17230
17231
17232
17233
17234
17235cat >>$CONFIG_STATUS <<\_ACEOF
17236for ac_config_target in $ac_config_targets
17237do
17238 case "$ac_config_target" in
17239 # Handling of arguments.
17240 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17241 "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17242 "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
17243 "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17244 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17246echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17247 { (exit 1); exit 1; }; };;
17248 esac
17249done
17250
17251# If the user did not use the arguments to specify the items to instantiate,
17252# then the envvar interface is used. Set only those that are not.
17253# We use the long form for the default assignment because of an extremely
17254# bizarre bug on SunOS 4.1.3.
17255if $ac_need_defaults; then
17256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17258fi
17259
17260# Create a temporary directory, and hook for its removal unless debugging.
17261$debug ||
17262{
17263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17264 trap '{ (exit 1); exit 1; }' 1 2 13 15
17265}
17266
17267# Create a (secure) tmp directory for tmp files.
17268: ${TMPDIR=/tmp}
17269{
17270 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17271 test -n "$tmp" && test -d "$tmp"
17272} ||
17273{
17274 tmp=$TMPDIR/cs$$-$RANDOM
17275 (umask 077 && mkdir $tmp)
17276} ||
17277{
17278 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17279 { (exit 1); exit 1; }
17280}
17281
17282_ACEOF
17283
17284cat >>$CONFIG_STATUS <<_ACEOF
17285
17286#
17287# CONFIG_FILES section.
17288#
17289
17290# No need to generate the scripts if there are no CONFIG_FILES.
17291# This happens for instance when ./config.status config.h
17292if test -n "\$CONFIG_FILES"; then
17293 # Protect against being on the right side of a sed subst in config.status.
17294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17296s,@SHELL@,$SHELL,;t t
17297s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17298s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17299s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17300s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17301s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17302s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17303s,@exec_prefix@,$exec_prefix,;t t
17304s,@prefix@,$prefix,;t t
17305s,@program_transform_name@,$program_transform_name,;t t
17306s,@bindir@,$bindir,;t t
17307s,@sbindir@,$sbindir,;t t
17308s,@libexecdir@,$libexecdir,;t t
17309s,@datadir@,$datadir,;t t
17310s,@sysconfdir@,$sysconfdir,;t t
17311s,@sharedstatedir@,$sharedstatedir,;t t
17312s,@localstatedir@,$localstatedir,;t t
17313s,@libdir@,$libdir,;t t
17314s,@includedir@,$includedir,;t t
17315s,@oldincludedir@,$oldincludedir,;t t
17316s,@infodir@,$infodir,;t t
17317s,@mandir@,$mandir,;t t
17318s,@build_alias@,$build_alias,;t t
17319s,@host_alias@,$host_alias,;t t
17320s,@target_alias@,$target_alias,;t t
17321s,@DEFS@,$DEFS,;t t
17322s,@ECHO_C@,$ECHO_C,;t t
17323s,@ECHO_N@,$ECHO_N,;t t
17324s,@ECHO_T@,$ECHO_T,;t t
17325s,@LIBS@,$LIBS,;t t
17326s,@CC@,$CC,;t t
17327s,@CFLAGS@,$CFLAGS,;t t
17328s,@LDFLAGS@,$LDFLAGS,;t t
17329s,@CPPFLAGS@,$CPPFLAGS,;t t
17330s,@ac_ct_CC@,$ac_ct_CC,;t t
17331s,@EXEEXT@,$EXEEXT,;t t
17332s,@OBJEXT@,$OBJEXT,;t t
17333s,@build@,$build,;t t
17334s,@build_cpu@,$build_cpu,;t t
17335s,@build_vendor@,$build_vendor,;t t
17336s,@build_os@,$build_os,;t t
17337s,@host@,$host,;t t
17338s,@host_cpu@,$host_cpu,;t t
17339s,@host_vendor@,$host_vendor,;t t
17340s,@host_os@,$host_os,;t t
17341s,@CPP@,$CPP,;t t
17342s,@RANLIB@,$RANLIB,;t t
17343s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17346s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17347s,@AR@,$AR,;t t
17348s,@PERL@,$PERL,;t t
17349s,@ENT@,$ENT,;t t
17350s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17351s,@SH@,$SH,;t t
17352s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17353s,@LD@,$LD,;t t
17354s,@LIBWRAP@,$LIBWRAP,;t t
17355s,@LIBPAM@,$LIBPAM,;t t
17356s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17357s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17358s,@PROG_LS@,$PROG_LS,;t t
17359s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17360s,@PROG_ARP@,$PROG_ARP,;t t
17361s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17362s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17363s,@PROG_PS@,$PROG_PS,;t t
17364s,@PROG_SAR@,$PROG_SAR,;t t
17365s,@PROG_W@,$PROG_W,;t t
17366s,@PROG_WHO@,$PROG_WHO,;t t
17367s,@PROG_LAST@,$PROG_LAST,;t t
17368s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17369s,@PROG_DF@,$PROG_DF,;t t
17370s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17371s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17372s,@PROG_IPCS@,$PROG_IPCS,;t t
17373s,@PROG_TAIL@,$PROG_TAIL,;t t
17374s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17375s,@NO_SFTP@,$NO_SFTP,;t t
17376s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17377s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17378s,@xauth_path@,$xauth_path,;t t
17379s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17380s,@NROFF@,$NROFF,;t t
17381s,@MANTYPE@,$MANTYPE,;t t
17382s,@mansubdir@,$mansubdir,;t t
17383s,@user_path@,$user_path,;t t
17384s,@piddir@,$piddir,;t t
17385CEOF
17386
17387_ACEOF
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390 # Split the substitutions into bite-sized pieces for seds with
17391 # small command number limits, like on Digital OSF/1 and HP-UX.
17392 ac_max_sed_lines=48
17393 ac_sed_frag=1 # Number of current file.
17394 ac_beg=1 # First line for current file.
17395 ac_end=$ac_max_sed_lines # Line after last line for current file.
17396 ac_more_lines=:
17397 ac_sed_cmds=
17398 while $ac_more_lines; do
17399 if test $ac_beg -gt 1; then
17400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17401 else
17402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17403 fi
17404 if test ! -s $tmp/subs.frag; then
17405 ac_more_lines=false
17406 else
17407 # The purpose of the label and of the branching condition is to
17408 # speed up the sed processing (if there are no `@' at all, there
17409 # is no need to browse any of the substitutions).
17410 # These are the two extra sed commands mentioned above.
17411 (echo ':t
17412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17413 if test -z "$ac_sed_cmds"; then
17414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17415 else
17416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17417 fi
17418 ac_sed_frag=`expr $ac_sed_frag + 1`
17419 ac_beg=$ac_end
17420 ac_end=`expr $ac_end + $ac_max_sed_lines`
17421 fi
17422 done
17423 if test -z "$ac_sed_cmds"; then
17424 ac_sed_cmds=cat
17425 fi
17426fi # test -n "$CONFIG_FILES"
17427
17428_ACEOF
17429cat >>$CONFIG_STATUS <<\_ACEOF
17430for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 case $ac_file in
17433 - | *:- | *:-:* ) # input from stdin
17434 cat >$tmp/stdin
17435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in=$ac_file.in ;;
17440 esac
17441
17442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17443 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445 X"$ac_file" : 'X\(//\)[^/]' \| \
17446 X"$ac_file" : 'X\(//\)$' \| \
17447 X"$ac_file" : 'X\(/\)' \| \
17448 . : '\(.\)' 2>/dev/null ||
17449echo X"$ac_file" |
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17454 s/.*/./; q'`
17455 { case "$ac_dir" in
17456 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17457 *) as_incr_dir=.;;
17458esac
17459as_dummy="$ac_dir"
17460for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17461 case $as_mkdir_dir in
17462 # Skip DOS drivespec
17463 ?:) as_incr_dir=$as_mkdir_dir ;;
17464 *)
17465 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17466 test -d "$as_incr_dir" ||
17467 mkdir "$as_incr_dir" ||
17468 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17469echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17471 ;;
17472 esac
17473done; }
17474
17475 ac_builddir=.
17476
17477if test "$ac_dir" != .; then
17478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17479 # A "../" for each directory in $ac_dir_suffix.
17480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17481else
17482 ac_dir_suffix= ac_top_builddir=
17483fi
17484
17485case $srcdir in
17486 .) # No --srcdir option. We are building in place.
17487 ac_srcdir=.
17488 if test -z "$ac_top_builddir"; then
17489 ac_top_srcdir=.
17490 else
17491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17492 fi ;;
17493 [\\/]* | ?:[\\/]* ) # Absolute path.
17494 ac_srcdir=$srcdir$ac_dir_suffix;
17495 ac_top_srcdir=$srcdir ;;
17496 *) # Relative path.
17497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17499esac
17500# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17501# absolute.
17502ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17504ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17506
17507
17508 case $INSTALL in
17509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17511 esac
17512
17513 if test x"$ac_file" != x-; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515echo "$as_me: creating $ac_file" >&6;}
17516 rm -f "$ac_file"
17517 fi
17518 # Let's still pretend it is `configure' which instantiates (i.e., don't
17519 # use $as_me), people would be surprised to read:
17520 # /* config.h. Generated by config.status. */
17521 if test x"$ac_file" = x-; then
17522 configure_input=
17523 else
17524 configure_input="$ac_file. "
17525 fi
17526 configure_input=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17528
17529 # First look for the input files in the build tree, otherwise in the
17530 # src tree.
17531 ac_file_inputs=`IFS=:
17532 for f in $ac_file_in; do
17533 case $f in
17534 -) echo $tmp/stdin ;;
17535 [\\/$]*)
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17540 echo $f;;
17541 *) # Relative
17542 if test -f "$f"; then
17543 # Build tree
17544 echo $f
17545 elif test -f "$srcdir/$f"; then
17546 # Source tree
17547 echo $srcdir/$f
17548 else
17549 # /dev/null tree
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17553 fi;;
17554 esac
17555 done` || { (exit 1); exit 1; }
17556_ACEOF
17557cat >>$CONFIG_STATUS <<_ACEOF
17558 sed "$ac_vpsub
17559$extrasub
17560_ACEOF
17561cat >>$CONFIG_STATUS <<\_ACEOF
17562:t
17563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564s,@configure_input@,$configure_input,;t t
17565s,@srcdir@,$ac_srcdir,;t t
17566s,@abs_srcdir@,$ac_abs_srcdir,;t t
17567s,@top_srcdir@,$ac_top_srcdir,;t t
17568s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17569s,@builddir@,$ac_builddir,;t t
17570s,@abs_builddir@,$ac_abs_builddir,;t t
17571s,@top_builddir@,$ac_top_builddir,;t t
17572s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17573s,@INSTALL@,$ac_INSTALL,;t t
17574" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17575 rm -f $tmp/stdin
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17578 else
17579 cat $tmp/out
17580 rm -f $tmp/out
17581 fi
17582
17583done
17584_ACEOF
17585cat >>$CONFIG_STATUS <<\_ACEOF
17586
17587#
17588# CONFIG_HEADER section.
17589#
17590
17591# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592# NAME is the cpp macro being defined and VALUE is the value it is being given.
17593#
17594# ac_d sets the value in "#define NAME VALUE" lines.
17595ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596ac_dB='[ ].*$,\1#\2'
17597ac_dC=' '
17598ac_dD=',;t'
17599# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601ac_uB='$,\1#\2define\3'
17602ac_uC=' '
17603ac_uD=',;t'
17604
17605for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17607 case $ac_file in
17608 - | *:- | *:-:* ) # input from stdin
17609 cat >$tmp/stdin
17610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614 * ) ac_file_in=$ac_file.in ;;
17615 esac
17616
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618echo "$as_me: creating $ac_file" >&6;}
17619
17620 # First look for the input files in the build tree, otherwise in the
17621 # src tree.
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17624 case $f in
17625 -) echo $tmp/stdin ;;
17626 [\\/$]*)
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17631 echo $f;;
17632 *) # Relative
17633 if test -f "$f"; then
17634 # Build tree
17635 echo $f
17636 elif test -f "$srcdir/$f"; then
17637 # Source tree
17638 echo $srcdir/$f
17639 else
17640 # /dev/null tree
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17644 fi;;
17645 esac
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17649
17650_ACEOF
17651
17652# Transform confdefs.h into two sed scripts, `conftest.defines' and
17653# `conftest.undefs', that substitutes the proper values into
17654# config.h.in to produce config.h. The first handles `#define'
17655# templates, and the second `#undef' templates.
17656# And first: Protect against being on the right side of a sed subst in
17657# config.status. Protect against being in an unquoted here document
17658# in config.status.
17659rm -f conftest.defines conftest.undefs
17660# Using a here document instead of a string reduces the quoting nightmare.
17661# Putting comments in sed scripts is not portable.
17662#
17663# `end' is used to avoid that the second main sed command (meant for
17664# 0-ary CPP macros) applies to n-ary macro definitions.
17665# See the Autoconf documentation for `clear'.
17666cat >confdef2sed.sed <<\_ACEOF
17667s/[\\&,]/\\&/g
17668s,[\\$`],\\&,g
17669t clear
17670: clear
17671s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672t end
17673s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674: end
17675_ACEOF
17676# If some macros were called several times there might be several times
17677# the same #defines, which is useless. Nevertheless, we may not want to
17678# sort them, since we want the *last* AC-DEFINE to be honored.
17679uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681rm -f confdef2sed.sed
17682
17683# This sed command replaces #undef with comments. This is necessary, for
17684# example, in the case of _POSIX_SOURCE, which is predefined and required
17685# on some systems where configure will not decide to define it.
17686cat >>conftest.undefs <<\_ACEOF
17687s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688_ACEOF
17689
17690# Break up conftest.defines because some shells have a limit on the size
17691# of here documents, and old seds have small limits too (100 cmds).
17692echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695echo ' :' >>$CONFIG_STATUS
17696rm -f conftest.tail
17697while grep . conftest.defines >/dev/null
17698do
17699 # Write a limited-size here document to $tmp/defines.sed.
17700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#define' lines.
17702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707 echo 'CEOF
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17715done
17716rm -f conftest.defines
17717echo ' fi # egrep' >>$CONFIG_STATUS
17718echo >>$CONFIG_STATUS
17719
17720# Break up conftest.undefs because some shells have a limit on the size
17721# of here documents, and old seds have small limits too (100 cmds).
17722echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723rm -f conftest.tail
17724while grep . conftest.undefs >/dev/null
17725do
17726 # Write a limited-size here document to $tmp/undefs.sed.
17727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728 # Speed up: don't consider the non `#undef'
17729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17730 # Work around the forget-to-reset-the-flag bug.
17731 echo 't clr' >>$CONFIG_STATUS
17732 echo ': clr' >>$CONFIG_STATUS
17733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734 echo 'CEOF
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736 rm -f $tmp/in
17737 mv $tmp/out $tmp/in
17738' >>$CONFIG_STATUS
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17742done
17743rm -f conftest.undefs
17744
17745cat >>$CONFIG_STATUS <<\_ACEOF
17746 # Let's still pretend it is `configure' which instantiates (i.e., don't
17747 # use $as_me), people would be surprised to read:
17748 # /* config.h. Generated by config.status. */
17749 if test x"$ac_file" = x-; then
17750 echo "/* Generated by configure. */" >$tmp/config.h
17751 else
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17753 fi
17754 cat $tmp/in >>$tmp/config.h
17755 rm -f $tmp/in
17756 if test x"$ac_file" != x-; then
17757 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759echo "$as_me: $ac_file is unchanged" >&6;}
17760 else
17761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763 X"$ac_file" : 'X\(//\)[^/]' \| \
17764 X"$ac_file" : 'X\(//\)$' \| \
17765 X"$ac_file" : 'X\(/\)' \| \
17766 . : '\(.\)' 2>/dev/null ||
17767echo X"$ac_file" |
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17772 s/.*/./; q'`
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17775 *) as_incr_dir=.;;
17776esac
17777as_dummy="$ac_dir"
17778for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779 case $as_mkdir_dir in
17780 # Skip DOS drivespec
17781 ?:) as_incr_dir=$as_mkdir_dir ;;
17782 *)
17783 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784 test -d "$as_incr_dir" ||
17785 mkdir "$as_incr_dir" ||
17786 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17789 ;;
17790 esac
17791done; }
17792
17793 rm -f $ac_file
17794 mv $tmp/config.h $ac_file
17795 fi
17796 else
17797 cat $tmp/config.h
17798 rm -f $tmp/config.h
17799 fi
17800done
17801_ACEOF
17802
17803cat >>$CONFIG_STATUS <<\_ACEOF
17804
17805{ (exit 0); exit 0; }
17806_ACEOF
17807chmod +x $CONFIG_STATUS
17808ac_clean_files=$ac_clean_files_save
17809
17810
17811# configure is writing to config.log, and then calls config.status.
17812# config.status does its own redirection, appending to config.log.
17813# Unfortunately, on DOS this fails, as config.log is still kept open
17814# by configure, so config.status won't be able to write to it; its
17815# output is simply discarded. So we exec the FD to /dev/null,
17816# effectively closing config.log, so it can be properly (re)opened and
17817# appended to by config.status. When coming back to configure, we
17818# need to make the FD available again.
17819if test "$no_create" != yes; then
17820 ac_cs_success=:
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17827fi
17828
17829
17830# Print summary of options
17831
17832# Someone please show me a better way :)
17833A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17834B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17835C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17836D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17837E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17838F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17839G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17840H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17841I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17842J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17843
17844echo ""
17845echo "OpenSSH has been configured with the following options:"
17846echo " User binaries: $B"
17847echo " System binaries: $C"
17848echo " Configuration files: $D"
17849echo " Askpass program: $E"
17850echo " Manual pages: $F"
17851echo " PID file: $G"
17852echo " Privilege separation chroot path: $H"
17853if test "$USES_LOGIN_CONF" = "yes" ; then
17854echo " At runtime, sshd will use the path defined in /etc/login.conf"
17855else
17856echo " sshd default user PATH: $I"
17857fi
17858if test ! -z "$superuser_path" ; then
17859echo " sshd superuser user PATH: $J"
17860fi
17861echo " Manpage format: $MANTYPE"
17862echo " PAM support: ${PAM_MSG}"
17863echo " KerberosIV support: $KRB4_MSG"
17864echo " KerberosV support: $KRB5_MSG"
17865echo " Smartcard support: $SCARD_MSG"
17866echo " AFS support: $AFS_MSG"
17867echo " S/KEY support: $SKEY_MSG"
17868echo " TCP Wrappers support: $TCPW_MSG"
17869echo " MD5 password support: $MD5_MSG"
17870echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17871echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17872echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873echo " BSD Auth support: $BSD_AUTH_MSG"
17874echo " Random number source: $RAND_MSG"
17875if test ! -z "$USE_RAND_HELPER" ; then
17876echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17877fi
17878
17879echo ""
17880
17881echo " Host: ${host}"
17882echo " Compiler: ${CC}"
17883echo " Compiler flags: ${CFLAGS}"
17884echo "Preprocessor flags: ${CPPFLAGS}"
17885echo " Linker flags: ${LDFLAGS}"
17886echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17887
17888echo ""
17889
17890if test "x$PAM_MSG" = "xyes" ; then
17891 echo "PAM is enabled. You may need to install a PAM control file "
17892 echo "for sshd, otherwise password authentication may fail. "
17893 echo "Example PAM control files can be found in the contrib/ "
17894 echo "subdirectory"
17895 echo ""
17896fi
17897
17898if test ! -z "$NO_SFTP"; then
17899 echo "sftp-server will be disabled. Your compiler does not "
17900 echo "support 64bit integers."
17901 echo ""
17902fi
17903
17904if test ! -z "$RAND_HELPER_CMDHASH" ; then
17905 echo "WARNING: you are using the builtin random number collection "
17906 echo "service. Please read WARNING.RNG and request that your OS "
17907 echo "vendor includes kernel-based random number collection in "
17908 echo "future versions of your OS."
17909 echo ""
17910fi
17911
diff --git a/contrib/gnome-ssh-askpass.c b/contrib/gnome-ssh-askpass.c
new file mode 100644
index 000000000..7cece5620
--- /dev/null
+++ b/contrib/gnome-ssh-askpass.c
@@ -0,0 +1,168 @@
1/*
2 * Copyright (c) 2000-2002 Damien Miller. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/*
26 * This is a simple GNOME SSH passphrase grabber. To use it, set the
27 * environment variable SSH_ASKPASS to point to the location of
28 * gnome-ssh-askpass before calling "ssh-add < /dev/null".
29 *
30 * There is only two run-time options: if you set the environment variable
31 * "GNOME_SSH_ASKPASS_GRAB_SERVER=true" then gnome-ssh-askpass will grab
32 * the X server. If you set "GNOME_SSH_ASKPASS_GRAB_POINTER=true", then the
33 * pointer will be grabbed too. These may have some benefit to security if
34 * you don't trust your X server. We grab the keyboard always.
35 */
36
37/*
38 * Compile with:
39 *
40 * cc `gnome-config --cflags gnome gnomeui` \
41 * gnome-ssh-askpass.c -o gnome-ssh-askpass \
42 * `gnome-config --libs gnome gnomeui`
43 *
44 */
45
46#include <stdlib.h>
47#include <stdio.h>
48#include <string.h>
49#include <gnome.h>
50#include <X11/Xlib.h>
51#include <gdk/gdkx.h>
52
53void
54report_failed_grab (void)
55{
56 GtkWidget *err;
57
58 err = gnome_message_box_new("Could not grab keyboard or mouse.\n"
59 "A malicious client may be eavesdropping on your session.",
60 GNOME_MESSAGE_BOX_ERROR, "EXIT", NULL);
61 gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER);
62 gtk_object_set(GTK_OBJECT(err), "type", GTK_WINDOW_POPUP, NULL);
63
64 gnome_dialog_run_and_close(GNOME_DIALOG(err));
65}
66
67void
68passphrase_dialog(char *message)
69{
70 char *passphrase;
71 char **messages;
72 int result, i, grab_server, grab_pointer;
73 GtkWidget *dialog, *entry, *label;
74
75 grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);
76 grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL);
77
78 dialog = gnome_dialog_new("OpenSSH", GNOME_STOCK_BUTTON_OK,
79 GNOME_STOCK_BUTTON_CANCEL, NULL);
80
81 messages = g_strsplit(message, "\\n", 0);
82 if (messages)
83 for(i = 0; messages[i]; i++) {
84 label = gtk_label_new(messages[i]);
85 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox),
86 label, FALSE, FALSE, 0);
87 }
88
89 entry = gtk_entry_new();
90 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), entry, FALSE,
91 FALSE, 0);
92 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
93 gtk_widget_grab_focus(entry);
94
95 /* Center window and prepare for grab */
96 gtk_object_set(GTK_OBJECT(dialog), "type", GTK_WINDOW_POPUP, NULL);
97 gnome_dialog_set_default(GNOME_DIALOG(dialog), 0);
98 gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
99 gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, FALSE, TRUE);
100 gnome_dialog_close_hides(GNOME_DIALOG(dialog), TRUE);
101 gtk_container_set_border_width(GTK_CONTAINER(GNOME_DIALOG(dialog)->vbox),
102 GNOME_PAD);
103 gtk_widget_show_all(dialog);
104
105 /* Grab focus */
106 if (grab_server)
107 XGrabServer(GDK_DISPLAY());
108 if (grab_pointer && gdk_pointer_grab(dialog->window, TRUE, 0,
109 NULL, NULL, GDK_CURRENT_TIME))
110 goto nograb;
111 if (gdk_keyboard_grab(dialog->window, FALSE, GDK_CURRENT_TIME))
112 goto nograbkb;
113
114 /* Make <enter> close dialog */
115 gnome_dialog_editable_enters(GNOME_DIALOG(dialog), GTK_EDITABLE(entry));
116
117 /* Run dialog */
118 result = gnome_dialog_run(GNOME_DIALOG(dialog));
119
120 /* Ungrab */
121 if (grab_server)
122 XUngrabServer(GDK_DISPLAY());
123 if (grab_pointer)
124 gdk_pointer_ungrab(GDK_CURRENT_TIME);
125 gdk_keyboard_ungrab(GDK_CURRENT_TIME);
126 gdk_flush();
127
128 /* Report passphrase if user selected OK */
129 passphrase = gtk_entry_get_text(GTK_ENTRY(entry));
130 if (result == 0)
131 puts(passphrase);
132
133 /* Zero passphrase in memory */
134 memset(passphrase, '\0', strlen(passphrase));
135 gtk_entry_set_text(GTK_ENTRY(entry), passphrase);
136
137 gnome_dialog_close(GNOME_DIALOG(dialog));
138 return;
139
140 /* At least one grab failed - ungrab what we got, and report
141 the failure to the user. Note that XGrabServer() cannot
142 fail. */
143 nograbkb:
144 gdk_pointer_ungrab(GDK_CURRENT_TIME);
145 nograb:
146 if (grab_server)
147 XUngrabServer(GDK_DISPLAY());
148 gnome_dialog_close(GNOME_DIALOG(dialog));
149
150 report_failed_grab();
151}
152
153int
154main(int argc, char **argv)
155{
156 char *message;
157
158 gnome_init("GNOME ssh-askpass", "0.1", argc, argv);
159
160 if (argc == 2)
161 message = argv[1];
162 else
163 message = "Enter your OpenSSH passphrase:";
164
165 setvbuf(stdout, 0, _IONBF, 0);
166 passphrase_dialog(message);
167 return 0;
168}
diff --git a/contrib/solaris/README b/contrib/solaris/README
index 9b0a46e29..9b0a46e29 100644..100755
--- a/contrib/solaris/README
+++ b/contrib/solaris/README
diff --git a/openbsd-compat/fake-queue.h b/openbsd-compat/fake-queue.h
new file mode 100644
index 000000000..176fe3174
--- /dev/null
+++ b/openbsd-compat/fake-queue.h
@@ -0,0 +1,584 @@
1/* $OpenBSD: queue.h,v 1.22 2001/06/23 04:39:35 angelos Exp $ */
2/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
3
4/*
5 * Copyright (c) 1991, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by the University of
19 * California, Berkeley and its contributors.
20 * 4. Neither the name of the University nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)queue.h 8.5 (Berkeley) 8/20/94
37 */
38
39#ifndef _FAKE_QUEUE_H_
40#define _FAKE_QUEUE_H_
41
42/*
43 * Ignore all <sys/queue.h> since older platforms have broken/incomplete
44 * <sys/queue.h> that are too hard to work around.
45 */
46#undef SLIST_HEAD
47#undef SLIST_HEAD_INITIALIZER
48#undef SLIST_ENTRY
49#undef SLIST_FIRST
50#undef SLIST_END
51#undef SLIST_EMPTY
52#undef SLIST_NEXT
53#undef SLIST_FOREACH
54#undef SLIST_INIT
55#undef SLIST_INSERT_AFTER
56#undef SLIST_INSERT_HEAD
57#undef SLIST_REMOVE_HEAD
58#undef SLIST_REMOVE
59#undef LIST_HEAD
60#undef LIST_HEAD_INITIALIZER
61#undef LIST_ENTRY
62#undef LIST_FIRST
63#undef LIST_END
64#undef LIST_EMPTY
65#undef LIST_NEXT
66#undef LIST_FOREACH
67#undef LIST_INIT
68#undef LIST_INSERT_AFTER
69#undef LIST_INSERT_BEFORE
70#undef LIST_INSERT_HEAD
71#undef LIST_REMOVE
72#undef LIST_REPLACE
73#undef SIMPLEQ_HEAD
74#undef SIMPLEQ_HEAD_INITIALIZER
75#undef SIMPLEQ_ENTRY
76#undef SIMPLEQ_FIRST
77#undef SIMPLEQ_END
78#undef SIMPLEQ_EMPTY
79#undef SIMPLEQ_NEXT
80#undef SIMPLEQ_FOREACH
81#undef SIMPLEQ_INIT
82#undef SIMPLEQ_INSERT_HEAD
83#undef SIMPLEQ_INSERT_TAIL
84#undef SIMPLEQ_INSERT_AFTER
85#undef SIMPLEQ_REMOVE_HEAD
86#undef TAILQ_HEAD
87#undef TAILQ_HEAD_INITIALIZER
88#undef TAILQ_ENTRY
89#undef TAILQ_FIRST
90#undef TAILQ_END
91#undef TAILQ_NEXT
92#undef TAILQ_LAST
93#undef TAILQ_PREV
94#undef TAILQ_EMPTY
95#undef TAILQ_FOREACH
96#undef TAILQ_FOREACH_REVERSE
97#undef TAILQ_INIT
98#undef TAILQ_INSERT_HEAD
99#undef TAILQ_INSERT_TAIL
100#undef TAILQ_INSERT_AFTER
101#undef TAILQ_INSERT_BEFORE
102#undef TAILQ_REMOVE
103#undef TAILQ_REPLACE
104#undef CIRCLEQ_HEAD
105#undef CIRCLEQ_HEAD_INITIALIZER
106#undef CIRCLEQ_ENTRY
107#undef CIRCLEQ_FIRST
108#undef CIRCLEQ_LAST
109#undef CIRCLEQ_END
110#undef CIRCLEQ_NEXT
111#undef CIRCLEQ_PREV
112#undef CIRCLEQ_EMPTY
113#undef CIRCLEQ_FOREACH
114#undef CIRCLEQ_FOREACH_REVERSE
115#undef CIRCLEQ_INIT
116#undef CIRCLEQ_INSERT_AFTER
117#undef CIRCLEQ_INSERT_BEFORE
118#undef CIRCLEQ_INSERT_HEAD
119#undef CIRCLEQ_INSERT_TAIL
120#undef CIRCLEQ_REMOVE
121#undef CIRCLEQ_REPLACE
122
123/*
124 * This file defines five types of data structures: singly-linked lists,
125 * lists, simple queues, tail queues, and circular queues.
126 *
127 *
128 * A singly-linked list is headed by a single forward pointer. The elements
129 * are singly linked for minimum space and pointer manipulation overhead at
130 * the expense of O(n) removal for arbitrary elements. New elements can be
131 * added to the list after an existing element or at the head of the list.
132 * Elements being removed from the head of the list should use the explicit
133 * macro for this purpose for optimum efficiency. A singly-linked list may
134 * only be traversed in the forward direction. Singly-linked lists are ideal
135 * for applications with large datasets and few or no removals or for
136 * implementing a LIFO queue.
137 *
138 * A list is headed by a single forward pointer (or an array of forward
139 * pointers for a hash table header). The elements are doubly linked
140 * so that an arbitrary element can be removed without a need to
141 * traverse the list. New elements can be added to the list before
142 * or after an existing element or at the head of the list. A list
143 * may only be traversed in the forward direction.
144 *
145 * A simple queue is headed by a pair of pointers, one the head of the
146 * list and the other to the tail of the list. The elements are singly
147 * linked to save space, so elements can only be removed from the
148 * head of the list. New elements can be added to the list before or after
149 * an existing element, at the head of the list, or at the end of the
150 * list. A simple queue may only be traversed in the forward direction.
151 *
152 * A tail queue is headed by a pair of pointers, one to the head of the
153 * list and the other to the tail of the list. The elements are doubly
154 * linked so that an arbitrary element can be removed without a need to
155 * traverse the list. New elements can be added to the list before or
156 * after an existing element, at the head of the list, or at the end of
157 * the list. A tail queue may be traversed in either direction.
158 *
159 * A circle queue is headed by a pair of pointers, one to the head of the
160 * list and the other to the tail of the list. The elements are doubly
161 * linked so that an arbitrary element can be removed without a need to
162 * traverse the list. New elements can be added to the list before or after
163 * an existing element, at the head of the list, or at the end of the list.
164 * A circle queue may be traversed in either direction, but has a more
165 * complex end of list detection.
166 *
167 * For details on the use of these macros, see the queue(3) manual page.
168 */
169
170/*
171 * Singly-linked List definitions.
172 */
173#define SLIST_HEAD(name, type) \
174struct name { \
175 struct type *slh_first; /* first element */ \
176}
177
178#define SLIST_HEAD_INITIALIZER(head) \
179 { NULL }
180
181#define SLIST_ENTRY(type) \
182struct { \
183 struct type *sle_next; /* next element */ \
184}
185
186/*
187 * Singly-linked List access methods.
188 */
189#define SLIST_FIRST(head) ((head)->slh_first)
190#define SLIST_END(head) NULL
191#define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head))
192#define SLIST_NEXT(elm, field) ((elm)->field.sle_next)
193
194#define SLIST_FOREACH(var, head, field) \
195 for((var) = SLIST_FIRST(head); \
196 (var) != SLIST_END(head); \
197 (var) = SLIST_NEXT(var, field))
198
199/*
200 * Singly-linked List functions.
201 */
202#define SLIST_INIT(head) { \
203 SLIST_FIRST(head) = SLIST_END(head); \
204}
205
206#define SLIST_INSERT_AFTER(slistelm, elm, field) do { \
207 (elm)->field.sle_next = (slistelm)->field.sle_next; \
208 (slistelm)->field.sle_next = (elm); \
209} while (0)
210
211#define SLIST_INSERT_HEAD(head, elm, field) do { \
212 (elm)->field.sle_next = (head)->slh_first; \
213 (head)->slh_first = (elm); \
214} while (0)
215
216#define SLIST_REMOVE_HEAD(head, field) do { \
217 (head)->slh_first = (head)->slh_first->field.sle_next; \
218} while (0)
219
220#define SLIST_REMOVE(head, elm, type, field) do { \
221 if ((head)->slh_first == (elm)) { \
222 SLIST_REMOVE_HEAD((head), field); \
223 } \
224 else { \
225 struct type *curelm = (head)->slh_first; \
226 while( curelm->field.sle_next != (elm) ) \
227 curelm = curelm->field.sle_next; \
228 curelm->field.sle_next = \
229 curelm->field.sle_next->field.sle_next; \
230 } \
231} while (0)
232
233/*
234 * List definitions.
235 */
236#define LIST_HEAD(name, type) \
237struct name { \
238 struct type *lh_first; /* first element */ \
239}
240
241#define LIST_HEAD_INITIALIZER(head) \
242 { NULL }
243
244#define LIST_ENTRY(type) \
245struct { \
246 struct type *le_next; /* next element */ \
247 struct type **le_prev; /* address of previous next element */ \
248}
249
250/*
251 * List access methods
252 */
253#define LIST_FIRST(head) ((head)->lh_first)
254#define LIST_END(head) NULL
255#define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head))
256#define LIST_NEXT(elm, field) ((elm)->field.le_next)
257
258#define LIST_FOREACH(var, head, field) \
259 for((var) = LIST_FIRST(head); \
260 (var)!= LIST_END(head); \
261 (var) = LIST_NEXT(var, field))
262
263/*
264 * List functions.
265 */
266#define LIST_INIT(head) do { \
267 LIST_FIRST(head) = LIST_END(head); \
268} while (0)
269
270#define LIST_INSERT_AFTER(listelm, elm, field) do { \
271 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \
272 (listelm)->field.le_next->field.le_prev = \
273 &(elm)->field.le_next; \
274 (listelm)->field.le_next = (elm); \
275 (elm)->field.le_prev = &(listelm)->field.le_next; \
276} while (0)
277
278#define LIST_INSERT_BEFORE(listelm, elm, field) do { \
279 (elm)->field.le_prev = (listelm)->field.le_prev; \
280 (elm)->field.le_next = (listelm); \
281 *(listelm)->field.le_prev = (elm); \
282 (listelm)->field.le_prev = &(elm)->field.le_next; \
283} while (0)
284
285#define LIST_INSERT_HEAD(head, elm, field) do { \
286 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
287 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
288 (head)->lh_first = (elm); \
289 (elm)->field.le_prev = &(head)->lh_first; \
290} while (0)
291
292#define LIST_REMOVE(elm, field) do { \
293 if ((elm)->field.le_next != NULL) \
294 (elm)->field.le_next->field.le_prev = \
295 (elm)->field.le_prev; \
296 *(elm)->field.le_prev = (elm)->field.le_next; \
297} while (0)
298
299#define LIST_REPLACE(elm, elm2, field) do { \
300 if (((elm2)->field.le_next = (elm)->field.le_next) != NULL) \
301 (elm2)->field.le_next->field.le_prev = \
302 &(elm2)->field.le_next; \
303 (elm2)->field.le_prev = (elm)->field.le_prev; \
304 *(elm2)->field.le_prev = (elm2); \
305} while (0)
306
307/*
308 * Simple queue definitions.
309 */
310#define SIMPLEQ_HEAD(name, type) \
311struct name { \
312 struct type *sqh_first; /* first element */ \
313 struct type **sqh_last; /* addr of last next element */ \
314}
315
316#define SIMPLEQ_HEAD_INITIALIZER(head) \
317 { NULL, &(head).sqh_first }
318
319#define SIMPLEQ_ENTRY(type) \
320struct { \
321 struct type *sqe_next; /* next element */ \
322}
323
324/*
325 * Simple queue access methods.
326 */
327#define SIMPLEQ_FIRST(head) ((head)->sqh_first)
328#define SIMPLEQ_END(head) NULL
329#define SIMPLEQ_EMPTY(head) (SIMPLEQ_FIRST(head) == SIMPLEQ_END(head))
330#define SIMPLEQ_NEXT(elm, field) ((elm)->field.sqe_next)
331
332#define SIMPLEQ_FOREACH(var, head, field) \
333 for((var) = SIMPLEQ_FIRST(head); \
334 (var) != SIMPLEQ_END(head); \
335 (var) = SIMPLEQ_NEXT(var, field))
336
337/*
338 * Simple queue functions.
339 */
340#define SIMPLEQ_INIT(head) do { \
341 (head)->sqh_first = NULL; \
342 (head)->sqh_last = &(head)->sqh_first; \
343} while (0)
344
345#define SIMPLEQ_INSERT_HEAD(head, elm, field) do { \
346 if (((elm)->field.sqe_next = (head)->sqh_first) == NULL) \
347 (head)->sqh_last = &(elm)->field.sqe_next; \
348 (head)->sqh_first = (elm); \
349} while (0)
350
351#define SIMPLEQ_INSERT_TAIL(head, elm, field) do { \
352 (elm)->field.sqe_next = NULL; \
353 *(head)->sqh_last = (elm); \
354 (head)->sqh_last = &(elm)->field.sqe_next; \
355} while (0)
356
357#define SIMPLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
358 if (((elm)->field.sqe_next = (listelm)->field.sqe_next) == NULL)\
359 (head)->sqh_last = &(elm)->field.sqe_next; \
360 (listelm)->field.sqe_next = (elm); \
361} while (0)
362
363#define SIMPLEQ_REMOVE_HEAD(head, elm, field) do { \
364 if (((head)->sqh_first = (elm)->field.sqe_next) == NULL) \
365 (head)->sqh_last = &(head)->sqh_first; \
366} while (0)
367
368/*
369 * Tail queue definitions.
370 */
371#define TAILQ_HEAD(name, type) \
372struct name { \
373 struct type *tqh_first; /* first element */ \
374 struct type **tqh_last; /* addr of last next element */ \
375}
376
377#define TAILQ_HEAD_INITIALIZER(head) \
378 { NULL, &(head).tqh_first }
379
380#define TAILQ_ENTRY(type) \
381struct { \
382 struct type *tqe_next; /* next element */ \
383 struct type **tqe_prev; /* address of previous next element */ \
384}
385
386/*
387 * tail queue access methods
388 */
389#define TAILQ_FIRST(head) ((head)->tqh_first)
390#define TAILQ_END(head) NULL
391#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
392#define TAILQ_LAST(head, headname) \
393 (*(((struct headname *)((head)->tqh_last))->tqh_last))
394/* XXX */
395#define TAILQ_PREV(elm, headname, field) \
396 (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))
397#define TAILQ_EMPTY(head) \
398 (TAILQ_FIRST(head) == TAILQ_END(head))
399
400#define TAILQ_FOREACH(var, head, field) \
401 for((var) = TAILQ_FIRST(head); \
402 (var) != TAILQ_END(head); \
403 (var) = TAILQ_NEXT(var, field))
404
405#define TAILQ_FOREACH_REVERSE(var, head, field, headname) \
406 for((var) = TAILQ_LAST(head, headname); \
407 (var) != TAILQ_END(head); \
408 (var) = TAILQ_PREV(var, headname, field))
409
410/*
411 * Tail queue functions.
412 */
413#define TAILQ_INIT(head) do { \
414 (head)->tqh_first = NULL; \
415 (head)->tqh_last = &(head)->tqh_first; \
416} while (0)
417
418#define TAILQ_INSERT_HEAD(head, elm, field) do { \
419 if (((elm)->field.tqe_next = (head)->tqh_first) != NULL) \
420 (head)->tqh_first->field.tqe_prev = \
421 &(elm)->field.tqe_next; \
422 else \
423 (head)->tqh_last = &(elm)->field.tqe_next; \
424 (head)->tqh_first = (elm); \
425 (elm)->field.tqe_prev = &(head)->tqh_first; \
426} while (0)
427
428#define TAILQ_INSERT_TAIL(head, elm, field) do { \
429 (elm)->field.tqe_next = NULL; \
430 (elm)->field.tqe_prev = (head)->tqh_last; \
431 *(head)->tqh_last = (elm); \
432 (head)->tqh_last = &(elm)->field.tqe_next; \
433} while (0)
434
435#define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
436 if (((elm)->field.tqe_next = (listelm)->field.tqe_next) != NULL)\
437 (elm)->field.tqe_next->field.tqe_prev = \
438 &(elm)->field.tqe_next; \
439 else \
440 (head)->tqh_last = &(elm)->field.tqe_next; \
441 (listelm)->field.tqe_next = (elm); \
442 (elm)->field.tqe_prev = &(listelm)->field.tqe_next; \
443} while (0)
444
445#define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \
446 (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \
447 (elm)->field.tqe_next = (listelm); \
448 *(listelm)->field.tqe_prev = (elm); \
449 (listelm)->field.tqe_prev = &(elm)->field.tqe_next; \
450} while (0)
451
452#define TAILQ_REMOVE(head, elm, field) do { \
453 if (((elm)->field.tqe_next) != NULL) \
454 (elm)->field.tqe_next->field.tqe_prev = \
455 (elm)->field.tqe_prev; \
456 else \
457 (head)->tqh_last = (elm)->field.tqe_prev; \
458 *(elm)->field.tqe_prev = (elm)->field.tqe_next; \
459} while (0)
460
461#define TAILQ_REPLACE(head, elm, elm2, field) do { \
462 if (((elm2)->field.tqe_next = (elm)->field.tqe_next) != NULL) \
463 (elm2)->field.tqe_next->field.tqe_prev = \
464 &(elm2)->field.tqe_next; \
465 else \
466 (head)->tqh_last = &(elm2)->field.tqe_next; \
467 (elm2)->field.tqe_prev = (elm)->field.tqe_prev; \
468 *(elm2)->field.tqe_prev = (elm2); \
469} while (0)
470
471/*
472 * Circular queue definitions.
473 */
474#define CIRCLEQ_HEAD(name, type) \
475struct name { \
476 struct type *cqh_first; /* first element */ \
477 struct type *cqh_last; /* last element */ \
478}
479
480#define CIRCLEQ_HEAD_INITIALIZER(head) \
481 { CIRCLEQ_END(&head), CIRCLEQ_END(&head) }
482
483#define CIRCLEQ_ENTRY(type) \
484struct { \
485 struct type *cqe_next; /* next element */ \
486 struct type *cqe_prev; /* previous element */ \
487}
488
489/*
490 * Circular queue access methods
491 */
492#define CIRCLEQ_FIRST(head) ((head)->cqh_first)
493#define CIRCLEQ_LAST(head) ((head)->cqh_last)
494#define CIRCLEQ_END(head) ((void *)(head))
495#define CIRCLEQ_NEXT(elm, field) ((elm)->field.cqe_next)
496#define CIRCLEQ_PREV(elm, field) ((elm)->field.cqe_prev)
497#define CIRCLEQ_EMPTY(head) \
498 (CIRCLEQ_FIRST(head) == CIRCLEQ_END(head))
499
500#define CIRCLEQ_FOREACH(var, head, field) \
501 for((var) = CIRCLEQ_FIRST(head); \
502 (var) != CIRCLEQ_END(head); \
503 (var) = CIRCLEQ_NEXT(var, field))
504
505#define CIRCLEQ_FOREACH_REVERSE(var, head, field) \
506 for((var) = CIRCLEQ_LAST(head); \
507 (var) != CIRCLEQ_END(head); \
508 (var) = CIRCLEQ_PREV(var, field))
509
510/*
511 * Circular queue functions.
512 */
513#define CIRCLEQ_INIT(head) do { \
514 (head)->cqh_first = CIRCLEQ_END(head); \
515 (head)->cqh_last = CIRCLEQ_END(head); \
516} while (0)
517
518#define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
519 (elm)->field.cqe_next = (listelm)->field.cqe_next; \
520 (elm)->field.cqe_prev = (listelm); \
521 if ((listelm)->field.cqe_next == CIRCLEQ_END(head)) \
522 (head)->cqh_last = (elm); \
523 else \
524 (listelm)->field.cqe_next->field.cqe_prev = (elm); \
525 (listelm)->field.cqe_next = (elm); \
526} while (0)
527
528#define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \
529 (elm)->field.cqe_next = (listelm); \
530 (elm)->field.cqe_prev = (listelm)->field.cqe_prev; \
531 if ((listelm)->field.cqe_prev == CIRCLEQ_END(head)) \
532 (head)->cqh_first = (elm); \
533 else \
534 (listelm)->field.cqe_prev->field.cqe_next = (elm); \
535 (listelm)->field.cqe_prev = (elm); \
536} while (0)
537
538#define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \
539 (elm)->field.cqe_next = (head)->cqh_first; \
540 (elm)->field.cqe_prev = CIRCLEQ_END(head); \
541 if ((head)->cqh_last == CIRCLEQ_END(head)) \
542 (head)->cqh_last = (elm); \
543 else \
544 (head)->cqh_first->field.cqe_prev = (elm); \
545 (head)->cqh_first = (elm); \
546} while (0)
547
548#define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \
549 (elm)->field.cqe_next = CIRCLEQ_END(head); \
550 (elm)->field.cqe_prev = (head)->cqh_last; \
551 if ((head)->cqh_first == CIRCLEQ_END(head)) \
552 (head)->cqh_first = (elm); \
553 else \
554 (head)->cqh_last->field.cqe_next = (elm); \
555 (head)->cqh_last = (elm); \
556} while (0)
557
558#define CIRCLEQ_REMOVE(head, elm, field) do { \
559 if ((elm)->field.cqe_next == CIRCLEQ_END(head)) \
560 (head)->cqh_last = (elm)->field.cqe_prev; \
561 else \
562 (elm)->field.cqe_next->field.cqe_prev = \
563 (elm)->field.cqe_prev; \
564 if ((elm)->field.cqe_prev == CIRCLEQ_END(head)) \
565 (head)->cqh_first = (elm)->field.cqe_next; \
566 else \
567 (elm)->field.cqe_prev->field.cqe_next = \
568 (elm)->field.cqe_next; \
569} while (0)
570
571#define CIRCLEQ_REPLACE(head, elm, elm2, field) do { \
572 if (((elm2)->field.cqe_next = (elm)->field.cqe_next) == \
573 CIRCLEQ_END(head)) \
574 (head).cqh_last = (elm2); \
575 else \
576 (elm2)->field.cqe_next->field.cqe_prev = (elm2); \
577 if (((elm2)->field.cqe_prev = (elm)->field.cqe_prev) == \
578 CIRCLEQ_END(head)) \
579 (head).cqh_first = (elm2); \
580 else \
581 (elm2)->field.cqe_prev->field.cqe_next = (elm2); \
582} while (0)
583
584#endif /* !_FAKE_QUEUE_H_ */
diff --git a/openbsd-compat/tree.h b/openbsd-compat/tree.h
new file mode 100644
index 000000000..30b4a8561
--- /dev/null
+++ b/openbsd-compat/tree.h
@@ -0,0 +1,667 @@
1/*
2 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef _SYS_TREE_H_
27#define _SYS_TREE_H_
28
29/*
30 * This file defines data structures for different types of trees:
31 * splay trees and red-black trees.
32 *
33 * A splay tree is a self-organizing data structure. Every operation
34 * on the tree causes a splay to happen. The splay moves the requested
35 * node to the root of the tree and partly rebalances it.
36 *
37 * This has the benefit that request locality causes faster lookups as
38 * the requested nodes move to the top of the tree. On the other hand,
39 * every lookup causes memory writes.
40 *
41 * The Balance Theorem bounds the total access time for m operations
42 * and n inserts on an initially empty tree as O((m + n)lg n). The
43 * amortized cost for a sequence of m accesses to a splay tree is O(lg n);
44 *
45 * A red-black tree is a binary search tree with the node color as an
46 * extra attribute. It fulfills a set of conditions:
47 * - every search path from the root to a leaf consists of the
48 * same number of black nodes,
49 * - each red node (except for the root) has a black parent,
50 * - each leaf node is black.
51 *
52 * Every operation on a red-black tree is bounded as O(lg n).
53 * The maximum height of a red-black tree is 2lg (n+1).
54 */
55
56#define SPLAY_HEAD(name, type) \
57struct name { \
58 struct type *sph_root; /* root of the tree */ \
59}
60
61#define SPLAY_INITIALIZER(root) \
62 { NULL }
63
64#define SPLAY_INIT(root) do { \
65 (root)->sph_root = NULL; \
66} while (0)
67
68#define SPLAY_ENTRY(type) \
69struct { \
70 struct type *spe_left; /* left element */ \
71 struct type *spe_right; /* right element */ \
72}
73
74#define SPLAY_LEFT(elm, field) (elm)->field.spe_left
75#define SPLAY_RIGHT(elm, field) (elm)->field.spe_right
76#define SPLAY_ROOT(head) (head)->sph_root
77#define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL)
78
79/* SPLAY_ROTATE_{LEFT,RIGHT} expect that tmp hold SPLAY_{RIGHT,LEFT} */
80#define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \
81 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
82 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
83 (head)->sph_root = tmp; \
84} while (0)
85
86#define SPLAY_ROTATE_LEFT(head, tmp, field) do { \
87 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
88 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
89 (head)->sph_root = tmp; \
90} while (0)
91
92#define SPLAY_LINKLEFT(head, tmp, field) do { \
93 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
94 tmp = (head)->sph_root; \
95 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field); \
96} while (0)
97
98#define SPLAY_LINKRIGHT(head, tmp, field) do { \
99 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
100 tmp = (head)->sph_root; \
101 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field); \
102} while (0)
103
104#define SPLAY_ASSEMBLE(head, node, left, right, field) do { \
105 SPLAY_RIGHT(left, field) = SPLAY_LEFT((head)->sph_root, field); \
106 SPLAY_LEFT(right, field) = SPLAY_RIGHT((head)->sph_root, field);\
107 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(node, field); \
108 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(node, field); \
109} while (0)
110
111/* Generates prototypes and inline functions */
112
113#define SPLAY_PROTOTYPE(name, type, field, cmp) \
114void name##_SPLAY(struct name *, struct type *); \
115void name##_SPLAY_MINMAX(struct name *, int); \
116 \
117static __inline void \
118name##_SPLAY_INSERT(struct name *head, struct type *elm) \
119{ \
120 if (SPLAY_EMPTY(head)) { \
121 SPLAY_LEFT(elm, field) = SPLAY_RIGHT(elm, field) = NULL; \
122 } else { \
123 int __comp; \
124 name##_SPLAY(head, elm); \
125 __comp = (cmp)(elm, (head)->sph_root); \
126 if(__comp < 0) { \
127 SPLAY_LEFT(elm, field) = SPLAY_LEFT((head)->sph_root, field);\
128 SPLAY_RIGHT(elm, field) = (head)->sph_root; \
129 SPLAY_LEFT((head)->sph_root, field) = NULL; \
130 } else if (__comp > 0) { \
131 SPLAY_RIGHT(elm, field) = SPLAY_RIGHT((head)->sph_root, field);\
132 SPLAY_LEFT(elm, field) = (head)->sph_root; \
133 SPLAY_RIGHT((head)->sph_root, field) = NULL; \
134 } else \
135 return; \
136 } \
137 (head)->sph_root = (elm); \
138} \
139 \
140static __inline void \
141name##_SPLAY_REMOVE(struct name *head, struct type *elm) \
142{ \
143 struct type *__tmp; \
144 if (SPLAY_EMPTY(head)) \
145 return; \
146 name##_SPLAY(head, elm); \
147 if ((cmp)(elm, (head)->sph_root) == 0) { \
148 if (SPLAY_LEFT((head)->sph_root, field) == NULL) { \
149 (head)->sph_root = SPLAY_RIGHT((head)->sph_root, field);\
150 } else { \
151 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
152 (head)->sph_root = SPLAY_LEFT((head)->sph_root, field);\
153 name##_SPLAY(head, elm); \
154 SPLAY_RIGHT((head)->sph_root, field) = __tmp; \
155 } \
156 } \
157} \
158 \
159/* Finds the node with the same key as elm */ \
160static __inline struct type * \
161name##_SPLAY_FIND(struct name *head, struct type *elm) \
162{ \
163 if (SPLAY_EMPTY(head)) \
164 return(NULL); \
165 name##_SPLAY(head, elm); \
166 if ((cmp)(elm, (head)->sph_root) == 0) \
167 return (head->sph_root); \
168 return (NULL); \
169} \
170 \
171static __inline struct type * \
172name##_SPLAY_NEXT(struct name *head, struct type *elm) \
173{ \
174 name##_SPLAY(head, elm); \
175 if (SPLAY_RIGHT(elm, field) != NULL) { \
176 elm = SPLAY_RIGHT(elm, field); \
177 while (SPLAY_LEFT(elm, field) != NULL) { \
178 elm = SPLAY_LEFT(elm, field); \
179 } \
180 } else \
181 elm = NULL; \
182 return (elm); \
183} \
184 \
185static __inline struct type * \
186name##_SPLAY_MIN_MAX(struct name *head, int val) \
187{ \
188 name##_SPLAY_MINMAX(head, val); \
189 return (SPLAY_ROOT(head)); \
190}
191
192/* Main splay operation.
193 * Moves node close to the key of elm to top
194 */
195#define SPLAY_GENERATE(name, type, field, cmp) \
196void name##_SPLAY(struct name *head, struct type *elm) \
197{ \
198 struct type __node, *__left, *__right, *__tmp; \
199 int __comp; \
200\
201 SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\
202 __left = __right = &__node; \
203\
204 while ((__comp = (cmp)(elm, (head)->sph_root))) { \
205 if (__comp < 0) { \
206 __tmp = SPLAY_LEFT((head)->sph_root, field); \
207 if (__tmp == NULL) \
208 break; \
209 if ((cmp)(elm, __tmp) < 0){ \
210 SPLAY_ROTATE_RIGHT(head, __tmp, field); \
211 if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
212 break; \
213 } \
214 SPLAY_LINKLEFT(head, __right, field); \
215 } else if (__comp > 0) { \
216 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
217 if (__tmp == NULL) \
218 break; \
219 if ((cmp)(elm, __tmp) > 0){ \
220 SPLAY_ROTATE_LEFT(head, __tmp, field); \
221 if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
222 break; \
223 } \
224 SPLAY_LINKRIGHT(head, __left, field); \
225 } \
226 } \
227 SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
228} \
229 \
230/* Splay with either the minimum or the maximum element \
231 * Used to find minimum or maximum element in tree. \
232 */ \
233void name##_SPLAY_MINMAX(struct name *head, int __comp) \
234{ \
235 struct type __node, *__left, *__right, *__tmp; \
236\
237 SPLAY_LEFT(&__node, field) = SPLAY_RIGHT(&__node, field) = NULL;\
238 __left = __right = &__node; \
239\
240 while (1) { \
241 if (__comp < 0) { \
242 __tmp = SPLAY_LEFT((head)->sph_root, field); \
243 if (__tmp == NULL) \
244 break; \
245 if (__comp < 0){ \
246 SPLAY_ROTATE_RIGHT(head, __tmp, field); \
247 if (SPLAY_LEFT((head)->sph_root, field) == NULL)\
248 break; \
249 } \
250 SPLAY_LINKLEFT(head, __right, field); \
251 } else if (__comp > 0) { \
252 __tmp = SPLAY_RIGHT((head)->sph_root, field); \
253 if (__tmp == NULL) \
254 break; \
255 if (__comp > 0) { \
256 SPLAY_ROTATE_LEFT(head, __tmp, field); \
257 if (SPLAY_RIGHT((head)->sph_root, field) == NULL)\
258 break; \
259 } \
260 SPLAY_LINKRIGHT(head, __left, field); \
261 } \
262 } \
263 SPLAY_ASSEMBLE(head, &__node, __left, __right, field); \
264}
265
266#define SPLAY_NEGINF -1
267#define SPLAY_INF 1
268
269#define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y)
270#define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y)
271#define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y)
272#define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y)
273#define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \
274 : name##_SPLAY_MIN_MAX(x, SPLAY_NEGINF))
275#define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \
276 : name##_SPLAY_MIN_MAX(x, SPLAY_INF))
277
278#define SPLAY_FOREACH(x, name, head) \
279 for ((x) = SPLAY_MIN(name, head); \
280 (x) != NULL; \
281 (x) = SPLAY_NEXT(name, head, x))
282
283/* Macros that define a red-back tree */
284#define RB_HEAD(name, type) \
285struct name { \
286 struct type *rbh_root; /* root of the tree */ \
287}
288
289#define RB_INITIALIZER(root) \
290 { NULL }
291
292#define RB_INIT(root) do { \
293 (root)->rbh_root = NULL; \
294} while (0)
295
296#define RB_BLACK 0
297#define RB_RED 1
298#define RB_ENTRY(type) \
299struct { \
300 struct type *rbe_left; /* left element */ \
301 struct type *rbe_right; /* right element */ \
302 struct type *rbe_parent; /* parent element */ \
303 int rbe_color; /* node color */ \
304}
305
306#define RB_LEFT(elm, field) (elm)->field.rbe_left
307#define RB_RIGHT(elm, field) (elm)->field.rbe_right
308#define RB_PARENT(elm, field) (elm)->field.rbe_parent
309#define RB_COLOR(elm, field) (elm)->field.rbe_color
310#define RB_ROOT(head) (head)->rbh_root
311#define RB_EMPTY(head) (RB_ROOT(head) == NULL)
312
313#define RB_SET(elm, parent, field) do { \
314 RB_PARENT(elm, field) = parent; \
315 RB_LEFT(elm, field) = RB_RIGHT(elm, field) = NULL; \
316 RB_COLOR(elm, field) = RB_RED; \
317} while (0)
318
319#define RB_SET_BLACKRED(black, red, field) do { \
320 RB_COLOR(black, field) = RB_BLACK; \
321 RB_COLOR(red, field) = RB_RED; \
322} while (0)
323
324#ifndef RB_AUGMENT
325#define RB_AUGMENT(x)
326#endif
327
328#define RB_ROTATE_LEFT(head, elm, tmp, field) do { \
329 (tmp) = RB_RIGHT(elm, field); \
330 if ((RB_RIGHT(elm, field) = RB_LEFT(tmp, field))) { \
331 RB_PARENT(RB_LEFT(tmp, field), field) = (elm); \
332 } \
333 RB_AUGMENT(elm); \
334 if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \
335 if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \
336 RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \
337 else \
338 RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \
339 RB_AUGMENT(RB_PARENT(elm, field)); \
340 } else \
341 (head)->rbh_root = (tmp); \
342 RB_LEFT(tmp, field) = (elm); \
343 RB_PARENT(elm, field) = (tmp); \
344 RB_AUGMENT(tmp); \
345} while (0)
346
347#define RB_ROTATE_RIGHT(head, elm, tmp, field) do { \
348 (tmp) = RB_LEFT(elm, field); \
349 if ((RB_LEFT(elm, field) = RB_RIGHT(tmp, field))) { \
350 RB_PARENT(RB_RIGHT(tmp, field), field) = (elm); \
351 } \
352 RB_AUGMENT(elm); \
353 if ((RB_PARENT(tmp, field) = RB_PARENT(elm, field))) { \
354 if ((elm) == RB_LEFT(RB_PARENT(elm, field), field)) \
355 RB_LEFT(RB_PARENT(elm, field), field) = (tmp); \
356 else \
357 RB_RIGHT(RB_PARENT(elm, field), field) = (tmp); \
358 RB_AUGMENT(RB_PARENT(elm, field)); \
359 } else \
360 (head)->rbh_root = (tmp); \
361 RB_RIGHT(tmp, field) = (elm); \
362 RB_PARENT(elm, field) = (tmp); \
363 RB_AUGMENT(tmp); \
364} while (0)
365
366/* Generates prototypes and inline functions */
367#define RB_PROTOTYPE(name, type, field, cmp) \
368void name##_RB_INSERT_COLOR(struct name *, struct type *); \
369void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
370void name##_RB_REMOVE(struct name *, struct type *); \
371struct type *name##_RB_INSERT(struct name *, struct type *); \
372struct type *name##_RB_FIND(struct name *, struct type *); \
373struct type *name##_RB_NEXT(struct name *, struct type *); \
374struct type *name##_RB_MINMAX(struct name *, int); \
375 \
376
377/* Main rb operation.
378 * Moves node close to the key of elm to top
379 */
380#define RB_GENERATE(name, type, field, cmp) \
381void \
382name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \
383{ \
384 struct type *parent, *gparent, *tmp; \
385 while ((parent = RB_PARENT(elm, field)) && \
386 RB_COLOR(parent, field) == RB_RED) { \
387 gparent = RB_PARENT(parent, field); \
388 if (parent == RB_LEFT(gparent, field)) { \
389 tmp = RB_RIGHT(gparent, field); \
390 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
391 RB_COLOR(tmp, field) = RB_BLACK; \
392 RB_SET_BLACKRED(parent, gparent, field);\
393 elm = gparent; \
394 continue; \
395 } \
396 if (RB_RIGHT(parent, field) == elm) { \
397 RB_ROTATE_LEFT(head, parent, tmp, field);\
398 tmp = parent; \
399 parent = elm; \
400 elm = tmp; \
401 } \
402 RB_SET_BLACKRED(parent, gparent, field); \
403 RB_ROTATE_RIGHT(head, gparent, tmp, field); \
404 } else { \
405 tmp = RB_LEFT(gparent, field); \
406 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
407 RB_COLOR(tmp, field) = RB_BLACK; \
408 RB_SET_BLACKRED(parent, gparent, field);\
409 elm = gparent; \
410 continue; \
411 } \
412 if (RB_LEFT(parent, field) == elm) { \
413 RB_ROTATE_RIGHT(head, parent, tmp, field);\
414 tmp = parent; \
415 parent = elm; \
416 elm = tmp; \
417 } \
418 RB_SET_BLACKRED(parent, gparent, field); \
419 RB_ROTATE_LEFT(head, gparent, tmp, field); \
420 } \
421 } \
422 RB_COLOR(head->rbh_root, field) = RB_BLACK; \
423} \
424 \
425void \
426name##_RB_REMOVE_COLOR(struct name *head, struct type *parent, struct type *elm) \
427{ \
428 struct type *tmp; \
429 while ((elm == NULL || RB_COLOR(elm, field) == RB_BLACK) && \
430 elm != RB_ROOT(head)) { \
431 if (RB_LEFT(parent, field) == elm) { \
432 tmp = RB_RIGHT(parent, field); \
433 if (RB_COLOR(tmp, field) == RB_RED) { \
434 RB_SET_BLACKRED(tmp, parent, field); \
435 RB_ROTATE_LEFT(head, parent, tmp, field);\
436 tmp = RB_RIGHT(parent, field); \
437 } \
438 if ((RB_LEFT(tmp, field) == NULL || \
439 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
440 (RB_RIGHT(tmp, field) == NULL || \
441 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
442 RB_COLOR(tmp, field) = RB_RED; \
443 elm = parent; \
444 parent = RB_PARENT(elm, field); \
445 } else { \
446 if (RB_RIGHT(tmp, field) == NULL || \
447 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK) {\
448 struct type *oleft; \
449 if ((oleft = RB_LEFT(tmp, field)))\
450 RB_COLOR(oleft, field) = RB_BLACK;\
451 RB_COLOR(tmp, field) = RB_RED; \
452 RB_ROTATE_RIGHT(head, tmp, oleft, field);\
453 tmp = RB_RIGHT(parent, field); \
454 } \
455 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
456 RB_COLOR(parent, field) = RB_BLACK; \
457 if (RB_RIGHT(tmp, field)) \
458 RB_COLOR(RB_RIGHT(tmp, field), field) = RB_BLACK;\
459 RB_ROTATE_LEFT(head, parent, tmp, field);\
460 elm = RB_ROOT(head); \
461 break; \
462 } \
463 } else { \
464 tmp = RB_LEFT(parent, field); \
465 if (RB_COLOR(tmp, field) == RB_RED) { \
466 RB_SET_BLACKRED(tmp, parent, field); \
467 RB_ROTATE_RIGHT(head, parent, tmp, field);\
468 tmp = RB_LEFT(parent, field); \
469 } \
470 if ((RB_LEFT(tmp, field) == NULL || \
471 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
472 (RB_RIGHT(tmp, field) == NULL || \
473 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
474 RB_COLOR(tmp, field) = RB_RED; \
475 elm = parent; \
476 parent = RB_PARENT(elm, field); \
477 } else { \
478 if (RB_LEFT(tmp, field) == NULL || \
479 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) {\
480 struct type *oright; \
481 if ((oright = RB_RIGHT(tmp, field)))\
482 RB_COLOR(oright, field) = RB_BLACK;\
483 RB_COLOR(tmp, field) = RB_RED; \
484 RB_ROTATE_LEFT(head, tmp, oright, field);\
485 tmp = RB_LEFT(parent, field); \
486 } \
487 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
488 RB_COLOR(parent, field) = RB_BLACK; \
489 if (RB_LEFT(tmp, field)) \
490 RB_COLOR(RB_LEFT(tmp, field), field) = RB_BLACK;\
491 RB_ROTATE_RIGHT(head, parent, tmp, field);\
492 elm = RB_ROOT(head); \
493 break; \
494 } \
495 } \
496 } \
497 if (elm) \
498 RB_COLOR(elm, field) = RB_BLACK; \
499} \
500 \
501void \
502name##_RB_REMOVE(struct name *head, struct type *elm) \
503{ \
504 struct type *child, *parent; \
505 int color; \
506 if (RB_LEFT(elm, field) == NULL) \
507 child = RB_RIGHT(elm, field); \
508 else if (RB_RIGHT(elm, field) == NULL) \
509 child = RB_LEFT(elm, field); \
510 else { \
511 struct type *old = elm, *left; \
512 elm = RB_RIGHT(elm, field); \
513 while ((left = RB_LEFT(elm, field))) \
514 elm = left; \
515 child = RB_RIGHT(elm, field); \
516 parent = RB_PARENT(elm, field); \
517 color = RB_COLOR(elm, field); \
518 if (child) \
519 RB_PARENT(child, field) = parent; \
520 if (parent) { \
521 if (RB_LEFT(parent, field) == elm) \
522 RB_LEFT(parent, field) = child; \
523 else \
524 RB_RIGHT(parent, field) = child; \
525 RB_AUGMENT(parent); \
526 } else \
527 RB_ROOT(head) = child; \
528 if (RB_PARENT(elm, field) == old) \
529 parent = elm; \
530 (elm)->field = (old)->field; \
531 if (RB_PARENT(old, field)) { \
532 if (RB_LEFT(RB_PARENT(old, field), field) == old)\
533 RB_LEFT(RB_PARENT(old, field), field) = elm;\
534 else \
535 RB_RIGHT(RB_PARENT(old, field), field) = elm;\
536 RB_AUGMENT(RB_PARENT(old, field)); \
537 } else \
538 RB_ROOT(head) = elm; \
539 RB_PARENT(RB_LEFT(old, field), field) = elm; \
540 if (RB_RIGHT(old, field)) \
541 RB_PARENT(RB_RIGHT(old, field), field) = elm; \
542 if (parent) { \
543 left = parent; \
544 do { \
545 RB_AUGMENT(left); \
546 } while ((left = RB_PARENT(left, field))); \
547 } \
548 goto color; \
549 } \
550 parent = RB_PARENT(elm, field); \
551 color = RB_COLOR(elm, field); \
552 if (child) \
553 RB_PARENT(child, field) = parent; \
554 if (parent) { \
555 if (RB_LEFT(parent, field) == elm) \
556 RB_LEFT(parent, field) = child; \
557 else \
558 RB_RIGHT(parent, field) = child; \
559 RB_AUGMENT(parent); \
560 } else \
561 RB_ROOT(head) = child; \
562color: \
563 if (color == RB_BLACK) \
564 name##_RB_REMOVE_COLOR(head, parent, child); \
565} \
566 \
567/* Inserts a node into the RB tree */ \
568struct type * \
569name##_RB_INSERT(struct name *head, struct type *elm) \
570{ \
571 struct type *tmp; \
572 struct type *parent = NULL; \
573 int comp = 0; \
574 tmp = RB_ROOT(head); \
575 while (tmp) { \
576 parent = tmp; \
577 comp = (cmp)(elm, parent); \
578 if (comp < 0) \
579 tmp = RB_LEFT(tmp, field); \
580 else if (comp > 0) \
581 tmp = RB_RIGHT(tmp, field); \
582 else \
583 return (tmp); \
584 } \
585 RB_SET(elm, parent, field); \
586 if (parent != NULL) { \
587 if (comp < 0) \
588 RB_LEFT(parent, field) = elm; \
589 else \
590 RB_RIGHT(parent, field) = elm; \
591 RB_AUGMENT(parent); \
592 } else \
593 RB_ROOT(head) = elm; \
594 name##_RB_INSERT_COLOR(head, elm); \
595 return (NULL); \
596} \
597 \
598/* Finds the node with the same key as elm */ \
599struct type * \
600name##_RB_FIND(struct name *head, struct type *elm) \
601{ \
602 struct type *tmp = RB_ROOT(head); \
603 int comp; \
604 while (tmp) { \
605 comp = cmp(elm, tmp); \
606 if (comp < 0) \
607 tmp = RB_LEFT(tmp, field); \
608 else if (comp > 0) \
609 tmp = RB_RIGHT(tmp, field); \
610 else \
611 return (tmp); \
612 } \
613 return (NULL); \
614} \
615 \
616struct type * \
617name##_RB_NEXT(struct name *head, struct type *elm) \
618{ \
619 if (RB_RIGHT(elm, field)) { \
620 elm = RB_RIGHT(elm, field); \
621 while (RB_LEFT(elm, field)) \
622 elm = RB_LEFT(elm, field); \
623 } else { \
624 if (RB_PARENT(elm, field) && \
625 (elm == RB_LEFT(RB_PARENT(elm, field), field))) \
626 elm = RB_PARENT(elm, field); \
627 else { \
628 while (RB_PARENT(elm, field) && \
629 (elm == RB_RIGHT(RB_PARENT(elm, field), field)))\
630 elm = RB_PARENT(elm, field); \
631 elm = RB_PARENT(elm, field); \
632 } \
633 } \
634 return (elm); \
635} \
636 \
637struct type * \
638name##_RB_MINMAX(struct name *head, int val) \
639{ \
640 struct type *tmp = RB_ROOT(head); \
641 struct type *parent = NULL; \
642 while (tmp) { \
643 parent = tmp; \
644 if (val < 0) \
645 tmp = RB_LEFT(tmp, field); \
646 else \
647 tmp = RB_RIGHT(tmp, field); \
648 } \
649 return (parent); \
650}
651
652#define RB_NEGINF -1
653#define RB_INF 1
654
655#define RB_INSERT(name, x, y) name##_RB_INSERT(x, y)
656#define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y)
657#define RB_FIND(name, x, y) name##_RB_FIND(x, y)
658#define RB_NEXT(name, x, y) name##_RB_NEXT(x, y)
659#define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF)
660#define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF)
661
662#define RB_FOREACH(x, name, head) \
663 for ((x) = RB_MIN(name, head); \
664 (x) != NULL; \
665 (x) = name##_RB_NEXT(head, x))
666
667#endif /* _SYS_TREE_H_ */
diff --git a/scard/Ssh.bin b/scard/Ssh.bin
new file mode 100644
index 000000000..edbadc618
--- /dev/null
+++ b/scard/Ssh.bin
Binary files differ
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..8796681e6
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,88 @@
1SCP(1) System General Commands Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-pqrvBC46] [-F ssh_config] [-S program] [-P port] [-c cipher]
8 [-i identity_file] [-o ssh_option] [[user@]host1:]file1 [...]
9 [[user@]host2:]file2
10
11DESCRIPTION
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
16
17 Any file name may contain a host and user specification to indicate that
18 the file is to be copied to/from that host. Copies between two remote
19 hosts are permitted.
20
21 The options are as follows:
22
23 -c cipher
24 Selects the cipher to use for encrypting the data transfer. This
25 option is directly passed to ssh(1).
26
27 -i identity_file
28 Selects the file from which the identity (private key) for RSA
29 authentication is read. This option is directly passed to
30 ssh(1).
31
32 -p Preserves modification times, access times, and modes from the
33 original file.
34
35 -r Recursively copy entire directories.
36
37 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
38 about their progress. This is helpful in debugging connection,
39 authentication, and configuration problems.
40
41 -B Selects batch mode (prevents asking for passwords or
42 passphrases).
43
44 -q Disables the progress meter.
45
46 -C Compression enable. Passes the -C flag to ssh(1) to enable comM--
47 pression.
48
49 -F ssh_config
50 Specifies an alternative per-user configuration file for ssh.
51 This option is directly passed to ssh(1).
52
53 -P port
54 Specifies the port to connect to on the remote host. Note that
55 this option is written with a capital `P', because -p is already
56 reserved for preserving the times and modes of the file in
57 rcp(1).
58
59 -S program
60 Name of program to use for the encrypted connection. The program
61 must understand ssh(1) options.
62
63 -o ssh_option
64 Can be used to pass options to ssh in the format used in
65 ssh_config(5). This is useful for specifying options for which
66 there is no separate scp command-line flag. For example, forcing
67 the use of protocol version 1 is specified using scp
68 -oProtocol=1.
69
70 -4 Forces scp to use IPv4 addresses only.
71
72 -6 Forces scp to use IPv6 addresses only.
73
74DIAGNOSTICS
75 scp exits with 0 on success or >0 if an error occurred.
76
77AUTHORS
78 Timo Rinne <tri@iki.fi> and Tatu Ylonen <ylo@cs.hut.fi>
79
80HISTORY
81 scp is based on the rcp(1) program in BSD source code from the Regents of
82 the University of California.
83
84SEE ALSO
85 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
86 ssh_config(5), sshd(8)
87
88BSD September 25, 1999 BSD
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..9b1f67541
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,27 @@
1SFTP-SERVER(8) System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server
8
9DESCRIPTION
10 sftp-server is a program that speaks the server side of SFTP protocol to
11 stdout and expects client requests from stdin. sftp-server is not
12 intended to be called directly, but from sshd(8) using the Subsystem
13 option. See sshd(8) for more information.
14
15SEE ALSO
16 sftp(1), ssh(1), sshd(8)
17
18 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
19 filexfer-00.txt, January 2001, work in progress material.
20
21AUTHORS
22 Markus Friedl <markus@openbsd.org>
23
24HISTORY
25 sftp-server first appeared in OpenBSD 2.8 .
26
27BSD August 30, 2000 BSD
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..d0c6086ba
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,171 @@
1SFTP(1) System General Commands Manual SFTP(1)
2
3NAME
4 sftp - Secure file transfer program
5
6SYNOPSIS
7 sftp [-vC1] [-b batchfile] [-o ssh_option] [-s subsystem | sftp_server]
8 [-B buffer_size] [-F ssh_config] [-P sftp_server path]
9 [-R num_requests] [-S program] host
10 sftp [[user@]host[:file [file]]]
11 sftp [[user@]host[:dir[/]]]
12
13DESCRIPTION
14 sftp is an interactive file transfer program, similar to ftp(1), which
15 performs all operations over an encrypted ssh(1) transport. It may also
16 use many features of ssh, such as public key authentication and compresM--
17 sion. sftp connects and logs into the specified host, then enters an
18 interactive command mode.
19
20 The second usage format will retrieve files automatically if a non-interM--
21 active authentication method is used; otherwise it will do so after sucM--
22 cessful interactive authentication.
23
24 The last usage format allows the sftp client to start in a remote direcM--
25 tory.
26
27 The options are as follows:
28
29 -b batchfile
30 Batch mode reads a series of commands from an input batchfile
31 instead of stdin. Since it lacks user interaction it should be
32 used in conjunction with non-interactive authentication. sftp
33 will abort if any of the following commands fail: get, put,
34 rename, ln, rm, mkdir, chdir, lchdir and lmkdir.
35
36 -o ssh_option
37 Can be used to pass options to ssh in the format used in
38 ssh_config(5). This is useful for specifying options for which
39 there is no separate sftp command-line flag. For example, to
40 specify an alternate port use: sftp -oPort=24.
41
42 -s subsystem | sftp_server
43 Specifies the SSH2 subsystem or the path for an sftp server on
44 the remote host. A path is useful for using sftp over protocol
45 version 1, or when the remote sshd does not have an sftp subsysM--
46 tem configured.
47
48 -v Raise logging level. This option is also passed to ssh.
49
50 -B buffer_size
51 Specify the size of the buffer that sftp uses when transferring
52 files. Larger buffers require fewer round trips at the cost of
53 higher memory consumption. The default is 32768 bytes.
54
55 -C Enables compression (via ssh's -C flag).
56
57 -F ssh_config
58 Specifies an alternative per-user configuration file for ssh.
59 This option is directly passed to ssh(1).
60
61 -P sftp_server path
62 Connect directly to a local sftp-server (rather than via ssh)
63 This option may be useful in debugging the client and server.
64
65 -R num_requests
66 Specify how many requests may be outstanding at any one time.
67 Increasing this may slightly improve file transfer speed but will
68 increase memory usage. The default is 16 outstanding requests.
69
70 -S program
71 Name of the program to use for the encrypted connection. The
72 program must understand ssh(1) options.
73
74 -1 Specify the use of protocol version 1.
75
76INTERACTIVE COMMANDS
77 Once in interactive mode, sftp understands a set of commands similar to
78 those of ftp(1). Commands are case insensitive and pathnames may be
79 enclosed in quotes if they contain spaces.
80
81 bye Quit sftp.
82
83 cd path
84 Change remote directory to path.
85
86 lcd path
87 Change local directory to path.
88
89 chgrp grp path
90 Change group of file path to grp. grp must be a numeric GID.
91
92 chmod mode path
93 Change permissions of file path to mode.
94
95 chown own path
96 Change owner of file path to own. own must be a numeric UID.
97
98 exit Quit sftp.
99
100 get [flags] remote-path [local-path]
101 Retrieve the remote-path and store it on the local machine. If
102 the local path name is not specified, it is given the same name
103 it has on the remote machine. If the -P flag is specified, then
104 the file's full permission and access time are copied too.
105
106 help Display help text.
107
108 lls [ls-options [path]]
109 Display local directory listing of either path or current direcM--
110 tory if path is not specified.
111
112 lmkdir path
113 Create local directory specified by path.
114
115 ln oldpath newpath
116 Create a symbolic link from oldpath to newpath.
117
118 lpwd Print local working directory.
119
120 ls [flags] [path]
121 Display remote directory listing of either path or current direcM--
122 tory if path is not specified. If the -l flag is specified, then
123 display additional details including permissions and ownership
124 information.
125
126 lumask umask
127 Set local umask to umask.
128
129 mkdir path
130 Create remote directory specified by path.
131
132 put [flags] local-path [local-path]
133 Upload local-path and store it on the remote machine. If the
134 remote path name is not specified, it is given the same name it
135 has on the local machine. If the -P flag is specified, then the
136 file's full permission and access time are copied too.
137
138 pwd Display remote working directory.
139
140 quit Quit sftp.
141
142 rename oldpath newpath
143 Rename remote file from oldpath to newpath.
144
145 rmdir path
146 Remove remote directory specified by path.
147
148 rm path
149 Delete remote file specified by path.
150
151 symlink oldpath newpath
152 Create a symbolic link from oldpath to newpath.
153
154 ! command
155 Execute command in local shell.
156
157 ! Escape to local shell.
158
159 ? Synonym for help.
160
161AUTHORS
162 Damien Miller <djm@mindrot.org>
163
164SEE ALSO
165 scp(1), ssh(1), ssh-add(1), ssh-keygen(1), ssh_config(5), sftp-server(8),
166 sshd(8)
167
168 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
169 filexfer-00.txt, January 2001, work in progress material.
170
171BSD February 4, 2001 BSD
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..d5b49d35d
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,96 @@
1SSH-ADD(1) System General Commands Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds RSA or DSA identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-lLdDxX] [-t life] [file ...]
8 ssh-add -s reader
9 ssh-add -e reader
10
11DESCRIPTION
12 ssh-add adds RSA or DSA identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 $HOME/.ssh/id_rsa, $HOME/.ssh/id_dsa and $HOME/.ssh/identity. AlternaM--
15 tive file names can be given on the command line. If any file requires a
16 passphrase, ssh-add asks for the passphrase from the user. The
17 passphrase is read from the user's tty. ssh-add retries the last
18 passphrase if multiple identity files are given.
19
20 The authentication agent must be running and must be an ancestor of the
21 current process for ssh-add to work.
22
23 The options are as follows:
24
25 -l Lists fingerprints of all identities currently represented by the
26 agent.
27
28 -L Lists public key parameters of all identities currently repreM--
29 sented by the agent.
30
31 -d Instead of adding the identity, removes the identity from the
32 agent.
33
34 -D Deletes all identities from the agent.
35
36 -x Lock the agent with a password.
37
38 -X Unlock the agent.
39
40 -t life
41 Set a maximum lifetime when adding identities to an agent. The
42 lifetime may be specified in seconds or in a time format speciM--
43 fied in sshd(8).
44
45 -s reader
46 Add key in smartcard reader.
47
48 -e reader
49 Remove key in smartcard reader.
50
51FILES
52 $HOME/.ssh/identity
53 Contains the protocol version 1 RSA authentication identity of
54 the user.
55
56 $HOME/.ssh/id_dsa
57 Contains the protocol version 2 DSA authentication identity of
58 the user.
59
60 $HOME/.ssh/id_rsa
61 Contains the protocol version 2 RSA authentication identity of
62 the user.
63
64 Identity files should not be readable by anyone but the user. Note that
65 ssh-add ignores identity files if they are accessible by others.
66
67ENVIRONMENT
68 DISPLAY and SSH_ASKPASS
69 If ssh-add needs a passphrase, it will read the passphrase from
70 the current terminal if it was run from a terminal. If ssh-add
71 does not have a terminal associated with it but DISPLAY and
72 SSH_ASKPASS are set, it will execute the program specified by
73 SSH_ASKPASS and open an X11 window to read the passphrase. This
74 is particularly useful when calling ssh-add from a .Xsession or
75 related script. (Note that on some machines it may be necessary
76 to redirect the input from /dev/null to make this work.)
77
78 SSH_AUTH_SOCK
79 Identifies the path of a unix-domain socket used to communicate
80 with the agent.
81
82DIAGNOSTICS
83 Exit status is 0 on success, 1 if the specified command fails, and 2 if
84 ssh-add is unable to contact the authentication agent.
85
86AUTHORS
87 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
88 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
89 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
90 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
91 versions 1.5 and 2.0.
92
93SEE ALSO
94 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
95
96BSD September 25, 1999 BSD
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..9a1b85645
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,107 @@
1SSH-AGENT(1) System General Commands Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent - authentication agent
5
6SYNOPSIS
7 ssh-agent [-a bind_address] [-c | -s] [-d] [command [args ...]]
8 ssh-agent [-c | -s] -k
9
10DESCRIPTION
11 ssh-agent is a program to hold private keys used for public key authentiM--
12 cation (RSA, DSA). The idea is that ssh-agent is started in the beginM--
13 ning of an X-session or a login session, and all other windows or proM--
14 grams are started as clients to the ssh-agent program. Through use of
15 environment variables the agent can be located and automatically used for
16 authentication when logging in to other machines using ssh(1).
17
18 The options are as follows:
19
20 -a bind_address
21 Bind the agent to the unix-domain socket bind_address. The
22 default is /tmp/ssh-XXXXXXXX/agent.<ppid>.
23
24 -c Generate C-shell commands on stdout. This is the default if
25 SHELL looks like it's a csh style of shell.
26
27 -s Generate Bourne shell commands on stdout. This is the default if
28 SHELL does not look like it's a csh style of shell.
29
30 -k Kill the current agent (given by the SSH_AGENT_PID environment
31 variable).
32
33 -d Debug mode. When this option is specified ssh-agent will not
34 fork.
35
36 If a commandline is given, this is executed as a subprocess of the agent.
37 When the command dies, so does the agent.
38
39 The agent initially does not have any private keys. Keys are added using
40 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
41 $HOME/.ssh/id_rsa, $HOME/.ssh/id_dsa and $HOME/.ssh/identity. If the
42 identity has a passphrase, ssh-add(1) asks for the passphrase (using a
43 small X11 application if running under X11, or from the terminal if runM--
44 ning without X). It then sends the identity to the agent. Several idenM--
45 tities can be stored in the agent; the agent can automatically use any of
46 these identities. ssh-add -l displays the identities currently held by
47 the agent.
48
49 The idea is that the agent is run in the user's local PC, laptop, or terM--
50 minal. Authentication data need not be stored on any other machine, and
51 authentication passphrases never go over the network. However, the conM--
52 nection to the agent is forwarded over SSH remote logins, and the user
53 can thus use the privileges given by the identities anywhere in the netM--
54 work in a secure way.
55
56 There are two main ways to get an agent setup: Either the agent starts a
57 new subcommand into which some environment variables are exported, or the
58 agent prints the needed shell commands (either sh(1) or csh(1) syntax can
59 be generated) which can be evalled in the calling shell. Later ssh(1)
60 looks at these variables and uses them to establish a connection to the
61 agent.
62
63 The agent will never send a private key over its request channel.
64 Instead, operations that require a private key will be performed by the
65 agent, and the result will be returned to the requester. This way, priM--
66 vate keys are not exposed to clients using the agent.
67
68 A unix-domain socket is created and the name of this socket is stored in
69 the SSH_AUTH_SOCK environment variable. The socket is made accessible
70 only to the current user. This method is easily abused by root or
71 another instance of the same user.
72
73 The SSH_AGENT_PID environment variable holds the agent's process ID.
74
75 The agent exits automatically when the command given on the command line
76 terminates.
77
78FILES
79 $HOME/.ssh/identity
80 Contains the protocol version 1 RSA authentication identity of
81 the user.
82
83 $HOME/.ssh/id_dsa
84 Contains the protocol version 2 DSA authentication identity of
85 the user.
86
87 $HOME/.ssh/id_rsa
88 Contains the protocol version 2 RSA authentication identity of
89 the user.
90
91 /tmp/ssh-XXXXXXXX/agent.<ppid>
92 Unix-domain sockets used to contain the connection to the authenM--
93 tication agent. These sockets should only be readable by the
94 owner. The sockets should get automatically removed when the
95 agent exits.
96
97AUTHORS
98 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
99 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
100 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
101 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
102 versions 1.5 and 2.0.
103
104SEE ALSO
105 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
106
107BSD September 25, 1999 BSD
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..d3a2135b4
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,183 @@
1SSH-KEYGEN(1) System General Commands Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
8 [-f output_keyfile]
9 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
10 ssh-keygen -i [-f input_keyfile]
11 ssh-keygen -e [-f input_keyfile]
12 ssh-keygen -y [-f input_keyfile]
13 ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
14 ssh-keygen -l [-f input_keyfile]
15 ssh-keygen -B [-f input_keyfile]
16 ssh-keygen -D reader
17 ssh-keygen -U reader [-f input_keyfile]
18
19DESCRIPTION
20 ssh-keygen generates, manages and converts authentication keys for
21 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
22 and RSA or DSA keys for use by SSH protocol version 2. The type of key to
23 be generated is specified with the -t option.
24
25 Normally each user wishing to use SSH with RSA or DSA authentication runs
26 this once to create the authentication key in $HOME/.ssh/identity,
27 $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa. Additionally, the system adminM--
28 istrator may use this to generate host keys, as seen in /etc/rc.
29
30 Normally this program generates the key and asks for a file in which to
31 store the private key. The public key is stored in a file with the same
32 name but ``.pub'' appended. The program also asks for a passphrase. The
33 passphrase may be empty to indicate no passphrase (host keys must have an
34 empty passphrase), or it may be a string of arbitrary length. A
35 passphrase is similar to a password, except it can be a phrase with a
36 series of words, punctuation, numbers, whitespace, or any string of charM--
37 acters you want. Good passphrases are 10-30 characters long, are not
38 simple sentences or otherwise easily guessable (English prose has only
39 1-2 bits of entropy per character, and provides very bad passphrases),
40 and contain a mix of upper and lowercase letters, numbers, and non-
41 alphanumeric characters. The passphrase can be changed later by using
42 the -p option.
43
44 There is no way to recover a lost passphrase. If the passphrase is lost
45 or forgotten, a new key must be generated and copied to the corresponding
46 public key to other machines.
47
48 For RSA1 keys, there is also a comment field in the key file that is only
49 for convenience to the user to help identify the key. The comment can
50 tell what the key is for, or whatever is useful. The comment is initialM--
51 ized to ``user@host'' when the key is created, but can be changed using
52 the -c option.
53
54 After a key is generated, instructions below detail where the keys should
55 be placed to be activated.
56
57 The options are as follows:
58
59 -b bits
60 Specifies the number of bits in the key to create. Minimum is
61 512 bits. Generally 1024 bits is considered sufficient, and key
62 sizes above that no longer improve security but make things
63 slower. The default is 1024 bits.
64
65 -c Requests changing the comment in the private and public key
66 files. This operation is only supported for RSA1 keys. The proM--
67 gram will prompt for the file containing the private keys, for
68 the passphrase if the key has one, and for the new comment.
69
70 -e This option will read a private or public OpenSSH key file and
71 print the key in a `SECSH Public Key File Format' to stdout.
72 This option allows exporting keys for use by several commercial
73 SSH implementations.
74
75 -f filename
76 Specifies the filename of the key file.
77
78 -i This option will read an unencrypted private (or public) key file
79 in SSH2-compatible format and print an OpenSSH compatible private
80 (or public) key to stdout. ssh-keygen also reads the `SECSH
81 Public Key File Format'. This option allows importing keys from
82 several commercial SSH implementations.
83
84 -l Show fingerprint of specified public key file. Private RSA1 keys
85 are also supported. For RSA and DSA keys ssh-keygen tries to
86 find the matching public key file and prints its fingerprint.
87
88 -p Requests changing the passphrase of a private key file instead of
89 creating a new private key. The program will prompt for the file
90 containing the private key, for the old passphrase, and twice for
91 the new passphrase.
92
93 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
94
95 -y This option will read a private OpenSSH format file and print an
96 OpenSSH public key to stdout.
97
98 -t type
99 Specifies the type of the key to create. The possible values are
100 ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for protoM--
101 col version 2.
102
103 -B Show the bubblebabble digest of specified private or public key
104 file.
105
106 -C comment
107 Provides the new comment.
108
109 -D reader
110 Download the RSA public key stored in the smartcard in reader.
111
112 -N new_passphrase
113 Provides the new passphrase.
114
115 -P passphrase
116 Provides the (old) passphrase.
117
118 -U reader
119 Upload an existing RSA private key into the smartcard in reader.
120
121FILES
122 $HOME/.ssh/identity
123 Contains the protocol version 1 RSA authentication identity of
124 the user. This file should not be readable by anyone but the
125 user. It is possible to specify a passphrase when generating the
126 key; that passphrase will be used to encrypt the private part of
127 this file using 3DES. This file is not automatically accessed by
128 ssh-keygen but it is offered as the default file for the private
129 key. ssh(1) will read this file when a login attempt is made.
130
131 $HOME/.ssh/identity.pub
132 Contains the protocol version 1 RSA public key for authenticaM--
133 tion. The contents of this file should be added to
134 $HOME/.ssh/authorized_keys on all machines where the user wishes
135 to log in using RSA authentication. There is no need to keep the
136 contents of this file secret.
137
138 $HOME/.ssh/id_dsa
139 Contains the protocol version 2 DSA authentication identity of
140 the user. This file should not be readable by anyone but the
141 user. It is possible to specify a passphrase when generating the
142 key; that passphrase will be used to encrypt the private part of
143 this file using 3DES. This file is not automatically accessed by
144 ssh-keygen but it is offered as the default file for the private
145 key. ssh(1) will read this file when a login attempt is made.
146
147 $HOME/.ssh/id_dsa.pub
148 Contains the protocol version 2 DSA public key for authenticaM--
149 tion. The contents of this file should be added to
150 $HOME/.ssh/authorized_keys on all machines where the user wishes
151 to log in using public key authentication. There is no need to
152 keep the contents of this file secret.
153
154 $HOME/.ssh/id_rsa
155 Contains the protocol version 2 RSA authentication identity of
156 the user. This file should not be readable by anyone but the
157 user. It is possible to specify a passphrase when generating the
158 key; that passphrase will be used to encrypt the private part of
159 this file using 3DES. This file is not automatically accessed by
160 ssh-keygen but it is offered as the default file for the private
161 key. ssh(1) will read this file when a login attempt is made.
162
163 $HOME/.ssh/id_rsa.pub
164 Contains the protocol version 2 RSA public key for authenticaM--
165 tion. The contents of this file should be added to
166 $HOME/.ssh/authorized_keys on all machines where the user wishes
167 to log in using public key authentication. There is no need to
168 keep the contents of this file secret.
169
170AUTHORS
171 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
172 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
173 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
174 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
175 versions 1.5 and 2.0.
176
177SEE ALSO
178 ssh(1), ssh-add(1), ssh-agent(1), sshd(8)
179
180 J. Galbraith and R. Thayer, SECSH Public Key File Format, draft-ietf-
181 secsh-publickeyfile-01.txt, March 2001, work in progress material.
182
183BSD September 25, 1999 BSD
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..05742bf66
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,103 @@
1SSH-KEYSCAN(1) System General Commands Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan - gather ssh public keys
5
6SYNOPSIS
7 ssh-keyscan [-v46] [-p port] [-T timeout] [-t type] [-f file]
8 [host | addrlist namelist] [...]
9
10DESCRIPTION
11 ssh-keyscan is a utility for gathering the public ssh host keys of a numM--
12 ber of hosts. It was designed to aid in building and verifying
13 ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable
14 for use by shell and perl scripts.
15
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as posM--
17 sible in parallel, so it is very efficient. The keys from a domain of
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
20 access to the machines that are being scanned, nor does the scanning proM--
21 cess involve any encryption.
22
23 The options are as follows:
24
25 -p port
26 Port to connect to on the remote host.
27
28 -T timeout
29 Set the timeout for connection attempts. If timeout seconds have
30 elapsed since a connection was initiated to a host or since the
31 last time anything was read from that host, then the connection
32 is closed and the host in question considered unavailable.
33 Default is 5 seconds.
34
35 -t type
36 Specifies the type of the key to fetch from the scanned hosts.
37 The possible values are ``rsa1'' for protocol version 1 and
38 ``rsa'' or ``dsa'' for protocol version 2. Multiple values may
39 be specified by separating them with commas. The default is
40 ``rsa1''.
41
42 -f filename
43 Read hosts or addrlist namelist pairs from this file, one per
44 line. If - is supplied instead of a filename, ssh-keyscan will
45 read hosts or addrlist namelist pairs from the standard input.
46
47 -v Verbose mode. Causes ssh-keyscan to print debugging messages
48 about its progress.
49
50 -4 Forces ssh-keyscan to use IPv4 addresses only.
51
52 -6 Forces ssh-keyscan to use IPv6 addresses only.
53
54SECURITY
55 If a ssh_known_hosts file is constructed using ssh-keyscan without veriM--
56 fying the keys, users will be vulnerable to attacks. On the other hand,
57 if the security model allows such a risk, ssh-keyscan can help in the
58 detection of tampered keyfiles or man in the middle attacks which have
59 begun after the ssh_known_hosts file was created.
60
61EXAMPLES
62 Print the rsa1 host key for machine hostname:
63
64 $ ssh-keyscan hostname
65
66 Find all hosts from the file ssh_hosts which have new or different keys
67 from those in the sorted file ssh_known_hosts:
68
69 $ ssh-keyscan -t rsa,dsa -f ssh_hosts | \
70 sort -u - ssh_known_hosts | diff ssh_known_hosts -
71
72FILES
73 Input format:
74
75 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
76
77 Output format for rsa1 keys:
78
79 host-or-namelist bits exponent modulus
80
81 Output format for rsa and dsa keys:
82
83 host-or-namelist keytype base64-encoded-key
84
85 Where keytype is either ``ssh-rsa'' or ``ssh-dsa''.
86
87 /etc/ssh/ssh_known_hosts
88
89BUGS
90 It generates "Connection closed by remote host" messages on the consoles
91 of all the machines it scans if the server is older than version 2.9.
92 This is because it opens a connection to the ssh port, reads the public
93 key, and drops the connection as soon as it gets the key.
94
95SEE ALSO
96 ssh(1), sshd(8)
97
98AUTHORS
99 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
100 Davison <wayned@users.sourceforge.net> added support for protocol version
101 2.
102
103BSD January 1, 1996 BSD
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..b5ad6627a
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,42 @@
1SSH-KEYSIGN(8) System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign - ssh helper program for hostbased authentication
5
6SYNOPSIS
7 ssh-keysign
8
9DESCRIPTION
10 ssh-keysign is used by ssh(1) to access the local host keys and generate
11 the digital signature required during hostbased authentication with SSH
12 protocol version 2.
13
14 ssh-keysign is disabled by default and can only be enabled in the the
15 global client configuration file /etc/ssh/ssh_config by setting
16 HostbasedAuthentication to ``yes''.
17
18 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
19 See ssh(1) and sshd(8) for more information about hostbased authenticaM--
20 tion.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key
27 These files contain the private parts of the host keys used to
28 generate the digital signature. They should be owned by root,
29 readable only by root, and not accessible to others. Since they
30 are readable only by root, ssh-keysign must be set-uid root if
31 hostbased authentication is used.
32
33SEE ALSO
34 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
35
36AUTHORS
37 Markus Friedl <markus@openbsd.org>
38
39HISTORY
40 ssh-keysign first appeared in OpenBSD 3.2.
41
42BSD May 24, 2002 BSD
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0
new file mode 100644
index 000000000..86998a112
--- /dev/null
+++ b/ssh-rand-helper.0
@@ -0,0 +1,49 @@
1SSH-RAND-HELPER(8) System Manager's Manual SSH-RAND-HELPER(8)
2
3NAME
4 ssh-rand-helper - Random number gatherer for OpenSSH
5
6SYNOPSIS
7 ssh-rand-hlper [-vxXh] [-b bytes]
8
9DESCRIPTION
10 ssh-rand-helper is a small helper program used by ssh(1), ssh-add(1),
11 ssh-agent(1), ssh-keygen(1), ssh-keyscan(1) and sshd(8) to gather random
12 numbers of cryptographic quality if the openssl(4) library has not been
13 configured to provide them itself.
14
15 Normally ssh-rand-helper will generate a strong random seed and provide
16 it to the calling program via standard output. If standard output is a
17 tty, ssh-rand-helper will instead print the seed in hexidecimal format
18 unless told otherwise.
19
20 ssh-rand-helper will by default gather random numbers from the system
21 commands listed in /etc/ssh/ssh_prng_cmds. The output of each of the
22 commands listed will be hashed and used to generate a random seed for the
23 calling program. ssh-rand-helper will also store seed files in
24 ~/.ssh/prng_seed between executions.
25
26 Alternately, ssh-rand-helper may be configured at build time to collect
27 random numbers from a EGD/PRNGd server via a unix domain or localhost tcp
28 socket.
29
30 This program is not intended to be run by the end-user, so the few comM--
31 mandline options are for debugging purposes only.
32
33 -b bytes
34 Specify the number of random bytes to include in the output.
35
36 -x Output a hexidecimal instead of a binary seed.
37
38 -X Force output of a binary seed, even if standard output is a tty
39
40 -v Turn on debugging message. Multiple -v options will increase the
41 debugging level. -h Display a summary of options.
42
43AUTHORS
44 Damien Miller <djm@mindrot.org>
45
46SEE ALSO
47 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
48
49BSD April 14, 2002 BSD
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..18136aef4
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,614 @@
1SSH(1) System General Commands Manual SSH(1)
2
3NAME
4 ssh - OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-l login_name] hostname | user@hostname [command]
8
9 ssh [-afgknqstvxACNTX1246] [-b bind_address] [-c cipher_spec]
10 [-e escape_char] [-i identity_file] [-l login_name] [-m mac_spec]
11 [-o option] [-p port] [-F configfile] [-L port:host:hostport] [-R
12 port:host:hostport] [-D port] hostname | user@hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to replace rlogin
17 and rsh, and provide secure encrypted communications between two
18 untrusted hosts over an insecure network. X11 connections and arbitrary
19 TCP/IP ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname. The user must prove
22 his/her identity to the remote machine using one of several methods
23 depending on the protocol version used:
24
25 SSH protocol version 1
26
27 First, if the machine the user logs in from is listed in /etc/hosts.equiv
28 or /etc/shosts.equiv on the remote machine, and the user names are the
29 same on both sides, the user is immediately permitted to log in. Second,
30 if .rhosts or .shosts exists in the user's home directory on the remote
31 machine and contains a line containing the name of the client machine and
32 the name of the user on that machine, the user is permitted to log in.
33 This form of authentication alone is normally not allowed by the server
34 because it is not secure.
35
36 The second authentication method is the rhosts or hosts.equiv method comM--
37 bined with RSA-based host authentication. It means that if the login
38 would be permitted by $HOME/.rhosts, $HOME/.shosts, /etc/hosts.equiv, or
39 /etc/shosts.equiv, and if additionally the server can verify the client's
40 host key (see /etc/ssh/ssh_known_hosts and $HOME/.ssh/known_hosts in the
41 FILES section), only then login is permitted. This authentication method
42 closes security holes due to IP spoofing, DNS spoofing and routing spoofM--
43 ing. [Note to the administrator: /etc/hosts.equiv, $HOME/.rhosts, and
44 the rlogin/rsh protocol in general, are inherently insecure and should be
45 disabled if security is desired.]
46
47 As a third authentication method, ssh supports RSA based authentication.
48 The scheme is based on public-key cryptography: there are cryptosystems
49 where encryption and decryption are done using separate keys, and it is
50 not possible to derive the decryption key from the encryption key. RSA
51 is one such system. The idea is that each user creates a public/private
52 key pair for authentication purposes. The server knows the public key,
53 and only the user knows the private key. The file
54 $HOME/.ssh/authorized_keys lists the public keys that are permitted for
55 logging in. When the user logs in, the ssh program tells the server
56 which key pair it would like to use for authentication. The server
57 checks if this key is permitted, and if so, sends the user (actually the
58 ssh program running on behalf of the user) a challenge, a random number,
59 encrypted by the user's public key. The challenge can only be decrypted
60 using the proper private key. The user's client then decrypts the chalM--
61 lenge using the private key, proving that he/she knows the private key
62 but without disclosing it to the server.
63
64 ssh implements the RSA authentication protocol automatically. The user
65 creates his/her RSA key pair by running ssh-keygen(1). This stores the
66 private key in $HOME/.ssh/identity and the public key in
67 $HOME/.ssh/identity.pub in the user's home directory. The user should
68 then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
69 directory on the remote machine (the authorized_keys file corresponds to
70 the conventional $HOME/.rhosts file, and has one key per line, though the
71 lines can be very long). After this, the user can log in without giving
72 the password. RSA authentication is much more secure than rhosts authenM--
73 tication.
74
75 The most convenient way to use RSA authentication may be with an authenM--
76 tication agent. See ssh-agent(1) for more information.
77
78 If other authentication methods fail, ssh prompts the user for a passM--
79 word. The password is sent to the remote host for checking; however,
80 since all communications are encrypted, the password cannot be seen by
81 someone listening on the network.
82
83 SSH protocol version 2
84
85 When a user connects using protocol version 2 similar authentication
86 methods are available. Using the default values for
87 PreferredAuthentications, the client will try to authenticate first using
88 the hostbased method; if this method fails public key authentication is
89 attempted, and finally if this method fails keyboard-interactive and
90 password authentication are tried.
91
92 The public key method is similar to RSA authentication described in the
93 previous section and allows the RSA or DSA algorithm to be used: The
94 client uses his private key, $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa, to
95 sign the session identifier and sends the result to the server. The
96 server checks whether the matching public key is listed in
97 $HOME/.ssh/authorized_keys and grants access if both the key is found and
98 the signature is correct. The session identifier is derived from a
99 shared Diffie-Hellman value and is only known to the client and the
100 server.
101
102 If public key authentication fails or is not available a password can be
103 sent encrypted to the remote host for proving the user's identity.
104
105 Additionally, ssh supports hostbased or challenge response authenticaM--
106 tion.
107
108 Protocol 2 provides additional mechanisms for confidentiality (the trafM--
109 fic is encrypted using 3DES, Blowfish, CAST128 or Arcfour) and integrity
110 (hmac-md5, hmac-sha1). Note that protocol 1 lacks a strong mechanism for
111 ensuring the integrity of the connection.
112
113 Login session and remote execution
114
115 When the user's identity has been accepted by the server, the server
116 either executes the given command, or logs into the machine and gives the
117 user a normal shell on the remote machine. All communication with the
118 remote command or shell will be automatically encrypted.
119
120 If a pseudo-terminal has been allocated (normal login session), the user
121 may use the escape characters noted below.
122
123 If no pseudo tty has been allocated, the session is transparent and can
124 be used to reliably transfer binary data. On most systems, setting the
125 escape character to ``none'' will also make the session transparent even
126 if a tty is used.
127
128 The session terminates when the command or shell on the remote machine
129 exits and all X11 and TCP/IP connections have been closed. The exit staM--
130 tus of the remote program is returned as the exit status of ssh.
131
132 Escape Characters
133
134 When a pseudo terminal has been requested, ssh supports a number of funcM--
135 tions through the use of an escape character.
136
137 A single tilde character can be sent as ~~ or by following the tilde by a
138 character other than those described below. The escape character must
139 always follow a newline to be interpreted as special. The escape characM--
140 ter can be changed in configuration files using the EscapeChar configuraM--
141 tion directive or on the command line by the -e option.
142
143 The supported escapes (assuming the default `~') are:
144
145 ~. Disconnect
146
147 ~^Z Background ssh
148
149 ~# List forwarded connections
150
151 ~& Background ssh at logout when waiting for forwarded connection /
152 X11 sessions to terminate
153
154 ~? Display a list of escape characters
155
156 ~C Open command line (only useful for adding port forwardings using
157 the -L and -R options)
158
159 ~R Request rekeying of the connection (only useful for SSH protocol
160 version 2 and if the peer supports it)
161
162 X11 and TCP forwarding
163
164 If the ForwardX11 variable is set to ``yes'' (or, see the description of
165 the -X and -x options described later) and the user is using X11 (the
166 DISPLAY environment variable is set), the connection to the X11 display
167 is automatically forwarded to the remote side in such a way that any X11
168 programs started from the shell (or command) will go through the
169 encrypted channel, and the connection to the real X server will be made
170 from the local machine. The user should not manually set DISPLAY. ForM--
171 warding of X11 connections can be configured on the command line or in
172 configuration files.
173
174 The DISPLAY value set by ssh will point to the server machine, but with a
175 display number greater than zero. This is normal, and happens because
176 ssh creates a ``proxy'' X server on the server machine for forwarding the
177 connections over the encrypted channel.
178
179 ssh will also automatically set up Xauthority data on the server machine.
180 For this purpose, it will generate a random authorization cookie, store
181 it in Xauthority on the server, and verify that any forwarded connections
182 carry this cookie and replace it by the real cookie when the connection
183 is opened. The real authentication cookie is never sent to the server
184 machine (and no cookies are sent in the plain).
185
186 If the ForwardAgent variable is set to ``yes'' (or, see the description
187 of the -A and -a options described later) and the user is using an
188 authentication agent, the connection to the agent is automatically forM--
189 warded to the remote side.
190
191 Forwarding of arbitrary TCP/IP connections over the secure channel can be
192 specified either on the command line or in a configuration file. One
193 possible application of TCP/IP forwarding is a secure connection to an
194 electronic purse; another is going through firewalls.
195
196 Server authentication
197
198 ssh automatically maintains and checks a database containing identificaM--
199 tions for all hosts it has ever been used with. Host keys are stored in
200 $HOME/.ssh/known_hosts in the user's home directory. Additionally, the
201 file /etc/ssh/ssh_known_hosts is automatically checked for known hosts.
202 Any new hosts are automatically added to the user's file. If a host's
203 identification ever changes, ssh warns about this and disables password
204 authentication to prevent a trojan horse from getting the user's passM--
205 word. Another purpose of this mechanism is to prevent man-in-the-middle
206 attacks which could otherwise be used to circumvent the encryption. The
207 StrictHostKeyChecking option can be used to prevent logins to machines
208 whose host key is not known or has changed.
209
210 The options are as follows:
211
212 -a Disables forwarding of the authentication agent connection.
213
214 -A Enables forwarding of the authentication agent connection. This
215 can also be specified on a per-host basis in a configuration
216 file.
217
218 Agent forwarding should be enabled with caution. Users with the
219 ability to bypass file permissions on the remote host (for the
220 agent's Unix-domain socket) can access the local agent through
221 the forwarded connection. An attacker cannot obtain key material
222 from the agent, however they can perform operations on the keys
223 that enable them to authenticate using the identities loaded into
224 the agent.
225
226 -b bind_address
227 Specify the interface to transmit from on machines with multiple
228 interfaces or aliased addresses.
229
230 -c blowfish|3des|des
231 Selects the cipher to use for encrypting the session. 3des is
232 used by default. It is believed to be secure. 3des (triple-des)
233 is an encrypt-decrypt-encrypt triple with three different keys.
234 blowfish is a fast block cipher, it appears very secure and is
235 much faster than 3des. des is only supported in the ssh client
236 for interoperability with legacy protocol 1 implementations that
237 do not support the 3des cipher. Its use is strongly discouraged
238 due to cryptographic weaknesses.
239
240 -c cipher_spec
241 Additionally, for protocol version 2 a comma-separated list of
242 ciphers can be specified in order of preference. See Ciphers for
243 more information.
244
245 -e ch|^ch|none
246 Sets the escape character for sessions with a pty (default: `~').
247 The escape character is only recognized at the beginning of a
248 line. The escape character followed by a dot (`.') closes the
249 connection, followed by control-Z suspends the connection, and
250 followed by itself sends the escape character once. Setting the
251 character to ``none'' disables any escapes and makes the session
252 fully transparent.
253
254 -f Requests ssh to go to background just before command execution.
255 This is useful if ssh is going to ask for passwords or
256 passphrases, but the user wants it in the background. This
257 implies -n. The recommended way to start X11 programs at a
258 remote site is with something like ssh -f host xterm.
259
260 -g Allows remote hosts to connect to local forwarded ports.
261
262 -i identity_file
263 Selects a file from which the identity (private key) for RSA or
264 DSA authentication is read. The default is $HOME/.ssh/identity
265 for protocol version 1, and $HOME/.ssh/id_rsa and
266 $HOME/.ssh/id_dsa for protocol version 2. Identity files may
267 also be specified on a per-host basis in the configuration file.
268 It is possible to have multiple -i options (and multiple identiM--
269 ties specified in configuration files).
270
271 -I smartcard_device
272 Specifies which smartcard device to use. The argument is the
273 device ssh should use to communicate with a smartcard used for
274 storing the user's private RSA key.
275
276 -k Disables forwarding of Kerberos tickets and AFS tokens. This may
277 also be specified on a per-host basis in the configuration file.
278
279 -l login_name
280 Specifies the user to log in as on the remote machine. This also
281 may be specified on a per-host basis in the configuration file.
282
283 -m mac_spec
284 Additionally, for protocol version 2 a comma-separated list of
285 MAC (message authentication code) algorithms can be specified in
286 order of preference. See the MACs keyword for more information.
287
288 -n Redirects stdin from /dev/null (actually, prevents reading from
289 stdin). This must be used when ssh is run in the background. A
290 common trick is to use this to run X11 programs on a remote
291 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
292 start an emacs on shadows.cs.hut.fi, and the X11 connection will
293 be automatically forwarded over an encrypted channel. The ssh
294 program will be put in the background. (This does not work if
295 ssh needs to ask for a password or passphrase; see also the -f
296 option.)
297
298 -N Do not execute a remote command. This is useful for just forM--
299 warding ports (protocol version 2 only).
300
301 -o option
302 Can be used to give options in the format used in the configuraM--
303 tion file. This is useful for specifying options for which there
304 is no separate command-line flag.
305
306 -p port
307 Port to connect to on the remote host. This can be specified on
308 a per-host basis in the configuration file.
309
310 -q Quiet mode. Causes all warning and diagnostic messages to be
311 suppressed.
312
313 -s May be used to request invocation of a subsystem on the remote
314 system. Subsystems are a feature of the SSH2 protocol which
315 facilitate the use of SSH as a secure transport for other appliM--
316 cations (eg. sftp). The subsystem is specified as the remote comM--
317 mand.
318
319 -t Force pseudo-tty allocation. This can be used to execute arbiM--
320 trary screen-based programs on a remote machine, which can be
321 very useful, e.g., when implementing menu services. Multiple -t
322 options force tty allocation, even if ssh has no local tty.
323
324 -T Disable pseudo-tty allocation.
325
326 -v Verbose mode. Causes ssh to print debugging messages about its
327 progress. This is helpful in debugging connection, authenticaM--
328 tion, and configuration problems. Multiple -v options increases
329 the verbosity. Maximum is 3.
330
331 -x Disables X11 forwarding.
332
333 -X Enables X11 forwarding. This can also be specified on a per-host
334 basis in a configuration file.
335
336 X11 forwarding should be enabled with caution. Users with the
337 ability to bypass file permissions on the remote host (for the
338 user's X authorization database) can access the local X11 display
339 through the forwarded connection. An attacker may then be able
340 to perform activities such as keystroke monitoring.
341
342 -C Requests compression of all data (including stdin, stdout,
343 stderr, and data for forwarded X11 and TCP/IP connections). The
344 compression algorithm is the same used by gzip(1), and the
345 ``level'' can be controlled by the CompressionLevel option for
346 protocol version 1. Compression is desirable on modem lines and
347 other slow connections, but will only slow down things on fast
348 networks. The default value can be set on a host-by-host basis
349 in the configuration files; see the Compression option.
350
351 -F configfile
352 Specifies an alternative per-user configuration file. If a conM--
353 figuration file is given on the command line, the system-wide
354 configuration file (/etc/ssh/ssh_config) will be ignored. The
355 default for the per-user configuration file is $HOME/.ssh/config.
356
357 -L port:host:hostport
358 Specifies that the given port on the local (client) host is to be
359 forwarded to the given host and port on the remote side. This
360 works by allocating a socket to listen to port on the local side,
361 and whenever a connection is made to this port, the connection is
362 forwarded over the secure channel, and a connection is made to
363 host port hostport from the remote machine. Port forwardings can
364 also be specified in the configuration file. Only root can forM--
365 ward privileged ports. IPv6 addresses can be specified with an
366 alternative syntax: port/host/hostport
367
368 -R port:host:hostport
369 Specifies that the given port on the remote (server) host is to
370 be forwarded to the given host and port on the local side. This
371 works by allocating a socket to listen to port on the remote
372 side, and whenever a connection is made to this port, the connecM--
373 tion is forwarded over the secure channel, and a connection is
374 made to host port hostport from the local machine. Port forwardM--
375 ings can also be specified in the configuration file. Privileged
376 ports can be forwarded only when logging in as root on the remote
377 machine. IPv6 addresses can be specified with an alternative
378 syntax: port/host/hostport
379
380 -D port
381 Specifies a local ``dynamic'' application-level port forwarding.
382 This works by allocating a socket to listen to port on the local
383 side, and whenever a connection is made to this port, the connecM--
384 tion is forwarded over the secure channel, and the application
385 protocol is then used to determine where to connect to from the
386 remote machine. Currently the SOCKS4 protocol is supported, and
387 ssh will act as a SOCKS4 server. Only root can forward priviM--
388 leged ports. Dynamic port forwardings can also be specified in
389 the configuration file.
390
391 -1 Forces ssh to try protocol version 1 only.
392
393 -2 Forces ssh to try protocol version 2 only.
394
395 -4 Forces ssh to use IPv4 addresses only.
396
397 -6 Forces ssh to use IPv6 addresses only.
398
399CONFIGURATION FILES
400 ssh may additionally obtain configuration data from a per-user configuraM--
401 tion file and a system-wide configuration file. The file format and conM--
402 figuration options are described in ssh_config(5).
403
404ENVIRONMENT
405 ssh will normally set the following environment variables:
406
407 DISPLAY
408 The DISPLAY variable indicates the location of the X11 server.
409 It is automatically set by ssh to point to a value of the form
410 ``hostname:n'' where hostname indicates the host where the shell
411 runs, and n is an integer >= 1. ssh uses this special value to
412 forward X11 connections over the secure channel. The user should
413 normally not set DISPLAY explicitly, as that will render the X11
414 connection insecure (and will require the user to manually copy
415 any required authorization cookies).
416
417 HOME Set to the path of the user's home directory.
418
419 LOGNAME
420 Synonym for USER; set for compatibility with systems that use
421 this variable.
422
423 MAIL Set to the path of the user's mailbox.
424
425 PATH Set to the default PATH, as specified when compiling ssh.
426
427 SSH_ASKPASS
428 If ssh needs a passphrase, it will read the passphrase from the
429 current terminal if it was run from a terminal. If ssh does not
430 have a terminal associated with it but DISPLAY and SSH_ASKPASS
431 are set, it will execute the program specified by SSH_ASKPASS and
432 open an X11 window to read the passphrase. This is particularly
433 useful when calling ssh from a .Xsession or related script.
434 (Note that on some machines it may be necessary to redirect the
435 input from /dev/null to make this work.)
436
437 SSH_AUTH_SOCK
438 Identifies the path of a unix-domain socket used to communicate
439 with the agent.
440
441 SSH_CONNECTION
442 Identifies the client and server ends of the connection. The
443 variable contains four space-separated values: client ip-address,
444 client port number, server ip-address and server port number.
445
446 SSH_ORIGINAL_COMMAND
447 The variable contains the original command line if a forced comM--
448 mand is executed. It can be used to extract the original arguM--
449 ments.
450
451 SSH_TTY
452 This is set to the name of the tty (path to the device) associM--
453 ated with the current shell or command. If the current session
454 has no tty, this variable is not set.
455
456 TZ The timezone variable is set to indicate the present timezone if
457 it was set when the daemon was started (i.e., the daemon passes
458 the value on to new connections).
459
460 USER Set to the name of the user logging in.
461
462 Additionally, ssh reads $HOME/.ssh/environment, and adds lines of the
463 format ``VARNAME=value'' to the environment if the file exists and if
464 users are allowed to change their environment. See the
465 PermitUserEnvironment option in sshd_config(5).
466
467FILES
468 $HOME/.ssh/known_hosts
469 Records host keys for all hosts the user has logged into that are
470 not in /etc/ssh/ssh_known_hosts. See sshd(8).
471
472 $HOME/.ssh/identity, $HOME/.ssh/id_dsa, $HOME/.ssh/id_rsa
473 Contains the authentication identity of the user. They are for
474 protocol 1 RSA, protocol 2 DSA, and protocol 2 RSA, respectively.
475 These files contain sensitive data and should be readable by the
476 user but not accessible by others (read/write/execute). Note
477 that ssh ignores a private key file if it is accessible by othM--
478 ers. It is possible to specify a passphrase when generating the
479 key; the passphrase will be used to encrypt the sensitive part of
480 this file using 3DES.
481
482 $HOME/.ssh/identity.pub, $HOME/.ssh/id_dsa.pub, $HOME/.ssh/id_rsa.pub
483 Contains the public key for authentication (public part of the
484 identity file in human-readable form). The contents of the
485 $HOME/.ssh/identity.pub file should be added to
486 $HOME/.ssh/authorized_keys on all machines where the user wishes
487 to log in using protocol version 1 RSA authentication. The conM--
488 tents of the $HOME/.ssh/id_dsa.pub and $HOME/.ssh/id_rsa.pub file
489 should be added to $HOME/.ssh/authorized_keys on all machines
490 where the user wishes to log in using protocol version 2 DSA/RSA
491 authentication. These files are not sensitive and can (but need
492 not) be readable by anyone. These files are never used automatiM--
493 cally and are not necessary; they are only provided for the conM--
494 venience of the user.
495
496 $HOME/.ssh/config
497 This is the per-user configuration file. The file format and
498 configuration options are described in ssh_config(5).
499
500 $HOME/.ssh/authorized_keys
501 Lists the public keys (RSA/DSA) that can be used for logging in
502 as this user. The format of this file is described in the
503 sshd(8) manual page. In the simplest form the format is the same
504 as the .pub identity files. This file is not highly sensitive,
505 but the recommended permissions are read/write for the user, and
506 not accessible by others.
507
508 /etc/ssh/ssh_known_hosts
509 Systemwide list of known host keys. This file should be prepared
510 by the system administrator to contain the public host keys of
511 all machines in the organization. This file should be world-
512 readable. This file contains public keys, one per line, in the
513 following format (fields separated by spaces): system name, pubM--
514 lic key and optional comment field. When different names are
515 used for the same machine, all such names should be listed, sepaM--
516 rated by commas. The format is described on the sshd(8) manual
517 page.
518
519 The canonical system name (as returned by name servers) is used
520 by sshd(8) to verify the client host when logging in; other names
521 are needed because ssh does not convert the user-supplied name to
522 a canonical name before checking the key, because someone with
523 access to the name servers would then be able to fool host
524 authentication.
525
526 /etc/ssh/ssh_config
527 Systemwide configuration file. The file format and configuration
528 options are described in ssh_config(5).
529
530 /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key,
531 /etc/ssh/ssh_host_rsa_key
532 These three files contain the private parts of the host keys and
533 are used for RhostsRSAAuthentication and HostbasedAuthentication.
534 If the protocol version 1 RhostsRSAAuthentication method is used,
535 ssh must be setuid root, since the host key is readable only by
536 root. For protocol version 2, ssh uses ssh-keysign(8) to access
537 the host keys for HostbasedAuthentication. This eliminates the
538 requirement that ssh be setuid root when that authentication
539 method is used. By default ssh is not setuid root.
540
541 $HOME/.rhosts
542 This file is used in .rhosts authentication to list the host/user
543 pairs that are permitted to log in. (Note that this file is also
544 used by rlogin and rsh, which makes using this file insecure.)
545 Each line of the file contains a host name (in the canonical form
546 returned by name servers), and then a user name on that host,
547 separated by a space. On some machines this file may need to be
548 world-readable if the user's home directory is on a NFS partiM--
549 tion, because sshd(8) reads it as root. Additionally, this file
550 must be owned by the user, and must not have write permissions
551 for anyone else. The recommended permission for most machines is
552 read/write for the user, and not accessible by others.
553
554 Note that by default sshd(8) will be installed so that it
555 requires successful RSA host authentication before permitting
556 .rhosts authentication. If the server machine does not have the
557 client's host key in /etc/ssh/ssh_known_hosts, it can be stored
558 in $HOME/.ssh/known_hosts. The easiest way to do this is to conM--
559 nect back to the client from the server machine using ssh; this
560 will automatically add the host key to $HOME/.ssh/known_hosts.
561
562 $HOME/.shosts
563 This file is used exactly the same way as .rhosts. The purpose
564 for having this file is to be able to use rhosts authentication
565 with ssh without permitting login with rlogin or rsh(1).
566
567 /etc/hosts.equiv
568 This file is used during .rhosts authentication. It contains
569 canonical hosts names, one per line (the full format is described
570 on the sshd(8) manual page). If the client host is found in this
571 file, login is automatically permitted provided client and server
572 user names are the same. Additionally, successful RSA host
573 authentication is normally required. This file should only be
574 writable by root.
575
576 /etc/shosts.equiv
577 This file is processed exactly as /etc/hosts.equiv. This file
578 may be useful to permit logins using ssh but not using
579 rsh/rlogin.
580
581 /etc/ssh/sshrc
582 Commands in this file are executed by ssh when the user logs in
583 just before the user's shell (or command) is started. See the
584 sshd(8) manual page for more information.
585
586 $HOME/.ssh/rc
587 Commands in this file are executed by ssh when the user logs in
588 just before the user's shell (or command) is started. See the
589 sshd(8) manual page for more information.
590
591 $HOME/.ssh/environment
592 Contains additional definitions for environment variables, see
593 section ENVIRONMENT above.
594
595DIAGNOSTICS
596 ssh exits with the exit status of the remote command or with 255 if an
597 error occurred.
598
599AUTHORS
600 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
601 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
602 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
603 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
604 versions 1.5 and 2.0.
605
606SEE ALSO
607 rsh(1), scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
608 telnet(1), ssh_config(5), ssh-keysign(8), sshd(8)
609
610 T. Ylonen, T. Kivinen, M. Saarinen, T. Rinne, and S. Lehtinen, SSH
611 Protocol Architecture, draft-ietf-secsh-architecture-12.txt, January
612 2002, work in progress material.
613
614BSD September 25, 1999 BSD
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..a5a44da14
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,403 @@
1SSH_CONFIG(5) System File Formats Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config - OpenSSH SSH client configuration files
5
6SYNOPSIS
7 $HOME/.ssh/config
8 /etc/ssh/ssh_config
9
10DESCRIPTION
11 ssh obtains configuration data from the following sources in the followM--
12 ing order:
13 1. command-line options
14 2. user's configuration file ($HOME/.ssh/config)
15 3. system-wide configuration file (/etc/ssh/ssh_config)
16
17 For each parameter, the first obtained value will be used. The configuM--
18 ration files contain sections bracketed by ``Host'' specifications, and
19 that section is only applied for hosts that match one of the patterns
20 given in the specification. The matched host name is the one given on
21 the command line.
22
23 Since the first obtained value for each parameter is used, more host-speM--
24 cific declarations should be given near the beginning of the file, and
25 general defaults at the end.
26
27 The configuration file has the following format:
28
29 Empty lines and lines starting with `#' are comments.
30
31 Otherwise a line is of the format ``keyword arguments''. Configuration
32 options may be separated by whitespace or optional whitespace and exactly
33 one `='; the latter format is useful to avoid the need to quote whitesM--
34 pace when specifying configuration options using the ssh, scp and sftp -o
35 option.
36
37 The possible keywords and their meanings are as follows (note that keyM--
38 words are case-insensitive and arguments are case-sensitive):
39
40 Host Restricts the following declarations (up to the next Host keyM--
41 word) to be only for those hosts that match one of the patterns
42 given after the keyword. `*' and `'? can be used as wildcards
43 in the patterns. A single `*' as a pattern can be used to proM--
44 vide global defaults for all hosts. The host is the hostname
45 argument given on the command line (i.e., the name is not conM--
46 verted to a canonicalized host name before matching).
47
48 AFSTokenPassing
49 Specifies whether to pass AFS tokens to remote host. The arguM--
50 ment to this keyword must be ``yes'' or ``no''. This option
51 applies to protocol version 1 only.
52
53 BatchMode
54 If set to ``yes'', passphrase/password querying will be disabled.
55 This option is useful in scripts and other batch jobs where no
56 user is present to supply the password. The argument must be
57 ``yes'' or ``no''. The default is ``no''.
58
59 BindAddress
60 Specify the interface to transmit from on machines with multiple
61 interfaces or aliased addresses. Note that this option does not
62 work if UsePrivilegedPort is set to ``yes''.
63
64 ChallengeResponseAuthentication
65 Specifies whether to use challenge response authentication. The
66 argument to this keyword must be ``yes'' or ``no''. The default
67 is ``yes''.
68
69 CheckHostIP
70 If this flag is set to ``yes'', ssh will additionally check the
71 host IP address in the known_hosts file. This allows ssh to
72 detect if a host key changed due to DNS spoofing. If the option
73 is set to ``no'', the check will not be executed. The default is
74 ``yes''.
75
76 Cipher Specifies the cipher to use for encrypting the session in protoM--
77 col version 1. Currently, ``blowfish'', ``3des'', and ``des''
78 are supported. des is only supported in the ssh client for
79 interoperability with legacy protocol 1 implementations that do
80 not support the 3des cipher. Its use is strongly discouraged due
81 to cryptographic weaknesses. The default is ``3des''.
82
83 Ciphers
84 Specifies the ciphers allowed for protocol version 2 in order of
85 preference. Multiple ciphers must be comma-separated. The
86 default is
87
88 ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
89 aes192-cbc,aes256-cbc''
90
91 ClearAllForwardings
92 Specifies that all local, remote and dynamic port forwardings
93 specified in the configuration files or on the command line be
94 cleared. This option is primarily useful when used from the ssh
95 command line to clear port forwardings set in configuration
96 files, and is automatically set by scp(1) and sftp(1). The arguM--
97 ment must be ``yes'' or ``no''. The default is ``no''.
98
99 Compression
100 Specifies whether to use compression. The argument must be
101 ``yes'' or ``no''. The default is ``no''.
102
103 CompressionLevel
104 Specifies the compression level to use if compression is enabled.
105 The argument must be an integer from 1 (fast) to 9 (slow, best).
106 The default level is 6, which is good for most applications. The
107 meaning of the values is the same as in gzip(1). Note that this
108 option applies to protocol version 1 only.
109
110 ConnectionAttempts
111 Specifies the number of tries (one per second) to make before
112 exiting. The argument must be an integer. This may be useful in
113 scripts if the connection sometimes fails. The default is 1.
114
115 DynamicForward
116 Specifies that a TCP/IP port on the local machine be forwarded
117 over the secure channel, and the application protocol is then
118 used to determine where to connect to from the remote machine.
119 The argument must be a port number. Currently the SOCKS4 protoM--
120 col is supported, and ssh will act as a SOCKS4 server. Multiple
121 forwardings may be specified, and additional forwardings can be
122 given on the command line. Only the superuser can forward priviM--
123 leged ports.
124
125 EscapeChar
126 Sets the escape character (default: `~'). The escape character
127 can also be set on the command line. The argument should be a
128 single character, `^' followed by a letter, or ``none'' to disM--
129 able the escape character entirely (making the connection transM--
130 parent for binary data).
131
132 ForwardAgent
133 Specifies whether the connection to the authentication agent (if
134 any) will be forwarded to the remote machine. The argument must
135 be ``yes'' or ``no''. The default is ``no''.
136
137 Agent forwarding should be enabled with caution. Users with the
138 ability to bypass file permissions on the remote host (for the
139 agent's Unix-domain socket) can access the local agent through
140 the forwarded connection. An attacker cannot obtain key material
141 from the agent, however they can perform operations on the keys
142 that enable them to authenticate using the identities loaded into
143 the agent.
144
145 ForwardX11
146 Specifies whether X11 connections will be automatically rediM--
147 rected over the secure channel and DISPLAY set. The argument
148 must be ``yes'' or ``no''. The default is ``no''.
149
150 X11 forwarding should be enabled with caution. Users with the
151 ability to bypass file permissions on the remote host (for the
152 user's X authorization database) can access the local X11 display
153 through the forwarded connection. An attacker may then be able
154 to perform activities such as keystroke monitoring.
155
156 GatewayPorts
157 Specifies whether remote hosts are allowed to connect to local
158 forwarded ports. By default, ssh binds local port forwardings to
159 the loopback address. This prevents other remote hosts from conM--
160 necting to forwarded ports. GatewayPorts can be used to specify
161 that ssh should bind local port forwardings to the wildcard
162 address, thus allowing remote hosts to connect to forwarded
163 ports. The argument must be ``yes'' or ``no''. The default is
164 ``no''.
165
166 GlobalKnownHostsFile
167 Specifies a file to use for the global host key database instead
168 of /etc/ssh/ssh_known_hosts.
169
170 HostbasedAuthentication
171 Specifies whether to try rhosts based authentication with public
172 key authentication. The argument must be ``yes'' or ``no''. The
173 default is ``no''. This option applies to protocol version 2
174 only and is similar to RhostsRSAAuthentication.
175
176 HostKeyAlgorithms
177 Specifies the protocol version 2 host key algorithms that the
178 client wants to use in order of preference. The default for this
179 option is: ``ssh-rsa,ssh-dss''.
180
181 HostKeyAlias
182 Specifies an alias that should be used instead of the real host
183 name when looking up or saving the host key in the host key
184 database files. This option is useful for tunneling ssh connecM--
185 tions or for multiple servers running on a single host.
186
187 HostName
188 Specifies the real host name to log into. This can be used to
189 specify nicknames or abbreviations for hosts. Default is the
190 name given on the command line. Numeric IP addresses are also
191 permitted (both on the command line and in HostName specificaM--
192 tions).
193
194 IdentityFile
195 Specifies a file from which the user's RSA or DSA authentication
196 identity is read. The default is $HOME/.ssh/identity for protocol
197 version 1, and $HOME/.ssh/id_rsa and $HOME/.ssh/id_dsa for protoM--
198 col version 2. Additionally, any identities represented by the
199 authentication agent will be used for authentication. The file
200 name may use the tilde syntax to refer to a user's home direcM--
201 tory. It is possible to have multiple identity files specified
202 in configuration files; all these identities will be tried in
203 sequence.
204
205 KeepAlive
206 Specifies whether the system should send TCP keepalive messages
207 to the other side. If they are sent, death of the connection or
208 crash of one of the machines will be properly noticed. However,
209 this means that connections will die if the route is down temM--
210 porarily, and some people find it annoying.
211
212 The default is ``yes'' (to send keepalives), and the client will
213 notice if the network goes down or the remote host dies. This is
214 important in scripts, and many users want it too.
215
216 To disable keepalives, the value should be set to ``no''.
217
218 KerberosAuthentication
219 Specifies whether Kerberos authentication will be used. The
220 argument to this keyword must be ``yes'' or ``no''.
221
222 KerberosTgtPassing
223 Specifies whether a Kerberos TGT will be forwarded to the server.
224 This will only work if the Kerberos server is actually an AFS
225 kaserver. The argument to this keyword must be ``yes'' or
226 ``no''.
227
228 LocalForward
229 Specifies that a TCP/IP port on the local machine be forwarded
230 over the secure channel to the specified host and port from the
231 remote machine. The first argument must be a port number, and
232 the second must be host:port. IPv6 addresses can be specified
233 with an alternative syntax: host/port. Multiple forwardings may
234 be specified, and additional forwardings can be given on the comM--
235 mand line. Only the superuser can forward privileged ports.
236
237 LogLevel
238 Gives the verbosity level that is used when logging messages from
239 ssh. The possible values are: QUIET, FATAL, ERROR, INFO, VERM--
240 BOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. The default is INFO.
241 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
242 higher levels of verbose output.
243
244 MACs Specifies the MAC (message authentication code) algorithms in
245 order of preference. The MAC algorithm is used in protocol verM--
246 sion 2 for data integrity protection. Multiple algorithms must
247 be comma-separated. The default is
248 ``hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96''.
249
250 NoHostAuthenticationForLocalhost
251 This option can be used if the home directory is shared across
252 machines. In this case localhost will refer to a different
253 machine on each of the machines and the user will get many warnM--
254 ings about changed host keys. However, this option disables host
255 authentication for localhost. The argument to this keyword must
256 be ``yes'' or ``no''. The default is to check the host key for
257 localhost.
258
259 NumberOfPasswordPrompts
260 Specifies the number of password prompts before giving up. The
261 argument to this keyword must be an integer. Default is 3.
262
263 PasswordAuthentication
264 Specifies whether to use password authentication. The argument
265 to this keyword must be ``yes'' or ``no''. The default is
266 ``yes''.
267
268 Port Specifies the port number to connect on the remote host. Default
269 is 22.
270
271 PreferredAuthentications
272 Specifies the order in which the client should try protocol 2
273 authentication methods. This allows a client to prefer one method
274 (e.g. keyboard-interactive) over another method (e.g. password)
275 The default for this option is:
276 ``hostbased,publickey,keyboard-interactive,password''.
277
278 Protocol
279 Specifies the protocol versions ssh should support in order of
280 preference. The possible values are ``1'' and ``2''. Multiple
281 versions must be comma-separated. The default is ``2,1''. This
282 means that ssh tries version 2 and falls back to version 1 if
283 version 2 is not available.
284
285 ProxyCommand
286 Specifies the command to use to connect to the server. The comM--
287 mand string extends to the end of the line, and is executed with
288 /bin/sh. In the command string, `%h' will be substituted by the
289 host name to connect and `%p' by the port. The command can be
290 basically anything, and should read from its standard input and
291 write to its standard output. It should eventually connect an
292 sshd(8) server running on some machine, or execute sshd -i someM--
293 where. Host key management will be done using the HostName of
294 the host being connected (defaulting to the name typed by the
295 user). Note that CheckHostIP is not available for connects with
296 a proxy command.
297
298 PubkeyAuthentication
299 Specifies whether to try public key authentication. The argument
300 to this keyword must be ``yes'' or ``no''. The default is
301 ``yes''. This option applies to protocol version 2 only.
302
303 RemoteForward
304 Specifies that a TCP/IP port on the remote machine be forwarded
305 over the secure channel to the specified host and port from the
306 local machine. The first argument must be a port number, and the
307 second must be host:port. IPv6 addresses can be specified with
308 an alternative syntax: host/port. Multiple forwardings may be
309 specified, and additional forwardings can be given on the command
310 line. Only the superuser can forward privileged ports.
311
312 RhostsAuthentication
313 Specifies whether to try rhosts based authentication. Note that
314 this declaration only affects the client side and has no effect
315 whatsoever on security. Most servers do not permit RhostsAuthenM--
316 tication because it is not secure (see RhostsRSAAuthentication).
317 The argument to this keyword must be ``yes'' or ``no''. The
318 default is ``no''. This option applies to protocol version 1
319 only and requires ssh to be setuid root and UsePrivilegedPort to
320 be set to ``yes''.
321
322 RhostsRSAAuthentication
323 Specifies whether to try rhosts based authentication with RSA
324 host authentication. The argument must be ``yes'' or ``no''.
325 The default is ``no''. This option applies to protocol version 1
326 only and requires ssh to be setuid root.
327
328 RSAAuthentication
329 Specifies whether to try RSA authentication. The argument to
330 this keyword must be ``yes'' or ``no''. RSA authentication will
331 only be attempted if the identity file exists, or an authenticaM--
332 tion agent is running. The default is ``yes''. Note that this
333 option applies to protocol version 1 only.
334
335 SmartcardDevice
336 Specifies which smartcard device to use. The argument to this
337 keyword is the device ssh should use to communicate with a smartM--
338 card used for storing the user's private RSA key. By default, no
339 device is specified and smartcard support is not activated.
340
341 StrictHostKeyChecking
342 If this flag is set to ``yes'', ssh will never automatically add
343 host keys to the $HOME/.ssh/known_hosts file, and refuses to conM--
344 nect to hosts whose host key has changed. This provides maximum
345 protection against trojan horse attacks, however, can be annoying
346 when the /etc/ssh/ssh_known_hosts file is poorly maintained, or
347 connections to new hosts are frequently made. This option forces
348 the user to manually add all new hosts. If this flag is set to
349 ``no'', ssh will automatically add new host keys to the user
350 known hosts files. If this flag is set to ``ask'', new host keys
351 will be added to the user known host files only after the user
352 has confirmed that is what they really want to do, and ssh will
353 refuse to connect to hosts whose host key has changed. The host
354 keys of known hosts will be verified automatically in all cases.
355 The argument must be ``yes'', ``no'' or ``ask''. The default is
356 ``ask''.
357
358 UsePrivilegedPort
359 Specifies whether to use a privileged port for outgoing connecM--
360 tions. The argument must be ``yes'' or ``no''. The default is
361 ``no''. If set to ``yes'' ssh must be setuid root. Note that
362 this option must be set to ``yes'' if RhostsAuthentication and
363 RhostsRSAAuthentication authentications are needed with older
364 servers.
365
366 User Specifies the user to log in as. This can be useful when a difM--
367 ferent user name is used on different machines. This saves the
368 trouble of having to remember to give the user name on the comM--
369 mand line.
370
371 UserKnownHostsFile
372 Specifies a file to use for the user host key database instead of
373 $HOME/.ssh/known_hosts.
374
375 XAuthLocation
376 Specifies the full pathname of the xauth(1) program. The default
377 is /usr/X11R6/bin/xauth.
378
379FILES
380 $HOME/.ssh/config
381 This is the per-user configuration file. The format of this file
382 is described above. This file is used by the ssh client. This
383 file does not usually contain any sensitive information, but the
384 recommended permissions are read/write for the user, and not
385 accessible by others.
386
387 /etc/ssh/ssh_config
388 Systemwide configuration file. This file provides defaults for
389 those values that are not specified in the user's configuration
390 file, and for those users who do not have a configuration file.
391 This file must be world-readable.
392
393AUTHORS
394 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
395 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
396 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
397 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
398 versions 1.5 and 2.0.
399
400SEE ALSO
401 ssh(1)
402
403BSD September 25, 1999 BSD
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..7c88c953f
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,547 @@
1SSHD(8) System Manager's Manual SSHD(8)
2
3NAME
4 sshd - OpenSSH SSH daemon
5
6SYNOPSIS
7 sshd [-deiqtD46] [-b bits] [-f config_file] [-g login_grace_time]
8 [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
9
10DESCRIPTION
11 sshd (SSH Daemon) is the daemon program for ssh(1). Together these proM--
12 grams replace rlogin and rsh, and provide secure encrypted communications
13 between two untrusted hosts over an insecure network. The programs are
14 intended to be as easy to install and use as possible.
15
16 sshd is the daemon that listens for connections from clients. It is norM--
17 mally started at boot from /etc/rc. It forks a new daemon for each
18 incoming connection. The forked daemons handle key exchange, encryption,
19 authentication, command execution, and data exchange. This implementaM--
20 tion of sshd supports both SSH protocol version 1 and 2 simultaneously.
21 sshd works as follows.
22
23 SSH protocol version 1
24
25 Each host has a host-specific RSA key (normally 1024 bits) used to idenM--
26 tify the host. Additionally, when the daemon starts, it generates a
27 server RSA key (normally 768 bits). This key is normally regenerated
28 every hour if it has been used, and is never stored on disk.
29
30 Whenever a client connects the daemon responds with its public host and
31 server keys. The client compares the RSA host key against its own
32 database to verify that it has not changed. The client then generates a
33 256 bit random number. It encrypts this random number using both the
34 host key and the server key, and sends the encrypted number to the
35 server. Both sides then use this random number as a session key which is
36 used to encrypt all further communications in the session. The rest of
37 the session is encrypted using a conventional cipher, currently Blowfish
38 or 3DES, with 3DES being used by default. The client selects the encrypM--
39 tion algorithm to use from those offered by the server.
40
41 Next, the server and the client enter an authentication dialog. The
42 client tries to authenticate itself using .rhosts authentication, .rhosts
43 authentication combined with RSA host authentication, RSA challenge-
44 response authentication, or password based authentication.
45
46 Rhosts authentication is normally disabled because it is fundamentally
47 insecure, but can be enabled in the server configuration file if desired.
48 System security is not improved unless rshd, rlogind, and rexecd are disM--
49 abled (thus completely disabling rlogin and rsh into the machine).
50
51 SSH protocol version 2
52
53 Version 2 works similarly: Each host has a host-specific key (RSA or DSA)
54 used to identify the host. However, when the daemon starts, it does not
55 generate a server key. Forward security is provided through a Diffie-
56 Hellman key agreement. This key agreement results in a shared session
57 key.
58
59 The rest of the session is encrypted using a symmetric cipher, currently
60 128 bit AES, Blowfish, 3DES, CAST128, Arcfour, 192 bit AES, or 256 bit
61 AES. The client selects the encryption algorithm to use from those
62 offered by the server. Additionally, session integrity is provided
63 through a cryptographic message authentication code (hmac-sha1 or hmac-
64 md5).
65
66 Protocol version 2 provides a public key based user (PubkeyAuthenticaM--
67 tion) or client host (HostbasedAuthentication) authentication method,
68 conventional password authentication and challenge response based methM--
69 ods.
70
71 Command execution and data forwarding
72
73 If the client successfully authenticates itself, a dialog for preparing
74 the session is entered. At this time the client may request things like
75 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP/IP
76 connections, or forwarding the authentication agent connection over the
77 secure channel.
78
79 Finally, the client either requests a shell or execution of a command.
80 The sides then enter session mode. In this mode, either side may send
81 data at any time, and such data is forwarded to/from the shell or command
82 on the server side, and the user terminal in the client side.
83
84 When the user program terminates and all forwarded X11 and other connecM--
85 tions have been closed, the server sends command exit status to the
86 client, and both sides exit.
87
88 sshd can be configured using command-line options or a configuration
89 file. Command-line options override values specified in the configuraM--
90 tion file.
91
92 sshd rereads its configuration file when it receives a hangup signal,
93 SIGHUP, by executing itself with the name it was started as, i.e.,
94 /usr/sbin/sshd.
95
96 The options are as follows:
97
98 -b bits
99 Specifies the number of bits in the ephemeral protocol version 1
100 server key (default 768).
101
102 -d Debug mode. The server sends verbose debug output to the system
103 log, and does not put itself in the background. The server also
104 will not fork and will only process one connection. This option
105 is only intended for debugging for the server. Multiple -d
106 options increase the debugging level. Maximum is 3.
107
108 -e When this option is specified, sshd will send the output to the
109 standard error instead of the system log.
110
111 -f configuration_file
112 Specifies the name of the configuration file. The default is
113 /etc/ssh/sshd_config. sshd refuses to start if there is no conM--
114 figuration file.
115
116 -g login_grace_time
117 Gives the grace time for clients to authenticate themselves
118 (default 120 seconds). If the client fails to authenticate the
119 user within this many seconds, the server disconnects and exits.
120 A value of zero indicates no limit.
121
122 -h host_key_file
123 Specifies a file from which a host key is read. This option must
124 be given if sshd is not run as root (as the normal host key files
125 are normally not readable by anyone but root). The default is
126 /etc/ssh/ssh_host_key for protocol version 1, and
127 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for proM--
128 tocol version 2. It is possible to have multiple host key files
129 for the different protocol versions and host key algorithms.
130
131 -i Specifies that sshd is being run from inetd. sshd is normally
132 not run from inetd because it needs to generate the server key
133 before it can respond to the client, and this may take tens of
134 seconds. Clients would have to wait too long if the key was
135 regenerated every time. However, with small key sizes (e.g.,
136 512) using sshd from inetd may be feasible.
137
138 -k key_gen_time
139 Specifies how often the ephemeral protocol version 1 server key
140 is regenerated (default 3600 seconds, or one hour). The motivaM--
141 tion for regenerating the key fairly often is that the key is not
142 stored anywhere, and after about an hour, it becomes impossible
143 to recover the key for decrypting intercepted communications even
144 if the machine is cracked into or physically seized. A value of
145 zero indicates that the key will never be regenerated.
146
147 -o option
148 Can be used to give options in the format used in the configuraM--
149 tion file. This is useful for specifying options for which there
150 is no separate command-line flag.
151
152 -p port
153 Specifies the port on which the server listens for connections
154 (default 22). Multiple port options are permitted. Ports speciM--
155 fied in the configuration file are ignored when a command-line
156 port is specified.
157
158 -q Quiet mode. Nothing is sent to the system log. Normally the
159 beginning, authentication, and termination of each connection is
160 logged.
161
162 -t Test mode. Only check the validity of the configuration file and
163 sanity of the keys. This is useful for updating sshd reliably as
164 configuration options may change.
165
166 -u len This option is used to specify the size of the field in the utmp
167 structure that holds the remote host name. If the resolved host
168 name is longer than len, the dotted decimal value will be used
169 instead. This allows hosts with very long host names that overM--
170 flow this field to still be uniquely identified. Specifying -u0
171 indicates that only dotted decimal addresses should be put into
172 the utmp file. -u0 is also be used to prevent sshd from making
173 DNS requests unless the authentication mechanism or configuration
174 requires it. Authentication mechanisms that may require DNS
175 include RhostsAuthentication, RhostsRSAAuthentication,
176 HostbasedAuthentication and using a from="pattern-list" option in
177 a key file. Configuration options that require DNS include using
178 a USER@HOST pattern in AllowUsers or DenyUsers.
179
180 -D When this option is specified sshd will not detach and does not
181 become a daemon. This allows easy monitoring of sshd.
182
183 -4 Forces sshd to use IPv4 addresses only.
184
185 -6 Forces sshd to use IPv6 addresses only.
186
187CONFIGURATION FILE
188 sshd reads configuration data from /etc/ssh/sshd_config (or the file
189 specified with -f on the command line). The file format and configuraM--
190 tion options are described in sshd_config(5).
191
192LOGIN PROCESS
193 When a user successfully logs in, sshd does the following:
194
195 1. If the login is on a tty, and no command has been specified,
196 prints last login time and /etc/motd (unless prevented in the
197 configuration file or by $HOME/.hushlogin; see the FILES secM--
198 tion).
199
200 2. If the login is on a tty, records login time.
201
202 3. Checks /etc/nologin; if it exists, prints contents and quits
203 (unless root).
204
205 4. Changes to run with normal user privileges.
206
207 5. Sets up basic environment.
208
209 6. Reads $HOME/.ssh/environment if it exists and users are
210 allowed to change their environment. See the
211 PermitUserEnvironment option in sshd_config(5).
212
213 7. Changes to user's home directory.
214
215 8. If $HOME/.ssh/rc exists, runs it; else if /etc/ssh/sshrc
216 exists, runs it; otherwise runs xauth. The ``rc'' files are
217 given the X11 authentication protocol and cookie in standard
218 input.
219
220 9. Runs user's shell or command.
221
222AUTHORIZED_KEYS FILE FORMAT
223 $HOME/.ssh/authorized_keys is the default file that lists the public keys
224 that are permitted for RSA authentication in protocol version 1 and for
225 public key authentication (PubkeyAuthentication) in protocol version 2.
226 AuthorizedKeysFile may be used to specify an alternative file.
227
228 Each line of the file contains one key (empty lines and lines starting
229 with a `#' are ignored as comments). Each RSA public key consists of the
230 following fields, separated by spaces: options, bits, exponent, modulus,
231 comment. Each protocol version 2 public key consists of: options, keyM--
232 type, base64 encoded key, comment. The options field is optional; its
233 presence is determined by whether the line starts with a number or not
234 (the options field never starts with a number). The bits, exponent, modM--
235 ulus and comment fields give the RSA key for protocol version 1; the comM--
236 ment field is not used for anything (but may be convenient for the user
237 to identify the key). For protocol version 2 the keytype is ``ssh-dss''
238 or ``ssh-rsa''.
239
240 Note that lines in this file are usually several hundred bytes long
241 (because of the size of the public key encoding). You don't want to type
242 them in; instead, copy the identity.pub, id_dsa.pub or the id_rsa.pub
243 file and edit it.
244
245 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
246 2 keys of 768 bits.
247
248 The options (if present) consist of comma-separated option specificaM--
249 tions. No spaces are permitted, except within double quotes. The folM--
250 lowing option specifications are supported (note that option keywords are
251 case-insensitive):
252
253 from="pattern-list"
254 Specifies that in addition to public key authentication, the
255 canonical name of the remote host must be present in the comma-
256 separated list of patterns (`*' and `'? serve as wildcards).
257 The list may also contain patterns negated by prefixing them with
258 `'!; if the canonical host name matches a negated pattern, the
259 key is not accepted. The purpose of this option is to optionally
260 increase security: public key authentication by itself does not
261 trust the network or name servers or anything (but the key); howM--
262 ever, if somebody somehow steals the key, the key permits an
263 intruder to log in from anywhere in the world. This additional
264 option makes using a stolen key more difficult (name servers
265 and/or routers would have to be compromised in addition to just
266 the key).
267
268 command="command"
269 Specifies that the command is executed whenever this key is used
270 for authentication. The command supplied by the user (if any) is
271 ignored. The command is run on a pty if the client requests a
272 pty; otherwise it is run without a tty. If a 8-bit clean channel
273 is required, one must not request a pty or should specify no-pty.
274 A quote may be included in the command by quoting it with a backM--
275 slash. This option might be useful to restrict certain public
276 keys to perform just a specific operation. An example might be a
277 key that permits remote backups but nothing else. Note that the
278 client may specify TCP/IP and/or X11 forwarding unless they are
279 explicitly prohibited. Note that this option applies to shell,
280 command or subsystem execution.
281
282 environment="NAME=value"
283 Specifies that the string is to be added to the environment when
284 logging in using this key. Environment variables set this way
285 override other default environment values. Multiple options of
286 this type are permitted. Environment processing is disabled by
287 default and is controlled via the PermitUserEnvironment option.
288 This option is automatically disabled if UseLogin is enabled.
289
290 no-port-forwarding
291 Forbids TCP/IP forwarding when this key is used for authenticaM--
292 tion. Any port forward requests by the client will return an
293 error. This might be used, e.g., in connection with the command
294 option.
295
296 no-X11-forwarding
297 Forbids X11 forwarding when this key is used for authentication.
298 Any X11 forward requests by the client will return an error.
299
300 no-agent-forwarding
301 Forbids authentication agent forwarding when this key is used for
302 authentication.
303
304 no-pty Prevents tty allocation (a request to allocate a pty will fail).
305
306 permitopen="host:port"
307 Limit local ``ssh -L'' port forwarding such that it may only conM--
308 nect to the specified host and port. IPv6 addresses can be specM--
309 ified with an alternative syntax: host/port. Multiple permitopen
310 options may be applied separated by commas. No pattern matching
311 is performed on the specified hostnames, they must be literal
312 domains or addresses.
313
314 Examples
315 1024 33 12121...312314325 ylo@foo.bar
316
317 from="*.niksula.hut.fi,!pc.niksula.hut.fi" 1024 35 23...2334 ylo@niksula
318
319 command="dump /home",no-pty,no-port-forwarding 1024 33 23...2323
320 backup.hut.fi
321
322 permitopen="10.2.1.55:80",permitopen="10.2.1.56:25" 1024 33 23...2323
323
324SSH_KNOWN_HOSTS FILE FORMAT
325 The /etc/ssh/ssh_known_hosts, and $HOME/.ssh/known_hosts files contain
326 host public keys for all known hosts. The global file should be prepared
327 by the administrator (optional), and the per-user file is maintained
328 automatically: whenever the user connects from an unknown host its key is
329 added to the per-user file.
330
331 Each line in these files contains the following fields: hostnames, bits,
332 exponent, modulus, comment. The fields are separated by spaces.
333
334 Hostnames is a comma-separated list of patterns ('*' and '?' act as wildM--
335 cards); each pattern in turn is matched against the canonical host name
336 (when authenticating a client) or against the user-supplied name (when
337 authenticating a server). A pattern may also be preceded by `'! to
338 indicate negation: if the host name matches a negated pattern, it is not
339 accepted (by that line) even if it matched another pattern on the line.
340
341 Bits, exponent, and modulus are taken directly from the RSA host key;
342 they can be obtained, e.g., from /etc/ssh/ssh_host_key.pub. The optional
343 comment field continues to the end of the line, and is not used.
344
345 Lines starting with `#' and empty lines are ignored as comments.
346
347 When performing host authentication, authentication is accepted if any
348 matching line has the proper key. It is thus permissible (but not recomM--
349 mended) to have several lines or different host keys for the same names.
350 This will inevitably happen when short forms of host names from different
351 domains are put in the file. It is possible that the files contain conM--
352 flicting information; authentication is accepted if valid information can
353 be found from either file.
354
355 Note that the lines in these files are typically hundreds of characters
356 long, and you definitely don't want to type in the host keys by hand.
357 Rather, generate them by a script or by taking /etc/ssh/ssh_host_key.pub
358 and adding the host names at the front.
359
360 Examples
361
362 closenet,...,130.233.208.41 1024 37 159...93 closenet.hut.fi
363 cvs.openbsd.org,199.185.137.3 ssh-rsa AAAA1234.....=
364
365FILES
366 /etc/ssh/sshd_config
367 Contains configuration data for sshd. The file format and conM--
368 figuration options are described in sshd_config(5).
369
370 /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key,
371 /etc/ssh/ssh_host_rsa_key
372 These three files contain the private parts of the host keys.
373 These files should only be owned by root, readable only by root,
374 and not accessible to others. Note that sshd does not start if
375 this file is group/world-accessible.
376
377 /etc/ssh/ssh_host_key.pub, /etc/ssh/ssh_host_dsa_key.pub,
378 /etc/ssh/ssh_host_rsa_key.pub
379 These three files contain the public parts of the host keys.
380 These files should be world-readable but writable only by root.
381 Their contents should match the respective private parts. These
382 files are not really used for anything; they are provided for the
383 convenience of the user so their contents can be copied to known
384 hosts files. These files are created using ssh-keygen(1).
385
386 /etc/moduli
387 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
388 Exchange". The file format is described in moduli(5).
389
390 /var/empty
391 chroot(2) directory used by sshd during privilege separation in
392 the pre-authentication phase. The directory should not contain
393 any files and must be owned by root and not group or world-
394 writable.
395
396 /var/run/sshd.pid
397 Contains the process ID of the sshd listening for connections (if
398 there are several daemons running concurrently for different
399 ports, this contains the process ID of the one started last).
400 The content of this file is not sensitive; it can be world-readM--
401 able.
402
403 $HOME/.ssh/authorized_keys
404 Lists the public keys (RSA or DSA) that can be used to log into
405 the user's account. This file must be readable by root (which
406 may on some machines imply it being world-readable if the user's
407 home directory resides on an NFS volume). It is recommended that
408 it not be accessible by others. The format of this file is
409 described above. Users will place the contents of their
410 identity.pub, id_dsa.pub and/or id_rsa.pub files into this file,
411 as described in ssh-keygen(1).
412
413 /etc/ssh/ssh_known_hosts and $HOME/.ssh/known_hosts
414 These files are consulted when using rhosts with RSA host authenM--
415 tication or protocol version 2 hostbased authentication to check
416 the public key of the host. The key must be listed in one of
417 these files to be accepted. The client uses the same files to
418 verify that it is connecting to the correct remote host. These
419 files should be writable only by root/the owner.
420 /etc/ssh/ssh_known_hosts should be world-readable, and
421 $HOME/.ssh/known_hosts can but need not be world-readable.
422
423 /etc/nologin
424 If this file exists, sshd refuses to let anyone except root log
425 in. The contents of the file are displayed to anyone trying to
426 log in, and non-root connections are refused. The file should be
427 world-readable.
428
429 /etc/hosts.allow, /etc/hosts.deny
430 Access controls that should be enforced by tcp-wrappers are
431 defined here. Further details are described in hosts_access(5).
432
433 $HOME/.rhosts
434 This file contains host-username pairs, separated by a space, one
435 per line. The given user on the corresponding host is permitted
436 to log in without password. The same file is used by rlogind and
437 rshd. The file must be writable only by the user; it is recomM--
438 mended that it not be accessible by others.
439
440 If is also possible to use netgroups in the file. Either host or
441 user name may be of the form +@groupname to specify all hosts or
442 all users in the group.
443
444 $HOME/.shosts
445 For ssh, this file is exactly the same as for .rhosts. However,
446 this file is not used by rlogin and rshd, so using this permits
447 access using SSH only.
448
449 /etc/hosts.equiv
450 This file is used during .rhosts authentication. In the simplest
451 form, this file contains host names, one per line. Users on
452 those hosts are permitted to log in without a password, provided
453 they have the same user name on both machines. The host name may
454 also be followed by a user name; such users are permitted to log
455 in as any user on this machine (except root). Additionally, the
456 syntax ``+@group'' can be used to specify netgroups. Negated
457 entries start with `-'.
458
459 If the client host/user is successfully matched in this file,
460 login is automatically permitted provided the client and server
461 user names are the same. Additionally, successful RSA host
462 authentication is normally required. This file must be writable
463 only by root; it is recommended that it be world-readable.
464
465 Warning: It is almost never a good idea to use user names in
466 hosts.equiv. Beware that it really means that the named user(s)
467 can log in as anybody, which includes bin, daemon, adm, and other
468 accounts that own critical binaries and directories. Using a
469 user name practically grants the user root access. The only
470 valid use for user names that I can think of is in negative
471 entries.
472
473 Note that this warning also applies to rsh/rlogin.
474
475 /etc/shosts.equiv
476 This is processed exactly as /etc/hosts.equiv. However, this
477 file may be useful in environments that want to run both
478 rsh/rlogin and ssh.
479
480 $HOME/.ssh/environment
481 This file is read into the environment at login (if it exists).
482 It can only contain empty lines, comment lines (that start with
483 `#'), and assignment lines of the form name=value. The file
484 should be writable only by the user; it need not be readable by
485 anyone else. Environment processing is disabled by default and
486 is controlled via the PermitUserEnvironment option.
487
488 $HOME/.ssh/rc
489 If this file exists, it is run with /bin/sh after reading the
490 environment files but before starting the user's shell or comM--
491 mand. It must not produce any output on stdout; stderr must be
492 used instead. If X11 forwarding is in use, it will receive the
493 "proto cookie" pair in its standard input (and DISPLAY in its
494 environment). The script must call xauth(1) because sshd will
495 not run xauth automatically to add X11 cookies.
496
497 The primary purpose of this file is to run any initialization
498 routines which may be needed before the user's home directory
499 becomes accessible; AFS is a particular example of such an enviM--
500 ronment.
501
502 This file will probably contain some initialization code followed
503 by something similar to:
504
505 if read proto cookie && [ -n "$DISPLAY" ]; then
506 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
507 # X11UseLocalhost=yes
508 echo add unix:`echo $DISPLAY |
509 cut -c11-` $proto $cookie
510 else
511 # X11UseLocalhost=no
512 echo add $DISPLAY $proto $cookie
513 fi | xauth -q -
514 fi
515
516 If this file does not exist, /etc/ssh/sshrc is run, and if that
517 does not exist either, xauth is used to add the cookie.
518
519 This file should be writable only by the user, and need not be
520 readable by anyone else.
521
522 /etc/ssh/sshrc
523 Like $HOME/.ssh/rc. This can be used to specify machine-specific
524 login-time initializations globally. This file should be
525 writable only by root, and should be world-readable.
526
527AUTHORS
528 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
529 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
530 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
531 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
532 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
533 for privilege separation.
534
535SEE ALSO
536 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
537 login.conf(5), moduli(5), sshd_config(5), sftp-server(8)
538
539 T. Ylonen, T. Kivinen, M. Saarinen, T. Rinne, and S. Lehtinen, SSH
540 Protocol Architecture, draft-ietf-secsh-architecture-12.txt, January
541 2002, work in progress material.
542
543 M. Friedl, N. Provos, and W. A. Simpson, Diffie-Hellman Group Exchange
544 for the SSH Transport Layer Protocol, draft-ietf-secsh-dh-group-
545 exchange-02.txt, January 2002, work in progress material.
546
547BSD September 25, 1999 BSD
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..a4e31be0f
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,470 @@
1SSHD_CONFIG(5) System File Formats Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config - OpenSSH SSH daemon configuration file
5
6SYNOPSIS
7 /etc/ssh/sshd_config
8
9DESCRIPTION
10 sshd reads configuration data from /etc/ssh/sshd_config (or the file
11 specified with -f on the command line). The file contains keyword-arguM--
12 ment pairs, one per line. Lines starting with `#' and empty lines are
13 interpreted as comments.
14
15 The possible keywords and their meanings are as follows (note that keyM--
16 words are case-insensitive and arguments are case-sensitive):
17
18 AFSTokenPassing
19 Specifies whether an AFS token may be forwarded to the server.
20 Default is ``no''.
21
22 AllowGroups
23 This keyword can be followed by a list of group name patterns,
24 separated by spaces. If specified, login is allowed only for
25 users whose primary group or supplementary group list matches one
26 of the patterns. `*' and `'? can be used as wildcards in the
27 patterns. Only group names are valid; a numerical group ID is
28 not recognized. By default, login is allowed for all groups.
29
30 AllowTcpForwarding
31 Specifies whether TCP forwarding is permitted. The default is
32 ``yes''. Note that disabling TCP forwarding does not improve
33 security unless users are also denied shell access, as they can
34 always install their own forwarders.
35
36 AllowUsers
37 This keyword can be followed by a list of user name patterns,
38 separated by spaces. If specified, login is allowed only for
39 users names that match one of the patterns. `*' and `'? can be
40 used as wildcards in the patterns. Only user names are valid; a
41 numerical user ID is not recognized. By default, login is
42 allowed for all users. If the pattern takes the form USER@HOST
43 then USER and HOST are separately checked, restricting logins to
44 particular users from particular hosts.
45
46 AuthorizedKeysFile
47 Specifies the file that contains the public keys that can be used
48 for user authentication. AuthorizedKeysFile may contain tokens
49 of the form %T which are substituted during connection set-up.
50 The following tokens are defined: %% is replaced by a literal
51 '%', %h is replaced by the home directory of the user being
52 authenticated and %u is replaced by the username of that user.
53 After expansion, AuthorizedKeysFile is taken to be an absolute
54 path or one relative to the user's home directory. The default
55 is ``.ssh/authorized_keys''.
56
57 Banner In some jurisdictions, sending a warning message before authentiM--
58 cation may be relevant for getting legal protection. The conM--
59 tents of the specified file are sent to the remote user before
60 authentication is allowed. This option is only available for
61 protocol version 2. By default, no banner is displayed.
62
63 ChallengeResponseAuthentication
64 Specifies whether challenge response authentication is allowed.
65 All authentication styles from login.conf(5) are supported. The
66 default is ``yes''.
67
68 Ciphers
69 Specifies the ciphers allowed for protocol version 2. Multiple
70 ciphers must be comma-separated. The default is
71
72 ``aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
73 aes192-cbc,aes256-cbc''
74
75 ClientAliveInterval
76 Sets a timeout interval in seconds after which if no data has
77 been received from the client, sshd will send a message through
78 the encrypted channel to request a response from the client. The
79 default is 0, indicating that these messages will not be sent to
80 the client. This option applies to protocol version 2 only.
81
82 ClientAliveCountMax
83 Sets the number of client alive messages (see above) which may be
84 sent without sshd receiving any messages back from the client. If
85 this threshold is reached while client alive messages are being
86 sent, sshd will disconnect the client, terminating the session.
87 It is important to note that the use of client alive messages is
88 very different from KeepAlive (below). The client alive messages
89 are sent through the encrypted channel and therefore will not be
90 spoofable. The TCP keepalive option enabled by KeepAlive is
91 spoofable. The client alive mechanism is valuable when the client
92 or server depend on knowing when a connection has become inacM--
93 tive.
94
95 The default value is 3. If ClientAliveInterval (above) is set to
96 15, and ClientAliveCountMax is left at the default, unresponsive
97 ssh clients will be disconnected after approximately 45 seconds.
98
99 Compression
100 Specifies whether compression is allowed. The argument must be
101 ``yes'' or ``no''. The default is ``yes''.
102
103 DenyGroups
104 This keyword can be followed by a list of group name patterns,
105 separated by spaces. Login is disallowed for users whose primary
106 group or supplementary group list matches one of the patterns.
107 `*' and `'? can be used as wildcards in the patterns. Only
108 group names are valid; a numerical group ID is not recognized.
109 By default, login is allowed for all groups.
110
111 DenyUsers
112 This keyword can be followed by a list of user name patterns,
113 separated by spaces. Login is disallowed for user names that
114 match one of the patterns. `*' and `'? can be used as wildcards
115 in the patterns. Only user names are valid; a numerical user ID
116 is not recognized. By default, login is allowed for all users.
117 If the pattern takes the form USER@HOST then USER and HOST are
118 separately checked, restricting logins to particular users from
119 particular hosts.
120
121 GatewayPorts
122 Specifies whether remote hosts are allowed to connect to ports
123 forwarded for the client. By default, sshd binds remote port
124 forwardings to the loopback address. This prevents other remote
125 hosts from connecting to forwarded ports. GatewayPorts can be
126 used to specify that sshd should bind remote port forwardings to
127 the wildcard address, thus allowing remote hosts to connect to
128 forwarded ports. The argument must be ``yes'' or ``no''. The
129 default is ``no''.
130
131 HostbasedAuthentication
132 Specifies whether rhosts or /etc/hosts.equiv authentication
133 together with successful public key client host authentication is
134 allowed (hostbased authentication). This option is similar to
135 RhostsRSAAuthentication and applies to protocol version 2 only.
136 The default is ``no''.
137
138 HostKey
139 Specifies a file containing a private host key used by SSH. The
140 default is /etc/ssh/ssh_host_key for protocol version 1, and
141 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for proM--
142 tocol version 2. Note that sshd will refuse to use a file if it
143 is group/world-accessible. It is possible to have multiple host
144 key files. ``rsa1'' keys are used for version 1 and ``dsa'' or
145 ``rsa'' are used for version 2 of the SSH protocol.
146
147 IgnoreRhosts
148 Specifies that .rhosts and .shosts files will not be used in
149 RhostsAuthentication, RhostsRSAAuthentication or
150 HostbasedAuthentication.
151
152 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
153 default is ``yes''.
154
155 IgnoreUserKnownHosts
156 Specifies whether sshd should ignore the user's
157 $HOME/.ssh/known_hosts during RhostsRSAAuthentication or
158 HostbasedAuthentication. The default is ``no''.
159
160 KeepAlive
161 Specifies whether the system should send TCP keepalive messages
162 to the other side. If they are sent, death of the connection or
163 crash of one of the machines will be properly noticed. However,
164 this means that connections will die if the route is down temM--
165 porarily, and some people find it annoying. On the other hand,
166 if keepalives are not sent, sessions may hang indefinitely on the
167 server, leaving ``ghost'' users and consuming server resources.
168
169 The default is ``yes'' (to send keepalives), and the server will
170 notice if the network goes down or the client host crashes. This
171 avoids infinitely hanging sessions.
172
173 To disable keepalives, the value should be set to ``no''.
174
175 KerberosAuthentication
176 Specifies whether Kerberos authentication is allowed. This can
177 be in the form of a Kerberos ticket, or if PasswordAuthentication
178 is yes, the password provided by the user will be validated
179 through the Kerberos KDC. To use this option, the server needs a
180 Kerberos servtab which allows the verification of the KDC's idenM--
181 tity. Default is ``no''.
182
183 KerberosOrLocalPasswd
184 If set then if password authentication through Kerberos fails
185 then the password will be validated via any additional local
186 mechanism such as /etc/passwd. Default is ``yes''.
187
188 KerberosTgtPassing
189 Specifies whether a Kerberos TGT may be forwarded to the server.
190 Default is ``no'', as this only works when the Kerberos KDC is
191 actually an AFS kaserver.
192
193 KerberosTicketCleanup
194 Specifies whether to automatically destroy the user's ticket
195 cache file on logout. Default is ``yes''.
196
197 KeyRegenerationInterval
198 In protocol version 1, the ephemeral server key is automatically
199 regenerated after this many seconds (if it has been used). The
200 purpose of regeneration is to prevent decrypting captured sesM--
201 sions by later breaking into the machine and stealing the keys.
202 The key is never stored anywhere. If the value is 0, the key is
203 never regenerated. The default is 3600 (seconds).
204
205 ListenAddress
206 Specifies the local addresses sshd should listen on. The followM--
207 ing forms may be used:
208
209 ListenAddress host|IPv4_addr|IPv6_addr
210 ListenAddress host|IPv4_addr:port
211 ListenAddress [host|IPv6_addr]:port
212
213 If port is not specified, sshd will listen on the address and all
214 prior Port options specified. The default is to listen on all
215 local addresses. Multiple ListenAddress options are permitted.
216 Additionally, any Port options must precede this option for non
217 port qualified addresses.
218
219 LoginGraceTime
220 The server disconnects after this time if the user has not sucM--
221 cessfully logged in. If the value is 0, there is no time limit.
222 The default is 120 seconds.
223
224 LogLevel
225 Gives the verbosity level that is used when logging messages from
226 sshd. The possible values are: QUIET, FATAL, ERROR, INFO, VERM--
227 BOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3. The default is INFO.
228 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
229 higher levels of debugging output. Logging with a DEBUG level
230 violates the privacy of users and is not recommended.
231
232 MACs Specifies the available MAC (message authentication code) algoM--
233 rithms. The MAC algorithm is used in protocol version 2 for data
234 integrity protection. Multiple algorithms must be comma-sepaM--
235 rated. The default is
236 ``hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96''.
237
238 MaxStartups
239 Specifies the maximum number of concurrent unauthenticated conM--
240 nections to the sshd daemon. Additional connections will be
241 dropped until authentication succeeds or the LoginGraceTime
242 expires for a connection. The default is 10.
243
244 Alternatively, random early drop can be enabled by specifying the
245 three colon separated values ``start:rate:full'' (e.g.,
246 "10:30:60"). sshd will refuse connection attempts with a probaM--
247 bility of ``rate/100'' (30%) if there are currently ``start''
248 (10) unauthenticated connections. The probability increases linM--
249 early and all connection attempts are refused if the number of
250 unauthenticated connections reaches ``full'' (60).
251
252 PAMAuthenticationViaKbdInt
253 Specifies whether PAM challenge response authentication is
254 allowed. This allows the use of most PAM challenge response
255 authentication modules, but it will allow password authentication
256 regardless of whether PasswordAuthentication is enabled.
257
258 PasswordAuthentication
259 Specifies whether password authentication is allowed. The
260 default is ``yes''.
261
262 PermitEmptyPasswords
263 When password authentication is allowed, it specifies whether the
264 server allows login to accounts with empty password strings. The
265 default is ``no''.
266
267 PermitRootLogin
268 Specifies whether root can login using ssh(1). The argument must
269 be ``yes'', ``without-password'', ``forced-commands-only'' or
270 ``no''. The default is ``yes''.
271
272 If this option is set to ``without-password'' password authentiM--
273 cation is disabled for root.
274
275 If this option is set to ``forced-commands-only'' root login with
276 public key authentication will be allowed, but only if the
277 command option has been specified (which may be useful for taking
278 remote backups even if root login is normally not allowed). All
279 other authentication methods are disabled for root.
280
281 If this option is set to ``no'' root is not allowed to login.
282
283 PermitUserEnvironment
284 Specifies whether ~/.ssh/environment and environment= options in
285 ~/.ssh/authorized_keys are processed by sshd. The default is
286 ``no''. Enabling environment processing may enable users to
287 bypass access restrictions in some configurations using mechaM--
288 nisms such as LD_PRELOAD.
289
290 PidFile
291 Specifies the file that contains the process ID of the sshd daeM--
292 mon. The default is /var/run/sshd.pid.
293
294 Port Specifies the port number that sshd listens on. The default is
295 22. Multiple options of this type are permitted. See also
296 ListenAddress.
297
298 PrintLastLog
299 Specifies whether sshd should print the date and time when the
300 user last logged in. The default is ``yes''.
301
302 PrintMotd
303 Specifies whether sshd should print /etc/motd when a user logs in
304 interactively. (On some systems it is also printed by the shell,
305 /etc/profile, or equivalent.) The default is ``yes''.
306
307 Protocol
308 Specifies the protocol versions sshd supports. The possible valM--
309 ues are ``1'' and ``2''. Multiple versions must be comma-sepaM--
310 rated. The default is ``2,1''. Note that the order of the proM--
311 tocol list does not indicate preference, because the client
312 selects among multiple protocol versions offered by the server.
313 Specifying ``2,1'' is identical to ``1,2''.
314
315 PubkeyAuthentication
316 Specifies whether public key authentication is allowed. The
317 default is ``yes''. Note that this option applies to protocol
318 version 2 only.
319
320 RhostsAuthentication
321 Specifies whether authentication using rhosts or /etc/hosts.equiv
322 files is sufficient. Normally, this method should not be permitM--
323 ted because it is insecure. RhostsRSAAuthentication should be
324 used instead, because it performs RSA-based host authentication
325 in addition to normal rhosts or /etc/hosts.equiv authentication.
326 The default is ``no''. This option applies to protocol version 1
327 only.
328
329 RhostsRSAAuthentication
330 Specifies whether rhosts or /etc/hosts.equiv authentication
331 together with successful RSA host authentication is allowed. The
332 default is ``no''. This option applies to protocol version 1
333 only.
334
335 RSAAuthentication
336 Specifies whether pure RSA authentication is allowed. The
337 default is ``yes''. This option applies to protocol version 1
338 only.
339
340 ServerKeyBits
341 Defines the number of bits in the ephemeral protocol version 1
342 server key. The minimum value is 512, and the default is 768.
343
344 StrictModes
345 Specifies whether sshd should check file modes and ownership of
346 the user's files and home directory before accepting login. This
347 is normally desirable because novices sometimes accidentally
348 leave their directory or files world-writable. The default is
349 ``yes''.
350
351 Subsystem
352 Configures an external subsystem (e.g., file transfer daemon).
353 Arguments should be a subsystem name and a command to execute
354 upon subsystem request. The command sftp-server(8) implements
355 the ``sftp'' file transfer subsystem. By default no subsystems
356 are defined. Note that this option applies to protocol version 2
357 only.
358
359 SyslogFacility
360 Gives the facility code that is used when logging messages from
361 sshd. The possible values are: DAEMON, USER, AUTH, LOCAL0,
362 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
363 default is AUTH.
364
365 UseLogin
366 Specifies whether login(1) is used for interactive login sesM--
367 sions. The default is ``no''. Note that login(1) is never used
368 for remote command execution. Note also, that if this is
369 enabled, X11Forwarding will be disabled because login(1) does not
370 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
371 is specified, it will be disabled after authentication.
372
373 UsePrivilegeSeparation
374 Specifies whether sshd separates privileges by creating an
375 unprivileged child process to deal with incoming network traffic.
376 After successful authentication, another process will be created
377 that has the privilege of the authenticated user. The goal of
378 privilege separation is to prevent privilege escalation by conM--
379 taining any corruption within the unprivileged processes. The
380 default is ``yes''.
381
382 VerifyReverseMapping
383 Specifies whether sshd should try to verify the remote host name
384 and check that the resolved host name for the remote IP address
385 maps back to the very same IP address. The default is ``no''.
386
387 X11DisplayOffset
388 Specifies the first display number available for sshd's X11 forM--
389 warding. This prevents sshd from interfering with real X11
390 servers. The default is 10.
391
392 X11Forwarding
393 Specifies whether X11 forwarding is permitted. The argument must
394 be ``yes'' or ``no''. The default is ``no''.
395
396 When X11 forwarding is enabled, there may be additional exposure
397 to the server and to client displays if the sshd proxy display is
398 configured to listen on the wildcard address (see X11UseLocalhost
399 below), however this is not the default. Additionally, the
400 authentication spoofing and authentication data verification and
401 substitution occur on the client side. The security risk of
402 using X11 forwarding is that the client's X11 display server may
403 be exposed to attack when the ssh client requests forwarding (see
404 the warnings for ForwardX11 in ssh_config(5) ). A system adminisM--
405 trator may have a stance in which they want to protect clients
406 that may expose themselves to attack by unwittingly requesting
407 X11 forwarding, which can warrant a ``no'' setting.
408
409 Note that disabling X11 forwarding does not prevent users from
410 forwarding X11 traffic, as users can always install their own
411 forwarders. X11 forwarding is automatically disabled if UseLogin
412 is enabled.
413
414 X11UseLocalhost
415 Specifies whether sshd should bind the X11 forwarding server to
416 the loopback address or to the wildcard address. By default,
417 sshd binds the forwarding server to the loopback address and sets
418 the hostname part of the DISPLAY environment variable to
419 ``localhost''. This prevents remote hosts from connecting to the
420 proxy display. However, some older X11 clients may not function
421 with this configuration. X11UseLocalhost may be set to ``no'' to
422 specify that the forwarding server should be bound to the wildM--
423 card address. The argument must be ``yes'' or ``no''. The
424 default is ``yes''.
425
426 XAuthLocation
427 Specifies the full pathname of the xauth(1) program. The default
428 is /usr/X11R6/bin/xauth.
429
430 Time Formats
431
432 sshd command-line arguments and configuration file options that specify
433 time may be expressed using a sequence of the form: time[qualifier],
434 where time is a positive integer value and qualifier is one of the folM--
435 lowing:
436
437 <none> seconds
438 s | S seconds
439 m | M minutes
440 h | H hours
441 d | D days
442 w | W weeks
443
444 Each member of the sequence is added together to calculate the total time
445 value.
446
447 Time format examples:
448
449 600 600 seconds (10 minutes)
450 10m 10 minutes
451 1h30m 1 hour 30 minutes (90 minutes)
452
453FILES
454 /etc/ssh/sshd_config
455 Contains configuration data for sshd. This file should be
456 writable by root only, but it is recommended (though not necesM--
457 sary) that it be world-readable.
458
459AUTHORS
460 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
461 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
462 de Raadt and Dug Song removed many bugs, re-added newer features and creM--
463 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
464 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
465 for privilege separation.
466
467SEE ALSO
468 sshd(8)
469
470BSD September 25, 1999 BSD