2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
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
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
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
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
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; }; }
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).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if 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
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
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}
254 # Identity of this package.
261 ac_unique_file="ssh.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
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.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
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 ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
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" ;;
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'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
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 ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
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 ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
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'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
594 # Obsolete; use --with-x.
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 ;;
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 ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
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'"
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}
637 if 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; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
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.
673 # FIXME: To remove some day.
674 if 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
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if 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 ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if 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; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if 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.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
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 \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine 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]
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
822 if test -n "$ac_init_help"; then
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
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
851 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
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
879 Some 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>
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if 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'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by $as_me, which was
967 generated by GNU Autoconf 2.53. Invocation command line was
974 @%:@@%:@ --------- @%:@@%:@
975 @%:@@%:@ Platform. @%:@@%:@
976 @%:@@%:@ --------- @%:@@%:@
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
990 hostinfo = `(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`
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1010 @%:@@%:@ ----------- @%:@@%:@
1011 @%:@@%:@ Core tests. @%:@@%:@
1012 @%:@@%:@ ----------- @%:@@%:@
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.
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)
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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'"
1038 # Get rid of the leading space.
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.
1046 trap 'exit_status=$?
1047 # Save into config.log some information that might help in debugging.
1051 @%:@@%:@ ---------------- @%:@@%:@
1052 @%:@@%:@ Cache variables. @%:@@%:@
1053 @%:@@%:@ ---------------- @%:@@%:@
1056 # The following way of writing the cache mishandles newlines in values,
1059 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072 if test -s confdefs.h; then
1074 @%:@@%:@ ----------- @%:@@%:@
1075 @%:@@%:@ confdefs.h. @%:@@%:@
1076 @%:@@%:@ ----------- @%:@@%:@
1079 sed "/^$/d" confdefs.h
1082 test "$ac_signal" != 0 &&
1083 echo "$as_me: caught signal $ac_signal"
1084 echo "$as_me: exit $exit_status"
1086 rm -f core core.* *.core &&
1087 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1090 for ac_signal in 1 2 13 15; do
1091 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1096 rm -rf conftest* confdefs.h
1097 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1100 # Predefined preprocessor variables.
1102 cat >>confdefs.h <<_ACEOF
1103 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1107 cat >>confdefs.h <<_ACEOF
1108 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 cat >>confdefs.h <<_ACEOF
1113 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 cat >>confdefs.h <<_ACEOF
1118 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1122 cat >>confdefs.h <<_ACEOF
1123 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 # Let the site file select an alternate cache file if it wants to.
1128 # Prefer explicitly selected file to automatically selected ones.
1129 if test -z "$CONFIG_SITE"; then
1130 if test "x$prefix" != xNONE; then
1131 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1133 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1136 for 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
1139 echo "$as_me: loading site script $ac_site_file" >&6;}
1140 sed 's/^/| /' "$ac_site_file" >&5
1145 if 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
1150 echo "$as_me: loading cache $cache_file" >&6;}
1152 [\\/]* | ?:[\\/]* ) . $cache_file;;
1153 *) . ./$cache_file;;
1157 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1158 echo "$as_me: creating cache $cache_file" >&6;}
1162 # Check that the precious variables saved in the cache have kept the same
1164 ac_cache_corrupted=false
1165 for 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
1173 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1174 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1175 ac_cache_corrupted=: ;;
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
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
1184 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1185 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1186 echo "$as_me: former value: $ac_old_val" >&2;}
1187 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1188 echo "$as_me: current value: $ac_new_val" >&2;}
1189 ac_cache_corrupted=:
1192 # Pass precious variables to config.status.
1193 if test "$ac_new_set" = set; then
1195 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
1205 if $ac_cache_corrupted; then
1206 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1207 echo "$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
1209 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1210 { (exit 1); exit 1; }; }
1214 ac_cpp='$CPP $CPPFLAGS'
1215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1238 ac_config_headers="$ac_config_headers config.h"
1241 ac_cpp='$CPP $CPPFLAGS'
1242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245 if 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.
1247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1248 echo "$as_me:$LINENO: checking for $ac_word" >&5
1249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250 if test "${ac_cv_prog_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 if test -n "$CC"; then
1254 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1273 if test -n "$CC"; then
1274 echo "$as_me:$LINENO: result: $CC" >&5
1275 echo "${ECHO_T}$CC" >&6
1277 echo "$as_me:$LINENO: result: no" >&5
1278 echo "${ECHO_T}no" >&6
1282 if test -z "$ac_cv_prog_CC"; then
1284 # Extract the first word of "gcc", so it can be a program name with args.
1285 set dummy gcc; ac_word=$2
1286 echo "$as_me:$LINENO: checking for $ac_word" >&5
1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 if test -n "$ac_ct_CC"; then
1292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1311 if test -n "$ac_ct_CC"; then
1312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1313 echo "${ECHO_T}$ac_ct_CC" >&6
1315 echo "$as_me:$LINENO: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1324 if 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.
1327 set dummy ${ac_tool_prefix}cc; ac_word=$2
1328 echo "$as_me:$LINENO: checking for $ac_word" >&5
1329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330 if test "${ac_cv_prog_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 if test -n "$CC"; then
1334 ac_cv_prog_CC="$CC" # Let the user override the test.
1336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1353 if test -n "$CC"; then
1354 echo "$as_me:$LINENO: result: $CC" >&5
1355 echo "${ECHO_T}$CC" >&6
1357 echo "$as_me:$LINENO: result: no" >&5
1358 echo "${ECHO_T}no" >&6
1362 if test -z "$ac_cv_prog_CC"; then
1364 # Extract the first word of "cc", so it can be a program name with args.
1365 set dummy cc; ac_word=$2
1366 echo "$as_me:$LINENO: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 if test -n "$ac_ct_CC"; then
1372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1391 if test -n "$ac_ct_CC"; then
1392 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1393 echo "${ECHO_T}$ac_ct_CC" >&6
1395 echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1405 if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407 set dummy cc; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 if 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
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.
1444 set dummy "$as_dir/$ac_word" ${1+"$@"}
1452 if test -n "$CC"; then
1453 echo "$as_me:$LINENO: result: $CC" >&5
1454 echo "${ECHO_T}$CC" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1461 if test -z "$CC"; then
1462 if test -n "$ac_tool_prefix"; then
1465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1467 echo "$as_me:$LINENO: checking for $ac_word" >&5
1468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469 if test "${ac_cv_prog_CC+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 if test -n "$CC"; then
1473 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1492 if test -n "$CC"; then
1493 echo "$as_me:$LINENO: result: $CC" >&5
1494 echo "${ECHO_T}$CC" >&6
1496 echo "$as_me:$LINENO: result: no" >&5
1497 echo "${ECHO_T}no" >&6
1500 test -n "$CC" && break
1503 if test -z "$CC"; then
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508 set dummy $ac_prog; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534 if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536 echo "${ECHO_T}$ac_ct_CC" >&6
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 test -n "$ac_ct_CC" && break
1551 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1552 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1553 { (exit 1); exit 1; }; }
1555 # Provide some information about the compiler.
1556 echo "$as_me:$LINENO:" \
1557 "checking for C compiler version" >&5
1558 ac_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
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
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
1572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1573 (exit $ac_status); }
1575 cat >conftest.$ac_ext <<_ACEOF
1576 #line $LINENO "configure"
1577 #include "confdefs.h"
1579 #ifdef F77_DUMMY_MAIN
1583 int F77_DUMMY_MAIN() { return 1; }
1593 ac_clean_files_save=$ac_clean_files
1594 ac_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
1598 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1599 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1600 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1601 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1602 (eval $ac_link_default) 2>&5
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
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.
1613 for 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
1617 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1618 a.out ) # We found the default executable, but exeext='' is most
1621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1629 echo "$as_me: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1632 echo "$as_me: error: C compiler cannot create executables" >&2;}
1633 { (exit 77); exit 77; }; }
1636 ac_exeext=$ac_cv_exeext
1637 echo "$as_me:$LINENO: result: $ac_file" >&5
1638 echo "${ECHO_T}$ac_file" >&6
1640 # Check the compiler produces executables we can run. If not, either
1641 # the compiler is broken, or we cross compile.
1642 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1643 echo $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.
1646 if test "$cross_compiling" != yes; then
1647 if { ac_try='./$ac_file'
1648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1655 if test "$cross_compiling" = maybe; then
1658 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1659 If you meant to cross compile, use \`--host'." >&5
1660 echo "$as_me: error: cannot run C compiled programs.
1661 If you meant to cross compile, use \`--host'." >&2;}
1662 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1669 rm -f a.out a.exe conftest$ac_cv_exeext
1670 ac_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.
1673 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1674 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1675 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1676 echo "${ECHO_T}$cross_compiling" >&6
1678 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1679 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1681 (eval $ac_link) 2>&5
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
1689 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1691 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1699 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1700 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1701 { (exit 1); exit 1; }; }
1704 rm -f conftest$ac_cv_exeext
1705 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1706 echo "${ECHO_T}$ac_cv_exeext" >&6
1708 rm -f conftest.$ac_ext
1709 EXEEXT=$ac_cv_exeext
1711 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1713 if test "${ac_cv_objext+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 cat >conftest.$ac_ext <<_ACEOF
1717 #line $LINENO "configure"
1718 #include "confdefs.h"
1720 #ifdef F77_DUMMY_MAIN
1724 int F77_DUMMY_MAIN() { return 1; }
1734 rm -f conftest.o conftest.obj
1735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
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
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1751 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1757 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1758 echo "${ECHO_T}$ac_cv_objext" >&6
1759 OBJEXT=$ac_cv_objext
1761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line $LINENO "configure"
1768 #include "confdefs.h"
1770 #ifdef F77_DUMMY_MAIN
1774 int F77_DUMMY_MAIN() { return 1; }
1787 rm -f conftest.$ac_objext
1788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1789 (eval $ac_compile) 2>&5
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
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; }; then
1801 echo "$as_me: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1805 rm -f conftest.$ac_objext conftest.$ac_ext
1806 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1809 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1810 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1811 GCC=`test $ac_compiler_gnu = yes && echo yes`
1812 ac_test_CFLAGS=${CFLAGS+set}
1813 ac_save_CFLAGS=$CFLAGS
1815 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1816 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1817 if test "${ac_cv_prog_cc_g+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 cat >conftest.$ac_ext <<_ACEOF
1821 #line $LINENO "configure"
1822 #include "confdefs.h"
1824 #ifdef F77_DUMMY_MAIN
1828 int F77_DUMMY_MAIN() { return 1; }
1838 rm -f conftest.$ac_objext
1839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
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
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1852 echo "$as_me: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1856 rm -f conftest.$ac_objext conftest.$ac_ext
1858 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1859 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1860 if test "$ac_test_CFLAGS" = set; then
1861 CFLAGS=$ac_save_CFLAGS
1862 elif test $ac_cv_prog_cc_g = yes; then
1863 if test "$GCC" = yes; then
1869 if test "$GCC" = yes; then
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.
1879 cat >conftest.$ac_ext <<_ACEOF
1880 @%:@ifndef __cplusplus
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
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
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 for ac_declaration in \
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);' \
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1908 @%:@include <stdlib.h>
1910 #ifdef F77_DUMMY_MAIN
1914 int F77_DUMMY_MAIN() { return 1; }
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
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
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 echo "$as_me: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line $LINENO "configure"
1945 #include "confdefs.h"
1947 #ifdef F77_DUMMY_MAIN
1951 int F77_DUMMY_MAIN() { return 1; }
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
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
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1978 rm -f conftest.$ac_objext conftest.$ac_ext
1981 if test -n "$ac_declaration"; then
1982 echo '#ifdef __cplusplus' >>confdefs.h
1983 echo $ac_declaration >>confdefs.h
1984 echo '#endif' >>confdefs.h
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 rm -f conftest.$ac_objext conftest.$ac_ext
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000 if test -f $ac_dir/install-sh; then
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2004 elif test -f $ac_dir/install.sh; then
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2008 elif test -f $ac_dir/shtool; then
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2014 if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2017 { (exit 1); exit 1; }; }
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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
2026 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2027 { (exit 1); exit 1; }; }
2029 echo "$as_me:$LINENO: checking build system type" >&5
2030 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2031 if test "${ac_cv_build+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 ac_cv_build_alias=$build_alias
2035 test -z "$ac_cv_build_alias" &&
2036 ac_cv_build_alias=`$ac_config_guess`
2037 test -z "$ac_cv_build_alias" &&
2038 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2042 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2043 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2047 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048 echo "${ECHO_T}$ac_cv_build" >&6
2050 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2051 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2052 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2055 echo "$as_me:$LINENO: checking host system type" >&5
2056 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2057 if test "${ac_cv_host+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 ac_cv_host_alias=$host_alias
2061 test -z "$ac_cv_host_alias" &&
2062 ac_cv_host_alias=$ac_cv_build_alias
2063 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2064 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2065 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070 echo "${ECHO_T}$ac_cv_host" >&6
2072 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2073 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2074 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2078 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2080 if test "${ac_cv_c_bigendian+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 # See if sys/param.h defines the BYTE_ORDER macro.
2084 cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 #include "confdefs.h"
2087 #include <sys/types.h>
2088 #include <sys/param.h>
2090 #ifdef F77_DUMMY_MAIN
2094 int F77_DUMMY_MAIN() { return 1; }
2099 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>&5
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
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.
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 #include "confdefs.h"
2123 #include <sys/types.h>
2124 #include <sys/param.h>
2126 #ifdef F77_DUMMY_MAIN
2130 int F77_DUMMY_MAIN() { return 1; }
2135 #if BYTE_ORDER != BIG_ENDIAN
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
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
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_cv_c_bigendian=yes
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 ac_cv_c_bigendian=no
2161 rm -f conftest.$ac_objext conftest.$ac_ext
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 # It does not; compile a test program.
2166 if 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"
2172 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2173 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2174 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2175 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2176 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2177 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2178 #ifdef F77_DUMMY_MAIN
2182 int F77_DUMMY_MAIN() { return 1; }
2187 _ascii (); _ebcdic ();
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
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
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
2207 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2208 if test "$ac_cv_c_bigendian" = unknown; then
2209 ac_cv_c_bigendian=no
2211 # finding both strings is unlikely to happen, but who knows?
2212 ac_cv_c_bigendian=unknown
2216 echo "$as_me: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 rm -f conftest.$ac_objext conftest.$ac_ext
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2223 #include "confdefs.h"
2227 /* Are we little or big endian? From Harbison&Steele. */
2231 char c[sizeof (long)];
2234 exit (u.c[sizeof (long) - 1] == 1);
2237 rm -f conftest$ac_exeext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
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
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_c_bigendian=no
2250 echo "$as_me: program exited with status $ac_status" >&5
2251 echo "$as_me: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 ac_cv_c_bigendian=yes
2256 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2259 rm -f conftest.$ac_objext conftest.$ac_ext
2261 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2262 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2263 case $ac_cv_c_bigendian in
2266 cat >>confdefs.h <<\_ACEOF
2267 @%:@define WORDS_BIGENDIAN 1
2273 { { echo "$as_me:$LINENO: error: unknown endianess
2274 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2275 echo "$as_me: error: unknown endianess
2276 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2277 { (exit 1); exit 1; }; } ;;
2281 # Checks for programs.
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2289 # On Suns, sometimes $CPP names a directory.
2290 if test -n "$CPP" && test -d "$CPP"; then
2293 if test -z "$CPP"; then
2294 if test "${ac_cv_prog_CPP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 # Double quotes because CPP needs to be expanded
2298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2301 for ac_c_preproc_warn_flag in '' yes
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>
2313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 egrep -v '^ *\+' conftest.er1 >conftest.err
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
2329 if test -z "$ac_cpp_err"; then
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Broken: fails on valid input.
2337 rm -f conftest.err conftest.$ac_ext
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>
2346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 egrep -v '^ *\+' conftest.er1 >conftest.err
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
2362 if test -z "$ac_cpp_err"; then
2363 # Broken: success on invalid input.
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 # Passes both tests.
2372 rm -f conftest.err conftest.$ac_ext
2375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2376 rm -f conftest.err conftest.$ac_ext
2377 if $ac_preproc_ok; then
2389 echo "$as_me:$LINENO: result: $CPP" >&5
2390 echo "${ECHO_T}$CPP" >&6
2392 for ac_c_preproc_warn_flag in '' yes
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>
2404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2407 egrep -v '^ *\+' conftest.er1 >conftest.err
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
2420 if test -z "$ac_cpp_err"; then
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Broken: fails on valid input.
2428 rm -f conftest.err conftest.$ac_ext
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>
2437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2440 egrep -v '^ *\+' conftest.er1 >conftest.err
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
2453 if test -z "$ac_cpp_err"; then
2454 # Broken: success on invalid input.
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 # Passes both tests.
2463 rm -f conftest.err conftest.$ac_ext
2466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2467 rm -f conftest.err conftest.$ac_ext
2468 if $ac_preproc_ok; then
2471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2473 { (exit 1); exit 1; }; }
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 if 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.
2484 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_RANLIB+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$RANLIB"; then
2491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2509 RANLIB=$ac_cv_prog_RANLIB
2510 if test -n "$RANLIB"; then
2511 echo "$as_me:$LINENO: result: $RANLIB" >&5
2512 echo "${ECHO_T}$RANLIB" >&6
2514 echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2519 if 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.
2522 set dummy ranlib; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_RANLIB"; then
2529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2545 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2548 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2549 if test -n "$ac_ct_RANLIB"; then
2550 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2551 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2553 echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2557 RANLIB=$ac_ct_RANLIB
2559 RANLIB="$ac_cv_prog_RANLIB"
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
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.
2574 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2575 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2576 if test -z "$INSTALL"; then
2577 if test "${ac_cv_path_install+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 # Account for people who put trailing slashes in PATH elements.
2587 ./ | .// | /cC/* | \
2588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
2606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
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
2628 echo "$as_me:$LINENO: result: $INSTALL" >&5
2629 echo "${ECHO_T}$INSTALL" >&6
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639 # Extract the first word of "ar", so it can be a program name with args.
2640 set dummy ar; ac_word=$2
2641 echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 if test "${ac_cv_path_AR+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2670 if test -n "$AR"; then
2671 echo "$as_me:$LINENO: result: $AR" >&5
2672 echo "${ECHO_T}$AR" >&6
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 for ac_prog in perl5 perl
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_path_PERL+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2709 PERL=$ac_cv_path_PERL
2711 if test -n "$PERL"; then
2712 echo "$as_me:$LINENO: result: $PERL" >&5
2713 echo "${ECHO_T}$PERL" >&6
2715 echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6
2719 test -n "$PERL" && break
2723 # Extract the first word of "ent", so it can be a program name with args.
2724 set dummy ent; ac_word=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_path_ENT+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2754 if test -n "$ENT"; then
2755 echo "$as_me:$LINENO: result: $ENT" >&5
2756 echo "${ECHO_T}$ENT" >&6
2758 echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2763 # Extract the first word of "bash", so it can be a program name with args.
2764 set dummy bash; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 case $TEST_MINUS_S_SH in
2772 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2792 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2794 if test -n "$TEST_MINUS_S_SH"; then
2795 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2796 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 # Extract the first word of "ksh", so it can be a program name with args.
2803 set dummy ksh; ac_word=$2
2804 echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 case $TEST_MINUS_S_SH in
2811 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2831 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2833 if test -n "$TEST_MINUS_S_SH"; then
2834 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2835 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 # Extract the first word of "sh", so it can be a program name with args.
2842 set dummy sh; ac_word=$2
2843 echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 case $TEST_MINUS_S_SH in
2850 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2870 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
2872 if test -n "$TEST_MINUS_S_SH"; then
2873 echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
2874 echo "${ECHO_T}$TEST_MINUS_S_SH" >&6
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2880 # Extract the first word of "sh", so it can be a program name with args.
2881 set dummy sh; ac_word=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_path_SH+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 ac_cv_path_SH="$SH" # Let the user override the test with a path.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2911 if test -n "$SH"; then
2912 echo "$as_me:$LINENO: result: $SH" >&5
2913 echo "${ECHO_T}$SH" >&6
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2921 # Check whether --enable-largefile or --disable-largefile was given.
2922 if test "${enable_largefile+set}" = set; then
2923 enableval="$enable_largefile"
2926 if test "$enable_largefile" != no; then
2928 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2929 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2930 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 ac_cv_sys_largefile_CC=no
2934 if test "$GCC" != yes; then
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)
2951 #ifdef F77_DUMMY_MAIN
2955 int F77_DUMMY_MAIN() { return 1; }
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>&5
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
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 echo "$as_me: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 rm -f conftest.$ac_objext
2984 rm -f conftest.$ac_objext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>&5
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
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_sys_largefile_CC=' -n32'; break
2998 echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 rm -f conftest.$ac_objext
3005 rm -f conftest.$ac_ext
3008 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3009 echo "${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
3014 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3015 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3016 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
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)
3033 #ifdef F77_DUMMY_MAIN
3037 int F77_DUMMY_MAIN() { return 1; }
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
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
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3064 rm -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)
3078 #ifdef F77_DUMMY_MAIN
3082 int F77_DUMMY_MAIN() { return 1; }
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
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
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_sys_file_offset_bits=64; break
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3113 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3114 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3115 if test "$ac_cv_sys_file_offset_bits" != no; then
3117 cat >>confdefs.h <<_ACEOF
3118 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3123 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3124 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3125 if test "${ac_cv_sys_large_files+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
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)
3142 #ifdef F77_DUMMY_MAIN
3146 int F77_DUMMY_MAIN() { return 1; }
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
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
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3170 echo "$as_me: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3173 rm -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)
3187 #ifdef F77_DUMMY_MAIN
3191 int F77_DUMMY_MAIN() { return 1; }
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
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
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 ac_cv_sys_large_files=1; break
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 rm -f conftest.$ac_objext conftest.$ac_ext
3222 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3223 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3224 if test "$ac_cv_sys_large_files" != no; then
3226 cat >>confdefs.h <<_ACEOF
3227 @%:@define _LARGE_FILES $ac_cv_sys_large_files
3235 if test -z "$AR" ; then
3236 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3237 echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3238 { (exit 1); exit 1; }; }
3241 # Use LOGIN_PROGRAM from environment if possible
3242 if test ! -z "$LOGIN_PROGRAM" ; then
3243 cat >>confdefs.h <<_ACEOF
3244 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
3249 # Extract the first word of "login", so it can be a program name with args.
3250 set dummy login; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 case $LOGIN_PROGRAM_FALLBACK in
3258 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3278 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
3280 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
3281 echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
3282 echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6
3284 echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3288 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
3289 cat >>confdefs.h <<_ACEOF
3290 @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
3296 if test -z "$LD" ; then
3301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_cv_prog_cc_stdc=no
3308 cat >conftest.$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 #include "confdefs.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. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3333 int test (int i, double x);
3334 struct s1 {int (*f) (int a);};
3335 struct s2 {int (*f) (double a);};
3336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 #ifdef F77_DUMMY_MAIN
3343 int F77_DUMMY_MAIN() { return 1; }
3348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__
3360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362 CC="$ac_save_CC $ac_arg"
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
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
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_cc_stdc=$ac_arg
3378 echo "$as_me: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 rm -f conftest.$ac_objext
3383 rm -f conftest.$ac_ext conftest.$ac_objext
3388 case "x$ac_cv_prog_cc_stdc" in
3390 echo "$as_me:$LINENO: result: none needed" >&5
3391 echo "${ECHO_T}none needed" >&6 ;;
3393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3395 CC="$CC $ac_cv_prog_cc_stdc" ;;
3398 echo "$as_me:$LINENO: checking for inline" >&5
3399 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400 if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 for ac_kw in inline __inline__ __inline; do
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 #include "confdefs.h"
3409 static $ac_kw int static_foo () {return 0; }
3410 $ac_kw int foo () {return 0; }
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>&5
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
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 ac_cv_c_inline=$ac_kw; break
3428 echo "$as_me: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 rm -f conftest.$ac_objext conftest.$ac_ext
3435 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3436 echo "${ECHO_T}$ac_cv_c_inline" >&6
3437 case $ac_cv_c_inline in
3440 cat >>confdefs.h <<\_ACEOF
3444 *) cat >>confdefs.h <<_ACEOF
3445 @%:@define inline $ac_cv_c_inline
3450 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
3451 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
3454 # Check for some target-specific stuff
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
3462 echo $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"
3469 #ifdef F77_DUMMY_MAIN
3473 int F77_DUMMY_MAIN() { return 1; }
3483 rm -f conftest.$ac_objext conftest$ac_exeext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485 (eval $ac_link) 2>&5
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
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3496 echo "$as_me:$LINENO: result: yes" >&5
3497 echo "${ECHO_T}yes" >&6
3498 blibpath="/usr/lib:/lib:/usr/local/lib"
3501 echo "$as_me: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3508 LDFLAGS="$saved_LDFLAGS"
3510 echo "$as_me:$LINENO: checking for authenticate" >&5
3511 echo $ECHO_N "checking for authenticate... $ECHO_C" >&6
3512 if test "${ac_cv_func_authenticate+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
3521 /* Override any gcc2 internal prototype to avoid an error. */
3525 /* We use char because int might match the return type of a gcc2
3526 builtin and then its argument prototype would still apply. */
3527 char authenticate ();
3530 #ifdef F77_DUMMY_MAIN
3534 int F77_DUMMY_MAIN() { return 1; }
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)
3552 rm -f conftest.$ac_objext conftest$ac_exeext
3553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554 (eval $ac_link) 2>&5
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
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_func_authenticate=yes
3566 echo "$as_me: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3568 ac_cv_func_authenticate=no
3570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
3573 echo "${ECHO_T}$ac_cv_func_authenticate" >&6
3574 if test $ac_cv_func_authenticate = yes; then
3575 cat >>confdefs.h <<\_ACEOF
3576 @%:@define WITH_AIXAUTHENTICATE 1
3580 echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
3581 echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6
3582 if test "${ac_cv_lib_s_authenticate+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_check_lib_save_LIBS=$LIBS
3587 cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597 char authenticate ();
3598 #ifdef F77_DUMMY_MAIN
3602 int F77_DUMMY_MAIN() { return 1; }
3612 rm -f conftest.$ac_objext conftest$ac_exeext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
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
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_lib_s_authenticate=yes
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 ac_cv_lib_s_authenticate=no
3630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631 LIBS=$ac_check_lib_save_LIBS
3633 echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
3634 echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6
3635 if test $ac_cv_lib_s_authenticate = yes; then
3636 cat >>confdefs.h <<\_ACEOF
3637 @%:@define WITH_AIXAUTHENTICATE 1
3647 cat >>confdefs.h <<\_ACEOF
3648 @%:@define BROKEN_GETADDRINFO 1
3651 cat >>confdefs.h <<\_ACEOF
3652 @%:@define BROKEN_REALPATH 1
3655 cat >>confdefs.h <<\_ACEOF
3656 @%:@define DISABLE_LASTLOG 1
3659 cat >>confdefs.h <<\_ACEOF
3660 @%:@define LOGIN_NEEDS_UTMPX 1
3665 LIBS="$LIBS /usr/lib/textmode.o"
3666 cat >>confdefs.h <<\_ACEOF
3667 @%:@define HAVE_CYGWIN 1
3670 cat >>confdefs.h <<\_ACEOF
3671 @%:@define USE_PIPES 1
3674 cat >>confdefs.h <<\_ACEOF
3675 @%:@define DISABLE_SHADOW 1
3678 cat >>confdefs.h <<\_ACEOF
3679 @%:@define IPV4_DEFAULT 1
3682 cat >>confdefs.h <<\_ACEOF
3683 @%:@define IP_TOS_IS_BROKEN 1
3686 cat >>confdefs.h <<\_ACEOF
3687 @%:@define NO_X11_UNIX_SOCKETS 1
3690 cat >>confdefs.h <<\_ACEOF
3691 @%:@define NO_IPPORT_RESERVED_CONCEPT 1
3694 cat >>confdefs.h <<\_ACEOF
3695 @%:@define DISABLE_FD_PASSING 1
3698 cat >>confdefs.h <<\_ACEOF
3699 @%:@define SETGROUPS_NOOP 1
3704 cat >>confdefs.h <<\_ACEOF
3705 @%:@define IP_TOS_IS_BROKEN 1
3710 echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
3711 echo $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
3714 echo "${ECHO_T}assume it is working" >&6
3716 cat >conftest.$ac_ext <<_ACEOF
3717 #line $LINENO "configure"
3718 #include "confdefs.h"
3719 #include <mach-o/dyld.h>
3720 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
3726 rm -f conftest$ac_exeext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728 (eval $ac_link) 2>&5
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
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 echo "$as_me:$LINENO: result: working" >&5
3738 echo "${ECHO_T}working" >&6
3740 echo "$as_me: program exited with status $ac_status" >&5
3741 echo "$as_me: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 echo "$as_me:$LINENO: result: buggy" >&5
3745 echo "${ECHO_T}buggy" >&6
3746 cat >>confdefs.h <<\_ACEOF
3747 @%:@define BROKEN_GETADDRINFO 1
3751 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3755 if test -z "$GCC"; then
3756 CFLAGS="$CFLAGS -Ae"
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
3764 cat >>confdefs.h <<\_ACEOF
3765 @%:@define USE_PIPES 1
3768 cat >>confdefs.h <<\_ACEOF
3769 @%:@define LOGIN_NO_ENDOPT 1
3772 cat >>confdefs.h <<\_ACEOF
3773 @%:@define LOGIN_NEEDS_UTMPX 1
3776 cat >>confdefs.h <<\_ACEOF
3777 @%:@define DISABLE_SHADOW 1
3780 cat >>confdefs.h <<\_ACEOF
3781 @%:@define DISABLE_UTMP 1
3784 cat >>confdefs.h <<\_ACEOF
3785 @%:@define SPT_TYPE SPT_PSTAT
3788 LIBS="$LIBS -lsec -lsecpw"
3790 echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3791 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3792 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_check_lib_save_LIBS=$LIBS
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3799 #include "confdefs.h"
3801 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3808 #ifdef F77_DUMMY_MAIN
3812 int F77_DUMMY_MAIN() { return 1; }
3822 rm -f conftest.$ac_objext conftest$ac_exeext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
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
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_xnet_t_error=yes
3836 echo "$as_me: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3838 ac_cv_lib_xnet_t_error=no
3840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841 LIBS=$ac_check_lib_save_LIBS
3843 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3844 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3845 if test $ac_cv_lib_xnet_t_error = yes; then
3846 cat >>confdefs.h <<_ACEOF
3847 @%:@define HAVE_LIBXNET 1
3853 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3854 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3855 { (exit 1); exit 1; }; }
3858 disable_ptmx_check=yes
3861 if test -z "$GCC"; then
3862 CFLAGS="$CFLAGS -Ae"
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
3870 cat >>confdefs.h <<\_ACEOF
3871 @%:@define LOGIN_NO_ENDOPT 1
3874 cat >>confdefs.h <<\_ACEOF
3875 @%:@define LOGIN_NEEDS_UTMPX 1
3878 cat >>confdefs.h <<\_ACEOF
3879 @%:@define DISABLE_SHADOW 1
3882 cat >>confdefs.h <<\_ACEOF
3883 @%:@define DISABLE_UTMP 1
3886 cat >>confdefs.h <<\_ACEOF
3887 @%:@define SPT_TYPE SPT_PSTAT
3892 echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3893 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3894 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 ac_check_lib_save_LIBS=$LIBS
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line $LINENO "configure"
3901 #include "confdefs.h"
3903 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3910 #ifdef F77_DUMMY_MAIN
3914 int F77_DUMMY_MAIN() { return 1; }
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
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
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_xnet_t_error=yes
3938 echo "$as_me: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 ac_cv_lib_xnet_t_error=no
3942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
3946 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
3947 if test $ac_cv_lib_xnet_t_error = yes; then
3948 cat >>confdefs.h <<_ACEOF
3949 @%:@define HAVE_LIBXNET 1
3955 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
3956 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
3957 { (exit 1); exit 1; }; }
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
3968 cat >>confdefs.h <<\_ACEOF
3969 @%:@define USE_PIPES 1
3972 cat >>confdefs.h <<\_ACEOF
3973 @%:@define LOGIN_NO_ENDOPT 1
3976 cat >>confdefs.h <<\_ACEOF
3977 @%:@define LOGIN_NEEDS_UTMPX 1
3980 cat >>confdefs.h <<\_ACEOF
3981 @%:@define DISABLE_SHADOW 1
3984 cat >>confdefs.h <<\_ACEOF
3985 @%:@define DISABLE_UTMP 1
3988 cat >>confdefs.h <<\_ACEOF
3989 @%:@define SPT_TYPE SPT_PSTAT
3994 echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
3995 echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6
3996 if test "${ac_cv_lib_xnet_t_error+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_check_lib_save_LIBS=$LIBS
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line $LINENO "configure"
4003 #include "confdefs.h"
4005 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4012 #ifdef F77_DUMMY_MAIN
4016 int F77_DUMMY_MAIN() { return 1; }
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>&5
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
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_lib_xnet_t_error=yes
4040 echo "$as_me: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4042 ac_cv_lib_xnet_t_error=no
4044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4045 LIBS=$ac_check_lib_save_LIBS
4047 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
4048 echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6
4049 if test $ac_cv_lib_xnet_t_error = yes; then
4050 cat >>confdefs.h <<_ACEOF
4051 @%:@define HAVE_LIBXNET 1
4057 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
4058 echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
4059 { (exit 1); exit 1; }; }
4064 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4066 PATH="$PATH:/usr/etc"
4067 cat >>confdefs.h <<\_ACEOF
4068 @%:@define BROKEN_INET_NTOA 1
4071 cat >>confdefs.h <<\_ACEOF
4072 @%:@define WITH_ABBREV_NO_TTY 1
4077 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4079 PATH="$PATH:/usr/etc"
4080 cat >>confdefs.h <<\_ACEOF
4081 @%:@define WITH_IRIX_ARRAY 1
4084 cat >>confdefs.h <<\_ACEOF
4085 @%:@define WITH_IRIX_PROJECT 1
4088 cat >>confdefs.h <<\_ACEOF
4089 @%:@define WITH_IRIX_AUDIT 1
4092 echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
4093 echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6
4094 if test "${ac_cv_func_jlimit_startjob+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109 char jlimit_startjob ();
4112 #ifdef F77_DUMMY_MAIN
4116 int F77_DUMMY_MAIN() { return 1; }
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)
4127 f = jlimit_startjob;
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
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
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_func_jlimit_startjob=yes
4148 echo "$as_me: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 ac_cv_func_jlimit_startjob=no
4152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4154 echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
4155 echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6
4156 if test $ac_cv_func_jlimit_startjob = yes; then
4157 cat >>confdefs.h <<\_ACEOF
4158 @%:@define WITH_IRIX_JOBS 1
4163 cat >>confdefs.h <<\_ACEOF
4164 @%:@define BROKEN_INET_NTOA 1
4167 cat >>confdefs.h <<\_ACEOF
4168 @%:@define WITH_ABBREV_NO_TTY 1
4174 check_for_libcrypt_later=1
4175 cat >>confdefs.h <<\_ACEOF
4176 @%:@define DONT_TRY_OTHER_AF 1
4179 cat >>confdefs.h <<\_ACEOF
4180 @%:@define PAM_TTY_KLUDGE 1
4183 inet6_default_4in6=yes
4185 mips-sony-bsd|mips-sony-newsos4)
4186 cat >>confdefs.h <<\_ACEOF
4187 @%:@define HAVE_NEWS4 1
4193 check_for_libcrypt_before=1
4197 check_for_libcrypt_later=1
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
4208 cat >>confdefs.h <<\_ACEOF
4209 @%:@define BROKEN_REALPATH 1
4212 cat >>confdefs.h <<\_ACEOF
4213 @%:@define USE_PIPES 1
4216 cat >>confdefs.h <<\_ACEOF
4217 @%:@define BROKEN_SAVED_UIDS 1
4220 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4224 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4225 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
4227 cat >>confdefs.h <<\_ACEOF
4228 @%:@define PAM_SUN_CODEBASE 1
4231 cat >>confdefs.h <<\_ACEOF
4232 @%:@define LOGIN_NEEDS_UTMPX 1
4235 cat >>confdefs.h <<\_ACEOF
4236 @%:@define LOGIN_NEEDS_TERM 1
4239 cat >>confdefs.h <<\_ACEOF
4240 @%:@define PAM_TTY_KLUDGE 1
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
4246 echo $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
4250 echo "${ECHO_T}yes" >&6
4251 cat >>confdefs.h <<\_ACEOF
4252 @%:@define DISABLE_UTMP 1
4255 cat >>confdefs.h <<\_ACEOF
4256 @%:@define DISABLE_WTMP 1
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4265 CPPFLAGS="$CPPFLAGS -DSUNOS4"
4267 for ac_func in getpwanam
4269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4270 echo "$as_me:$LINENO: checking for $ac_func" >&5
4271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4272 if eval "test \"\${$as_ac_var+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4281 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4290 #ifdef F77_DUMMY_MAIN
4294 int F77_DUMMY_MAIN() { return 1; }
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)
4312 rm -f conftest.$ac_objext conftest$ac_exeext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4314 (eval $ac_link) 2>&5
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
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_var=yes"
4326 echo "$as_me: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 eval "$as_ac_var=no"
4330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334 if test `eval echo '${'$as_ac_var'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4342 cat >>confdefs.h <<\_ACEOF
4343 @%:@define PAM_SUN_CODEBASE 1
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
4355 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4356 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4358 cat >>confdefs.h <<\_ACEOF
4359 @%:@define USE_PIPES 1
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
4372 cat >>confdefs.h <<\_ACEOF
4373 @%:@define IP_TOS_IS_BROKEN 1
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
4381 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4382 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4383 cat >>confdefs.h <<\_ACEOF
4384 @%:@define USE_PIPES 1
4389 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4390 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4391 cat >>confdefs.h <<\_ACEOF
4392 @%:@define USE_PIPES 1
4397 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4398 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4401 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
4402 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4403 LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
4406 cat >>confdefs.h <<\_ACEOF
4407 @%:@define BROKEN_SYS_TERMIO_H 1
4410 cat >>confdefs.h <<\_ACEOF
4411 @%:@define USE_PIPES 1
4414 cat >>confdefs.h <<\_ACEOF
4415 @%:@define HAVE_SECUREWARE 1
4418 cat >>confdefs.h <<\_ACEOF
4419 @%:@define DISABLE_SHADOW 1
4422 cat >>confdefs.h <<\_ACEOF
4423 @%:@define BROKEN_SAVED_UIDS 1
4428 for ac_func in getluid setluid
4430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4431 echo "$as_me:$LINENO: checking for $ac_func" >&5
4432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4433 if eval "test \"\${$as_ac_var+set}\" = set"; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4442 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4451 #ifdef F77_DUMMY_MAIN
4455 int F77_DUMMY_MAIN() { return 1; }
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)
4473 rm -f conftest.$ac_objext conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>&5
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
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_var=yes"
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 eval "$as_ac_var=no"
4491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4495 if test `eval echo '${'$as_ac_var'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4504 do_sco3_extra_lib_check=yes
4507 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4508 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4509 LIBS="$LIBS -lprot -lx -ltinfo -lm"
4511 cat >>confdefs.h <<\_ACEOF
4512 @%:@define USE_PIPES 1
4515 cat >>confdefs.h <<\_ACEOF
4516 @%:@define HAVE_SECUREWARE 1
4519 cat >>confdefs.h <<\_ACEOF
4520 @%:@define DISABLE_SHADOW 1
4523 cat >>confdefs.h <<\_ACEOF
4524 @%:@define DISABLE_FD_PASSING 1
4529 for ac_func in getluid setluid
4531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4532 echo "$as_me:$LINENO: checking for $ac_func" >&5
4533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4534 if eval "test \"\${$as_ac_var+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
4543 /* Override any gcc2 internal prototype to avoid an error. */
4547 /* We use char because int might match the return type of a gcc2
4548 builtin and then its argument prototype would still apply. */
4552 #ifdef F77_DUMMY_MAIN
4556 int F77_DUMMY_MAIN() { return 1; }
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)
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
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
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 eval "$as_ac_var=yes"
4588 echo "$as_me: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 eval "$as_ac_var=no"
4592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596 if test `eval echo '${'$as_ac_var'}'` = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4609 cat >>confdefs.h <<\_ACEOF
4610 @%:@define USE_PIPES 1
4613 cat >>confdefs.h <<\_ACEOF
4614 @%:@define DISABLE_FD_PASSING 1
4618 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4624 cat >>confdefs.h <<\_ACEOF
4625 @%:@define USE_PIPES 1
4628 cat >>confdefs.h <<\_ACEOF
4629 @%:@define DISABLE_FD_PASSING 1
4632 cat >>confdefs.h <<\_ACEOF
4633 @%:@define NO_SSH_LASTLOG 1
4636 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
4637 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
4641 echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
4642 echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6
4645 # Check whether --with-osfsia or --without-osfsia was given.
4646 if test "${with_osfsia+set}" = set; then
4647 withval="$with_osfsia"
4649 if test "x$withval" = "xno" ; then
4650 echo "$as_me:$LINENO: result: disabled" >&5
4651 echo "${ECHO_T}disabled" >&6
4656 if test -z "$no_osfsia" ; then
4657 if test -f /etc/sia/matrix.conf; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659 echo "${ECHO_T}yes" >&6
4660 cat >>confdefs.h <<\_ACEOF
4661 @%:@define HAVE_OSF_SIA 1
4664 cat >>confdefs.h <<\_ACEOF
4665 @%:@define DISABLE_LOGIN 1
4668 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4670 echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4677 cat >>confdefs.h <<\_ACEOF
4678 @%:@define USE_PIPES 1
4681 cat >>confdefs.h <<\_ACEOF
4682 @%:@define NO_X11_UNIX_SOCKETS 1
4685 cat >>confdefs.h <<\_ACEOF
4686 @%:@define MISSING_NFDBITS 1
4689 cat >>confdefs.h <<\_ACEOF
4690 @%:@define MISSING_HOWMANY 1
4693 cat >>confdefs.h <<\_ACEOF
4694 @%:@define MISSING_FD_MASK 1
4700 # Allow user to specify flags
4702 # Check whether --with-cflags or --without-cflags was given.
4703 if test "${with_cflags+set}" = set; then
4704 withval="$with_cflags"
4706 if test "x$withval" != "xno" ; then
4707 CFLAGS="$CFLAGS $withval"
4713 # Check whether --with-cppflags or --without-cppflags was given.
4714 if test "${with_cppflags+set}" = set; then
4715 withval="$with_cppflags"
4717 if test "x$withval" != "xno"; then
4718 CPPFLAGS="$CPPFLAGS $withval"
4724 # Check whether --with-ldflags or --without-ldflags was given.
4725 if test "${with_ldflags+set}" = set; then
4726 withval="$with_ldflags"
4728 if test "x$withval" != "xno" ; then
4729 LDFLAGS="$LDFLAGS $withval"
4735 # Check whether --with-libs or --without-libs was given.
4736 if test "${with_libs+set}" = set; then
4737 withval="$with_libs"
4739 if test "x$withval" != "xno" ; then
4740 LIBS="$LIBS $withval"
4746 # Checks for header files.
4748 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4750 if test "${ac_cv_header_stdc+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4765 egrep -v '^ *\+' conftest.er1 >conftest.err
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
4778 if test -z "$ac_cpp_err"; then
4779 ac_cv_header_stdc=yes
4781 echo "$as_me: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4783 ac_cv_header_stdc=no
4785 rm -f conftest.err conftest.$ac_ext
4787 if 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"
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 egrep "memchr" >/dev/null 2>&1; then
4799 ac_cv_header_stdc=no
4805 if 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"
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "free" >/dev/null 2>&1; then
4817 ac_cv_header_stdc=no
4823 if 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
4828 cat >conftest.$ac_ext <<_ACEOF
4829 #line $LINENO "configure"
4830 #include "confdefs.h"
4832 #if ((' ' & 0x0FF) == 0x020)
4833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4847 for (i = 0; i < 256; i++)
4848 if (XOR (islower (i), ISLOWER (i))
4849 || toupper (i) != TOUPPER (i))
4854 rm -f conftest$ac_exeext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
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
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4867 echo "$as_me: program exited with status $ac_status" >&5
4868 echo "$as_me: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 ac_cv_header_stdc=no
4873 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4878 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4879 if test $ac_cv_header_stdc = yes; then
4881 cat >>confdefs.h <<\_ACEOF
4882 @%:@define STDC_HEADERS 1
4887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898 inttypes.h stdint.h unistd.h
4900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901 echo "$as_me:$LINENO: checking for $ac_header" >&5
4902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 $ac_includes_default
4911 @%:@include <$ac_header>
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915 (eval $ac_compile) 2>&5
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
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 eval "$as_ac_Header=yes"
4927 echo "$as_me: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 eval "$as_ac_Header=no"
4931 rm -f conftest.$ac_objext conftest.$ac_ext
4933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 for 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
4998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5000 echo "$as_me:$LINENO: checking for $ac_header" >&5
5001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008 # Is the header compilable?
5009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 #include "confdefs.h"
5014 $ac_includes_default
5015 @%:@include <$ac_header>
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
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
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler=yes
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 ac_header_compiler=no
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037 echo "${ECHO_T}$ac_header_compiler" >&6
5039 # Is the header present?
5040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 @%:@include <$ac_header>
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 egrep -v '^ *\+' conftest.er1 >conftest.err
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
5063 if test -z "$ac_cpp_err"; then
5064 ac_header_preproc=yes
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_header_preproc=no
5070 rm -f conftest.err conftest.$ac_ext
5071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072 echo "${ECHO_T}$ac_header_preproc" >&6
5074 # So? What about this header?
5075 case $ac_header_compiler:$ac_header_preproc in
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5078 echo "$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
5080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083 echo "$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
5085 echo "$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
5087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 eval "$as_ac_Header=$ac_header_preproc"
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5110 # Checks for libraries.
5111 echo "$as_me:$LINENO: checking for yp_match" >&5
5112 echo $ECHO_N "checking for yp_match... $ECHO_C" >&6
5113 if test "${ac_cv_func_yp_match+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5122 /* Override any gcc2 internal prototype to avoid an error. */
5126 /* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5131 #ifdef F77_DUMMY_MAIN
5135 int F77_DUMMY_MAIN() { return 1; }
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)
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
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
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_func_yp_match=yes
5167 echo "$as_me: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5169 ac_cv_func_yp_match=no
5171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5173 echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
5174 echo "${ECHO_T}$ac_cv_func_yp_match" >&6
5175 if test $ac_cv_func_yp_match = yes; then
5179 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
5180 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6
5181 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_check_lib_save_LIBS=$LIBS
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5190 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5197 #ifdef F77_DUMMY_MAIN
5201 int F77_DUMMY_MAIN() { return 1; }
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
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
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_nsl_yp_match=yes
5225 echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_nsl_yp_match=no
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5232 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
5233 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6
5234 if test $ac_cv_lib_nsl_yp_match = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236 @%:@define HAVE_LIBNSL 1
5245 echo "$as_me:$LINENO: checking for setsockopt" >&5
5246 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5247 if test "${ac_cv_func_setsockopt+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5256 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5265 #ifdef F77_DUMMY_MAIN
5269 int F77_DUMMY_MAIN() { return 1; }
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)
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
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
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_func_setsockopt=yes
5301 echo "$as_me: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5303 ac_cv_func_setsockopt=no
5305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5308 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5309 if test $ac_cv_func_setsockopt = yes; then
5313 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5314 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5315 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_check_lib_save_LIBS=$LIBS
5319 LIBS="-lsocket $LIBS"
5320 cat >conftest.$ac_ext <<_ACEOF
5321 #line $LINENO "configure"
5322 #include "confdefs.h"
5324 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5331 #ifdef F77_DUMMY_MAIN
5335 int F77_DUMMY_MAIN() { return 1; }
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
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
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_lib_socket_setsockopt=yes
5359 echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 ac_cv_lib_socket_setsockopt=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5367 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5368 if test $ac_cv_lib_socket_setsockopt = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370 @%:@define HAVE_LIBSOCKET 1
5373 LIBS="-lsocket $LIBS"
5380 if 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
5383 echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6
5384 if test "${ac_cv_lib_rpc_innetgr+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_check_lib_save_LIBS=$LIBS
5388 LIBS="-lrpc -lyp -lrpc $LIBS"
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 #include "confdefs.h"
5393 /* Override any gcc2 internal prototype to avoid an error. */
5397 /* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5400 #ifdef F77_DUMMY_MAIN
5404 int F77_DUMMY_MAIN() { return 1; }
5414 rm -f conftest.$ac_objext conftest$ac_exeext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416 (eval $ac_link) 2>&5
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
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_cv_lib_rpc_innetgr=yes
5428 echo "$as_me: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 ac_cv_lib_rpc_innetgr=no
5432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5433 LIBS=$ac_check_lib_save_LIBS
5435 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5
5436 echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6
5437 if test $ac_cv_lib_rpc_innetgr = yes; then
5438 LIBS="-lrpc -lyp -lrpc $LIBS"
5444 echo "$as_me:$LINENO: checking for getspnam" >&5
5445 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
5446 if test "${ac_cv_func_getspnam+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5455 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5464 #ifdef F77_DUMMY_MAIN
5468 int F77_DUMMY_MAIN() { return 1; }
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)
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
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
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_getspnam=yes
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 ac_cv_func_getspnam=no
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
5507 echo "${ECHO_T}$ac_cv_func_getspnam" >&6
5508 if test $ac_cv_func_getspnam = yes; then
5511 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
5512 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5513 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_check_lib_save_LIBS=$LIBS
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5529 #ifdef F77_DUMMY_MAIN
5533 int F77_DUMMY_MAIN() { return 1; }
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
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
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_gen_getspnam=yes
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_gen_getspnam=no
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5564 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
5565 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5566 if test $ac_cv_lib_gen_getspnam = yes; then
5574 # Check whether --with-rpath or --without-rpath was given.
5575 if test "${with_rpath+set}" = set; then
5576 withval="$with_rpath"
5578 if test "x$withval" = "xno" ; then
5581 if test "x$withval" = "xyes" ; then
5589 # Check whether --with-zlib or --without-zlib was given.
5590 if test "${with_zlib+set}" = set; then
5591 withval="$with_zlib"
5593 if test "x$withval" = "xno" ; then
5594 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
5595 echo "$as_me: error: *** zlib is required ***" >&2;}
5596 { (exit 1); exit 1; }; }
5598 if test -d "$withval/lib"; then
5599 if test -n "${need_dash_r}"; then
5600 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
5602 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
5605 if test -n "${need_dash_r}"; then
5606 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
5608 LDFLAGS="-L${withval} ${LDFLAGS}"
5611 if test -d "$withval/include"; then
5612 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
5614 CPPFLAGS="-I${withval} ${CPPFLAGS}"
5621 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5622 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5623 if test "${ac_cv_lib_z_deflate+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 ac_check_lib_save_LIBS=$LIBS
5628 cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5632 /* Override any gcc2 internal prototype to avoid an error. */
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5639 #ifdef F77_DUMMY_MAIN
5643 int F77_DUMMY_MAIN() { return 1; }
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
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
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_lib_z_deflate=yes
5667 echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5669 ac_cv_lib_z_deflate=no
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672 LIBS=$ac_check_lib_save_LIBS
5674 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5675 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5676 if test $ac_cv_lib_z_deflate = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678 @%:@define HAVE_LIBZ 1
5684 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
5685 echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
5686 { (exit 1); exit 1; }; }
5690 echo "$as_me:$LINENO: checking for strcasecmp" >&5
5691 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
5692 if test "${ac_cv_func_strcasecmp+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5701 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5710 #ifdef F77_DUMMY_MAIN
5714 int F77_DUMMY_MAIN() { return 1; }
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)
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
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
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_func_strcasecmp=yes
5746 echo "$as_me: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 ac_cv_func_strcasecmp=no
5750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
5753 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
5754 if test $ac_cv_func_strcasecmp = yes; then
5757 echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
5758 echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
5759 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_check_lib_save_LIBS=$LIBS
5763 LIBS="-lresolv $LIBS"
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5768 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5775 #ifdef F77_DUMMY_MAIN
5779 int F77_DUMMY_MAIN() { return 1; }
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
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
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_resolv_strcasecmp=yes
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 ac_cv_lib_resolv_strcasecmp=no
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
5811 echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
5812 if test $ac_cv_lib_resolv_strcasecmp = yes; then
5813 LIBS="$LIBS -lresolv"
5819 echo "$as_me:$LINENO: checking for utimes" >&5
5820 echo $ECHO_N "checking for utimes... $ECHO_C" >&6
5821 if test "${ac_cv_func_utimes+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5839 #ifdef F77_DUMMY_MAIN
5843 int F77_DUMMY_MAIN() { return 1; }
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)
5861 rm -f conftest.$ac_objext conftest$ac_exeext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863 (eval $ac_link) 2>&5
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
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_func_utimes=yes
5875 echo "$as_me: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5877 ac_cv_func_utimes=no
5879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5881 echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5
5882 echo "${ECHO_T}$ac_cv_func_utimes" >&6
5883 if test $ac_cv_func_utimes = yes; then
5886 echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
5887 echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6
5888 if test "${ac_cv_lib_c89_utimes+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_check_lib_save_LIBS=$LIBS
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5895 #include "confdefs.h"
5897 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5904 #ifdef F77_DUMMY_MAIN
5908 int F77_DUMMY_MAIN() { return 1; }
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
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
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_c89_utimes=yes
5932 echo "$as_me: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 ac_cv_lib_c89_utimes=no
5936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5937 LIBS=$ac_check_lib_save_LIBS
5939 echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
5940 echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6
5941 if test $ac_cv_lib_c89_utimes = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943 @%:@define HAVE_UTIMES 1
5954 for ac_header in libutil.h
5956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958 echo "$as_me:$LINENO: checking for $ac_header" >&5
5959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5966 # Is the header compilable?
5967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5970 #line $LINENO "configure"
5971 #include "confdefs.h"
5972 $ac_includes_default
5973 @%:@include <$ac_header>
5975 rm -f conftest.$ac_objext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
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
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_header_compiler=yes
5989 echo "$as_me: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 ac_header_compiler=no
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5995 echo "${ECHO_T}$ac_header_compiler" >&6
5997 # Is the header present?
5998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6000 cat >conftest.$ac_ext <<_ACEOF
6001 #line $LINENO "configure"
6002 #include "confdefs.h"
6003 @%:@include <$ac_header>
6005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008 egrep -v '^ *\+' conftest.er1 >conftest.err
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
6021 if test -z "$ac_cpp_err"; then
6022 ac_header_preproc=yes
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_header_preproc=no
6028 rm -f conftest.err conftest.$ac_ext
6029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6030 echo "${ECHO_T}$ac_header_preproc" >&6
6032 # So? What about this header?
6033 case $ac_header_compiler:$ac_header_preproc in
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6036 echo "$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
6038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6041 echo "$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
6043 echo "$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
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6047 echo "$as_me:$LINENO: checking for $ac_header" >&5
6048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 eval "$as_ac_Header=$ac_header_preproc"
6054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6067 echo "$as_me:$LINENO: checking for library containing login" >&5
6068 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
6069 if test "${ac_cv_search_login+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 ac_func_search_save_LIBS=$LIBS
6073 ac_cv_search_login=no
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line $LINENO "configure"
6076 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6085 #ifdef F77_DUMMY_MAIN
6089 int F77_DUMMY_MAIN() { return 1; }
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
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
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 ac_cv_search_login="none required"
6113 echo "$as_me: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6117 if 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"
6124 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6131 #ifdef F77_DUMMY_MAIN
6135 int F77_DUMMY_MAIN() { return 1; }
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
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
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_login="-l$ac_lib"
6160 echo "$as_me: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_func_search_save_LIBS
6168 echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
6169 echo "${ECHO_T}$ac_cv_search_login" >&6
6170 if 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
6181 for ac_func in logout updwtmp logwtmp
6183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6184 echo "$as_me:$LINENO: checking for $ac_func" >&5
6185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_var+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6204 #ifdef F77_DUMMY_MAIN
6208 int F77_DUMMY_MAIN() { return 1; }
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)
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
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
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 eval "$as_ac_var=yes"
6240 echo "$as_me: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6242 eval "$as_ac_var=no"
6244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248 if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6258 for ac_func in strftime
6260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261 echo "$as_me:$LINENO: checking for $ac_func" >&5
6262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6263 if eval "test \"\${$as_ac_var+set}\" = set"; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
6272 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6281 #ifdef F77_DUMMY_MAIN
6285 int F77_DUMMY_MAIN() { return 1; }
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)
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
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
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 eval "$as_ac_var=yes"
6317 echo "$as_me: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6319 eval "$as_ac_var=no"
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6325 if test `eval echo '${'$as_ac_var'}'` = yes; then
6326 cat >>confdefs.h <<_ACEOF
6327 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6331 # strftime is in -lintl on SCO UNIX.
6332 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6333 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6334 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_check_lib_save_LIBS=$LIBS
6339 cat >conftest.$ac_ext <<_ACEOF
6340 #line $LINENO "configure"
6341 #include "confdefs.h"
6343 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6350 #ifdef F77_DUMMY_MAIN
6354 int F77_DUMMY_MAIN() { return 1; }
6364 rm -f conftest.$ac_objext conftest$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
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
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_lib_intl_strftime=yes
6378 echo "$as_me: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 ac_cv_lib_intl_strftime=no
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6386 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6387 if test $ac_cv_lib_intl_strftime = yes; then
6388 cat >>confdefs.h <<\_ACEOF
6389 @%:@define HAVE_STRFTIME 1
6399 # Check for ALTDIRFUNC glob() extension
6400 echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
6401 echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #line $LINENO "configure"
6404 #include "confdefs.h"
6407 #ifdef GLOB_ALTDIRFUNC
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 egrep "FOUNDIT" >/dev/null 2>&1; then
6415 cat >>confdefs.h <<\_ACEOF
6416 @%:@define GLOB_HAS_ALTDIRFUNC 1
6419 echo "$as_me:$LINENO: result: yes" >&5
6420 echo "${ECHO_T}yes" >&6
6424 echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6
6432 # Check for g.gl_matchc glob() extension
6433 echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
6434 echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6437 #include "confdefs.h"
6440 int main(void){glob_t g; g.gl_matchc = 1;}
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 egrep "FOUNDIT" >/dev/null 2>&1; then
6446 cat >>confdefs.h <<\_ACEOF
6447 @%:@define GLOB_HAS_GL_MATCHC 1
6450 echo "$as_me:$LINENO: result: yes" >&5
6451 echo "${ECHO_T}yes" >&6
6455 echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6463 echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
6464 echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6
6465 if test "$cross_compiling" = yes; then
6466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6467 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6468 { (exit 1); exit 1; }; }
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6474 #include <sys/types.h>
6476 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
6479 rm -f conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
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
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 echo "$as_me:$LINENO: result: yes" >&5
6491 echo "${ECHO_T}yes" >&6
6493 echo "$as_me: program exited with status $ac_status" >&5
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6500 cat >>confdefs.h <<\_ACEOF
6501 @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
6507 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6510 # Check whether user wants S/Key support
6513 # Check whether --with-skey or --without-skey was given.
6514 if test "${with_skey+set}" = set; then
6515 withval="$with_skey"
6517 if test "x$withval" != "xno" ; then
6519 if test "x$withval" != "xyes" ; then
6520 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6521 LDFLAGS="$LDFLAGS -L${withval}/lib"
6524 cat >>confdefs.h <<\_ACEOF
6531 echo "$as_me:$LINENO: checking for s/key support" >&5
6532 echo $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
6535 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6536 { (exit 1); exit 1; }; }
6538 cat >conftest.$ac_ext <<_ACEOF
6539 #line $LINENO "configure"
6540 #include "confdefs.h"
6544 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
6547 rm -f conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
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
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 echo "$as_me:$LINENO: result: yes" >&5
6559 echo "${ECHO_T}yes" >&6
6561 echo "$as_me: program exited with status $ac_status" >&5
6562 echo "$as_me: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6566 echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6
6568 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
6569 echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
6570 { (exit 1); exit 1; }; }
6573 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6580 # Check whether user wants TCP wrappers support
6583 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6584 if test "${with_tcp_wrappers+set}" = set; then
6585 withval="$with_tcp_wrappers"
6587 if test "x$withval" != "xno" ; then
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}"
6596 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
6599 if test -n "${need_dash_r}"; then
6600 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
6602 LDFLAGS="-L${withval} ${LDFLAGS}"
6605 if test -d "${withval}/include"; then
6606 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
6608 CPPFLAGS="-I${withval} ${CPPFLAGS}"
6612 LIBS="$LIBWRAP $LIBS"
6613 echo "$as_me:$LINENO: checking for libwrap" >&5
6614 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6617 #include "confdefs.h"
6620 int deny_severity = 0, allow_severity = 0;
6622 #ifdef F77_DUMMY_MAIN
6626 int F77_DUMMY_MAIN() { return 1; }
6636 rm -f conftest.$ac_objext conftest$ac_exeext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
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
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6649 echo "$as_me:$LINENO: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6
6651 cat >>confdefs.h <<\_ACEOF
6652 @%:@define LIBWRAP 1
6659 echo "$as_me: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6663 echo "$as_me: error: *** libwrap missing" >&2;}
6664 { (exit 1); exit 1; }; }
6668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6743 for 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
6755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 echo "$as_me:$LINENO: checking for $ac_func" >&5
6757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_var+set}\" = set"; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
6767 /* Override any gcc2 internal prototype to avoid an error. */
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6776 #ifdef F77_DUMMY_MAIN
6780 int F77_DUMMY_MAIN() { return 1; }
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)
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>&5
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
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 eval "$as_ac_var=yes"
6812 echo "$as_me: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 eval "$as_ac_var=no"
6816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6820 if test `eval echo '${'$as_ac_var'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6830 for ac_func in dirname
6832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833 echo "$as_me:$LINENO: checking for $ac_func" >&5
6834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
6844 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6853 #ifdef F77_DUMMY_MAIN
6857 int F77_DUMMY_MAIN() { return 1; }
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)
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
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
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6889 echo "$as_me: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 eval "$as_ac_var=no"
6893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897 if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6902 for ac_header in libgen.h
6904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6914 # Is the header compilable?
6915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6920 $ac_includes_default
6921 @%:@include <$ac_header>
6923 rm -f conftest.$ac_objext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
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
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_header_compiler=yes
6937 echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6939 ac_header_compiler=no
6941 rm -f conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943 echo "${ECHO_T}$ac_header_compiler" >&6
6945 # Is the header present?
6946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948 cat >conftest.$ac_ext <<_ACEOF
6949 #line $LINENO "configure"
6950 #include "confdefs.h"
6951 @%:@include <$ac_header>
6953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6956 egrep -v '^ *\+' conftest.er1 >conftest.err
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
6969 if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 ac_header_preproc=no
6976 rm -f conftest.err conftest.$ac_ext
6977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978 echo "${ECHO_T}$ac_header_preproc" >&6
6980 # So? What about this header?
6981 case $ac_header_compiler:$ac_header_preproc in
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984 echo "$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
6986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6989 echo "$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
6991 echo "$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
6993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 eval "$as_ac_Header=$ac_header_preproc"
7002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7017 echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
7018 echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6
7019 if test "${ac_cv_lib_gen_dirname+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 ac_check_lib_save_LIBS=$LIBS
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7028 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7035 #ifdef F77_DUMMY_MAIN
7039 int F77_DUMMY_MAIN() { return 1; }
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
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
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_dirname=yes
7063 echo "$as_me: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7065 ac_cv_lib_gen_dirname=no
7067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068 LIBS=$ac_check_lib_save_LIBS
7070 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
7071 echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6
7072 if test $ac_cv_lib_gen_dirname = yes; then
7074 echo "$as_me:$LINENO: checking for broken dirname" >&5
7075 echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6
7076 if test "${ac_cv_have_broken_dirname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 if test "$cross_compiling" = yes; then
7083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7084 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7085 { (exit 1); exit 1; }; }
7087 cat >conftest.$ac_ext <<_ACEOF
7088 #line $LINENO "configure"
7089 #include "confdefs.h"
7094 int main(int argc, char **argv) {
7097 strncpy(buf,"/etc", 32);
7099 if (!s || strncmp(s, "/", 32) != 0) {
7107 rm -f conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>&5
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
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_cv_have_broken_dirname="no"
7120 echo "$as_me: program exited with status $ac_status" >&5
7121 echo "$as_me: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 ac_cv_have_broken_dirname="yes"
7127 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7132 echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
7133 echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6
7134 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7136 cat >>confdefs.h <<\_ACEOF
7137 @%:@define HAVE_DIRNAME 1
7141 for ac_header in libgen.h
7143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo "$as_me:$LINENO: checking for $ac_header" >&5
7146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153 # Is the header compilable?
7154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7156 cat >conftest.$ac_ext <<_ACEOF
7157 #line $LINENO "configure"
7158 #include "confdefs.h"
7159 $ac_includes_default
7160 @%:@include <$ac_header>
7162 rm -f conftest.$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>&5
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
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_header_compiler=yes
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 ac_header_compiler=no
7180 rm -f conftest.$ac_objext conftest.$ac_ext
7181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182 echo "${ECHO_T}$ac_header_compiler" >&6
7184 # Is the header present?
7185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7189 #include "confdefs.h"
7190 @%:@include <$ac_header>
7192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7195 egrep -v '^ *\+' conftest.er1 >conftest.err
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
7208 if test -z "$ac_cpp_err"; then
7209 ac_header_preproc=yes
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7213 ac_header_preproc=no
7215 rm -f conftest.err conftest.$ac_ext
7216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217 echo "${ECHO_T}$ac_header_preproc" >&6
7219 # So? What about this header?
7220 case $ac_header_compiler:$ac_header_preproc in
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223 echo "$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
7225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7228 echo "$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
7230 echo "$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
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7234 echo "$as_me:$LINENO: checking for $ac_header" >&5
7235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 eval "$as_ac_Header=$ac_header_preproc"
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265 for ac_func in gettimeofday time
7267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7268 echo "$as_me:$LINENO: checking for $ac_func" >&5
7269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_var+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7279 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7288 #ifdef F77_DUMMY_MAIN
7292 int F77_DUMMY_MAIN() { return 1; }
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)
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
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
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7324 echo "$as_me: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 eval "$as_ac_var=no"
7328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7332 if test `eval echo '${'$as_ac_var'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7346 for ac_func in endutent getutent getutid getutline pututline setutent
7348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7349 echo "$as_me:$LINENO: checking for $ac_func" >&5
7350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7351 if eval "test \"\${$as_ac_var+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7360 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7369 #ifdef F77_DUMMY_MAIN
7373 int F77_DUMMY_MAIN() { return 1; }
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)
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
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
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 eval "$as_ac_var=yes"
7405 echo "$as_me: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 eval "$as_ac_var=no"
7409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7413 if test `eval echo '${'$as_ac_var'}'` = yes; then
7414 cat >>confdefs.h <<_ACEOF
7415 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7422 for ac_func in utmpname
7424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7425 echo "$as_me:$LINENO: checking for $ac_func" >&5
7426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7427 if eval "test \"\${$as_ac_var+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7436 /* Override any gcc2 internal prototype to avoid an error. */
7440 /* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7445 #ifdef F77_DUMMY_MAIN
7449 int F77_DUMMY_MAIN() { return 1; }
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)
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
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
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 eval "$as_ac_var=yes"
7481 echo "$as_me: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7483 eval "$as_ac_var=no"
7485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7489 if test `eval echo '${'$as_ac_var'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7502 for ac_func in endutxent getutxent getutxid getutxline pututxline
7504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505 echo "$as_me:$LINENO: checking for $ac_func" >&5
7506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7507 if eval "test \"\${$as_ac_var+set}\" = set"; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7516 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7525 #ifdef F77_DUMMY_MAIN
7529 int F77_DUMMY_MAIN() { return 1; }
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)
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>&5
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
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 eval "$as_ac_var=yes"
7561 echo "$as_me: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 eval "$as_ac_var=no"
7565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7569 if test `eval echo '${'$as_ac_var'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7579 for ac_func in setutxent utmpxname
7581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7582 echo "$as_me:$LINENO: checking for $ac_func" >&5
7583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7584 if eval "test \"\${$as_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7593 /* Override any gcc2 internal prototype to avoid an error. */
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7602 #ifdef F77_DUMMY_MAIN
7606 int F77_DUMMY_MAIN() { return 1; }
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)
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
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
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 eval "$as_ac_var=yes"
7638 echo "$as_me: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 eval "$as_ac_var=no"
7642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7646 if test `eval echo '${'$as_ac_var'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7655 echo "$as_me:$LINENO: checking for daemon" >&5
7656 echo $ECHO_N "checking for daemon... $ECHO_C" >&6
7657 if test "${ac_cv_func_daemon+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7675 #ifdef F77_DUMMY_MAIN
7679 int F77_DUMMY_MAIN() { return 1; }
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)
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
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
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_func_daemon=yes
7711 echo "$as_me: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 ac_cv_func_daemon=no
7715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
7718 echo "${ECHO_T}$ac_cv_func_daemon" >&6
7719 if test $ac_cv_func_daemon = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 @%:@define HAVE_DAEMON 1
7725 echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
7726 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
7727 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_check_lib_save_LIBS=$LIBS
7732 cat >conftest.$ac_ext <<_ACEOF
7733 #line $LINENO "configure"
7734 #include "confdefs.h"
7736 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7743 #ifdef F77_DUMMY_MAIN
7747 int F77_DUMMY_MAIN() { return 1; }
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
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
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_lib_bsd_daemon=yes
7771 echo "$as_me: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 ac_cv_lib_bsd_daemon=no
7775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
7779 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
7780 if test $ac_cv_lib_bsd_daemon = yes; then
7781 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
7782 @%:@define HAVE_DAEMON 1
7791 echo "$as_me:$LINENO: checking for getpagesize" >&5
7792 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
7793 if test "${ac_cv_func_getpagesize+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
7802 /* Override any gcc2 internal prototype to avoid an error. */
7806 /* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808 char getpagesize ();
7811 #ifdef F77_DUMMY_MAIN
7815 int F77_DUMMY_MAIN() { return 1; }
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)
7833 rm -f conftest.$ac_objext conftest$ac_exeext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
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
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_getpagesize=yes
7847 echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 ac_cv_func_getpagesize=no
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
7854 echo "${ECHO_T}$ac_cv_func_getpagesize" >&6
7855 if test $ac_cv_func_getpagesize = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857 @%:@define HAVE_GETPAGESIZE 1
7861 echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
7862 echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6
7863 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 ac_check_lib_save_LIBS=$LIBS
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7872 /* Override any gcc2 internal prototype to avoid an error. */
7876 /* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878 char getpagesize ();
7879 #ifdef F77_DUMMY_MAIN
7883 int F77_DUMMY_MAIN() { return 1; }
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
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
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_ucb_getpagesize=yes
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 ac_cv_lib_ucb_getpagesize=no
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
7915 echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6
7916 if test $ac_cv_lib_ucb_getpagesize = yes; then
7917 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
7918 @%:@define HAVE_GETPAGESIZE 1
7927 # Check for broken snprintf
7928 if test "x$ac_cv_func_snprintf" = "xyes" ; then
7929 echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
7930 echo $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
7933 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7934 { (exit 1); exit 1; }; }
7936 cat >conftest.$ac_ext <<_ACEOF
7937 #line $LINENO "configure"
7938 #include "confdefs.h"
7941 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
7944 rm -f conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
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
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956 echo "${ECHO_T}yes" >&6
7958 echo "$as_me: program exited with status $ac_status" >&5
7959 echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7963 echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6
7965 cat >>confdefs.h <<\_ACEOF
7966 @%:@define BROKEN_SNPRINTF 1
7969 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
7970 echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
7974 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7978 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7979 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7980 if test "${ac_cv_func_getpgrp_void+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 # Use it with a single arg.
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 #include "confdefs.h"
7987 $ac_includes_default
7988 #ifdef F77_DUMMY_MAIN
7992 int F77_DUMMY_MAIN() { return 1; }
8002 rm -f conftest.$ac_objext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004 (eval $ac_compile) 2>&5
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
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_func_getpgrp_void=no
8016 echo "$as_me: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 ac_cv_func_getpgrp_void=yes
8020 rm -f conftest.$ac_objext conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
8024 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
8025 if test $ac_cv_func_getpgrp_void = yes; then
8027 cat >>confdefs.h <<\_ACEOF
8028 @%:@define GETPGRP_VOID 1
8034 # Check for PAM libs
8037 # Check whether --with-pam or --without-pam was given.
8038 if test "${with_pam+set}" = set; then
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
8044 echo "$as_me: error: PAM headers not found" >&2;}
8045 { (exit 1); exit 1; }; }
8049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 ac_check_lib_save_LIBS=$LIBS
8056 cat >conftest.$ac_ext <<_ACEOF
8057 #line $LINENO "configure"
8058 #include "confdefs.h"
8060 /* Override any gcc2 internal prototype to avoid an error. */
8064 /* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8067 #ifdef F77_DUMMY_MAIN
8071 int F77_DUMMY_MAIN() { return 1; }
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
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
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_dl_dlopen=yes
8095 echo "$as_me: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8097 ac_cv_lib_dl_dlopen=no
8099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8103 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8104 if test $ac_cv_lib_dl_dlopen = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106 @%:@define HAVE_LIBDL 1
8114 echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
8115 echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
8116 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 ac_check_lib_save_LIBS=$LIBS
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 #include "confdefs.h"
8125 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char pam_set_item ();
8132 #ifdef F77_DUMMY_MAIN
8136 int F77_DUMMY_MAIN() { return 1; }
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
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
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_lib_pam_pam_set_item=yes
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 ac_cv_lib_pam_pam_set_item=no
8164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS
8167 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
8168 echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
8169 if test $ac_cv_lib_pam_pam_set_item = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171 @%:@define HAVE_LIBPAM 1
8177 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
8178 echo "$as_me: error: *** libpam missing" >&2;}
8179 { (exit 1); exit 1; }; }
8183 for ac_func in pam_getenvlist
8185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186 echo "$as_me:$LINENO: checking for $ac_func" >&5
8187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8188 if eval "test \"\${$as_ac_var+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8201 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8206 #ifdef F77_DUMMY_MAIN
8210 int F77_DUMMY_MAIN() { return 1; }
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)
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>&5
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
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 eval "$as_ac_var=yes"
8242 echo "$as_me: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 eval "$as_ac_var=no"
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8250 if test `eval echo '${'$as_ac_var'}'` = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8262 cat >>confdefs.h <<\_ACEOF
8263 @%:@define USE_PAM 1
8266 if test $ac_cv_lib_dl_dlopen = yes; then
8277 # Check for older PAM
8278 if 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
8281 echo $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"
8287 #include <security/pam_appl.h>
8289 #ifdef F77_DUMMY_MAIN
8293 int F77_DUMMY_MAIN() { return 1; }
8298 (void)pam_strerror((pam_handle_t *)NULL, -1);
8303 rm -f conftest.$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
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
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8318 echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8321 cat >>confdefs.h <<\_ACEOF
8322 @%:@define HAVE_OLD_PAM 1
8325 echo "$as_me:$LINENO: result: yes" >&5
8326 echo "${ECHO_T}yes" >&6
8327 PAM_MSG="yes (old library)"
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8334 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
8335 # because the system crypt() is more featureful.
8336 if test "x$check_for_libcrypt_before" = "x1"; then
8338 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8339 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8340 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-lcrypt $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8356 #ifdef F77_DUMMY_MAIN
8360 int F77_DUMMY_MAIN() { return 1; }
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
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
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_crypt_crypt=yes
8384 echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 ac_cv_lib_crypt_crypt=no
8388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389 LIBS=$ac_check_lib_save_LIBS
8391 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8392 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8393 if test $ac_cv_lib_crypt_crypt = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 @%:@define HAVE_LIBCRYPT 1
8398 LIBS="-lcrypt $LIBS"
8404 # Search for OpenSSL
8405 saved_CPPFLAGS="$CPPFLAGS"
8406 saved_LDFLAGS="$LDFLAGS"
8408 # Check whether --with-ssl-dir or --without-ssl-dir was given.
8409 if test "${with_ssl_dir+set}" = set; then
8410 withval="$with_ssl_dir"
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}"
8417 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8420 if test -n "${need_dash_r}"; then
8421 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8423 LDFLAGS="-L${withval} ${LDFLAGS}"
8426 if test -d "$withval/include"; then
8427 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8429 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8435 LIBS="$LIBS -lcrypto"
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8440 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8447 #ifdef F77_DUMMY_MAIN
8451 int F77_DUMMY_MAIN() { return 1; }
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
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
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 cat >>confdefs.h <<\_ACEOF
8474 @%:@define HAVE_OPENSSL 1
8478 echo "$as_me: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 if test -n "${need_dash_r}"; then
8482 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
8484 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
8486 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
8487 cat >conftest.$ac_ext <<_ACEOF
8488 #line $LINENO "configure"
8489 #include "confdefs.h"
8491 /* Override any gcc2 internal prototype to avoid an error. */
8495 /* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8498 #ifdef F77_DUMMY_MAIN
8502 int F77_DUMMY_MAIN() { return 1; }
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>&5
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
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 cat >>confdefs.h <<\_ACEOF
8525 @%:@define HAVE_OPENSSL 1
8529 echo "$as_me: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8532 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
8533 echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
8534 { (exit 1); exit 1; }; }
8538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8544 # Determine OpenSSL header version
8545 echo "$as_me:$LINENO: checking OpenSSL header version" >&5
8546 echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6
8547 if test "$cross_compiling" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8549 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8550 { (exit 1); exit 1; }; }
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8554 #include "confdefs.h"
8558 #include <openssl/opensslv.h>
8559 #define DATA "conftest.sslincver"
8564 fd = fopen(DATA,"w");
8568 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
8575 rm -f conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>&5
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
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8587 ssl_header_ver=`cat conftest.sslincver`
8588 echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
8589 echo "${ECHO_T}$ssl_header_ver" >&6
8592 echo "$as_me: program exited with status $ac_status" >&5
8593 echo "$as_me: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8597 echo "$as_me:$LINENO: result: not found" >&5
8598 echo "${ECHO_T}not found" >&6
8599 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
8600 echo "$as_me: error: OpenSSL version header not found." >&2;}
8601 { (exit 1); exit 1; }; }
8605 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8608 # Determine OpenSSL library version
8609 echo "$as_me:$LINENO: checking OpenSSL library version" >&5
8610 echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6
8611 if test "$cross_compiling" = yes; then
8612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8613 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8614 { (exit 1); exit 1; }; }
8616 cat >conftest.$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 #include "confdefs.h"
8622 #include <openssl/opensslv.h>
8623 #include <openssl/crypto.h>
8624 #define DATA "conftest.ssllibver"
8629 fd = fopen(DATA,"w");
8633 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
8640 rm -f conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>&5
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
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8652 ssl_library_ver=`cat conftest.ssllibver`
8653 echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
8654 echo "${ECHO_T}$ssl_library_ver" >&6
8657 echo "$as_me: program exited with status $ac_status" >&5
8658 echo "$as_me: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8662 echo "$as_me:$LINENO: result: not found" >&5
8663 echo "${ECHO_T}not found" >&6
8664 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
8665 echo "$as_me: error: OpenSSL library not found." >&2;}
8666 { (exit 1); exit 1; }; }
8670 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8673 # Sanity check OpenSSL headers
8674 echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
8675 echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6
8676 if test "$cross_compiling" = yes; then
8677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8678 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8679 { (exit 1); exit 1; }; }
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 #include "confdefs.h"
8686 #include <openssl/opensslv.h>
8687 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
8690 rm -f conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
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
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8702 echo "$as_me:$LINENO: result: yes" >&5
8703 echo "${ECHO_T}yes" >&6
8706 echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8711 echo "$as_me:$LINENO: result: no" >&5
8712 echo "${ECHO_T}no" >&6
8713 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5
8714 echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;}
8715 { (exit 1); exit 1; }; }
8719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8722 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
8723 # version in OpenSSL. Skip this for PAM
8724 if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
8725 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8726 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8727 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lcrypt $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 #include "confdefs.h"
8736 /* Override any gcc2 internal prototype to avoid an error. */
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8743 #ifdef F77_DUMMY_MAIN
8747 int F77_DUMMY_MAIN() { return 1; }
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
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
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_lib_crypt_crypt=yes
8771 echo "$as_me: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8773 ac_cv_lib_crypt_crypt=no
8775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8778 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8779 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8780 if test $ac_cv_lib_crypt_crypt = yes; then
8781 LIBS="$LIBS -lcrypt"
8787 ### Configure cryptographic random number support
8789 # Check wheter OpenSSL seeds itself
8790 echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
8791 echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6
8792 if test "$cross_compiling" = yes; then
8793 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8794 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8795 { (exit 1); exit 1; }; }
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 #include "confdefs.h"
8802 #include <openssl/rand.h>
8803 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
8806 rm -f conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
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
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8818 OPENSSL_SEEDS_ITSELF=yes
8819 echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6
8823 echo "$as_me: program exited with status $ac_status" >&5
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8828 echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6
8830 # Default to use of the rand helper if OpenSSL doesn't
8836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8840 # Do we want to force the use of the rand helper?
8842 # Check whether --with-rand-helper or --without-rand-helper was given.
8843 if test "${with_rand_helper+set}" = set; then
8844 withval="$with_rand_helper"
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
8851 echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
8852 OPENSSL_SEEDS_ITSELF=yes
8861 # Which randomness source do we use?
8862 if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then
8864 cat >>confdefs.h <<\_ACEOF
8865 @%:@define OPENSSL_PRNG_ONLY 1
8868 RAND_MSG="OpenSSL internal ONLY"
8869 INSTALL_SSH_RAND_HELPER=""
8870 elif test ! -z "$USE_RAND_HELPER" ; then
8871 # install rand helper
8872 RAND_MSG="ssh-rand-helper"
8873 INSTALL_SSH_RAND_HELPER="yes"
8877 ### Configuration of ssh-rand-helper
8881 # Check whether --with-prngd-port or --without-prngd-port was given.
8882 if test "${with_prngd_port+set}" = set; then
8883 withval="$with_prngd_port"
8892 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
8893 echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
8894 { (exit 1); exit 1; }; }
8897 if test ! -z "$withval" ; then
8898 PRNGD_PORT="$withval"
8899 cat >>confdefs.h <<_ACEOF
8900 @%:@define PRNGD_PORT $PRNGD_PORT
8908 # PRNGD Unix domain socket
8910 # Check whether --with-prngd-socket or --without-prngd-socket was given.
8911 if test "${with_prngd_socket+set}" = set; then
8912 withval="$with_prngd_socket"
8916 withval="/var/run/egd-pool"
8924 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
8925 echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
8926 { (exit 1); exit 1; }; }
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
8933 echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
8934 { (exit 1); exit 1; }; }
8936 if test ! -r "$withval" ; then
8937 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
8938 echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
8940 PRNGD_SOCKET="$withval"
8941 cat >>confdefs.h <<_ACEOF
8942 @%:@define PRNGD_SOCKET "$PRNGD_SOCKET"
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
8952 echo $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"
8964 if test ! -z "$PRNGD_SOCKET" ; then
8965 echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
8966 echo "${ECHO_T}$PRNGD_SOCKET" >&6
8968 echo "$as_me:$LINENO: result: not found" >&5
8969 echo "${ECHO_T}not found" >&6
8976 # Change default command timeout for hashing entropy source
8979 # Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8980 if test "${with_entropy_timeout+set}" = set; then
8981 withval="$with_entropy_timeout"
8983 if test "x$withval" != "xno" ; then
8984 entropy_timeout=$withval
8989 cat >>confdefs.h <<_ACEOF
8990 @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8994 SSH_PRIVSEP_USER=sshd
8996 # Check whether --with-privsep-user or --without-privsep-user was given.
8997 if test "${with_privsep_user+set}" = set; then
8998 withval="$with_privsep_user"
9000 if test -n "$withval"; then
9001 SSH_PRIVSEP_USER=$withval
9006 cat >>confdefs.h <<_ACEOF
9007 @%:@define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
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.
9021 test -h /bin 2> /dev/null && PATH=/usr/bin
9022 test -d /sbin && PATH=$PATH:/sbin
9023 test -d /usr/sbin && PATH=$PATH:/usr/sbin
9024 PATH=$PATH:/etc:$OPATH
9026 # These programs are used by the command hashing source to gather entropy
9028 # Extract the first word of "ls", so it can be a program name with args.
9029 set dummy ls; ac_word=$2
9030 echo "$as_me:$LINENO: checking for $ac_word" >&5
9031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9032 if test "${ac_cv_path_PROG_LS+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9057 PROG_LS=$ac_cv_path_PROG_LS
9059 if test -n "$PROG_LS"; then
9060 echo "$as_me:$LINENO: result: $PROG_LS" >&5
9061 echo "${ECHO_T}$PROG_LS" >&6
9063 echo "$as_me:$LINENO: result: no" >&5
9064 echo "${ECHO_T}no" >&6
9067 if test -z "$PROG_LS" ; then
9073 # Extract the first word of "netstat", so it can be a program name with args.
9074 set dummy netstat; ac_word=$2
9075 echo "$as_me:$LINENO: checking for $ac_word" >&5
9076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 case $PROG_NETSTAT in
9082 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9102 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
9104 if test -n "$PROG_NETSTAT"; then
9105 echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
9106 echo "${ECHO_T}$PROG_NETSTAT" >&6
9108 echo "$as_me:$LINENO: result: no" >&5
9109 echo "${ECHO_T}no" >&6
9112 if test -z "$PROG_NETSTAT" ; then
9113 PROG_NETSTAT="undef"
9118 # Extract the first word of "arp", so it can be a program name with args.
9119 set dummy arp; ac_word=$2
9120 echo "$as_me:$LINENO: checking for $ac_word" >&5
9121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122 if test "${ac_cv_path_PROG_ARP+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9147 PROG_ARP=$ac_cv_path_PROG_ARP
9149 if test -n "$PROG_ARP"; then
9150 echo "$as_me:$LINENO: result: $PROG_ARP" >&5
9151 echo "${ECHO_T}$PROG_ARP" >&6
9153 echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6
9157 if test -z "$PROG_ARP" ; then
9163 # Extract the first word of "ifconfig", so it can be a program name with args.
9164 set dummy ifconfig; ac_word=$2
9165 echo "$as_me:$LINENO: checking for $ac_word" >&5
9166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 case $PROG_IFCONFIG in
9172 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9192 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
9194 if test -n "$PROG_IFCONFIG"; then
9195 echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
9196 echo "${ECHO_T}$PROG_IFCONFIG" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9202 if test -z "$PROG_IFCONFIG" ; then
9203 PROG_IFCONFIG="undef"
9208 # Extract the first word of "jstat", so it can be a program name with args.
9209 set dummy jstat; ac_word=$2
9210 echo "$as_me:$LINENO: checking for $ac_word" >&5
9211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9237 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
9239 if test -n "$PROG_JSTAT"; then
9240 echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
9241 echo "${ECHO_T}$PROG_JSTAT" >&6
9243 echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9247 if test -z "$PROG_JSTAT" ; then
9253 # Extract the first word of "ps", so it can be a program name with args.
9254 set dummy ps; ac_word=$2
9255 echo "$as_me:$LINENO: checking for $ac_word" >&5
9256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9257 if test "${ac_cv_path_PROG_PS+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9282 PROG_PS=$ac_cv_path_PROG_PS
9284 if test -n "$PROG_PS"; then
9285 echo "$as_me:$LINENO: result: $PROG_PS" >&5
9286 echo "${ECHO_T}$PROG_PS" >&6
9288 echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9292 if test -z "$PROG_PS" ; then
9298 # Extract the first word of "sar", so it can be a program name with args.
9299 set dummy sar; ac_word=$2
9300 echo "$as_me:$LINENO: checking for $ac_word" >&5
9301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302 if test "${ac_cv_path_PROG_SAR+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9327 PROG_SAR=$ac_cv_path_PROG_SAR
9329 if test -n "$PROG_SAR"; then
9330 echo "$as_me:$LINENO: result: $PROG_SAR" >&5
9331 echo "${ECHO_T}$PROG_SAR" >&6
9333 echo "$as_me:$LINENO: result: no" >&5
9334 echo "${ECHO_T}no" >&6
9337 if test -z "$PROG_SAR" ; then
9343 # Extract the first word of "w", so it can be a program name with args.
9344 set dummy w; ac_word=$2
9345 echo "$as_me:$LINENO: checking for $ac_word" >&5
9346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347 if test "${ac_cv_path_PROG_W+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9372 PROG_W=$ac_cv_path_PROG_W
9374 if test -n "$PROG_W"; then
9375 echo "$as_me:$LINENO: result: $PROG_W" >&5
9376 echo "${ECHO_T}$PROG_W" >&6
9378 echo "$as_me:$LINENO: result: no" >&5
9379 echo "${ECHO_T}no" >&6
9382 if test -z "$PROG_W" ; then
9388 # Extract the first word of "who", so it can be a program name with args.
9389 set dummy who; ac_word=$2
9390 echo "$as_me:$LINENO: checking for $ac_word" >&5
9391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392 if test "${ac_cv_path_PROG_WHO+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9417 PROG_WHO=$ac_cv_path_PROG_WHO
9419 if test -n "$PROG_WHO"; then
9420 echo "$as_me:$LINENO: result: $PROG_WHO" >&5
9421 echo "${ECHO_T}$PROG_WHO" >&6
9423 echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6
9427 if test -z "$PROG_WHO" ; then
9433 # Extract the first word of "last", so it can be a program name with args.
9434 set dummy last; ac_word=$2
9435 echo "$as_me:$LINENO: checking for $ac_word" >&5
9436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9437 if test "${ac_cv_path_PROG_LAST+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9462 PROG_LAST=$ac_cv_path_PROG_LAST
9464 if test -n "$PROG_LAST"; then
9465 echo "$as_me:$LINENO: result: $PROG_LAST" >&5
9466 echo "${ECHO_T}$PROG_LAST" >&6
9468 echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6
9472 if test -z "$PROG_LAST" ; then
9478 # Extract the first word of "lastlog", so it can be a program name with args.
9479 set dummy lastlog; ac_word=$2
9480 echo "$as_me:$LINENO: checking for $ac_word" >&5
9481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9482 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 case $PROG_LASTLOG in
9487 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9507 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
9509 if test -n "$PROG_LASTLOG"; then
9510 echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
9511 echo "${ECHO_T}$PROG_LASTLOG" >&6
9513 echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6
9517 if test -z "$PROG_LASTLOG" ; then
9518 PROG_LASTLOG="undef"
9523 # Extract the first word of "df", so it can be a program name with args.
9524 set dummy df; ac_word=$2
9525 echo "$as_me:$LINENO: checking for $ac_word" >&5
9526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9527 if test "${ac_cv_path_PROG_DF+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9552 PROG_DF=$ac_cv_path_PROG_DF
9554 if test -n "$PROG_DF"; then
9555 echo "$as_me:$LINENO: result: $PROG_DF" >&5
9556 echo "${ECHO_T}$PROG_DF" >&6
9558 echo "$as_me:$LINENO: result: no" >&5
9559 echo "${ECHO_T}no" >&6
9562 if test -z "$PROG_DF" ; then
9568 # Extract the first word of "vmstat", so it can be a program name with args.
9569 set dummy vmstat; ac_word=$2
9570 echo "$as_me:$LINENO: checking for $ac_word" >&5
9571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9572 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 case $PROG_VMSTAT in
9577 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9597 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
9599 if test -n "$PROG_VMSTAT"; then
9600 echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
9601 echo "${ECHO_T}$PROG_VMSTAT" >&6
9603 echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9607 if test -z "$PROG_VMSTAT" ; then
9613 # Extract the first word of "uptime", so it can be a program name with args.
9614 set dummy uptime; ac_word=$2
9615 echo "$as_me:$LINENO: checking for $ac_word" >&5
9616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9617 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 case $PROG_UPTIME in
9622 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9642 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
9644 if test -n "$PROG_UPTIME"; then
9645 echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
9646 echo "${ECHO_T}$PROG_UPTIME" >&6
9648 echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6
9652 if test -z "$PROG_UPTIME" ; then
9658 # Extract the first word of "ipcs", so it can be a program name with args.
9659 set dummy ipcs; ac_word=$2
9660 echo "$as_me:$LINENO: checking for $ac_word" >&5
9661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9662 if test "${ac_cv_path_PROG_IPCS+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9687 PROG_IPCS=$ac_cv_path_PROG_IPCS
9689 if test -n "$PROG_IPCS"; then
9690 echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
9691 echo "${ECHO_T}$PROG_IPCS" >&6
9693 echo "$as_me:$LINENO: result: no" >&5
9694 echo "${ECHO_T}no" >&6
9697 if test -z "$PROG_IPCS" ; then
9703 # Extract the first word of "tail", so it can be a program name with args.
9704 set dummy tail; ac_word=$2
9705 echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707 if test "${ac_cv_path_PROG_TAIL+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
9732 PROG_TAIL=$ac_cv_path_PROG_TAIL
9734 if test -n "$PROG_TAIL"; then
9735 echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
9736 echo "${ECHO_T}$PROG_TAIL" >&6
9738 echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9742 if test -z "$PROG_TAIL" ; then
9750 # Where does ssh-rand-helper get its randomness from?
9751 INSTALL_SSH_PRNG_CMDS=""
9752 if 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\""
9758 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
9759 RAND_HELPER_CMDHASH=yes
9760 INSTALL_SSH_PRNG_CMDS="yes"
9766 # Cheap hack to ensure NEWS-OS libraries are arranged right.
9767 if test ! -z "$SONY" ; then
9768 LIBS="$LIBS -liberty";
9771 # Checks for data types
9772 echo "$as_me:$LINENO: checking for char" >&5
9773 echo $ECHO_N "checking for char... $ECHO_C" >&6
9774 if test "${ac_cv_type_char+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9779 #include "confdefs.h"
9780 $ac_includes_default
9781 #ifdef F77_DUMMY_MAIN
9785 int F77_DUMMY_MAIN() { return 1; }
9798 rm -f conftest.$ac_objext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800 (eval $ac_compile) 2>&5
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
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9819 echo "${ECHO_T}$ac_cv_type_char" >&6
9821 echo "$as_me:$LINENO: checking size of char" >&5
9822 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9823 if test "${ac_cv_sizeof_char+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
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.
9833 cat >conftest.$ac_ext <<_ACEOF
9834 #line $LINENO "configure"
9835 #include "confdefs.h"
9836 $ac_includes_default
9837 #ifdef F77_DUMMY_MAIN
9841 int F77_DUMMY_MAIN() { return 1; }
9846 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
9847 test_array @<:@0@:>@ = 0
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
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
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870 $ac_includes_default
9871 #ifdef F77_DUMMY_MAIN
9875 int F77_DUMMY_MAIN() { return 1; }
9880 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
9881 test_array @<:@0@:>@ = 0
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>&5
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
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_hi=$ac_mid; break
9901 echo "$as_me: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9903 ac_lo=`expr $ac_mid + 1`
9904 if test $ac_lo -le $ac_mid; then
9908 ac_mid=`expr 2 '*' $ac_mid + 1`
9910 rm -f conftest.$ac_objext conftest.$ac_ext
9913 echo "$as_me: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 cat >conftest.$ac_ext <<_ACEOF
9916 #line $LINENO "configure"
9917 #include "confdefs.h"
9918 $ac_includes_default
9919 #ifdef F77_DUMMY_MAIN
9923 int F77_DUMMY_MAIN() { return 1; }
9928 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
9929 test_array @<:@0@:>@ = 0
9935 rm -f conftest.$ac_objext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
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
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9949 cat >conftest.$ac_ext <<_ACEOF
9950 #line $LINENO "configure"
9951 #include "confdefs.h"
9952 $ac_includes_default
9953 #ifdef F77_DUMMY_MAIN
9957 int F77_DUMMY_MAIN() { return 1; }
9962 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
9963 test_array @<:@0@:>@ = 0
9969 rm -f conftest.$ac_objext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
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
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_lo=$ac_mid; break
9983 echo "$as_me: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 ac_hi=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9990 ac_mid=`expr 2 '*' $ac_mid`
9992 rm -f conftest.$ac_objext conftest.$ac_ext
9995 echo "$as_me: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9999 rm -f conftest.$ac_objext conftest.$ac_ext
10001 rm -f conftest.$ac_objext conftest.$ac_ext
10002 # Binary search between lo and hi bounds.
10003 while 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
10013 int F77_DUMMY_MAIN() { return 1; }
10018 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
10019 test_array @<:@0@:>@ = 0
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>&5
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
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10039 echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_lo=`expr '(' $ac_mid ')' + 1`
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10046 ?*) ac_cv_sizeof_char=$ac_lo;;
10047 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10048 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10049 { (exit 1); exit 1; }; } ;;
10052 if test "$cross_compiling" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10054 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10055 { (exit 1); exit 1; }; }
10057 cat >conftest.$ac_ext <<_ACEOF
10058 #line $LINENO "configure"
10059 #include "confdefs.h"
10060 $ac_includes_default
10061 long longval () { return (long) (sizeof (char)); }
10062 unsigned long ulongval () { return (long) (sizeof (char)); }
10063 @%:@include <stdio.h>
10064 @%:@include <stdlib.h>
10065 #ifdef F77_DUMMY_MAIN
10066 # ifdef __cplusplus
10069 int F77_DUMMY_MAIN() { return 1; }
10075 FILE *f = fopen ("conftest.val", "w");
10078 if (((long) (sizeof (char))) < 0)
10080 long i = longval ();
10081 if (i != ((long) (sizeof (char))))
10083 fprintf (f, "%ld\n", i);
10087 unsigned long i = ulongval ();
10088 if (i != ((long) (sizeof (char))))
10090 fprintf (f, "%lu\n", i);
10092 exit (ferror (f) || fclose (f) != 0);
10098 rm -f conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
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
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_sizeof_char=`cat conftest.val`
10111 echo "$as_me: program exited with status $ac_status" >&5
10112 echo "$as_me: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 ( exit $ac_status )
10115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
10116 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
10117 { (exit 1); exit 1; }; }
10119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10124 ac_cv_sizeof_char=0
10127 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10128 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10129 cat >>confdefs.h <<_ACEOF
10130 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
10134 echo "$as_me:$LINENO: checking for short int" >&5
10135 echo $ECHO_N "checking for short int... $ECHO_C" >&6
10136 if test "${ac_cv_type_short_int+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
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
10147 int F77_DUMMY_MAIN() { return 1; }
10152 if ((short int *) 0)
10154 if (sizeof (short int))
10160 rm -f conftest.$ac_objext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
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
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_type_short_int=yes
10174 echo "$as_me: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10176 ac_cv_type_short_int=no
10178 rm -f conftest.$ac_objext conftest.$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
10181 echo "${ECHO_T}$ac_cv_type_short_int" >&6
10183 echo "$as_me:$LINENO: checking size of short int" >&5
10184 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
10185 if test "${ac_cv_sizeof_short_int+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
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.
10195 cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10197 #include "confdefs.h"
10198 $ac_includes_default
10199 #ifdef F77_DUMMY_MAIN
10200 # ifdef __cplusplus
10203 int F77_DUMMY_MAIN() { return 1; }
10208 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@;
10209 test_array @<:@0@:>@ = 0
10215 rm -f conftest.$ac_objext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
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
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
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
10237 int F77_DUMMY_MAIN() { return 1; }
10242 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10243 test_array @<:@0@:>@ = 0
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
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
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_hi=$ac_mid; break
10263 echo "$as_me: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 ac_lo=`expr $ac_mid + 1`
10266 if test $ac_lo -le $ac_mid; then
10270 ac_mid=`expr 2 '*' $ac_mid + 1`
10272 rm -f conftest.$ac_objext conftest.$ac_ext
10275 echo "$as_me: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 $ac_includes_default
10281 #ifdef F77_DUMMY_MAIN
10282 # ifdef __cplusplus
10285 int F77_DUMMY_MAIN() { return 1; }
10290 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@;
10291 test_array @<:@0@:>@ = 0
10297 rm -f conftest.$ac_objext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
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
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
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
10319 int F77_DUMMY_MAIN() { return 1; }
10324 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@;
10325 test_array @<:@0@:>@ = 0
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
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
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_lo=$ac_mid; break
10345 echo "$as_me: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 ac_hi=`expr '(' $ac_mid ')' - 1`
10348 if test $ac_mid -le $ac_hi; then
10352 ac_mid=`expr 2 '*' $ac_mid`
10354 rm -f conftest.$ac_objext conftest.$ac_ext
10357 echo "$as_me: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10363 rm -f conftest.$ac_objext conftest.$ac_ext
10364 # Binary search between lo and hi bounds.
10365 while 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
10375 int F77_DUMMY_MAIN() { return 1; }
10380 static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@;
10381 test_array @<:@0@:>@ = 0
10387 rm -f conftest.$ac_objext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389 (eval $ac_compile) 2>&5
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
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10401 echo "$as_me: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 ac_lo=`expr '(' $ac_mid ')' + 1`
10405 rm -f conftest.$ac_objext conftest.$ac_ext
10408 ?*) ac_cv_sizeof_short_int=$ac_lo;;
10409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10410 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10411 { (exit 1); exit 1; }; } ;;
10414 if test "$cross_compiling" = yes; then
10415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10416 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10417 { (exit 1); exit 1; }; }
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10422 $ac_includes_default
10423 long longval () { return (long) (sizeof (short int)); }
10424 unsigned long ulongval () { return (long) (sizeof (short int)); }
10425 @%:@include <stdio.h>
10426 @%:@include <stdlib.h>
10427 #ifdef F77_DUMMY_MAIN
10428 # ifdef __cplusplus
10431 int F77_DUMMY_MAIN() { return 1; }
10437 FILE *f = fopen ("conftest.val", "w");
10440 if (((long) (sizeof (short int))) < 0)
10442 long i = longval ();
10443 if (i != ((long) (sizeof (short int))))
10445 fprintf (f, "%ld\n", i);
10449 unsigned long i = ulongval ();
10450 if (i != ((long) (sizeof (short int))))
10452 fprintf (f, "%lu\n", i);
10454 exit (ferror (f) || fclose (f) != 0);
10460 rm -f conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
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
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_sizeof_short_int=`cat conftest.val`
10473 echo "$as_me: program exited with status $ac_status" >&5
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ( exit $ac_status )
10477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5
10478 echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;}
10479 { (exit 1); exit 1; }; }
10481 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10486 ac_cv_sizeof_short_int=0
10489 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10490 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10491 cat >>confdefs.h <<_ACEOF
10492 @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10496 echo "$as_me:$LINENO: checking for int" >&5
10497 echo $ECHO_N "checking for int... $ECHO_C" >&6
10498 if test "${ac_cv_type_int+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
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
10509 int F77_DUMMY_MAIN() { return 1; }
10522 rm -f conftest.$ac_objext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>&5
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
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10536 echo "$as_me: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10540 rm -f conftest.$ac_objext conftest.$ac_ext
10542 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10543 echo "${ECHO_T}$ac_cv_type_int" >&6
10545 echo "$as_me:$LINENO: checking size of int" >&5
10546 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10547 if test "${ac_cv_sizeof_int+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
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.
10557 cat >conftest.$ac_ext <<_ACEOF
10558 #line $LINENO "configure"
10559 #include "confdefs.h"
10560 $ac_includes_default
10561 #ifdef F77_DUMMY_MAIN
10562 # ifdef __cplusplus
10565 int F77_DUMMY_MAIN() { return 1; }
10570 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
10571 test_array @<:@0@:>@ = 0
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
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
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
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
10599 int F77_DUMMY_MAIN() { return 1; }
10604 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10605 test_array @<:@0@:>@ = 0
10611 rm -f conftest.$ac_objext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
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
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_hi=$ac_mid; break
10625 echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 ac_lo=`expr $ac_mid + 1`
10628 if test $ac_lo -le $ac_mid; then
10632 ac_mid=`expr 2 '*' $ac_mid + 1`
10634 rm -f conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line $LINENO "configure"
10641 #include "confdefs.h"
10642 $ac_includes_default
10643 #ifdef F77_DUMMY_MAIN
10644 # ifdef __cplusplus
10647 int F77_DUMMY_MAIN() { return 1; }
10652 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
10653 test_array @<:@0@:>@ = 0
10659 rm -f conftest.$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
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
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
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
10681 int F77_DUMMY_MAIN() { return 1; }
10686 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
10687 test_array @<:@0@:>@ = 0
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
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
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_lo=$ac_mid; break
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 ac_hi=`expr '(' $ac_mid ')' - 1`
10710 if test $ac_mid -le $ac_hi; then
10714 ac_mid=`expr 2 '*' $ac_mid`
10716 rm -f conftest.$ac_objext conftest.$ac_ext
10719 echo "$as_me: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10723 rm -f conftest.$ac_objext conftest.$ac_ext
10725 rm -f conftest.$ac_objext conftest.$ac_ext
10726 # Binary search between lo and hi bounds.
10727 while 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
10737 int F77_DUMMY_MAIN() { return 1; }
10742 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
10743 test_array @<:@0@:>@ = 0
10749 rm -f conftest.$ac_objext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
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
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10763 echo "$as_me: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 ac_lo=`expr '(' $ac_mid ')' + 1`
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10770 ?*) ac_cv_sizeof_int=$ac_lo;;
10771 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10772 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10773 { (exit 1); exit 1; }; } ;;
10776 if test "$cross_compiling" = yes; then
10777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10778 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10779 { (exit 1); exit 1; }; }
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line $LINENO "configure"
10783 #include "confdefs.h"
10784 $ac_includes_default
10785 long longval () { return (long) (sizeof (int)); }
10786 unsigned long ulongval () { return (long) (sizeof (int)); }
10787 @%:@include <stdio.h>
10788 @%:@include <stdlib.h>
10789 #ifdef F77_DUMMY_MAIN
10790 # ifdef __cplusplus
10793 int F77_DUMMY_MAIN() { return 1; }
10799 FILE *f = fopen ("conftest.val", "w");
10802 if (((long) (sizeof (int))) < 0)
10804 long i = longval ();
10805 if (i != ((long) (sizeof (int))))
10807 fprintf (f, "%ld\n", i);
10811 unsigned long i = ulongval ();
10812 if (i != ((long) (sizeof (int))))
10814 fprintf (f, "%lu\n", i);
10816 exit (ferror (f) || fclose (f) != 0);
10822 rm -f conftest$ac_exeext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824 (eval $ac_link) 2>&5
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
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_sizeof_int=`cat conftest.val`
10835 echo "$as_me: program exited with status $ac_status" >&5
10836 echo "$as_me: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 ( exit $ac_status )
10839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
10840 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
10841 { (exit 1); exit 1; }; }
10843 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10851 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10852 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10853 cat >>confdefs.h <<_ACEOF
10854 @%:@define SIZEOF_INT $ac_cv_sizeof_int
10858 echo "$as_me:$LINENO: checking for long int" >&5
10859 echo $ECHO_N "checking for long int... $ECHO_C" >&6
10860 if test "${ac_cv_type_long_int+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
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
10871 int F77_DUMMY_MAIN() { return 1; }
10876 if ((long int *) 0)
10878 if (sizeof (long int))
10884 rm -f conftest.$ac_objext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>&5
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
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_type_long_int=yes
10898 echo "$as_me: failed program was:" >&5
10899 cat conftest.$ac_ext >&5
10900 ac_cv_type_long_int=no
10902 rm -f conftest.$ac_objext conftest.$ac_ext
10904 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10905 echo "${ECHO_T}$ac_cv_type_long_int" >&6
10907 echo "$as_me:$LINENO: checking size of long int" >&5
10908 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
10909 if test "${ac_cv_sizeof_long_int+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
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.
10919 cat >conftest.$ac_ext <<_ACEOF
10920 #line $LINENO "configure"
10921 #include "confdefs.h"
10922 $ac_includes_default
10923 #ifdef F77_DUMMY_MAIN
10924 # ifdef __cplusplus
10927 int F77_DUMMY_MAIN() { return 1; }
10932 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@;
10933 test_array @<:@0@:>@ = 0
10939 rm -f conftest.$ac_objext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>&5
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
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
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
10961 int F77_DUMMY_MAIN() { return 1; }
10966 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
10967 test_array @<:@0@:>@ = 0
10973 rm -f conftest.$ac_objext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975 (eval $ac_compile) 2>&5
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
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_hi=$ac_mid; break
10987 echo "$as_me: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10989 ac_lo=`expr $ac_mid + 1`
10990 if test $ac_lo -le $ac_mid; then
10994 ac_mid=`expr 2 '*' $ac_mid + 1`
10996 rm -f conftest.$ac_objext conftest.$ac_ext
10999 echo "$as_me: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11004 $ac_includes_default
11005 #ifdef F77_DUMMY_MAIN
11006 # ifdef __cplusplus
11009 int F77_DUMMY_MAIN() { return 1; }
11014 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@;
11015 test_array @<:@0@:>@ = 0
11021 rm -f conftest.$ac_objext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023 (eval $ac_compile) 2>&5
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
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
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
11043 int F77_DUMMY_MAIN() { return 1; }
11048 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@;
11049 test_array @<:@0@:>@ = 0
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
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
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_lo=$ac_mid; break
11069 echo "$as_me: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 ac_hi=`expr '(' $ac_mid ')' - 1`
11072 if test $ac_mid -le $ac_hi; then
11076 ac_mid=`expr 2 '*' $ac_mid`
11078 rm -f conftest.$ac_objext conftest.$ac_ext
11081 echo "$as_me: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11085 rm -f conftest.$ac_objext conftest.$ac_ext
11087 rm -f conftest.$ac_objext conftest.$ac_ext
11088 # Binary search between lo and hi bounds.
11089 while 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
11099 int F77_DUMMY_MAIN() { return 1; }
11104 static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@;
11105 test_array @<:@0@:>@ = 0
11111 rm -f conftest.$ac_objext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
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
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11125 echo "$as_me: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11127 ac_lo=`expr '(' $ac_mid ')' + 1`
11129 rm -f conftest.$ac_objext conftest.$ac_ext
11132 ?*) ac_cv_sizeof_long_int=$ac_lo;;
11133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11134 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11135 { (exit 1); exit 1; }; } ;;
11138 if test "$cross_compiling" = yes; then
11139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11140 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11141 { (exit 1); exit 1; }; }
11143 cat >conftest.$ac_ext <<_ACEOF
11144 #line $LINENO "configure"
11145 #include "confdefs.h"
11146 $ac_includes_default
11147 long longval () { return (long) (sizeof (long int)); }
11148 unsigned long ulongval () { return (long) (sizeof (long int)); }
11149 @%:@include <stdio.h>
11150 @%:@include <stdlib.h>
11151 #ifdef F77_DUMMY_MAIN
11152 # ifdef __cplusplus
11155 int F77_DUMMY_MAIN() { return 1; }
11161 FILE *f = fopen ("conftest.val", "w");
11164 if (((long) (sizeof (long int))) < 0)
11166 long i = longval ();
11167 if (i != ((long) (sizeof (long int))))
11169 fprintf (f, "%ld\n", i);
11173 unsigned long i = ulongval ();
11174 if (i != ((long) (sizeof (long int))))
11176 fprintf (f, "%lu\n", i);
11178 exit (ferror (f) || fclose (f) != 0);
11184 rm -f conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
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
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_sizeof_long_int=`cat conftest.val`
11197 echo "$as_me: program exited with status $ac_status" >&5
11198 echo "$as_me: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 ( exit $ac_status )
11201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5
11202 echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;}
11203 { (exit 1); exit 1; }; }
11205 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11210 ac_cv_sizeof_long_int=0
11213 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11214 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
11215 cat >>confdefs.h <<_ACEOF
11216 @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11220 echo "$as_me:$LINENO: checking for long long int" >&5
11221 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
11222 if test "${ac_cv_type_long_long_int+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
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
11233 int F77_DUMMY_MAIN() { return 1; }
11238 if ((long long int *) 0)
11240 if (sizeof (long long int))
11246 rm -f conftest.$ac_objext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248 (eval $ac_compile) 2>&5
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
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_type_long_long_int=yes
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 ac_cv_type_long_long_int=no
11264 rm -f conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11267 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
11269 echo "$as_me:$LINENO: checking size of long long int" >&5
11270 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
11271 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
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.
11281 cat >conftest.$ac_ext <<_ACEOF
11282 #line $LINENO "configure"
11283 #include "confdefs.h"
11284 $ac_includes_default
11285 #ifdef F77_DUMMY_MAIN
11286 # ifdef __cplusplus
11289 int F77_DUMMY_MAIN() { return 1; }
11294 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@;
11295 test_array @<:@0@:>@ = 0
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
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
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
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
11323 int F77_DUMMY_MAIN() { return 1; }
11328 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11329 test_array @<:@0@:>@ = 0
11335 rm -f conftest.$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>&5
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
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_hi=$ac_mid; break
11349 echo "$as_me: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11351 ac_lo=`expr $ac_mid + 1`
11352 if test $ac_lo -le $ac_mid; then
11356 ac_mid=`expr 2 '*' $ac_mid + 1`
11358 rm -f conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 cat >conftest.$ac_ext <<_ACEOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11366 $ac_includes_default
11367 #ifdef F77_DUMMY_MAIN
11368 # ifdef __cplusplus
11371 int F77_DUMMY_MAIN() { return 1; }
11376 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@;
11377 test_array @<:@0@:>@ = 0
11383 rm -f conftest.$ac_objext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
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
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
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
11405 int F77_DUMMY_MAIN() { return 1; }
11410 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@;
11411 test_array @<:@0@:>@ = 0
11417 rm -f conftest.$ac_objext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11419 (eval $ac_compile) 2>&5
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
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 ac_lo=$ac_mid; break
11431 echo "$as_me: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11433 ac_hi=`expr '(' $ac_mid ')' - 1`
11434 if test $ac_mid -le $ac_hi; then
11438 ac_mid=`expr 2 '*' $ac_mid`
11440 rm -f conftest.$ac_objext conftest.$ac_ext
11443 echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11449 rm -f conftest.$ac_objext conftest.$ac_ext
11450 # Binary search between lo and hi bounds.
11451 while 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
11461 int F77_DUMMY_MAIN() { return 1; }
11466 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@;
11467 test_array @<:@0@:>@ = 0
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
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
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11487 echo "$as_me: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 ac_lo=`expr '(' $ac_mid ')' + 1`
11491 rm -f conftest.$ac_objext conftest.$ac_ext
11494 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
11495 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11496 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11497 { (exit 1); exit 1; }; } ;;
11500 if test "$cross_compiling" = yes; then
11501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11502 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11503 { (exit 1); exit 1; }; }
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11508 $ac_includes_default
11509 long longval () { return (long) (sizeof (long long int)); }
11510 unsigned long ulongval () { return (long) (sizeof (long long int)); }
11511 @%:@include <stdio.h>
11512 @%:@include <stdlib.h>
11513 #ifdef F77_DUMMY_MAIN
11514 # ifdef __cplusplus
11517 int F77_DUMMY_MAIN() { return 1; }
11523 FILE *f = fopen ("conftest.val", "w");
11526 if (((long) (sizeof (long long int))) < 0)
11528 long i = longval ();
11529 if (i != ((long) (sizeof (long long int))))
11531 fprintf (f, "%ld\n", i);
11535 unsigned long i = ulongval ();
11536 if (i != ((long) (sizeof (long long int))))
11538 fprintf (f, "%lu\n", i);
11540 exit (ferror (f) || fclose (f) != 0);
11546 rm -f conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
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
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_sizeof_long_long_int=`cat conftest.val`
11559 echo "$as_me: program exited with status $ac_status" >&5
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 ( exit $ac_status )
11563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5
11564 echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;}
11565 { (exit 1); exit 1; }; }
11567 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11572 ac_cv_sizeof_long_long_int=0
11575 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
11576 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
11577 cat >>confdefs.h <<_ACEOF
11578 @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11583 # Sanity check long long for some platforms (AIX)
11584 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11585 ac_cv_sizeof_long_long_int=0
11588 # More checks for data types
11589 echo "$as_me:$LINENO: checking for u_int type" >&5
11590 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
11591 if test "${ac_cv_have_u_int+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
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
11603 int F77_DUMMY_MAIN() { return 1; }
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
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
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_have_u_int="yes"
11627 echo "$as_me: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11629 ac_cv_have_u_int="no"
11632 rm -f conftest.$ac_objext conftest.$ac_ext
11635 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
11636 echo "${ECHO_T}$ac_cv_have_u_int" >&6
11637 if test "x$ac_cv_have_u_int" = "xyes" ; then
11638 cat >>confdefs.h <<\_ACEOF
11639 @%:@define HAVE_U_INT 1
11645 echo "$as_me:$LINENO: checking for intXX_t types" >&5
11646 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
11647 if test "${ac_cv_have_intxx_t+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
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
11659 int F77_DUMMY_MAIN() { return 1; }
11664 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>&5
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
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_have_intxx_t="yes"
11683 echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_have_intxx_t="no"
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
11692 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
11693 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11694 cat >>confdefs.h <<\_ACEOF
11695 @%:@define HAVE_INTXX_T 1
11701 if (test -z "$have_intxx_t" && \
11702 test "x$ac_cv_header_stdint_h" = "xyes")
11704 echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
11705 echo $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
11714 int F77_DUMMY_MAIN() { return 1; }
11719 int8_t a; int16_t b; int32_t c; a = b = c = 1;
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
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
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11737 cat >>confdefs.h <<\_ACEOF
11738 @%:@define HAVE_INTXX_T 1
11741 echo "$as_me:$LINENO: result: yes" >&5
11742 echo "${ECHO_T}yes" >&6
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 echo "$as_me:$LINENO: result: no" >&5
11748 echo "${ECHO_T}no" >&6
11751 rm -f conftest.$ac_objext conftest.$ac_ext
11754 echo "$as_me:$LINENO: checking for int64_t type" >&5
11755 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
11756 if test "${ac_cv_have_int64_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11764 #include <sys/types.h>
11765 #ifdef HAVE_STDINT_H
11766 # include <stdint.h>
11768 #include <sys/socket.h>
11769 #ifdef HAVE_SYS_BITYPES_H
11770 # include <sys/bitypes.h>
11773 #ifdef F77_DUMMY_MAIN
11774 # ifdef __cplusplus
11777 int F77_DUMMY_MAIN() { return 1; }
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
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
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_have_int64_t="yes"
11801 echo "$as_me: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 ac_cv_have_int64_t="no"
11806 rm -f conftest.$ac_objext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
11810 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
11811 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11812 cat >>confdefs.h <<\_ACEOF
11813 @%:@define HAVE_INT64_T 1
11818 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
11819 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
11820 if test "${ac_cv_have_u_intxx_t+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
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
11832 int F77_DUMMY_MAIN() { return 1; }
11837 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
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
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_have_u_intxx_t="yes"
11856 echo "$as_me: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11858 ac_cv_have_u_intxx_t="no"
11861 rm -f conftest.$ac_objext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
11865 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
11866 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11867 cat >>confdefs.h <<\_ACEOF
11868 @%:@define HAVE_U_INTXX_T 1
11874 if test -z "$have_u_intxx_t" ; then
11875 echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
11876 echo $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
11885 int F77_DUMMY_MAIN() { return 1; }
11890 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11895 rm -f conftest.$ac_objext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897 (eval $ac_compile) 2>&5
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
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11908 cat >>confdefs.h <<\_ACEOF
11909 @%:@define HAVE_U_INTXX_T 1
11912 echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6
11916 echo "$as_me: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 echo "$as_me:$LINENO: result: no" >&5
11919 echo "${ECHO_T}no" >&6
11922 rm -f conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
11926 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
11927 if test "${ac_cv_have_u_int64_t+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
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
11939 int F77_DUMMY_MAIN() { return 1; }
11944 u_int64_t a; a = 1;
11949 rm -f conftest.$ac_objext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
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
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_have_u_int64_t="yes"
11963 echo "$as_me: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 ac_cv_have_u_int64_t="no"
11968 rm -f conftest.$ac_objext conftest.$ac_ext
11971 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
11972 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
11973 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11974 cat >>confdefs.h <<\_ACEOF
11975 @%:@define HAVE_U_INT64_T 1
11981 if test -z "$have_u_int64_t" ; then
11982 echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
11983 echo $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
11992 int F77_DUMMY_MAIN() { return 1; }
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
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
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12015 cat >>confdefs.h <<\_ACEOF
12016 @%:@define HAVE_U_INT64_T 1
12019 echo "$as_me:$LINENO: result: yes" >&5
12020 echo "${ECHO_T}yes" >&6
12023 echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6
12029 rm -f conftest.$ac_objext conftest.$ac_ext
12032 if test -z "$have_u_intxx_t" ; then
12033 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
12034 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
12035 if test "${ac_cv_have_uintxx_t+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 cat >conftest.$ac_ext <<_ACEOF
12040 #line $LINENO "configure"
12041 #include "confdefs.h"
12043 #include <sys/types.h>
12045 #ifdef F77_DUMMY_MAIN
12046 # ifdef __cplusplus
12049 int F77_DUMMY_MAIN() { return 1; }
12054 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12059 rm -f conftest.$ac_objext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>&5
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
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_have_uintxx_t="yes"
12073 echo "$as_me: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 ac_cv_have_uintxx_t="no"
12078 rm -f conftest.$ac_objext conftest.$ac_ext
12081 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
12082 echo "${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
12091 if test -z "$have_uintxx_t" ; then
12092 echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
12093 echo $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
12102 int F77_DUMMY_MAIN() { return 1; }
12107 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
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
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12125 cat >>confdefs.h <<\_ACEOF
12126 @%:@define HAVE_UINTXX_T 1
12129 echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6
12133 echo "$as_me: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12135 echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6
12139 rm -f conftest.$ac_objext conftest.$ac_ext
12142 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12143 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12145 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12146 echo $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"
12151 #include <sys/bitypes.h>
12153 #ifdef F77_DUMMY_MAIN
12154 # ifdef __cplusplus
12157 int F77_DUMMY_MAIN() { return 1; }
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;
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
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
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12184 cat >>confdefs.h <<\_ACEOF
12185 @%:@define HAVE_U_INTXX_T 1
12188 cat >>confdefs.h <<\_ACEOF
12189 @%:@define HAVE_INTXX_T 1
12192 echo "$as_me:$LINENO: result: yes" >&5
12193 echo "${ECHO_T}yes" >&6
12196 echo "$as_me: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12202 rm -f conftest.$ac_objext conftest.$ac_ext
12206 echo "$as_me:$LINENO: checking for u_char" >&5
12207 echo $ECHO_N "checking for u_char... $ECHO_C" >&6
12208 if test "${ac_cv_have_u_char+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.$ac_ext <<_ACEOF
12213 #line $LINENO "configure"
12214 #include "confdefs.h"
12216 #include <sys/types.h>
12218 #ifdef F77_DUMMY_MAIN
12219 # ifdef __cplusplus
12222 int F77_DUMMY_MAIN() { return 1; }
12227 u_char foo; foo = 125;
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
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
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_have_u_char="yes"
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 ac_cv_have_u_char="no"
12251 rm -f conftest.$ac_objext conftest.$ac_ext
12254 echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
12255 echo "${ECHO_T}$ac_cv_have_u_char" >&6
12256 if test "x$ac_cv_have_u_char" = "xyes" ; then
12257 cat >>confdefs.h <<\_ACEOF
12258 @%:@define HAVE_U_CHAR 1
12264 echo "$as_me:$LINENO: checking for socklen_t" >&5
12265 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12266 if test "${ac_cv_type_socklen_t+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12271 #include "confdefs.h"
12272 #include <sys/types.h>
12273 #include <sys/socket.h>
12275 #ifdef F77_DUMMY_MAIN
12276 # ifdef __cplusplus
12279 int F77_DUMMY_MAIN() { return 1; }
12284 if ((socklen_t *) 0)
12286 if (sizeof (socklen_t))
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>&5
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
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_type_socklen_t=yes
12306 echo "$as_me: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 ac_cv_type_socklen_t=no
12310 rm -f conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12313 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
12314 if test $ac_cv_type_socklen_t = yes; then
12318 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12319 echo $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
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"
12333 #include <sys/types.h>
12334 #include <sys/socket.h>
12336 int getpeername (int, $arg2 *, $t *);
12338 #ifdef F77_DUMMY_MAIN
12339 # ifdef __cplusplus
12342 int F77_DUMMY_MAIN() { return 1; }
12349 getpeername(0,0,&len);
12355 rm -f conftest.$ac_objext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>&5
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
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12368 curl_cv_socklen_t_equiv="$t"
12372 echo "$as_me: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12375 rm -f conftest.$ac_objext conftest.$ac_ext
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
12381 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12382 { (exit 1); exit 1; }; }
12387 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
12388 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12390 cat >>confdefs.h <<_ACEOF
12391 @%:@define socklen_t $curl_cv_socklen_t_equiv
12398 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
12399 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
12400 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 #include "confdefs.h"
12406 #include <signal.h>
12408 #ifdef F77_DUMMY_MAIN
12409 # ifdef __cplusplus
12412 int F77_DUMMY_MAIN() { return 1; }
12417 if ((sig_atomic_t *) 0)
12419 if (sizeof (sig_atomic_t))
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>&5
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
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_type_sig_atomic_t=yes
12439 echo "$as_me: failed program was:" >&5
12440 cat conftest.$ac_ext >&5
12441 ac_cv_type_sig_atomic_t=no
12443 rm -f conftest.$ac_objext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
12446 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
12447 if test $ac_cv_type_sig_atomic_t = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450 @%:@define HAVE_SIG_ATOMIC_T 1
12457 echo "$as_me:$LINENO: checking for size_t" >&5
12458 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12459 if test "${ac_cv_have_size_t+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 #include "confdefs.h"
12467 #include <sys/types.h>
12469 #ifdef F77_DUMMY_MAIN
12470 # ifdef __cplusplus
12473 int F77_DUMMY_MAIN() { return 1; }
12478 size_t foo; foo = 1235;
12483 rm -f conftest.$ac_objext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
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
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_have_size_t="yes"
12497 echo "$as_me: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 ac_cv_have_size_t="no"
12502 rm -f conftest.$ac_objext conftest.$ac_ext
12505 echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
12506 echo "${ECHO_T}$ac_cv_have_size_t" >&6
12507 if test "x$ac_cv_have_size_t" = "xyes" ; then
12508 cat >>confdefs.h <<\_ACEOF
12509 @%:@define HAVE_SIZE_T 1
12514 echo "$as_me:$LINENO: checking for ssize_t" >&5
12515 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12516 if test "${ac_cv_have_ssize_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #line $LINENO "configure"
12522 #include "confdefs.h"
12524 #include <sys/types.h>
12526 #ifdef F77_DUMMY_MAIN
12527 # ifdef __cplusplus
12530 int F77_DUMMY_MAIN() { return 1; }
12535 ssize_t foo; foo = 1235;
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>&5
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
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_have_ssize_t="yes"
12554 echo "$as_me: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 ac_cv_have_ssize_t="no"
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
12563 echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
12564 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12565 cat >>confdefs.h <<\_ACEOF
12566 @%:@define HAVE_SSIZE_T 1
12571 echo "$as_me:$LINENO: checking for clock_t" >&5
12572 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12573 if test "${ac_cv_have_clock_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12578 #line $LINENO "configure"
12579 #include "confdefs.h"
12583 #ifdef F77_DUMMY_MAIN
12584 # ifdef __cplusplus
12587 int F77_DUMMY_MAIN() { return 1; }
12592 clock_t foo; foo = 1235;
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
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
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_have_clock_t="yes"
12611 echo "$as_me: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12613 ac_cv_have_clock_t="no"
12616 rm -f conftest.$ac_objext conftest.$ac_ext
12619 echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
12620 echo "${ECHO_T}$ac_cv_have_clock_t" >&6
12621 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12622 cat >>confdefs.h <<\_ACEOF
12623 @%:@define HAVE_CLOCK_T 1
12628 echo "$as_me:$LINENO: checking for sa_family_t" >&5
12629 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
12630 if test "${ac_cv_have_sa_family_t+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12635 #line $LINENO "configure"
12636 #include "confdefs.h"
12638 #include <sys/types.h>
12639 #include <sys/socket.h>
12641 #ifdef F77_DUMMY_MAIN
12642 # ifdef __cplusplus
12645 int F77_DUMMY_MAIN() { return 1; }
12650 sa_family_t foo; foo = 1235;
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
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
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_have_sa_family_t="yes"
12669 echo "$as_me: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12671 cat >conftest.$ac_ext <<_ACEOF
12672 #line $LINENO "configure"
12673 #include "confdefs.h"
12675 #include <sys/types.h>
12676 #include <sys/socket.h>
12677 #include <netinet/in.h>
12679 #ifdef F77_DUMMY_MAIN
12680 # ifdef __cplusplus
12683 int F77_DUMMY_MAIN() { return 1; }
12688 sa_family_t foo; foo = 1235;
12693 rm -f conftest.$ac_objext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
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
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_have_sa_family_t="yes"
12707 echo "$as_me: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 ac_cv_have_sa_family_t="no"
12712 rm -f conftest.$ac_objext conftest.$ac_ext
12715 rm -f conftest.$ac_objext conftest.$ac_ext
12718 echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
12719 echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
12720 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12721 cat >>confdefs.h <<\_ACEOF
12722 @%:@define HAVE_SA_FAMILY_T 1
12727 echo "$as_me:$LINENO: checking for pid_t" >&5
12728 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12729 if test "${ac_cv_have_pid_t+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 cat >conftest.$ac_ext <<_ACEOF
12734 #line $LINENO "configure"
12735 #include "confdefs.h"
12737 #include <sys/types.h>
12739 #ifdef F77_DUMMY_MAIN
12740 # ifdef __cplusplus
12743 int F77_DUMMY_MAIN() { return 1; }
12748 pid_t foo; foo = 1235;
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
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
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_have_pid_t="yes"
12767 echo "$as_me: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12769 ac_cv_have_pid_t="no"
12772 rm -f conftest.$ac_objext conftest.$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
12776 echo "${ECHO_T}$ac_cv_have_pid_t" >&6
12777 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12778 cat >>confdefs.h <<\_ACEOF
12779 @%:@define HAVE_PID_T 1
12784 echo "$as_me:$LINENO: checking for mode_t" >&5
12785 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12786 if test "${ac_cv_have_mode_t+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12794 #include <sys/types.h>
12796 #ifdef F77_DUMMY_MAIN
12797 # ifdef __cplusplus
12800 int F77_DUMMY_MAIN() { return 1; }
12805 mode_t foo; foo = 1235;
12810 rm -f conftest.$ac_objext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>&5
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
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_have_mode_t="yes"
12824 echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 ac_cv_have_mode_t="no"
12829 rm -f conftest.$ac_objext conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
12833 echo "${ECHO_T}$ac_cv_have_mode_t" >&6
12834 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12835 cat >>confdefs.h <<\_ACEOF
12836 @%:@define HAVE_MODE_T 1
12842 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12843 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12844 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 #include "confdefs.h"
12852 #include <sys/types.h>
12853 #include <sys/socket.h>
12855 #ifdef F77_DUMMY_MAIN
12856 # ifdef __cplusplus
12859 int F77_DUMMY_MAIN() { return 1; }
12864 struct sockaddr_storage s;
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
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
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_have_struct_sockaddr_storage="yes"
12883 echo "$as_me: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12885 ac_cv_have_struct_sockaddr_storage="no"
12888 rm -f conftest.$ac_objext conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
12892 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
12893 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12894 cat >>confdefs.h <<\_ACEOF
12895 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
12900 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
12901 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
12902 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 #include "confdefs.h"
12910 #include <sys/types.h>
12911 #include <netinet/in.h>
12913 #ifdef F77_DUMMY_MAIN
12914 # ifdef __cplusplus
12917 int F77_DUMMY_MAIN() { return 1; }
12922 struct sockaddr_in6 s; s.sin6_family = 0;
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
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
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_have_struct_sockaddr_in6="yes"
12941 echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12943 ac_cv_have_struct_sockaddr_in6="no"
12946 rm -f conftest.$ac_objext conftest.$ac_ext
12949 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
12950 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
12951 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12952 cat >>confdefs.h <<\_ACEOF
12953 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
12958 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
12959 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
12960 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12965 #line $LINENO "configure"
12966 #include "confdefs.h"
12968 #include <sys/types.h>
12969 #include <netinet/in.h>
12971 #ifdef F77_DUMMY_MAIN
12972 # ifdef __cplusplus
12975 int F77_DUMMY_MAIN() { return 1; }
12980 struct in6_addr s; s.s6_addr[0] = 0;
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
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
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_have_struct_in6_addr="yes"
12999 echo "$as_me: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 ac_cv_have_struct_in6_addr="no"
13004 rm -f conftest.$ac_objext conftest.$ac_ext
13007 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
13008 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
13009 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13010 cat >>confdefs.h <<\_ACEOF
13011 @%:@define HAVE_STRUCT_IN6_ADDR 1
13016 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13017 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13018 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13026 #include <sys/types.h>
13027 #include <sys/socket.h>
13030 #ifdef F77_DUMMY_MAIN
13031 # ifdef __cplusplus
13034 int F77_DUMMY_MAIN() { return 1; }
13039 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13044 rm -f conftest.$ac_objext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
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
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_have_struct_addrinfo="yes"
13058 echo "$as_me: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13060 ac_cv_have_struct_addrinfo="no"
13063 rm -f conftest.$ac_objext conftest.$ac_ext
13066 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
13067 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
13068 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13069 cat >>confdefs.h <<\_ACEOF
13070 @%:@define HAVE_STRUCT_ADDRINFO 1
13075 echo "$as_me:$LINENO: checking for struct timeval" >&5
13076 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
13077 if test "${ac_cv_have_struct_timeval+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
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
13089 int F77_DUMMY_MAIN() { return 1; }
13094 struct timeval tv; tv.tv_sec = 1;
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
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
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_have_struct_timeval="yes"
13113 echo "$as_me: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13115 ac_cv_have_struct_timeval="no"
13118 rm -f conftest.$ac_objext conftest.$ac_ext
13121 echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
13122 echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
13123 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13124 cat >>confdefs.h <<\_ACEOF
13125 @%:@define HAVE_STRUCT_TIMEVAL 1
13128 have_struct_timeval=1
13131 # If we don't have int64_t then we can't compile sftp-server. So don't
13132 # even attempt to do it.
13133 if 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
13138 if test "$cross_compiling" = yes; then
13139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13140 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13141 { (exit 1); exit 1; }; }
13143 cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13145 #include "confdefs.h"
13148 #include <string.h>
13149 #ifdef HAVE_SNPRINTF
13153 char expected_out[50];
13155 #if (SIZEOF_LONG_INT == 8)
13156 long int num = 0x7fffffffffffffff;
13158 long long num = 0x7fffffffffffffffll;
13160 strcpy(expected_out, "9223372036854775807");
13161 snprintf(buf, mazsize, "%lld", num);
13162 if(strcmp(buf, expected_out) != 0)
13167 main() { exit(0); }
13171 rm -f conftest$ac_exeext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13173 (eval $ac_link) 2>&5
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
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13184 echo "$as_me: program exited with status $ac_status" >&5
13185 echo "$as_me: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 ( exit $ac_status )
13188 cat >>confdefs.h <<\_ACEOF
13189 @%:@define BROKEN_SNPRINTF 1
13194 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
13204 echo $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
13209 cat >conftest.$ac_ext <<_ACEOF
13210 #line $LINENO "configure"
13211 #include "confdefs.h"
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 egrep "ut_host" >/dev/null 2>&1; then
13217 eval "$ossh_varname=yes"
13219 eval "$ossh_varname=no"
13225 ossh_result=`eval 'echo $'"$ossh_varname"`
13226 if test -n "`echo $ossh_varname`"; then
13227 echo "$as_me:$LINENO: result: $ossh_result" >&5
13228 echo "${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
13236 echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6
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
13245 echo $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
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 #include "confdefs.h"
13256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 egrep "ut_host" >/dev/null 2>&1; then
13258 eval "$ossh_varname=yes"
13260 eval "$ossh_varname=no"
13266 ossh_result=`eval 'echo $'"$ossh_varname"`
13267 if test -n "`echo $ossh_varname`"; then
13268 echo "$as_me:$LINENO: result: $ossh_result" >&5
13269 echo "${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
13277 echo "$as_me:$LINENO: result: no" >&5
13278 echo "${ECHO_T}no" >&6
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
13286 echo $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
13291 cat >conftest.$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 #include "confdefs.h"
13297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298 egrep "syslen" >/dev/null 2>&1; then
13299 eval "$ossh_varname=yes"
13301 eval "$ossh_varname=no"
13307 ossh_result=`eval 'echo $'"$ossh_varname"`
13308 if test -n "`echo $ossh_varname`"; then
13309 echo "$as_me:$LINENO: result: $ossh_result" >&5
13310 echo "${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
13318 echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6
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
13327 echo $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
13332 cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 #include "confdefs.h"
13338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 egrep "ut_pid" >/dev/null 2>&1; then
13340 eval "$ossh_varname=yes"
13342 eval "$ossh_varname=no"
13348 ossh_result=`eval 'echo $'"$ossh_varname"`
13349 if test -n "`echo $ossh_varname`"; then
13350 echo "$as_me:$LINENO: result: $ossh_result" >&5
13351 echo "${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
13359 echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6
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
13368 echo $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
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line $LINENO "configure"
13375 #include "confdefs.h"
13379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13380 egrep "ut_type" >/dev/null 2>&1; then
13381 eval "$ossh_varname=yes"
13383 eval "$ossh_varname=no"
13389 ossh_result=`eval 'echo $'"$ossh_varname"`
13390 if test -n "`echo $ossh_varname`"; then
13391 echo "$as_me:$LINENO: result: $ossh_result" >&5
13392 echo "${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
13400 echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6
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
13409 echo $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
13414 cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13416 #include "confdefs.h"
13420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "ut_type" >/dev/null 2>&1; then
13422 eval "$ossh_varname=yes"
13424 eval "$ossh_varname=no"
13430 ossh_result=`eval 'echo $'"$ossh_varname"`
13431 if test -n "`echo $ossh_varname`"; then
13432 echo "$as_me:$LINENO: result: $ossh_result" >&5
13433 echo "${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
13441 echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6
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
13450 echo $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
13455 cat >conftest.$ac_ext <<_ACEOF
13456 #line $LINENO "configure"
13457 #include "confdefs.h"
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 egrep "ut_tv" >/dev/null 2>&1; then
13463 eval "$ossh_varname=yes"
13465 eval "$ossh_varname=no"
13471 ossh_result=`eval 'echo $'"$ossh_varname"`
13472 if test -n "`echo $ossh_varname`"; then
13473 echo "$as_me:$LINENO: result: $ossh_result" >&5
13474 echo "${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
13482 echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
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
13491 echo $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
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 #include "confdefs.h"
13502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13503 egrep "ut_id" >/dev/null 2>&1; then
13504 eval "$ossh_varname=yes"
13506 eval "$ossh_varname=no"
13512 ossh_result=`eval 'echo $'"$ossh_varname"`
13513 if test -n "`echo $ossh_varname`"; then
13514 echo "$as_me:$LINENO: result: $ossh_result" >&5
13515 echo "${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
13523 echo "$as_me:$LINENO: result: no" >&5
13524 echo "${ECHO_T}no" >&6
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
13532 echo $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
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13539 #include "confdefs.h"
13543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13544 egrep "ut_id" >/dev/null 2>&1; then
13545 eval "$ossh_varname=yes"
13547 eval "$ossh_varname=no"
13553 ossh_result=`eval 'echo $'"$ossh_varname"`
13554 if test -n "`echo $ossh_varname`"; then
13555 echo "$as_me:$LINENO: result: $ossh_result" >&5
13556 echo "${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
13564 echo "$as_me:$LINENO: result: no" >&5
13565 echo "${ECHO_T}no" >&6
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
13573 echo $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
13578 cat >conftest.$ac_ext <<_ACEOF
13579 #line $LINENO "configure"
13580 #include "confdefs.h"
13584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13585 egrep "ut_addr" >/dev/null 2>&1; then
13586 eval "$ossh_varname=yes"
13588 eval "$ossh_varname=no"
13594 ossh_result=`eval 'echo $'"$ossh_varname"`
13595 if test -n "`echo $ossh_varname`"; then
13596 echo "$as_me:$LINENO: result: $ossh_result" >&5
13597 echo "${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
13605 echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
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
13614 echo $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
13619 cat >conftest.$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13621 #include "confdefs.h"
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 egrep "ut_addr" >/dev/null 2>&1; then
13627 eval "$ossh_varname=yes"
13629 eval "$ossh_varname=no"
13635 ossh_result=`eval 'echo $'"$ossh_varname"`
13636 if test -n "`echo $ossh_varname`"; then
13637 echo "$as_me:$LINENO: result: $ossh_result" >&5
13638 echo "${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
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
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
13655 echo $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
13660 cat >conftest.$ac_ext <<_ACEOF
13661 #line $LINENO "configure"
13662 #include "confdefs.h"
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "ut_addr_v6" >/dev/null 2>&1; then
13668 eval "$ossh_varname=yes"
13670 eval "$ossh_varname=no"
13676 ossh_result=`eval 'echo $'"$ossh_varname"`
13677 if test -n "`echo $ossh_varname`"; then
13678 echo "$as_me:$LINENO: result: $ossh_result" >&5
13679 echo "${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
13687 echo "$as_me:$LINENO: result: no" >&5
13688 echo "${ECHO_T}no" >&6
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
13696 echo $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
13701 cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13703 #include "confdefs.h"
13707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13708 egrep "ut_addr_v6" >/dev/null 2>&1; then
13709 eval "$ossh_varname=yes"
13711 eval "$ossh_varname=no"
13717 ossh_result=`eval 'echo $'"$ossh_varname"`
13718 if test -n "`echo $ossh_varname`"; then
13719 echo "$as_me:$LINENO: result: $ossh_result" >&5
13720 echo "${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
13728 echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6
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
13737 echo $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
13742 cat >conftest.$ac_ext <<_ACEOF
13743 #line $LINENO "configure"
13744 #include "confdefs.h"
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 egrep "ut_exit" >/dev/null 2>&1; then
13750 eval "$ossh_varname=yes"
13752 eval "$ossh_varname=no"
13758 ossh_result=`eval 'echo $'"$ossh_varname"`
13759 if test -n "`echo $ossh_varname`"; then
13760 echo "$as_me:$LINENO: result: $ossh_result" >&5
13761 echo "${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
13769 echo "$as_me:$LINENO: result: no" >&5
13770 echo "${ECHO_T}no" >&6
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
13778 echo $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
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13785 #include "confdefs.h"
13789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 egrep "ut_time" >/dev/null 2>&1; then
13791 eval "$ossh_varname=yes"
13793 eval "$ossh_varname=no"
13799 ossh_result=`eval 'echo $'"$ossh_varname"`
13800 if test -n "`echo $ossh_varname`"; then
13801 echo "$as_me:$LINENO: result: $ossh_result" >&5
13802 echo "${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
13810 echo "$as_me:$LINENO: result: no" >&5
13811 echo "${ECHO_T}no" >&6
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
13819 echo $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
13824 cat >conftest.$ac_ext <<_ACEOF
13825 #line $LINENO "configure"
13826 #include "confdefs.h"
13830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 egrep "ut_time" >/dev/null 2>&1; then
13832 eval "$ossh_varname=yes"
13834 eval "$ossh_varname=no"
13840 ossh_result=`eval 'echo $'"$ossh_varname"`
13841 if test -n "`echo $ossh_varname`"; then
13842 echo "$as_me:$LINENO: result: $ossh_result" >&5
13843 echo "${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
13851 echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6
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
13860 echo $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
13865 cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13867 #include "confdefs.h"
13871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13872 egrep "ut_tv" >/dev/null 2>&1; then
13873 eval "$ossh_varname=yes"
13875 eval "$ossh_varname=no"
13881 ossh_result=`eval 'echo $'"$ossh_varname"`
13882 if test -n "`echo $ossh_varname`"; then
13883 echo "$as_me:$LINENO: result: $ossh_result" >&5
13884 echo "${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
13892 echo "$as_me:$LINENO: result: no" >&5
13893 echo "${ECHO_T}no" >&6
13897 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13898 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13899 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
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
13910 int F77_DUMMY_MAIN() { return 1; }
13915 static struct stat ac_aggr;
13916 if (ac_aggr.st_blksize)
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
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
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_member_struct_stat_st_blksize=yes
13936 echo "$as_me: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 ac_cv_member_struct_stat_st_blksize=no
13940 rm -f conftest.$ac_objext conftest.$ac_ext
13942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13943 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13944 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13946 cat >>confdefs.h <<_ACEOF
13947 @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13954 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
13955 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
13956 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13961 #line $LINENO "configure"
13962 #include "confdefs.h"
13964 #include <sys/types.h>
13965 #include <sys/socket.h>
13967 #ifdef F77_DUMMY_MAIN
13968 # ifdef __cplusplus
13971 int F77_DUMMY_MAIN() { return 1; }
13976 struct sockaddr_storage s; s.ss_family = 1;
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>&5
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
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_have_ss_family_in_struct_ss="yes"
13995 echo "$as_me: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 ac_cv_have_ss_family_in_struct_ss="no"
13999 rm -f conftest.$ac_objext conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14003 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
14004 if 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
14011 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
14012 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
14013 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14019 #include "confdefs.h"
14021 #include <sys/types.h>
14022 #include <sys/socket.h>
14024 #ifdef F77_DUMMY_MAIN
14025 # ifdef __cplusplus
14028 int F77_DUMMY_MAIN() { return 1; }
14033 struct sockaddr_storage s; s.__ss_family = 1;
14038 rm -f conftest.$ac_objext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
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
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_have___ss_family_in_struct_ss="yes"
14052 echo "$as_me: failed program was:" >&5
14053 cat conftest.$ac_ext >&5
14054 ac_cv_have___ss_family_in_struct_ss="no"
14057 rm -f conftest.$ac_objext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14061 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
14062 if 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
14069 echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
14070 echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6
14071 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 #include "confdefs.h"
14081 #ifdef F77_DUMMY_MAIN
14082 # ifdef __cplusplus
14085 int F77_DUMMY_MAIN() { return 1; }
14090 struct passwd p; p.pw_class = 0;
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
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
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_have_pw_class_in_struct_passwd="yes"
14109 echo "$as_me: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 ac_cv_have_pw_class_in_struct_passwd="no"
14114 rm -f conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14118 echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6
14119 if 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
14126 echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
14127 echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6
14128 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14133 #line $LINENO "configure"
14134 #include "confdefs.h"
14138 #ifdef F77_DUMMY_MAIN
14139 # ifdef __cplusplus
14142 int F77_DUMMY_MAIN() { return 1; }
14147 struct passwd p; p.pw_expire = 0;
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>&5
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
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_have_pw_expire_in_struct_passwd="yes"
14166 echo "$as_me: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 ac_cv_have_pw_expire_in_struct_passwd="no"
14171 rm -f conftest.$ac_objext conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14175 echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6
14176 if 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
14183 echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
14184 echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6
14185 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14191 #include "confdefs.h"
14195 #ifdef F77_DUMMY_MAIN
14196 # ifdef __cplusplus
14199 int F77_DUMMY_MAIN() { return 1; }
14204 struct passwd p; p.pw_change = 0;
14209 rm -f conftest.$ac_objext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
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
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 ac_cv_have_pw_change_in_struct_passwd="yes"
14223 echo "$as_me: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14225 ac_cv_have_pw_change_in_struct_passwd="no"
14228 rm -f conftest.$ac_objext conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14232 echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6
14233 if 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
14240 echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
14241 echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6
14242 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 if test "$cross_compiling" = yes; then
14247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14248 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14249 { (exit 1); exit 1; }; }
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14255 #include <sys/types.h>
14256 #include <sys/socket.h>
14257 #include <sys/uio.h>
14259 #ifdef msg_accrights
14263 m.msg_accrights = 0;
14268 rm -f conftest$ac_exeext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14270 (eval $ac_link) 2>&5
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
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_have_accrights_in_msghdr="yes"
14281 echo "$as_me: program exited with status $ac_status" >&5
14282 echo "$as_me: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 ( exit $ac_status )
14285 ac_cv_have_accrights_in_msghdr="no"
14288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14292 echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
14293 echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6
14294 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14295 cat >>confdefs.h <<\_ACEOF
14296 @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1
14301 echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
14302 echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6
14303 if test "${ac_cv_have_control_in_msghdr+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 if test "$cross_compiling" = yes; then
14308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14309 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14310 { (exit 1); exit 1; }; }
14312 cat >conftest.$ac_ext <<_ACEOF
14313 #line $LINENO "configure"
14314 #include "confdefs.h"
14316 #include <sys/types.h>
14317 #include <sys/socket.h>
14318 #include <sys/uio.h>
14329 rm -f conftest$ac_exeext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>&5
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
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_have_control_in_msghdr="yes"
14342 echo "$as_me: program exited with status $ac_status" >&5
14343 echo "$as_me: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 ( exit $ac_status )
14346 ac_cv_have_control_in_msghdr="no"
14349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14353 echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
14354 echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6
14355 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14356 cat >>confdefs.h <<\_ACEOF
14357 @%:@define HAVE_CONTROL_IN_MSGHDR 1
14362 echo "$as_me:$LINENO: checking if libc defines __progname" >&5
14363 echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
14364 if test "${ac_cv_libc_defines___progname+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cat >conftest.$ac_ext <<_ACEOF
14369 #line $LINENO "configure"
14370 #include "confdefs.h"
14372 #ifdef F77_DUMMY_MAIN
14373 # ifdef __cplusplus
14376 int F77_DUMMY_MAIN() { return 1; }
14381 extern char *__progname; printf("%s", __progname);
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388 (eval $ac_link) 2>&5
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
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_libc_defines___progname="yes"
14400 echo "$as_me: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 ac_cv_libc_defines___progname="no"
14405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
14409 echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
14410 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14411 cat >>confdefs.h <<\_ACEOF
14412 @%:@define HAVE___PROGNAME 1
14417 echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
14418 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
14419 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14425 #include "confdefs.h"
14429 #ifdef F77_DUMMY_MAIN
14430 # ifdef __cplusplus
14433 int F77_DUMMY_MAIN() { return 1; }
14438 printf("%s", __FUNCTION__);
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>&5
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
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_cc_implements___FUNCTION__="yes"
14457 echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 ac_cv_cc_implements___FUNCTION__="no"
14462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14465 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
14466 echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6
14467 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14468 cat >>confdefs.h <<\_ACEOF
14469 @%:@define HAVE___FUNCTION__ 1
14474 echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
14475 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
14476 if test "${ac_cv_cc_implements___func__+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14481 #line $LINENO "configure"
14482 #include "confdefs.h"
14486 #ifdef F77_DUMMY_MAIN
14487 # ifdef __cplusplus
14490 int F77_DUMMY_MAIN() { return 1; }
14495 printf("%s", __func__);
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>&5
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
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_cc_implements___func__="yes"
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 ac_cv_cc_implements___func__="no"
14519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
14523 echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6
14524 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14525 cat >>confdefs.h <<\_ACEOF
14526 @%:@define HAVE___func__ 1
14531 echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
14532 echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6
14533 if test "${ac_cv_have_getopt_optreset+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 cat >conftest.$ac_ext <<_ACEOF
14538 #line $LINENO "configure"
14539 #include "confdefs.h"
14541 #include <getopt.h>
14543 #ifdef F77_DUMMY_MAIN
14544 # ifdef __cplusplus
14547 int F77_DUMMY_MAIN() { return 1; }
14552 extern int optreset; optreset = 0;
14557 rm -f conftest.$ac_objext conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
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
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_have_getopt_optreset="yes"
14571 echo "$as_me: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 ac_cv_have_getopt_optreset="no"
14576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14579 echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
14580 echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6
14581 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14582 cat >>confdefs.h <<\_ACEOF
14583 @%:@define HAVE_GETOPT_OPTRESET 1
14588 echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
14589 echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
14590 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >conftest.$ac_ext <<_ACEOF
14595 #line $LINENO "configure"
14596 #include "confdefs.h"
14598 #ifdef F77_DUMMY_MAIN
14599 # ifdef __cplusplus
14602 int F77_DUMMY_MAIN() { return 1; }
14607 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
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
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_libc_defines_sys_errlist="yes"
14626 echo "$as_me: failed program was:" >&5
14627 cat conftest.$ac_ext >&5
14628 ac_cv_libc_defines_sys_errlist="no"
14631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14634 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
14635 echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
14636 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14637 cat >>confdefs.h <<\_ACEOF
14638 @%:@define HAVE_SYS_ERRLIST 1
14644 echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
14645 echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
14646 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14651 #line $LINENO "configure"
14652 #include "confdefs.h"
14654 #ifdef F77_DUMMY_MAIN
14655 # ifdef __cplusplus
14658 int F77_DUMMY_MAIN() { return 1; }
14663 extern int sys_nerr; printf("%i", sys_nerr);
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
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
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_libc_defines_sys_nerr="yes"
14682 echo "$as_me: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 ac_cv_libc_defines_sys_nerr="no"
14687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690 echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
14691 echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
14692 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14693 cat >>confdefs.h <<\_ACEOF
14694 @%:@define HAVE_SYS_NERR 1
14701 # Check whether user wants sectok support
14703 # Check whether --with-sectok or --without-sectok was given.
14704 if test "${with_sectok+set}" = set; then
14705 withval="$with_sectok"
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}"
14714 if test ! -z "$blibpath" ; then
14715 blibpath="$blibpath:${withval}"
14719 for ac_header in sectok.h
14721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo "$as_me:$LINENO: checking for $ac_header" >&5
14724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14731 # Is the header compilable?
14732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14734 cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14736 #include "confdefs.h"
14737 $ac_includes_default
14738 @%:@include <$ac_header>
14740 rm -f conftest.$ac_objext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
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
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_header_compiler=yes
14754 echo "$as_me: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 ac_header_compiler=no
14758 rm -f conftest.$ac_objext conftest.$ac_ext
14759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760 echo "${ECHO_T}$ac_header_compiler" >&6
14762 # Is the header present?
14763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14765 cat >conftest.$ac_ext <<_ACEOF
14766 #line $LINENO "configure"
14767 #include "confdefs.h"
14768 @%:@include <$ac_header>
14770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14773 egrep -v '^ *\+' conftest.er1 >conftest.err
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
14786 if test -z "$ac_cpp_err"; then
14787 ac_header_preproc=yes
14789 echo "$as_me: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14791 ac_header_preproc=no
14793 rm -f conftest.err conftest.$ac_ext
14794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14795 echo "${ECHO_T}$ac_header_preproc" >&6
14797 # So? What about this header?
14798 case $ac_header_compiler:$ac_header_preproc in
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14801 echo "$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
14803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14806 echo "$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
14808 echo "$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
14810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14812 echo "$as_me:$LINENO: checking for $ac_header" >&5
14813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 eval "$as_ac_Header=$ac_header_preproc"
14819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14832 if test "$ac_cv_header_sectok_h" != yes; then
14833 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
14834 echo "$as_me: error: Can't find sectok.h" >&2;}
14835 { (exit 1); exit 1; }; }
14838 echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
14839 echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6
14840 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 ac_check_lib_save_LIBS=$LIBS
14844 LIBS="-lsectok $LIBS"
14845 cat >conftest.$ac_ext <<_ACEOF
14846 #line $LINENO "configure"
14847 #include "confdefs.h"
14849 /* Override any gcc2 internal prototype to avoid an error. */
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char sectok_open ();
14856 #ifdef F77_DUMMY_MAIN
14857 # ifdef __cplusplus
14860 int F77_DUMMY_MAIN() { return 1; }
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
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
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_lib_sectok_sectok_open=yes
14884 echo "$as_me: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 ac_cv_lib_sectok_sectok_open=no
14888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14889 LIBS=$ac_check_lib_save_LIBS
14891 echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
14892 echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6
14893 if test $ac_cv_lib_sectok_sectok_open = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 @%:@define HAVE_LIBSECTOK 1
14898 LIBS="-lsectok $LIBS"
14902 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14903 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5
14904 echo "$as_me: error: Can't find libsectok" >&2;}
14905 { (exit 1); exit 1; }; }
14907 cat >>confdefs.h <<\_ACEOF
14908 @%:@define SMARTCARD 1
14911 cat >>confdefs.h <<\_ACEOF
14912 @%:@define USE_SECTOK 1
14915 SCARD_MSG="yes, using sectok"
14921 # Check whether user wants OpenSC support
14923 # Check whether --with-opensc or --without-opensc was given.
14924 if test "${with_opensc+set}" = set; then
14925 withval="$with_opensc"
14926 opensc_config_prefix="$withval"
14928 opensc_config_prefix=""
14930 if 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.
14933 set dummy opensc-config; ac_word=$2
14934 echo "$as_me:$LINENO: checking for $ac_word" >&5
14935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14936 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 case $OPENSC_CONFIG in
14941 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945 for as_dir in $PATH
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
14958 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14962 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14964 if test -n "$OPENSC_CONFIG"; then
14965 echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
14966 echo "${ECHO_T}$OPENSC_CONFIG" >&6
14968 echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6
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
14981 cat >>confdefs.h <<\_ACEOF
14982 @%:@define USE_OPENSC 1
14985 SCARD_MSG="yes, using OpenSC"
14989 # Check whether user wants Kerberos 5 support
14992 # Check whether --with-kerberos5 or --without-kerberos5 was given.
14993 if test "${with_kerberos5+set}" = set; then
14994 withval="$with_kerberos5"
14996 if test "x$withval" != "xno" ; then
14997 if test "x$withval" = "xyes" ; then
14998 KRB5ROOT="/usr/local"
15000 KRB5ROOT=${withval}
15002 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15003 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15004 cat >>confdefs.h <<\_ACEOF
15009 echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
15010 echo $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"
15015 #ifdef F77_DUMMY_MAIN
15016 # ifdef __cplusplus
15019 int F77_DUMMY_MAIN() { return 1; }
15024 char *tmp = heimdal_version;
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
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
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 echo "$as_me:$LINENO: result: yes" >&5
15042 echo "${ECHO_T}yes" >&6
15043 cat >>confdefs.h <<\_ACEOF
15044 @%:@define HEIMDAL 1
15047 K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken"
15050 echo "$as_me: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 echo "$as_me:$LINENO: result: no" >&5
15053 echo "${ECHO_T}no" >&6
15054 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15058 rm -f conftest.$ac_objext conftest.$ac_ext
15059 if test ! -z "$need_dash_r" ; then
15060 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15062 if test ! -z "$blibpath" ; then
15063 blibpath="$blibpath:${KRB5ROOT}/lib"
15066 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15067 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15068 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-lresolv $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 #include "confdefs.h"
15077 /* Override any gcc2 internal prototype to avoid an error. */
15081 /* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15084 #ifdef F77_DUMMY_MAIN
15085 # ifdef __cplusplus
15088 int F77_DUMMY_MAIN() { return 1; }
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>&5
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
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_lib_resolv_dn_expand=yes
15112 echo "$as_me: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15114 ac_cv_lib_resolv_dn_expand=no
15116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15120 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15121 if test $ac_cv_lib_resolv_dn_expand = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123 @%:@define HAVE_LIBRESOLV 1
15126 LIBS="-lresolv $LIBS"
15136 # Check whether user wants Kerberos 4 support
15139 # Check whether --with-kerberos4 or --without-kerberos4 was given.
15140 if test "${with_kerberos4+set}" = set; then
15141 withval="$with_kerberos4"
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"
15150 if test ! -z "$blibpath" ; then
15151 blibpath="$blibpath:${withval}/lib"
15154 if test -d /usr/include/kerberosIV ; then
15155 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
15160 for ac_header in krb.h
15162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15172 # Is the header compilable?
15173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15176 #line $LINENO "configure"
15177 #include "confdefs.h"
15178 $ac_includes_default
15179 @%:@include <$ac_header>
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
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
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15195 echo "$as_me: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 ac_header_compiler=no
15199 rm -f conftest.$ac_objext conftest.$ac_ext
15200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201 echo "${ECHO_T}$ac_header_compiler" >&6
15203 # Is the header present?
15204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 #include "confdefs.h"
15209 @%:@include <$ac_header>
15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15214 egrep -v '^ *\+' conftest.er1 >conftest.err
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
15227 if test -z "$ac_cpp_err"; then
15228 ac_header_preproc=yes
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 ac_header_preproc=no
15234 rm -f conftest.err conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc in
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$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
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15247 echo "$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
15249 echo "$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
15251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15253 echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 eval "$as_ac_Header=$ac_header_preproc"
15260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15273 if test "$ac_cv_header_krb_h" != yes; then
15274 { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5
15275 echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;}
15278 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
15279 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
15280 if test "${ac_cv_lib_krb_main+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 ac_check_lib_save_LIBS=$LIBS
15285 cat >conftest.$ac_ext <<_ACEOF
15286 #line $LINENO "configure"
15287 #include "confdefs.h"
15290 #ifdef F77_DUMMY_MAIN
15291 # ifdef __cplusplus
15294 int F77_DUMMY_MAIN() { return 1; }
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>&5
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
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_lib_krb_main=yes
15318 echo "$as_me: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15320 ac_cv_lib_krb_main=no
15322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
15326 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
15327 if test $ac_cv_lib_krb_main = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 @%:@define HAVE_LIBKRB 1
15336 if test "$ac_cv_lib_krb_main" != yes; then
15338 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
15339 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
15340 if test "${ac_cv_lib_krb4_main+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 ac_check_lib_save_LIBS=$LIBS
15344 LIBS="-lkrb4 $LIBS"
15345 cat >conftest.$ac_ext <<_ACEOF
15346 #line $LINENO "configure"
15347 #include "confdefs.h"
15350 #ifdef F77_DUMMY_MAIN
15351 # ifdef __cplusplus
15354 int F77_DUMMY_MAIN() { return 1; }
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>&5
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
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_krb4_main=yes
15378 echo "$as_me: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 ac_cv_lib_krb4_main=no
15382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
15386 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
15387 if test $ac_cv_lib_krb4_main = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 @%:@define HAVE_LIBKRB4 1
15392 LIBS="-lkrb4 $LIBS"
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
15398 echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;}
15406 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15407 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15408 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 ac_check_lib_save_LIBS=$LIBS
15413 cat >conftest.$ac_ext <<_ACEOF
15414 #line $LINENO "configure"
15415 #include "confdefs.h"
15417 /* Override any gcc2 internal prototype to avoid an error. */
15421 /* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423 char des_cbc_encrypt ();
15424 #ifdef F77_DUMMY_MAIN
15425 # ifdef __cplusplus
15428 int F77_DUMMY_MAIN() { return 1; }
15433 des_cbc_encrypt ();
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
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
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_des_des_cbc_encrypt=yes
15452 echo "$as_me: failed program was:" >&5
15453 cat conftest.$ac_ext >&5
15454 ac_cv_lib_des_des_cbc_encrypt=no
15456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15457 LIBS=$ac_check_lib_save_LIBS
15459 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15460 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15461 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15462 cat >>confdefs.h <<_ACEOF
15463 @%:@define HAVE_LIBDES 1
15470 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
15472 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15473 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15474 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 ac_check_lib_save_LIBS=$LIBS
15478 LIBS="-ldes425 $LIBS"
15479 cat >conftest.$ac_ext <<_ACEOF
15480 #line $LINENO "configure"
15481 #include "confdefs.h"
15483 /* Override any gcc2 internal prototype to avoid an error. */
15487 /* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15489 char des_cbc_encrypt ();
15490 #ifdef F77_DUMMY_MAIN
15491 # ifdef __cplusplus
15494 int F77_DUMMY_MAIN() { return 1; }
15499 des_cbc_encrypt ();
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
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
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_lib_des425_des_cbc_encrypt=yes
15518 echo "$as_me: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 ac_cv_lib_des425_des_cbc_encrypt=no
15522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15525 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15526 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15527 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529 @%:@define HAVE_LIBDES425 1
15532 LIBS="-ldes425 $LIBS"
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
15538 echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;}
15546 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
15547 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
15548 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lresolv $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 #line $LINENO "configure"
15555 #include "confdefs.h"
15557 /* Override any gcc2 internal prototype to avoid an error. */
15561 /* We use char because int might match the return type of a gcc2
15562 builtin and then its argument prototype would still apply. */
15564 #ifdef F77_DUMMY_MAIN
15565 # ifdef __cplusplus
15568 int F77_DUMMY_MAIN() { return 1; }
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580 (eval $ac_link) 2>&5
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
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_cv_lib_resolv_dn_expand=yes
15592 echo "$as_me: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 ac_cv_lib_resolv_dn_expand=no
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15599 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
15600 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
15601 if test $ac_cv_lib_resolv_dn_expand = yes; then
15602 cat >>confdefs.h <<_ACEOF
15603 @%:@define HAVE_LIBRESOLV 1
15606 LIBS="-lresolv $LIBS"
15612 cat >>confdefs.h <<\_ACEOF
15621 # Check whether user wants AFS support
15624 # Check whether --with-afs or --without-afs was given.
15625 if test "${with_afs+set}" = set; then
15626 withval="$with_afs"
15628 if test "x$withval" != "xno" ; then
15630 if test "x$withval" != "xyes" ; then
15631 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15632 LDFLAGS="$LDFLAGS -L${withval}/lib"
15635 if test -z "$KRB4" ; then
15636 { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5
15637 echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;}
15640 LIBS="-lkafs $LIBS"
15641 if test ! -z "$AFS_LIBS" ; then
15642 LIBS="$LIBS $AFS_LIBS"
15644 cat >>confdefs.h <<\_ACEOF
15653 LIBS="$LIBS $KLIBS $K5LIBS"
15655 # Looking for programs, paths and files
15657 PRIVSEP_PATH=/var/empty
15659 # Check whether --with-privsep-path or --without-privsep-path was given.
15660 if test "${with_privsep_path+set}" = set; then
15661 withval="$with_privsep_path"
15663 if test "x$withval" != "$no" ; then
15664 PRIVSEP_PATH=$withval
15672 # Check whether --with-xauth or --without-xauth was given.
15673 if test "${with_xauth+set}" = set; then
15674 withval="$with_xauth"
15676 if test "x$withval" != "xno" ; then
15677 xauth_path=$withval
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.
15688 set dummy xauth; ac_word=$2
15689 echo "$as_me:$LINENO: checking for $ac_word" >&5
15690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15691 if test "${ac_cv_path_xauth_path+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 case $xauth_path in
15696 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $TestPath
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
15716 xauth_path=$ac_cv_path_xauth_path
15718 if test -n "$xauth_path"; then
15719 echo "$as_me:$LINENO: result: $xauth_path" >&5
15720 echo "${ECHO_T}$xauth_path" >&6
15722 echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6
15726 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15727 xauth_path="/usr/openwin/bin/xauth"
15733 if test -z "$xauth_path" ; then
15734 XAUTH_PATH="undefined"
15737 cat >>confdefs.h <<_ACEOF
15738 @%:@define XAUTH_PATH "$xauth_path"
15741 XAUTH_PATH=$xauth_path
15745 # Check for mail directory (last resort if we cannot get it from headers)
15746 if test ! -z "$MAIL" ; then
15747 maildir=`dirname $MAIL`
15748 cat >>confdefs.h <<_ACEOF
15749 @%:@define MAIL_DIRECTORY "$maildir"
15754 if 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
15757 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6
15758 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 test "$cross_compiling" = yes &&
15762 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15763 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15764 { (exit 1); exit 1; }; }
15765 if test -r ""/dev/ptmx""; then
15766 ac_cv_file___dev_ptmx_=yes
15768 ac_cv_file___dev_ptmx_=no
15771 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
15772 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6
15773 if test $ac_cv_file___dev_ptmx_ = yes; then
15775 cat >>confdefs.h <<_ACEOF
15776 @%:@define HAVE_DEV_PTMX 1
15786 echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
15787 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6
15788 if test "${ac_cv_file___dev_ptc_+set}" = set; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 test "$cross_compiling" = yes &&
15792 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15793 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15794 { (exit 1); exit 1; }; }
15795 if test -r ""/dev/ptc""; then
15796 ac_cv_file___dev_ptc_=yes
15798 ac_cv_file___dev_ptc_=no
15801 echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
15802 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6
15803 if test $ac_cv_file___dev_ptc_ = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 @%:@define HAVE_DEV_PTS_AND_PTC 1
15815 # Options from here on. Some of these are preset by platform above
15817 # Check whether --with-mantype or --without-mantype was given.
15818 if test "${with_mantype+set}" = set; then
15819 withval="$with_mantype"
15826 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
15827 echo "$as_me: error: invalid man type: $withval" >&2;}
15828 { (exit 1); exit 1; }; }
15834 if test -z "$MANTYPE"; then
15835 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15836 for ac_prog in nroff awf
15838 # Extract the first word of "$ac_prog", so it can be a program name with args.
15839 set dummy $ac_prog; ac_word=$2
15840 echo "$as_me:$LINENO: checking for $ac_word" >&5
15841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15842 if test "${ac_cv_path_NROFF+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851 for as_dir in $TestPath
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
15867 NROFF=$ac_cv_path_NROFF
15869 if test -n "$NROFF"; then
15870 echo "$as_me:$LINENO: result: $NROFF" >&5
15871 echo "${ECHO_T}$NROFF" >&6
15873 echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6
15877 test -n "$NROFF" && break
15879 test -n "$NROFF" || NROFF="/bin/false"
15881 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15883 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15890 if test "$MANTYPE" = "doc"; then
15893 mansubdir=$MANTYPE;
15897 # Check whether to enable MD5 passwords
15900 # Check whether --with-md5-passwords or --without-md5-passwords was given.
15901 if test "${with_md5_passwords+set}" = set; then
15902 withval="$with_md5_passwords"
15904 if test "x$withval" != "xno" ; then
15905 cat >>confdefs.h <<\_ACEOF
15906 @%:@define HAVE_MD5_PASSWORDS 1
15915 # Whether to disable shadow password support
15917 # Check whether --with-shadow or --without-shadow was given.
15918 if test "${with_shadow+set}" = set; then
15919 withval="$with_shadow"
15921 if test "x$withval" = "xno" ; then
15922 cat >>confdefs.h <<\_ACEOF
15923 @%:@define DISABLE_SHADOW 1
15932 if test -z "$disable_shadow" ; then
15933 echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
15934 echo $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"
15939 #include <sys/types.h>
15940 #include <shadow.h>
15943 #ifdef F77_DUMMY_MAIN
15944 # ifdef __cplusplus
15947 int F77_DUMMY_MAIN() { return 1; }
15952 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15957 rm -f conftest.$ac_objext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
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
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 sp_expire_available=yes
15971 echo "$as_me: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15976 rm -f conftest.$ac_objext conftest.$ac_ext
15978 if test "x$sp_expire_available" = "xyes" ; then
15979 echo "$as_me:$LINENO: result: yes" >&5
15980 echo "${ECHO_T}yes" >&6
15981 cat >>confdefs.h <<\_ACEOF
15982 @%:@define HAS_SHADOW_EXPIRE 1
15986 echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6
15991 # Use ip address instead of hostname in $DISPLAY
15992 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15993 DISPLAY_HACK_MSG="yes"
15994 cat >>confdefs.h <<\_ACEOF
15995 @%:@define IPADDR_IN_DISPLAY 1
15999 DISPLAY_HACK_MSG="no"
16001 # Check whether --with-ipaddr-display or --without-ipaddr-display was given.
16002 if test "${with_ipaddr_display+set}" = set; then
16003 withval="$with_ipaddr_display"
16005 if test "x$withval" != "xno" ; then
16006 cat >>confdefs.h <<\_ACEOF
16007 @%:@define IPADDR_IN_DISPLAY 1
16010 DISPLAY_HACK_MSG="yes"
16017 if test $ac_cv_func_login_getcapbool = "yes" -a \
16018 $ac_cv_header_login_cap_h = "yes" ; then
16019 USES_LOGIN_CONF=yes
16021 # Whether to mess with the default path
16022 SERVER_PATH_MSG="(default)"
16024 # Check whether --with-default-path or --without-default-path was given.
16025 if test "${with_default_path+set}" = set; then
16026 withval="$with_default_path"
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.
16031 Edit /etc/login.conf instead." >&5
16032 echo "$as_me: WARNING:
16033 --with-default-path=PATH has no effect on this system.
16034 Edit /etc/login.conf instead." >&2;}
16035 elif test "x$withval" != "xno" ; then
16036 user_path="$withval"
16037 SERVER_PATH_MSG="$withval"
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
16043 echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16045 if test "$cross_compiling" = yes; then
16046 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 #line $LINENO "configure"
16051 #include "confdefs.h"
16053 /* find out what STDPATH is */
16055 #ifdef HAVE_PATHS_H
16056 # include <paths.h>
16058 #ifndef _PATH_STDPATH
16059 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16061 #include <sys/types.h>
16062 #include <sys/stat.h>
16064 #define DATA "conftest.stdpath"
16071 fd = fopen(DATA,"w");
16075 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16082 rm -f conftest$ac_exeext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16084 (eval $ac_link) 2>&5
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
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 user_path=`cat conftest.stdpath`
16095 echo "$as_me: program exited with status $ac_status" >&5
16096 echo "$as_me: failed program was:" >&5
16097 cat conftest.$ac_ext >&5
16098 ( exit $ac_status )
16099 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16103 # make sure $bindir is in USER_PATH so scp will work
16104 t_bindir=`eval echo ${bindir}`
16106 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16109 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
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
16117 echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6
16123 if test "$USES_LOGIN_CONF" != "yes" ; then
16124 cat >>confdefs.h <<_ACEOF
16125 @%:@define USER_PATH "$user_path"
16131 # Set superuser path separately to user path
16133 # Check whether --with-superuser-path or --without-superuser-path was given.
16134 if test "${with_superuser_path+set}" = set; then
16135 withval="$with_superuser_path"
16137 if test "x$withval" != "xno" ; then
16138 cat >>confdefs.h <<_ACEOF
16139 @%:@define SUPERUSER_PATH "$withval"
16142 superuser_path=$withval
16149 # Whether to force IPv4 by default (needed on broken glibc Linux)
16152 # Check whether --with-ipv4-default or --without-ipv4-default was given.
16153 if test "${with_ipv4_default+set}" = set; then
16154 withval="$with_ipv4_default"
16156 if test "x$withval" != "xno" ; then
16157 cat >>confdefs.h <<\_ACEOF
16158 @%:@define IPV4_DEFAULT 1
16161 IPV4_HACK_MSG="yes"
16167 echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16168 echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6
16169 IPV4_IN6_HACK_MSG="no"
16171 # Check whether --with-4in6 or --without-4in6 was given.
16172 if test "${with_4in6+set}" = set; then
16173 withval="$with_4in6"
16175 if test "x$withval" != "xno" ; then
16176 echo "$as_me:$LINENO: result: yes" >&5
16177 echo "${ECHO_T}yes" >&6
16178 cat >>confdefs.h <<\_ACEOF
16179 @%:@define IPV4_IN_IPV6 1
16182 IPV4_IN6_HACK_MSG="yes"
16184 echo "$as_me:$LINENO: result: no" >&5
16185 echo "${ECHO_T}no" >&6
16190 if test "x$inet6_default_4in6" = "xyes"; then
16191 echo "$as_me:$LINENO: result: yes (default)" >&5
16192 echo "${ECHO_T}yes (default)" >&6
16193 cat >>confdefs.h <<\_ACEOF
16194 @%:@define IPV4_IN_IPV6 1
16197 IPV4_IN6_HACK_MSG="yes"
16199 echo "$as_me:$LINENO: result: no (default)" >&5
16200 echo "${ECHO_T}no (default)" >&6
16206 # Whether to enable BSD auth support
16209 # Check whether --with-bsd-auth or --without-bsd-auth was given.
16210 if test "${with_bsd_auth+set}" = set; then
16211 withval="$with_bsd_auth"
16213 if test "x$withval" != "xno" ; then
16214 cat >>confdefs.h <<\_ACEOF
16215 @%:@define BSD_AUTH 1
16224 # Where to place sshd.pid
16226 # make sure the directory exists
16227 if test ! -d $piddir ; then
16228 piddir=`eval echo ${sysconfdir}`
16230 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16235 # Check whether --with-pid-dir or --without-pid-dir was given.
16236 if test "${with_pid_dir+set}" = set; then
16237 withval="$with_pid_dir"
16239 if test "x$withval" != "xno" ; then
16241 if test ! -d $piddir ; then
16242 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
16243 echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16250 cat >>confdefs.h <<_ACEOF
16251 @%:@define _PATH_SSH_PIDDIR "$piddir"
16256 # Check whether --enable-lastlog or --disable-lastlog was given.
16257 if test "${enable_lastlog+set}" = set; then
16258 enableval="$enable_lastlog"
16259 cat >>confdefs.h <<\_ACEOF
16260 @%:@define DISABLE_LASTLOG 1
16265 # Check whether --enable-utmp or --disable-utmp was given.
16266 if test "${enable_utmp+set}" = set; then
16267 enableval="$enable_utmp"
16268 cat >>confdefs.h <<\_ACEOF
16269 @%:@define DISABLE_UTMP 1
16274 # Check whether --enable-utmpx or --disable-utmpx was given.
16275 if test "${enable_utmpx+set}" = set; then
16276 enableval="$enable_utmpx"
16277 cat >>confdefs.h <<\_ACEOF
16278 @%:@define DISABLE_UTMPX 1
16283 # Check whether --enable-wtmp or --disable-wtmp was given.
16284 if test "${enable_wtmp+set}" = set; then
16285 enableval="$enable_wtmp"
16286 cat >>confdefs.h <<\_ACEOF
16287 @%:@define DISABLE_WTMP 1
16292 # Check whether --enable-wtmpx or --disable-wtmpx was given.
16293 if test "${enable_wtmpx+set}" = set; then
16294 enableval="$enable_wtmpx"
16295 cat >>confdefs.h <<\_ACEOF
16296 @%:@define DISABLE_WTMPX 1
16301 # Check whether --enable-libutil or --disable-libutil was given.
16302 if test "${enable_libutil+set}" = set; then
16303 enableval="$enable_libutil"
16304 cat >>confdefs.h <<\_ACEOF
16305 @%:@define DISABLE_LOGIN 1
16310 # Check whether --enable-pututline or --disable-pututline was given.
16311 if test "${enable_pututline+set}" = set; then
16312 enableval="$enable_pututline"
16313 cat >>confdefs.h <<\_ACEOF
16314 @%:@define DISABLE_PUTUTLINE 1
16319 # Check whether --enable-pututxline or --disable-pututxline was given.
16320 if test "${enable_pututxline+set}" = set; then
16321 enableval="$enable_pututxline"
16322 cat >>confdefs.h <<\_ACEOF
16323 @%:@define DISABLE_PUTUTXLINE 1
16329 # Check whether --with-lastlog or --without-lastlog was given.
16330 if test "${with_lastlog+set}" = set; then
16331 withval="$with_lastlog"
16333 if test "x$withval" = "xno" ; then
16334 cat >>confdefs.h <<\_ACEOF
16335 @%:@define DISABLE_LASTLOG 1
16339 conf_lastlog_location=$withval
16346 echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
16347 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6
16348 cat >conftest.$ac_ext <<_ACEOF
16349 #line $LINENO "configure"
16350 #include "confdefs.h"
16352 #include <sys/types.h>
16354 #ifdef HAVE_LASTLOG_H
16355 # include <lastlog.h>
16357 #ifdef HAVE_PATHS_H
16358 # include <paths.h>
16360 #ifdef HAVE_LOGIN_H
16361 # include <login.h>
16364 #ifdef F77_DUMMY_MAIN
16365 # ifdef __cplusplus
16368 int F77_DUMMY_MAIN() { return 1; }
16373 char *lastlog = LASTLOG_FILE;
16378 rm -f conftest.$ac_objext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16380 (eval $ac_compile) 2>&5
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
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6
16393 echo "$as_me: failed program was:" >&5
16394 cat conftest.$ac_ext >&5
16396 echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6
16398 echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
16399 echo $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"
16404 #include <sys/types.h>
16406 #ifdef HAVE_LASTLOG_H
16407 # include <lastlog.h>
16409 #ifdef HAVE_PATHS_H
16410 # include <paths.h>
16413 #ifdef F77_DUMMY_MAIN
16414 # ifdef __cplusplus
16417 int F77_DUMMY_MAIN() { return 1; }
16422 char *lastlog = _PATH_LASTLOG;
16427 rm -f conftest.$ac_objext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>&5
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
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 echo "$as_me:$LINENO: result: yes" >&5
16440 echo "${ECHO_T}yes" >&6
16442 echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16445 echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6
16447 system_lastlog_path=no
16450 rm -f conftest.$ac_objext conftest.$ac_ext
16454 rm -f conftest.$ac_objext conftest.$ac_ext
16456 if 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
16463 if test -z "$conf_lastlog_location"; then
16464 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
16465 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16470 if test -n "$conf_lastlog_location"; then
16471 cat >>confdefs.h <<_ACEOF
16472 @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location"
16477 echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
16478 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6
16479 cat >conftest.$ac_ext <<_ACEOF
16480 #line $LINENO "configure"
16481 #include "confdefs.h"
16483 #include <sys/types.h>
16485 #ifdef HAVE_PATHS_H
16486 # include <paths.h>
16489 #ifdef F77_DUMMY_MAIN
16490 # ifdef __cplusplus
16493 int F77_DUMMY_MAIN() { return 1; }
16498 char *utmp = UTMP_FILE;
16503 rm -f conftest.$ac_objext
16504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
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
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 echo "$as_me:$LINENO: result: yes" >&5
16516 echo "${ECHO_T}yes" >&6
16518 echo "$as_me: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 echo "$as_me:$LINENO: result: no" >&5
16521 echo "${ECHO_T}no" >&6
16522 system_utmp_path=no
16525 rm -f conftest.$ac_objext conftest.$ac_ext
16526 if 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
16533 if test -z "$conf_utmp_location"; then
16534 cat >>confdefs.h <<\_ACEOF
16535 @%:@define DISABLE_UTMP 1
16541 if test -n "$conf_utmp_location"; then
16542 cat >>confdefs.h <<_ACEOF
16543 @%:@define CONF_UTMP_FILE "$conf_utmp_location"
16548 echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
16549 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16554 #include <sys/types.h>
16556 #ifdef HAVE_PATHS_H
16557 # include <paths.h>
16560 #ifdef F77_DUMMY_MAIN
16561 # ifdef __cplusplus
16564 int F77_DUMMY_MAIN() { return 1; }
16569 char *wtmp = WTMP_FILE;
16574 rm -f conftest.$ac_objext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>&5
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
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 echo "$as_me:$LINENO: result: yes" >&5
16587 echo "${ECHO_T}yes" >&6
16589 echo "$as_me: failed program was:" >&5
16590 cat conftest.$ac_ext >&5
16591 echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6
16593 system_wtmp_path=no
16596 rm -f conftest.$ac_objext conftest.$ac_ext
16597 if 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
16604 if test -z "$conf_wtmp_location"; then
16605 cat >>confdefs.h <<\_ACEOF
16606 @%:@define DISABLE_WTMP 1
16612 if test -n "$conf_wtmp_location"; then
16613 cat >>confdefs.h <<_ACEOF
16614 @%:@define CONF_WTMP_FILE "$conf_wtmp_location"
16620 echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
16621 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6
16622 cat >conftest.$ac_ext <<_ACEOF
16623 #line $LINENO "configure"
16624 #include "confdefs.h"
16626 #include <sys/types.h>
16628 #ifdef HAVE_UTMPX_H
16631 #ifdef HAVE_PATHS_H
16632 # include <paths.h>
16635 #ifdef F77_DUMMY_MAIN
16636 # ifdef __cplusplus
16639 int F77_DUMMY_MAIN() { return 1; }
16644 char *utmpx = UTMPX_FILE;
16649 rm -f conftest.$ac_objext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
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
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 echo "$as_me:$LINENO: result: yes" >&5
16662 echo "${ECHO_T}yes" >&6
16664 echo "$as_me: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16666 echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6
16668 system_utmpx_path=no
16671 rm -f conftest.$ac_objext conftest.$ac_ext
16672 if 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
16680 cat >>confdefs.h <<_ACEOF
16681 @%:@define CONF_UTMPX_FILE "$conf_utmpx_location"
16686 echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
16687 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line $LINENO "configure"
16690 #include "confdefs.h"
16692 #include <sys/types.h>
16694 #ifdef HAVE_UTMPX_H
16697 #ifdef HAVE_PATHS_H
16698 # include <paths.h>
16701 #ifdef F77_DUMMY_MAIN
16702 # ifdef __cplusplus
16705 int F77_DUMMY_MAIN() { return 1; }
16710 char *wtmpx = WTMPX_FILE;
16715 rm -f conftest.$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
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
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 echo "$as_me:$LINENO: result: yes" >&5
16728 echo "${ECHO_T}yes" >&6
16730 echo "$as_me: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16732 echo "$as_me:$LINENO: result: no" >&5
16733 echo "${ECHO_T}no" >&6
16734 system_wtmpx_path=no
16737 rm -f conftest.$ac_objext conftest.$ac_ext
16738 if 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
16746 cat >>confdefs.h <<_ACEOF
16747 @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location"
16753 if 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
16756 echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;}
16759 if test "$PAM_MSG" = yes ; then
16760 LIBS=`echo $LIBS | sed 's/-lpam //'`
16762 if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
16763 LIBS=`echo $LIBS | sed 's/-ldl //'`
16767 ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds"
16769 cat >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.
16776 # config.status only pays attention to the cache file if you give it
16777 # the --recheck option to rerun configure.
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.
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.
16792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16794 # `set' does not quote correctly, so add quotes (double-quote
16795 # substitution turns \\\\ into \\, and sed turns \\ into \).
16798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16801 # `set' quotes correctly as required by POSIX, so do not add quotes.
16803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16814 if 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
16819 echo "not updating unwritable cache $cache_file"
16824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16825 # Let make expand exec_prefix.
16826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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).
16832 if test "x$srcdir" = x.; then
16833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16834 s/:*\$(srcdir):*/:/;
16835 s/:*\${srcdir}:*/:/;
16837 s/^\([^=]*=[ ]*\):*/\1/;
16843 DEFS=-DHAVE_CONFIG_H
16846 : ${CONFIG_STATUS=./config.status}
16847 ac_clean_files_save=$ac_clean_files
16848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16849 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16850 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16851 cat >$CONFIG_STATUS <<_ACEOF
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.
16859 SHELL=\${CONFIG_SHELL-$SHELL}
16862 cat >>$CONFIG_STATUS <<\_ACEOF
16864 ## --------------------- ##
16865 ## M4sh Initialization. ##
16866 ## --------------------- ##
16868 # Be Bourne compatible
16869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16877 # Support unset when possible.
16878 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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; }
16910 # Name of the executable.
16911 as_me=`(basename "$0") 2>/dev/null ||
16912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
16914 X"$0" : 'X\(/\)$' \| \
16915 . : '\(.\)' 2>/dev/null ||
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16918 /^X\/\(\/\/\)$/{ s//\1/; q; }
16919 /^X\/\(\/\).*/{ s//\1/; q; }
16922 # PATH needs CR, and LINENO needs CR and PATH.
16923 # Avoid depending upon Character Ranges.
16924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16927 as_cr_digits='0123456789'
16928 as_cr_alnum=$as_cr_Letters$as_cr_digits
16930 # The user is always right.
16931 if 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
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
16952 *[\\/]* ) as_myself=$0 ;;
16953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16957 test -z "$as_dir" && as_dir=.
16958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
16968 if test ! -f "$as_myself"; then
16969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16970 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16971 { (exit 1); exit 1; }; }
16973 case $CONFIG_SHELL in
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16979 test -z "$as_dir" && as_dir=.
16980 for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
17012 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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
17019 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17020 { (exit 1); exit 1; }; }
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).
17026 # Exit status is that of the last command.
17031 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17032 *c*,-n*) ECHO_N= ECHO_C='
17034 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17035 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17038 if expr a : '\(a\)' >/dev/null 2>&1; then
17044 rm -f conf$$ conf$$.exe conf$$.file
17046 if 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
17055 elif ln conf$$.file conf$$ 2>/dev/null; then
17060 rm -f conf$$ conf$$.exe conf$$.file
17062 as_executable_p="test -f"
17064 # Sed expression to map a string onto a valid CPP name.
17065 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17067 # Sed expression to map a string onto a valid variable name.
17068 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17072 # We need space, tab and new line, in precisely that order.
17078 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
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.
17088 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17089 @%:@@%:@ Running $as_me. @%:@@%:@
17094 This file was extended by $as_me, which was
17095 generated by GNU Autoconf 2.53. Invocation command line was
17097 CONFIG_FILES = $CONFIG_FILES
17098 CONFIG_HEADERS = $CONFIG_HEADERS
17099 CONFIG_LINKS = $CONFIG_LINKS
17100 CONFIG_COMMANDS = $CONFIG_COMMANDS
17104 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17108 # Files that config.status was made for.
17109 if test -n "$ac_config_files"; then
17110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17113 if test -n "$ac_config_headers"; then
17114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17117 if test -n "$ac_config_links"; then
17118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17121 if test -n "$ac_config_commands"; then
17122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17125 cat >>$CONFIG_STATUS <<\_ACEOF
17128 \`$as_me' instantiates files from templates according to the
17129 current configuration.
17131 Usage: $0 [OPTIONS] [FILE]...
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
17142 Configuration files:
17145 Configuration headers:
17148 Report bugs to <bug-autoconf@gnu.org>."
17151 cat >>$CONFIG_STATUS <<_ACEOF
17154 configured by $0, generated by GNU Autoconf 2.53,
17155 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17157 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17158 Free Software Foundation, Inc.
17159 This config.status script is free software; the Free Software Foundation
17160 gives unlimited permission to copy, distribute and modify it."
17165 cat >>$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.
17173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17176 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17180 *) # This is not an option, so the user has probably given explicit
17182 ac_need_defaults=false;;
17186 # Handling of the options.
17188 cat >>$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 ;;
17193 cat >>$CONFIG_STATUS <<\_ACEOF
17194 --version | --vers* | -V )
17195 echo "$ac_cs_version"; exit 0 ;;
17197 # Conflict between --help and --header
17198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17199 Try \`$0 --help' for more information." >&5
17200 echo "$as_me: error: ambiguous option: $1
17201 Try \`$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 )
17207 --file | --fil | --fi | --f )
17209 CONFIG_FILES="$CONFIG_FILES $1"
17210 ac_need_defaults=false;;
17211 --header | --heade | --head | --hea )
17213 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17214 ac_need_defaults=false;;
17216 # This is an error.
17217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17218 Try \`$0 --help' for more information." >&5
17219 echo "$as_me: error: unrecognized option: $1
17220 Try \`$0 --help' for more information." >&2;}
17221 { (exit 1); exit 1; }; } ;;
17223 *) ac_config_targets="$ac_config_targets $1" ;;
17235 cat >>$CONFIG_STATUS <<\_ACEOF
17236 for ac_config_target in $ac_config_targets
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
17246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17247 { (exit 1); exit 1; }; };;
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.
17255 if $ac_need_defaults; then
17256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17260 # Create a temporary directory, and hook for its removal unless debugging.
17263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17264 trap '{ (exit 1); exit 1; }' 1 2 13 15
17267 # Create a (secure) tmp directory for tmp files.
17270 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17271 test -n "$tmp" && test -d "$tmp"
17274 tmp=$TMPDIR/cs$$-$RANDOM
17275 (umask 077 && mkdir $tmp)
17278 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17279 { (exit 1); exit 1; }
17284 cat >>$CONFIG_STATUS <<_ACEOF
17287 # CONFIG_FILES section.
17290 # No need to generate the scripts if there are no CONFIG_FILES.
17291 # This happens for instance when ./config.status config.h
17292 if 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
17296 s,@SHELL@,$SHELL,;t t
17297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17303 s,@exec_prefix@,$exec_prefix,;t t
17304 s,@prefix@,$prefix,;t t
17305 s,@program_transform_name@,$program_transform_name,;t t
17306 s,@bindir@,$bindir,;t t
17307 s,@sbindir@,$sbindir,;t t
17308 s,@libexecdir@,$libexecdir,;t t
17309 s,@datadir@,$datadir,;t t
17310 s,@sysconfdir@,$sysconfdir,;t t
17311 s,@sharedstatedir@,$sharedstatedir,;t t
17312 s,@localstatedir@,$localstatedir,;t t
17313 s,@libdir@,$libdir,;t t
17314 s,@includedir@,$includedir,;t t
17315 s,@oldincludedir@,$oldincludedir,;t t
17316 s,@infodir@,$infodir,;t t
17317 s,@mandir@,$mandir,;t t
17318 s,@build_alias@,$build_alias,;t t
17319 s,@host_alias@,$host_alias,;t t
17320 s,@target_alias@,$target_alias,;t t
17321 s,@DEFS@,$DEFS,;t t
17322 s,@ECHO_C@,$ECHO_C,;t t
17323 s,@ECHO_N@,$ECHO_N,;t t
17324 s,@ECHO_T@,$ECHO_T,;t t
17325 s,@LIBS@,$LIBS,;t t
17327 s,@CFLAGS@,$CFLAGS,;t t
17328 s,@LDFLAGS@,$LDFLAGS,;t t
17329 s,@CPPFLAGS@,$CPPFLAGS,;t t
17330 s,@ac_ct_CC@,$ac_ct_CC,;t t
17331 s,@EXEEXT@,$EXEEXT,;t t
17332 s,@OBJEXT@,$OBJEXT,;t t
17333 s,@build@,$build,;t t
17334 s,@build_cpu@,$build_cpu,;t t
17335 s,@build_vendor@,$build_vendor,;t t
17336 s,@build_os@,$build_os,;t t
17337 s,@host@,$host,;t t
17338 s,@host_cpu@,$host_cpu,;t t
17339 s,@host_vendor@,$host_vendor,;t t
17340 s,@host_os@,$host_os,;t t
17342 s,@RANLIB@,$RANLIB,;t t
17343 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17348 s,@PERL@,$PERL,;t t
17350 s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17352 s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t
17354 s,@LIBWRAP@,$LIBWRAP,;t t
17355 s,@LIBPAM@,$LIBPAM,;t t
17356 s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t
17357 s,@SSH_PRIVSEP_USER@,$SSH_PRIVSEP_USER,;t t
17358 s,@PROG_LS@,$PROG_LS,;t t
17359 s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t
17360 s,@PROG_ARP@,$PROG_ARP,;t t
17361 s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t
17362 s,@PROG_JSTAT@,$PROG_JSTAT,;t t
17363 s,@PROG_PS@,$PROG_PS,;t t
17364 s,@PROG_SAR@,$PROG_SAR,;t t
17365 s,@PROG_W@,$PROG_W,;t t
17366 s,@PROG_WHO@,$PROG_WHO,;t t
17367 s,@PROG_LAST@,$PROG_LAST,;t t
17368 s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t
17369 s,@PROG_DF@,$PROG_DF,;t t
17370 s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t
17371 s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17372 s,@PROG_IPCS@,$PROG_IPCS,;t t
17373 s,@PROG_TAIL@,$PROG_TAIL,;t t
17374 s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17375 s,@NO_SFTP@,$NO_SFTP,;t t
17376 s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17377 s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17378 s,@xauth_path@,$xauth_path,;t t
17379 s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17380 s,@NROFF@,$NROFF,;t t
17381 s,@MANTYPE@,$MANTYPE,;t t
17382 s,@mansubdir@,$mansubdir,;t t
17383 s,@user_path@,$user_path,;t t
17384 s,@piddir@,$piddir,;t t
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.
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
17402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17404 if test ! -s $tmp/subs.frag; then
17405 ac_more_lines=false
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.
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"
17416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17418 ac_sed_frag=`expr $ac_sed_frag + 1`
17420 ac_end=`expr $ac_end + $ac_max_sed_lines`
17423 if test -z "$ac_sed_cmds"; then
17426 fi # test -n "$CONFIG_FILES"
17429 cat >>$CONFIG_STATUS <<\_ACEOF
17430 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17433 - | *:- | *:-:* ) # input from 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 ;;
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 ||
17450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17452 /^X\(\/\/\)$/{ s//\1/; q; }
17453 /^X\(\/\).*/{ s//\1/; q; }
17455 { case "$ac_dir" in
17456 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17460 for 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 ;;
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
17469 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17470 { (exit 1); exit 1; }; }
17477 if 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'`
17482 ac_dir_suffix= ac_top_builddir=
17486 .) # No --srcdir option. We are building in place.
17488 if test -z "$ac_top_builddir"; then
17491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
17500 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17502 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17503 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17504 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17505 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17510 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17513 if test x"$ac_file" != x-; then
17514 { echo "$as_me:$LINENO: creating $ac_file" >&5
17515 echo "$as_me: creating $ac_file" >&6;}
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
17524 configure_input="$ac_file. "
17526 configure_input=$configure_input"Generated from `echo $ac_file_in |
17527 sed 's,.*/,,'` by configure."
17529 # First look for the input files in the build tree, otherwise in the
17531 ac_file_inputs=`IFS=:
17532 for f in $ac_file_in; do
17534 -) echo $tmp/stdin ;;
17536 # Absolute (can't be DOS-style, as IFS=:)
17537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17538 echo "$as_me: error: cannot find input file: $f" >&2;}
17539 { (exit 1); exit 1; }; }
17542 if test -f "$f"; then
17545 elif test -f "$srcdir/$f"; then
17550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17551 echo "$as_me: error: cannot find input file: $f" >&2;}
17552 { (exit 1); exit 1; }; }
17555 done` || { (exit 1); exit 1; }
17557 cat >>$CONFIG_STATUS <<_ACEOF
17561 cat >>$CONFIG_STATUS <<\_ACEOF
17563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17564 s,@configure_input@,$configure_input,;t t
17565 s,@srcdir@,$ac_srcdir,;t t
17566 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17567 s,@top_srcdir@,$ac_top_srcdir,;t t
17568 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17569 s,@builddir@,$ac_builddir,;t t
17570 s,@abs_builddir@,$ac_abs_builddir,;t t
17571 s,@top_builddir@,$ac_top_builddir,;t t
17572 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17573 s,@INSTALL@,$ac_INSTALL,;t t
17574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17576 if test x"$ac_file" != x-; then
17577 mv $tmp/out $ac_file
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17588 # CONFIG_HEADER section.
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.
17594 # ac_d sets the value in "#define NAME VALUE" lines.
17595 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17596 ac_dB='[ ].*$,\1#\2'
17599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17601 ac_uB='$,\1#\2define\3'
17605 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17608 - | *:- | *:-:* ) # input from 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 ;;
17617 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618 echo "$as_me: creating $ac_file" >&6;}
17620 # First look for the input files in the build tree, otherwise in the
17622 ac_file_inputs=`IFS=:
17623 for f in $ac_file_in; do
17625 -) echo $tmp/stdin ;;
17627 # Absolute (can't be DOS-style, as IFS=:)
17628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629 echo "$as_me: error: cannot find input file: $f" >&2;}
17630 { (exit 1); exit 1; }; }
17633 if test -f "$f"; then
17636 elif test -f "$srcdir/$f"; then
17641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643 { (exit 1); exit 1; }; }
17646 done` || { (exit 1); exit 1; }
17647 # Remove the trailing spaces.
17648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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.
17659 rm -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.
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'.
17666 cat >confdef2sed.sed <<\_ACEOF
17671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
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.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
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).
17692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo ' :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
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
17708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17710 mv $tmp/out $tmp/in
17712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713 rm -f conftest.defines
17714 mv conftest.tail conftest.defines
17716 rm -f conftest.defines
17717 echo ' fi # egrep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
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).
17722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.undefs >/dev/null
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
17735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17737 mv $tmp/out $tmp/in
17739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740 rm -f conftest.undefs
17741 mv conftest.tail conftest.undefs
17743 rm -f conftest.undefs
17745 cat >>$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
17752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17754 cat $tmp/in >>$tmp/config.h
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
17759 echo "$as_me: $ac_file is unchanged" >&6;}
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 ||
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770 /^X\(\/\/\)$/{ s//\1/; q; }
17771 /^X\(\/\).*/{ s//\1/; q; }
17773 { case "$ac_dir" in
17774 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17778 for 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 ;;
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
17787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788 { (exit 1); exit 1; }; }
17794 mv $tmp/config.h $ac_file
17798 rm -f $tmp/config.h
17803 cat >>$CONFIG_STATUS <<\_ACEOF
17805 { (exit 0); exit 0; }
17807 chmod +x $CONFIG_STATUS
17808 ac_clean_files=$ac_clean_files_save
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.
17819 if test "$no_create" != yes; then
17822 $SHELL $CONFIG_STATUS || ac_cs_success=false
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; }
17830 # Print summary of options
17832 # Someone please show me a better way :)
17833 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17834 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17835 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17836 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17837 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17838 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17839 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17840 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17841 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17842 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17845 echo "OpenSSH has been configured with the following options:"
17846 echo " User binaries: $B"
17847 echo " System binaries: $C"
17848 echo " Configuration files: $D"
17849 echo " Askpass program: $E"
17850 echo " Manual pages: $F"
17851 echo " PID file: $G"
17852 echo " Privilege separation chroot path: $H"
17853 if test "$USES_LOGIN_CONF" = "yes" ; then
17854 echo " At runtime, sshd will use the path defined in /etc/login.conf"
17856 echo " sshd default user PATH: $I"
17858 if test ! -z "$superuser_path" ; then
17859 echo " sshd superuser user PATH: $J"
17861 echo " Manpage format: $MANTYPE"
17862 echo " PAM support: ${PAM_MSG}"
17863 echo " KerberosIV support: $KRB4_MSG"
17864 echo " KerberosV support: $KRB5_MSG"
17865 echo " Smartcard support: $SCARD_MSG"
17866 echo " AFS support: $AFS_MSG"
17867 echo " S/KEY support: $SKEY_MSG"
17868 echo " TCP Wrappers support: $TCPW_MSG"
17869 echo " MD5 password support: $MD5_MSG"
17870 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17871 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
17872 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873 echo " BSD Auth support: $BSD_AUTH_MSG"
17874 echo " Random number source: $RAND_MSG"
17875 if test ! -z "$USE_RAND_HELPER" ; then
17876 echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
17881 echo " Host: ${host}"
17882 echo " Compiler: ${CC}"
17883 echo " Compiler flags: ${CFLAGS}"
17884 echo "Preprocessor flags: ${CPPFLAGS}"
17885 echo " Linker flags: ${LDFLAGS}"
17886 echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}"
17890 if 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"
17898 if test ! -z "$NO_SFTP"; then
17899 echo "sftp-server will be disabled. Your compiler does not "
17900 echo "support 64bit integers."
17904 if 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."